index.js 1.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775
  1. /******/ (() => { // webpackBootstrap
  2. /******/ var __webpack_modules__ = ({
  3. /***/ 99989:
  4. /***/ ((module, exports) => {
  5. module.exports = exports = abbrev.abbrev = abbrev
  6. abbrev.monkeyPatch = monkeyPatch
  7. function monkeyPatch () {
  8. Object.defineProperty(Array.prototype, 'abbrev', {
  9. value: function () { return abbrev(this) },
  10. enumerable: false, configurable: true, writable: true
  11. })
  12. Object.defineProperty(Object.prototype, 'abbrev', {
  13. value: function () { return abbrev(Object.keys(this)) },
  14. enumerable: false, configurable: true, writable: true
  15. })
  16. }
  17. function abbrev (list) {
  18. if (arguments.length !== 1 || !Array.isArray(list)) {
  19. list = Array.prototype.slice.call(arguments, 0)
  20. }
  21. for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
  22. args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
  23. }
  24. // sort them lexicographically, so that they're next to their nearest kin
  25. args = args.sort(lexSort)
  26. // walk through each, seeing how much it has in common with the next and previous
  27. var abbrevs = {}
  28. , prev = ""
  29. for (var i = 0, l = args.length ; i < l ; i ++) {
  30. var current = args[i]
  31. , next = args[i + 1] || ""
  32. , nextMatches = true
  33. , prevMatches = true
  34. if (current === next) continue
  35. for (var j = 0, cl = current.length ; j < cl ; j ++) {
  36. var curChar = current.charAt(j)
  37. nextMatches = nextMatches && curChar === next.charAt(j)
  38. prevMatches = prevMatches && curChar === prev.charAt(j)
  39. if (!nextMatches && !prevMatches) {
  40. j ++
  41. break
  42. }
  43. }
  44. prev = current
  45. if (j === cl) {
  46. abbrevs[current] = current
  47. continue
  48. }
  49. for (var a = current.substr(0, j) ; j <= cl ; j ++) {
  50. abbrevs[a] = current
  51. a += current.charAt(j)
  52. }
  53. }
  54. return abbrevs
  55. }
  56. function lexSort (a, b) {
  57. return a === b ? 0 : a > b ? 1 : -1
  58. }
  59. /***/ }),
  60. /***/ 45018:
  61. /***/ ((module) => {
  62. "use strict";
  63. const x = module.exports;
  64. const ESC = '\u001B[';
  65. const OSC = '\u001B]';
  66. const BEL = '\u0007';
  67. const SEP = ';';
  68. const isTerminalApp = process.env.TERM_PROGRAM === 'Apple_Terminal';
  69. x.cursorTo = (x, y) => {
  70. if (typeof x !== 'number') {
  71. throw new TypeError('The `x` argument is required');
  72. }
  73. if (typeof y !== 'number') {
  74. return ESC + (x + 1) + 'G';
  75. }
  76. return ESC + (y + 1) + ';' + (x + 1) + 'H';
  77. };
  78. x.cursorMove = (x, y) => {
  79. if (typeof x !== 'number') {
  80. throw new TypeError('The `x` argument is required');
  81. }
  82. let ret = '';
  83. if (x < 0) {
  84. ret += ESC + (-x) + 'D';
  85. } else if (x > 0) {
  86. ret += ESC + x + 'C';
  87. }
  88. if (y < 0) {
  89. ret += ESC + (-y) + 'A';
  90. } else if (y > 0) {
  91. ret += ESC + y + 'B';
  92. }
  93. return ret;
  94. };
  95. x.cursorUp = count => ESC + (typeof count === 'number' ? count : 1) + 'A';
  96. x.cursorDown = count => ESC + (typeof count === 'number' ? count : 1) + 'B';
  97. x.cursorForward = count => ESC + (typeof count === 'number' ? count : 1) + 'C';
  98. x.cursorBackward = count => ESC + (typeof count === 'number' ? count : 1) + 'D';
  99. x.cursorLeft = ESC + 'G';
  100. x.cursorSavePosition = ESC + (isTerminalApp ? '7' : 's');
  101. x.cursorRestorePosition = ESC + (isTerminalApp ? '8' : 'u');
  102. x.cursorGetPosition = ESC + '6n';
  103. x.cursorNextLine = ESC + 'E';
  104. x.cursorPrevLine = ESC + 'F';
  105. x.cursorHide = ESC + '?25l';
  106. x.cursorShow = ESC + '?25h';
  107. x.eraseLines = count => {
  108. let clear = '';
  109. for (let i = 0; i < count; i++) {
  110. clear += x.eraseLine + (i < count - 1 ? x.cursorUp() : '');
  111. }
  112. if (count) {
  113. clear += x.cursorLeft;
  114. }
  115. return clear;
  116. };
  117. x.eraseEndLine = ESC + 'K';
  118. x.eraseStartLine = ESC + '1K';
  119. x.eraseLine = ESC + '2K';
  120. x.eraseDown = ESC + 'J';
  121. x.eraseUp = ESC + '1J';
  122. x.eraseScreen = ESC + '2J';
  123. x.scrollUp = ESC + 'S';
  124. x.scrollDown = ESC + 'T';
  125. x.clearScreen = '\u001Bc';
  126. x.clearTerminal = process.platform === 'win32' ?
  127. `${x.eraseScreen}${ESC}0f` :
  128. // 1. Erases the screen (Only done in case `2` is not supported)
  129. // 2. Erases the whole screen including scrollback buffer
  130. // 3. Moves cursor to the top-left position
  131. // More info: https://www.real-world-systems.com/docs/ANSIcode.html
  132. `${x.eraseScreen}${ESC}3J${ESC}H`;
  133. x.beep = BEL;
  134. x.link = (text, url) => {
  135. return [
  136. OSC,
  137. '8',
  138. SEP,
  139. SEP,
  140. url,
  141. BEL,
  142. text,
  143. OSC,
  144. '8',
  145. SEP,
  146. SEP,
  147. BEL
  148. ].join('');
  149. };
  150. x.image = (buf, opts) => {
  151. opts = opts || {};
  152. let ret = OSC + '1337;File=inline=1';
  153. if (opts.width) {
  154. ret += `;width=${opts.width}`;
  155. }
  156. if (opts.height) {
  157. ret += `;height=${opts.height}`;
  158. }
  159. if (opts.preserveAspectRatio === false) {
  160. ret += ';preserveAspectRatio=0';
  161. }
  162. return ret + ':' + buf.toString('base64') + BEL;
  163. };
  164. x.iTerm = {};
  165. x.iTerm.setCwd = cwd => OSC + '50;CurrentDir=' + (cwd || process.cwd()) + BEL;
  166. /***/ }),
  167. /***/ 26434:
  168. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  169. "use strict";
  170. /* module decorator */ module = __webpack_require__.nmd(module);
  171. const colorConvert = __webpack_require__(12085);
  172. const wrapAnsi16 = (fn, offset) => function () {
  173. const code = fn.apply(colorConvert, arguments);
  174. return `\u001B[${code + offset}m`;
  175. };
  176. const wrapAnsi256 = (fn, offset) => function () {
  177. const code = fn.apply(colorConvert, arguments);
  178. return `\u001B[${38 + offset};5;${code}m`;
  179. };
  180. const wrapAnsi16m = (fn, offset) => function () {
  181. const rgb = fn.apply(colorConvert, arguments);
  182. return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
  183. };
  184. function assembleStyles() {
  185. const codes = new Map();
  186. const styles = {
  187. modifier: {
  188. reset: [0, 0],
  189. // 21 isn't widely supported and 22 does the same thing
  190. bold: [1, 22],
  191. dim: [2, 22],
  192. italic: [3, 23],
  193. underline: [4, 24],
  194. inverse: [7, 27],
  195. hidden: [8, 28],
  196. strikethrough: [9, 29]
  197. },
  198. color: {
  199. black: [30, 39],
  200. red: [31, 39],
  201. green: [32, 39],
  202. yellow: [33, 39],
  203. blue: [34, 39],
  204. magenta: [35, 39],
  205. cyan: [36, 39],
  206. white: [37, 39],
  207. gray: [90, 39],
  208. // Bright color
  209. redBright: [91, 39],
  210. greenBright: [92, 39],
  211. yellowBright: [93, 39],
  212. blueBright: [94, 39],
  213. magentaBright: [95, 39],
  214. cyanBright: [96, 39],
  215. whiteBright: [97, 39]
  216. },
  217. bgColor: {
  218. bgBlack: [40, 49],
  219. bgRed: [41, 49],
  220. bgGreen: [42, 49],
  221. bgYellow: [43, 49],
  222. bgBlue: [44, 49],
  223. bgMagenta: [45, 49],
  224. bgCyan: [46, 49],
  225. bgWhite: [47, 49],
  226. // Bright color
  227. bgBlackBright: [100, 49],
  228. bgRedBright: [101, 49],
  229. bgGreenBright: [102, 49],
  230. bgYellowBright: [103, 49],
  231. bgBlueBright: [104, 49],
  232. bgMagentaBright: [105, 49],
  233. bgCyanBright: [106, 49],
  234. bgWhiteBright: [107, 49]
  235. }
  236. };
  237. // Fix humans
  238. styles.color.grey = styles.color.gray;
  239. for (const groupName of Object.keys(styles)) {
  240. const group = styles[groupName];
  241. for (const styleName of Object.keys(group)) {
  242. const style = group[styleName];
  243. styles[styleName] = {
  244. open: `\u001B[${style[0]}m`,
  245. close: `\u001B[${style[1]}m`
  246. };
  247. group[styleName] = styles[styleName];
  248. codes.set(style[0], style[1]);
  249. }
  250. Object.defineProperty(styles, groupName, {
  251. value: group,
  252. enumerable: false
  253. });
  254. Object.defineProperty(styles, 'codes', {
  255. value: codes,
  256. enumerable: false
  257. });
  258. }
  259. const ansi2ansi = n => n;
  260. const rgb2rgb = (r, g, b) => [r, g, b];
  261. styles.color.close = '\u001B[39m';
  262. styles.bgColor.close = '\u001B[49m';
  263. styles.color.ansi = {
  264. ansi: wrapAnsi16(ansi2ansi, 0)
  265. };
  266. styles.color.ansi256 = {
  267. ansi256: wrapAnsi256(ansi2ansi, 0)
  268. };
  269. styles.color.ansi16m = {
  270. rgb: wrapAnsi16m(rgb2rgb, 0)
  271. };
  272. styles.bgColor.ansi = {
  273. ansi: wrapAnsi16(ansi2ansi, 10)
  274. };
  275. styles.bgColor.ansi256 = {
  276. ansi256: wrapAnsi256(ansi2ansi, 10)
  277. };
  278. styles.bgColor.ansi16m = {
  279. rgb: wrapAnsi16m(rgb2rgb, 10)
  280. };
  281. for (let key of Object.keys(colorConvert)) {
  282. if (typeof colorConvert[key] !== 'object') {
  283. continue;
  284. }
  285. const suite = colorConvert[key];
  286. if (key === 'ansi16') {
  287. key = 'ansi';
  288. }
  289. if ('ansi16' in suite) {
  290. styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0);
  291. styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10);
  292. }
  293. if ('ansi256' in suite) {
  294. styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0);
  295. styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10);
  296. }
  297. if ('rgb' in suite) {
  298. styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0);
  299. styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10);
  300. }
  301. }
  302. return styles;
  303. }
  304. // Make the export immutable
  305. Object.defineProperty(module, 'exports', {
  306. enumerable: true,
  307. get: assembleStyles
  308. });
  309. /***/ }),
  310. /***/ 46088:
  311. /***/ ((__unused_webpack_module, exports) => {
  312. "use strict";
  313. Object.defineProperty(exports, "__esModule", ({ value: true }));
  314. exports.boolean = void 0;
  315. const boolean = function (value) {
  316. switch (Object.prototype.toString.call(value)) {
  317. case '[object String]':
  318. return ['true', 't', 'yes', 'y', 'on', '1'].includes(value.trim().toLowerCase());
  319. case '[object Number]':
  320. return value.valueOf() === 1;
  321. case '[object Boolean]':
  322. return value.valueOf();
  323. default:
  324. return false;
  325. }
  326. };
  327. exports.boolean = boolean;
  328. /***/ }),
  329. /***/ 32589:
  330. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  331. "use strict";
  332. const escapeStringRegexp = __webpack_require__(63150);
  333. const ansiStyles = __webpack_require__(26434);
  334. const stdoutColor = __webpack_require__(92130).stdout;
  335. const template = __webpack_require__(56864);
  336. const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm');
  337. // `supportsColor.level` → `ansiStyles.color[name]` mapping
  338. const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m'];
  339. // `color-convert` models to exclude from the Chalk API due to conflicts and such
  340. const skipModels = new Set(['gray']);
  341. const styles = Object.create(null);
  342. function applyOptions(obj, options) {
  343. options = options || {};
  344. // Detect level if not set manually
  345. const scLevel = stdoutColor ? stdoutColor.level : 0;
  346. obj.level = options.level === undefined ? scLevel : options.level;
  347. obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0;
  348. }
  349. function Chalk(options) {
  350. // We check for this.template here since calling `chalk.constructor()`
  351. // by itself will have a `this` of a previously constructed chalk object
  352. if (!this || !(this instanceof Chalk) || this.template) {
  353. const chalk = {};
  354. applyOptions(chalk, options);
  355. chalk.template = function () {
  356. const args = [].slice.call(arguments);
  357. return chalkTag.apply(null, [chalk.template].concat(args));
  358. };
  359. Object.setPrototypeOf(chalk, Chalk.prototype);
  360. Object.setPrototypeOf(chalk.template, chalk);
  361. chalk.template.constructor = Chalk;
  362. return chalk.template;
  363. }
  364. applyOptions(this, options);
  365. }
  366. // Use bright blue on Windows as the normal blue color is illegible
  367. if (isSimpleWindowsTerm) {
  368. ansiStyles.blue.open = '\u001B[94m';
  369. }
  370. for (const key of Object.keys(ansiStyles)) {
  371. ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
  372. styles[key] = {
  373. get() {
  374. const codes = ansiStyles[key];
  375. return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
  376. }
  377. };
  378. }
  379. styles.visible = {
  380. get() {
  381. return build.call(this, this._styles || [], true, 'visible');
  382. }
  383. };
  384. ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');
  385. for (const model of Object.keys(ansiStyles.color.ansi)) {
  386. if (skipModels.has(model)) {
  387. continue;
  388. }
  389. styles[model] = {
  390. get() {
  391. const level = this.level;
  392. return function () {
  393. const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);
  394. const codes = {
  395. open,
  396. close: ansiStyles.color.close,
  397. closeRe: ansiStyles.color.closeRe
  398. };
  399. return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
  400. };
  401. }
  402. };
  403. }
  404. ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g');
  405. for (const model of Object.keys(ansiStyles.bgColor.ansi)) {
  406. if (skipModels.has(model)) {
  407. continue;
  408. }
  409. const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
  410. styles[bgModel] = {
  411. get() {
  412. const level = this.level;
  413. return function () {
  414. const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);
  415. const codes = {
  416. open,
  417. close: ansiStyles.bgColor.close,
  418. closeRe: ansiStyles.bgColor.closeRe
  419. };
  420. return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model);
  421. };
  422. }
  423. };
  424. }
  425. const proto = Object.defineProperties(() => {}, styles);
  426. function build(_styles, _empty, key) {
  427. const builder = function () {
  428. return applyStyle.apply(builder, arguments);
  429. };
  430. builder._styles = _styles;
  431. builder._empty = _empty;
  432. const self = this;
  433. Object.defineProperty(builder, 'level', {
  434. enumerable: true,
  435. get() {
  436. return self.level;
  437. },
  438. set(level) {
  439. self.level = level;
  440. }
  441. });
  442. Object.defineProperty(builder, 'enabled', {
  443. enumerable: true,
  444. get() {
  445. return self.enabled;
  446. },
  447. set(enabled) {
  448. self.enabled = enabled;
  449. }
  450. });
  451. // See below for fix regarding invisible grey/dim combination on Windows
  452. builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey';
  453. // `__proto__` is used because we must return a function, but there is
  454. // no way to create a function with a different prototype
  455. builder.__proto__ = proto; // eslint-disable-line no-proto
  456. return builder;
  457. }
  458. function applyStyle() {
  459. // Support varags, but simply cast to string in case there's only one arg
  460. const args = arguments;
  461. const argsLen = args.length;
  462. let str = String(arguments[0]);
  463. if (argsLen === 0) {
  464. return '';
  465. }
  466. if (argsLen > 1) {
  467. // Don't slice `arguments`, it prevents V8 optimizations
  468. for (let a = 1; a < argsLen; a++) {
  469. str += ' ' + args[a];
  470. }
  471. }
  472. if (!this.enabled || this.level <= 0 || !str) {
  473. return this._empty ? '' : str;
  474. }
  475. // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe,
  476. // see https://github.com/chalk/chalk/issues/58
  477. // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop.
  478. const originalDim = ansiStyles.dim.open;
  479. if (isSimpleWindowsTerm && this.hasGrey) {
  480. ansiStyles.dim.open = '';
  481. }
  482. for (const code of this._styles.slice().reverse()) {
  483. // Replace any instances already present with a re-opening code
  484. // otherwise only the part of the string until said closing code
  485. // will be colored, and the rest will simply be 'plain'.
  486. str = code.open + str.replace(code.closeRe, code.open) + code.close;
  487. // Close the styling before a linebreak and reopen
  488. // after next line to fix a bleed issue on macOS
  489. // https://github.com/chalk/chalk/pull/92
  490. str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`);
  491. }
  492. // Reset the original `dim` if we changed it to work around the Windows dimmed gray issue
  493. ansiStyles.dim.open = originalDim;
  494. return str;
  495. }
  496. function chalkTag(chalk, strings) {
  497. if (!Array.isArray(strings)) {
  498. // If chalk() was called by itself or with a string,
  499. // return the string itself as a string.
  500. return [].slice.call(arguments, 1).join(' ');
  501. }
  502. const args = [].slice.call(arguments, 2);
  503. const parts = [strings.raw[0]];
  504. for (let i = 1; i < strings.length; i++) {
  505. parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&'));
  506. parts.push(String(strings.raw[i]));
  507. }
  508. return template(chalk, parts.join(''));
  509. }
  510. Object.defineProperties(Chalk.prototype, styles);
  511. module.exports = Chalk(); // eslint-disable-line new-cap
  512. module.exports.supportsColor = stdoutColor;
  513. module.exports.default = module.exports; // For TypeScript
  514. /***/ }),
  515. /***/ 56864:
  516. /***/ ((module) => {
  517. "use strict";
  518. const TEMPLATE_REGEX = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
  519. const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
  520. const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
  521. const ESCAPE_REGEX = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;
  522. const ESCAPES = new Map([
  523. ['n', '\n'],
  524. ['r', '\r'],
  525. ['t', '\t'],
  526. ['b', '\b'],
  527. ['f', '\f'],
  528. ['v', '\v'],
  529. ['0', '\0'],
  530. ['\\', '\\'],
  531. ['e', '\u001B'],
  532. ['a', '\u0007']
  533. ]);
  534. function unescape(c) {
  535. if ((c[0] === 'u' && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
  536. return String.fromCharCode(parseInt(c.slice(1), 16));
  537. }
  538. return ESCAPES.get(c) || c;
  539. }
  540. function parseArguments(name, args) {
  541. const results = [];
  542. const chunks = args.trim().split(/\s*,\s*/g);
  543. let matches;
  544. for (const chunk of chunks) {
  545. if (!isNaN(chunk)) {
  546. results.push(Number(chunk));
  547. } else if ((matches = chunk.match(STRING_REGEX))) {
  548. results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, chr) => escape ? unescape(escape) : chr));
  549. } else {
  550. throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
  551. }
  552. }
  553. return results;
  554. }
  555. function parseStyle(style) {
  556. STYLE_REGEX.lastIndex = 0;
  557. const results = [];
  558. let matches;
  559. while ((matches = STYLE_REGEX.exec(style)) !== null) {
  560. const name = matches[1];
  561. if (matches[2]) {
  562. const args = parseArguments(name, matches[2]);
  563. results.push([name].concat(args));
  564. } else {
  565. results.push([name]);
  566. }
  567. }
  568. return results;
  569. }
  570. function buildStyle(chalk, styles) {
  571. const enabled = {};
  572. for (const layer of styles) {
  573. for (const style of layer.styles) {
  574. enabled[style[0]] = layer.inverse ? null : style.slice(1);
  575. }
  576. }
  577. let current = chalk;
  578. for (const styleName of Object.keys(enabled)) {
  579. if (Array.isArray(enabled[styleName])) {
  580. if (!(styleName in current)) {
  581. throw new Error(`Unknown Chalk style: ${styleName}`);
  582. }
  583. if (enabled[styleName].length > 0) {
  584. current = current[styleName].apply(current, enabled[styleName]);
  585. } else {
  586. current = current[styleName];
  587. }
  588. }
  589. }
  590. return current;
  591. }
  592. module.exports = (chalk, tmp) => {
  593. const styles = [];
  594. const chunks = [];
  595. let chunk = [];
  596. // eslint-disable-next-line max-params
  597. tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => {
  598. if (escapeChar) {
  599. chunk.push(unescape(escapeChar));
  600. } else if (style) {
  601. const str = chunk.join('');
  602. chunk = [];
  603. chunks.push(styles.length === 0 ? str : buildStyle(chalk, styles)(str));
  604. styles.push({inverse, styles: parseStyle(style)});
  605. } else if (close) {
  606. if (styles.length === 0) {
  607. throw new Error('Found extraneous } in Chalk template literal');
  608. }
  609. chunks.push(buildStyle(chalk, styles)(chunk.join('')));
  610. chunk = [];
  611. styles.pop();
  612. } else {
  613. chunk.push(chr);
  614. }
  615. });
  616. chunks.push(chunk.join(''));
  617. if (styles.length > 0) {
  618. const errMsg = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
  619. throw new Error(errMsg);
  620. }
  621. return chunks.join('');
  622. };
  623. /***/ }),
  624. /***/ 48168:
  625. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  626. /* MIT license */
  627. var cssKeywords = __webpack_require__(8874);
  628. // NOTE: conversions should only return primitive values (i.e. arrays, or
  629. // values that give correct `typeof` results).
  630. // do not use box values types (i.e. Number(), String(), etc.)
  631. var reverseKeywords = {};
  632. for (var key in cssKeywords) {
  633. if (cssKeywords.hasOwnProperty(key)) {
  634. reverseKeywords[cssKeywords[key]] = key;
  635. }
  636. }
  637. var convert = module.exports = {
  638. rgb: {channels: 3, labels: 'rgb'},
  639. hsl: {channels: 3, labels: 'hsl'},
  640. hsv: {channels: 3, labels: 'hsv'},
  641. hwb: {channels: 3, labels: 'hwb'},
  642. cmyk: {channels: 4, labels: 'cmyk'},
  643. xyz: {channels: 3, labels: 'xyz'},
  644. lab: {channels: 3, labels: 'lab'},
  645. lch: {channels: 3, labels: 'lch'},
  646. hex: {channels: 1, labels: ['hex']},
  647. keyword: {channels: 1, labels: ['keyword']},
  648. ansi16: {channels: 1, labels: ['ansi16']},
  649. ansi256: {channels: 1, labels: ['ansi256']},
  650. hcg: {channels: 3, labels: ['h', 'c', 'g']},
  651. apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
  652. gray: {channels: 1, labels: ['gray']}
  653. };
  654. // hide .channels and .labels properties
  655. for (var model in convert) {
  656. if (convert.hasOwnProperty(model)) {
  657. if (!('channels' in convert[model])) {
  658. throw new Error('missing channels property: ' + model);
  659. }
  660. if (!('labels' in convert[model])) {
  661. throw new Error('missing channel labels property: ' + model);
  662. }
  663. if (convert[model].labels.length !== convert[model].channels) {
  664. throw new Error('channel and label counts mismatch: ' + model);
  665. }
  666. var channels = convert[model].channels;
  667. var labels = convert[model].labels;
  668. delete convert[model].channels;
  669. delete convert[model].labels;
  670. Object.defineProperty(convert[model], 'channels', {value: channels});
  671. Object.defineProperty(convert[model], 'labels', {value: labels});
  672. }
  673. }
  674. convert.rgb.hsl = function (rgb) {
  675. var r = rgb[0] / 255;
  676. var g = rgb[1] / 255;
  677. var b = rgb[2] / 255;
  678. var min = Math.min(r, g, b);
  679. var max = Math.max(r, g, b);
  680. var delta = max - min;
  681. var h;
  682. var s;
  683. var l;
  684. if (max === min) {
  685. h = 0;
  686. } else if (r === max) {
  687. h = (g - b) / delta;
  688. } else if (g === max) {
  689. h = 2 + (b - r) / delta;
  690. } else if (b === max) {
  691. h = 4 + (r - g) / delta;
  692. }
  693. h = Math.min(h * 60, 360);
  694. if (h < 0) {
  695. h += 360;
  696. }
  697. l = (min + max) / 2;
  698. if (max === min) {
  699. s = 0;
  700. } else if (l <= 0.5) {
  701. s = delta / (max + min);
  702. } else {
  703. s = delta / (2 - max - min);
  704. }
  705. return [h, s * 100, l * 100];
  706. };
  707. convert.rgb.hsv = function (rgb) {
  708. var rdif;
  709. var gdif;
  710. var bdif;
  711. var h;
  712. var s;
  713. var r = rgb[0] / 255;
  714. var g = rgb[1] / 255;
  715. var b = rgb[2] / 255;
  716. var v = Math.max(r, g, b);
  717. var diff = v - Math.min(r, g, b);
  718. var diffc = function (c) {
  719. return (v - c) / 6 / diff + 1 / 2;
  720. };
  721. if (diff === 0) {
  722. h = s = 0;
  723. } else {
  724. s = diff / v;
  725. rdif = diffc(r);
  726. gdif = diffc(g);
  727. bdif = diffc(b);
  728. if (r === v) {
  729. h = bdif - gdif;
  730. } else if (g === v) {
  731. h = (1 / 3) + rdif - bdif;
  732. } else if (b === v) {
  733. h = (2 / 3) + gdif - rdif;
  734. }
  735. if (h < 0) {
  736. h += 1;
  737. } else if (h > 1) {
  738. h -= 1;
  739. }
  740. }
  741. return [
  742. h * 360,
  743. s * 100,
  744. v * 100
  745. ];
  746. };
  747. convert.rgb.hwb = function (rgb) {
  748. var r = rgb[0];
  749. var g = rgb[1];
  750. var b = rgb[2];
  751. var h = convert.rgb.hsl(rgb)[0];
  752. var w = 1 / 255 * Math.min(r, Math.min(g, b));
  753. b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
  754. return [h, w * 100, b * 100];
  755. };
  756. convert.rgb.cmyk = function (rgb) {
  757. var r = rgb[0] / 255;
  758. var g = rgb[1] / 255;
  759. var b = rgb[2] / 255;
  760. var c;
  761. var m;
  762. var y;
  763. var k;
  764. k = Math.min(1 - r, 1 - g, 1 - b);
  765. c = (1 - r - k) / (1 - k) || 0;
  766. m = (1 - g - k) / (1 - k) || 0;
  767. y = (1 - b - k) / (1 - k) || 0;
  768. return [c * 100, m * 100, y * 100, k * 100];
  769. };
  770. /**
  771. * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
  772. * */
  773. function comparativeDistance(x, y) {
  774. return (
  775. Math.pow(x[0] - y[0], 2) +
  776. Math.pow(x[1] - y[1], 2) +
  777. Math.pow(x[2] - y[2], 2)
  778. );
  779. }
  780. convert.rgb.keyword = function (rgb) {
  781. var reversed = reverseKeywords[rgb];
  782. if (reversed) {
  783. return reversed;
  784. }
  785. var currentClosestDistance = Infinity;
  786. var currentClosestKeyword;
  787. for (var keyword in cssKeywords) {
  788. if (cssKeywords.hasOwnProperty(keyword)) {
  789. var value = cssKeywords[keyword];
  790. // Compute comparative distance
  791. var distance = comparativeDistance(rgb, value);
  792. // Check if its less, if so set as closest
  793. if (distance < currentClosestDistance) {
  794. currentClosestDistance = distance;
  795. currentClosestKeyword = keyword;
  796. }
  797. }
  798. }
  799. return currentClosestKeyword;
  800. };
  801. convert.keyword.rgb = function (keyword) {
  802. return cssKeywords[keyword];
  803. };
  804. convert.rgb.xyz = function (rgb) {
  805. var r = rgb[0] / 255;
  806. var g = rgb[1] / 255;
  807. var b = rgb[2] / 255;
  808. // assume sRGB
  809. r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);
  810. g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);
  811. b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);
  812. var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
  813. var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
  814. var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
  815. return [x * 100, y * 100, z * 100];
  816. };
  817. convert.rgb.lab = function (rgb) {
  818. var xyz = convert.rgb.xyz(rgb);
  819. var x = xyz[0];
  820. var y = xyz[1];
  821. var z = xyz[2];
  822. var l;
  823. var a;
  824. var b;
  825. x /= 95.047;
  826. y /= 100;
  827. z /= 108.883;
  828. x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
  829. y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
  830. z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
  831. l = (116 * y) - 16;
  832. a = 500 * (x - y);
  833. b = 200 * (y - z);
  834. return [l, a, b];
  835. };
  836. convert.hsl.rgb = function (hsl) {
  837. var h = hsl[0] / 360;
  838. var s = hsl[1] / 100;
  839. var l = hsl[2] / 100;
  840. var t1;
  841. var t2;
  842. var t3;
  843. var rgb;
  844. var val;
  845. if (s === 0) {
  846. val = l * 255;
  847. return [val, val, val];
  848. }
  849. if (l < 0.5) {
  850. t2 = l * (1 + s);
  851. } else {
  852. t2 = l + s - l * s;
  853. }
  854. t1 = 2 * l - t2;
  855. rgb = [0, 0, 0];
  856. for (var i = 0; i < 3; i++) {
  857. t3 = h + 1 / 3 * -(i - 1);
  858. if (t3 < 0) {
  859. t3++;
  860. }
  861. if (t3 > 1) {
  862. t3--;
  863. }
  864. if (6 * t3 < 1) {
  865. val = t1 + (t2 - t1) * 6 * t3;
  866. } else if (2 * t3 < 1) {
  867. val = t2;
  868. } else if (3 * t3 < 2) {
  869. val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
  870. } else {
  871. val = t1;
  872. }
  873. rgb[i] = val * 255;
  874. }
  875. return rgb;
  876. };
  877. convert.hsl.hsv = function (hsl) {
  878. var h = hsl[0];
  879. var s = hsl[1] / 100;
  880. var l = hsl[2] / 100;
  881. var smin = s;
  882. var lmin = Math.max(l, 0.01);
  883. var sv;
  884. var v;
  885. l *= 2;
  886. s *= (l <= 1) ? l : 2 - l;
  887. smin *= lmin <= 1 ? lmin : 2 - lmin;
  888. v = (l + s) / 2;
  889. sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
  890. return [h, sv * 100, v * 100];
  891. };
  892. convert.hsv.rgb = function (hsv) {
  893. var h = hsv[0] / 60;
  894. var s = hsv[1] / 100;
  895. var v = hsv[2] / 100;
  896. var hi = Math.floor(h) % 6;
  897. var f = h - Math.floor(h);
  898. var p = 255 * v * (1 - s);
  899. var q = 255 * v * (1 - (s * f));
  900. var t = 255 * v * (1 - (s * (1 - f)));
  901. v *= 255;
  902. switch (hi) {
  903. case 0:
  904. return [v, t, p];
  905. case 1:
  906. return [q, v, p];
  907. case 2:
  908. return [p, v, t];
  909. case 3:
  910. return [p, q, v];
  911. case 4:
  912. return [t, p, v];
  913. case 5:
  914. return [v, p, q];
  915. }
  916. };
  917. convert.hsv.hsl = function (hsv) {
  918. var h = hsv[0];
  919. var s = hsv[1] / 100;
  920. var v = hsv[2] / 100;
  921. var vmin = Math.max(v, 0.01);
  922. var lmin;
  923. var sl;
  924. var l;
  925. l = (2 - s) * v;
  926. lmin = (2 - s) * vmin;
  927. sl = s * vmin;
  928. sl /= (lmin <= 1) ? lmin : 2 - lmin;
  929. sl = sl || 0;
  930. l /= 2;
  931. return [h, sl * 100, l * 100];
  932. };
  933. // http://dev.w3.org/csswg/css-color/#hwb-to-rgb
  934. convert.hwb.rgb = function (hwb) {
  935. var h = hwb[0] / 360;
  936. var wh = hwb[1] / 100;
  937. var bl = hwb[2] / 100;
  938. var ratio = wh + bl;
  939. var i;
  940. var v;
  941. var f;
  942. var n;
  943. // wh + bl cant be > 1
  944. if (ratio > 1) {
  945. wh /= ratio;
  946. bl /= ratio;
  947. }
  948. i = Math.floor(6 * h);
  949. v = 1 - bl;
  950. f = 6 * h - i;
  951. if ((i & 0x01) !== 0) {
  952. f = 1 - f;
  953. }
  954. n = wh + f * (v - wh); // linear interpolation
  955. var r;
  956. var g;
  957. var b;
  958. switch (i) {
  959. default:
  960. case 6:
  961. case 0: r = v; g = n; b = wh; break;
  962. case 1: r = n; g = v; b = wh; break;
  963. case 2: r = wh; g = v; b = n; break;
  964. case 3: r = wh; g = n; b = v; break;
  965. case 4: r = n; g = wh; b = v; break;
  966. case 5: r = v; g = wh; b = n; break;
  967. }
  968. return [r * 255, g * 255, b * 255];
  969. };
  970. convert.cmyk.rgb = function (cmyk) {
  971. var c = cmyk[0] / 100;
  972. var m = cmyk[1] / 100;
  973. var y = cmyk[2] / 100;
  974. var k = cmyk[3] / 100;
  975. var r;
  976. var g;
  977. var b;
  978. r = 1 - Math.min(1, c * (1 - k) + k);
  979. g = 1 - Math.min(1, m * (1 - k) + k);
  980. b = 1 - Math.min(1, y * (1 - k) + k);
  981. return [r * 255, g * 255, b * 255];
  982. };
  983. convert.xyz.rgb = function (xyz) {
  984. var x = xyz[0] / 100;
  985. var y = xyz[1] / 100;
  986. var z = xyz[2] / 100;
  987. var r;
  988. var g;
  989. var b;
  990. r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
  991. g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
  992. b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
  993. // assume sRGB
  994. r = r > 0.0031308
  995. ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)
  996. : r * 12.92;
  997. g = g > 0.0031308
  998. ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)
  999. : g * 12.92;
  1000. b = b > 0.0031308
  1001. ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)
  1002. : b * 12.92;
  1003. r = Math.min(Math.max(0, r), 1);
  1004. g = Math.min(Math.max(0, g), 1);
  1005. b = Math.min(Math.max(0, b), 1);
  1006. return [r * 255, g * 255, b * 255];
  1007. };
  1008. convert.xyz.lab = function (xyz) {
  1009. var x = xyz[0];
  1010. var y = xyz[1];
  1011. var z = xyz[2];
  1012. var l;
  1013. var a;
  1014. var b;
  1015. x /= 95.047;
  1016. y /= 100;
  1017. z /= 108.883;
  1018. x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
  1019. y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
  1020. z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
  1021. l = (116 * y) - 16;
  1022. a = 500 * (x - y);
  1023. b = 200 * (y - z);
  1024. return [l, a, b];
  1025. };
  1026. convert.lab.xyz = function (lab) {
  1027. var l = lab[0];
  1028. var a = lab[1];
  1029. var b = lab[2];
  1030. var x;
  1031. var y;
  1032. var z;
  1033. y = (l + 16) / 116;
  1034. x = a / 500 + y;
  1035. z = y - b / 200;
  1036. var y2 = Math.pow(y, 3);
  1037. var x2 = Math.pow(x, 3);
  1038. var z2 = Math.pow(z, 3);
  1039. y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
  1040. x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
  1041. z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
  1042. x *= 95.047;
  1043. y *= 100;
  1044. z *= 108.883;
  1045. return [x, y, z];
  1046. };
  1047. convert.lab.lch = function (lab) {
  1048. var l = lab[0];
  1049. var a = lab[1];
  1050. var b = lab[2];
  1051. var hr;
  1052. var h;
  1053. var c;
  1054. hr = Math.atan2(b, a);
  1055. h = hr * 360 / 2 / Math.PI;
  1056. if (h < 0) {
  1057. h += 360;
  1058. }
  1059. c = Math.sqrt(a * a + b * b);
  1060. return [l, c, h];
  1061. };
  1062. convert.lch.lab = function (lch) {
  1063. var l = lch[0];
  1064. var c = lch[1];
  1065. var h = lch[2];
  1066. var a;
  1067. var b;
  1068. var hr;
  1069. hr = h / 360 * 2 * Math.PI;
  1070. a = c * Math.cos(hr);
  1071. b = c * Math.sin(hr);
  1072. return [l, a, b];
  1073. };
  1074. convert.rgb.ansi16 = function (args) {
  1075. var r = args[0];
  1076. var g = args[1];
  1077. var b = args[2];
  1078. var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization
  1079. value = Math.round(value / 50);
  1080. if (value === 0) {
  1081. return 30;
  1082. }
  1083. var ansi = 30
  1084. + ((Math.round(b / 255) << 2)
  1085. | (Math.round(g / 255) << 1)
  1086. | Math.round(r / 255));
  1087. if (value === 2) {
  1088. ansi += 60;
  1089. }
  1090. return ansi;
  1091. };
  1092. convert.hsv.ansi16 = function (args) {
  1093. // optimization here; we already know the value and don't need to get
  1094. // it converted for us.
  1095. return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
  1096. };
  1097. convert.rgb.ansi256 = function (args) {
  1098. var r = args[0];
  1099. var g = args[1];
  1100. var b = args[2];
  1101. // we use the extended greyscale palette here, with the exception of
  1102. // black and white. normal palette only has 4 greyscale shades.
  1103. if (r === g && g === b) {
  1104. if (r < 8) {
  1105. return 16;
  1106. }
  1107. if (r > 248) {
  1108. return 231;
  1109. }
  1110. return Math.round(((r - 8) / 247) * 24) + 232;
  1111. }
  1112. var ansi = 16
  1113. + (36 * Math.round(r / 255 * 5))
  1114. + (6 * Math.round(g / 255 * 5))
  1115. + Math.round(b / 255 * 5);
  1116. return ansi;
  1117. };
  1118. convert.ansi16.rgb = function (args) {
  1119. var color = args % 10;
  1120. // handle greyscale
  1121. if (color === 0 || color === 7) {
  1122. if (args > 50) {
  1123. color += 3.5;
  1124. }
  1125. color = color / 10.5 * 255;
  1126. return [color, color, color];
  1127. }
  1128. var mult = (~~(args > 50) + 1) * 0.5;
  1129. var r = ((color & 1) * mult) * 255;
  1130. var g = (((color >> 1) & 1) * mult) * 255;
  1131. var b = (((color >> 2) & 1) * mult) * 255;
  1132. return [r, g, b];
  1133. };
  1134. convert.ansi256.rgb = function (args) {
  1135. // handle greyscale
  1136. if (args >= 232) {
  1137. var c = (args - 232) * 10 + 8;
  1138. return [c, c, c];
  1139. }
  1140. args -= 16;
  1141. var rem;
  1142. var r = Math.floor(args / 36) / 5 * 255;
  1143. var g = Math.floor((rem = args % 36) / 6) / 5 * 255;
  1144. var b = (rem % 6) / 5 * 255;
  1145. return [r, g, b];
  1146. };
  1147. convert.rgb.hex = function (args) {
  1148. var integer = ((Math.round(args[0]) & 0xFF) << 16)
  1149. + ((Math.round(args[1]) & 0xFF) << 8)
  1150. + (Math.round(args[2]) & 0xFF);
  1151. var string = integer.toString(16).toUpperCase();
  1152. return '000000'.substring(string.length) + string;
  1153. };
  1154. convert.hex.rgb = function (args) {
  1155. var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
  1156. if (!match) {
  1157. return [0, 0, 0];
  1158. }
  1159. var colorString = match[0];
  1160. if (match[0].length === 3) {
  1161. colorString = colorString.split('').map(function (char) {
  1162. return char + char;
  1163. }).join('');
  1164. }
  1165. var integer = parseInt(colorString, 16);
  1166. var r = (integer >> 16) & 0xFF;
  1167. var g = (integer >> 8) & 0xFF;
  1168. var b = integer & 0xFF;
  1169. return [r, g, b];
  1170. };
  1171. convert.rgb.hcg = function (rgb) {
  1172. var r = rgb[0] / 255;
  1173. var g = rgb[1] / 255;
  1174. var b = rgb[2] / 255;
  1175. var max = Math.max(Math.max(r, g), b);
  1176. var min = Math.min(Math.min(r, g), b);
  1177. var chroma = (max - min);
  1178. var grayscale;
  1179. var hue;
  1180. if (chroma < 1) {
  1181. grayscale = min / (1 - chroma);
  1182. } else {
  1183. grayscale = 0;
  1184. }
  1185. if (chroma <= 0) {
  1186. hue = 0;
  1187. } else
  1188. if (max === r) {
  1189. hue = ((g - b) / chroma) % 6;
  1190. } else
  1191. if (max === g) {
  1192. hue = 2 + (b - r) / chroma;
  1193. } else {
  1194. hue = 4 + (r - g) / chroma + 4;
  1195. }
  1196. hue /= 6;
  1197. hue %= 1;
  1198. return [hue * 360, chroma * 100, grayscale * 100];
  1199. };
  1200. convert.hsl.hcg = function (hsl) {
  1201. var s = hsl[1] / 100;
  1202. var l = hsl[2] / 100;
  1203. var c = 1;
  1204. var f = 0;
  1205. if (l < 0.5) {
  1206. c = 2.0 * s * l;
  1207. } else {
  1208. c = 2.0 * s * (1.0 - l);
  1209. }
  1210. if (c < 1.0) {
  1211. f = (l - 0.5 * c) / (1.0 - c);
  1212. }
  1213. return [hsl[0], c * 100, f * 100];
  1214. };
  1215. convert.hsv.hcg = function (hsv) {
  1216. var s = hsv[1] / 100;
  1217. var v = hsv[2] / 100;
  1218. var c = s * v;
  1219. var f = 0;
  1220. if (c < 1.0) {
  1221. f = (v - c) / (1 - c);
  1222. }
  1223. return [hsv[0], c * 100, f * 100];
  1224. };
  1225. convert.hcg.rgb = function (hcg) {
  1226. var h = hcg[0] / 360;
  1227. var c = hcg[1] / 100;
  1228. var g = hcg[2] / 100;
  1229. if (c === 0.0) {
  1230. return [g * 255, g * 255, g * 255];
  1231. }
  1232. var pure = [0, 0, 0];
  1233. var hi = (h % 1) * 6;
  1234. var v = hi % 1;
  1235. var w = 1 - v;
  1236. var mg = 0;
  1237. switch (Math.floor(hi)) {
  1238. case 0:
  1239. pure[0] = 1; pure[1] = v; pure[2] = 0; break;
  1240. case 1:
  1241. pure[0] = w; pure[1] = 1; pure[2] = 0; break;
  1242. case 2:
  1243. pure[0] = 0; pure[1] = 1; pure[2] = v; break;
  1244. case 3:
  1245. pure[0] = 0; pure[1] = w; pure[2] = 1; break;
  1246. case 4:
  1247. pure[0] = v; pure[1] = 0; pure[2] = 1; break;
  1248. default:
  1249. pure[0] = 1; pure[1] = 0; pure[2] = w;
  1250. }
  1251. mg = (1.0 - c) * g;
  1252. return [
  1253. (c * pure[0] + mg) * 255,
  1254. (c * pure[1] + mg) * 255,
  1255. (c * pure[2] + mg) * 255
  1256. ];
  1257. };
  1258. convert.hcg.hsv = function (hcg) {
  1259. var c = hcg[1] / 100;
  1260. var g = hcg[2] / 100;
  1261. var v = c + g * (1.0 - c);
  1262. var f = 0;
  1263. if (v > 0.0) {
  1264. f = c / v;
  1265. }
  1266. return [hcg[0], f * 100, v * 100];
  1267. };
  1268. convert.hcg.hsl = function (hcg) {
  1269. var c = hcg[1] / 100;
  1270. var g = hcg[2] / 100;
  1271. var l = g * (1.0 - c) + 0.5 * c;
  1272. var s = 0;
  1273. if (l > 0.0 && l < 0.5) {
  1274. s = c / (2 * l);
  1275. } else
  1276. if (l >= 0.5 && l < 1.0) {
  1277. s = c / (2 * (1 - l));
  1278. }
  1279. return [hcg[0], s * 100, l * 100];
  1280. };
  1281. convert.hcg.hwb = function (hcg) {
  1282. var c = hcg[1] / 100;
  1283. var g = hcg[2] / 100;
  1284. var v = c + g * (1.0 - c);
  1285. return [hcg[0], (v - c) * 100, (1 - v) * 100];
  1286. };
  1287. convert.hwb.hcg = function (hwb) {
  1288. var w = hwb[1] / 100;
  1289. var b = hwb[2] / 100;
  1290. var v = 1 - b;
  1291. var c = v - w;
  1292. var g = 0;
  1293. if (c < 1) {
  1294. g = (v - c) / (1 - c);
  1295. }
  1296. return [hwb[0], c * 100, g * 100];
  1297. };
  1298. convert.apple.rgb = function (apple) {
  1299. return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
  1300. };
  1301. convert.rgb.apple = function (rgb) {
  1302. return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
  1303. };
  1304. convert.gray.rgb = function (args) {
  1305. return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
  1306. };
  1307. convert.gray.hsl = convert.gray.hsv = function (args) {
  1308. return [0, 0, args[0]];
  1309. };
  1310. convert.gray.hwb = function (gray) {
  1311. return [0, 100, gray[0]];
  1312. };
  1313. convert.gray.cmyk = function (gray) {
  1314. return [0, 0, 0, gray[0]];
  1315. };
  1316. convert.gray.lab = function (gray) {
  1317. return [gray[0], 0, 0];
  1318. };
  1319. convert.gray.hex = function (gray) {
  1320. var val = Math.round(gray[0] / 100 * 255) & 0xFF;
  1321. var integer = (val << 16) + (val << 8) + val;
  1322. var string = integer.toString(16).toUpperCase();
  1323. return '000000'.substring(string.length) + string;
  1324. };
  1325. convert.rgb.gray = function (rgb) {
  1326. var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
  1327. return [val / 255 * 100];
  1328. };
  1329. /***/ }),
  1330. /***/ 12085:
  1331. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1332. var conversions = __webpack_require__(48168);
  1333. var route = __webpack_require__(4111);
  1334. var convert = {};
  1335. var models = Object.keys(conversions);
  1336. function wrapRaw(fn) {
  1337. var wrappedFn = function (args) {
  1338. if (args === undefined || args === null) {
  1339. return args;
  1340. }
  1341. if (arguments.length > 1) {
  1342. args = Array.prototype.slice.call(arguments);
  1343. }
  1344. return fn(args);
  1345. };
  1346. // preserve .conversion property if there is one
  1347. if ('conversion' in fn) {
  1348. wrappedFn.conversion = fn.conversion;
  1349. }
  1350. return wrappedFn;
  1351. }
  1352. function wrapRounded(fn) {
  1353. var wrappedFn = function (args) {
  1354. if (args === undefined || args === null) {
  1355. return args;
  1356. }
  1357. if (arguments.length > 1) {
  1358. args = Array.prototype.slice.call(arguments);
  1359. }
  1360. var result = fn(args);
  1361. // we're assuming the result is an array here.
  1362. // see notice in conversions.js; don't use box types
  1363. // in conversion functions.
  1364. if (typeof result === 'object') {
  1365. for (var len = result.length, i = 0; i < len; i++) {
  1366. result[i] = Math.round(result[i]);
  1367. }
  1368. }
  1369. return result;
  1370. };
  1371. // preserve .conversion property if there is one
  1372. if ('conversion' in fn) {
  1373. wrappedFn.conversion = fn.conversion;
  1374. }
  1375. return wrappedFn;
  1376. }
  1377. models.forEach(function (fromModel) {
  1378. convert[fromModel] = {};
  1379. Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
  1380. Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
  1381. var routes = route(fromModel);
  1382. var routeModels = Object.keys(routes);
  1383. routeModels.forEach(function (toModel) {
  1384. var fn = routes[toModel];
  1385. convert[fromModel][toModel] = wrapRounded(fn);
  1386. convert[fromModel][toModel].raw = wrapRaw(fn);
  1387. });
  1388. });
  1389. module.exports = convert;
  1390. /***/ }),
  1391. /***/ 4111:
  1392. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1393. var conversions = __webpack_require__(48168);
  1394. /*
  1395. this function routes a model to all other models.
  1396. all functions that are routed have a property `.conversion` attached
  1397. to the returned synthetic function. This property is an array
  1398. of strings, each with the steps in between the 'from' and 'to'
  1399. color models (inclusive).
  1400. conversions that are not possible simply are not included.
  1401. */
  1402. function buildGraph() {
  1403. var graph = {};
  1404. // https://jsperf.com/object-keys-vs-for-in-with-closure/3
  1405. var models = Object.keys(conversions);
  1406. for (var len = models.length, i = 0; i < len; i++) {
  1407. graph[models[i]] = {
  1408. // http://jsperf.com/1-vs-infinity
  1409. // micro-opt, but this is simple.
  1410. distance: -1,
  1411. parent: null
  1412. };
  1413. }
  1414. return graph;
  1415. }
  1416. // https://en.wikipedia.org/wiki/Breadth-first_search
  1417. function deriveBFS(fromModel) {
  1418. var graph = buildGraph();
  1419. var queue = [fromModel]; // unshift -> queue -> pop
  1420. graph[fromModel].distance = 0;
  1421. while (queue.length) {
  1422. var current = queue.pop();
  1423. var adjacents = Object.keys(conversions[current]);
  1424. for (var len = adjacents.length, i = 0; i < len; i++) {
  1425. var adjacent = adjacents[i];
  1426. var node = graph[adjacent];
  1427. if (node.distance === -1) {
  1428. node.distance = graph[current].distance + 1;
  1429. node.parent = current;
  1430. queue.unshift(adjacent);
  1431. }
  1432. }
  1433. }
  1434. return graph;
  1435. }
  1436. function link(from, to) {
  1437. return function (args) {
  1438. return to(from(args));
  1439. };
  1440. }
  1441. function wrapConversion(toModel, graph) {
  1442. var path = [graph[toModel].parent, toModel];
  1443. var fn = conversions[graph[toModel].parent][toModel];
  1444. var cur = graph[toModel].parent;
  1445. while (graph[cur].parent) {
  1446. path.unshift(graph[cur].parent);
  1447. fn = link(conversions[graph[cur].parent][cur], fn);
  1448. cur = graph[cur].parent;
  1449. }
  1450. fn.conversion = path;
  1451. return fn;
  1452. }
  1453. module.exports = function (fromModel) {
  1454. var graph = deriveBFS(fromModel);
  1455. var conversion = {};
  1456. var models = Object.keys(graph);
  1457. for (var len = models.length, i = 0; i < len; i++) {
  1458. var toModel = models[i];
  1459. var node = graph[toModel];
  1460. if (node.parent === null) {
  1461. // no possible conversion, or this node is the source model.
  1462. continue;
  1463. }
  1464. conversion[toModel] = wrapConversion(toModel, graph);
  1465. }
  1466. return conversion;
  1467. };
  1468. /***/ }),
  1469. /***/ 8874:
  1470. /***/ ((module) => {
  1471. "use strict";
  1472. module.exports = {
  1473. "aliceblue": [240, 248, 255],
  1474. "antiquewhite": [250, 235, 215],
  1475. "aqua": [0, 255, 255],
  1476. "aquamarine": [127, 255, 212],
  1477. "azure": [240, 255, 255],
  1478. "beige": [245, 245, 220],
  1479. "bisque": [255, 228, 196],
  1480. "black": [0, 0, 0],
  1481. "blanchedalmond": [255, 235, 205],
  1482. "blue": [0, 0, 255],
  1483. "blueviolet": [138, 43, 226],
  1484. "brown": [165, 42, 42],
  1485. "burlywood": [222, 184, 135],
  1486. "cadetblue": [95, 158, 160],
  1487. "chartreuse": [127, 255, 0],
  1488. "chocolate": [210, 105, 30],
  1489. "coral": [255, 127, 80],
  1490. "cornflowerblue": [100, 149, 237],
  1491. "cornsilk": [255, 248, 220],
  1492. "crimson": [220, 20, 60],
  1493. "cyan": [0, 255, 255],
  1494. "darkblue": [0, 0, 139],
  1495. "darkcyan": [0, 139, 139],
  1496. "darkgoldenrod": [184, 134, 11],
  1497. "darkgray": [169, 169, 169],
  1498. "darkgreen": [0, 100, 0],
  1499. "darkgrey": [169, 169, 169],
  1500. "darkkhaki": [189, 183, 107],
  1501. "darkmagenta": [139, 0, 139],
  1502. "darkolivegreen": [85, 107, 47],
  1503. "darkorange": [255, 140, 0],
  1504. "darkorchid": [153, 50, 204],
  1505. "darkred": [139, 0, 0],
  1506. "darksalmon": [233, 150, 122],
  1507. "darkseagreen": [143, 188, 143],
  1508. "darkslateblue": [72, 61, 139],
  1509. "darkslategray": [47, 79, 79],
  1510. "darkslategrey": [47, 79, 79],
  1511. "darkturquoise": [0, 206, 209],
  1512. "darkviolet": [148, 0, 211],
  1513. "deeppink": [255, 20, 147],
  1514. "deepskyblue": [0, 191, 255],
  1515. "dimgray": [105, 105, 105],
  1516. "dimgrey": [105, 105, 105],
  1517. "dodgerblue": [30, 144, 255],
  1518. "firebrick": [178, 34, 34],
  1519. "floralwhite": [255, 250, 240],
  1520. "forestgreen": [34, 139, 34],
  1521. "fuchsia": [255, 0, 255],
  1522. "gainsboro": [220, 220, 220],
  1523. "ghostwhite": [248, 248, 255],
  1524. "gold": [255, 215, 0],
  1525. "goldenrod": [218, 165, 32],
  1526. "gray": [128, 128, 128],
  1527. "green": [0, 128, 0],
  1528. "greenyellow": [173, 255, 47],
  1529. "grey": [128, 128, 128],
  1530. "honeydew": [240, 255, 240],
  1531. "hotpink": [255, 105, 180],
  1532. "indianred": [205, 92, 92],
  1533. "indigo": [75, 0, 130],
  1534. "ivory": [255, 255, 240],
  1535. "khaki": [240, 230, 140],
  1536. "lavender": [230, 230, 250],
  1537. "lavenderblush": [255, 240, 245],
  1538. "lawngreen": [124, 252, 0],
  1539. "lemonchiffon": [255, 250, 205],
  1540. "lightblue": [173, 216, 230],
  1541. "lightcoral": [240, 128, 128],
  1542. "lightcyan": [224, 255, 255],
  1543. "lightgoldenrodyellow": [250, 250, 210],
  1544. "lightgray": [211, 211, 211],
  1545. "lightgreen": [144, 238, 144],
  1546. "lightgrey": [211, 211, 211],
  1547. "lightpink": [255, 182, 193],
  1548. "lightsalmon": [255, 160, 122],
  1549. "lightseagreen": [32, 178, 170],
  1550. "lightskyblue": [135, 206, 250],
  1551. "lightslategray": [119, 136, 153],
  1552. "lightslategrey": [119, 136, 153],
  1553. "lightsteelblue": [176, 196, 222],
  1554. "lightyellow": [255, 255, 224],
  1555. "lime": [0, 255, 0],
  1556. "limegreen": [50, 205, 50],
  1557. "linen": [250, 240, 230],
  1558. "magenta": [255, 0, 255],
  1559. "maroon": [128, 0, 0],
  1560. "mediumaquamarine": [102, 205, 170],
  1561. "mediumblue": [0, 0, 205],
  1562. "mediumorchid": [186, 85, 211],
  1563. "mediumpurple": [147, 112, 219],
  1564. "mediumseagreen": [60, 179, 113],
  1565. "mediumslateblue": [123, 104, 238],
  1566. "mediumspringgreen": [0, 250, 154],
  1567. "mediumturquoise": [72, 209, 204],
  1568. "mediumvioletred": [199, 21, 133],
  1569. "midnightblue": [25, 25, 112],
  1570. "mintcream": [245, 255, 250],
  1571. "mistyrose": [255, 228, 225],
  1572. "moccasin": [255, 228, 181],
  1573. "navajowhite": [255, 222, 173],
  1574. "navy": [0, 0, 128],
  1575. "oldlace": [253, 245, 230],
  1576. "olive": [128, 128, 0],
  1577. "olivedrab": [107, 142, 35],
  1578. "orange": [255, 165, 0],
  1579. "orangered": [255, 69, 0],
  1580. "orchid": [218, 112, 214],
  1581. "palegoldenrod": [238, 232, 170],
  1582. "palegreen": [152, 251, 152],
  1583. "paleturquoise": [175, 238, 238],
  1584. "palevioletred": [219, 112, 147],
  1585. "papayawhip": [255, 239, 213],
  1586. "peachpuff": [255, 218, 185],
  1587. "peru": [205, 133, 63],
  1588. "pink": [255, 192, 203],
  1589. "plum": [221, 160, 221],
  1590. "powderblue": [176, 224, 230],
  1591. "purple": [128, 0, 128],
  1592. "rebeccapurple": [102, 51, 153],
  1593. "red": [255, 0, 0],
  1594. "rosybrown": [188, 143, 143],
  1595. "royalblue": [65, 105, 225],
  1596. "saddlebrown": [139, 69, 19],
  1597. "salmon": [250, 128, 114],
  1598. "sandybrown": [244, 164, 96],
  1599. "seagreen": [46, 139, 87],
  1600. "seashell": [255, 245, 238],
  1601. "sienna": [160, 82, 45],
  1602. "silver": [192, 192, 192],
  1603. "skyblue": [135, 206, 235],
  1604. "slateblue": [106, 90, 205],
  1605. "slategray": [112, 128, 144],
  1606. "slategrey": [112, 128, 144],
  1607. "snow": [255, 250, 250],
  1608. "springgreen": [0, 255, 127],
  1609. "steelblue": [70, 130, 180],
  1610. "tan": [210, 180, 140],
  1611. "teal": [0, 128, 128],
  1612. "thistle": [216, 191, 216],
  1613. "tomato": [255, 99, 71],
  1614. "turquoise": [64, 224, 208],
  1615. "violet": [238, 130, 238],
  1616. "wheat": [245, 222, 179],
  1617. "white": [255, 255, 255],
  1618. "whitesmoke": [245, 245, 245],
  1619. "yellow": [255, 255, 0],
  1620. "yellowgreen": [154, 205, 50]
  1621. };
  1622. /***/ }),
  1623. /***/ 70214:
  1624. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1625. "use strict";
  1626. const path = __webpack_require__(85622);
  1627. const os = __webpack_require__(12087);
  1628. const fs = __webpack_require__(20077);
  1629. const makeDir = __webpack_require__(40789);
  1630. const xdgBasedir = __webpack_require__(20071);
  1631. const writeFileAtomic = __webpack_require__(70902);
  1632. const dotProp = __webpack_require__(93517);
  1633. const uniqueString = __webpack_require__(36277);
  1634. const configDirectory = xdgBasedir.config || path.join(os.tmpdir(), uniqueString());
  1635. const permissionError = 'You don\'t have access to this file.';
  1636. const makeDirOptions = {mode: 0o0700};
  1637. const writeFileOptions = {mode: 0o0600};
  1638. class Configstore {
  1639. constructor(id, defaults, options = {}) {
  1640. const pathPrefix = options.globalConfigPath ?
  1641. path.join(id, 'config.json') :
  1642. path.join('configstore', `${id}.json`);
  1643. this.path = options.configPath || path.join(configDirectory, pathPrefix);
  1644. if (defaults) {
  1645. this.all = {
  1646. ...defaults,
  1647. ...this.all
  1648. };
  1649. }
  1650. }
  1651. get all() {
  1652. try {
  1653. return JSON.parse(fs.readFileSync(this.path, 'utf8'));
  1654. } catch (error) {
  1655. // Create directory if it doesn't exist
  1656. if (error.code === 'ENOENT') {
  1657. return {};
  1658. }
  1659. // Improve the message of permission errors
  1660. if (error.code === 'EACCES') {
  1661. error.message = `${error.message}\n${permissionError}\n`;
  1662. }
  1663. // Empty the file if it encounters invalid JSON
  1664. if (error.name === 'SyntaxError') {
  1665. writeFileAtomic.sync(this.path, '', writeFileOptions);
  1666. return {};
  1667. }
  1668. throw error;
  1669. }
  1670. }
  1671. set all(value) {
  1672. try {
  1673. // Make sure the folder exists as it could have been deleted in the meantime
  1674. makeDir.sync(path.dirname(this.path), makeDirOptions);
  1675. writeFileAtomic.sync(this.path, JSON.stringify(value, undefined, '\t'), writeFileOptions);
  1676. } catch (error) {
  1677. // Improve the message of permission errors
  1678. if (error.code === 'EACCES') {
  1679. error.message = `${error.message}\n${permissionError}\n`;
  1680. }
  1681. throw error;
  1682. }
  1683. }
  1684. get size() {
  1685. return Object.keys(this.all || {}).length;
  1686. }
  1687. get(key) {
  1688. return dotProp.get(this.all, key);
  1689. }
  1690. set(key, value) {
  1691. const config = this.all;
  1692. if (arguments.length === 1) {
  1693. for (const k of Object.keys(key)) {
  1694. dotProp.set(config, k, key[k]);
  1695. }
  1696. } else {
  1697. dotProp.set(config, key, value);
  1698. }
  1699. this.all = config;
  1700. }
  1701. has(key) {
  1702. return dotProp.has(this.all, key);
  1703. }
  1704. delete(key) {
  1705. const config = this.all;
  1706. dotProp.delete(config, key);
  1707. this.all = config;
  1708. }
  1709. clear() {
  1710. this.all = {};
  1711. }
  1712. }
  1713. module.exports = Configstore;
  1714. /***/ }),
  1715. /***/ 88309:
  1716. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1717. "use strict";
  1718. const cp = __webpack_require__(63129);
  1719. const parse = __webpack_require__(84605);
  1720. const enoent = __webpack_require__(13743);
  1721. function spawn(command, args, options) {
  1722. // Parse the arguments
  1723. const parsed = parse(command, args, options);
  1724. // Spawn the child process
  1725. const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
  1726. // Hook into child process "exit" event to emit an error if the command
  1727. // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1728. enoent.hookChildProcess(spawned, parsed);
  1729. return spawned;
  1730. }
  1731. function spawnSync(command, args, options) {
  1732. // Parse the arguments
  1733. const parsed = parse(command, args, options);
  1734. // Spawn the child process
  1735. const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
  1736. // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1737. result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
  1738. return result;
  1739. }
  1740. module.exports = spawn;
  1741. module.exports.spawn = spawn;
  1742. module.exports.sync = spawnSync;
  1743. module.exports._parse = parse;
  1744. module.exports._enoent = enoent;
  1745. /***/ }),
  1746. /***/ 13743:
  1747. /***/ ((module) => {
  1748. "use strict";
  1749. const isWin = process.platform === 'win32';
  1750. function notFoundError(original, syscall) {
  1751. return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
  1752. code: 'ENOENT',
  1753. errno: 'ENOENT',
  1754. syscall: `${syscall} ${original.command}`,
  1755. path: original.command,
  1756. spawnargs: original.args,
  1757. });
  1758. }
  1759. function hookChildProcess(cp, parsed) {
  1760. if (!isWin) {
  1761. return;
  1762. }
  1763. const originalEmit = cp.emit;
  1764. cp.emit = function (name, arg1) {
  1765. // If emitting "exit" event and exit code is 1, we need to check if
  1766. // the command exists and emit an "error" instead
  1767. // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1768. if (name === 'exit') {
  1769. const err = verifyENOENT(arg1, parsed, 'spawn');
  1770. if (err) {
  1771. return originalEmit.call(cp, 'error', err);
  1772. }
  1773. }
  1774. return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
  1775. };
  1776. }
  1777. function verifyENOENT(status, parsed) {
  1778. if (isWin && status === 1 && !parsed.file) {
  1779. return notFoundError(parsed.original, 'spawn');
  1780. }
  1781. return null;
  1782. }
  1783. function verifyENOENTSync(status, parsed) {
  1784. if (isWin && status === 1 && !parsed.file) {
  1785. return notFoundError(parsed.original, 'spawnSync');
  1786. }
  1787. return null;
  1788. }
  1789. module.exports = {
  1790. hookChildProcess,
  1791. verifyENOENT,
  1792. verifyENOENTSync,
  1793. notFoundError,
  1794. };
  1795. /***/ }),
  1796. /***/ 84605:
  1797. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1798. "use strict";
  1799. const path = __webpack_require__(85622);
  1800. const niceTry = __webpack_require__(61150);
  1801. const resolveCommand = __webpack_require__(52202);
  1802. const escape = __webpack_require__(35081);
  1803. const readShebang = __webpack_require__(97550);
  1804. const semver = __webpack_require__(73631);
  1805. const isWin = process.platform === 'win32';
  1806. const isExecutableRegExp = /\.(?:com|exe)$/i;
  1807. const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
  1808. // `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
  1809. const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
  1810. function detectShebang(parsed) {
  1811. parsed.file = resolveCommand(parsed);
  1812. const shebang = parsed.file && readShebang(parsed.file);
  1813. if (shebang) {
  1814. parsed.args.unshift(parsed.file);
  1815. parsed.command = shebang;
  1816. return resolveCommand(parsed);
  1817. }
  1818. return parsed.file;
  1819. }
  1820. function parseNonShell(parsed) {
  1821. if (!isWin) {
  1822. return parsed;
  1823. }
  1824. // Detect & add support for shebangs
  1825. const commandFile = detectShebang(parsed);
  1826. // We don't need a shell if the command filename is an executable
  1827. const needsShell = !isExecutableRegExp.test(commandFile);
  1828. // If a shell is required, use cmd.exe and take care of escaping everything correctly
  1829. // Note that `forceShell` is an hidden option used only in tests
  1830. if (parsed.options.forceShell || needsShell) {
  1831. // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
  1832. // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
  1833. // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
  1834. // we need to double escape them
  1835. const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
  1836. // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
  1837. // This is necessary otherwise it will always fail with ENOENT in those cases
  1838. parsed.command = path.normalize(parsed.command);
  1839. // Escape command & arguments
  1840. parsed.command = escape.command(parsed.command);
  1841. parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
  1842. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  1843. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  1844. parsed.command = process.env.comspec || 'cmd.exe';
  1845. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  1846. }
  1847. return parsed;
  1848. }
  1849. function parseShell(parsed) {
  1850. // If node supports the shell option, there's no need to mimic its behavior
  1851. if (supportsShellOption) {
  1852. return parsed;
  1853. }
  1854. // Mimic node shell option
  1855. // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335
  1856. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  1857. if (isWin) {
  1858. parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
  1859. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  1860. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  1861. } else {
  1862. if (typeof parsed.options.shell === 'string') {
  1863. parsed.command = parsed.options.shell;
  1864. } else if (process.platform === 'android') {
  1865. parsed.command = '/system/bin/sh';
  1866. } else {
  1867. parsed.command = '/bin/sh';
  1868. }
  1869. parsed.args = ['-c', shellCommand];
  1870. }
  1871. return parsed;
  1872. }
  1873. function parse(command, args, options) {
  1874. // Normalize arguments, similar to nodejs
  1875. if (args && !Array.isArray(args)) {
  1876. options = args;
  1877. args = null;
  1878. }
  1879. args = args ? args.slice(0) : []; // Clone array to avoid changing the original
  1880. options = Object.assign({}, options); // Clone object to avoid changing the original
  1881. // Build our parsed object
  1882. const parsed = {
  1883. command,
  1884. args,
  1885. options,
  1886. file: undefined,
  1887. original: {
  1888. command,
  1889. args,
  1890. },
  1891. };
  1892. // Delegate further parsing to shell or non-shell
  1893. return options.shell ? parseShell(parsed) : parseNonShell(parsed);
  1894. }
  1895. module.exports = parse;
  1896. /***/ }),
  1897. /***/ 35081:
  1898. /***/ ((module) => {
  1899. "use strict";
  1900. // See http://www.robvanderwoude.com/escapechars.php
  1901. const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
  1902. function escapeCommand(arg) {
  1903. // Escape meta chars
  1904. arg = arg.replace(metaCharsRegExp, '^$1');
  1905. return arg;
  1906. }
  1907. function escapeArgument(arg, doubleEscapeMetaChars) {
  1908. // Convert to string
  1909. arg = `${arg}`;
  1910. // Algorithm below is based on https://qntm.org/cmd
  1911. // Sequence of backslashes followed by a double quote:
  1912. // double up all the backslashes and escape the double quote
  1913. arg = arg.replace(/(\\*)"/g, '$1$1\\"');
  1914. // Sequence of backslashes followed by the end of the string
  1915. // (which will become a double quote later):
  1916. // double up all the backslashes
  1917. arg = arg.replace(/(\\*)$/, '$1$1');
  1918. // All other backslashes occur literally
  1919. // Quote the whole thing:
  1920. arg = `"${arg}"`;
  1921. // Escape meta chars
  1922. arg = arg.replace(metaCharsRegExp, '^$1');
  1923. // Double escape meta chars if necessary
  1924. if (doubleEscapeMetaChars) {
  1925. arg = arg.replace(metaCharsRegExp, '^$1');
  1926. }
  1927. return arg;
  1928. }
  1929. module.exports.command = escapeCommand;
  1930. module.exports.argument = escapeArgument;
  1931. /***/ }),
  1932. /***/ 97550:
  1933. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1934. "use strict";
  1935. const fs = __webpack_require__(35747);
  1936. const shebangCommand = __webpack_require__(92063);
  1937. function readShebang(command) {
  1938. // Read the first 150 bytes from the file
  1939. const size = 150;
  1940. let buffer;
  1941. if (Buffer.alloc) {
  1942. // Node.js v4.5+ / v5.10+
  1943. buffer = Buffer.alloc(size);
  1944. } else {
  1945. // Old Node.js API
  1946. buffer = new Buffer(size);
  1947. buffer.fill(0); // zero-fill
  1948. }
  1949. let fd;
  1950. try {
  1951. fd = fs.openSync(command, 'r');
  1952. fs.readSync(fd, buffer, 0, size, 0);
  1953. fs.closeSync(fd);
  1954. } catch (e) { /* Empty */ }
  1955. // Attempt to extract shebang (null is returned if not a shebang)
  1956. return shebangCommand(buffer.toString());
  1957. }
  1958. module.exports = readShebang;
  1959. /***/ }),
  1960. /***/ 52202:
  1961. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1962. "use strict";
  1963. const path = __webpack_require__(85622);
  1964. const which = __webpack_require__(22806);
  1965. const pathKey = __webpack_require__(3024)();
  1966. function resolveCommandAttempt(parsed, withoutPathExt) {
  1967. const cwd = process.cwd();
  1968. const hasCustomCwd = parsed.options.cwd != null;
  1969. // If a custom `cwd` was specified, we need to change the process cwd
  1970. // because `which` will do stat calls but does not support a custom cwd
  1971. if (hasCustomCwd) {
  1972. try {
  1973. process.chdir(parsed.options.cwd);
  1974. } catch (err) {
  1975. /* Empty */
  1976. }
  1977. }
  1978. let resolved;
  1979. try {
  1980. resolved = which.sync(parsed.command, {
  1981. path: (parsed.options.env || process.env)[pathKey],
  1982. pathExt: withoutPathExt ? path.delimiter : undefined,
  1983. });
  1984. } catch (e) {
  1985. /* Empty */
  1986. } finally {
  1987. process.chdir(cwd);
  1988. }
  1989. // If we successfully resolved, ensure that an absolute path is returned
  1990. // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
  1991. if (resolved) {
  1992. resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
  1993. }
  1994. return resolved;
  1995. }
  1996. function resolveCommand(parsed) {
  1997. return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
  1998. }
  1999. module.exports = resolveCommand;
  2000. /***/ }),
  2001. /***/ 73631:
  2002. /***/ ((module, exports) => {
  2003. exports = module.exports = SemVer
  2004. var debug
  2005. /* istanbul ignore next */
  2006. if (typeof process === 'object' &&
  2007. process.env &&
  2008. process.env.NODE_DEBUG &&
  2009. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  2010. debug = function () {
  2011. var args = Array.prototype.slice.call(arguments, 0)
  2012. args.unshift('SEMVER')
  2013. console.log.apply(console, args)
  2014. }
  2015. } else {
  2016. debug = function () {}
  2017. }
  2018. // Note: this is the semver.org version of the spec that it implements
  2019. // Not necessarily the package version of this code.
  2020. exports.SEMVER_SPEC_VERSION = '2.0.0'
  2021. var MAX_LENGTH = 256
  2022. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  2023. /* istanbul ignore next */ 9007199254740991
  2024. // Max safe segment length for coercion.
  2025. var MAX_SAFE_COMPONENT_LENGTH = 16
  2026. // The actual regexps go on exports.re
  2027. var re = exports.re = []
  2028. var src = exports.src = []
  2029. var R = 0
  2030. // The following Regular Expressions can be used for tokenizing,
  2031. // validating, and parsing SemVer version strings.
  2032. // ## Numeric Identifier
  2033. // A single `0`, or a non-zero digit followed by zero or more digits.
  2034. var NUMERICIDENTIFIER = R++
  2035. src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  2036. var NUMERICIDENTIFIERLOOSE = R++
  2037. src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  2038. // ## Non-numeric Identifier
  2039. // Zero or more digits, followed by a letter or hyphen, and then zero or
  2040. // more letters, digits, or hyphens.
  2041. var NONNUMERICIDENTIFIER = R++
  2042. src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  2043. // ## Main Version
  2044. // Three dot-separated numeric identifiers.
  2045. var MAINVERSION = R++
  2046. src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  2047. '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  2048. '(' + src[NUMERICIDENTIFIER] + ')'
  2049. var MAINVERSIONLOOSE = R++
  2050. src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  2051. '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  2052. '(' + src[NUMERICIDENTIFIERLOOSE] + ')'
  2053. // ## Pre-release Version Identifier
  2054. // A numeric identifier, or a non-numeric identifier.
  2055. var PRERELEASEIDENTIFIER = R++
  2056. src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
  2057. '|' + src[NONNUMERICIDENTIFIER] + ')'
  2058. var PRERELEASEIDENTIFIERLOOSE = R++
  2059. src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
  2060. '|' + src[NONNUMERICIDENTIFIER] + ')'
  2061. // ## Pre-release Version
  2062. // Hyphen, followed by one or more dot-separated pre-release version
  2063. // identifiers.
  2064. var PRERELEASE = R++
  2065. src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
  2066. '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
  2067. var PRERELEASELOOSE = R++
  2068. src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
  2069. '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
  2070. // ## Build Metadata Identifier
  2071. // Any combination of digits, letters, or hyphens.
  2072. var BUILDIDENTIFIER = R++
  2073. src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  2074. // ## Build Metadata
  2075. // Plus sign, followed by one or more period-separated build metadata
  2076. // identifiers.
  2077. var BUILD = R++
  2078. src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
  2079. '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
  2080. // ## Full Version String
  2081. // A main version, followed optionally by a pre-release version and
  2082. // build metadata.
  2083. // Note that the only major, minor, patch, and pre-release sections of
  2084. // the version string are capturing groups. The build metadata is not a
  2085. // capturing group, because it should not ever be used in version
  2086. // comparison.
  2087. var FULL = R++
  2088. var FULLPLAIN = 'v?' + src[MAINVERSION] +
  2089. src[PRERELEASE] + '?' +
  2090. src[BUILD] + '?'
  2091. src[FULL] = '^' + FULLPLAIN + '$'
  2092. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  2093. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  2094. // common in the npm registry.
  2095. var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
  2096. src[PRERELEASELOOSE] + '?' +
  2097. src[BUILD] + '?'
  2098. var LOOSE = R++
  2099. src[LOOSE] = '^' + LOOSEPLAIN + '$'
  2100. var GTLT = R++
  2101. src[GTLT] = '((?:<|>)?=?)'
  2102. // Something like "2.*" or "1.2.x".
  2103. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  2104. // Only the first item is strictly required.
  2105. var XRANGEIDENTIFIERLOOSE = R++
  2106. src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  2107. var XRANGEIDENTIFIER = R++
  2108. src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
  2109. var XRANGEPLAIN = R++
  2110. src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
  2111. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  2112. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  2113. '(?:' + src[PRERELEASE] + ')?' +
  2114. src[BUILD] + '?' +
  2115. ')?)?'
  2116. var XRANGEPLAINLOOSE = R++
  2117. src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  2118. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  2119. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  2120. '(?:' + src[PRERELEASELOOSE] + ')?' +
  2121. src[BUILD] + '?' +
  2122. ')?)?'
  2123. var XRANGE = R++
  2124. src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
  2125. var XRANGELOOSE = R++
  2126. src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
  2127. // Coercion.
  2128. // Extract anything that could conceivably be a part of a valid semver
  2129. var COERCE = R++
  2130. src[COERCE] = '(?:^|[^\\d])' +
  2131. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  2132. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  2133. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  2134. '(?:$|[^\\d])'
  2135. // Tilde ranges.
  2136. // Meaning is "reasonably at or greater than"
  2137. var LONETILDE = R++
  2138. src[LONETILDE] = '(?:~>?)'
  2139. var TILDETRIM = R++
  2140. src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
  2141. re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
  2142. var tildeTrimReplace = '$1~'
  2143. var TILDE = R++
  2144. src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
  2145. var TILDELOOSE = R++
  2146. src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
  2147. // Caret ranges.
  2148. // Meaning is "at least and backwards compatible with"
  2149. var LONECARET = R++
  2150. src[LONECARET] = '(?:\\^)'
  2151. var CARETTRIM = R++
  2152. src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
  2153. re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
  2154. var caretTrimReplace = '$1^'
  2155. var CARET = R++
  2156. src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
  2157. var CARETLOOSE = R++
  2158. src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
  2159. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  2160. var COMPARATORLOOSE = R++
  2161. src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
  2162. var COMPARATOR = R++
  2163. src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
  2164. // An expression to strip any whitespace between the gtlt and the thing
  2165. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  2166. var COMPARATORTRIM = R++
  2167. src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
  2168. '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
  2169. // this one has to use the /g flag
  2170. re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
  2171. var comparatorTrimReplace = '$1$2$3'
  2172. // Something like `1.2.3 - 1.2.4`
  2173. // Note that these all use the loose form, because they'll be
  2174. // checked against either the strict or loose comparator form
  2175. // later.
  2176. var HYPHENRANGE = R++
  2177. src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
  2178. '\\s+-\\s+' +
  2179. '(' + src[XRANGEPLAIN] + ')' +
  2180. '\\s*$'
  2181. var HYPHENRANGELOOSE = R++
  2182. src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
  2183. '\\s+-\\s+' +
  2184. '(' + src[XRANGEPLAINLOOSE] + ')' +
  2185. '\\s*$'
  2186. // Star ranges basically just allow anything at all.
  2187. var STAR = R++
  2188. src[STAR] = '(<|>)?=?\\s*\\*'
  2189. // Compile to actual regexp objects.
  2190. // All are flag-free, unless they were created above with a flag.
  2191. for (var i = 0; i < R; i++) {
  2192. debug(i, src[i])
  2193. if (!re[i]) {
  2194. re[i] = new RegExp(src[i])
  2195. }
  2196. }
  2197. exports.parse = parse
  2198. function parse (version, options) {
  2199. if (!options || typeof options !== 'object') {
  2200. options = {
  2201. loose: !!options,
  2202. includePrerelease: false
  2203. }
  2204. }
  2205. if (version instanceof SemVer) {
  2206. return version
  2207. }
  2208. if (typeof version !== 'string') {
  2209. return null
  2210. }
  2211. if (version.length > MAX_LENGTH) {
  2212. return null
  2213. }
  2214. var r = options.loose ? re[LOOSE] : re[FULL]
  2215. if (!r.test(version)) {
  2216. return null
  2217. }
  2218. try {
  2219. return new SemVer(version, options)
  2220. } catch (er) {
  2221. return null
  2222. }
  2223. }
  2224. exports.valid = valid
  2225. function valid (version, options) {
  2226. var v = parse(version, options)
  2227. return v ? v.version : null
  2228. }
  2229. exports.clean = clean
  2230. function clean (version, options) {
  2231. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  2232. return s ? s.version : null
  2233. }
  2234. exports.SemVer = SemVer
  2235. function SemVer (version, options) {
  2236. if (!options || typeof options !== 'object') {
  2237. options = {
  2238. loose: !!options,
  2239. includePrerelease: false
  2240. }
  2241. }
  2242. if (version instanceof SemVer) {
  2243. if (version.loose === options.loose) {
  2244. return version
  2245. } else {
  2246. version = version.version
  2247. }
  2248. } else if (typeof version !== 'string') {
  2249. throw new TypeError('Invalid Version: ' + version)
  2250. }
  2251. if (version.length > MAX_LENGTH) {
  2252. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  2253. }
  2254. if (!(this instanceof SemVer)) {
  2255. return new SemVer(version, options)
  2256. }
  2257. debug('SemVer', version, options)
  2258. this.options = options
  2259. this.loose = !!options.loose
  2260. var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
  2261. if (!m) {
  2262. throw new TypeError('Invalid Version: ' + version)
  2263. }
  2264. this.raw = version
  2265. // these are actually numbers
  2266. this.major = +m[1]
  2267. this.minor = +m[2]
  2268. this.patch = +m[3]
  2269. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  2270. throw new TypeError('Invalid major version')
  2271. }
  2272. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  2273. throw new TypeError('Invalid minor version')
  2274. }
  2275. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  2276. throw new TypeError('Invalid patch version')
  2277. }
  2278. // numberify any prerelease numeric ids
  2279. if (!m[4]) {
  2280. this.prerelease = []
  2281. } else {
  2282. this.prerelease = m[4].split('.').map(function (id) {
  2283. if (/^[0-9]+$/.test(id)) {
  2284. var num = +id
  2285. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  2286. return num
  2287. }
  2288. }
  2289. return id
  2290. })
  2291. }
  2292. this.build = m[5] ? m[5].split('.') : []
  2293. this.format()
  2294. }
  2295. SemVer.prototype.format = function () {
  2296. this.version = this.major + '.' + this.minor + '.' + this.patch
  2297. if (this.prerelease.length) {
  2298. this.version += '-' + this.prerelease.join('.')
  2299. }
  2300. return this.version
  2301. }
  2302. SemVer.prototype.toString = function () {
  2303. return this.version
  2304. }
  2305. SemVer.prototype.compare = function (other) {
  2306. debug('SemVer.compare', this.version, this.options, other)
  2307. if (!(other instanceof SemVer)) {
  2308. other = new SemVer(other, this.options)
  2309. }
  2310. return this.compareMain(other) || this.comparePre(other)
  2311. }
  2312. SemVer.prototype.compareMain = function (other) {
  2313. if (!(other instanceof SemVer)) {
  2314. other = new SemVer(other, this.options)
  2315. }
  2316. return compareIdentifiers(this.major, other.major) ||
  2317. compareIdentifiers(this.minor, other.minor) ||
  2318. compareIdentifiers(this.patch, other.patch)
  2319. }
  2320. SemVer.prototype.comparePre = function (other) {
  2321. if (!(other instanceof SemVer)) {
  2322. other = new SemVer(other, this.options)
  2323. }
  2324. // NOT having a prerelease is > having one
  2325. if (this.prerelease.length && !other.prerelease.length) {
  2326. return -1
  2327. } else if (!this.prerelease.length && other.prerelease.length) {
  2328. return 1
  2329. } else if (!this.prerelease.length && !other.prerelease.length) {
  2330. return 0
  2331. }
  2332. var i = 0
  2333. do {
  2334. var a = this.prerelease[i]
  2335. var b = other.prerelease[i]
  2336. debug('prerelease compare', i, a, b)
  2337. if (a === undefined && b === undefined) {
  2338. return 0
  2339. } else if (b === undefined) {
  2340. return 1
  2341. } else if (a === undefined) {
  2342. return -1
  2343. } else if (a === b) {
  2344. continue
  2345. } else {
  2346. return compareIdentifiers(a, b)
  2347. }
  2348. } while (++i)
  2349. }
  2350. // preminor will bump the version up to the next minor release, and immediately
  2351. // down to pre-release. premajor and prepatch work the same way.
  2352. SemVer.prototype.inc = function (release, identifier) {
  2353. switch (release) {
  2354. case 'premajor':
  2355. this.prerelease.length = 0
  2356. this.patch = 0
  2357. this.minor = 0
  2358. this.major++
  2359. this.inc('pre', identifier)
  2360. break
  2361. case 'preminor':
  2362. this.prerelease.length = 0
  2363. this.patch = 0
  2364. this.minor++
  2365. this.inc('pre', identifier)
  2366. break
  2367. case 'prepatch':
  2368. // If this is already a prerelease, it will bump to the next version
  2369. // drop any prereleases that might already exist, since they are not
  2370. // relevant at this point.
  2371. this.prerelease.length = 0
  2372. this.inc('patch', identifier)
  2373. this.inc('pre', identifier)
  2374. break
  2375. // If the input is a non-prerelease version, this acts the same as
  2376. // prepatch.
  2377. case 'prerelease':
  2378. if (this.prerelease.length === 0) {
  2379. this.inc('patch', identifier)
  2380. }
  2381. this.inc('pre', identifier)
  2382. break
  2383. case 'major':
  2384. // If this is a pre-major version, bump up to the same major version.
  2385. // Otherwise increment major.
  2386. // 1.0.0-5 bumps to 1.0.0
  2387. // 1.1.0 bumps to 2.0.0
  2388. if (this.minor !== 0 ||
  2389. this.patch !== 0 ||
  2390. this.prerelease.length === 0) {
  2391. this.major++
  2392. }
  2393. this.minor = 0
  2394. this.patch = 0
  2395. this.prerelease = []
  2396. break
  2397. case 'minor':
  2398. // If this is a pre-minor version, bump up to the same minor version.
  2399. // Otherwise increment minor.
  2400. // 1.2.0-5 bumps to 1.2.0
  2401. // 1.2.1 bumps to 1.3.0
  2402. if (this.patch !== 0 || this.prerelease.length === 0) {
  2403. this.minor++
  2404. }
  2405. this.patch = 0
  2406. this.prerelease = []
  2407. break
  2408. case 'patch':
  2409. // If this is not a pre-release version, it will increment the patch.
  2410. // If it is a pre-release it will bump up to the same patch version.
  2411. // 1.2.0-5 patches to 1.2.0
  2412. // 1.2.0 patches to 1.2.1
  2413. if (this.prerelease.length === 0) {
  2414. this.patch++
  2415. }
  2416. this.prerelease = []
  2417. break
  2418. // This probably shouldn't be used publicly.
  2419. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  2420. case 'pre':
  2421. if (this.prerelease.length === 0) {
  2422. this.prerelease = [0]
  2423. } else {
  2424. var i = this.prerelease.length
  2425. while (--i >= 0) {
  2426. if (typeof this.prerelease[i] === 'number') {
  2427. this.prerelease[i]++
  2428. i = -2
  2429. }
  2430. }
  2431. if (i === -1) {
  2432. // didn't increment anything
  2433. this.prerelease.push(0)
  2434. }
  2435. }
  2436. if (identifier) {
  2437. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  2438. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  2439. if (this.prerelease[0] === identifier) {
  2440. if (isNaN(this.prerelease[1])) {
  2441. this.prerelease = [identifier, 0]
  2442. }
  2443. } else {
  2444. this.prerelease = [identifier, 0]
  2445. }
  2446. }
  2447. break
  2448. default:
  2449. throw new Error('invalid increment argument: ' + release)
  2450. }
  2451. this.format()
  2452. this.raw = this.version
  2453. return this
  2454. }
  2455. exports.inc = inc
  2456. function inc (version, release, loose, identifier) {
  2457. if (typeof (loose) === 'string') {
  2458. identifier = loose
  2459. loose = undefined
  2460. }
  2461. try {
  2462. return new SemVer(version, loose).inc(release, identifier).version
  2463. } catch (er) {
  2464. return null
  2465. }
  2466. }
  2467. exports.diff = diff
  2468. function diff (version1, version2) {
  2469. if (eq(version1, version2)) {
  2470. return null
  2471. } else {
  2472. var v1 = parse(version1)
  2473. var v2 = parse(version2)
  2474. var prefix = ''
  2475. if (v1.prerelease.length || v2.prerelease.length) {
  2476. prefix = 'pre'
  2477. var defaultResult = 'prerelease'
  2478. }
  2479. for (var key in v1) {
  2480. if (key === 'major' || key === 'minor' || key === 'patch') {
  2481. if (v1[key] !== v2[key]) {
  2482. return prefix + key
  2483. }
  2484. }
  2485. }
  2486. return defaultResult // may be undefined
  2487. }
  2488. }
  2489. exports.compareIdentifiers = compareIdentifiers
  2490. var numeric = /^[0-9]+$/
  2491. function compareIdentifiers (a, b) {
  2492. var anum = numeric.test(a)
  2493. var bnum = numeric.test(b)
  2494. if (anum && bnum) {
  2495. a = +a
  2496. b = +b
  2497. }
  2498. return a === b ? 0
  2499. : (anum && !bnum) ? -1
  2500. : (bnum && !anum) ? 1
  2501. : a < b ? -1
  2502. : 1
  2503. }
  2504. exports.rcompareIdentifiers = rcompareIdentifiers
  2505. function rcompareIdentifiers (a, b) {
  2506. return compareIdentifiers(b, a)
  2507. }
  2508. exports.major = major
  2509. function major (a, loose) {
  2510. return new SemVer(a, loose).major
  2511. }
  2512. exports.minor = minor
  2513. function minor (a, loose) {
  2514. return new SemVer(a, loose).minor
  2515. }
  2516. exports.patch = patch
  2517. function patch (a, loose) {
  2518. return new SemVer(a, loose).patch
  2519. }
  2520. exports.compare = compare
  2521. function compare (a, b, loose) {
  2522. return new SemVer(a, loose).compare(new SemVer(b, loose))
  2523. }
  2524. exports.compareLoose = compareLoose
  2525. function compareLoose (a, b) {
  2526. return compare(a, b, true)
  2527. }
  2528. exports.rcompare = rcompare
  2529. function rcompare (a, b, loose) {
  2530. return compare(b, a, loose)
  2531. }
  2532. exports.sort = sort
  2533. function sort (list, loose) {
  2534. return list.sort(function (a, b) {
  2535. return exports.compare(a, b, loose)
  2536. })
  2537. }
  2538. exports.rsort = rsort
  2539. function rsort (list, loose) {
  2540. return list.sort(function (a, b) {
  2541. return exports.rcompare(a, b, loose)
  2542. })
  2543. }
  2544. exports.gt = gt
  2545. function gt (a, b, loose) {
  2546. return compare(a, b, loose) > 0
  2547. }
  2548. exports.lt = lt
  2549. function lt (a, b, loose) {
  2550. return compare(a, b, loose) < 0
  2551. }
  2552. exports.eq = eq
  2553. function eq (a, b, loose) {
  2554. return compare(a, b, loose) === 0
  2555. }
  2556. exports.neq = neq
  2557. function neq (a, b, loose) {
  2558. return compare(a, b, loose) !== 0
  2559. }
  2560. exports.gte = gte
  2561. function gte (a, b, loose) {
  2562. return compare(a, b, loose) >= 0
  2563. }
  2564. exports.lte = lte
  2565. function lte (a, b, loose) {
  2566. return compare(a, b, loose) <= 0
  2567. }
  2568. exports.cmp = cmp
  2569. function cmp (a, op, b, loose) {
  2570. switch (op) {
  2571. case '===':
  2572. if (typeof a === 'object')
  2573. a = a.version
  2574. if (typeof b === 'object')
  2575. b = b.version
  2576. return a === b
  2577. case '!==':
  2578. if (typeof a === 'object')
  2579. a = a.version
  2580. if (typeof b === 'object')
  2581. b = b.version
  2582. return a !== b
  2583. case '':
  2584. case '=':
  2585. case '==':
  2586. return eq(a, b, loose)
  2587. case '!=':
  2588. return neq(a, b, loose)
  2589. case '>':
  2590. return gt(a, b, loose)
  2591. case '>=':
  2592. return gte(a, b, loose)
  2593. case '<':
  2594. return lt(a, b, loose)
  2595. case '<=':
  2596. return lte(a, b, loose)
  2597. default:
  2598. throw new TypeError('Invalid operator: ' + op)
  2599. }
  2600. }
  2601. exports.Comparator = Comparator
  2602. function Comparator (comp, options) {
  2603. if (!options || typeof options !== 'object') {
  2604. options = {
  2605. loose: !!options,
  2606. includePrerelease: false
  2607. }
  2608. }
  2609. if (comp instanceof Comparator) {
  2610. if (comp.loose === !!options.loose) {
  2611. return comp
  2612. } else {
  2613. comp = comp.value
  2614. }
  2615. }
  2616. if (!(this instanceof Comparator)) {
  2617. return new Comparator(comp, options)
  2618. }
  2619. debug('comparator', comp, options)
  2620. this.options = options
  2621. this.loose = !!options.loose
  2622. this.parse(comp)
  2623. if (this.semver === ANY) {
  2624. this.value = ''
  2625. } else {
  2626. this.value = this.operator + this.semver.version
  2627. }
  2628. debug('comp', this)
  2629. }
  2630. var ANY = {}
  2631. Comparator.prototype.parse = function (comp) {
  2632. var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  2633. var m = comp.match(r)
  2634. if (!m) {
  2635. throw new TypeError('Invalid comparator: ' + comp)
  2636. }
  2637. this.operator = m[1]
  2638. if (this.operator === '=') {
  2639. this.operator = ''
  2640. }
  2641. // if it literally is just '>' or '' then allow anything.
  2642. if (!m[2]) {
  2643. this.semver = ANY
  2644. } else {
  2645. this.semver = new SemVer(m[2], this.options.loose)
  2646. }
  2647. }
  2648. Comparator.prototype.toString = function () {
  2649. return this.value
  2650. }
  2651. Comparator.prototype.test = function (version) {
  2652. debug('Comparator.test', version, this.options.loose)
  2653. if (this.semver === ANY) {
  2654. return true
  2655. }
  2656. if (typeof version === 'string') {
  2657. version = new SemVer(version, this.options)
  2658. }
  2659. return cmp(version, this.operator, this.semver, this.options)
  2660. }
  2661. Comparator.prototype.intersects = function (comp, options) {
  2662. if (!(comp instanceof Comparator)) {
  2663. throw new TypeError('a Comparator is required')
  2664. }
  2665. if (!options || typeof options !== 'object') {
  2666. options = {
  2667. loose: !!options,
  2668. includePrerelease: false
  2669. }
  2670. }
  2671. var rangeTmp
  2672. if (this.operator === '') {
  2673. rangeTmp = new Range(comp.value, options)
  2674. return satisfies(this.value, rangeTmp, options)
  2675. } else if (comp.operator === '') {
  2676. rangeTmp = new Range(this.value, options)
  2677. return satisfies(comp.semver, rangeTmp, options)
  2678. }
  2679. var sameDirectionIncreasing =
  2680. (this.operator === '>=' || this.operator === '>') &&
  2681. (comp.operator === '>=' || comp.operator === '>')
  2682. var sameDirectionDecreasing =
  2683. (this.operator === '<=' || this.operator === '<') &&
  2684. (comp.operator === '<=' || comp.operator === '<')
  2685. var sameSemVer = this.semver.version === comp.semver.version
  2686. var differentDirectionsInclusive =
  2687. (this.operator === '>=' || this.operator === '<=') &&
  2688. (comp.operator === '>=' || comp.operator === '<=')
  2689. var oppositeDirectionsLessThan =
  2690. cmp(this.semver, '<', comp.semver, options) &&
  2691. ((this.operator === '>=' || this.operator === '>') &&
  2692. (comp.operator === '<=' || comp.operator === '<'))
  2693. var oppositeDirectionsGreaterThan =
  2694. cmp(this.semver, '>', comp.semver, options) &&
  2695. ((this.operator === '<=' || this.operator === '<') &&
  2696. (comp.operator === '>=' || comp.operator === '>'))
  2697. return sameDirectionIncreasing || sameDirectionDecreasing ||
  2698. (sameSemVer && differentDirectionsInclusive) ||
  2699. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  2700. }
  2701. exports.Range = Range
  2702. function Range (range, options) {
  2703. if (!options || typeof options !== 'object') {
  2704. options = {
  2705. loose: !!options,
  2706. includePrerelease: false
  2707. }
  2708. }
  2709. if (range instanceof Range) {
  2710. if (range.loose === !!options.loose &&
  2711. range.includePrerelease === !!options.includePrerelease) {
  2712. return range
  2713. } else {
  2714. return new Range(range.raw, options)
  2715. }
  2716. }
  2717. if (range instanceof Comparator) {
  2718. return new Range(range.value, options)
  2719. }
  2720. if (!(this instanceof Range)) {
  2721. return new Range(range, options)
  2722. }
  2723. this.options = options
  2724. this.loose = !!options.loose
  2725. this.includePrerelease = !!options.includePrerelease
  2726. // First, split based on boolean or ||
  2727. this.raw = range
  2728. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  2729. return this.parseRange(range.trim())
  2730. }, this).filter(function (c) {
  2731. // throw out any that are not relevant for whatever reason
  2732. return c.length
  2733. })
  2734. if (!this.set.length) {
  2735. throw new TypeError('Invalid SemVer Range: ' + range)
  2736. }
  2737. this.format()
  2738. }
  2739. Range.prototype.format = function () {
  2740. this.range = this.set.map(function (comps) {
  2741. return comps.join(' ').trim()
  2742. }).join('||').trim()
  2743. return this.range
  2744. }
  2745. Range.prototype.toString = function () {
  2746. return this.range
  2747. }
  2748. Range.prototype.parseRange = function (range) {
  2749. var loose = this.options.loose
  2750. range = range.trim()
  2751. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  2752. var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
  2753. range = range.replace(hr, hyphenReplace)
  2754. debug('hyphen replace', range)
  2755. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  2756. range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
  2757. debug('comparator trim', range, re[COMPARATORTRIM])
  2758. // `~ 1.2.3` => `~1.2.3`
  2759. range = range.replace(re[TILDETRIM], tildeTrimReplace)
  2760. // `^ 1.2.3` => `^1.2.3`
  2761. range = range.replace(re[CARETTRIM], caretTrimReplace)
  2762. // normalize spaces
  2763. range = range.split(/\s+/).join(' ')
  2764. // At this point, the range is completely trimmed and
  2765. // ready to be split into comparators.
  2766. var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  2767. var set = range.split(' ').map(function (comp) {
  2768. return parseComparator(comp, this.options)
  2769. }, this).join(' ').split(/\s+/)
  2770. if (this.options.loose) {
  2771. // in loose mode, throw out any that are not valid comparators
  2772. set = set.filter(function (comp) {
  2773. return !!comp.match(compRe)
  2774. })
  2775. }
  2776. set = set.map(function (comp) {
  2777. return new Comparator(comp, this.options)
  2778. }, this)
  2779. return set
  2780. }
  2781. Range.prototype.intersects = function (range, options) {
  2782. if (!(range instanceof Range)) {
  2783. throw new TypeError('a Range is required')
  2784. }
  2785. return this.set.some(function (thisComparators) {
  2786. return thisComparators.every(function (thisComparator) {
  2787. return range.set.some(function (rangeComparators) {
  2788. return rangeComparators.every(function (rangeComparator) {
  2789. return thisComparator.intersects(rangeComparator, options)
  2790. })
  2791. })
  2792. })
  2793. })
  2794. }
  2795. // Mostly just for testing and legacy API reasons
  2796. exports.toComparators = toComparators
  2797. function toComparators (range, options) {
  2798. return new Range(range, options).set.map(function (comp) {
  2799. return comp.map(function (c) {
  2800. return c.value
  2801. }).join(' ').trim().split(' ')
  2802. })
  2803. }
  2804. // comprised of xranges, tildes, stars, and gtlt's at this point.
  2805. // already replaced the hyphen ranges
  2806. // turn into a set of JUST comparators.
  2807. function parseComparator (comp, options) {
  2808. debug('comp', comp, options)
  2809. comp = replaceCarets(comp, options)
  2810. debug('caret', comp)
  2811. comp = replaceTildes(comp, options)
  2812. debug('tildes', comp)
  2813. comp = replaceXRanges(comp, options)
  2814. debug('xrange', comp)
  2815. comp = replaceStars(comp, options)
  2816. debug('stars', comp)
  2817. return comp
  2818. }
  2819. function isX (id) {
  2820. return !id || id.toLowerCase() === 'x' || id === '*'
  2821. }
  2822. // ~, ~> --> * (any, kinda silly)
  2823. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  2824. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  2825. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  2826. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  2827. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  2828. function replaceTildes (comp, options) {
  2829. return comp.trim().split(/\s+/).map(function (comp) {
  2830. return replaceTilde(comp, options)
  2831. }).join(' ')
  2832. }
  2833. function replaceTilde (comp, options) {
  2834. var r = options.loose ? re[TILDELOOSE] : re[TILDE]
  2835. return comp.replace(r, function (_, M, m, p, pr) {
  2836. debug('tilde', comp, _, M, m, p, pr)
  2837. var ret
  2838. if (isX(M)) {
  2839. ret = ''
  2840. } else if (isX(m)) {
  2841. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  2842. } else if (isX(p)) {
  2843. // ~1.2 == >=1.2.0 <1.3.0
  2844. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  2845. } else if (pr) {
  2846. debug('replaceTilde pr', pr)
  2847. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  2848. ' <' + M + '.' + (+m + 1) + '.0'
  2849. } else {
  2850. // ~1.2.3 == >=1.2.3 <1.3.0
  2851. ret = '>=' + M + '.' + m + '.' + p +
  2852. ' <' + M + '.' + (+m + 1) + '.0'
  2853. }
  2854. debug('tilde return', ret)
  2855. return ret
  2856. })
  2857. }
  2858. // ^ --> * (any, kinda silly)
  2859. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  2860. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  2861. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  2862. // ^1.2.3 --> >=1.2.3 <2.0.0
  2863. // ^1.2.0 --> >=1.2.0 <2.0.0
  2864. function replaceCarets (comp, options) {
  2865. return comp.trim().split(/\s+/).map(function (comp) {
  2866. return replaceCaret(comp, options)
  2867. }).join(' ')
  2868. }
  2869. function replaceCaret (comp, options) {
  2870. debug('caret', comp, options)
  2871. var r = options.loose ? re[CARETLOOSE] : re[CARET]
  2872. return comp.replace(r, function (_, M, m, p, pr) {
  2873. debug('caret', comp, _, M, m, p, pr)
  2874. var ret
  2875. if (isX(M)) {
  2876. ret = ''
  2877. } else if (isX(m)) {
  2878. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  2879. } else if (isX(p)) {
  2880. if (M === '0') {
  2881. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  2882. } else {
  2883. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  2884. }
  2885. } else if (pr) {
  2886. debug('replaceCaret pr', pr)
  2887. if (M === '0') {
  2888. if (m === '0') {
  2889. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  2890. ' <' + M + '.' + m + '.' + (+p + 1)
  2891. } else {
  2892. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  2893. ' <' + M + '.' + (+m + 1) + '.0'
  2894. }
  2895. } else {
  2896. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  2897. ' <' + (+M + 1) + '.0.0'
  2898. }
  2899. } else {
  2900. debug('no pr')
  2901. if (M === '0') {
  2902. if (m === '0') {
  2903. ret = '>=' + M + '.' + m + '.' + p +
  2904. ' <' + M + '.' + m + '.' + (+p + 1)
  2905. } else {
  2906. ret = '>=' + M + '.' + m + '.' + p +
  2907. ' <' + M + '.' + (+m + 1) + '.0'
  2908. }
  2909. } else {
  2910. ret = '>=' + M + '.' + m + '.' + p +
  2911. ' <' + (+M + 1) + '.0.0'
  2912. }
  2913. }
  2914. debug('caret return', ret)
  2915. return ret
  2916. })
  2917. }
  2918. function replaceXRanges (comp, options) {
  2919. debug('replaceXRanges', comp, options)
  2920. return comp.split(/\s+/).map(function (comp) {
  2921. return replaceXRange(comp, options)
  2922. }).join(' ')
  2923. }
  2924. function replaceXRange (comp, options) {
  2925. comp = comp.trim()
  2926. var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
  2927. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  2928. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  2929. var xM = isX(M)
  2930. var xm = xM || isX(m)
  2931. var xp = xm || isX(p)
  2932. var anyX = xp
  2933. if (gtlt === '=' && anyX) {
  2934. gtlt = ''
  2935. }
  2936. if (xM) {
  2937. if (gtlt === '>' || gtlt === '<') {
  2938. // nothing is allowed
  2939. ret = '<0.0.0'
  2940. } else {
  2941. // nothing is forbidden
  2942. ret = '*'
  2943. }
  2944. } else if (gtlt && anyX) {
  2945. // we know patch is an x, because we have any x at all.
  2946. // replace X with 0
  2947. if (xm) {
  2948. m = 0
  2949. }
  2950. p = 0
  2951. if (gtlt === '>') {
  2952. // >1 => >=2.0.0
  2953. // >1.2 => >=1.3.0
  2954. // >1.2.3 => >= 1.2.4
  2955. gtlt = '>='
  2956. if (xm) {
  2957. M = +M + 1
  2958. m = 0
  2959. p = 0
  2960. } else {
  2961. m = +m + 1
  2962. p = 0
  2963. }
  2964. } else if (gtlt === '<=') {
  2965. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  2966. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  2967. gtlt = '<'
  2968. if (xm) {
  2969. M = +M + 1
  2970. } else {
  2971. m = +m + 1
  2972. }
  2973. }
  2974. ret = gtlt + M + '.' + m + '.' + p
  2975. } else if (xm) {
  2976. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  2977. } else if (xp) {
  2978. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  2979. }
  2980. debug('xRange return', ret)
  2981. return ret
  2982. })
  2983. }
  2984. // Because * is AND-ed with everything else in the comparator,
  2985. // and '' means "any version", just remove the *s entirely.
  2986. function replaceStars (comp, options) {
  2987. debug('replaceStars', comp, options)
  2988. // Looseness is ignored here. star is always as loose as it gets!
  2989. return comp.trim().replace(re[STAR], '')
  2990. }
  2991. // This function is passed to string.replace(re[HYPHENRANGE])
  2992. // M, m, patch, prerelease, build
  2993. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  2994. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  2995. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  2996. function hyphenReplace ($0,
  2997. from, fM, fm, fp, fpr, fb,
  2998. to, tM, tm, tp, tpr, tb) {
  2999. if (isX(fM)) {
  3000. from = ''
  3001. } else if (isX(fm)) {
  3002. from = '>=' + fM + '.0.0'
  3003. } else if (isX(fp)) {
  3004. from = '>=' + fM + '.' + fm + '.0'
  3005. } else {
  3006. from = '>=' + from
  3007. }
  3008. if (isX(tM)) {
  3009. to = ''
  3010. } else if (isX(tm)) {
  3011. to = '<' + (+tM + 1) + '.0.0'
  3012. } else if (isX(tp)) {
  3013. to = '<' + tM + '.' + (+tm + 1) + '.0'
  3014. } else if (tpr) {
  3015. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  3016. } else {
  3017. to = '<=' + to
  3018. }
  3019. return (from + ' ' + to).trim()
  3020. }
  3021. // if ANY of the sets match ALL of its comparators, then pass
  3022. Range.prototype.test = function (version) {
  3023. if (!version) {
  3024. return false
  3025. }
  3026. if (typeof version === 'string') {
  3027. version = new SemVer(version, this.options)
  3028. }
  3029. for (var i = 0; i < this.set.length; i++) {
  3030. if (testSet(this.set[i], version, this.options)) {
  3031. return true
  3032. }
  3033. }
  3034. return false
  3035. }
  3036. function testSet (set, version, options) {
  3037. for (var i = 0; i < set.length; i++) {
  3038. if (!set[i].test(version)) {
  3039. return false
  3040. }
  3041. }
  3042. if (version.prerelease.length && !options.includePrerelease) {
  3043. // Find the set of versions that are allowed to have prereleases
  3044. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  3045. // That should allow `1.2.3-pr.2` to pass.
  3046. // However, `1.2.4-alpha.notready` should NOT be allowed,
  3047. // even though it's within the range set by the comparators.
  3048. for (i = 0; i < set.length; i++) {
  3049. debug(set[i].semver)
  3050. if (set[i].semver === ANY) {
  3051. continue
  3052. }
  3053. if (set[i].semver.prerelease.length > 0) {
  3054. var allowed = set[i].semver
  3055. if (allowed.major === version.major &&
  3056. allowed.minor === version.minor &&
  3057. allowed.patch === version.patch) {
  3058. return true
  3059. }
  3060. }
  3061. }
  3062. // Version has a -pre, but it's not one of the ones we like.
  3063. return false
  3064. }
  3065. return true
  3066. }
  3067. exports.satisfies = satisfies
  3068. function satisfies (version, range, options) {
  3069. try {
  3070. range = new Range(range, options)
  3071. } catch (er) {
  3072. return false
  3073. }
  3074. return range.test(version)
  3075. }
  3076. exports.maxSatisfying = maxSatisfying
  3077. function maxSatisfying (versions, range, options) {
  3078. var max = null
  3079. var maxSV = null
  3080. try {
  3081. var rangeObj = new Range(range, options)
  3082. } catch (er) {
  3083. return null
  3084. }
  3085. versions.forEach(function (v) {
  3086. if (rangeObj.test(v)) {
  3087. // satisfies(v, range, options)
  3088. if (!max || maxSV.compare(v) === -1) {
  3089. // compare(max, v, true)
  3090. max = v
  3091. maxSV = new SemVer(max, options)
  3092. }
  3093. }
  3094. })
  3095. return max
  3096. }
  3097. exports.minSatisfying = minSatisfying
  3098. function minSatisfying (versions, range, options) {
  3099. var min = null
  3100. var minSV = null
  3101. try {
  3102. var rangeObj = new Range(range, options)
  3103. } catch (er) {
  3104. return null
  3105. }
  3106. versions.forEach(function (v) {
  3107. if (rangeObj.test(v)) {
  3108. // satisfies(v, range, options)
  3109. if (!min || minSV.compare(v) === 1) {
  3110. // compare(min, v, true)
  3111. min = v
  3112. minSV = new SemVer(min, options)
  3113. }
  3114. }
  3115. })
  3116. return min
  3117. }
  3118. exports.minVersion = minVersion
  3119. function minVersion (range, loose) {
  3120. range = new Range(range, loose)
  3121. var minver = new SemVer('0.0.0')
  3122. if (range.test(minver)) {
  3123. return minver
  3124. }
  3125. minver = new SemVer('0.0.0-0')
  3126. if (range.test(minver)) {
  3127. return minver
  3128. }
  3129. minver = null
  3130. for (var i = 0; i < range.set.length; ++i) {
  3131. var comparators = range.set[i]
  3132. comparators.forEach(function (comparator) {
  3133. // Clone to avoid manipulating the comparator's semver object.
  3134. var compver = new SemVer(comparator.semver.version)
  3135. switch (comparator.operator) {
  3136. case '>':
  3137. if (compver.prerelease.length === 0) {
  3138. compver.patch++
  3139. } else {
  3140. compver.prerelease.push(0)
  3141. }
  3142. compver.raw = compver.format()
  3143. /* fallthrough */
  3144. case '':
  3145. case '>=':
  3146. if (!minver || gt(minver, compver)) {
  3147. minver = compver
  3148. }
  3149. break
  3150. case '<':
  3151. case '<=':
  3152. /* Ignore maximum versions */
  3153. break
  3154. /* istanbul ignore next */
  3155. default:
  3156. throw new Error('Unexpected operation: ' + comparator.operator)
  3157. }
  3158. })
  3159. }
  3160. if (minver && range.test(minver)) {
  3161. return minver
  3162. }
  3163. return null
  3164. }
  3165. exports.validRange = validRange
  3166. function validRange (range, options) {
  3167. try {
  3168. // Return '*' instead of '' so that truthiness works.
  3169. // This will throw if it's invalid anyway
  3170. return new Range(range, options).range || '*'
  3171. } catch (er) {
  3172. return null
  3173. }
  3174. }
  3175. // Determine if version is less than all the versions possible in the range
  3176. exports.ltr = ltr
  3177. function ltr (version, range, options) {
  3178. return outside(version, range, '<', options)
  3179. }
  3180. // Determine if version is greater than all the versions possible in the range.
  3181. exports.gtr = gtr
  3182. function gtr (version, range, options) {
  3183. return outside(version, range, '>', options)
  3184. }
  3185. exports.outside = outside
  3186. function outside (version, range, hilo, options) {
  3187. version = new SemVer(version, options)
  3188. range = new Range(range, options)
  3189. var gtfn, ltefn, ltfn, comp, ecomp
  3190. switch (hilo) {
  3191. case '>':
  3192. gtfn = gt
  3193. ltefn = lte
  3194. ltfn = lt
  3195. comp = '>'
  3196. ecomp = '>='
  3197. break
  3198. case '<':
  3199. gtfn = lt
  3200. ltefn = gte
  3201. ltfn = gt
  3202. comp = '<'
  3203. ecomp = '<='
  3204. break
  3205. default:
  3206. throw new TypeError('Must provide a hilo val of "<" or ">"')
  3207. }
  3208. // If it satisifes the range it is not outside
  3209. if (satisfies(version, range, options)) {
  3210. return false
  3211. }
  3212. // From now on, variable terms are as if we're in "gtr" mode.
  3213. // but note that everything is flipped for the "ltr" function.
  3214. for (var i = 0; i < range.set.length; ++i) {
  3215. var comparators = range.set[i]
  3216. var high = null
  3217. var low = null
  3218. comparators.forEach(function (comparator) {
  3219. if (comparator.semver === ANY) {
  3220. comparator = new Comparator('>=0.0.0')
  3221. }
  3222. high = high || comparator
  3223. low = low || comparator
  3224. if (gtfn(comparator.semver, high.semver, options)) {
  3225. high = comparator
  3226. } else if (ltfn(comparator.semver, low.semver, options)) {
  3227. low = comparator
  3228. }
  3229. })
  3230. // If the edge version comparator has a operator then our version
  3231. // isn't outside it
  3232. if (high.operator === comp || high.operator === ecomp) {
  3233. return false
  3234. }
  3235. // If the lowest version comparator has an operator and our version
  3236. // is less than it then it isn't higher than the range
  3237. if ((!low.operator || low.operator === comp) &&
  3238. ltefn(version, low.semver)) {
  3239. return false
  3240. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  3241. return false
  3242. }
  3243. }
  3244. return true
  3245. }
  3246. exports.prerelease = prerelease
  3247. function prerelease (version, options) {
  3248. var parsed = parse(version, options)
  3249. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  3250. }
  3251. exports.intersects = intersects
  3252. function intersects (r1, r2, options) {
  3253. r1 = new Range(r1, options)
  3254. r2 = new Range(r2, options)
  3255. return r1.intersects(r2)
  3256. }
  3257. exports.coerce = coerce
  3258. function coerce (version) {
  3259. if (version instanceof SemVer) {
  3260. return version
  3261. }
  3262. if (typeof version !== 'string') {
  3263. return null
  3264. }
  3265. var match = version.match(re[COERCE])
  3266. if (match == null) {
  3267. return null
  3268. }
  3269. return parse(match[1] +
  3270. '.' + (match[2] || '0') +
  3271. '.' + (match[3] || '0'))
  3272. }
  3273. /***/ }),
  3274. /***/ 20511:
  3275. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  3276. "use strict";
  3277. const crypto = __webpack_require__(76417);
  3278. module.exports = length => {
  3279. if (!Number.isFinite(length)) {
  3280. throw new TypeError('Expected a finite number');
  3281. }
  3282. return crypto.randomBytes(Math.ceil(length / 2)).toString('hex').slice(0, length);
  3283. };
  3284. /***/ }),
  3285. /***/ 11227:
  3286. /***/ ((module, exports, __webpack_require__) => {
  3287. /* eslint-env browser */
  3288. /**
  3289. * This is the web browser implementation of `debug()`.
  3290. */
  3291. exports.formatArgs = formatArgs;
  3292. exports.save = save;
  3293. exports.load = load;
  3294. exports.useColors = useColors;
  3295. exports.storage = localstorage();
  3296. exports.destroy = (() => {
  3297. let warned = false;
  3298. return () => {
  3299. if (!warned) {
  3300. warned = true;
  3301. console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
  3302. }
  3303. };
  3304. })();
  3305. /**
  3306. * Colors.
  3307. */
  3308. exports.colors = [
  3309. '#0000CC',
  3310. '#0000FF',
  3311. '#0033CC',
  3312. '#0033FF',
  3313. '#0066CC',
  3314. '#0066FF',
  3315. '#0099CC',
  3316. '#0099FF',
  3317. '#00CC00',
  3318. '#00CC33',
  3319. '#00CC66',
  3320. '#00CC99',
  3321. '#00CCCC',
  3322. '#00CCFF',
  3323. '#3300CC',
  3324. '#3300FF',
  3325. '#3333CC',
  3326. '#3333FF',
  3327. '#3366CC',
  3328. '#3366FF',
  3329. '#3399CC',
  3330. '#3399FF',
  3331. '#33CC00',
  3332. '#33CC33',
  3333. '#33CC66',
  3334. '#33CC99',
  3335. '#33CCCC',
  3336. '#33CCFF',
  3337. '#6600CC',
  3338. '#6600FF',
  3339. '#6633CC',
  3340. '#6633FF',
  3341. '#66CC00',
  3342. '#66CC33',
  3343. '#9900CC',
  3344. '#9900FF',
  3345. '#9933CC',
  3346. '#9933FF',
  3347. '#99CC00',
  3348. '#99CC33',
  3349. '#CC0000',
  3350. '#CC0033',
  3351. '#CC0066',
  3352. '#CC0099',
  3353. '#CC00CC',
  3354. '#CC00FF',
  3355. '#CC3300',
  3356. '#CC3333',
  3357. '#CC3366',
  3358. '#CC3399',
  3359. '#CC33CC',
  3360. '#CC33FF',
  3361. '#CC6600',
  3362. '#CC6633',
  3363. '#CC9900',
  3364. '#CC9933',
  3365. '#CCCC00',
  3366. '#CCCC33',
  3367. '#FF0000',
  3368. '#FF0033',
  3369. '#FF0066',
  3370. '#FF0099',
  3371. '#FF00CC',
  3372. '#FF00FF',
  3373. '#FF3300',
  3374. '#FF3333',
  3375. '#FF3366',
  3376. '#FF3399',
  3377. '#FF33CC',
  3378. '#FF33FF',
  3379. '#FF6600',
  3380. '#FF6633',
  3381. '#FF9900',
  3382. '#FF9933',
  3383. '#FFCC00',
  3384. '#FFCC33'
  3385. ];
  3386. /**
  3387. * Currently only WebKit-based Web Inspectors, Firefox >= v31,
  3388. * and the Firebug extension (any Firefox version) are known
  3389. * to support "%c" CSS customizations.
  3390. *
  3391. * TODO: add a `localStorage` variable to explicitly enable/disable colors
  3392. */
  3393. // eslint-disable-next-line complexity
  3394. function useColors() {
  3395. // NB: In an Electron preload script, document will be defined but not fully
  3396. // initialized. Since we know we're in Chrome, we'll just detect this case
  3397. // explicitly
  3398. if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
  3399. return true;
  3400. }
  3401. // Internet Explorer and Edge do not support colors.
  3402. if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
  3403. return false;
  3404. }
  3405. // Is webkit? http://stackoverflow.com/a/16459606/376773
  3406. // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
  3407. return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
  3408. // Is firebug? http://stackoverflow.com/a/398120/376773
  3409. (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
  3410. // Is firefox >= v31?
  3411. // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
  3412. (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
  3413. // Double check webkit in userAgent just in case we are in a worker
  3414. (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
  3415. }
  3416. /**
  3417. * Colorize log arguments if enabled.
  3418. *
  3419. * @api public
  3420. */
  3421. function formatArgs(args) {
  3422. args[0] = (this.useColors ? '%c' : '') +
  3423. this.namespace +
  3424. (this.useColors ? ' %c' : ' ') +
  3425. args[0] +
  3426. (this.useColors ? '%c ' : ' ') +
  3427. '+' + module.exports.humanize(this.diff);
  3428. if (!this.useColors) {
  3429. return;
  3430. }
  3431. const c = 'color: ' + this.color;
  3432. args.splice(1, 0, c, 'color: inherit');
  3433. // The final "%c" is somewhat tricky, because there could be other
  3434. // arguments passed either before or after the %c, so we need to
  3435. // figure out the correct index to insert the CSS into
  3436. let index = 0;
  3437. let lastC = 0;
  3438. args[0].replace(/%[a-zA-Z%]/g, match => {
  3439. if (match === '%%') {
  3440. return;
  3441. }
  3442. index++;
  3443. if (match === '%c') {
  3444. // We only are interested in the *last* %c
  3445. // (the user may have provided their own)
  3446. lastC = index;
  3447. }
  3448. });
  3449. args.splice(lastC, 0, c);
  3450. }
  3451. /**
  3452. * Invokes `console.debug()` when available.
  3453. * No-op when `console.debug` is not a "function".
  3454. * If `console.debug` is not available, falls back
  3455. * to `console.log`.
  3456. *
  3457. * @api public
  3458. */
  3459. exports.log = console.debug || console.log || (() => {});
  3460. /**
  3461. * Save `namespaces`.
  3462. *
  3463. * @param {String} namespaces
  3464. * @api private
  3465. */
  3466. function save(namespaces) {
  3467. try {
  3468. if (namespaces) {
  3469. exports.storage.setItem('debug', namespaces);
  3470. } else {
  3471. exports.storage.removeItem('debug');
  3472. }
  3473. } catch (error) {
  3474. // Swallow
  3475. // XXX (@Qix-) should we be logging these?
  3476. }
  3477. }
  3478. /**
  3479. * Load `namespaces`.
  3480. *
  3481. * @return {String} returns the previously persisted debug modes
  3482. * @api private
  3483. */
  3484. function load() {
  3485. let r;
  3486. try {
  3487. r = exports.storage.getItem('debug');
  3488. } catch (error) {
  3489. // Swallow
  3490. // XXX (@Qix-) should we be logging these?
  3491. }
  3492. // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
  3493. if (!r && typeof process !== 'undefined' && 'env' in process) {
  3494. r = process.env.DEBUG;
  3495. }
  3496. return r;
  3497. }
  3498. /**
  3499. * Localstorage attempts to return the localstorage.
  3500. *
  3501. * This is necessary because safari throws
  3502. * when a user disables cookies/localstorage
  3503. * and you attempt to access it.
  3504. *
  3505. * @return {LocalStorage}
  3506. * @api private
  3507. */
  3508. function localstorage() {
  3509. try {
  3510. // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
  3511. // The Browser also has localStorage in the global context.
  3512. return localStorage;
  3513. } catch (error) {
  3514. // Swallow
  3515. // XXX (@Qix-) should we be logging these?
  3516. }
  3517. }
  3518. module.exports = __webpack_require__(82447)(exports);
  3519. const {formatters} = module.exports;
  3520. /**
  3521. * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
  3522. */
  3523. formatters.j = function (v) {
  3524. try {
  3525. return JSON.stringify(v);
  3526. } catch (error) {
  3527. return '[UnexpectedJSONParseError]: ' + error.message;
  3528. }
  3529. };
  3530. /***/ }),
  3531. /***/ 82447:
  3532. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  3533. /**
  3534. * This is the common logic for both the Node.js and web browser
  3535. * implementations of `debug()`.
  3536. */
  3537. function setup(env) {
  3538. createDebug.debug = createDebug;
  3539. createDebug.default = createDebug;
  3540. createDebug.coerce = coerce;
  3541. createDebug.disable = disable;
  3542. createDebug.enable = enable;
  3543. createDebug.enabled = enabled;
  3544. createDebug.humanize = __webpack_require__(57824);
  3545. createDebug.destroy = destroy;
  3546. Object.keys(env).forEach(key => {
  3547. createDebug[key] = env[key];
  3548. });
  3549. /**
  3550. * The currently active debug mode names, and names to skip.
  3551. */
  3552. createDebug.names = [];
  3553. createDebug.skips = [];
  3554. /**
  3555. * Map of special "%n" handling functions, for the debug "format" argument.
  3556. *
  3557. * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
  3558. */
  3559. createDebug.formatters = {};
  3560. /**
  3561. * Selects a color for a debug namespace
  3562. * @param {String} namespace The namespace string for the for the debug instance to be colored
  3563. * @return {Number|String} An ANSI color code for the given namespace
  3564. * @api private
  3565. */
  3566. function selectColor(namespace) {
  3567. let hash = 0;
  3568. for (let i = 0; i < namespace.length; i++) {
  3569. hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
  3570. hash |= 0; // Convert to 32bit integer
  3571. }
  3572. return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
  3573. }
  3574. createDebug.selectColor = selectColor;
  3575. /**
  3576. * Create a debugger with the given `namespace`.
  3577. *
  3578. * @param {String} namespace
  3579. * @return {Function}
  3580. * @api public
  3581. */
  3582. function createDebug(namespace) {
  3583. let prevTime;
  3584. let enableOverride = null;
  3585. let namespacesCache;
  3586. let enabledCache;
  3587. function debug(...args) {
  3588. // Disabled?
  3589. if (!debug.enabled) {
  3590. return;
  3591. }
  3592. const self = debug;
  3593. // Set `diff` timestamp
  3594. const curr = Number(new Date());
  3595. const ms = curr - (prevTime || curr);
  3596. self.diff = ms;
  3597. self.prev = prevTime;
  3598. self.curr = curr;
  3599. prevTime = curr;
  3600. args[0] = createDebug.coerce(args[0]);
  3601. if (typeof args[0] !== 'string') {
  3602. // Anything else let's inspect with %O
  3603. args.unshift('%O');
  3604. }
  3605. // Apply any `formatters` transformations
  3606. let index = 0;
  3607. args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
  3608. // If we encounter an escaped % then don't increase the array index
  3609. if (match === '%%') {
  3610. return '%';
  3611. }
  3612. index++;
  3613. const formatter = createDebug.formatters[format];
  3614. if (typeof formatter === 'function') {
  3615. const val = args[index];
  3616. match = formatter.call(self, val);
  3617. // Now we need to remove `args[index]` since it's inlined in the `format`
  3618. args.splice(index, 1);
  3619. index--;
  3620. }
  3621. return match;
  3622. });
  3623. // Apply env-specific formatting (colors, etc.)
  3624. createDebug.formatArgs.call(self, args);
  3625. const logFn = self.log || createDebug.log;
  3626. logFn.apply(self, args);
  3627. }
  3628. debug.namespace = namespace;
  3629. debug.useColors = createDebug.useColors();
  3630. debug.color = createDebug.selectColor(namespace);
  3631. debug.extend = extend;
  3632. debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
  3633. Object.defineProperty(debug, 'enabled', {
  3634. enumerable: true,
  3635. configurable: false,
  3636. get: () => {
  3637. if (enableOverride !== null) {
  3638. return enableOverride;
  3639. }
  3640. if (namespacesCache !== createDebug.namespaces) {
  3641. namespacesCache = createDebug.namespaces;
  3642. enabledCache = createDebug.enabled(namespace);
  3643. }
  3644. return enabledCache;
  3645. },
  3646. set: v => {
  3647. enableOverride = v;
  3648. }
  3649. });
  3650. // Env-specific initialization logic for debug instances
  3651. if (typeof createDebug.init === 'function') {
  3652. createDebug.init(debug);
  3653. }
  3654. return debug;
  3655. }
  3656. function extend(namespace, delimiter) {
  3657. const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
  3658. newDebug.log = this.log;
  3659. return newDebug;
  3660. }
  3661. /**
  3662. * Enables a debug mode by namespaces. This can include modes
  3663. * separated by a colon and wildcards.
  3664. *
  3665. * @param {String} namespaces
  3666. * @api public
  3667. */
  3668. function enable(namespaces) {
  3669. createDebug.save(namespaces);
  3670. createDebug.namespaces = namespaces;
  3671. createDebug.names = [];
  3672. createDebug.skips = [];
  3673. let i;
  3674. const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
  3675. const len = split.length;
  3676. for (i = 0; i < len; i++) {
  3677. if (!split[i]) {
  3678. // ignore empty strings
  3679. continue;
  3680. }
  3681. namespaces = split[i].replace(/\*/g, '.*?');
  3682. if (namespaces[0] === '-') {
  3683. createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
  3684. } else {
  3685. createDebug.names.push(new RegExp('^' + namespaces + '$'));
  3686. }
  3687. }
  3688. }
  3689. /**
  3690. * Disable debug output.
  3691. *
  3692. * @return {String} namespaces
  3693. * @api public
  3694. */
  3695. function disable() {
  3696. const namespaces = [
  3697. ...createDebug.names.map(toNamespace),
  3698. ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
  3699. ].join(',');
  3700. createDebug.enable('');
  3701. return namespaces;
  3702. }
  3703. /**
  3704. * Returns true if the given mode name is enabled, false otherwise.
  3705. *
  3706. * @param {String} name
  3707. * @return {Boolean}
  3708. * @api public
  3709. */
  3710. function enabled(name) {
  3711. if (name[name.length - 1] === '*') {
  3712. return true;
  3713. }
  3714. let i;
  3715. let len;
  3716. for (i = 0, len = createDebug.skips.length; i < len; i++) {
  3717. if (createDebug.skips[i].test(name)) {
  3718. return false;
  3719. }
  3720. }
  3721. for (i = 0, len = createDebug.names.length; i < len; i++) {
  3722. if (createDebug.names[i].test(name)) {
  3723. return true;
  3724. }
  3725. }
  3726. return false;
  3727. }
  3728. /**
  3729. * Convert regexp to namespace
  3730. *
  3731. * @param {RegExp} regxep
  3732. * @return {String} namespace
  3733. * @api private
  3734. */
  3735. function toNamespace(regexp) {
  3736. return regexp.toString()
  3737. .substring(2, regexp.toString().length - 2)
  3738. .replace(/\.\*\?$/, '*');
  3739. }
  3740. /**
  3741. * Coerce `val`.
  3742. *
  3743. * @param {Mixed} val
  3744. * @return {Mixed}
  3745. * @api private
  3746. */
  3747. function coerce(val) {
  3748. if (val instanceof Error) {
  3749. return val.stack || val.message;
  3750. }
  3751. return val;
  3752. }
  3753. /**
  3754. * XXX DO NOT USE. This is a temporary stub function.
  3755. * XXX It WILL be removed in the next major release.
  3756. */
  3757. function destroy() {
  3758. console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
  3759. }
  3760. createDebug.enable(createDebug.load());
  3761. return createDebug;
  3762. }
  3763. module.exports = setup;
  3764. /***/ }),
  3765. /***/ 15158:
  3766. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  3767. /**
  3768. * Detect Electron renderer / nwjs process, which is node, but we should
  3769. * treat as a browser.
  3770. */
  3771. if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
  3772. module.exports = __webpack_require__(11227);
  3773. } else {
  3774. module.exports = __webpack_require__(39);
  3775. }
  3776. /***/ }),
  3777. /***/ 39:
  3778. /***/ ((module, exports, __webpack_require__) => {
  3779. /**
  3780. * Module dependencies.
  3781. */
  3782. const tty = __webpack_require__(33867);
  3783. const util = __webpack_require__(31669);
  3784. /**
  3785. * This is the Node.js implementation of `debug()`.
  3786. */
  3787. exports.init = init;
  3788. exports.log = log;
  3789. exports.formatArgs = formatArgs;
  3790. exports.save = save;
  3791. exports.load = load;
  3792. exports.useColors = useColors;
  3793. exports.destroy = util.deprecate(
  3794. () => {},
  3795. 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
  3796. );
  3797. /**
  3798. * Colors.
  3799. */
  3800. exports.colors = [6, 2, 3, 4, 5, 1];
  3801. try {
  3802. // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
  3803. // eslint-disable-next-line import/no-extraneous-dependencies
  3804. const supportsColor = __webpack_require__(92130);
  3805. if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
  3806. exports.colors = [
  3807. 20,
  3808. 21,
  3809. 26,
  3810. 27,
  3811. 32,
  3812. 33,
  3813. 38,
  3814. 39,
  3815. 40,
  3816. 41,
  3817. 42,
  3818. 43,
  3819. 44,
  3820. 45,
  3821. 56,
  3822. 57,
  3823. 62,
  3824. 63,
  3825. 68,
  3826. 69,
  3827. 74,
  3828. 75,
  3829. 76,
  3830. 77,
  3831. 78,
  3832. 79,
  3833. 80,
  3834. 81,
  3835. 92,
  3836. 93,
  3837. 98,
  3838. 99,
  3839. 112,
  3840. 113,
  3841. 128,
  3842. 129,
  3843. 134,
  3844. 135,
  3845. 148,
  3846. 149,
  3847. 160,
  3848. 161,
  3849. 162,
  3850. 163,
  3851. 164,
  3852. 165,
  3853. 166,
  3854. 167,
  3855. 168,
  3856. 169,
  3857. 170,
  3858. 171,
  3859. 172,
  3860. 173,
  3861. 178,
  3862. 179,
  3863. 184,
  3864. 185,
  3865. 196,
  3866. 197,
  3867. 198,
  3868. 199,
  3869. 200,
  3870. 201,
  3871. 202,
  3872. 203,
  3873. 204,
  3874. 205,
  3875. 206,
  3876. 207,
  3877. 208,
  3878. 209,
  3879. 214,
  3880. 215,
  3881. 220,
  3882. 221
  3883. ];
  3884. }
  3885. } catch (error) {
  3886. // Swallow - we only care if `supports-color` is available; it doesn't have to be.
  3887. }
  3888. /**
  3889. * Build up the default `inspectOpts` object from the environment variables.
  3890. *
  3891. * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
  3892. */
  3893. exports.inspectOpts = Object.keys(process.env).filter(key => {
  3894. return /^debug_/i.test(key);
  3895. }).reduce((obj, key) => {
  3896. // Camel-case
  3897. const prop = key
  3898. .substring(6)
  3899. .toLowerCase()
  3900. .replace(/_([a-z])/g, (_, k) => {
  3901. return k.toUpperCase();
  3902. });
  3903. // Coerce string value into JS value
  3904. let val = process.env[key];
  3905. if (/^(yes|on|true|enabled)$/i.test(val)) {
  3906. val = true;
  3907. } else if (/^(no|off|false|disabled)$/i.test(val)) {
  3908. val = false;
  3909. } else if (val === 'null') {
  3910. val = null;
  3911. } else {
  3912. val = Number(val);
  3913. }
  3914. obj[prop] = val;
  3915. return obj;
  3916. }, {});
  3917. /**
  3918. * Is stdout a TTY? Colored output is enabled when `true`.
  3919. */
  3920. function useColors() {
  3921. return 'colors' in exports.inspectOpts ?
  3922. Boolean(exports.inspectOpts.colors) :
  3923. tty.isatty(process.stderr.fd);
  3924. }
  3925. /**
  3926. * Adds ANSI color escape codes if enabled.
  3927. *
  3928. * @api public
  3929. */
  3930. function formatArgs(args) {
  3931. const {namespace: name, useColors} = this;
  3932. if (useColors) {
  3933. const c = this.color;
  3934. const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
  3935. const prefix = ` ${colorCode};1m${name} \u001B[0m`;
  3936. args[0] = prefix + args[0].split('\n').join('\n' + prefix);
  3937. args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
  3938. } else {
  3939. args[0] = getDate() + name + ' ' + args[0];
  3940. }
  3941. }
  3942. function getDate() {
  3943. if (exports.inspectOpts.hideDate) {
  3944. return '';
  3945. }
  3946. return new Date().toISOString() + ' ';
  3947. }
  3948. /**
  3949. * Invokes `util.format()` with the specified arguments and writes to stderr.
  3950. */
  3951. function log(...args) {
  3952. return process.stderr.write(util.format(...args) + '\n');
  3953. }
  3954. /**
  3955. * Save `namespaces`.
  3956. *
  3957. * @param {String} namespaces
  3958. * @api private
  3959. */
  3960. function save(namespaces) {
  3961. if (namespaces) {
  3962. process.env.DEBUG = namespaces;
  3963. } else {
  3964. // If you set a process.env field to null or undefined, it gets cast to the
  3965. // string 'null' or 'undefined'. Just delete instead.
  3966. delete process.env.DEBUG;
  3967. }
  3968. }
  3969. /**
  3970. * Load `namespaces`.
  3971. *
  3972. * @return {String} returns the previously persisted debug modes
  3973. * @api private
  3974. */
  3975. function load() {
  3976. return process.env.DEBUG;
  3977. }
  3978. /**
  3979. * Init logic for `debug` instances.
  3980. *
  3981. * Create a new `inspectOpts` object in case `useColors` is set
  3982. * differently for a particular `debug` instance.
  3983. */
  3984. function init(debug) {
  3985. debug.inspectOpts = {};
  3986. const keys = Object.keys(exports.inspectOpts);
  3987. for (let i = 0; i < keys.length; i++) {
  3988. debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
  3989. }
  3990. }
  3991. module.exports = __webpack_require__(82447)(exports);
  3992. const {formatters} = module.exports;
  3993. /**
  3994. * Map %o to `util.inspect()`, all on a single line.
  3995. */
  3996. formatters.o = function (v) {
  3997. this.inspectOpts.colors = this.useColors;
  3998. return util.inspect(v, this.inspectOpts)
  3999. .split('\n')
  4000. .map(str => str.trim())
  4001. .join(' ');
  4002. };
  4003. /**
  4004. * Map %O to `util.inspect()`, allowing multiple lines if needed.
  4005. */
  4006. formatters.O = function (v) {
  4007. this.inspectOpts.colors = this.useColors;
  4008. return util.inspect(v, this.inspectOpts);
  4009. };
  4010. /***/ }),
  4011. /***/ 4289:
  4012. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  4013. "use strict";
  4014. var keys = __webpack_require__(82215);
  4015. var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
  4016. var toStr = Object.prototype.toString;
  4017. var concat = Array.prototype.concat;
  4018. var origDefineProperty = Object.defineProperty;
  4019. var isFunction = function (fn) {
  4020. return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
  4021. };
  4022. var arePropertyDescriptorsSupported = function () {
  4023. var obj = {};
  4024. try {
  4025. origDefineProperty(obj, 'x', { enumerable: false, value: obj });
  4026. // eslint-disable-next-line no-unused-vars, no-restricted-syntax
  4027. for (var _ in obj) { // jscs:ignore disallowUnusedVariables
  4028. return false;
  4029. }
  4030. return obj.x === obj;
  4031. } catch (e) { /* this is IE 8. */
  4032. return false;
  4033. }
  4034. };
  4035. var supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();
  4036. var defineProperty = function (object, name, value, predicate) {
  4037. if (name in object && (!isFunction(predicate) || !predicate())) {
  4038. return;
  4039. }
  4040. if (supportsDescriptors) {
  4041. origDefineProperty(object, name, {
  4042. configurable: true,
  4043. enumerable: false,
  4044. value: value,
  4045. writable: true
  4046. });
  4047. } else {
  4048. object[name] = value;
  4049. }
  4050. };
  4051. var defineProperties = function (object, map) {
  4052. var predicates = arguments.length > 2 ? arguments[2] : {};
  4053. var props = keys(map);
  4054. if (hasSymbols) {
  4055. props = concat.call(props, Object.getOwnPropertySymbols(map));
  4056. }
  4057. for (var i = 0; i < props.length; i += 1) {
  4058. defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
  4059. }
  4060. };
  4061. defineProperties.supportsDescriptors = !!supportsDescriptors;
  4062. module.exports = defineProperties;
  4063. /***/ }),
  4064. /***/ 48590:
  4065. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  4066. "use strict";
  4067. __webpack_require__.r(__webpack_exports__);
  4068. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  4069. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  4070. /* harmony export */ });
  4071. // Only Node.JS has a process variable that is of [[Class]] process
  4072. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]');
  4073. /***/ }),
  4074. /***/ 93517:
  4075. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  4076. "use strict";
  4077. const isObj = __webpack_require__(64290);
  4078. const disallowedKeys = [
  4079. '__proto__',
  4080. 'prototype',
  4081. 'constructor'
  4082. ];
  4083. const isValidPath = pathSegments => !pathSegments.some(segment => disallowedKeys.includes(segment));
  4084. function getPathSegments(path) {
  4085. const pathArray = path.split('.');
  4086. const parts = [];
  4087. for (let i = 0; i < pathArray.length; i++) {
  4088. let p = pathArray[i];
  4089. while (p[p.length - 1] === '\\' && pathArray[i + 1] !== undefined) {
  4090. p = p.slice(0, -1) + '.';
  4091. p += pathArray[++i];
  4092. }
  4093. parts.push(p);
  4094. }
  4095. if (!isValidPath(parts)) {
  4096. return [];
  4097. }
  4098. return parts;
  4099. }
  4100. module.exports = {
  4101. get(object, path, value) {
  4102. if (!isObj(object) || typeof path !== 'string') {
  4103. return value === undefined ? object : value;
  4104. }
  4105. const pathArray = getPathSegments(path);
  4106. if (pathArray.length === 0) {
  4107. return;
  4108. }
  4109. for (let i = 0; i < pathArray.length; i++) {
  4110. if (!Object.prototype.propertyIsEnumerable.call(object, pathArray[i])) {
  4111. return value;
  4112. }
  4113. object = object[pathArray[i]];
  4114. if (object === undefined || object === null) {
  4115. // `object` is either `undefined` or `null` so we want to stop the loop, and
  4116. // if this is not the last bit of the path, and
  4117. // if it did't return `undefined`
  4118. // it would return `null` if `object` is `null`
  4119. // but we want `get({foo: null}, 'foo.bar')` to equal `undefined`, or the supplied value, not `null`
  4120. if (i !== pathArray.length - 1) {
  4121. return value;
  4122. }
  4123. break;
  4124. }
  4125. }
  4126. return object;
  4127. },
  4128. set(object, path, value) {
  4129. if (!isObj(object) || typeof path !== 'string') {
  4130. return object;
  4131. }
  4132. const root = object;
  4133. const pathArray = getPathSegments(path);
  4134. for (let i = 0; i < pathArray.length; i++) {
  4135. const p = pathArray[i];
  4136. if (!isObj(object[p])) {
  4137. object[p] = {};
  4138. }
  4139. if (i === pathArray.length - 1) {
  4140. object[p] = value;
  4141. }
  4142. object = object[p];
  4143. }
  4144. return root;
  4145. },
  4146. delete(object, path) {
  4147. if (!isObj(object) || typeof path !== 'string') {
  4148. return false;
  4149. }
  4150. const pathArray = getPathSegments(path);
  4151. for (let i = 0; i < pathArray.length; i++) {
  4152. const p = pathArray[i];
  4153. if (i === pathArray.length - 1) {
  4154. delete object[p];
  4155. return true;
  4156. }
  4157. object = object[p];
  4158. if (!isObj(object)) {
  4159. return false;
  4160. }
  4161. }
  4162. },
  4163. has(object, path) {
  4164. if (!isObj(object) || typeof path !== 'string') {
  4165. return false;
  4166. }
  4167. const pathArray = getPathSegments(path);
  4168. if (pathArray.length === 0) {
  4169. return false;
  4170. }
  4171. // eslint-disable-next-line unicorn/no-for-loop
  4172. for (let i = 0; i < pathArray.length; i++) {
  4173. if (isObj(object)) {
  4174. if (!(pathArray[i] in object)) {
  4175. return false;
  4176. }
  4177. object = object[pathArray[i]];
  4178. } else {
  4179. return false;
  4180. }
  4181. }
  4182. return true;
  4183. }
  4184. };
  4185. /***/ }),
  4186. /***/ 12840:
  4187. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  4188. var once = __webpack_require__(30778);
  4189. var noop = function() {};
  4190. var isRequest = function(stream) {
  4191. return stream.setHeader && typeof stream.abort === 'function';
  4192. };
  4193. var isChildProcess = function(stream) {
  4194. return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3
  4195. };
  4196. var eos = function(stream, opts, callback) {
  4197. if (typeof opts === 'function') return eos(stream, null, opts);
  4198. if (!opts) opts = {};
  4199. callback = once(callback || noop);
  4200. var ws = stream._writableState;
  4201. var rs = stream._readableState;
  4202. var readable = opts.readable || (opts.readable !== false && stream.readable);
  4203. var writable = opts.writable || (opts.writable !== false && stream.writable);
  4204. var cancelled = false;
  4205. var onlegacyfinish = function() {
  4206. if (!stream.writable) onfinish();
  4207. };
  4208. var onfinish = function() {
  4209. writable = false;
  4210. if (!readable) callback.call(stream);
  4211. };
  4212. var onend = function() {
  4213. readable = false;
  4214. if (!writable) callback.call(stream);
  4215. };
  4216. var onexit = function(exitCode) {
  4217. callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
  4218. };
  4219. var onerror = function(err) {
  4220. callback.call(stream, err);
  4221. };
  4222. var onclose = function() {
  4223. process.nextTick(onclosenexttick);
  4224. };
  4225. var onclosenexttick = function() {
  4226. if (cancelled) return;
  4227. if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));
  4228. if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));
  4229. };
  4230. var onrequest = function() {
  4231. stream.req.on('finish', onfinish);
  4232. };
  4233. if (isRequest(stream)) {
  4234. stream.on('complete', onfinish);
  4235. stream.on('abort', onclose);
  4236. if (stream.req) onrequest();
  4237. else stream.on('request', onrequest);
  4238. } else if (writable && !ws) { // legacy streams
  4239. stream.on('end', onlegacyfinish);
  4240. stream.on('close', onlegacyfinish);
  4241. }
  4242. if (isChildProcess(stream)) stream.on('exit', onexit);
  4243. stream.on('end', onend);
  4244. stream.on('finish', onfinish);
  4245. if (opts.error !== false) stream.on('error', onerror);
  4246. stream.on('close', onclose);
  4247. return function() {
  4248. cancelled = true;
  4249. stream.removeListener('complete', onfinish);
  4250. stream.removeListener('abort', onclose);
  4251. stream.removeListener('request', onrequest);
  4252. if (stream.req) stream.req.removeListener('finish', onfinish);
  4253. stream.removeListener('end', onlegacyfinish);
  4254. stream.removeListener('close', onlegacyfinish);
  4255. stream.removeListener('finish', onfinish);
  4256. stream.removeListener('exit', onexit);
  4257. stream.removeListener('end', onend);
  4258. stream.removeListener('error', onerror);
  4259. stream.removeListener('close', onclose);
  4260. };
  4261. };
  4262. module.exports = eos;
  4263. /***/ }),
  4264. /***/ 27216:
  4265. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  4266. "use strict";
  4267. __webpack_require__.r(__webpack_exports__);
  4268. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  4269. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  4270. /* harmony export */ });
  4271. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  4272. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  4273. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  4274. function _extendableBuiltin(cls) {
  4275. function ExtendableBuiltin() {
  4276. cls.apply(this, arguments);
  4277. }
  4278. ExtendableBuiltin.prototype = Object.create(cls.prototype, {
  4279. constructor: {
  4280. value: cls,
  4281. enumerable: false,
  4282. writable: true,
  4283. configurable: true
  4284. }
  4285. });
  4286. if (Object.setPrototypeOf) {
  4287. Object.setPrototypeOf(ExtendableBuiltin, cls);
  4288. } else {
  4289. ExtendableBuiltin.__proto__ = cls;
  4290. }
  4291. return ExtendableBuiltin;
  4292. }
  4293. var ExtendableError = function (_extendableBuiltin2) {
  4294. _inherits(ExtendableError, _extendableBuiltin2);
  4295. function ExtendableError() {
  4296. var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  4297. _classCallCheck(this, ExtendableError);
  4298. // extending Error is weird and does not propagate `message`
  4299. var _this = _possibleConstructorReturn(this, (ExtendableError.__proto__ || Object.getPrototypeOf(ExtendableError)).call(this, message));
  4300. Object.defineProperty(_this, 'message', {
  4301. configurable: true,
  4302. enumerable: false,
  4303. value: message,
  4304. writable: true
  4305. });
  4306. Object.defineProperty(_this, 'name', {
  4307. configurable: true,
  4308. enumerable: false,
  4309. value: _this.constructor.name,
  4310. writable: true
  4311. });
  4312. if (Error.hasOwnProperty('captureStackTrace')) {
  4313. Error.captureStackTrace(_this, _this.constructor);
  4314. return _possibleConstructorReturn(_this);
  4315. }
  4316. Object.defineProperty(_this, 'stack', {
  4317. configurable: true,
  4318. enumerable: false,
  4319. value: new Error(message).stack,
  4320. writable: true
  4321. });
  4322. return _this;
  4323. }
  4324. return ExtendableError;
  4325. }(_extendableBuiltin(Error));
  4326. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ExtendableError);
  4327. /***/ }),
  4328. /***/ 63150:
  4329. /***/ ((module) => {
  4330. "use strict";
  4331. var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
  4332. module.exports = function (str) {
  4333. if (typeof str !== 'string') {
  4334. throw new TypeError('Expected a string');
  4335. }
  4336. return str.replace(matchOperatorsRe, '\\$&');
  4337. };
  4338. /***/ }),
  4339. /***/ 36257:
  4340. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4341. "use strict";
  4342. Object.defineProperty(exports, "__esModule", ({
  4343. value: true
  4344. }));
  4345. exports.default = void 0;
  4346. var _roarr = _interopRequireDefault(__webpack_require__(83085));
  4347. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4348. const Logger = _roarr.default.child({
  4349. package: 'global-agent'
  4350. });
  4351. var _default = Logger;
  4352. exports.default = _default;
  4353. //# sourceMappingURL=Logger.js.map
  4354. /***/ }),
  4355. /***/ 44763:
  4356. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4357. "use strict";
  4358. Object.defineProperty(exports, "__esModule", ({
  4359. value: true
  4360. }));
  4361. exports.default = void 0;
  4362. var _serializeError = __webpack_require__(7710);
  4363. var _boolean = __webpack_require__(46088);
  4364. var _Logger = _interopRequireDefault(__webpack_require__(36257));
  4365. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4366. const log = _Logger.default.child({
  4367. namespace: 'Agent'
  4368. });
  4369. let requestId = 0;
  4370. class Agent {
  4371. constructor(isProxyConfigured, mustUrlUseProxy, getUrlProxy, fallbackAgent, socketConnectionTimeout) {
  4372. this.fallbackAgent = fallbackAgent;
  4373. this.isProxyConfigured = isProxyConfigured;
  4374. this.mustUrlUseProxy = mustUrlUseProxy;
  4375. this.getUrlProxy = getUrlProxy;
  4376. this.socketConnectionTimeout = socketConnectionTimeout;
  4377. }
  4378. addRequest(request, configuration) {
  4379. let requestUrl; // It is possible that addRequest was constructed for a proxied request already, e.g.
  4380. // "request" package does this when it detects that a proxy should be used
  4381. // https://github.com/request/request/blob/212570b6971a732b8dd9f3c73354bcdda158a737/request.js#L402
  4382. // https://gist.github.com/gajus/e2074cd3b747864ffeaabbd530d30218
  4383. if (request.path.startsWith('http://') || request.path.startsWith('https://')) {
  4384. requestUrl = request.path;
  4385. } else {
  4386. requestUrl = this.protocol + '//' + (configuration.hostname || configuration.host) + (configuration.port === 80 || configuration.port === 443 ? '' : ':' + configuration.port) + request.path;
  4387. }
  4388. if (!this.isProxyConfigured()) {
  4389. log.trace({
  4390. destination: requestUrl
  4391. }, 'not proxying request; GLOBAL_AGENT.HTTP_PROXY is not configured'); // $FlowFixMe It appears that Flow is missing the method description.
  4392. this.fallbackAgent.addRequest(request, configuration);
  4393. return;
  4394. }
  4395. if (!this.mustUrlUseProxy(requestUrl)) {
  4396. log.trace({
  4397. destination: requestUrl
  4398. }, 'not proxying request; url matches GLOBAL_AGENT.NO_PROXY'); // $FlowFixMe It appears that Flow is missing the method description.
  4399. this.fallbackAgent.addRequest(request, configuration);
  4400. return;
  4401. }
  4402. const currentRequestId = requestId++;
  4403. const proxy = this.getUrlProxy(requestUrl);
  4404. if (this.protocol === 'http:') {
  4405. request.path = requestUrl;
  4406. if (proxy.authorization) {
  4407. request.setHeader('proxy-authorization', 'Basic ' + Buffer.from(proxy.authorization).toString('base64'));
  4408. }
  4409. }
  4410. log.trace({
  4411. destination: requestUrl,
  4412. proxy: 'http://' + proxy.hostname + ':' + proxy.port,
  4413. requestId: currentRequestId
  4414. }, 'proxying request');
  4415. request.on('error', error => {
  4416. log.error({
  4417. error: (0, _serializeError.serializeError)(error)
  4418. }, 'request error');
  4419. });
  4420. request.once('response', response => {
  4421. log.trace({
  4422. headers: response.headers,
  4423. requestId: currentRequestId,
  4424. statusCode: response.statusCode
  4425. }, 'proxying response');
  4426. });
  4427. request.shouldKeepAlive = false;
  4428. const connectionConfiguration = {
  4429. host: configuration.hostname || configuration.host,
  4430. port: configuration.port || 80,
  4431. proxy,
  4432. tls: {}
  4433. }; // add optional tls options for https requests.
  4434. // @see https://nodejs.org/docs/latest-v12.x/api/https.html#https_https_request_url_options_callback :
  4435. // > The following additional options from tls.connect()
  4436. // > - https://nodejs.org/docs/latest-v12.x/api/tls.html#tls_tls_connect_options_callback -
  4437. // > are also accepted:
  4438. // > ca, cert, ciphers, clientCertEngine, crl, dhparam, ecdhCurve, honorCipherOrder,
  4439. // > key, passphrase, pfx, rejectUnauthorized, secureOptions, secureProtocol, servername, sessionIdContext.
  4440. if (this.protocol === 'https:') {
  4441. connectionConfiguration.tls = {
  4442. ca: configuration.ca,
  4443. cert: configuration.cert,
  4444. ciphers: configuration.ciphers,
  4445. clientCertEngine: configuration.clientCertEngine,
  4446. crl: configuration.crl,
  4447. dhparam: configuration.dhparam,
  4448. ecdhCurve: configuration.ecdhCurve,
  4449. honorCipherOrder: configuration.honorCipherOrder,
  4450. key: configuration.key,
  4451. passphrase: configuration.passphrase,
  4452. pfx: configuration.pfx,
  4453. rejectUnauthorized: configuration.rejectUnauthorized,
  4454. secureOptions: configuration.secureOptions,
  4455. secureProtocol: configuration.secureProtocol,
  4456. servername: configuration.servername || connectionConfiguration.host,
  4457. sessionIdContext: configuration.sessionIdContext
  4458. }; // This is not ideal because there is no way to override this setting using `tls` configuration if `NODE_TLS_REJECT_UNAUTHORIZED=0`.
  4459. // However, popular HTTP clients (such as https://github.com/sindresorhus/got) come with pre-configured value for `rejectUnauthorized`,
  4460. // which makes it impossible to override that value globally and respect `rejectUnauthorized` for specific requests only.
  4461. //
  4462. // eslint-disable-next-line no-process-env
  4463. if (typeof process.env.NODE_TLS_REJECT_UNAUTHORIZED === 'string' && (0, _boolean.boolean)(process.env.NODE_TLS_REJECT_UNAUTHORIZED) === false) {
  4464. connectionConfiguration.tls.rejectUnauthorized = false;
  4465. }
  4466. } // $FlowFixMe It appears that Flow is missing the method description.
  4467. this.createConnection(connectionConfiguration, (error, socket) => {
  4468. log.trace({
  4469. target: connectionConfiguration
  4470. }, 'connecting'); // @see https://github.com/nodejs/node/issues/5757#issuecomment-305969057
  4471. if (socket) {
  4472. socket.setTimeout(this.socketConnectionTimeout, () => {
  4473. socket.destroy();
  4474. });
  4475. socket.once('connect', () => {
  4476. log.trace({
  4477. target: connectionConfiguration
  4478. }, 'connected');
  4479. socket.setTimeout(0);
  4480. });
  4481. socket.once('secureConnect', () => {
  4482. log.trace({
  4483. target: connectionConfiguration
  4484. }, 'connected (secure)');
  4485. socket.setTimeout(0);
  4486. });
  4487. }
  4488. if (error) {
  4489. request.emit('error', error);
  4490. } else {
  4491. log.debug('created socket');
  4492. socket.on('error', socketError => {
  4493. log.error({
  4494. error: (0, _serializeError.serializeError)(socketError)
  4495. }, 'socket error');
  4496. });
  4497. request.onSocket(socket);
  4498. }
  4499. });
  4500. }
  4501. }
  4502. var _default = Agent;
  4503. exports.default = _default;
  4504. //# sourceMappingURL=Agent.js.map
  4505. /***/ }),
  4506. /***/ 21878:
  4507. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4508. "use strict";
  4509. Object.defineProperty(exports, "__esModule", ({
  4510. value: true
  4511. }));
  4512. exports.default = void 0;
  4513. var _net = _interopRequireDefault(__webpack_require__(11631));
  4514. var _Agent = _interopRequireDefault(__webpack_require__(44763));
  4515. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4516. class HttpProxyAgent extends _Agent.default {
  4517. // @see https://github.com/sindresorhus/eslint-plugin-unicorn/issues/169#issuecomment-486980290
  4518. // eslint-disable-next-line unicorn/prevent-abbreviations
  4519. constructor(...args) {
  4520. super(...args);
  4521. this.protocol = 'http:';
  4522. this.defaultPort = 80;
  4523. }
  4524. createConnection(configuration, callback) {
  4525. const socket = _net.default.connect(configuration.proxy.port, configuration.proxy.hostname);
  4526. callback(null, socket);
  4527. }
  4528. }
  4529. var _default = HttpProxyAgent;
  4530. exports.default = _default;
  4531. //# sourceMappingURL=HttpProxyAgent.js.map
  4532. /***/ }),
  4533. /***/ 87298:
  4534. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4535. "use strict";
  4536. Object.defineProperty(exports, "__esModule", ({
  4537. value: true
  4538. }));
  4539. exports.default = void 0;
  4540. var _net = _interopRequireDefault(__webpack_require__(11631));
  4541. var _tls = _interopRequireDefault(__webpack_require__(4016));
  4542. var _Agent = _interopRequireDefault(__webpack_require__(44763));
  4543. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4544. class HttpsProxyAgent extends _Agent.default {
  4545. // eslint-disable-next-line unicorn/prevent-abbreviations
  4546. constructor(...args) {
  4547. super(...args);
  4548. this.protocol = 'https:';
  4549. this.defaultPort = 443;
  4550. }
  4551. createConnection(configuration, callback) {
  4552. const socket = _net.default.connect(configuration.proxy.port, configuration.proxy.hostname);
  4553. socket.on('error', error => {
  4554. callback(error);
  4555. });
  4556. socket.once('data', () => {
  4557. const secureSocket = _tls.default.connect({ ...configuration.tls,
  4558. socket
  4559. });
  4560. callback(null, secureSocket);
  4561. });
  4562. let connectMessage = '';
  4563. connectMessage += 'CONNECT ' + configuration.host + ':' + configuration.port + ' HTTP/1.1\r\n';
  4564. connectMessage += 'Host: ' + configuration.host + ':' + configuration.port + '\r\n';
  4565. if (configuration.proxy.authorization) {
  4566. connectMessage += 'Proxy-Authorization: Basic ' + Buffer.from(configuration.proxy.authorization).toString('base64') + '\r\n';
  4567. }
  4568. connectMessage += '\r\n';
  4569. socket.write(connectMessage);
  4570. }
  4571. }
  4572. var _default = HttpsProxyAgent;
  4573. exports.default = _default;
  4574. //# sourceMappingURL=HttpsProxyAgent.js.map
  4575. /***/ }),
  4576. /***/ 86595:
  4577. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4578. "use strict";
  4579. Object.defineProperty(exports, "__esModule", ({
  4580. value: true
  4581. }));
  4582. Object.defineProperty(exports, "Agent", ({
  4583. enumerable: true,
  4584. get: function () {
  4585. return _Agent.default;
  4586. }
  4587. }));
  4588. Object.defineProperty(exports, "HttpProxyAgent", ({
  4589. enumerable: true,
  4590. get: function () {
  4591. return _HttpProxyAgent.default;
  4592. }
  4593. }));
  4594. Object.defineProperty(exports, "HttpsProxyAgent", ({
  4595. enumerable: true,
  4596. get: function () {
  4597. return _HttpsProxyAgent.default;
  4598. }
  4599. }));
  4600. var _Agent = _interopRequireDefault(__webpack_require__(44763));
  4601. var _HttpProxyAgent = _interopRequireDefault(__webpack_require__(21878));
  4602. var _HttpsProxyAgent = _interopRequireDefault(__webpack_require__(87298));
  4603. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4604. //# sourceMappingURL=index.js.map
  4605. /***/ }),
  4606. /***/ 49714:
  4607. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4608. "use strict";
  4609. Object.defineProperty(exports, "__esModule", ({
  4610. value: true
  4611. }));
  4612. exports.UnexpectedStateError = void 0;
  4613. var _es6Error = _interopRequireDefault(__webpack_require__(27216));
  4614. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4615. /* eslint-disable fp/no-class, fp/no-this */
  4616. class UnexpectedStateError extends _es6Error.default {
  4617. constructor(message, code = 'UNEXPECTED_STATE_ERROR') {
  4618. super(message);
  4619. this.code = code;
  4620. }
  4621. }
  4622. exports.UnexpectedStateError = UnexpectedStateError;
  4623. //# sourceMappingURL=errors.js.map
  4624. /***/ }),
  4625. /***/ 65973:
  4626. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4627. "use strict";
  4628. Object.defineProperty(exports, "__esModule", ({
  4629. value: true
  4630. }));
  4631. exports.default = void 0;
  4632. var _http = _interopRequireDefault(__webpack_require__(98605));
  4633. var _https = _interopRequireDefault(__webpack_require__(57211));
  4634. var _boolean = __webpack_require__(46088);
  4635. var _semver = _interopRequireDefault(__webpack_require__(81833));
  4636. var _Logger = _interopRequireDefault(__webpack_require__(36257));
  4637. var _classes = __webpack_require__(86595);
  4638. var _errors = __webpack_require__(49714);
  4639. var _utilities = __webpack_require__(49426);
  4640. var _createProxyController = _interopRequireDefault(__webpack_require__(4117));
  4641. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4642. const httpGet = _http.default.get;
  4643. const httpRequest = _http.default.request;
  4644. const httpsGet = _https.default.get;
  4645. const httpsRequest = _https.default.request;
  4646. const log = _Logger.default.child({
  4647. namespace: 'createGlobalProxyAgent'
  4648. });
  4649. const defaultConfigurationInput = {
  4650. environmentVariableNamespace: undefined,
  4651. forceGlobalAgent: undefined,
  4652. socketConnectionTimeout: 60000
  4653. };
  4654. const omitUndefined = subject => {
  4655. const keys = Object.keys(subject);
  4656. const result = {};
  4657. for (const key of keys) {
  4658. const value = subject[key];
  4659. if (value !== undefined) {
  4660. result[key] = value;
  4661. }
  4662. }
  4663. return result;
  4664. };
  4665. const createConfiguration = configurationInput => {
  4666. // eslint-disable-next-line no-process-env
  4667. const environment = process.env;
  4668. const defaultConfiguration = {
  4669. environmentVariableNamespace: typeof environment.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE === 'string' ? environment.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE : 'GLOBAL_AGENT_',
  4670. forceGlobalAgent: typeof environment.GLOBAL_AGENT_FORCE_GLOBAL_AGENT === 'string' ? (0, _boolean.boolean)(environment.GLOBAL_AGENT_FORCE_GLOBAL_AGENT) : true,
  4671. socketConnectionTimeout: typeof environment.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT === 'string' ? Number.parseInt(environment.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT, 10) : defaultConfigurationInput.socketConnectionTimeout
  4672. }; // $FlowFixMe
  4673. return { ...defaultConfiguration,
  4674. ...omitUndefined(configurationInput)
  4675. };
  4676. };
  4677. const createGlobalProxyAgent = (configurationInput = defaultConfigurationInput) => {
  4678. const configuration = createConfiguration(configurationInput);
  4679. const proxyController = (0, _createProxyController.default)(); // eslint-disable-next-line no-process-env
  4680. proxyController.HTTP_PROXY = process.env[configuration.environmentVariableNamespace + 'HTTP_PROXY'] || null; // eslint-disable-next-line no-process-env
  4681. proxyController.HTTPS_PROXY = process.env[configuration.environmentVariableNamespace + 'HTTPS_PROXY'] || null; // eslint-disable-next-line no-process-env
  4682. proxyController.NO_PROXY = process.env[configuration.environmentVariableNamespace + 'NO_PROXY'] || null;
  4683. log.info({
  4684. configuration,
  4685. state: proxyController
  4686. }, 'global agent has been initialized');
  4687. const mustUrlUseProxy = getProxy => {
  4688. return url => {
  4689. if (!getProxy()) {
  4690. return false;
  4691. }
  4692. if (!proxyController.NO_PROXY) {
  4693. return true;
  4694. }
  4695. return !(0, _utilities.isUrlMatchingNoProxy)(url, proxyController.NO_PROXY);
  4696. };
  4697. };
  4698. const getUrlProxy = getProxy => {
  4699. return () => {
  4700. const proxy = getProxy();
  4701. if (!proxy) {
  4702. throw new _errors.UnexpectedStateError('HTTP(S) proxy must be configured.');
  4703. }
  4704. return (0, _utilities.parseProxyUrl)(proxy);
  4705. };
  4706. };
  4707. const getHttpProxy = () => {
  4708. return proxyController.HTTP_PROXY;
  4709. };
  4710. const BoundHttpProxyAgent = class extends _classes.HttpProxyAgent {
  4711. constructor() {
  4712. super(() => {
  4713. return getHttpProxy();
  4714. }, mustUrlUseProxy(getHttpProxy), getUrlProxy(getHttpProxy), _http.default.globalAgent, configuration.socketConnectionTimeout);
  4715. }
  4716. };
  4717. const httpAgent = new BoundHttpProxyAgent();
  4718. const getHttpsProxy = () => {
  4719. return proxyController.HTTPS_PROXY || proxyController.HTTP_PROXY;
  4720. };
  4721. const BoundHttpsProxyAgent = class extends _classes.HttpsProxyAgent {
  4722. constructor() {
  4723. super(() => {
  4724. return getHttpsProxy();
  4725. }, mustUrlUseProxy(getHttpsProxy), getUrlProxy(getHttpsProxy), _https.default.globalAgent, configuration.socketConnectionTimeout);
  4726. }
  4727. };
  4728. const httpsAgent = new BoundHttpsProxyAgent(); // Overriding globalAgent was added in v11.7.
  4729. // @see https://nodejs.org/uk/blog/release/v11.7.0/
  4730. if (_semver.default.gte(process.version, 'v11.7.0')) {
  4731. // @see https://github.com/facebook/flow/issues/7670
  4732. // $FlowFixMe
  4733. _http.default.globalAgent = httpAgent; // $FlowFixMe
  4734. _https.default.globalAgent = httpsAgent;
  4735. } // The reason this logic is used in addition to overriding http(s).globalAgent
  4736. // is because there is no guarantee that we set http(s).globalAgent variable
  4737. // before an instance of http(s).Agent has been already constructed by someone,
  4738. // e.g. Stripe SDK creates instances of http(s).Agent at the top-level.
  4739. // @see https://github.com/gajus/global-agent/pull/13
  4740. //
  4741. // We still want to override http(s).globalAgent when possible to enable logic
  4742. // in `bindHttpMethod`.
  4743. if (_semver.default.gte(process.version, 'v10.0.0')) {
  4744. // $FlowFixMe
  4745. _http.default.get = (0, _utilities.bindHttpMethod)(httpGet, httpAgent, configuration.forceGlobalAgent); // $FlowFixMe
  4746. _http.default.request = (0, _utilities.bindHttpMethod)(httpRequest, httpAgent, configuration.forceGlobalAgent); // $FlowFixMe
  4747. _https.default.get = (0, _utilities.bindHttpMethod)(httpsGet, httpsAgent, configuration.forceGlobalAgent); // $FlowFixMe
  4748. _https.default.request = (0, _utilities.bindHttpMethod)(httpsRequest, httpsAgent, configuration.forceGlobalAgent);
  4749. } else {
  4750. log.warn('attempt to initialize global-agent in unsupported Node.js version was ignored');
  4751. }
  4752. return proxyController;
  4753. };
  4754. var _default = createGlobalProxyAgent;
  4755. exports.default = _default;
  4756. //# sourceMappingURL=createGlobalProxyAgent.js.map
  4757. /***/ }),
  4758. /***/ 4117:
  4759. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4760. "use strict";
  4761. Object.defineProperty(exports, "__esModule", ({
  4762. value: true
  4763. }));
  4764. exports.default = void 0;
  4765. var _Logger = _interopRequireDefault(__webpack_require__(36257));
  4766. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4767. const log = _Logger.default.child({
  4768. namespace: 'createProxyController'
  4769. });
  4770. const KNOWN_PROPERTY_NAMES = ['HTTP_PROXY', 'HTTPS_PROXY', 'NO_PROXY'];
  4771. const createProxyController = () => {
  4772. // eslint-disable-next-line fp/no-proxy
  4773. return new Proxy({
  4774. HTTP_PROXY: null,
  4775. HTTPS_PROXY: null,
  4776. NO_PROXY: null
  4777. }, {
  4778. set: (subject, name, value) => {
  4779. if (!KNOWN_PROPERTY_NAMES.includes(name)) {
  4780. throw new Error('Cannot set an unmapped property "' + name + '".');
  4781. }
  4782. subject[name] = value;
  4783. log.info({
  4784. change: {
  4785. name,
  4786. value
  4787. },
  4788. newConfiguration: subject
  4789. }, 'configuration changed');
  4790. return true;
  4791. }
  4792. });
  4793. };
  4794. var _default = createProxyController;
  4795. exports.default = _default;
  4796. //# sourceMappingURL=createProxyController.js.map
  4797. /***/ }),
  4798. /***/ 92842:
  4799. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4800. "use strict";
  4801. Object.defineProperty(exports, "__esModule", ({
  4802. value: true
  4803. }));
  4804. Object.defineProperty(exports, "createGlobalProxyAgent", ({
  4805. enumerable: true,
  4806. get: function () {
  4807. return _createGlobalProxyAgent.default;
  4808. }
  4809. }));
  4810. Object.defineProperty(exports, "createProxyController", ({
  4811. enumerable: true,
  4812. get: function () {
  4813. return _createProxyController.default;
  4814. }
  4815. }));
  4816. var _createGlobalProxyAgent = _interopRequireDefault(__webpack_require__(65973));
  4817. var _createProxyController = _interopRequireDefault(__webpack_require__(4117));
  4818. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4819. //# sourceMappingURL=index.js.map
  4820. /***/ }),
  4821. /***/ 97959:
  4822. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4823. "use strict";
  4824. Object.defineProperty(exports, "__esModule", ({
  4825. value: true
  4826. }));
  4827. Object.defineProperty(exports, "bootstrap", ({
  4828. enumerable: true,
  4829. get: function () {
  4830. return _routines.bootstrap;
  4831. }
  4832. }));
  4833. Object.defineProperty(exports, "createGlobalProxyAgent", ({
  4834. enumerable: true,
  4835. get: function () {
  4836. return _factories.createGlobalProxyAgent;
  4837. }
  4838. }));
  4839. var _routines = __webpack_require__(41143);
  4840. var _factories = __webpack_require__(92842);
  4841. //# sourceMappingURL=index.js.map
  4842. /***/ }),
  4843. /***/ 76746:
  4844. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4845. "use strict";
  4846. Object.defineProperty(exports, "__esModule", ({
  4847. value: true
  4848. }));
  4849. exports.default = void 0;
  4850. var _Logger = _interopRequireDefault(__webpack_require__(36257));
  4851. var _factories = __webpack_require__(92842);
  4852. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4853. const log = _Logger.default.child({
  4854. namespace: 'bootstrap'
  4855. });
  4856. const bootstrap = configurationInput => {
  4857. if (global.GLOBAL_AGENT) {
  4858. log.warn('found global.GLOBAL_AGENT; second attempt to bootstrap global-agent was ignored');
  4859. return false;
  4860. }
  4861. global.GLOBAL_AGENT = (0, _factories.createGlobalProxyAgent)(configurationInput);
  4862. return true;
  4863. };
  4864. var _default = bootstrap;
  4865. exports.default = _default;
  4866. //# sourceMappingURL=bootstrap.js.map
  4867. /***/ }),
  4868. /***/ 41143:
  4869. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4870. "use strict";
  4871. Object.defineProperty(exports, "__esModule", ({
  4872. value: true
  4873. }));
  4874. Object.defineProperty(exports, "bootstrap", ({
  4875. enumerable: true,
  4876. get: function () {
  4877. return _bootstrap.default;
  4878. }
  4879. }));
  4880. var _bootstrap = _interopRequireDefault(__webpack_require__(76746));
  4881. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4882. //# sourceMappingURL=index.js.map
  4883. /***/ }),
  4884. /***/ 11861:
  4885. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4886. "use strict";
  4887. Object.defineProperty(exports, "__esModule", ({
  4888. value: true
  4889. }));
  4890. exports.default = void 0;
  4891. var _http = _interopRequireDefault(__webpack_require__(98605));
  4892. var _https = _interopRequireDefault(__webpack_require__(57211));
  4893. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4894. // eslint-disable-next-line flowtype/no-weak-types
  4895. const bindHttpMethod = (originalMethod, agent, forceGlobalAgent) => {
  4896. // eslint-disable-next-line unicorn/prevent-abbreviations
  4897. return (...args) => {
  4898. let url;
  4899. let options;
  4900. let callback;
  4901. if (typeof args[0] === 'string' || args[0] instanceof URL) {
  4902. url = args[0];
  4903. if (typeof args[1] === 'function') {
  4904. options = {};
  4905. callback = args[1];
  4906. } else {
  4907. options = { ...args[1]
  4908. };
  4909. callback = args[2];
  4910. }
  4911. } else {
  4912. options = { ...args[0]
  4913. };
  4914. callback = args[1];
  4915. }
  4916. if (forceGlobalAgent) {
  4917. options.agent = agent;
  4918. } else {
  4919. if (!options.agent) {
  4920. options.agent = agent;
  4921. }
  4922. if (options.agent === _http.default.globalAgent || options.agent === _https.default.globalAgent) {
  4923. options.agent = agent;
  4924. }
  4925. }
  4926. if (url) {
  4927. // $FlowFixMe
  4928. return originalMethod(url, options, callback);
  4929. } else {
  4930. return originalMethod(options, callback);
  4931. }
  4932. };
  4933. };
  4934. var _default = bindHttpMethod;
  4935. exports.default = _default;
  4936. //# sourceMappingURL=bindHttpMethod.js.map
  4937. /***/ }),
  4938. /***/ 49426:
  4939. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4940. "use strict";
  4941. Object.defineProperty(exports, "__esModule", ({
  4942. value: true
  4943. }));
  4944. Object.defineProperty(exports, "bindHttpMethod", ({
  4945. enumerable: true,
  4946. get: function () {
  4947. return _bindHttpMethod.default;
  4948. }
  4949. }));
  4950. Object.defineProperty(exports, "isUrlMatchingNoProxy", ({
  4951. enumerable: true,
  4952. get: function () {
  4953. return _isUrlMatchingNoProxy.default;
  4954. }
  4955. }));
  4956. Object.defineProperty(exports, "parseProxyUrl", ({
  4957. enumerable: true,
  4958. get: function () {
  4959. return _parseProxyUrl.default;
  4960. }
  4961. }));
  4962. var _bindHttpMethod = _interopRequireDefault(__webpack_require__(11861));
  4963. var _isUrlMatchingNoProxy = _interopRequireDefault(__webpack_require__(1278));
  4964. var _parseProxyUrl = _interopRequireDefault(__webpack_require__(51600));
  4965. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4966. //# sourceMappingURL=index.js.map
  4967. /***/ }),
  4968. /***/ 1278:
  4969. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  4970. "use strict";
  4971. Object.defineProperty(exports, "__esModule", ({
  4972. value: true
  4973. }));
  4974. exports.default = void 0;
  4975. var _url = __webpack_require__(78835);
  4976. var _matcher = _interopRequireDefault(__webpack_require__(63110));
  4977. var _errors = __webpack_require__(49714);
  4978. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4979. const isUrlMatchingNoProxy = (subjectUrl, noProxy) => {
  4980. const subjectUrlTokens = (0, _url.parse)(subjectUrl);
  4981. const rules = noProxy.split(/[\s,]+/);
  4982. for (const rule of rules) {
  4983. const ruleMatch = rule.replace(/^(?<leadingDot>\.)/, '*').match(/^(?<hostname>.+?)(?::(?<port>\d+))?$/);
  4984. if (!ruleMatch || !ruleMatch.groups) {
  4985. throw new _errors.UnexpectedStateError('Invalid NO_PROXY pattern.');
  4986. }
  4987. if (!ruleMatch.groups.hostname) {
  4988. throw new _errors.UnexpectedStateError('NO_PROXY entry pattern must include hostname. Use * to match any hostname.');
  4989. }
  4990. const hostnameIsMatch = _matcher.default.isMatch(subjectUrlTokens.hostname, ruleMatch.groups.hostname);
  4991. if (hostnameIsMatch && (!ruleMatch.groups || !ruleMatch.groups.port || subjectUrlTokens.port && subjectUrlTokens.port === ruleMatch.groups.port)) {
  4992. return true;
  4993. }
  4994. }
  4995. return false;
  4996. };
  4997. var _default = isUrlMatchingNoProxy;
  4998. exports.default = _default;
  4999. //# sourceMappingURL=isUrlMatchingNoProxy.js.map
  5000. /***/ }),
  5001. /***/ 51600:
  5002. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  5003. "use strict";
  5004. Object.defineProperty(exports, "__esModule", ({
  5005. value: true
  5006. }));
  5007. exports.default = void 0;
  5008. var _url = __webpack_require__(78835);
  5009. var _errors = __webpack_require__(49714);
  5010. const parseProxyUrl = url => {
  5011. const urlTokens = (0, _url.parse)(url);
  5012. if (urlTokens.query !== null) {
  5013. throw new _errors.UnexpectedStateError('Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have query.');
  5014. }
  5015. if (urlTokens.hash !== null) {
  5016. throw new _errors.UnexpectedStateError('Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have hash.');
  5017. }
  5018. if (urlTokens.protocol !== 'http:') {
  5019. throw new _errors.UnexpectedStateError('Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:".');
  5020. }
  5021. let port = 80;
  5022. if (urlTokens.port) {
  5023. port = Number.parseInt(urlTokens.port, 10);
  5024. }
  5025. return {
  5026. authorization: urlTokens.auth || null,
  5027. hostname: urlTokens.hostname,
  5028. port
  5029. };
  5030. };
  5031. var _default = parseProxyUrl;
  5032. exports.default = _default;
  5033. //# sourceMappingURL=parseProxyUrl.js.map
  5034. /***/ }),
  5035. /***/ 40162:
  5036. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  5037. "use strict";
  5038. // A linked list to keep track of recently-used-ness
  5039. const Yallist = __webpack_require__(68981)
  5040. const MAX = Symbol('max')
  5041. const LENGTH = Symbol('length')
  5042. const LENGTH_CALCULATOR = Symbol('lengthCalculator')
  5043. const ALLOW_STALE = Symbol('allowStale')
  5044. const MAX_AGE = Symbol('maxAge')
  5045. const DISPOSE = Symbol('dispose')
  5046. const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')
  5047. const LRU_LIST = Symbol('lruList')
  5048. const CACHE = Symbol('cache')
  5049. const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')
  5050. const naiveLength = () => 1
  5051. // lruList is a yallist where the head is the youngest
  5052. // item, and the tail is the oldest. the list contains the Hit
  5053. // objects as the entries.
  5054. // Each Hit object has a reference to its Yallist.Node. This
  5055. // never changes.
  5056. //
  5057. // cache is a Map (or PseudoMap) that matches the keys to
  5058. // the Yallist.Node object.
  5059. class LRUCache {
  5060. constructor (options) {
  5061. if (typeof options === 'number')
  5062. options = { max: options }
  5063. if (!options)
  5064. options = {}
  5065. if (options.max && (typeof options.max !== 'number' || options.max < 0))
  5066. throw new TypeError('max must be a non-negative number')
  5067. // Kind of weird to have a default max of Infinity, but oh well.
  5068. const max = this[MAX] = options.max || Infinity
  5069. const lc = options.length || naiveLength
  5070. this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc
  5071. this[ALLOW_STALE] = options.stale || false
  5072. if (options.maxAge && typeof options.maxAge !== 'number')
  5073. throw new TypeError('maxAge must be a number')
  5074. this[MAX_AGE] = options.maxAge || 0
  5075. this[DISPOSE] = options.dispose
  5076. this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false
  5077. this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false
  5078. this.reset()
  5079. }
  5080. // resize the cache when the max changes.
  5081. set max (mL) {
  5082. if (typeof mL !== 'number' || mL < 0)
  5083. throw new TypeError('max must be a non-negative number')
  5084. this[MAX] = mL || Infinity
  5085. trim(this)
  5086. }
  5087. get max () {
  5088. return this[MAX]
  5089. }
  5090. set allowStale (allowStale) {
  5091. this[ALLOW_STALE] = !!allowStale
  5092. }
  5093. get allowStale () {
  5094. return this[ALLOW_STALE]
  5095. }
  5096. set maxAge (mA) {
  5097. if (typeof mA !== 'number')
  5098. throw new TypeError('maxAge must be a non-negative number')
  5099. this[MAX_AGE] = mA
  5100. trim(this)
  5101. }
  5102. get maxAge () {
  5103. return this[MAX_AGE]
  5104. }
  5105. // resize the cache when the lengthCalculator changes.
  5106. set lengthCalculator (lC) {
  5107. if (typeof lC !== 'function')
  5108. lC = naiveLength
  5109. if (lC !== this[LENGTH_CALCULATOR]) {
  5110. this[LENGTH_CALCULATOR] = lC
  5111. this[LENGTH] = 0
  5112. this[LRU_LIST].forEach(hit => {
  5113. hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)
  5114. this[LENGTH] += hit.length
  5115. })
  5116. }
  5117. trim(this)
  5118. }
  5119. get lengthCalculator () { return this[LENGTH_CALCULATOR] }
  5120. get length () { return this[LENGTH] }
  5121. get itemCount () { return this[LRU_LIST].length }
  5122. rforEach (fn, thisp) {
  5123. thisp = thisp || this
  5124. for (let walker = this[LRU_LIST].tail; walker !== null;) {
  5125. const prev = walker.prev
  5126. forEachStep(this, fn, walker, thisp)
  5127. walker = prev
  5128. }
  5129. }
  5130. forEach (fn, thisp) {
  5131. thisp = thisp || this
  5132. for (let walker = this[LRU_LIST].head; walker !== null;) {
  5133. const next = walker.next
  5134. forEachStep(this, fn, walker, thisp)
  5135. walker = next
  5136. }
  5137. }
  5138. keys () {
  5139. return this[LRU_LIST].toArray().map(k => k.key)
  5140. }
  5141. values () {
  5142. return this[LRU_LIST].toArray().map(k => k.value)
  5143. }
  5144. reset () {
  5145. if (this[DISPOSE] &&
  5146. this[LRU_LIST] &&
  5147. this[LRU_LIST].length) {
  5148. this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))
  5149. }
  5150. this[CACHE] = new Map() // hash of items by key
  5151. this[LRU_LIST] = new Yallist() // list of items in order of use recency
  5152. this[LENGTH] = 0 // length of items in the list
  5153. }
  5154. dump () {
  5155. return this[LRU_LIST].map(hit =>
  5156. isStale(this, hit) ? false : {
  5157. k: hit.key,
  5158. v: hit.value,
  5159. e: hit.now + (hit.maxAge || 0)
  5160. }).toArray().filter(h => h)
  5161. }
  5162. dumpLru () {
  5163. return this[LRU_LIST]
  5164. }
  5165. set (key, value, maxAge) {
  5166. maxAge = maxAge || this[MAX_AGE]
  5167. if (maxAge && typeof maxAge !== 'number')
  5168. throw new TypeError('maxAge must be a number')
  5169. const now = maxAge ? Date.now() : 0
  5170. const len = this[LENGTH_CALCULATOR](value, key)
  5171. if (this[CACHE].has(key)) {
  5172. if (len > this[MAX]) {
  5173. del(this, this[CACHE].get(key))
  5174. return false
  5175. }
  5176. const node = this[CACHE].get(key)
  5177. const item = node.value
  5178. // dispose of the old one before overwriting
  5179. // split out into 2 ifs for better coverage tracking
  5180. if (this[DISPOSE]) {
  5181. if (!this[NO_DISPOSE_ON_SET])
  5182. this[DISPOSE](key, item.value)
  5183. }
  5184. item.now = now
  5185. item.maxAge = maxAge
  5186. item.value = value
  5187. this[LENGTH] += len - item.length
  5188. item.length = len
  5189. this.get(key)
  5190. trim(this)
  5191. return true
  5192. }
  5193. const hit = new Entry(key, value, len, now, maxAge)
  5194. // oversized objects fall out of cache automatically.
  5195. if (hit.length > this[MAX]) {
  5196. if (this[DISPOSE])
  5197. this[DISPOSE](key, value)
  5198. return false
  5199. }
  5200. this[LENGTH] += hit.length
  5201. this[LRU_LIST].unshift(hit)
  5202. this[CACHE].set(key, this[LRU_LIST].head)
  5203. trim(this)
  5204. return true
  5205. }
  5206. has (key) {
  5207. if (!this[CACHE].has(key)) return false
  5208. const hit = this[CACHE].get(key).value
  5209. return !isStale(this, hit)
  5210. }
  5211. get (key) {
  5212. return get(this, key, true)
  5213. }
  5214. peek (key) {
  5215. return get(this, key, false)
  5216. }
  5217. pop () {
  5218. const node = this[LRU_LIST].tail
  5219. if (!node)
  5220. return null
  5221. del(this, node)
  5222. return node.value
  5223. }
  5224. del (key) {
  5225. del(this, this[CACHE].get(key))
  5226. }
  5227. load (arr) {
  5228. // reset the cache
  5229. this.reset()
  5230. const now = Date.now()
  5231. // A previous serialized cache has the most recent items first
  5232. for (let l = arr.length - 1; l >= 0; l--) {
  5233. const hit = arr[l]
  5234. const expiresAt = hit.e || 0
  5235. if (expiresAt === 0)
  5236. // the item was created without expiration in a non aged cache
  5237. this.set(hit.k, hit.v)
  5238. else {
  5239. const maxAge = expiresAt - now
  5240. // dont add already expired items
  5241. if (maxAge > 0) {
  5242. this.set(hit.k, hit.v, maxAge)
  5243. }
  5244. }
  5245. }
  5246. }
  5247. prune () {
  5248. this[CACHE].forEach((value, key) => get(this, key, false))
  5249. }
  5250. }
  5251. const get = (self, key, doUse) => {
  5252. const node = self[CACHE].get(key)
  5253. if (node) {
  5254. const hit = node.value
  5255. if (isStale(self, hit)) {
  5256. del(self, node)
  5257. if (!self[ALLOW_STALE])
  5258. return undefined
  5259. } else {
  5260. if (doUse) {
  5261. if (self[UPDATE_AGE_ON_GET])
  5262. node.value.now = Date.now()
  5263. self[LRU_LIST].unshiftNode(node)
  5264. }
  5265. }
  5266. return hit.value
  5267. }
  5268. }
  5269. const isStale = (self, hit) => {
  5270. if (!hit || (!hit.maxAge && !self[MAX_AGE]))
  5271. return false
  5272. const diff = Date.now() - hit.now
  5273. return hit.maxAge ? diff > hit.maxAge
  5274. : self[MAX_AGE] && (diff > self[MAX_AGE])
  5275. }
  5276. const trim = self => {
  5277. if (self[LENGTH] > self[MAX]) {
  5278. for (let walker = self[LRU_LIST].tail;
  5279. self[LENGTH] > self[MAX] && walker !== null;) {
  5280. // We know that we're about to delete this one, and also
  5281. // what the next least recently used key will be, so just
  5282. // go ahead and set it now.
  5283. const prev = walker.prev
  5284. del(self, walker)
  5285. walker = prev
  5286. }
  5287. }
  5288. }
  5289. const del = (self, node) => {
  5290. if (node) {
  5291. const hit = node.value
  5292. if (self[DISPOSE])
  5293. self[DISPOSE](hit.key, hit.value)
  5294. self[LENGTH] -= hit.length
  5295. self[CACHE].delete(hit.key)
  5296. self[LRU_LIST].removeNode(node)
  5297. }
  5298. }
  5299. class Entry {
  5300. constructor (key, value, length, now, maxAge) {
  5301. this.key = key
  5302. this.value = value
  5303. this.length = length
  5304. this.now = now
  5305. this.maxAge = maxAge || 0
  5306. }
  5307. }
  5308. const forEachStep = (self, fn, node, thisp) => {
  5309. let hit = node.value
  5310. if (isStale(self, hit)) {
  5311. del(self, node)
  5312. if (!self[ALLOW_STALE])
  5313. hit = undefined
  5314. }
  5315. if (hit)
  5316. fn.call(thisp, hit.value, hit.key, self)
  5317. }
  5318. module.exports = LRUCache
  5319. /***/ }),
  5320. /***/ 71378:
  5321. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  5322. const ANY = Symbol('SemVer ANY')
  5323. // hoisted class for cyclic dependency
  5324. class Comparator {
  5325. static get ANY () {
  5326. return ANY
  5327. }
  5328. constructor (comp, options) {
  5329. options = parseOptions(options)
  5330. if (comp instanceof Comparator) {
  5331. if (comp.loose === !!options.loose) {
  5332. return comp
  5333. } else {
  5334. comp = comp.value
  5335. }
  5336. }
  5337. debug('comparator', comp, options)
  5338. this.options = options
  5339. this.loose = !!options.loose
  5340. this.parse(comp)
  5341. if (this.semver === ANY) {
  5342. this.value = ''
  5343. } else {
  5344. this.value = this.operator + this.semver.version
  5345. }
  5346. debug('comp', this)
  5347. }
  5348. parse (comp) {
  5349. const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  5350. const m = comp.match(r)
  5351. if (!m) {
  5352. throw new TypeError(`Invalid comparator: ${comp}`)
  5353. }
  5354. this.operator = m[1] !== undefined ? m[1] : ''
  5355. if (this.operator === '=') {
  5356. this.operator = ''
  5357. }
  5358. // if it literally is just '>' or '' then allow anything.
  5359. if (!m[2]) {
  5360. this.semver = ANY
  5361. } else {
  5362. this.semver = new SemVer(m[2], this.options.loose)
  5363. }
  5364. }
  5365. toString () {
  5366. return this.value
  5367. }
  5368. test (version) {
  5369. debug('Comparator.test', version, this.options.loose)
  5370. if (this.semver === ANY || version === ANY) {
  5371. return true
  5372. }
  5373. if (typeof version === 'string') {
  5374. try {
  5375. version = new SemVer(version, this.options)
  5376. } catch (er) {
  5377. return false
  5378. }
  5379. }
  5380. return cmp(version, this.operator, this.semver, this.options)
  5381. }
  5382. intersects (comp, options) {
  5383. if (!(comp instanceof Comparator)) {
  5384. throw new TypeError('a Comparator is required')
  5385. }
  5386. if (!options || typeof options !== 'object') {
  5387. options = {
  5388. loose: !!options,
  5389. includePrerelease: false
  5390. }
  5391. }
  5392. if (this.operator === '') {
  5393. if (this.value === '') {
  5394. return true
  5395. }
  5396. return new Range(comp.value, options).test(this.value)
  5397. } else if (comp.operator === '') {
  5398. if (comp.value === '') {
  5399. return true
  5400. }
  5401. return new Range(this.value, options).test(comp.semver)
  5402. }
  5403. const sameDirectionIncreasing =
  5404. (this.operator === '>=' || this.operator === '>') &&
  5405. (comp.operator === '>=' || comp.operator === '>')
  5406. const sameDirectionDecreasing =
  5407. (this.operator === '<=' || this.operator === '<') &&
  5408. (comp.operator === '<=' || comp.operator === '<')
  5409. const sameSemVer = this.semver.version === comp.semver.version
  5410. const differentDirectionsInclusive =
  5411. (this.operator === '>=' || this.operator === '<=') &&
  5412. (comp.operator === '>=' || comp.operator === '<=')
  5413. const oppositeDirectionsLessThan =
  5414. cmp(this.semver, '<', comp.semver, options) &&
  5415. (this.operator === '>=' || this.operator === '>') &&
  5416. (comp.operator === '<=' || comp.operator === '<')
  5417. const oppositeDirectionsGreaterThan =
  5418. cmp(this.semver, '>', comp.semver, options) &&
  5419. (this.operator === '<=' || this.operator === '<') &&
  5420. (comp.operator === '>=' || comp.operator === '>')
  5421. return (
  5422. sameDirectionIncreasing ||
  5423. sameDirectionDecreasing ||
  5424. (sameSemVer && differentDirectionsInclusive) ||
  5425. oppositeDirectionsLessThan ||
  5426. oppositeDirectionsGreaterThan
  5427. )
  5428. }
  5429. }
  5430. module.exports = Comparator
  5431. const parseOptions = __webpack_require__(95659)
  5432. const {re, t} = __webpack_require__(5824)
  5433. const cmp = __webpack_require__(91527)
  5434. const debug = __webpack_require__(95230)
  5435. const SemVer = __webpack_require__(32703)
  5436. const Range = __webpack_require__(47663)
  5437. /***/ }),
  5438. /***/ 47663:
  5439. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  5440. // hoisted class for cyclic dependency
  5441. class Range {
  5442. constructor (range, options) {
  5443. options = parseOptions(options)
  5444. if (range instanceof Range) {
  5445. if (
  5446. range.loose === !!options.loose &&
  5447. range.includePrerelease === !!options.includePrerelease
  5448. ) {
  5449. return range
  5450. } else {
  5451. return new Range(range.raw, options)
  5452. }
  5453. }
  5454. if (range instanceof Comparator) {
  5455. // just put it in the set and return
  5456. this.raw = range.value
  5457. this.set = [[range]]
  5458. this.format()
  5459. return this
  5460. }
  5461. this.options = options
  5462. this.loose = !!options.loose
  5463. this.includePrerelease = !!options.includePrerelease
  5464. // First, split based on boolean or ||
  5465. this.raw = range
  5466. this.set = range
  5467. .split(/\s*\|\|\s*/)
  5468. // map the range to a 2d array of comparators
  5469. .map(range => this.parseRange(range.trim()))
  5470. // throw out any comparator lists that are empty
  5471. // this generally means that it was not a valid range, which is allowed
  5472. // in loose mode, but will still throw if the WHOLE range is invalid.
  5473. .filter(c => c.length)
  5474. if (!this.set.length) {
  5475. throw new TypeError(`Invalid SemVer Range: ${range}`)
  5476. }
  5477. // if we have any that are not the null set, throw out null sets.
  5478. if (this.set.length > 1) {
  5479. // keep the first one, in case they're all null sets
  5480. const first = this.set[0]
  5481. this.set = this.set.filter(c => !isNullSet(c[0]))
  5482. if (this.set.length === 0)
  5483. this.set = [first]
  5484. else if (this.set.length > 1) {
  5485. // if we have any that are *, then the range is just *
  5486. for (const c of this.set) {
  5487. if (c.length === 1 && isAny(c[0])) {
  5488. this.set = [c]
  5489. break
  5490. }
  5491. }
  5492. }
  5493. }
  5494. this.format()
  5495. }
  5496. format () {
  5497. this.range = this.set
  5498. .map((comps) => {
  5499. return comps.join(' ').trim()
  5500. })
  5501. .join('||')
  5502. .trim()
  5503. return this.range
  5504. }
  5505. toString () {
  5506. return this.range
  5507. }
  5508. parseRange (range) {
  5509. range = range.trim()
  5510. // memoize range parsing for performance.
  5511. // this is a very hot path, and fully deterministic.
  5512. const memoOpts = Object.keys(this.options).join(',')
  5513. const memoKey = `parseRange:${memoOpts}:${range}`
  5514. const cached = cache.get(memoKey)
  5515. if (cached)
  5516. return cached
  5517. const loose = this.options.loose
  5518. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  5519. const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
  5520. range = range.replace(hr, hyphenReplace(this.options.includePrerelease))
  5521. debug('hyphen replace', range)
  5522. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  5523. range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
  5524. debug('comparator trim', range, re[t.COMPARATORTRIM])
  5525. // `~ 1.2.3` => `~1.2.3`
  5526. range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
  5527. // `^ 1.2.3` => `^1.2.3`
  5528. range = range.replace(re[t.CARETTRIM], caretTrimReplace)
  5529. // normalize spaces
  5530. range = range.split(/\s+/).join(' ')
  5531. // At this point, the range is completely trimmed and
  5532. // ready to be split into comparators.
  5533. const compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  5534. const rangeList = range
  5535. .split(' ')
  5536. .map(comp => parseComparator(comp, this.options))
  5537. .join(' ')
  5538. .split(/\s+/)
  5539. // >=0.0.0 is equivalent to *
  5540. .map(comp => replaceGTE0(comp, this.options))
  5541. // in loose mode, throw out any that are not valid comparators
  5542. .filter(this.options.loose ? comp => !!comp.match(compRe) : () => true)
  5543. .map(comp => new Comparator(comp, this.options))
  5544. // if any comparators are the null set, then replace with JUST null set
  5545. // if more than one comparator, remove any * comparators
  5546. // also, don't include the same comparator more than once
  5547. const l = rangeList.length
  5548. const rangeMap = new Map()
  5549. for (const comp of rangeList) {
  5550. if (isNullSet(comp))
  5551. return [comp]
  5552. rangeMap.set(comp.value, comp)
  5553. }
  5554. if (rangeMap.size > 1 && rangeMap.has(''))
  5555. rangeMap.delete('')
  5556. const result = [...rangeMap.values()]
  5557. cache.set(memoKey, result)
  5558. return result
  5559. }
  5560. intersects (range, options) {
  5561. if (!(range instanceof Range)) {
  5562. throw new TypeError('a Range is required')
  5563. }
  5564. return this.set.some((thisComparators) => {
  5565. return (
  5566. isSatisfiable(thisComparators, options) &&
  5567. range.set.some((rangeComparators) => {
  5568. return (
  5569. isSatisfiable(rangeComparators, options) &&
  5570. thisComparators.every((thisComparator) => {
  5571. return rangeComparators.every((rangeComparator) => {
  5572. return thisComparator.intersects(rangeComparator, options)
  5573. })
  5574. })
  5575. )
  5576. })
  5577. )
  5578. })
  5579. }
  5580. // if ANY of the sets match ALL of its comparators, then pass
  5581. test (version) {
  5582. if (!version) {
  5583. return false
  5584. }
  5585. if (typeof version === 'string') {
  5586. try {
  5587. version = new SemVer(version, this.options)
  5588. } catch (er) {
  5589. return false
  5590. }
  5591. }
  5592. for (let i = 0; i < this.set.length; i++) {
  5593. if (testSet(this.set[i], version, this.options)) {
  5594. return true
  5595. }
  5596. }
  5597. return false
  5598. }
  5599. }
  5600. module.exports = Range
  5601. const LRU = __webpack_require__(40162)
  5602. const cache = new LRU({ max: 1000 })
  5603. const parseOptions = __webpack_require__(95659)
  5604. const Comparator = __webpack_require__(71378)
  5605. const debug = __webpack_require__(95230)
  5606. const SemVer = __webpack_require__(32703)
  5607. const {
  5608. re,
  5609. t,
  5610. comparatorTrimReplace,
  5611. tildeTrimReplace,
  5612. caretTrimReplace
  5613. } = __webpack_require__(5824)
  5614. const isNullSet = c => c.value === '<0.0.0-0'
  5615. const isAny = c => c.value === ''
  5616. // take a set of comparators and determine whether there
  5617. // exists a version which can satisfy it
  5618. const isSatisfiable = (comparators, options) => {
  5619. let result = true
  5620. const remainingComparators = comparators.slice()
  5621. let testComparator = remainingComparators.pop()
  5622. while (result && remainingComparators.length) {
  5623. result = remainingComparators.every((otherComparator) => {
  5624. return testComparator.intersects(otherComparator, options)
  5625. })
  5626. testComparator = remainingComparators.pop()
  5627. }
  5628. return result
  5629. }
  5630. // comprised of xranges, tildes, stars, and gtlt's at this point.
  5631. // already replaced the hyphen ranges
  5632. // turn into a set of JUST comparators.
  5633. const parseComparator = (comp, options) => {
  5634. debug('comp', comp, options)
  5635. comp = replaceCarets(comp, options)
  5636. debug('caret', comp)
  5637. comp = replaceTildes(comp, options)
  5638. debug('tildes', comp)
  5639. comp = replaceXRanges(comp, options)
  5640. debug('xrange', comp)
  5641. comp = replaceStars(comp, options)
  5642. debug('stars', comp)
  5643. return comp
  5644. }
  5645. const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
  5646. // ~, ~> --> * (any, kinda silly)
  5647. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
  5648. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
  5649. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
  5650. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
  5651. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
  5652. const replaceTildes = (comp, options) =>
  5653. comp.trim().split(/\s+/).map((comp) => {
  5654. return replaceTilde(comp, options)
  5655. }).join(' ')
  5656. const replaceTilde = (comp, options) => {
  5657. const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
  5658. return comp.replace(r, (_, M, m, p, pr) => {
  5659. debug('tilde', comp, _, M, m, p, pr)
  5660. let ret
  5661. if (isX(M)) {
  5662. ret = ''
  5663. } else if (isX(m)) {
  5664. ret = `>=${M}.0.0 <${+M + 1}.0.0-0`
  5665. } else if (isX(p)) {
  5666. // ~1.2 == >=1.2.0 <1.3.0-0
  5667. ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`
  5668. } else if (pr) {
  5669. debug('replaceTilde pr', pr)
  5670. ret = `>=${M}.${m}.${p}-${pr
  5671. } <${M}.${+m + 1}.0-0`
  5672. } else {
  5673. // ~1.2.3 == >=1.2.3 <1.3.0-0
  5674. ret = `>=${M}.${m}.${p
  5675. } <${M}.${+m + 1}.0-0`
  5676. }
  5677. debug('tilde return', ret)
  5678. return ret
  5679. })
  5680. }
  5681. // ^ --> * (any, kinda silly)
  5682. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
  5683. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
  5684. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
  5685. // ^1.2.3 --> >=1.2.3 <2.0.0-0
  5686. // ^1.2.0 --> >=1.2.0 <2.0.0-0
  5687. const replaceCarets = (comp, options) =>
  5688. comp.trim().split(/\s+/).map((comp) => {
  5689. return replaceCaret(comp, options)
  5690. }).join(' ')
  5691. const replaceCaret = (comp, options) => {
  5692. debug('caret', comp, options)
  5693. const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
  5694. const z = options.includePrerelease ? '-0' : ''
  5695. return comp.replace(r, (_, M, m, p, pr) => {
  5696. debug('caret', comp, _, M, m, p, pr)
  5697. let ret
  5698. if (isX(M)) {
  5699. ret = ''
  5700. } else if (isX(m)) {
  5701. ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`
  5702. } else if (isX(p)) {
  5703. if (M === '0') {
  5704. ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`
  5705. } else {
  5706. ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`
  5707. }
  5708. } else if (pr) {
  5709. debug('replaceCaret pr', pr)
  5710. if (M === '0') {
  5711. if (m === '0') {
  5712. ret = `>=${M}.${m}.${p}-${pr
  5713. } <${M}.${m}.${+p + 1}-0`
  5714. } else {
  5715. ret = `>=${M}.${m}.${p}-${pr
  5716. } <${M}.${+m + 1}.0-0`
  5717. }
  5718. } else {
  5719. ret = `>=${M}.${m}.${p}-${pr
  5720. } <${+M + 1}.0.0-0`
  5721. }
  5722. } else {
  5723. debug('no pr')
  5724. if (M === '0') {
  5725. if (m === '0') {
  5726. ret = `>=${M}.${m}.${p
  5727. }${z} <${M}.${m}.${+p + 1}-0`
  5728. } else {
  5729. ret = `>=${M}.${m}.${p
  5730. }${z} <${M}.${+m + 1}.0-0`
  5731. }
  5732. } else {
  5733. ret = `>=${M}.${m}.${p
  5734. } <${+M + 1}.0.0-0`
  5735. }
  5736. }
  5737. debug('caret return', ret)
  5738. return ret
  5739. })
  5740. }
  5741. const replaceXRanges = (comp, options) => {
  5742. debug('replaceXRanges', comp, options)
  5743. return comp.split(/\s+/).map((comp) => {
  5744. return replaceXRange(comp, options)
  5745. }).join(' ')
  5746. }
  5747. const replaceXRange = (comp, options) => {
  5748. comp = comp.trim()
  5749. const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
  5750. return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
  5751. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  5752. const xM = isX(M)
  5753. const xm = xM || isX(m)
  5754. const xp = xm || isX(p)
  5755. const anyX = xp
  5756. if (gtlt === '=' && anyX) {
  5757. gtlt = ''
  5758. }
  5759. // if we're including prereleases in the match, then we need
  5760. // to fix this to -0, the lowest possible prerelease value
  5761. pr = options.includePrerelease ? '-0' : ''
  5762. if (xM) {
  5763. if (gtlt === '>' || gtlt === '<') {
  5764. // nothing is allowed
  5765. ret = '<0.0.0-0'
  5766. } else {
  5767. // nothing is forbidden
  5768. ret = '*'
  5769. }
  5770. } else if (gtlt && anyX) {
  5771. // we know patch is an x, because we have any x at all.
  5772. // replace X with 0
  5773. if (xm) {
  5774. m = 0
  5775. }
  5776. p = 0
  5777. if (gtlt === '>') {
  5778. // >1 => >=2.0.0
  5779. // >1.2 => >=1.3.0
  5780. gtlt = '>='
  5781. if (xm) {
  5782. M = +M + 1
  5783. m = 0
  5784. p = 0
  5785. } else {
  5786. m = +m + 1
  5787. p = 0
  5788. }
  5789. } else if (gtlt === '<=') {
  5790. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  5791. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  5792. gtlt = '<'
  5793. if (xm) {
  5794. M = +M + 1
  5795. } else {
  5796. m = +m + 1
  5797. }
  5798. }
  5799. if (gtlt === '<')
  5800. pr = '-0'
  5801. ret = `${gtlt + M}.${m}.${p}${pr}`
  5802. } else if (xm) {
  5803. ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`
  5804. } else if (xp) {
  5805. ret = `>=${M}.${m}.0${pr
  5806. } <${M}.${+m + 1}.0-0`
  5807. }
  5808. debug('xRange return', ret)
  5809. return ret
  5810. })
  5811. }
  5812. // Because * is AND-ed with everything else in the comparator,
  5813. // and '' means "any version", just remove the *s entirely.
  5814. const replaceStars = (comp, options) => {
  5815. debug('replaceStars', comp, options)
  5816. // Looseness is ignored here. star is always as loose as it gets!
  5817. return comp.trim().replace(re[t.STAR], '')
  5818. }
  5819. const replaceGTE0 = (comp, options) => {
  5820. debug('replaceGTE0', comp, options)
  5821. return comp.trim()
  5822. .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
  5823. }
  5824. // This function is passed to string.replace(re[t.HYPHENRANGE])
  5825. // M, m, patch, prerelease, build
  5826. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  5827. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
  5828. // 1.2 - 3.4 => >=1.2.0 <3.5.0-0
  5829. const hyphenReplace = incPr => ($0,
  5830. from, fM, fm, fp, fpr, fb,
  5831. to, tM, tm, tp, tpr, tb) => {
  5832. if (isX(fM)) {
  5833. from = ''
  5834. } else if (isX(fm)) {
  5835. from = `>=${fM}.0.0${incPr ? '-0' : ''}`
  5836. } else if (isX(fp)) {
  5837. from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`
  5838. } else if (fpr) {
  5839. from = `>=${from}`
  5840. } else {
  5841. from = `>=${from}${incPr ? '-0' : ''}`
  5842. }
  5843. if (isX(tM)) {
  5844. to = ''
  5845. } else if (isX(tm)) {
  5846. to = `<${+tM + 1}.0.0-0`
  5847. } else if (isX(tp)) {
  5848. to = `<${tM}.${+tm + 1}.0-0`
  5849. } else if (tpr) {
  5850. to = `<=${tM}.${tm}.${tp}-${tpr}`
  5851. } else if (incPr) {
  5852. to = `<${tM}.${tm}.${+tp + 1}-0`
  5853. } else {
  5854. to = `<=${to}`
  5855. }
  5856. return (`${from} ${to}`).trim()
  5857. }
  5858. const testSet = (set, version, options) => {
  5859. for (let i = 0; i < set.length; i++) {
  5860. if (!set[i].test(version)) {
  5861. return false
  5862. }
  5863. }
  5864. if (version.prerelease.length && !options.includePrerelease) {
  5865. // Find the set of versions that are allowed to have prereleases
  5866. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  5867. // That should allow `1.2.3-pr.2` to pass.
  5868. // However, `1.2.4-alpha.notready` should NOT be allowed,
  5869. // even though it's within the range set by the comparators.
  5870. for (let i = 0; i < set.length; i++) {
  5871. debug(set[i].semver)
  5872. if (set[i].semver === Comparator.ANY) {
  5873. continue
  5874. }
  5875. if (set[i].semver.prerelease.length > 0) {
  5876. const allowed = set[i].semver
  5877. if (allowed.major === version.major &&
  5878. allowed.minor === version.minor &&
  5879. allowed.patch === version.patch) {
  5880. return true
  5881. }
  5882. }
  5883. }
  5884. // Version has a -pre, but it's not one of the ones we like.
  5885. return false
  5886. }
  5887. return true
  5888. }
  5889. /***/ }),
  5890. /***/ 32703:
  5891. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  5892. const debug = __webpack_require__(95230)
  5893. const { MAX_LENGTH, MAX_SAFE_INTEGER } = __webpack_require__(76448)
  5894. const { re, t } = __webpack_require__(5824)
  5895. const parseOptions = __webpack_require__(95659)
  5896. const { compareIdentifiers } = __webpack_require__(59187)
  5897. class SemVer {
  5898. constructor (version, options) {
  5899. options = parseOptions(options)
  5900. if (version instanceof SemVer) {
  5901. if (version.loose === !!options.loose &&
  5902. version.includePrerelease === !!options.includePrerelease) {
  5903. return version
  5904. } else {
  5905. version = version.version
  5906. }
  5907. } else if (typeof version !== 'string') {
  5908. throw new TypeError(`Invalid Version: ${version}`)
  5909. }
  5910. if (version.length > MAX_LENGTH) {
  5911. throw new TypeError(
  5912. `version is longer than ${MAX_LENGTH} characters`
  5913. )
  5914. }
  5915. debug('SemVer', version, options)
  5916. this.options = options
  5917. this.loose = !!options.loose
  5918. // this isn't actually relevant for versions, but keep it so that we
  5919. // don't run into trouble passing this.options around.
  5920. this.includePrerelease = !!options.includePrerelease
  5921. const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
  5922. if (!m) {
  5923. throw new TypeError(`Invalid Version: ${version}`)
  5924. }
  5925. this.raw = version
  5926. // these are actually numbers
  5927. this.major = +m[1]
  5928. this.minor = +m[2]
  5929. this.patch = +m[3]
  5930. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  5931. throw new TypeError('Invalid major version')
  5932. }
  5933. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  5934. throw new TypeError('Invalid minor version')
  5935. }
  5936. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  5937. throw new TypeError('Invalid patch version')
  5938. }
  5939. // numberify any prerelease numeric ids
  5940. if (!m[4]) {
  5941. this.prerelease = []
  5942. } else {
  5943. this.prerelease = m[4].split('.').map((id) => {
  5944. if (/^[0-9]+$/.test(id)) {
  5945. const num = +id
  5946. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  5947. return num
  5948. }
  5949. }
  5950. return id
  5951. })
  5952. }
  5953. this.build = m[5] ? m[5].split('.') : []
  5954. this.format()
  5955. }
  5956. format () {
  5957. this.version = `${this.major}.${this.minor}.${this.patch}`
  5958. if (this.prerelease.length) {
  5959. this.version += `-${this.prerelease.join('.')}`
  5960. }
  5961. return this.version
  5962. }
  5963. toString () {
  5964. return this.version
  5965. }
  5966. compare (other) {
  5967. debug('SemVer.compare', this.version, this.options, other)
  5968. if (!(other instanceof SemVer)) {
  5969. if (typeof other === 'string' && other === this.version) {
  5970. return 0
  5971. }
  5972. other = new SemVer(other, this.options)
  5973. }
  5974. if (other.version === this.version) {
  5975. return 0
  5976. }
  5977. return this.compareMain(other) || this.comparePre(other)
  5978. }
  5979. compareMain (other) {
  5980. if (!(other instanceof SemVer)) {
  5981. other = new SemVer(other, this.options)
  5982. }
  5983. return (
  5984. compareIdentifiers(this.major, other.major) ||
  5985. compareIdentifiers(this.minor, other.minor) ||
  5986. compareIdentifiers(this.patch, other.patch)
  5987. )
  5988. }
  5989. comparePre (other) {
  5990. if (!(other instanceof SemVer)) {
  5991. other = new SemVer(other, this.options)
  5992. }
  5993. // NOT having a prerelease is > having one
  5994. if (this.prerelease.length && !other.prerelease.length) {
  5995. return -1
  5996. } else if (!this.prerelease.length && other.prerelease.length) {
  5997. return 1
  5998. } else if (!this.prerelease.length && !other.prerelease.length) {
  5999. return 0
  6000. }
  6001. let i = 0
  6002. do {
  6003. const a = this.prerelease[i]
  6004. const b = other.prerelease[i]
  6005. debug('prerelease compare', i, a, b)
  6006. if (a === undefined && b === undefined) {
  6007. return 0
  6008. } else if (b === undefined) {
  6009. return 1
  6010. } else if (a === undefined) {
  6011. return -1
  6012. } else if (a === b) {
  6013. continue
  6014. } else {
  6015. return compareIdentifiers(a, b)
  6016. }
  6017. } while (++i)
  6018. }
  6019. compareBuild (other) {
  6020. if (!(other instanceof SemVer)) {
  6021. other = new SemVer(other, this.options)
  6022. }
  6023. let i = 0
  6024. do {
  6025. const a = this.build[i]
  6026. const b = other.build[i]
  6027. debug('prerelease compare', i, a, b)
  6028. if (a === undefined && b === undefined) {
  6029. return 0
  6030. } else if (b === undefined) {
  6031. return 1
  6032. } else if (a === undefined) {
  6033. return -1
  6034. } else if (a === b) {
  6035. continue
  6036. } else {
  6037. return compareIdentifiers(a, b)
  6038. }
  6039. } while (++i)
  6040. }
  6041. // preminor will bump the version up to the next minor release, and immediately
  6042. // down to pre-release. premajor and prepatch work the same way.
  6043. inc (release, identifier) {
  6044. switch (release) {
  6045. case 'premajor':
  6046. this.prerelease.length = 0
  6047. this.patch = 0
  6048. this.minor = 0
  6049. this.major++
  6050. this.inc('pre', identifier)
  6051. break
  6052. case 'preminor':
  6053. this.prerelease.length = 0
  6054. this.patch = 0
  6055. this.minor++
  6056. this.inc('pre', identifier)
  6057. break
  6058. case 'prepatch':
  6059. // If this is already a prerelease, it will bump to the next version
  6060. // drop any prereleases that might already exist, since they are not
  6061. // relevant at this point.
  6062. this.prerelease.length = 0
  6063. this.inc('patch', identifier)
  6064. this.inc('pre', identifier)
  6065. break
  6066. // If the input is a non-prerelease version, this acts the same as
  6067. // prepatch.
  6068. case 'prerelease':
  6069. if (this.prerelease.length === 0) {
  6070. this.inc('patch', identifier)
  6071. }
  6072. this.inc('pre', identifier)
  6073. break
  6074. case 'major':
  6075. // If this is a pre-major version, bump up to the same major version.
  6076. // Otherwise increment major.
  6077. // 1.0.0-5 bumps to 1.0.0
  6078. // 1.1.0 bumps to 2.0.0
  6079. if (
  6080. this.minor !== 0 ||
  6081. this.patch !== 0 ||
  6082. this.prerelease.length === 0
  6083. ) {
  6084. this.major++
  6085. }
  6086. this.minor = 0
  6087. this.patch = 0
  6088. this.prerelease = []
  6089. break
  6090. case 'minor':
  6091. // If this is a pre-minor version, bump up to the same minor version.
  6092. // Otherwise increment minor.
  6093. // 1.2.0-5 bumps to 1.2.0
  6094. // 1.2.1 bumps to 1.3.0
  6095. if (this.patch !== 0 || this.prerelease.length === 0) {
  6096. this.minor++
  6097. }
  6098. this.patch = 0
  6099. this.prerelease = []
  6100. break
  6101. case 'patch':
  6102. // If this is not a pre-release version, it will increment the patch.
  6103. // If it is a pre-release it will bump up to the same patch version.
  6104. // 1.2.0-5 patches to 1.2.0
  6105. // 1.2.0 patches to 1.2.1
  6106. if (this.prerelease.length === 0) {
  6107. this.patch++
  6108. }
  6109. this.prerelease = []
  6110. break
  6111. // This probably shouldn't be used publicly.
  6112. // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
  6113. case 'pre':
  6114. if (this.prerelease.length === 0) {
  6115. this.prerelease = [0]
  6116. } else {
  6117. let i = this.prerelease.length
  6118. while (--i >= 0) {
  6119. if (typeof this.prerelease[i] === 'number') {
  6120. this.prerelease[i]++
  6121. i = -2
  6122. }
  6123. }
  6124. if (i === -1) {
  6125. // didn't increment anything
  6126. this.prerelease.push(0)
  6127. }
  6128. }
  6129. if (identifier) {
  6130. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  6131. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  6132. if (this.prerelease[0] === identifier) {
  6133. if (isNaN(this.prerelease[1])) {
  6134. this.prerelease = [identifier, 0]
  6135. }
  6136. } else {
  6137. this.prerelease = [identifier, 0]
  6138. }
  6139. }
  6140. break
  6141. default:
  6142. throw new Error(`invalid increment argument: ${release}`)
  6143. }
  6144. this.format()
  6145. this.raw = this.version
  6146. return this
  6147. }
  6148. }
  6149. module.exports = SemVer
  6150. /***/ }),
  6151. /***/ 38524:
  6152. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6153. const parse = __webpack_require__(38978)
  6154. const clean = (version, options) => {
  6155. const s = parse(version.trim().replace(/^[=v]+/, ''), options)
  6156. return s ? s.version : null
  6157. }
  6158. module.exports = clean
  6159. /***/ }),
  6160. /***/ 91527:
  6161. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6162. const eq = __webpack_require__(45615)
  6163. const neq = __webpack_require__(21066)
  6164. const gt = __webpack_require__(17642)
  6165. const gte = __webpack_require__(28224)
  6166. const lt = __webpack_require__(23463)
  6167. const lte = __webpack_require__(60707)
  6168. const cmp = (a, op, b, loose) => {
  6169. switch (op) {
  6170. case '===':
  6171. if (typeof a === 'object')
  6172. a = a.version
  6173. if (typeof b === 'object')
  6174. b = b.version
  6175. return a === b
  6176. case '!==':
  6177. if (typeof a === 'object')
  6178. a = a.version
  6179. if (typeof b === 'object')
  6180. b = b.version
  6181. return a !== b
  6182. case '':
  6183. case '=':
  6184. case '==':
  6185. return eq(a, b, loose)
  6186. case '!=':
  6187. return neq(a, b, loose)
  6188. case '>':
  6189. return gt(a, b, loose)
  6190. case '>=':
  6191. return gte(a, b, loose)
  6192. case '<':
  6193. return lt(a, b, loose)
  6194. case '<=':
  6195. return lte(a, b, loose)
  6196. default:
  6197. throw new TypeError(`Invalid operator: ${op}`)
  6198. }
  6199. }
  6200. module.exports = cmp
  6201. /***/ }),
  6202. /***/ 60817:
  6203. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6204. const SemVer = __webpack_require__(32703)
  6205. const parse = __webpack_require__(38978)
  6206. const {re, t} = __webpack_require__(5824)
  6207. const coerce = (version, options) => {
  6208. if (version instanceof SemVer) {
  6209. return version
  6210. }
  6211. if (typeof version === 'number') {
  6212. version = String(version)
  6213. }
  6214. if (typeof version !== 'string') {
  6215. return null
  6216. }
  6217. options = options || {}
  6218. let match = null
  6219. if (!options.rtl) {
  6220. match = version.match(re[t.COERCE])
  6221. } else {
  6222. // Find the right-most coercible string that does not share
  6223. // a terminus with a more left-ward coercible string.
  6224. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
  6225. //
  6226. // Walk through the string checking with a /g regexp
  6227. // Manually set the index so as to pick up overlapping matches.
  6228. // Stop when we get a match that ends at the string end, since no
  6229. // coercible string can be more right-ward without the same terminus.
  6230. let next
  6231. while ((next = re[t.COERCERTL].exec(version)) &&
  6232. (!match || match.index + match[0].length !== version.length)
  6233. ) {
  6234. if (!match ||
  6235. next.index + next[0].length !== match.index + match[0].length) {
  6236. match = next
  6237. }
  6238. re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
  6239. }
  6240. // leave it in a clean state
  6241. re[t.COERCERTL].lastIndex = -1
  6242. }
  6243. if (match === null)
  6244. return null
  6245. return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)
  6246. }
  6247. module.exports = coerce
  6248. /***/ }),
  6249. /***/ 57678:
  6250. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6251. const SemVer = __webpack_require__(32703)
  6252. const compareBuild = (a, b, loose) => {
  6253. const versionA = new SemVer(a, loose)
  6254. const versionB = new SemVer(b, loose)
  6255. return versionA.compare(versionB) || versionA.compareBuild(versionB)
  6256. }
  6257. module.exports = compareBuild
  6258. /***/ }),
  6259. /***/ 65509:
  6260. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6261. const compare = __webpack_require__(29407)
  6262. const compareLoose = (a, b) => compare(a, b, true)
  6263. module.exports = compareLoose
  6264. /***/ }),
  6265. /***/ 29407:
  6266. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6267. const SemVer = __webpack_require__(32703)
  6268. const compare = (a, b, loose) =>
  6269. new SemVer(a, loose).compare(new SemVer(b, loose))
  6270. module.exports = compare
  6271. /***/ }),
  6272. /***/ 87902:
  6273. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6274. const parse = __webpack_require__(38978)
  6275. const eq = __webpack_require__(45615)
  6276. const diff = (version1, version2) => {
  6277. if (eq(version1, version2)) {
  6278. return null
  6279. } else {
  6280. const v1 = parse(version1)
  6281. const v2 = parse(version2)
  6282. const hasPre = v1.prerelease.length || v2.prerelease.length
  6283. const prefix = hasPre ? 'pre' : ''
  6284. const defaultResult = hasPre ? 'prerelease' : ''
  6285. for (const key in v1) {
  6286. if (key === 'major' || key === 'minor' || key === 'patch') {
  6287. if (v1[key] !== v2[key]) {
  6288. return prefix + key
  6289. }
  6290. }
  6291. }
  6292. return defaultResult // may be undefined
  6293. }
  6294. }
  6295. module.exports = diff
  6296. /***/ }),
  6297. /***/ 45615:
  6298. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6299. const compare = __webpack_require__(29407)
  6300. const eq = (a, b, loose) => compare(a, b, loose) === 0
  6301. module.exports = eq
  6302. /***/ }),
  6303. /***/ 17642:
  6304. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6305. const compare = __webpack_require__(29407)
  6306. const gt = (a, b, loose) => compare(a, b, loose) > 0
  6307. module.exports = gt
  6308. /***/ }),
  6309. /***/ 28224:
  6310. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6311. const compare = __webpack_require__(29407)
  6312. const gte = (a, b, loose) => compare(a, b, loose) >= 0
  6313. module.exports = gte
  6314. /***/ }),
  6315. /***/ 92129:
  6316. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6317. const SemVer = __webpack_require__(32703)
  6318. const inc = (version, release, options, identifier) => {
  6319. if (typeof (options) === 'string') {
  6320. identifier = options
  6321. options = undefined
  6322. }
  6323. try {
  6324. return new SemVer(version, options).inc(release, identifier).version
  6325. } catch (er) {
  6326. return null
  6327. }
  6328. }
  6329. module.exports = inc
  6330. /***/ }),
  6331. /***/ 23463:
  6332. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6333. const compare = __webpack_require__(29407)
  6334. const lt = (a, b, loose) => compare(a, b, loose) < 0
  6335. module.exports = lt
  6336. /***/ }),
  6337. /***/ 60707:
  6338. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6339. const compare = __webpack_require__(29407)
  6340. const lte = (a, b, loose) => compare(a, b, loose) <= 0
  6341. module.exports = lte
  6342. /***/ }),
  6343. /***/ 49777:
  6344. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6345. const SemVer = __webpack_require__(32703)
  6346. const major = (a, loose) => new SemVer(a, loose).major
  6347. module.exports = major
  6348. /***/ }),
  6349. /***/ 16474:
  6350. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6351. const SemVer = __webpack_require__(32703)
  6352. const minor = (a, loose) => new SemVer(a, loose).minor
  6353. module.exports = minor
  6354. /***/ }),
  6355. /***/ 21066:
  6356. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6357. const compare = __webpack_require__(29407)
  6358. const neq = (a, b, loose) => compare(a, b, loose) !== 0
  6359. module.exports = neq
  6360. /***/ }),
  6361. /***/ 38978:
  6362. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6363. const {MAX_LENGTH} = __webpack_require__(76448)
  6364. const { re, t } = __webpack_require__(5824)
  6365. const SemVer = __webpack_require__(32703)
  6366. const parseOptions = __webpack_require__(95659)
  6367. const parse = (version, options) => {
  6368. options = parseOptions(options)
  6369. if (version instanceof SemVer) {
  6370. return version
  6371. }
  6372. if (typeof version !== 'string') {
  6373. return null
  6374. }
  6375. if (version.length > MAX_LENGTH) {
  6376. return null
  6377. }
  6378. const r = options.loose ? re[t.LOOSE] : re[t.FULL]
  6379. if (!r.test(version)) {
  6380. return null
  6381. }
  6382. try {
  6383. return new SemVer(version, options)
  6384. } catch (er) {
  6385. return null
  6386. }
  6387. }
  6388. module.exports = parse
  6389. /***/ }),
  6390. /***/ 6368:
  6391. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6392. const SemVer = __webpack_require__(32703)
  6393. const patch = (a, loose) => new SemVer(a, loose).patch
  6394. module.exports = patch
  6395. /***/ }),
  6396. /***/ 76714:
  6397. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6398. const parse = __webpack_require__(38978)
  6399. const prerelease = (version, options) => {
  6400. const parsed = parse(version, options)
  6401. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  6402. }
  6403. module.exports = prerelease
  6404. /***/ }),
  6405. /***/ 95409:
  6406. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6407. const compare = __webpack_require__(29407)
  6408. const rcompare = (a, b, loose) => compare(b, a, loose)
  6409. module.exports = rcompare
  6410. /***/ }),
  6411. /***/ 74514:
  6412. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6413. const compareBuild = __webpack_require__(57678)
  6414. const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
  6415. module.exports = rsort
  6416. /***/ }),
  6417. /***/ 26643:
  6418. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6419. const Range = __webpack_require__(47663)
  6420. const satisfies = (version, range, options) => {
  6421. try {
  6422. range = new Range(range, options)
  6423. } catch (er) {
  6424. return false
  6425. }
  6426. return range.test(version)
  6427. }
  6428. module.exports = satisfies
  6429. /***/ }),
  6430. /***/ 67486:
  6431. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6432. const compareBuild = __webpack_require__(57678)
  6433. const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
  6434. module.exports = sort
  6435. /***/ }),
  6436. /***/ 17664:
  6437. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6438. const parse = __webpack_require__(38978)
  6439. const valid = (version, options) => {
  6440. const v = parse(version, options)
  6441. return v ? v.version : null
  6442. }
  6443. module.exports = valid
  6444. /***/ }),
  6445. /***/ 81833:
  6446. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6447. // just pre-load all the stuff that index.js lazily exports
  6448. const internalRe = __webpack_require__(5824)
  6449. module.exports = {
  6450. re: internalRe.re,
  6451. src: internalRe.src,
  6452. tokens: internalRe.t,
  6453. SEMVER_SPEC_VERSION: __webpack_require__(76448).SEMVER_SPEC_VERSION,
  6454. SemVer: __webpack_require__(32703),
  6455. compareIdentifiers: __webpack_require__(59187).compareIdentifiers,
  6456. rcompareIdentifiers: __webpack_require__(59187).rcompareIdentifiers,
  6457. parse: __webpack_require__(38978),
  6458. valid: __webpack_require__(17664),
  6459. clean: __webpack_require__(38524),
  6460. inc: __webpack_require__(92129),
  6461. diff: __webpack_require__(87902),
  6462. major: __webpack_require__(49777),
  6463. minor: __webpack_require__(16474),
  6464. patch: __webpack_require__(6368),
  6465. prerelease: __webpack_require__(76714),
  6466. compare: __webpack_require__(29407),
  6467. rcompare: __webpack_require__(95409),
  6468. compareLoose: __webpack_require__(65509),
  6469. compareBuild: __webpack_require__(57678),
  6470. sort: __webpack_require__(67486),
  6471. rsort: __webpack_require__(74514),
  6472. gt: __webpack_require__(17642),
  6473. lt: __webpack_require__(23463),
  6474. eq: __webpack_require__(45615),
  6475. neq: __webpack_require__(21066),
  6476. gte: __webpack_require__(28224),
  6477. lte: __webpack_require__(60707),
  6478. cmp: __webpack_require__(91527),
  6479. coerce: __webpack_require__(60817),
  6480. Comparator: __webpack_require__(71378),
  6481. Range: __webpack_require__(47663),
  6482. satisfies: __webpack_require__(26643),
  6483. toComparators: __webpack_require__(24105),
  6484. maxSatisfying: __webpack_require__(84341),
  6485. minSatisfying: __webpack_require__(98395),
  6486. minVersion: __webpack_require__(91498),
  6487. validRange: __webpack_require__(18383),
  6488. outside: __webpack_require__(89115),
  6489. gtr: __webpack_require__(23913),
  6490. ltr: __webpack_require__(84646),
  6491. intersects: __webpack_require__(67830),
  6492. simplifyRange: __webpack_require__(87054),
  6493. subset: __webpack_require__(74788),
  6494. }
  6495. /***/ }),
  6496. /***/ 76448:
  6497. /***/ ((module) => {
  6498. // Note: this is the semver.org version of the spec that it implements
  6499. // Not necessarily the package version of this code.
  6500. const SEMVER_SPEC_VERSION = '2.0.0'
  6501. const MAX_LENGTH = 256
  6502. const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  6503. /* istanbul ignore next */ 9007199254740991
  6504. // Max safe segment length for coercion.
  6505. const MAX_SAFE_COMPONENT_LENGTH = 16
  6506. module.exports = {
  6507. SEMVER_SPEC_VERSION,
  6508. MAX_LENGTH,
  6509. MAX_SAFE_INTEGER,
  6510. MAX_SAFE_COMPONENT_LENGTH
  6511. }
  6512. /***/ }),
  6513. /***/ 95230:
  6514. /***/ ((module) => {
  6515. const debug = (
  6516. typeof process === 'object' &&
  6517. process.env &&
  6518. process.env.NODE_DEBUG &&
  6519. /\bsemver\b/i.test(process.env.NODE_DEBUG)
  6520. ) ? (...args) => console.error('SEMVER', ...args)
  6521. : () => {}
  6522. module.exports = debug
  6523. /***/ }),
  6524. /***/ 59187:
  6525. /***/ ((module) => {
  6526. const numeric = /^[0-9]+$/
  6527. const compareIdentifiers = (a, b) => {
  6528. const anum = numeric.test(a)
  6529. const bnum = numeric.test(b)
  6530. if (anum && bnum) {
  6531. a = +a
  6532. b = +b
  6533. }
  6534. return a === b ? 0
  6535. : (anum && !bnum) ? -1
  6536. : (bnum && !anum) ? 1
  6537. : a < b ? -1
  6538. : 1
  6539. }
  6540. const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)
  6541. module.exports = {
  6542. compareIdentifiers,
  6543. rcompareIdentifiers
  6544. }
  6545. /***/ }),
  6546. /***/ 95659:
  6547. /***/ ((module) => {
  6548. // parse out just the options we care about so we always get a consistent
  6549. // obj with keys in a consistent order.
  6550. const opts = ['includePrerelease', 'loose', 'rtl']
  6551. const parseOptions = options =>
  6552. !options ? {}
  6553. : typeof options !== 'object' ? { loose: true }
  6554. : opts.filter(k => options[k]).reduce((options, k) => {
  6555. options[k] = true
  6556. return options
  6557. }, {})
  6558. module.exports = parseOptions
  6559. /***/ }),
  6560. /***/ 5824:
  6561. /***/ ((module, exports, __webpack_require__) => {
  6562. const { MAX_SAFE_COMPONENT_LENGTH } = __webpack_require__(76448)
  6563. const debug = __webpack_require__(95230)
  6564. exports = module.exports = {}
  6565. // The actual regexps go on exports.re
  6566. const re = exports.re = []
  6567. const src = exports.src = []
  6568. const t = exports.t = {}
  6569. let R = 0
  6570. const createToken = (name, value, isGlobal) => {
  6571. const index = R++
  6572. debug(index, value)
  6573. t[name] = index
  6574. src[index] = value
  6575. re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
  6576. }
  6577. // The following Regular Expressions can be used for tokenizing,
  6578. // validating, and parsing SemVer version strings.
  6579. // ## Numeric Identifier
  6580. // A single `0`, or a non-zero digit followed by zero or more digits.
  6581. createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*')
  6582. createToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')
  6583. // ## Non-numeric Identifier
  6584. // Zero or more digits, followed by a letter or hyphen, and then zero or
  6585. // more letters, digits, or hyphens.
  6586. createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*')
  6587. // ## Main Version
  6588. // Three dot-separated numeric identifiers.
  6589. createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` +
  6590. `(${src[t.NUMERICIDENTIFIER]})\\.` +
  6591. `(${src[t.NUMERICIDENTIFIER]})`)
  6592. createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
  6593. `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
  6594. `(${src[t.NUMERICIDENTIFIERLOOSE]})`)
  6595. // ## Pre-release Version Identifier
  6596. // A numeric identifier, or a non-numeric identifier.
  6597. createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
  6598. }|${src[t.NONNUMERICIDENTIFIER]})`)
  6599. createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
  6600. }|${src[t.NONNUMERICIDENTIFIER]})`)
  6601. // ## Pre-release Version
  6602. // Hyphen, followed by one or more dot-separated pre-release version
  6603. // identifiers.
  6604. createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]
  6605. }(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`)
  6606. createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
  6607. }(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)
  6608. // ## Build Metadata Identifier
  6609. // Any combination of digits, letters, or hyphens.
  6610. createToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')
  6611. // ## Build Metadata
  6612. // Plus sign, followed by one or more period-separated build metadata
  6613. // identifiers.
  6614. createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]
  6615. }(?:\\.${src[t.BUILDIDENTIFIER]})*))`)
  6616. // ## Full Version String
  6617. // A main version, followed optionally by a pre-release version and
  6618. // build metadata.
  6619. // Note that the only major, minor, patch, and pre-release sections of
  6620. // the version string are capturing groups. The build metadata is not a
  6621. // capturing group, because it should not ever be used in version
  6622. // comparison.
  6623. createToken('FULLPLAIN', `v?${src[t.MAINVERSION]
  6624. }${src[t.PRERELEASE]}?${
  6625. src[t.BUILD]}?`)
  6626. createToken('FULL', `^${src[t.FULLPLAIN]}$`)
  6627. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  6628. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  6629. // common in the npm registry.
  6630. createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]
  6631. }${src[t.PRERELEASELOOSE]}?${
  6632. src[t.BUILD]}?`)
  6633. createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
  6634. createToken('GTLT', '((?:<|>)?=?)')
  6635. // Something like "2.*" or "1.2.x".
  6636. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  6637. // Only the first item is strictly required.
  6638. createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
  6639. createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
  6640. createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` +
  6641. `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
  6642. `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
  6643. `(?:${src[t.PRERELEASE]})?${
  6644. src[t.BUILD]}?` +
  6645. `)?)?`)
  6646. createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +
  6647. `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
  6648. `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
  6649. `(?:${src[t.PRERELEASELOOSE]})?${
  6650. src[t.BUILD]}?` +
  6651. `)?)?`)
  6652. createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`)
  6653. createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`)
  6654. // Coercion.
  6655. // Extract anything that could conceivably be a part of a valid semver
  6656. createToken('COERCE', `${'(^|[^\\d])' +
  6657. '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
  6658. `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
  6659. `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
  6660. `(?:$|[^\\d])`)
  6661. createToken('COERCERTL', src[t.COERCE], true)
  6662. // Tilde ranges.
  6663. // Meaning is "reasonably at or greater than"
  6664. createToken('LONETILDE', '(?:~>?)')
  6665. createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true)
  6666. exports.tildeTrimReplace = '$1~'
  6667. createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)
  6668. createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)
  6669. // Caret ranges.
  6670. // Meaning is "at least and backwards compatible with"
  6671. createToken('LONECARET', '(?:\\^)')
  6672. createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true)
  6673. exports.caretTrimReplace = '$1^'
  6674. createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)
  6675. createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)
  6676. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  6677. createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`)
  6678. createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`)
  6679. // An expression to strip any whitespace between the gtlt and the thing
  6680. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  6681. createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
  6682. }\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)
  6683. exports.comparatorTrimReplace = '$1$2$3'
  6684. // Something like `1.2.3 - 1.2.4`
  6685. // Note that these all use the loose form, because they'll be
  6686. // checked against either the strict or loose comparator form
  6687. // later.
  6688. createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` +
  6689. `\\s+-\\s+` +
  6690. `(${src[t.XRANGEPLAIN]})` +
  6691. `\\s*$`)
  6692. createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` +
  6693. `\\s+-\\s+` +
  6694. `(${src[t.XRANGEPLAINLOOSE]})` +
  6695. `\\s*$`)
  6696. // Star ranges basically just allow anything at all.
  6697. createToken('STAR', '(<|>)?=?\\s*\\*')
  6698. // >=0.0.0 is like a star
  6699. createToken('GTE0', '^\\s*>=\\s*0\.0\.0\\s*$')
  6700. createToken('GTE0PRE', '^\\s*>=\\s*0\.0\.0-0\\s*$')
  6701. /***/ }),
  6702. /***/ 23913:
  6703. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6704. // Determine if version is greater than all the versions possible in the range.
  6705. const outside = __webpack_require__(89115)
  6706. const gtr = (version, range, options) => outside(version, range, '>', options)
  6707. module.exports = gtr
  6708. /***/ }),
  6709. /***/ 67830:
  6710. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6711. const Range = __webpack_require__(47663)
  6712. const intersects = (r1, r2, options) => {
  6713. r1 = new Range(r1, options)
  6714. r2 = new Range(r2, options)
  6715. return r1.intersects(r2)
  6716. }
  6717. module.exports = intersects
  6718. /***/ }),
  6719. /***/ 84646:
  6720. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6721. const outside = __webpack_require__(89115)
  6722. // Determine if version is less than all the versions possible in the range
  6723. const ltr = (version, range, options) => outside(version, range, '<', options)
  6724. module.exports = ltr
  6725. /***/ }),
  6726. /***/ 84341:
  6727. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6728. const SemVer = __webpack_require__(32703)
  6729. const Range = __webpack_require__(47663)
  6730. const maxSatisfying = (versions, range, options) => {
  6731. let max = null
  6732. let maxSV = null
  6733. let rangeObj = null
  6734. try {
  6735. rangeObj = new Range(range, options)
  6736. } catch (er) {
  6737. return null
  6738. }
  6739. versions.forEach((v) => {
  6740. if (rangeObj.test(v)) {
  6741. // satisfies(v, range, options)
  6742. if (!max || maxSV.compare(v) === -1) {
  6743. // compare(max, v, true)
  6744. max = v
  6745. maxSV = new SemVer(max, options)
  6746. }
  6747. }
  6748. })
  6749. return max
  6750. }
  6751. module.exports = maxSatisfying
  6752. /***/ }),
  6753. /***/ 98395:
  6754. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6755. const SemVer = __webpack_require__(32703)
  6756. const Range = __webpack_require__(47663)
  6757. const minSatisfying = (versions, range, options) => {
  6758. let min = null
  6759. let minSV = null
  6760. let rangeObj = null
  6761. try {
  6762. rangeObj = new Range(range, options)
  6763. } catch (er) {
  6764. return null
  6765. }
  6766. versions.forEach((v) => {
  6767. if (rangeObj.test(v)) {
  6768. // satisfies(v, range, options)
  6769. if (!min || minSV.compare(v) === 1) {
  6770. // compare(min, v, true)
  6771. min = v
  6772. minSV = new SemVer(min, options)
  6773. }
  6774. }
  6775. })
  6776. return min
  6777. }
  6778. module.exports = minSatisfying
  6779. /***/ }),
  6780. /***/ 91498:
  6781. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6782. const SemVer = __webpack_require__(32703)
  6783. const Range = __webpack_require__(47663)
  6784. const gt = __webpack_require__(17642)
  6785. const minVersion = (range, loose) => {
  6786. range = new Range(range, loose)
  6787. let minver = new SemVer('0.0.0')
  6788. if (range.test(minver)) {
  6789. return minver
  6790. }
  6791. minver = new SemVer('0.0.0-0')
  6792. if (range.test(minver)) {
  6793. return minver
  6794. }
  6795. minver = null
  6796. for (let i = 0; i < range.set.length; ++i) {
  6797. const comparators = range.set[i]
  6798. let setMin = null
  6799. comparators.forEach((comparator) => {
  6800. // Clone to avoid manipulating the comparator's semver object.
  6801. const compver = new SemVer(comparator.semver.version)
  6802. switch (comparator.operator) {
  6803. case '>':
  6804. if (compver.prerelease.length === 0) {
  6805. compver.patch++
  6806. } else {
  6807. compver.prerelease.push(0)
  6808. }
  6809. compver.raw = compver.format()
  6810. /* fallthrough */
  6811. case '':
  6812. case '>=':
  6813. if (!setMin || gt(compver, setMin)) {
  6814. setMin = compver
  6815. }
  6816. break
  6817. case '<':
  6818. case '<=':
  6819. /* Ignore maximum versions */
  6820. break
  6821. /* istanbul ignore next */
  6822. default:
  6823. throw new Error(`Unexpected operation: ${comparator.operator}`)
  6824. }
  6825. })
  6826. if (setMin && (!minver || gt(minver, setMin)))
  6827. minver = setMin
  6828. }
  6829. if (minver && range.test(minver)) {
  6830. return minver
  6831. }
  6832. return null
  6833. }
  6834. module.exports = minVersion
  6835. /***/ }),
  6836. /***/ 89115:
  6837. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6838. const SemVer = __webpack_require__(32703)
  6839. const Comparator = __webpack_require__(71378)
  6840. const {ANY} = Comparator
  6841. const Range = __webpack_require__(47663)
  6842. const satisfies = __webpack_require__(26643)
  6843. const gt = __webpack_require__(17642)
  6844. const lt = __webpack_require__(23463)
  6845. const lte = __webpack_require__(60707)
  6846. const gte = __webpack_require__(28224)
  6847. const outside = (version, range, hilo, options) => {
  6848. version = new SemVer(version, options)
  6849. range = new Range(range, options)
  6850. let gtfn, ltefn, ltfn, comp, ecomp
  6851. switch (hilo) {
  6852. case '>':
  6853. gtfn = gt
  6854. ltefn = lte
  6855. ltfn = lt
  6856. comp = '>'
  6857. ecomp = '>='
  6858. break
  6859. case '<':
  6860. gtfn = lt
  6861. ltefn = gte
  6862. ltfn = gt
  6863. comp = '<'
  6864. ecomp = '<='
  6865. break
  6866. default:
  6867. throw new TypeError('Must provide a hilo val of "<" or ">"')
  6868. }
  6869. // If it satisfies the range it is not outside
  6870. if (satisfies(version, range, options)) {
  6871. return false
  6872. }
  6873. // From now on, variable terms are as if we're in "gtr" mode.
  6874. // but note that everything is flipped for the "ltr" function.
  6875. for (let i = 0; i < range.set.length; ++i) {
  6876. const comparators = range.set[i]
  6877. let high = null
  6878. let low = null
  6879. comparators.forEach((comparator) => {
  6880. if (comparator.semver === ANY) {
  6881. comparator = new Comparator('>=0.0.0')
  6882. }
  6883. high = high || comparator
  6884. low = low || comparator
  6885. if (gtfn(comparator.semver, high.semver, options)) {
  6886. high = comparator
  6887. } else if (ltfn(comparator.semver, low.semver, options)) {
  6888. low = comparator
  6889. }
  6890. })
  6891. // If the edge version comparator has a operator then our version
  6892. // isn't outside it
  6893. if (high.operator === comp || high.operator === ecomp) {
  6894. return false
  6895. }
  6896. // If the lowest version comparator has an operator and our version
  6897. // is less than it then it isn't higher than the range
  6898. if ((!low.operator || low.operator === comp) &&
  6899. ltefn(version, low.semver)) {
  6900. return false
  6901. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  6902. return false
  6903. }
  6904. }
  6905. return true
  6906. }
  6907. module.exports = outside
  6908. /***/ }),
  6909. /***/ 87054:
  6910. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6911. // given a set of versions and a range, create a "simplified" range
  6912. // that includes the same versions that the original range does
  6913. // If the original range is shorter than the simplified one, return that.
  6914. const satisfies = __webpack_require__(26643)
  6915. const compare = __webpack_require__(29407)
  6916. module.exports = (versions, range, options) => {
  6917. const set = []
  6918. let min = null
  6919. let prev = null
  6920. const v = versions.sort((a, b) => compare(a, b, options))
  6921. for (const version of v) {
  6922. const included = satisfies(version, range, options)
  6923. if (included) {
  6924. prev = version
  6925. if (!min)
  6926. min = version
  6927. } else {
  6928. if (prev) {
  6929. set.push([min, prev])
  6930. }
  6931. prev = null
  6932. min = null
  6933. }
  6934. }
  6935. if (min)
  6936. set.push([min, null])
  6937. const ranges = []
  6938. for (const [min, max] of set) {
  6939. if (min === max)
  6940. ranges.push(min)
  6941. else if (!max && min === v[0])
  6942. ranges.push('*')
  6943. else if (!max)
  6944. ranges.push(`>=${min}`)
  6945. else if (min === v[0])
  6946. ranges.push(`<=${max}`)
  6947. else
  6948. ranges.push(`${min} - ${max}`)
  6949. }
  6950. const simplified = ranges.join(' || ')
  6951. const original = typeof range.raw === 'string' ? range.raw : String(range)
  6952. return simplified.length < original.length ? simplified : range
  6953. }
  6954. /***/ }),
  6955. /***/ 74788:
  6956. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  6957. const Range = __webpack_require__(47663)
  6958. const Comparator = __webpack_require__(71378)
  6959. const { ANY } = Comparator
  6960. const satisfies = __webpack_require__(26643)
  6961. const compare = __webpack_require__(29407)
  6962. // Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
  6963. // - Every simple range `r1, r2, ...` is a null set, OR
  6964. // - Every simple range `r1, r2, ...` which is not a null set is a subset of
  6965. // some `R1, R2, ...`
  6966. //
  6967. // Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
  6968. // - If c is only the ANY comparator
  6969. // - If C is only the ANY comparator, return true
  6970. // - Else if in prerelease mode, return false
  6971. // - else replace c with `[>=0.0.0]`
  6972. // - If C is only the ANY comparator
  6973. // - if in prerelease mode, return true
  6974. // - else replace C with `[>=0.0.0]`
  6975. // - Let EQ be the set of = comparators in c
  6976. // - If EQ is more than one, return true (null set)
  6977. // - Let GT be the highest > or >= comparator in c
  6978. // - Let LT be the lowest < or <= comparator in c
  6979. // - If GT and LT, and GT.semver > LT.semver, return true (null set)
  6980. // - If any C is a = range, and GT or LT are set, return false
  6981. // - If EQ
  6982. // - If GT, and EQ does not satisfy GT, return true (null set)
  6983. // - If LT, and EQ does not satisfy LT, return true (null set)
  6984. // - If EQ satisfies every C, return true
  6985. // - Else return false
  6986. // - If GT
  6987. // - If GT.semver is lower than any > or >= comp in C, return false
  6988. // - If GT is >=, and GT.semver does not satisfy every C, return false
  6989. // - If GT.semver has a prerelease, and not in prerelease mode
  6990. // - If no C has a prerelease and the GT.semver tuple, return false
  6991. // - If LT
  6992. // - If LT.semver is greater than any < or <= comp in C, return false
  6993. // - If LT is <=, and LT.semver does not satisfy every C, return false
  6994. // - If GT.semver has a prerelease, and not in prerelease mode
  6995. // - If no C has a prerelease and the LT.semver tuple, return false
  6996. // - Else return true
  6997. const subset = (sub, dom, options = {}) => {
  6998. if (sub === dom)
  6999. return true
  7000. sub = new Range(sub, options)
  7001. dom = new Range(dom, options)
  7002. let sawNonNull = false
  7003. OUTER: for (const simpleSub of sub.set) {
  7004. for (const simpleDom of dom.set) {
  7005. const isSub = simpleSubset(simpleSub, simpleDom, options)
  7006. sawNonNull = sawNonNull || isSub !== null
  7007. if (isSub)
  7008. continue OUTER
  7009. }
  7010. // the null set is a subset of everything, but null simple ranges in
  7011. // a complex range should be ignored. so if we saw a non-null range,
  7012. // then we know this isn't a subset, but if EVERY simple range was null,
  7013. // then it is a subset.
  7014. if (sawNonNull)
  7015. return false
  7016. }
  7017. return true
  7018. }
  7019. const simpleSubset = (sub, dom, options) => {
  7020. if (sub === dom)
  7021. return true
  7022. if (sub.length === 1 && sub[0].semver === ANY) {
  7023. if (dom.length === 1 && dom[0].semver === ANY)
  7024. return true
  7025. else if (options.includePrerelease)
  7026. sub = [ new Comparator('>=0.0.0-0') ]
  7027. else
  7028. sub = [ new Comparator('>=0.0.0') ]
  7029. }
  7030. if (dom.length === 1 && dom[0].semver === ANY) {
  7031. if (options.includePrerelease)
  7032. return true
  7033. else
  7034. dom = [ new Comparator('>=0.0.0') ]
  7035. }
  7036. const eqSet = new Set()
  7037. let gt, lt
  7038. for (const c of sub) {
  7039. if (c.operator === '>' || c.operator === '>=')
  7040. gt = higherGT(gt, c, options)
  7041. else if (c.operator === '<' || c.operator === '<=')
  7042. lt = lowerLT(lt, c, options)
  7043. else
  7044. eqSet.add(c.semver)
  7045. }
  7046. if (eqSet.size > 1)
  7047. return null
  7048. let gtltComp
  7049. if (gt && lt) {
  7050. gtltComp = compare(gt.semver, lt.semver, options)
  7051. if (gtltComp > 0)
  7052. return null
  7053. else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<='))
  7054. return null
  7055. }
  7056. // will iterate one or zero times
  7057. for (const eq of eqSet) {
  7058. if (gt && !satisfies(eq, String(gt), options))
  7059. return null
  7060. if (lt && !satisfies(eq, String(lt), options))
  7061. return null
  7062. for (const c of dom) {
  7063. if (!satisfies(eq, String(c), options))
  7064. return false
  7065. }
  7066. return true
  7067. }
  7068. let higher, lower
  7069. let hasDomLT, hasDomGT
  7070. // if the subset has a prerelease, we need a comparator in the superset
  7071. // with the same tuple and a prerelease, or it's not a subset
  7072. let needDomLTPre = lt &&
  7073. !options.includePrerelease &&
  7074. lt.semver.prerelease.length ? lt.semver : false
  7075. let needDomGTPre = gt &&
  7076. !options.includePrerelease &&
  7077. gt.semver.prerelease.length ? gt.semver : false
  7078. // exception: <1.2.3-0 is the same as <1.2.3
  7079. if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
  7080. lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
  7081. needDomLTPre = false
  7082. }
  7083. for (const c of dom) {
  7084. hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='
  7085. hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='
  7086. if (gt) {
  7087. if (needDomGTPre) {
  7088. if (c.semver.prerelease && c.semver.prerelease.length &&
  7089. c.semver.major === needDomGTPre.major &&
  7090. c.semver.minor === needDomGTPre.minor &&
  7091. c.semver.patch === needDomGTPre.patch) {
  7092. needDomGTPre = false
  7093. }
  7094. }
  7095. if (c.operator === '>' || c.operator === '>=') {
  7096. higher = higherGT(gt, c, options)
  7097. if (higher === c && higher !== gt)
  7098. return false
  7099. } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options))
  7100. return false
  7101. }
  7102. if (lt) {
  7103. if (needDomLTPre) {
  7104. if (c.semver.prerelease && c.semver.prerelease.length &&
  7105. c.semver.major === needDomLTPre.major &&
  7106. c.semver.minor === needDomLTPre.minor &&
  7107. c.semver.patch === needDomLTPre.patch) {
  7108. needDomLTPre = false
  7109. }
  7110. }
  7111. if (c.operator === '<' || c.operator === '<=') {
  7112. lower = lowerLT(lt, c, options)
  7113. if (lower === c && lower !== lt)
  7114. return false
  7115. } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options))
  7116. return false
  7117. }
  7118. if (!c.operator && (lt || gt) && gtltComp !== 0)
  7119. return false
  7120. }
  7121. // if there was a < or >, and nothing in the dom, then must be false
  7122. // UNLESS it was limited by another range in the other direction.
  7123. // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
  7124. if (gt && hasDomLT && !lt && gtltComp !== 0)
  7125. return false
  7126. if (lt && hasDomGT && !gt && gtltComp !== 0)
  7127. return false
  7128. // we needed a prerelease range in a specific tuple, but didn't get one
  7129. // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,
  7130. // because it includes prereleases in the 1.2.3 tuple
  7131. if (needDomGTPre || needDomLTPre)
  7132. return false
  7133. return true
  7134. }
  7135. // >=1.2.3 is lower than >1.2.3
  7136. const higherGT = (a, b, options) => {
  7137. if (!a)
  7138. return b
  7139. const comp = compare(a.semver, b.semver, options)
  7140. return comp > 0 ? a
  7141. : comp < 0 ? b
  7142. : b.operator === '>' && a.operator === '>=' ? b
  7143. : a
  7144. }
  7145. // <=1.2.3 is higher than <1.2.3
  7146. const lowerLT = (a, b, options) => {
  7147. if (!a)
  7148. return b
  7149. const comp = compare(a.semver, b.semver, options)
  7150. return comp < 0 ? a
  7151. : comp > 0 ? b
  7152. : b.operator === '<' && a.operator === '<=' ? b
  7153. : a
  7154. }
  7155. module.exports = subset
  7156. /***/ }),
  7157. /***/ 24105:
  7158. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  7159. const Range = __webpack_require__(47663)
  7160. // Mostly just for testing and legacy API reasons
  7161. const toComparators = (range, options) =>
  7162. new Range(range, options).set
  7163. .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))
  7164. module.exports = toComparators
  7165. /***/ }),
  7166. /***/ 18383:
  7167. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  7168. const Range = __webpack_require__(47663)
  7169. const validRange = (range, options) => {
  7170. try {
  7171. // Return '*' instead of '' so that truthiness works.
  7172. // This will throw if it's invalid anyway
  7173. return new Range(range, options).range || '*'
  7174. } catch (er) {
  7175. return null
  7176. }
  7177. }
  7178. module.exports = validRange
  7179. /***/ }),
  7180. /***/ 39846:
  7181. /***/ ((module) => {
  7182. "use strict";
  7183. module.exports = function (Yallist) {
  7184. Yallist.prototype[Symbol.iterator] = function* () {
  7185. for (let walker = this.head; walker; walker = walker.next) {
  7186. yield walker.value
  7187. }
  7188. }
  7189. }
  7190. /***/ }),
  7191. /***/ 68981:
  7192. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  7193. "use strict";
  7194. module.exports = Yallist
  7195. Yallist.Node = Node
  7196. Yallist.create = Yallist
  7197. function Yallist (list) {
  7198. var self = this
  7199. if (!(self instanceof Yallist)) {
  7200. self = new Yallist()
  7201. }
  7202. self.tail = null
  7203. self.head = null
  7204. self.length = 0
  7205. if (list && typeof list.forEach === 'function') {
  7206. list.forEach(function (item) {
  7207. self.push(item)
  7208. })
  7209. } else if (arguments.length > 0) {
  7210. for (var i = 0, l = arguments.length; i < l; i++) {
  7211. self.push(arguments[i])
  7212. }
  7213. }
  7214. return self
  7215. }
  7216. Yallist.prototype.removeNode = function (node) {
  7217. if (node.list !== this) {
  7218. throw new Error('removing node which does not belong to this list')
  7219. }
  7220. var next = node.next
  7221. var prev = node.prev
  7222. if (next) {
  7223. next.prev = prev
  7224. }
  7225. if (prev) {
  7226. prev.next = next
  7227. }
  7228. if (node === this.head) {
  7229. this.head = next
  7230. }
  7231. if (node === this.tail) {
  7232. this.tail = prev
  7233. }
  7234. node.list.length--
  7235. node.next = null
  7236. node.prev = null
  7237. node.list = null
  7238. return next
  7239. }
  7240. Yallist.prototype.unshiftNode = function (node) {
  7241. if (node === this.head) {
  7242. return
  7243. }
  7244. if (node.list) {
  7245. node.list.removeNode(node)
  7246. }
  7247. var head = this.head
  7248. node.list = this
  7249. node.next = head
  7250. if (head) {
  7251. head.prev = node
  7252. }
  7253. this.head = node
  7254. if (!this.tail) {
  7255. this.tail = node
  7256. }
  7257. this.length++
  7258. }
  7259. Yallist.prototype.pushNode = function (node) {
  7260. if (node === this.tail) {
  7261. return
  7262. }
  7263. if (node.list) {
  7264. node.list.removeNode(node)
  7265. }
  7266. var tail = this.tail
  7267. node.list = this
  7268. node.prev = tail
  7269. if (tail) {
  7270. tail.next = node
  7271. }
  7272. this.tail = node
  7273. if (!this.head) {
  7274. this.head = node
  7275. }
  7276. this.length++
  7277. }
  7278. Yallist.prototype.push = function () {
  7279. for (var i = 0, l = arguments.length; i < l; i++) {
  7280. push(this, arguments[i])
  7281. }
  7282. return this.length
  7283. }
  7284. Yallist.prototype.unshift = function () {
  7285. for (var i = 0, l = arguments.length; i < l; i++) {
  7286. unshift(this, arguments[i])
  7287. }
  7288. return this.length
  7289. }
  7290. Yallist.prototype.pop = function () {
  7291. if (!this.tail) {
  7292. return undefined
  7293. }
  7294. var res = this.tail.value
  7295. this.tail = this.tail.prev
  7296. if (this.tail) {
  7297. this.tail.next = null
  7298. } else {
  7299. this.head = null
  7300. }
  7301. this.length--
  7302. return res
  7303. }
  7304. Yallist.prototype.shift = function () {
  7305. if (!this.head) {
  7306. return undefined
  7307. }
  7308. var res = this.head.value
  7309. this.head = this.head.next
  7310. if (this.head) {
  7311. this.head.prev = null
  7312. } else {
  7313. this.tail = null
  7314. }
  7315. this.length--
  7316. return res
  7317. }
  7318. Yallist.prototype.forEach = function (fn, thisp) {
  7319. thisp = thisp || this
  7320. for (var walker = this.head, i = 0; walker !== null; i++) {
  7321. fn.call(thisp, walker.value, i, this)
  7322. walker = walker.next
  7323. }
  7324. }
  7325. Yallist.prototype.forEachReverse = function (fn, thisp) {
  7326. thisp = thisp || this
  7327. for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
  7328. fn.call(thisp, walker.value, i, this)
  7329. walker = walker.prev
  7330. }
  7331. }
  7332. Yallist.prototype.get = function (n) {
  7333. for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
  7334. // abort out of the list early if we hit a cycle
  7335. walker = walker.next
  7336. }
  7337. if (i === n && walker !== null) {
  7338. return walker.value
  7339. }
  7340. }
  7341. Yallist.prototype.getReverse = function (n) {
  7342. for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
  7343. // abort out of the list early if we hit a cycle
  7344. walker = walker.prev
  7345. }
  7346. if (i === n && walker !== null) {
  7347. return walker.value
  7348. }
  7349. }
  7350. Yallist.prototype.map = function (fn, thisp) {
  7351. thisp = thisp || this
  7352. var res = new Yallist()
  7353. for (var walker = this.head; walker !== null;) {
  7354. res.push(fn.call(thisp, walker.value, this))
  7355. walker = walker.next
  7356. }
  7357. return res
  7358. }
  7359. Yallist.prototype.mapReverse = function (fn, thisp) {
  7360. thisp = thisp || this
  7361. var res = new Yallist()
  7362. for (var walker = this.tail; walker !== null;) {
  7363. res.push(fn.call(thisp, walker.value, this))
  7364. walker = walker.prev
  7365. }
  7366. return res
  7367. }
  7368. Yallist.prototype.reduce = function (fn, initial) {
  7369. var acc
  7370. var walker = this.head
  7371. if (arguments.length > 1) {
  7372. acc = initial
  7373. } else if (this.head) {
  7374. walker = this.head.next
  7375. acc = this.head.value
  7376. } else {
  7377. throw new TypeError('Reduce of empty list with no initial value')
  7378. }
  7379. for (var i = 0; walker !== null; i++) {
  7380. acc = fn(acc, walker.value, i)
  7381. walker = walker.next
  7382. }
  7383. return acc
  7384. }
  7385. Yallist.prototype.reduceReverse = function (fn, initial) {
  7386. var acc
  7387. var walker = this.tail
  7388. if (arguments.length > 1) {
  7389. acc = initial
  7390. } else if (this.tail) {
  7391. walker = this.tail.prev
  7392. acc = this.tail.value
  7393. } else {
  7394. throw new TypeError('Reduce of empty list with no initial value')
  7395. }
  7396. for (var i = this.length - 1; walker !== null; i--) {
  7397. acc = fn(acc, walker.value, i)
  7398. walker = walker.prev
  7399. }
  7400. return acc
  7401. }
  7402. Yallist.prototype.toArray = function () {
  7403. var arr = new Array(this.length)
  7404. for (var i = 0, walker = this.head; walker !== null; i++) {
  7405. arr[i] = walker.value
  7406. walker = walker.next
  7407. }
  7408. return arr
  7409. }
  7410. Yallist.prototype.toArrayReverse = function () {
  7411. var arr = new Array(this.length)
  7412. for (var i = 0, walker = this.tail; walker !== null; i++) {
  7413. arr[i] = walker.value
  7414. walker = walker.prev
  7415. }
  7416. return arr
  7417. }
  7418. Yallist.prototype.slice = function (from, to) {
  7419. to = to || this.length
  7420. if (to < 0) {
  7421. to += this.length
  7422. }
  7423. from = from || 0
  7424. if (from < 0) {
  7425. from += this.length
  7426. }
  7427. var ret = new Yallist()
  7428. if (to < from || to < 0) {
  7429. return ret
  7430. }
  7431. if (from < 0) {
  7432. from = 0
  7433. }
  7434. if (to > this.length) {
  7435. to = this.length
  7436. }
  7437. for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
  7438. walker = walker.next
  7439. }
  7440. for (; walker !== null && i < to; i++, walker = walker.next) {
  7441. ret.push(walker.value)
  7442. }
  7443. return ret
  7444. }
  7445. Yallist.prototype.sliceReverse = function (from, to) {
  7446. to = to || this.length
  7447. if (to < 0) {
  7448. to += this.length
  7449. }
  7450. from = from || 0
  7451. if (from < 0) {
  7452. from += this.length
  7453. }
  7454. var ret = new Yallist()
  7455. if (to < from || to < 0) {
  7456. return ret
  7457. }
  7458. if (from < 0) {
  7459. from = 0
  7460. }
  7461. if (to > this.length) {
  7462. to = this.length
  7463. }
  7464. for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
  7465. walker = walker.prev
  7466. }
  7467. for (; walker !== null && i > from; i--, walker = walker.prev) {
  7468. ret.push(walker.value)
  7469. }
  7470. return ret
  7471. }
  7472. Yallist.prototype.splice = function (start, deleteCount, ...nodes) {
  7473. if (start > this.length) {
  7474. start = this.length - 1
  7475. }
  7476. if (start < 0) {
  7477. start = this.length + start;
  7478. }
  7479. for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
  7480. walker = walker.next
  7481. }
  7482. var ret = []
  7483. for (var i = 0; walker && i < deleteCount; i++) {
  7484. ret.push(walker.value)
  7485. walker = this.removeNode(walker)
  7486. }
  7487. if (walker === null) {
  7488. walker = this.tail
  7489. }
  7490. if (walker !== this.head && walker !== this.tail) {
  7491. walker = walker.prev
  7492. }
  7493. for (var i = 0; i < nodes.length; i++) {
  7494. walker = insert(this, walker, nodes[i])
  7495. }
  7496. return ret;
  7497. }
  7498. Yallist.prototype.reverse = function () {
  7499. var head = this.head
  7500. var tail = this.tail
  7501. for (var walker = head; walker !== null; walker = walker.prev) {
  7502. var p = walker.prev
  7503. walker.prev = walker.next
  7504. walker.next = p
  7505. }
  7506. this.head = tail
  7507. this.tail = head
  7508. return this
  7509. }
  7510. function insert (self, node, value) {
  7511. var inserted = node === self.head ?
  7512. new Node(value, null, node, self) :
  7513. new Node(value, node, node.next, self)
  7514. if (inserted.next === null) {
  7515. self.tail = inserted
  7516. }
  7517. if (inserted.prev === null) {
  7518. self.head = inserted
  7519. }
  7520. self.length++
  7521. return inserted
  7522. }
  7523. function push (self, item) {
  7524. self.tail = new Node(item, self.tail, null, self)
  7525. if (!self.head) {
  7526. self.head = self.tail
  7527. }
  7528. self.length++
  7529. }
  7530. function unshift (self, item) {
  7531. self.head = new Node(item, null, self.head, self)
  7532. if (!self.tail) {
  7533. self.tail = self.head
  7534. }
  7535. self.length++
  7536. }
  7537. function Node (value, prev, next, list) {
  7538. if (!(this instanceof Node)) {
  7539. return new Node(value, prev, next, list)
  7540. }
  7541. this.list = list
  7542. this.value = value
  7543. if (prev) {
  7544. prev.next = this
  7545. this.prev = prev
  7546. } else {
  7547. this.prev = null
  7548. }
  7549. if (next) {
  7550. next.prev = this
  7551. this.next = next
  7552. } else {
  7553. this.next = null
  7554. }
  7555. }
  7556. try {
  7557. // add if support for Symbol.iterator is present
  7558. __webpack_require__(39846)(Yallist)
  7559. } catch (er) {}
  7560. /***/ }),
  7561. /***/ 76553:
  7562. /***/ ((module) => {
  7563. "use strict";
  7564. module.exports = global;
  7565. /***/ }),
  7566. /***/ 82503:
  7567. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  7568. "use strict";
  7569. var defineProperties = __webpack_require__(4289);
  7570. var implementation = __webpack_require__(76553);
  7571. var getPolyfill = __webpack_require__(52168);
  7572. var shim = __webpack_require__(99471);
  7573. var polyfill = getPolyfill();
  7574. var getGlobal = function () { return polyfill; };
  7575. defineProperties(getGlobal, {
  7576. getPolyfill: getPolyfill,
  7577. implementation: implementation,
  7578. shim: shim
  7579. });
  7580. module.exports = getGlobal;
  7581. /***/ }),
  7582. /***/ 52168:
  7583. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  7584. "use strict";
  7585. var implementation = __webpack_require__(76553);
  7586. module.exports = function getPolyfill() {
  7587. if (typeof global !== 'object' || !global || global.Math !== Math || global.Array !== Array) {
  7588. return implementation;
  7589. }
  7590. return global;
  7591. };
  7592. /***/ }),
  7593. /***/ 99471:
  7594. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  7595. "use strict";
  7596. var define = __webpack_require__(4289);
  7597. var getPolyfill = __webpack_require__(52168);
  7598. module.exports = function shimGlobal() {
  7599. var polyfill = getPolyfill();
  7600. if (define.supportsDescriptors) {
  7601. var descriptor = Object.getOwnPropertyDescriptor(polyfill, 'globalThis');
  7602. if (!descriptor || (descriptor.configurable && (descriptor.enumerable || descriptor.writable || globalThis !== polyfill))) { // eslint-disable-line max-len
  7603. Object.defineProperty(polyfill, 'globalThis', {
  7604. configurable: true,
  7605. enumerable: false,
  7606. value: polyfill,
  7607. writable: false
  7608. });
  7609. }
  7610. } else if (typeof globalThis !== 'object' || globalThis !== polyfill) {
  7611. polyfill.globalThis = polyfill;
  7612. }
  7613. return polyfill;
  7614. };
  7615. /***/ }),
  7616. /***/ 66458:
  7617. /***/ ((module) => {
  7618. "use strict";
  7619. module.exports = clone
  7620. var getPrototypeOf = Object.getPrototypeOf || function (obj) {
  7621. return obj.__proto__
  7622. }
  7623. function clone (obj) {
  7624. if (obj === null || typeof obj !== 'object')
  7625. return obj
  7626. if (obj instanceof Object)
  7627. var copy = { __proto__: getPrototypeOf(obj) }
  7628. else
  7629. var copy = Object.create(null)
  7630. Object.getOwnPropertyNames(obj).forEach(function (key) {
  7631. Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
  7632. })
  7633. return copy
  7634. }
  7635. /***/ }),
  7636. /***/ 20077:
  7637. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  7638. var fs = __webpack_require__(35747)
  7639. var polyfills = __webpack_require__(72161)
  7640. var legacy = __webpack_require__(78520)
  7641. var clone = __webpack_require__(66458)
  7642. var util = __webpack_require__(31669)
  7643. /* istanbul ignore next - node 0.x polyfill */
  7644. var gracefulQueue
  7645. var previousSymbol
  7646. /* istanbul ignore else - node 0.x polyfill */
  7647. if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
  7648. gracefulQueue = Symbol.for('graceful-fs.queue')
  7649. // This is used in testing by future versions
  7650. previousSymbol = Symbol.for('graceful-fs.previous')
  7651. } else {
  7652. gracefulQueue = '___graceful-fs.queue'
  7653. previousSymbol = '___graceful-fs.previous'
  7654. }
  7655. function noop () {}
  7656. function publishQueue(context, queue) {
  7657. Object.defineProperty(context, gracefulQueue, {
  7658. get: function() {
  7659. return queue
  7660. }
  7661. })
  7662. }
  7663. var debug = noop
  7664. if (util.debuglog)
  7665. debug = util.debuglog('gfs4')
  7666. else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ''))
  7667. debug = function() {
  7668. var m = util.format.apply(util, arguments)
  7669. m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ')
  7670. console.error(m)
  7671. }
  7672. // Once time initialization
  7673. if (!fs[gracefulQueue]) {
  7674. // This queue can be shared by multiple loaded instances
  7675. var queue = global[gracefulQueue] || []
  7676. publishQueue(fs, queue)
  7677. // Patch fs.close/closeSync to shared queue version, because we need
  7678. // to retry() whenever a close happens *anywhere* in the program.
  7679. // This is essential when multiple graceful-fs instances are
  7680. // in play at the same time.
  7681. fs.close = (function (fs$close) {
  7682. function close (fd, cb) {
  7683. return fs$close.call(fs, fd, function (err) {
  7684. // This function uses the graceful-fs shared queue
  7685. if (!err) {
  7686. resetQueue()
  7687. }
  7688. if (typeof cb === 'function')
  7689. cb.apply(this, arguments)
  7690. })
  7691. }
  7692. Object.defineProperty(close, previousSymbol, {
  7693. value: fs$close
  7694. })
  7695. return close
  7696. })(fs.close)
  7697. fs.closeSync = (function (fs$closeSync) {
  7698. function closeSync (fd) {
  7699. // This function uses the graceful-fs shared queue
  7700. fs$closeSync.apply(fs, arguments)
  7701. resetQueue()
  7702. }
  7703. Object.defineProperty(closeSync, previousSymbol, {
  7704. value: fs$closeSync
  7705. })
  7706. return closeSync
  7707. })(fs.closeSync)
  7708. if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
  7709. process.on('exit', function() {
  7710. debug(fs[gracefulQueue])
  7711. __webpack_require__(42357).equal(fs[gracefulQueue].length, 0)
  7712. })
  7713. }
  7714. }
  7715. if (!global[gracefulQueue]) {
  7716. publishQueue(global, fs[gracefulQueue]);
  7717. }
  7718. module.exports = patch(clone(fs))
  7719. if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
  7720. module.exports = patch(fs)
  7721. fs.__patched = true;
  7722. }
  7723. function patch (fs) {
  7724. // Everything that references the open() function needs to be in here
  7725. polyfills(fs)
  7726. fs.gracefulify = patch
  7727. fs.createReadStream = createReadStream
  7728. fs.createWriteStream = createWriteStream
  7729. var fs$readFile = fs.readFile
  7730. fs.readFile = readFile
  7731. function readFile (path, options, cb) {
  7732. if (typeof options === 'function')
  7733. cb = options, options = null
  7734. return go$readFile(path, options, cb)
  7735. function go$readFile (path, options, cb, startTime) {
  7736. return fs$readFile(path, options, function (err) {
  7737. if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
  7738. enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])
  7739. else {
  7740. if (typeof cb === 'function')
  7741. cb.apply(this, arguments)
  7742. }
  7743. })
  7744. }
  7745. }
  7746. var fs$writeFile = fs.writeFile
  7747. fs.writeFile = writeFile
  7748. function writeFile (path, data, options, cb) {
  7749. if (typeof options === 'function')
  7750. cb = options, options = null
  7751. return go$writeFile(path, data, options, cb)
  7752. function go$writeFile (path, data, options, cb, startTime) {
  7753. return fs$writeFile(path, data, options, function (err) {
  7754. if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
  7755. enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
  7756. else {
  7757. if (typeof cb === 'function')
  7758. cb.apply(this, arguments)
  7759. }
  7760. })
  7761. }
  7762. }
  7763. var fs$appendFile = fs.appendFile
  7764. if (fs$appendFile)
  7765. fs.appendFile = appendFile
  7766. function appendFile (path, data, options, cb) {
  7767. if (typeof options === 'function')
  7768. cb = options, options = null
  7769. return go$appendFile(path, data, options, cb)
  7770. function go$appendFile (path, data, options, cb, startTime) {
  7771. return fs$appendFile(path, data, options, function (err) {
  7772. if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
  7773. enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
  7774. else {
  7775. if (typeof cb === 'function')
  7776. cb.apply(this, arguments)
  7777. }
  7778. })
  7779. }
  7780. }
  7781. var fs$copyFile = fs.copyFile
  7782. if (fs$copyFile)
  7783. fs.copyFile = copyFile
  7784. function copyFile (src, dest, flags, cb) {
  7785. if (typeof flags === 'function') {
  7786. cb = flags
  7787. flags = 0
  7788. }
  7789. return go$copyFile(src, dest, flags, cb)
  7790. function go$copyFile (src, dest, flags, cb, startTime) {
  7791. return fs$copyFile(src, dest, flags, function (err) {
  7792. if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
  7793. enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])
  7794. else {
  7795. if (typeof cb === 'function')
  7796. cb.apply(this, arguments)
  7797. }
  7798. })
  7799. }
  7800. }
  7801. var fs$readdir = fs.readdir
  7802. fs.readdir = readdir
  7803. function readdir (path, options, cb) {
  7804. if (typeof options === 'function')
  7805. cb = options, options = null
  7806. return go$readdir(path, options, cb)
  7807. function go$readdir (path, options, cb, startTime) {
  7808. return fs$readdir(path, options, function (err, files) {
  7809. if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
  7810. enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()])
  7811. else {
  7812. if (files && files.sort)
  7813. files.sort()
  7814. if (typeof cb === 'function')
  7815. cb.call(this, err, files)
  7816. }
  7817. })
  7818. }
  7819. }
  7820. if (process.version.substr(0, 4) === 'v0.8') {
  7821. var legStreams = legacy(fs)
  7822. ReadStream = legStreams.ReadStream
  7823. WriteStream = legStreams.WriteStream
  7824. }
  7825. var fs$ReadStream = fs.ReadStream
  7826. if (fs$ReadStream) {
  7827. ReadStream.prototype = Object.create(fs$ReadStream.prototype)
  7828. ReadStream.prototype.open = ReadStream$open
  7829. }
  7830. var fs$WriteStream = fs.WriteStream
  7831. if (fs$WriteStream) {
  7832. WriteStream.prototype = Object.create(fs$WriteStream.prototype)
  7833. WriteStream.prototype.open = WriteStream$open
  7834. }
  7835. Object.defineProperty(fs, 'ReadStream', {
  7836. get: function () {
  7837. return ReadStream
  7838. },
  7839. set: function (val) {
  7840. ReadStream = val
  7841. },
  7842. enumerable: true,
  7843. configurable: true
  7844. })
  7845. Object.defineProperty(fs, 'WriteStream', {
  7846. get: function () {
  7847. return WriteStream
  7848. },
  7849. set: function (val) {
  7850. WriteStream = val
  7851. },
  7852. enumerable: true,
  7853. configurable: true
  7854. })
  7855. // legacy names
  7856. var FileReadStream = ReadStream
  7857. Object.defineProperty(fs, 'FileReadStream', {
  7858. get: function () {
  7859. return FileReadStream
  7860. },
  7861. set: function (val) {
  7862. FileReadStream = val
  7863. },
  7864. enumerable: true,
  7865. configurable: true
  7866. })
  7867. var FileWriteStream = WriteStream
  7868. Object.defineProperty(fs, 'FileWriteStream', {
  7869. get: function () {
  7870. return FileWriteStream
  7871. },
  7872. set: function (val) {
  7873. FileWriteStream = val
  7874. },
  7875. enumerable: true,
  7876. configurable: true
  7877. })
  7878. function ReadStream (path, options) {
  7879. if (this instanceof ReadStream)
  7880. return fs$ReadStream.apply(this, arguments), this
  7881. else
  7882. return ReadStream.apply(Object.create(ReadStream.prototype), arguments)
  7883. }
  7884. function ReadStream$open () {
  7885. var that = this
  7886. open(that.path, that.flags, that.mode, function (err, fd) {
  7887. if (err) {
  7888. if (that.autoClose)
  7889. that.destroy()
  7890. that.emit('error', err)
  7891. } else {
  7892. that.fd = fd
  7893. that.emit('open', fd)
  7894. that.read()
  7895. }
  7896. })
  7897. }
  7898. function WriteStream (path, options) {
  7899. if (this instanceof WriteStream)
  7900. return fs$WriteStream.apply(this, arguments), this
  7901. else
  7902. return WriteStream.apply(Object.create(WriteStream.prototype), arguments)
  7903. }
  7904. function WriteStream$open () {
  7905. var that = this
  7906. open(that.path, that.flags, that.mode, function (err, fd) {
  7907. if (err) {
  7908. that.destroy()
  7909. that.emit('error', err)
  7910. } else {
  7911. that.fd = fd
  7912. that.emit('open', fd)
  7913. }
  7914. })
  7915. }
  7916. function createReadStream (path, options) {
  7917. return new fs.ReadStream(path, options)
  7918. }
  7919. function createWriteStream (path, options) {
  7920. return new fs.WriteStream(path, options)
  7921. }
  7922. var fs$open = fs.open
  7923. fs.open = open
  7924. function open (path, flags, mode, cb) {
  7925. if (typeof mode === 'function')
  7926. cb = mode, mode = null
  7927. return go$open(path, flags, mode, cb)
  7928. function go$open (path, flags, mode, cb, startTime) {
  7929. return fs$open(path, flags, mode, function (err, fd) {
  7930. if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
  7931. enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])
  7932. else {
  7933. if (typeof cb === 'function')
  7934. cb.apply(this, arguments)
  7935. }
  7936. })
  7937. }
  7938. }
  7939. return fs
  7940. }
  7941. function enqueue (elem) {
  7942. debug('ENQUEUE', elem[0].name, elem[1])
  7943. fs[gracefulQueue].push(elem)
  7944. retry()
  7945. }
  7946. // keep track of the timeout between retry() calls
  7947. var retryTimer
  7948. // reset the startTime and lastTime to now
  7949. // this resets the start of the 60 second overall timeout as well as the
  7950. // delay between attempts so that we'll retry these jobs sooner
  7951. function resetQueue () {
  7952. var now = Date.now()
  7953. for (var i = 0; i < fs[gracefulQueue].length; ++i) {
  7954. // entries that are only a length of 2 are from an older version, don't
  7955. // bother modifying those since they'll be retried anyway.
  7956. if (fs[gracefulQueue][i].length > 2) {
  7957. fs[gracefulQueue][i][3] = now // startTime
  7958. fs[gracefulQueue][i][4] = now // lastTime
  7959. }
  7960. }
  7961. // call retry to make sure we're actively processing the queue
  7962. retry()
  7963. }
  7964. function retry () {
  7965. // clear the timer and remove it to help prevent unintended concurrency
  7966. clearTimeout(retryTimer)
  7967. retryTimer = undefined
  7968. if (fs[gracefulQueue].length === 0)
  7969. return
  7970. var elem = fs[gracefulQueue].shift()
  7971. var fn = elem[0]
  7972. var args = elem[1]
  7973. // these items may be unset if they were added by an older graceful-fs
  7974. var err = elem[2]
  7975. var startTime = elem[3]
  7976. var lastTime = elem[4]
  7977. // if we don't have a startTime we have no way of knowing if we've waited
  7978. // long enough, so go ahead and retry this item now
  7979. if (startTime === undefined) {
  7980. debug('RETRY', fn.name, args)
  7981. fn.apply(null, args)
  7982. } else if (Date.now() - startTime >= 60000) {
  7983. // it's been more than 60 seconds total, bail now
  7984. debug('TIMEOUT', fn.name, args)
  7985. var cb = args.pop()
  7986. if (typeof cb === 'function')
  7987. cb.call(null, err)
  7988. } else {
  7989. // the amount of time between the last attempt and right now
  7990. var sinceAttempt = Date.now() - lastTime
  7991. // the amount of time between when we first tried, and when we last tried
  7992. // rounded up to at least 1
  7993. var sinceStart = Math.max(lastTime - startTime, 1)
  7994. // backoff. wait longer than the total time we've been retrying, but only
  7995. // up to a maximum of 100ms
  7996. var desiredDelay = Math.min(sinceStart * 1.2, 100)
  7997. // it's been long enough since the last retry, do it again
  7998. if (sinceAttempt >= desiredDelay) {
  7999. debug('RETRY', fn.name, args)
  8000. fn.apply(null, args.concat([startTime]))
  8001. } else {
  8002. // if we can't do this job yet, push it to the end of the queue
  8003. // and let the next iteration check again
  8004. fs[gracefulQueue].push(elem)
  8005. }
  8006. }
  8007. // schedule our next run if one isn't already scheduled
  8008. if (retryTimer === undefined) {
  8009. retryTimer = setTimeout(retry, 0)
  8010. }
  8011. }
  8012. /***/ }),
  8013. /***/ 78520:
  8014. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  8015. var Stream = __webpack_require__(92413).Stream
  8016. module.exports = legacy
  8017. function legacy (fs) {
  8018. return {
  8019. ReadStream: ReadStream,
  8020. WriteStream: WriteStream
  8021. }
  8022. function ReadStream (path, options) {
  8023. if (!(this instanceof ReadStream)) return new ReadStream(path, options);
  8024. Stream.call(this);
  8025. var self = this;
  8026. this.path = path;
  8027. this.fd = null;
  8028. this.readable = true;
  8029. this.paused = false;
  8030. this.flags = 'r';
  8031. this.mode = 438; /*=0666*/
  8032. this.bufferSize = 64 * 1024;
  8033. options = options || {};
  8034. // Mixin options into this
  8035. var keys = Object.keys(options);
  8036. for (var index = 0, length = keys.length; index < length; index++) {
  8037. var key = keys[index];
  8038. this[key] = options[key];
  8039. }
  8040. if (this.encoding) this.setEncoding(this.encoding);
  8041. if (this.start !== undefined) {
  8042. if ('number' !== typeof this.start) {
  8043. throw TypeError('start must be a Number');
  8044. }
  8045. if (this.end === undefined) {
  8046. this.end = Infinity;
  8047. } else if ('number' !== typeof this.end) {
  8048. throw TypeError('end must be a Number');
  8049. }
  8050. if (this.start > this.end) {
  8051. throw new Error('start must be <= end');
  8052. }
  8053. this.pos = this.start;
  8054. }
  8055. if (this.fd !== null) {
  8056. process.nextTick(function() {
  8057. self._read();
  8058. });
  8059. return;
  8060. }
  8061. fs.open(this.path, this.flags, this.mode, function (err, fd) {
  8062. if (err) {
  8063. self.emit('error', err);
  8064. self.readable = false;
  8065. return;
  8066. }
  8067. self.fd = fd;
  8068. self.emit('open', fd);
  8069. self._read();
  8070. })
  8071. }
  8072. function WriteStream (path, options) {
  8073. if (!(this instanceof WriteStream)) return new WriteStream(path, options);
  8074. Stream.call(this);
  8075. this.path = path;
  8076. this.fd = null;
  8077. this.writable = true;
  8078. this.flags = 'w';
  8079. this.encoding = 'binary';
  8080. this.mode = 438; /*=0666*/
  8081. this.bytesWritten = 0;
  8082. options = options || {};
  8083. // Mixin options into this
  8084. var keys = Object.keys(options);
  8085. for (var index = 0, length = keys.length; index < length; index++) {
  8086. var key = keys[index];
  8087. this[key] = options[key];
  8088. }
  8089. if (this.start !== undefined) {
  8090. if ('number' !== typeof this.start) {
  8091. throw TypeError('start must be a Number');
  8092. }
  8093. if (this.start < 0) {
  8094. throw new Error('start must be >= zero');
  8095. }
  8096. this.pos = this.start;
  8097. }
  8098. this.busy = false;
  8099. this._queue = [];
  8100. if (this.fd === null) {
  8101. this._open = fs.open;
  8102. this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
  8103. this.flush();
  8104. }
  8105. }
  8106. }
  8107. /***/ }),
  8108. /***/ 72161:
  8109. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  8110. var constants = __webpack_require__(27619)
  8111. var origCwd = process.cwd
  8112. var cwd = null
  8113. var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
  8114. process.cwd = function() {
  8115. if (!cwd)
  8116. cwd = origCwd.call(process)
  8117. return cwd
  8118. }
  8119. try {
  8120. process.cwd()
  8121. } catch (er) {}
  8122. // This check is needed until node.js 12 is required
  8123. if (typeof process.chdir === 'function') {
  8124. var chdir = process.chdir
  8125. process.chdir = function (d) {
  8126. cwd = null
  8127. chdir.call(process, d)
  8128. }
  8129. if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
  8130. }
  8131. module.exports = patch
  8132. function patch (fs) {
  8133. // (re-)implement some things that are known busted or missing.
  8134. // lchmod, broken prior to 0.6.2
  8135. // back-port the fix here.
  8136. if (constants.hasOwnProperty('O_SYMLINK') &&
  8137. process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
  8138. patchLchmod(fs)
  8139. }
  8140. // lutimes implementation, or no-op
  8141. if (!fs.lutimes) {
  8142. patchLutimes(fs)
  8143. }
  8144. // https://github.com/isaacs/node-graceful-fs/issues/4
  8145. // Chown should not fail on einval or eperm if non-root.
  8146. // It should not fail on enosys ever, as this just indicates
  8147. // that a fs doesn't support the intended operation.
  8148. fs.chown = chownFix(fs.chown)
  8149. fs.fchown = chownFix(fs.fchown)
  8150. fs.lchown = chownFix(fs.lchown)
  8151. fs.chmod = chmodFix(fs.chmod)
  8152. fs.fchmod = chmodFix(fs.fchmod)
  8153. fs.lchmod = chmodFix(fs.lchmod)
  8154. fs.chownSync = chownFixSync(fs.chownSync)
  8155. fs.fchownSync = chownFixSync(fs.fchownSync)
  8156. fs.lchownSync = chownFixSync(fs.lchownSync)
  8157. fs.chmodSync = chmodFixSync(fs.chmodSync)
  8158. fs.fchmodSync = chmodFixSync(fs.fchmodSync)
  8159. fs.lchmodSync = chmodFixSync(fs.lchmodSync)
  8160. fs.stat = statFix(fs.stat)
  8161. fs.fstat = statFix(fs.fstat)
  8162. fs.lstat = statFix(fs.lstat)
  8163. fs.statSync = statFixSync(fs.statSync)
  8164. fs.fstatSync = statFixSync(fs.fstatSync)
  8165. fs.lstatSync = statFixSync(fs.lstatSync)
  8166. // if lchmod/lchown do not exist, then make them no-ops
  8167. if (!fs.lchmod) {
  8168. fs.lchmod = function (path, mode, cb) {
  8169. if (cb) process.nextTick(cb)
  8170. }
  8171. fs.lchmodSync = function () {}
  8172. }
  8173. if (!fs.lchown) {
  8174. fs.lchown = function (path, uid, gid, cb) {
  8175. if (cb) process.nextTick(cb)
  8176. }
  8177. fs.lchownSync = function () {}
  8178. }
  8179. // on Windows, A/V software can lock the directory, causing this
  8180. // to fail with an EACCES or EPERM if the directory contains newly
  8181. // created files. Try again on failure, for up to 60 seconds.
  8182. // Set the timeout this long because some Windows Anti-Virus, such as Parity
  8183. // bit9, may lock files for up to a minute, causing npm package install
  8184. // failures. Also, take care to yield the scheduler. Windows scheduling gives
  8185. // CPU to a busy looping process, which can cause the program causing the lock
  8186. // contention to be starved of CPU by node, so the contention doesn't resolve.
  8187. if (platform === "win32") {
  8188. fs.rename = (function (fs$rename) { return function (from, to, cb) {
  8189. var start = Date.now()
  8190. var backoff = 0;
  8191. fs$rename(from, to, function CB (er) {
  8192. if (er
  8193. && (er.code === "EACCES" || er.code === "EPERM")
  8194. && Date.now() - start < 60000) {
  8195. setTimeout(function() {
  8196. fs.stat(to, function (stater, st) {
  8197. if (stater && stater.code === "ENOENT")
  8198. fs$rename(from, to, CB);
  8199. else
  8200. cb(er)
  8201. })
  8202. }, backoff)
  8203. if (backoff < 100)
  8204. backoff += 10;
  8205. return;
  8206. }
  8207. if (cb) cb(er)
  8208. })
  8209. }})(fs.rename)
  8210. }
  8211. // if read() returns EAGAIN, then just try it again.
  8212. fs.read = (function (fs$read) {
  8213. function read (fd, buffer, offset, length, position, callback_) {
  8214. var callback
  8215. if (callback_ && typeof callback_ === 'function') {
  8216. var eagCounter = 0
  8217. callback = function (er, _, __) {
  8218. if (er && er.code === 'EAGAIN' && eagCounter < 10) {
  8219. eagCounter ++
  8220. return fs$read.call(fs, fd, buffer, offset, length, position, callback)
  8221. }
  8222. callback_.apply(this, arguments)
  8223. }
  8224. }
  8225. return fs$read.call(fs, fd, buffer, offset, length, position, callback)
  8226. }
  8227. // This ensures `util.promisify` works as it does for native `fs.read`.
  8228. if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)
  8229. return read
  8230. })(fs.read)
  8231. fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
  8232. var eagCounter = 0
  8233. while (true) {
  8234. try {
  8235. return fs$readSync.call(fs, fd, buffer, offset, length, position)
  8236. } catch (er) {
  8237. if (er.code === 'EAGAIN' && eagCounter < 10) {
  8238. eagCounter ++
  8239. continue
  8240. }
  8241. throw er
  8242. }
  8243. }
  8244. }})(fs.readSync)
  8245. function patchLchmod (fs) {
  8246. fs.lchmod = function (path, mode, callback) {
  8247. fs.open( path
  8248. , constants.O_WRONLY | constants.O_SYMLINK
  8249. , mode
  8250. , function (err, fd) {
  8251. if (err) {
  8252. if (callback) callback(err)
  8253. return
  8254. }
  8255. // prefer to return the chmod error, if one occurs,
  8256. // but still try to close, and report closing errors if they occur.
  8257. fs.fchmod(fd, mode, function (err) {
  8258. fs.close(fd, function(err2) {
  8259. if (callback) callback(err || err2)
  8260. })
  8261. })
  8262. })
  8263. }
  8264. fs.lchmodSync = function (path, mode) {
  8265. var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
  8266. // prefer to return the chmod error, if one occurs,
  8267. // but still try to close, and report closing errors if they occur.
  8268. var threw = true
  8269. var ret
  8270. try {
  8271. ret = fs.fchmodSync(fd, mode)
  8272. threw = false
  8273. } finally {
  8274. if (threw) {
  8275. try {
  8276. fs.closeSync(fd)
  8277. } catch (er) {}
  8278. } else {
  8279. fs.closeSync(fd)
  8280. }
  8281. }
  8282. return ret
  8283. }
  8284. }
  8285. function patchLutimes (fs) {
  8286. if (constants.hasOwnProperty("O_SYMLINK")) {
  8287. fs.lutimes = function (path, at, mt, cb) {
  8288. fs.open(path, constants.O_SYMLINK, function (er, fd) {
  8289. if (er) {
  8290. if (cb) cb(er)
  8291. return
  8292. }
  8293. fs.futimes(fd, at, mt, function (er) {
  8294. fs.close(fd, function (er2) {
  8295. if (cb) cb(er || er2)
  8296. })
  8297. })
  8298. })
  8299. }
  8300. fs.lutimesSync = function (path, at, mt) {
  8301. var fd = fs.openSync(path, constants.O_SYMLINK)
  8302. var ret
  8303. var threw = true
  8304. try {
  8305. ret = fs.futimesSync(fd, at, mt)
  8306. threw = false
  8307. } finally {
  8308. if (threw) {
  8309. try {
  8310. fs.closeSync(fd)
  8311. } catch (er) {}
  8312. } else {
  8313. fs.closeSync(fd)
  8314. }
  8315. }
  8316. return ret
  8317. }
  8318. } else {
  8319. fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
  8320. fs.lutimesSync = function () {}
  8321. }
  8322. }
  8323. function chmodFix (orig) {
  8324. if (!orig) return orig
  8325. return function (target, mode, cb) {
  8326. return orig.call(fs, target, mode, function (er) {
  8327. if (chownErOk(er)) er = null
  8328. if (cb) cb.apply(this, arguments)
  8329. })
  8330. }
  8331. }
  8332. function chmodFixSync (orig) {
  8333. if (!orig) return orig
  8334. return function (target, mode) {
  8335. try {
  8336. return orig.call(fs, target, mode)
  8337. } catch (er) {
  8338. if (!chownErOk(er)) throw er
  8339. }
  8340. }
  8341. }
  8342. function chownFix (orig) {
  8343. if (!orig) return orig
  8344. return function (target, uid, gid, cb) {
  8345. return orig.call(fs, target, uid, gid, function (er) {
  8346. if (chownErOk(er)) er = null
  8347. if (cb) cb.apply(this, arguments)
  8348. })
  8349. }
  8350. }
  8351. function chownFixSync (orig) {
  8352. if (!orig) return orig
  8353. return function (target, uid, gid) {
  8354. try {
  8355. return orig.call(fs, target, uid, gid)
  8356. } catch (er) {
  8357. if (!chownErOk(er)) throw er
  8358. }
  8359. }
  8360. }
  8361. function statFix (orig) {
  8362. if (!orig) return orig
  8363. // Older versions of Node erroneously returned signed integers for
  8364. // uid + gid.
  8365. return function (target, options, cb) {
  8366. if (typeof options === 'function') {
  8367. cb = options
  8368. options = null
  8369. }
  8370. function callback (er, stats) {
  8371. if (stats) {
  8372. if (stats.uid < 0) stats.uid += 0x100000000
  8373. if (stats.gid < 0) stats.gid += 0x100000000
  8374. }
  8375. if (cb) cb.apply(this, arguments)
  8376. }
  8377. return options ? orig.call(fs, target, options, callback)
  8378. : orig.call(fs, target, callback)
  8379. }
  8380. }
  8381. function statFixSync (orig) {
  8382. if (!orig) return orig
  8383. // Older versions of Node erroneously returned signed integers for
  8384. // uid + gid.
  8385. return function (target, options) {
  8386. var stats = options ? orig.call(fs, target, options)
  8387. : orig.call(fs, target)
  8388. if (stats.uid < 0) stats.uid += 0x100000000
  8389. if (stats.gid < 0) stats.gid += 0x100000000
  8390. return stats;
  8391. }
  8392. }
  8393. // ENOSYS means that the fs doesn't support the op. Just ignore
  8394. // that, because it doesn't matter.
  8395. //
  8396. // if there's no getuid, or if getuid() is something other
  8397. // than 0, and the error is EINVAL or EPERM, then just ignore
  8398. // it.
  8399. //
  8400. // This specific case is a silent failure in cp, install, tar,
  8401. // and most other unix tools that manage permissions.
  8402. //
  8403. // When running as root, or if other types of errors are
  8404. // encountered, then it's strict.
  8405. function chownErOk (er) {
  8406. if (!er)
  8407. return true
  8408. if (er.code === "ENOSYS")
  8409. return true
  8410. var nonroot = !process.getuid || process.getuid() !== 0
  8411. if (nonroot) {
  8412. if (er.code === "EINVAL" || er.code === "EPERM")
  8413. return true
  8414. }
  8415. return false
  8416. }
  8417. }
  8418. /***/ }),
  8419. /***/ 86560:
  8420. /***/ ((module) => {
  8421. "use strict";
  8422. module.exports = (flag, argv) => {
  8423. argv = argv || process.argv;
  8424. const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
  8425. const pos = argv.indexOf(prefix + flag);
  8426. const terminatorPos = argv.indexOf('--');
  8427. return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
  8428. };
  8429. /***/ }),
  8430. /***/ 60688:
  8431. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  8432. "use strict";
  8433. var Buffer = __webpack_require__(2399).Buffer;
  8434. // Multibyte codec. In this scheme, a character is represented by 1 or more bytes.
  8435. // Our codec supports UTF-16 surrogates, extensions for GB18030 and unicode sequences.
  8436. // To save memory and loading time, we read table files only when requested.
  8437. exports._dbcs = DBCSCodec;
  8438. var UNASSIGNED = -1,
  8439. GB18030_CODE = -2,
  8440. SEQ_START = -10,
  8441. NODE_START = -1000,
  8442. UNASSIGNED_NODE = new Array(0x100),
  8443. DEF_CHAR = -1;
  8444. for (var i = 0; i < 0x100; i++)
  8445. UNASSIGNED_NODE[i] = UNASSIGNED;
  8446. // Class DBCSCodec reads and initializes mapping tables.
  8447. function DBCSCodec(codecOptions, iconv) {
  8448. this.encodingName = codecOptions.encodingName;
  8449. if (!codecOptions)
  8450. throw new Error("DBCS codec is called without the data.")
  8451. if (!codecOptions.table)
  8452. throw new Error("Encoding '" + this.encodingName + "' has no data.");
  8453. // Load tables.
  8454. var mappingTable = codecOptions.table();
  8455. // Decode tables: MBCS -> Unicode.
  8456. // decodeTables is a trie, encoded as an array of arrays of integers. Internal arrays are trie nodes and all have len = 256.
  8457. // Trie root is decodeTables[0].
  8458. // Values: >= 0 -> unicode character code. can be > 0xFFFF
  8459. // == UNASSIGNED -> unknown/unassigned sequence.
  8460. // == GB18030_CODE -> this is the end of a GB18030 4-byte sequence.
  8461. // <= NODE_START -> index of the next node in our trie to process next byte.
  8462. // <= SEQ_START -> index of the start of a character code sequence, in decodeTableSeq.
  8463. this.decodeTables = [];
  8464. this.decodeTables[0] = UNASSIGNED_NODE.slice(0); // Create root node.
  8465. // Sometimes a MBCS char corresponds to a sequence of unicode chars. We store them as arrays of integers here.
  8466. this.decodeTableSeq = [];
  8467. // Actual mapping tables consist of chunks. Use them to fill up decode tables.
  8468. for (var i = 0; i < mappingTable.length; i++)
  8469. this._addDecodeChunk(mappingTable[i]);
  8470. this.defaultCharUnicode = iconv.defaultCharUnicode;
  8471. // Encode tables: Unicode -> DBCS.
  8472. // `encodeTable` is array mapping from unicode char to encoded char. All its values are integers for performance.
  8473. // Because it can be sparse, it is represented as array of buckets by 256 chars each. Bucket can be null.
  8474. // Values: >= 0 -> it is a normal char. Write the value (if <=256 then 1 byte, if <=65536 then 2 bytes, etc.).
  8475. // == UNASSIGNED -> no conversion found. Output a default char.
  8476. // <= SEQ_START -> it's an index in encodeTableSeq, see below. The character starts a sequence.
  8477. this.encodeTable = [];
  8478. // `encodeTableSeq` is used when a sequence of unicode characters is encoded as a single code. We use a tree of
  8479. // objects where keys correspond to characters in sequence and leafs are the encoded dbcs values. A special DEF_CHAR key
  8480. // means end of sequence (needed when one sequence is a strict subsequence of another).
  8481. // Objects are kept separately from encodeTable to increase performance.
  8482. this.encodeTableSeq = [];
  8483. // Some chars can be decoded, but need not be encoded.
  8484. var skipEncodeChars = {};
  8485. if (codecOptions.encodeSkipVals)
  8486. for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {
  8487. var val = codecOptions.encodeSkipVals[i];
  8488. if (typeof val === 'number')
  8489. skipEncodeChars[val] = true;
  8490. else
  8491. for (var j = val.from; j <= val.to; j++)
  8492. skipEncodeChars[j] = true;
  8493. }
  8494. // Use decode trie to recursively fill out encode tables.
  8495. this._fillEncodeTable(0, 0, skipEncodeChars);
  8496. // Add more encoding pairs when needed.
  8497. if (codecOptions.encodeAdd) {
  8498. for (var uChar in codecOptions.encodeAdd)
  8499. if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
  8500. this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
  8501. }
  8502. this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
  8503. if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]['?'];
  8504. if (this.defCharSB === UNASSIGNED) this.defCharSB = "?".charCodeAt(0);
  8505. // Load & create GB18030 tables when needed.
  8506. if (typeof codecOptions.gb18030 === 'function') {
  8507. this.gb18030 = codecOptions.gb18030(); // Load GB18030 ranges.
  8508. // Add GB18030 decode tables.
  8509. var thirdByteNodeIdx = this.decodeTables.length;
  8510. var thirdByteNode = this.decodeTables[thirdByteNodeIdx] = UNASSIGNED_NODE.slice(0);
  8511. var fourthByteNodeIdx = this.decodeTables.length;
  8512. var fourthByteNode = this.decodeTables[fourthByteNodeIdx] = UNASSIGNED_NODE.slice(0);
  8513. for (var i = 0x81; i <= 0xFE; i++) {
  8514. var secondByteNodeIdx = NODE_START - this.decodeTables[0][i];
  8515. var secondByteNode = this.decodeTables[secondByteNodeIdx];
  8516. for (var j = 0x30; j <= 0x39; j++)
  8517. secondByteNode[j] = NODE_START - thirdByteNodeIdx;
  8518. }
  8519. for (var i = 0x81; i <= 0xFE; i++)
  8520. thirdByteNode[i] = NODE_START - fourthByteNodeIdx;
  8521. for (var i = 0x30; i <= 0x39; i++)
  8522. fourthByteNode[i] = GB18030_CODE
  8523. }
  8524. }
  8525. DBCSCodec.prototype.encoder = DBCSEncoder;
  8526. DBCSCodec.prototype.decoder = DBCSDecoder;
  8527. // Decoder helpers
  8528. DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
  8529. var bytes = [];
  8530. for (; addr > 0; addr >>= 8)
  8531. bytes.push(addr & 0xFF);
  8532. if (bytes.length == 0)
  8533. bytes.push(0);
  8534. var node = this.decodeTables[0];
  8535. for (var i = bytes.length-1; i > 0; i--) { // Traverse nodes deeper into the trie.
  8536. var val = node[bytes[i]];
  8537. if (val == UNASSIGNED) { // Create new node.
  8538. node[bytes[i]] = NODE_START - this.decodeTables.length;
  8539. this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
  8540. }
  8541. else if (val <= NODE_START) { // Existing node.
  8542. node = this.decodeTables[NODE_START - val];
  8543. }
  8544. else
  8545. throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
  8546. }
  8547. return node;
  8548. }
  8549. DBCSCodec.prototype._addDecodeChunk = function(chunk) {
  8550. // First element of chunk is the hex mbcs code where we start.
  8551. var curAddr = parseInt(chunk[0], 16);
  8552. // Choose the decoding node where we'll write our chars.
  8553. var writeTable = this._getDecodeTrieNode(curAddr);
  8554. curAddr = curAddr & 0xFF;
  8555. // Write all other elements of the chunk to the table.
  8556. for (var k = 1; k < chunk.length; k++) {
  8557. var part = chunk[k];
  8558. if (typeof part === "string") { // String, write as-is.
  8559. for (var l = 0; l < part.length;) {
  8560. var code = part.charCodeAt(l++);
  8561. if (0xD800 <= code && code < 0xDC00) { // Decode surrogate
  8562. var codeTrail = part.charCodeAt(l++);
  8563. if (0xDC00 <= codeTrail && codeTrail < 0xE000)
  8564. writeTable[curAddr++] = 0x10000 + (code - 0xD800) * 0x400 + (codeTrail - 0xDC00);
  8565. else
  8566. throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
  8567. }
  8568. else if (0x0FF0 < code && code <= 0x0FFF) { // Character sequence (our own encoding used)
  8569. var len = 0xFFF - code + 2;
  8570. var seq = [];
  8571. for (var m = 0; m < len; m++)
  8572. seq.push(part.charCodeAt(l++)); // Simple variation: don't support surrogates or subsequences in seq.
  8573. writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
  8574. this.decodeTableSeq.push(seq);
  8575. }
  8576. else
  8577. writeTable[curAddr++] = code; // Basic char
  8578. }
  8579. }
  8580. else if (typeof part === "number") { // Integer, meaning increasing sequence starting with prev character.
  8581. var charCode = writeTable[curAddr - 1] + 1;
  8582. for (var l = 0; l < part; l++)
  8583. writeTable[curAddr++] = charCode++;
  8584. }
  8585. else
  8586. throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
  8587. }
  8588. if (curAddr > 0xFF)
  8589. throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
  8590. }
  8591. // Encoder helpers
  8592. DBCSCodec.prototype._getEncodeBucket = function(uCode) {
  8593. var high = uCode >> 8; // This could be > 0xFF because of astral characters.
  8594. if (this.encodeTable[high] === undefined)
  8595. this.encodeTable[high] = UNASSIGNED_NODE.slice(0); // Create bucket on demand.
  8596. return this.encodeTable[high];
  8597. }
  8598. DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
  8599. var bucket = this._getEncodeBucket(uCode);
  8600. var low = uCode & 0xFF;
  8601. if (bucket[low] <= SEQ_START)
  8602. this.encodeTableSeq[SEQ_START-bucket[low]][DEF_CHAR] = dbcsCode; // There's already a sequence, set a single-char subsequence of it.
  8603. else if (bucket[low] == UNASSIGNED)
  8604. bucket[low] = dbcsCode;
  8605. }
  8606. DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
  8607. // Get the root of character tree according to first character of the sequence.
  8608. var uCode = seq[0];
  8609. var bucket = this._getEncodeBucket(uCode);
  8610. var low = uCode & 0xFF;
  8611. var node;
  8612. if (bucket[low] <= SEQ_START) {
  8613. // There's already a sequence with - use it.
  8614. node = this.encodeTableSeq[SEQ_START-bucket[low]];
  8615. }
  8616. else {
  8617. // There was no sequence object - allocate a new one.
  8618. node = {};
  8619. if (bucket[low] !== UNASSIGNED) node[DEF_CHAR] = bucket[low]; // If a char was set before - make it a single-char subsequence.
  8620. bucket[low] = SEQ_START - this.encodeTableSeq.length;
  8621. this.encodeTableSeq.push(node);
  8622. }
  8623. // Traverse the character tree, allocating new nodes as needed.
  8624. for (var j = 1; j < seq.length-1; j++) {
  8625. var oldVal = node[uCode];
  8626. if (typeof oldVal === 'object')
  8627. node = oldVal;
  8628. else {
  8629. node = node[uCode] = {}
  8630. if (oldVal !== undefined)
  8631. node[DEF_CHAR] = oldVal
  8632. }
  8633. }
  8634. // Set the leaf to given dbcsCode.
  8635. uCode = seq[seq.length-1];
  8636. node[uCode] = dbcsCode;
  8637. }
  8638. DBCSCodec.prototype._fillEncodeTable = function(nodeIdx, prefix, skipEncodeChars) {
  8639. var node = this.decodeTables[nodeIdx];
  8640. for (var i = 0; i < 0x100; i++) {
  8641. var uCode = node[i];
  8642. var mbCode = prefix + i;
  8643. if (skipEncodeChars[mbCode])
  8644. continue;
  8645. if (uCode >= 0)
  8646. this._setEncodeChar(uCode, mbCode);
  8647. else if (uCode <= NODE_START)
  8648. this._fillEncodeTable(NODE_START - uCode, mbCode << 8, skipEncodeChars);
  8649. else if (uCode <= SEQ_START)
  8650. this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
  8651. }
  8652. }
  8653. // == Encoder ==================================================================
  8654. function DBCSEncoder(options, codec) {
  8655. // Encoder state
  8656. this.leadSurrogate = -1;
  8657. this.seqObj = undefined;
  8658. // Static data
  8659. this.encodeTable = codec.encodeTable;
  8660. this.encodeTableSeq = codec.encodeTableSeq;
  8661. this.defaultCharSingleByte = codec.defCharSB;
  8662. this.gb18030 = codec.gb18030;
  8663. }
  8664. DBCSEncoder.prototype.write = function(str) {
  8665. var newBuf = Buffer.alloc(str.length * (this.gb18030 ? 4 : 3)),
  8666. leadSurrogate = this.leadSurrogate,
  8667. seqObj = this.seqObj, nextChar = -1,
  8668. i = 0, j = 0;
  8669. while (true) {
  8670. // 0. Get next character.
  8671. if (nextChar === -1) {
  8672. if (i == str.length) break;
  8673. var uCode = str.charCodeAt(i++);
  8674. }
  8675. else {
  8676. var uCode = nextChar;
  8677. nextChar = -1;
  8678. }
  8679. // 1. Handle surrogates.
  8680. if (0xD800 <= uCode && uCode < 0xE000) { // Char is one of surrogates.
  8681. if (uCode < 0xDC00) { // We've got lead surrogate.
  8682. if (leadSurrogate === -1) {
  8683. leadSurrogate = uCode;
  8684. continue;
  8685. } else {
  8686. leadSurrogate = uCode;
  8687. // Double lead surrogate found.
  8688. uCode = UNASSIGNED;
  8689. }
  8690. } else { // We've got trail surrogate.
  8691. if (leadSurrogate !== -1) {
  8692. uCode = 0x10000 + (leadSurrogate - 0xD800) * 0x400 + (uCode - 0xDC00);
  8693. leadSurrogate = -1;
  8694. } else {
  8695. // Incomplete surrogate pair - only trail surrogate found.
  8696. uCode = UNASSIGNED;
  8697. }
  8698. }
  8699. }
  8700. else if (leadSurrogate !== -1) {
  8701. // Incomplete surrogate pair - only lead surrogate found.
  8702. nextChar = uCode; uCode = UNASSIGNED; // Write an error, then current char.
  8703. leadSurrogate = -1;
  8704. }
  8705. // 2. Convert uCode character.
  8706. var dbcsCode = UNASSIGNED;
  8707. if (seqObj !== undefined && uCode != UNASSIGNED) { // We are in the middle of the sequence
  8708. var resCode = seqObj[uCode];
  8709. if (typeof resCode === 'object') { // Sequence continues.
  8710. seqObj = resCode;
  8711. continue;
  8712. } else if (typeof resCode == 'number') { // Sequence finished. Write it.
  8713. dbcsCode = resCode;
  8714. } else if (resCode == undefined) { // Current character is not part of the sequence.
  8715. // Try default character for this sequence
  8716. resCode = seqObj[DEF_CHAR];
  8717. if (resCode !== undefined) {
  8718. dbcsCode = resCode; // Found. Write it.
  8719. nextChar = uCode; // Current character will be written too in the next iteration.
  8720. } else {
  8721. // TODO: What if we have no default? (resCode == undefined)
  8722. // Then, we should write first char of the sequence as-is and try the rest recursively.
  8723. // Didn't do it for now because no encoding has this situation yet.
  8724. // Currently, just skip the sequence and write current char.
  8725. }
  8726. }
  8727. seqObj = undefined;
  8728. }
  8729. else if (uCode >= 0) { // Regular character
  8730. var subtable = this.encodeTable[uCode >> 8];
  8731. if (subtable !== undefined)
  8732. dbcsCode = subtable[uCode & 0xFF];
  8733. if (dbcsCode <= SEQ_START) { // Sequence start
  8734. seqObj = this.encodeTableSeq[SEQ_START-dbcsCode];
  8735. continue;
  8736. }
  8737. if (dbcsCode == UNASSIGNED && this.gb18030) {
  8738. // Use GB18030 algorithm to find character(s) to write.
  8739. var idx = findIdx(this.gb18030.uChars, uCode);
  8740. if (idx != -1) {
  8741. var dbcsCode = this.gb18030.gbChars[idx] + (uCode - this.gb18030.uChars[idx]);
  8742. newBuf[j++] = 0x81 + Math.floor(dbcsCode / 12600); dbcsCode = dbcsCode % 12600;
  8743. newBuf[j++] = 0x30 + Math.floor(dbcsCode / 1260); dbcsCode = dbcsCode % 1260;
  8744. newBuf[j++] = 0x81 + Math.floor(dbcsCode / 10); dbcsCode = dbcsCode % 10;
  8745. newBuf[j++] = 0x30 + dbcsCode;
  8746. continue;
  8747. }
  8748. }
  8749. }
  8750. // 3. Write dbcsCode character.
  8751. if (dbcsCode === UNASSIGNED)
  8752. dbcsCode = this.defaultCharSingleByte;
  8753. if (dbcsCode < 0x100) {
  8754. newBuf[j++] = dbcsCode;
  8755. }
  8756. else if (dbcsCode < 0x10000) {
  8757. newBuf[j++] = dbcsCode >> 8; // high byte
  8758. newBuf[j++] = dbcsCode & 0xFF; // low byte
  8759. }
  8760. else {
  8761. newBuf[j++] = dbcsCode >> 16;
  8762. newBuf[j++] = (dbcsCode >> 8) & 0xFF;
  8763. newBuf[j++] = dbcsCode & 0xFF;
  8764. }
  8765. }
  8766. this.seqObj = seqObj;
  8767. this.leadSurrogate = leadSurrogate;
  8768. return newBuf.slice(0, j);
  8769. }
  8770. DBCSEncoder.prototype.end = function() {
  8771. if (this.leadSurrogate === -1 && this.seqObj === undefined)
  8772. return; // All clean. Most often case.
  8773. var newBuf = Buffer.alloc(10), j = 0;
  8774. if (this.seqObj) { // We're in the sequence.
  8775. var dbcsCode = this.seqObj[DEF_CHAR];
  8776. if (dbcsCode !== undefined) { // Write beginning of the sequence.
  8777. if (dbcsCode < 0x100) {
  8778. newBuf[j++] = dbcsCode;
  8779. }
  8780. else {
  8781. newBuf[j++] = dbcsCode >> 8; // high byte
  8782. newBuf[j++] = dbcsCode & 0xFF; // low byte
  8783. }
  8784. } else {
  8785. // See todo above.
  8786. }
  8787. this.seqObj = undefined;
  8788. }
  8789. if (this.leadSurrogate !== -1) {
  8790. // Incomplete surrogate pair - only lead surrogate found.
  8791. newBuf[j++] = this.defaultCharSingleByte;
  8792. this.leadSurrogate = -1;
  8793. }
  8794. return newBuf.slice(0, j);
  8795. }
  8796. // Export for testing
  8797. DBCSEncoder.prototype.findIdx = findIdx;
  8798. // == Decoder ==================================================================
  8799. function DBCSDecoder(options, codec) {
  8800. // Decoder state
  8801. this.nodeIdx = 0;
  8802. this.prevBuf = Buffer.alloc(0);
  8803. // Static data
  8804. this.decodeTables = codec.decodeTables;
  8805. this.decodeTableSeq = codec.decodeTableSeq;
  8806. this.defaultCharUnicode = codec.defaultCharUnicode;
  8807. this.gb18030 = codec.gb18030;
  8808. }
  8809. DBCSDecoder.prototype.write = function(buf) {
  8810. var newBuf = Buffer.alloc(buf.length*2),
  8811. nodeIdx = this.nodeIdx,
  8812. prevBuf = this.prevBuf, prevBufOffset = this.prevBuf.length,
  8813. seqStart = -this.prevBuf.length, // idx of the start of current parsed sequence.
  8814. uCode;
  8815. if (prevBufOffset > 0) // Make prev buf overlap a little to make it easier to slice later.
  8816. prevBuf = Buffer.concat([prevBuf, buf.slice(0, 10)]);
  8817. for (var i = 0, j = 0; i < buf.length; i++) {
  8818. var curByte = (i >= 0) ? buf[i] : prevBuf[i + prevBufOffset];
  8819. // Lookup in current trie node.
  8820. var uCode = this.decodeTables[nodeIdx][curByte];
  8821. if (uCode >= 0) {
  8822. // Normal character, just use it.
  8823. }
  8824. else if (uCode === UNASSIGNED) { // Unknown char.
  8825. // TODO: Callback with seq.
  8826. //var curSeq = (seqStart >= 0) ? buf.slice(seqStart, i+1) : prevBuf.slice(seqStart + prevBufOffset, i+1 + prevBufOffset);
  8827. i = seqStart; // Try to parse again, after skipping first byte of the sequence ('i' will be incremented by 'for' cycle).
  8828. uCode = this.defaultCharUnicode.charCodeAt(0);
  8829. }
  8830. else if (uCode === GB18030_CODE) {
  8831. var curSeq = (seqStart >= 0) ? buf.slice(seqStart, i+1) : prevBuf.slice(seqStart + prevBufOffset, i+1 + prevBufOffset);
  8832. var ptr = (curSeq[0]-0x81)*12600 + (curSeq[1]-0x30)*1260 + (curSeq[2]-0x81)*10 + (curSeq[3]-0x30);
  8833. var idx = findIdx(this.gb18030.gbChars, ptr);
  8834. uCode = this.gb18030.uChars[idx] + ptr - this.gb18030.gbChars[idx];
  8835. }
  8836. else if (uCode <= NODE_START) { // Go to next trie node.
  8837. nodeIdx = NODE_START - uCode;
  8838. continue;
  8839. }
  8840. else if (uCode <= SEQ_START) { // Output a sequence of chars.
  8841. var seq = this.decodeTableSeq[SEQ_START - uCode];
  8842. for (var k = 0; k < seq.length - 1; k++) {
  8843. uCode = seq[k];
  8844. newBuf[j++] = uCode & 0xFF;
  8845. newBuf[j++] = uCode >> 8;
  8846. }
  8847. uCode = seq[seq.length-1];
  8848. }
  8849. else
  8850. throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
  8851. // Write the character to buffer, handling higher planes using surrogate pair.
  8852. if (uCode > 0xFFFF) {
  8853. uCode -= 0x10000;
  8854. var uCodeLead = 0xD800 + Math.floor(uCode / 0x400);
  8855. newBuf[j++] = uCodeLead & 0xFF;
  8856. newBuf[j++] = uCodeLead >> 8;
  8857. uCode = 0xDC00 + uCode % 0x400;
  8858. }
  8859. newBuf[j++] = uCode & 0xFF;
  8860. newBuf[j++] = uCode >> 8;
  8861. // Reset trie node.
  8862. nodeIdx = 0; seqStart = i+1;
  8863. }
  8864. this.nodeIdx = nodeIdx;
  8865. this.prevBuf = (seqStart >= 0) ? buf.slice(seqStart) : prevBuf.slice(seqStart + prevBufOffset);
  8866. return newBuf.slice(0, j).toString('ucs2');
  8867. }
  8868. DBCSDecoder.prototype.end = function() {
  8869. var ret = '';
  8870. // Try to parse all remaining chars.
  8871. while (this.prevBuf.length > 0) {
  8872. // Skip 1 character in the buffer.
  8873. ret += this.defaultCharUnicode;
  8874. var buf = this.prevBuf.slice(1);
  8875. // Parse remaining as usual.
  8876. this.prevBuf = Buffer.alloc(0);
  8877. this.nodeIdx = 0;
  8878. if (buf.length > 0)
  8879. ret += this.write(buf);
  8880. }
  8881. this.nodeIdx = 0;
  8882. return ret;
  8883. }
  8884. // Binary search for GB18030. Returns largest i such that table[i] <= val.
  8885. function findIdx(table, val) {
  8886. if (table[0] > val)
  8887. return -1;
  8888. var l = 0, r = table.length;
  8889. while (l < r-1) { // always table[l] <= val < table[r]
  8890. var mid = l + Math.floor((r-l+1)/2);
  8891. if (table[mid] <= val)
  8892. l = mid;
  8893. else
  8894. r = mid;
  8895. }
  8896. return l;
  8897. }
  8898. /***/ }),
  8899. /***/ 55990:
  8900. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  8901. "use strict";
  8902. // Description of supported double byte encodings and aliases.
  8903. // Tables are not require()-d until they are needed to speed up library load.
  8904. // require()-s are direct to support Browserify.
  8905. module.exports = {
  8906. // == Japanese/ShiftJIS ====================================================
  8907. // All japanese encodings are based on JIS X set of standards:
  8908. // JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
  8909. // JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
  8910. // Has several variations in 1978, 1983, 1990 and 1997.
  8911. // JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
  8912. // JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
  8913. // 2 planes, first is superset of 0208, second - revised 0212.
  8914. // Introduced in 2000, revised 2004. Some characters are in Unicode Plane 2 (0x2xxxx)
  8915. // Byte encodings are:
  8916. // * Shift_JIS: Compatible with 0201, uses not defined chars in top half as lead bytes for double-byte
  8917. // encoding of 0208. Lead byte ranges: 0x81-0x9F, 0xE0-0xEF; Trail byte ranges: 0x40-0x7E, 0x80-0x9E, 0x9F-0xFC.
  8918. // Windows CP932 is a superset of Shift_JIS. Some companies added more chars, notably KDDI.
  8919. // * EUC-JP: Up to 3 bytes per character. Used mostly on *nixes.
  8920. // 0x00-0x7F - lower part of 0201
  8921. // 0x8E, 0xA1-0xDF - upper part of 0201
  8922. // (0xA1-0xFE)x2 - 0208 plane (94x94).
  8923. // 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
  8924. // * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
  8925. // Used as-is in ISO2022 family.
  8926. // * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
  8927. // 0201-1976 Roman, 0208-1978, 0208-1983.
  8928. // * ISO2022-JP-1: Adds esc seq for 0212-1990.
  8929. // * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
  8930. // * ISO2022-JP-3: Adds esc seq for 0201-1976 Kana set, 0213-2000 Planes 1, 2.
  8931. // * ISO2022-JP-2004: Adds 0213-2004 Plane 1.
  8932. //
  8933. // After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.
  8934. //
  8935. // Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
  8936. 'shiftjis': {
  8937. type: '_dbcs',
  8938. table: function() { return __webpack_require__(27014) },
  8939. encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E},
  8940. encodeSkipVals: [{from: 0xED40, to: 0xF940}],
  8941. },
  8942. 'csshiftjis': 'shiftjis',
  8943. 'mskanji': 'shiftjis',
  8944. 'sjis': 'shiftjis',
  8945. 'windows31j': 'shiftjis',
  8946. 'ms31j': 'shiftjis',
  8947. 'xsjis': 'shiftjis',
  8948. 'windows932': 'shiftjis',
  8949. 'ms932': 'shiftjis',
  8950. '932': 'shiftjis',
  8951. 'cp932': 'shiftjis',
  8952. 'eucjp': {
  8953. type: '_dbcs',
  8954. table: function() { return __webpack_require__(31532) },
  8955. encodeAdd: {'\u00a5': 0x5C, '\u203E': 0x7E},
  8956. },
  8957. // TODO: KDDI extension to Shift_JIS
  8958. // TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.
  8959. // TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.
  8960. // == Chinese/GBK ==========================================================
  8961. // http://en.wikipedia.org/wiki/GBK
  8962. // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
  8963. // Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
  8964. 'gb2312': 'cp936',
  8965. 'gb231280': 'cp936',
  8966. 'gb23121980': 'cp936',
  8967. 'csgb2312': 'cp936',
  8968. 'csiso58gb231280': 'cp936',
  8969. 'euccn': 'cp936',
  8970. // Microsoft's CP936 is a subset and approximation of GBK.
  8971. 'windows936': 'cp936',
  8972. 'ms936': 'cp936',
  8973. '936': 'cp936',
  8974. 'cp936': {
  8975. type: '_dbcs',
  8976. table: function() { return __webpack_require__(13336) },
  8977. },
  8978. // GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.
  8979. 'gbk': {
  8980. type: '_dbcs',
  8981. table: function() { return __webpack_require__(13336).concat(__webpack_require__(44346)) },
  8982. },
  8983. 'xgbk': 'gbk',
  8984. 'isoir58': 'gbk',
  8985. // GB18030 is an algorithmic extension of GBK.
  8986. // Main source: https://www.w3.org/TR/encoding/#gbk-encoder
  8987. // http://icu-project.org/docs/papers/gb18030.html
  8988. // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
  8989. // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
  8990. 'gb18030': {
  8991. type: '_dbcs',
  8992. table: function() { return __webpack_require__(13336).concat(__webpack_require__(44346)) },
  8993. gb18030: function() { return __webpack_require__(36258) },
  8994. encodeSkipVals: [0x80],
  8995. encodeAdd: {'€': 0xA2E3},
  8996. },
  8997. 'chinese': 'gb18030',
  8998. // == Korean ===============================================================
  8999. // EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
  9000. 'windows949': 'cp949',
  9001. 'ms949': 'cp949',
  9002. '949': 'cp949',
  9003. 'cp949': {
  9004. type: '_dbcs',
  9005. table: function() { return __webpack_require__(77348) },
  9006. },
  9007. 'cseuckr': 'cp949',
  9008. 'csksc56011987': 'cp949',
  9009. 'euckr': 'cp949',
  9010. 'isoir149': 'cp949',
  9011. 'korean': 'cp949',
  9012. 'ksc56011987': 'cp949',
  9013. 'ksc56011989': 'cp949',
  9014. 'ksc5601': 'cp949',
  9015. // == Big5/Taiwan/Hong Kong ================================================
  9016. // There are lots of tables for Big5 and cp950. Please see the following links for history:
  9017. // http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html
  9018. // Variations, in roughly number of defined chars:
  9019. // * Windows CP 950: Microsoft variant of Big5. Canonical: http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT
  9020. // * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
  9021. // * Big5-2003 (Taiwan standard) almost superset of cp950.
  9022. // * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
  9023. // * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
  9024. // many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
  9025. // Plus, it has 4 combining sequences.
  9026. // Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
  9027. // because big5-hkscs is the only encoding to include astral characters in non-algorithmic way.
  9028. // Implementations are not consistent within browsers; sometimes labeled as just big5.
  9029. // MS Internet Explorer switches from big5 to big5-hkscs when a patch applied.
  9030. // Great discussion & recap of what's going on https://bugzilla.mozilla.org/show_bug.cgi?id=912470#c31
  9031. // In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
  9032. // Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
  9033. // http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
  9034. //
  9035. // Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
  9036. // Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
  9037. 'windows950': 'cp950',
  9038. 'ms950': 'cp950',
  9039. '950': 'cp950',
  9040. 'cp950': {
  9041. type: '_dbcs',
  9042. table: function() { return __webpack_require__(74284) },
  9043. },
  9044. // Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
  9045. 'big5': 'big5hkscs',
  9046. 'big5hkscs': {
  9047. type: '_dbcs',
  9048. table: function() { return __webpack_require__(74284).concat(__webpack_require__(63480)) },
  9049. encodeSkipVals: [0xa2cc],
  9050. },
  9051. 'cnbig5': 'big5hkscs',
  9052. 'csbig5': 'big5hkscs',
  9053. 'xxbig5': 'big5hkscs',
  9054. };
  9055. /***/ }),
  9056. /***/ 46934:
  9057. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  9058. "use strict";
  9059. // Update this array if you add/rename/remove files in this directory.
  9060. // We support Browserify by skipping automatic module discovery and requiring modules directly.
  9061. var modules = [
  9062. __webpack_require__(1025),
  9063. __webpack_require__(91279),
  9064. __webpack_require__(20758),
  9065. __webpack_require__(59068),
  9066. __webpack_require__(20288),
  9067. __webpack_require__(67018),
  9068. __webpack_require__(60688),
  9069. __webpack_require__(55990),
  9070. ];
  9071. // Put all encoding/alias/codec definitions to single object and export it.
  9072. for (var i = 0; i < modules.length; i++) {
  9073. var module = modules[i];
  9074. for (var enc in module)
  9075. if (Object.prototype.hasOwnProperty.call(module, enc))
  9076. exports[enc] = module[enc];
  9077. }
  9078. /***/ }),
  9079. /***/ 1025:
  9080. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  9081. "use strict";
  9082. var Buffer = __webpack_require__(2399).Buffer;
  9083. // Export Node.js internal encodings.
  9084. module.exports = {
  9085. // Encodings
  9086. utf8: { type: "_internal", bomAware: true},
  9087. cesu8: { type: "_internal", bomAware: true},
  9088. unicode11utf8: "utf8",
  9089. ucs2: { type: "_internal", bomAware: true},
  9090. utf16le: "ucs2",
  9091. binary: { type: "_internal" },
  9092. base64: { type: "_internal" },
  9093. hex: { type: "_internal" },
  9094. // Codec.
  9095. _internal: InternalCodec,
  9096. };
  9097. //------------------------------------------------------------------------------
  9098. function InternalCodec(codecOptions, iconv) {
  9099. this.enc = codecOptions.encodingName;
  9100. this.bomAware = codecOptions.bomAware;
  9101. if (this.enc === "base64")
  9102. this.encoder = InternalEncoderBase64;
  9103. else if (this.enc === "cesu8") {
  9104. this.enc = "utf8"; // Use utf8 for decoding.
  9105. this.encoder = InternalEncoderCesu8;
  9106. // Add decoder for versions of Node not supporting CESU-8
  9107. if (Buffer.from('eda0bdedb2a9', 'hex').toString() !== '💩') {
  9108. this.decoder = InternalDecoderCesu8;
  9109. this.defaultCharUnicode = iconv.defaultCharUnicode;
  9110. }
  9111. }
  9112. }
  9113. InternalCodec.prototype.encoder = InternalEncoder;
  9114. InternalCodec.prototype.decoder = InternalDecoder;
  9115. //------------------------------------------------------------------------------
  9116. // We use node.js internal decoder. Its signature is the same as ours.
  9117. var StringDecoder = __webpack_require__(24304).StringDecoder;
  9118. if (!StringDecoder.prototype.end) // Node v0.8 doesn't have this method.
  9119. StringDecoder.prototype.end = function() {};
  9120. function InternalDecoder(options, codec) {
  9121. StringDecoder.call(this, codec.enc);
  9122. }
  9123. InternalDecoder.prototype = StringDecoder.prototype;
  9124. //------------------------------------------------------------------------------
  9125. // Encoder is mostly trivial
  9126. function InternalEncoder(options, codec) {
  9127. this.enc = codec.enc;
  9128. }
  9129. InternalEncoder.prototype.write = function(str) {
  9130. return Buffer.from(str, this.enc);
  9131. }
  9132. InternalEncoder.prototype.end = function() {
  9133. }
  9134. //------------------------------------------------------------------------------
  9135. // Except base64 encoder, which must keep its state.
  9136. function InternalEncoderBase64(options, codec) {
  9137. this.prevStr = '';
  9138. }
  9139. InternalEncoderBase64.prototype.write = function(str) {
  9140. str = this.prevStr + str;
  9141. var completeQuads = str.length - (str.length % 4);
  9142. this.prevStr = str.slice(completeQuads);
  9143. str = str.slice(0, completeQuads);
  9144. return Buffer.from(str, "base64");
  9145. }
  9146. InternalEncoderBase64.prototype.end = function() {
  9147. return Buffer.from(this.prevStr, "base64");
  9148. }
  9149. //------------------------------------------------------------------------------
  9150. // CESU-8 encoder is also special.
  9151. function InternalEncoderCesu8(options, codec) {
  9152. }
  9153. InternalEncoderCesu8.prototype.write = function(str) {
  9154. var buf = Buffer.alloc(str.length * 3), bufIdx = 0;
  9155. for (var i = 0; i < str.length; i++) {
  9156. var charCode = str.charCodeAt(i);
  9157. // Naive implementation, but it works because CESU-8 is especially easy
  9158. // to convert from UTF-16 (which all JS strings are encoded in).
  9159. if (charCode < 0x80)
  9160. buf[bufIdx++] = charCode;
  9161. else if (charCode < 0x800) {
  9162. buf[bufIdx++] = 0xC0 + (charCode >>> 6);
  9163. buf[bufIdx++] = 0x80 + (charCode & 0x3f);
  9164. }
  9165. else { // charCode will always be < 0x10000 in javascript.
  9166. buf[bufIdx++] = 0xE0 + (charCode >>> 12);
  9167. buf[bufIdx++] = 0x80 + ((charCode >>> 6) & 0x3f);
  9168. buf[bufIdx++] = 0x80 + (charCode & 0x3f);
  9169. }
  9170. }
  9171. return buf.slice(0, bufIdx);
  9172. }
  9173. InternalEncoderCesu8.prototype.end = function() {
  9174. }
  9175. //------------------------------------------------------------------------------
  9176. // CESU-8 decoder is not implemented in Node v4.0+
  9177. function InternalDecoderCesu8(options, codec) {
  9178. this.acc = 0;
  9179. this.contBytes = 0;
  9180. this.accBytes = 0;
  9181. this.defaultCharUnicode = codec.defaultCharUnicode;
  9182. }
  9183. InternalDecoderCesu8.prototype.write = function(buf) {
  9184. var acc = this.acc, contBytes = this.contBytes, accBytes = this.accBytes,
  9185. res = '';
  9186. for (var i = 0; i < buf.length; i++) {
  9187. var curByte = buf[i];
  9188. if ((curByte & 0xC0) !== 0x80) { // Leading byte
  9189. if (contBytes > 0) { // Previous code is invalid
  9190. res += this.defaultCharUnicode;
  9191. contBytes = 0;
  9192. }
  9193. if (curByte < 0x80) { // Single-byte code
  9194. res += String.fromCharCode(curByte);
  9195. } else if (curByte < 0xE0) { // Two-byte code
  9196. acc = curByte & 0x1F;
  9197. contBytes = 1; accBytes = 1;
  9198. } else if (curByte < 0xF0) { // Three-byte code
  9199. acc = curByte & 0x0F;
  9200. contBytes = 2; accBytes = 1;
  9201. } else { // Four or more are not supported for CESU-8.
  9202. res += this.defaultCharUnicode;
  9203. }
  9204. } else { // Continuation byte
  9205. if (contBytes > 0) { // We're waiting for it.
  9206. acc = (acc << 6) | (curByte & 0x3f);
  9207. contBytes--; accBytes++;
  9208. if (contBytes === 0) {
  9209. // Check for overlong encoding, but support Modified UTF-8 (encoding NULL as C0 80)
  9210. if (accBytes === 2 && acc < 0x80 && acc > 0)
  9211. res += this.defaultCharUnicode;
  9212. else if (accBytes === 3 && acc < 0x800)
  9213. res += this.defaultCharUnicode;
  9214. else
  9215. // Actually add character.
  9216. res += String.fromCharCode(acc);
  9217. }
  9218. } else { // Unexpected continuation byte
  9219. res += this.defaultCharUnicode;
  9220. }
  9221. }
  9222. }
  9223. this.acc = acc; this.contBytes = contBytes; this.accBytes = accBytes;
  9224. return res;
  9225. }
  9226. InternalDecoderCesu8.prototype.end = function() {
  9227. var res = 0;
  9228. if (this.contBytes > 0)
  9229. res += this.defaultCharUnicode;
  9230. return res;
  9231. }
  9232. /***/ }),
  9233. /***/ 59068:
  9234. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  9235. "use strict";
  9236. var Buffer = __webpack_require__(2399).Buffer;
  9237. // Single-byte codec. Needs a 'chars' string parameter that contains 256 or 128 chars that
  9238. // correspond to encoded bytes (if 128 - then lower half is ASCII).
  9239. exports._sbcs = SBCSCodec;
  9240. function SBCSCodec(codecOptions, iconv) {
  9241. if (!codecOptions)
  9242. throw new Error("SBCS codec is called without the data.")
  9243. // Prepare char buffer for decoding.
  9244. if (!codecOptions.chars || (codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256))
  9245. throw new Error("Encoding '"+codecOptions.type+"' has incorrect 'chars' (must be of len 128 or 256)");
  9246. if (codecOptions.chars.length === 128) {
  9247. var asciiString = "";
  9248. for (var i = 0; i < 128; i++)
  9249. asciiString += String.fromCharCode(i);
  9250. codecOptions.chars = asciiString + codecOptions.chars;
  9251. }
  9252. this.decodeBuf = Buffer.from(codecOptions.chars, 'ucs2');
  9253. // Encoding buffer.
  9254. var encodeBuf = Buffer.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
  9255. for (var i = 0; i < codecOptions.chars.length; i++)
  9256. encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
  9257. this.encodeBuf = encodeBuf;
  9258. }
  9259. SBCSCodec.prototype.encoder = SBCSEncoder;
  9260. SBCSCodec.prototype.decoder = SBCSDecoder;
  9261. function SBCSEncoder(options, codec) {
  9262. this.encodeBuf = codec.encodeBuf;
  9263. }
  9264. SBCSEncoder.prototype.write = function(str) {
  9265. var buf = Buffer.alloc(str.length);
  9266. for (var i = 0; i < str.length; i++)
  9267. buf[i] = this.encodeBuf[str.charCodeAt(i)];
  9268. return buf;
  9269. }
  9270. SBCSEncoder.prototype.end = function() {
  9271. }
  9272. function SBCSDecoder(options, codec) {
  9273. this.decodeBuf = codec.decodeBuf;
  9274. }
  9275. SBCSDecoder.prototype.write = function(buf) {
  9276. // Strings are immutable in JS -> we use ucs2 buffer to speed up computations.
  9277. var decodeBuf = this.decodeBuf;
  9278. var newBuf = Buffer.alloc(buf.length*2);
  9279. var idx1 = 0, idx2 = 0;
  9280. for (var i = 0; i < buf.length; i++) {
  9281. idx1 = buf[i]*2; idx2 = i*2;
  9282. newBuf[idx2] = decodeBuf[idx1];
  9283. newBuf[idx2+1] = decodeBuf[idx1+1];
  9284. }
  9285. return newBuf.toString('ucs2');
  9286. }
  9287. SBCSDecoder.prototype.end = function() {
  9288. }
  9289. /***/ }),
  9290. /***/ 67018:
  9291. /***/ ((module) => {
  9292. "use strict";
  9293. // Generated data for sbcs codec. Don't edit manually. Regenerate using generation/gen-sbcs.js script.
  9294. module.exports = {
  9295. "437": "cp437",
  9296. "737": "cp737",
  9297. "775": "cp775",
  9298. "850": "cp850",
  9299. "852": "cp852",
  9300. "855": "cp855",
  9301. "856": "cp856",
  9302. "857": "cp857",
  9303. "858": "cp858",
  9304. "860": "cp860",
  9305. "861": "cp861",
  9306. "862": "cp862",
  9307. "863": "cp863",
  9308. "864": "cp864",
  9309. "865": "cp865",
  9310. "866": "cp866",
  9311. "869": "cp869",
  9312. "874": "windows874",
  9313. "922": "cp922",
  9314. "1046": "cp1046",
  9315. "1124": "cp1124",
  9316. "1125": "cp1125",
  9317. "1129": "cp1129",
  9318. "1133": "cp1133",
  9319. "1161": "cp1161",
  9320. "1162": "cp1162",
  9321. "1163": "cp1163",
  9322. "1250": "windows1250",
  9323. "1251": "windows1251",
  9324. "1252": "windows1252",
  9325. "1253": "windows1253",
  9326. "1254": "windows1254",
  9327. "1255": "windows1255",
  9328. "1256": "windows1256",
  9329. "1257": "windows1257",
  9330. "1258": "windows1258",
  9331. "28591": "iso88591",
  9332. "28592": "iso88592",
  9333. "28593": "iso88593",
  9334. "28594": "iso88594",
  9335. "28595": "iso88595",
  9336. "28596": "iso88596",
  9337. "28597": "iso88597",
  9338. "28598": "iso88598",
  9339. "28599": "iso88599",
  9340. "28600": "iso885910",
  9341. "28601": "iso885911",
  9342. "28603": "iso885913",
  9343. "28604": "iso885914",
  9344. "28605": "iso885915",
  9345. "28606": "iso885916",
  9346. "windows874": {
  9347. "type": "_sbcs",
  9348. "chars": "€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
  9349. },
  9350. "win874": "windows874",
  9351. "cp874": "windows874",
  9352. "windows1250": {
  9353. "type": "_sbcs",
  9354. "chars": "€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
  9355. },
  9356. "win1250": "windows1250",
  9357. "cp1250": "windows1250",
  9358. "windows1251": {
  9359. "type": "_sbcs",
  9360. "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
  9361. },
  9362. "win1251": "windows1251",
  9363. "cp1251": "windows1251",
  9364. "windows1252": {
  9365. "type": "_sbcs",
  9366. "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
  9367. },
  9368. "win1252": "windows1252",
  9369. "cp1252": "windows1252",
  9370. "windows1253": {
  9371. "type": "_sbcs",
  9372. "chars": "€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
  9373. },
  9374. "win1253": "windows1253",
  9375. "cp1253": "windows1253",
  9376. "windows1254": {
  9377. "type": "_sbcs",
  9378. "chars": "€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
  9379. },
  9380. "win1254": "windows1254",
  9381. "cp1254": "windows1254",
  9382. "windows1255": {
  9383. "type": "_sbcs",
  9384. "chars": "€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"
  9385. },
  9386. "win1255": "windows1255",
  9387. "cp1255": "windows1255",
  9388. "windows1256": {
  9389. "type": "_sbcs",
  9390. "chars": "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے"
  9391. },
  9392. "win1256": "windows1256",
  9393. "cp1256": "windows1256",
  9394. "windows1257": {
  9395. "type": "_sbcs",
  9396. "chars": "€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙"
  9397. },
  9398. "win1257": "windows1257",
  9399. "cp1257": "windows1257",
  9400. "windows1258": {
  9401. "type": "_sbcs",
  9402. "chars": "€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
  9403. },
  9404. "win1258": "windows1258",
  9405. "cp1258": "windows1258",
  9406. "iso88591": {
  9407. "type": "_sbcs",
  9408. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
  9409. },
  9410. "cp28591": "iso88591",
  9411. "iso88592": {
  9412. "type": "_sbcs",
  9413. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙"
  9414. },
  9415. "cp28592": "iso88592",
  9416. "iso88593": {
  9417. "type": "_sbcs",
  9418. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"
  9419. },
  9420. "cp28593": "iso88593",
  9421. "iso88594": {
  9422. "type": "_sbcs",
  9423. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙"
  9424. },
  9425. "cp28594": "iso88594",
  9426. "iso88595": {
  9427. "type": "_sbcs",
  9428. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ"
  9429. },
  9430. "cp28595": "iso88595",
  9431. "iso88596": {
  9432. "type": "_sbcs",
  9433. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������"
  9434. },
  9435. "cp28596": "iso88596",
  9436. "iso88597": {
  9437. "type": "_sbcs",
  9438. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�"
  9439. },
  9440. "cp28597": "iso88597",
  9441. "iso88598": {
  9442. "type": "_sbcs",
  9443. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�"
  9444. },
  9445. "cp28598": "iso88598",
  9446. "iso88599": {
  9447. "type": "_sbcs",
  9448. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ"
  9449. },
  9450. "cp28599": "iso88599",
  9451. "iso885910": {
  9452. "type": "_sbcs",
  9453. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ"
  9454. },
  9455. "cp28600": "iso885910",
  9456. "iso885911": {
  9457. "type": "_sbcs",
  9458. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
  9459. },
  9460. "cp28601": "iso885911",
  9461. "iso885913": {
  9462. "type": "_sbcs",
  9463. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’"
  9464. },
  9465. "cp28603": "iso885913",
  9466. "iso885914": {
  9467. "type": "_sbcs",
  9468. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ"
  9469. },
  9470. "cp28604": "iso885914",
  9471. "iso885915": {
  9472. "type": "_sbcs",
  9473. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
  9474. },
  9475. "cp28605": "iso885915",
  9476. "iso885916": {
  9477. "type": "_sbcs",
  9478. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ"
  9479. },
  9480. "cp28606": "iso885916",
  9481. "cp437": {
  9482. "type": "_sbcs",
  9483. "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
  9484. },
  9485. "ibm437": "cp437",
  9486. "csibm437": "cp437",
  9487. "cp737": {
  9488. "type": "_sbcs",
  9489. "chars": "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ "
  9490. },
  9491. "ibm737": "cp737",
  9492. "csibm737": "cp737",
  9493. "cp775": {
  9494. "type": "_sbcs",
  9495. "chars": "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■ "
  9496. },
  9497. "ibm775": "cp775",
  9498. "csibm775": "cp775",
  9499. "cp850": {
  9500. "type": "_sbcs",
  9501. "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "
  9502. },
  9503. "ibm850": "cp850",
  9504. "csibm850": "cp850",
  9505. "cp852": {
  9506. "type": "_sbcs",
  9507. "chars": "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ "
  9508. },
  9509. "ibm852": "cp852",
  9510. "csibm852": "cp852",
  9511. "cp855": {
  9512. "type": "_sbcs",
  9513. "chars": "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■ "
  9514. },
  9515. "ibm855": "cp855",
  9516. "csibm855": "cp855",
  9517. "cp856": {
  9518. "type": "_sbcs",
  9519. "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■ "
  9520. },
  9521. "ibm856": "cp856",
  9522. "csibm856": "cp856",
  9523. "cp857": {
  9524. "type": "_sbcs",
  9525. "chars": "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ "
  9526. },
  9527. "ibm857": "cp857",
  9528. "csibm857": "cp857",
  9529. "cp858": {
  9530. "type": "_sbcs",
  9531. "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ "
  9532. },
  9533. "ibm858": "cp858",
  9534. "csibm858": "cp858",
  9535. "cp860": {
  9536. "type": "_sbcs",
  9537. "chars": "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
  9538. },
  9539. "ibm860": "cp860",
  9540. "csibm860": "cp860",
  9541. "cp861": {
  9542. "type": "_sbcs",
  9543. "chars": "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
  9544. },
  9545. "ibm861": "cp861",
  9546. "csibm861": "cp861",
  9547. "cp862": {
  9548. "type": "_sbcs",
  9549. "chars": "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
  9550. },
  9551. "ibm862": "cp862",
  9552. "csibm862": "cp862",
  9553. "cp863": {
  9554. "type": "_sbcs",
  9555. "chars": "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
  9556. },
  9557. "ibm863": "cp863",
  9558. "csibm863": "cp863",
  9559. "cp864": {
  9560. "type": "_sbcs",
  9561. "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ� ­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�"
  9562. },
  9563. "ibm864": "cp864",
  9564. "csibm864": "cp864",
  9565. "cp865": {
  9566. "type": "_sbcs",
  9567. "chars": "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
  9568. },
  9569. "ibm865": "cp865",
  9570. "csibm865": "cp865",
  9571. "cp866": {
  9572. "type": "_sbcs",
  9573. "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ "
  9574. },
  9575. "ibm866": "cp866",
  9576. "csibm866": "cp866",
  9577. "cp869": {
  9578. "type": "_sbcs",
  9579. "chars": "������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■ "
  9580. },
  9581. "ibm869": "cp869",
  9582. "csibm869": "cp869",
  9583. "cp922": {
  9584. "type": "_sbcs",
  9585. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"
  9586. },
  9587. "ibm922": "cp922",
  9588. "csibm922": "cp922",
  9589. "cp1046": {
  9590. "type": "_sbcs",
  9591. "chars": "ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ ¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�"
  9592. },
  9593. "ibm1046": "cp1046",
  9594. "csibm1046": "cp1046",
  9595. "cp1124": {
  9596. "type": "_sbcs",
  9597. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ"
  9598. },
  9599. "ibm1124": "cp1124",
  9600. "csibm1124": "cp1124",
  9601. "cp1125": {
  9602. "type": "_sbcs",
  9603. "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■ "
  9604. },
  9605. "ibm1125": "cp1125",
  9606. "csibm1125": "cp1125",
  9607. "cp1129": {
  9608. "type": "_sbcs",
  9609. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
  9610. },
  9611. "ibm1129": "cp1129",
  9612. "csibm1129": "cp1129",
  9613. "cp1133": {
  9614. "type": "_sbcs",
  9615. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�"
  9616. },
  9617. "ibm1133": "cp1133",
  9618. "csibm1133": "cp1133",
  9619. "cp1161": {
  9620. "type": "_sbcs",
  9621. "chars": "��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦ "
  9622. },
  9623. "ibm1161": "cp1161",
  9624. "csibm1161": "cp1161",
  9625. "cp1162": {
  9626. "type": "_sbcs",
  9627. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
  9628. },
  9629. "ibm1162": "cp1162",
  9630. "csibm1162": "cp1162",
  9631. "cp1163": {
  9632. "type": "_sbcs",
  9633. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ"
  9634. },
  9635. "ibm1163": "cp1163",
  9636. "csibm1163": "cp1163",
  9637. "maccroatian": {
  9638. "type": "_sbcs",
  9639. "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ"
  9640. },
  9641. "maccyrillic": {
  9642. "type": "_sbcs",
  9643. "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
  9644. },
  9645. "macgreek": {
  9646. "type": "_sbcs",
  9647. "chars": "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�"
  9648. },
  9649. "maciceland": {
  9650. "type": "_sbcs",
  9651. "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
  9652. },
  9653. "macroman": {
  9654. "type": "_sbcs",
  9655. "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
  9656. },
  9657. "macromania": {
  9658. "type": "_sbcs",
  9659. "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
  9660. },
  9661. "macthai": {
  9662. "type": "_sbcs",
  9663. "chars": "«»…“”�•‘’� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����"
  9664. },
  9665. "macturkish": {
  9666. "type": "_sbcs",
  9667. "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ"
  9668. },
  9669. "macukraine": {
  9670. "type": "_sbcs",
  9671. "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤"
  9672. },
  9673. "koi8r": {
  9674. "type": "_sbcs",
  9675. "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
  9676. },
  9677. "koi8u": {
  9678. "type": "_sbcs",
  9679. "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
  9680. },
  9681. "koi8ru": {
  9682. "type": "_sbcs",
  9683. "chars": "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
  9684. },
  9685. "koi8t": {
  9686. "type": "_sbcs",
  9687. "chars": "қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ"
  9688. },
  9689. "armscii8": {
  9690. "type": "_sbcs",
  9691. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ �և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�"
  9692. },
  9693. "rk1048": {
  9694. "type": "_sbcs",
  9695. "chars": "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
  9696. },
  9697. "tcvn": {
  9698. "type": "_sbcs",
  9699. "chars": "\u0000ÚỤ\u0003ỪỬỮ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010ỨỰỲỶỸÝỴ\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ"
  9700. },
  9701. "georgianacademy": {
  9702. "type": "_sbcs",
  9703. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
  9704. },
  9705. "georgianps": {
  9706. "type": "_sbcs",
  9707. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
  9708. },
  9709. "pt154": {
  9710. "type": "_sbcs",
  9711. "chars": "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя"
  9712. },
  9713. "viscii": {
  9714. "type": "_sbcs",
  9715. "chars": "\u0000\u0001Ẳ\u0003\u0004ẴẪ\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013Ỷ\u0015\u0016\u0017\u0018Ỹ\u001a\u001b\u001c\u001dỴ\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ"
  9716. },
  9717. "iso646cn": {
  9718. "type": "_sbcs",
  9719. "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"
  9720. },
  9721. "iso646jp": {
  9722. "type": "_sbcs",
  9723. "chars": "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}‾��������������������������������������������������������������������������������������������������������������������������������"
  9724. },
  9725. "hproman8": {
  9726. "type": "_sbcs",
  9727. "chars": "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±�"
  9728. },
  9729. "macintosh": {
  9730. "type": "_sbcs",
  9731. "chars": "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ"
  9732. },
  9733. "ascii": {
  9734. "type": "_sbcs",
  9735. "chars": "��������������������������������������������������������������������������������������������������������������������������������"
  9736. },
  9737. "tis620": {
  9738. "type": "_sbcs",
  9739. "chars": "���������������������������������กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����"
  9740. }
  9741. }
  9742. /***/ }),
  9743. /***/ 20288:
  9744. /***/ ((module) => {
  9745. "use strict";
  9746. // Manually added data to be used by sbcs codec in addition to generated one.
  9747. module.exports = {
  9748. // Not supported by iconv, not sure why.
  9749. "10029": "maccenteuro",
  9750. "maccenteuro": {
  9751. "type": "_sbcs",
  9752. "chars": "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ"
  9753. },
  9754. "808": "cp808",
  9755. "ibm808": "cp808",
  9756. "cp808": {
  9757. "type": "_sbcs",
  9758. "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■ "
  9759. },
  9760. "mik": {
  9761. "type": "_sbcs",
  9762. "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
  9763. },
  9764. // Aliases of generated encodings.
  9765. "ascii8bit": "ascii",
  9766. "usascii": "ascii",
  9767. "ansix34": "ascii",
  9768. "ansix341968": "ascii",
  9769. "ansix341986": "ascii",
  9770. "csascii": "ascii",
  9771. "cp367": "ascii",
  9772. "ibm367": "ascii",
  9773. "isoir6": "ascii",
  9774. "iso646us": "ascii",
  9775. "iso646irv": "ascii",
  9776. "us": "ascii",
  9777. "latin1": "iso88591",
  9778. "latin2": "iso88592",
  9779. "latin3": "iso88593",
  9780. "latin4": "iso88594",
  9781. "latin5": "iso88599",
  9782. "latin6": "iso885910",
  9783. "latin7": "iso885913",
  9784. "latin8": "iso885914",
  9785. "latin9": "iso885915",
  9786. "latin10": "iso885916",
  9787. "csisolatin1": "iso88591",
  9788. "csisolatin2": "iso88592",
  9789. "csisolatin3": "iso88593",
  9790. "csisolatin4": "iso88594",
  9791. "csisolatincyrillic": "iso88595",
  9792. "csisolatinarabic": "iso88596",
  9793. "csisolatingreek" : "iso88597",
  9794. "csisolatinhebrew": "iso88598",
  9795. "csisolatin5": "iso88599",
  9796. "csisolatin6": "iso885910",
  9797. "l1": "iso88591",
  9798. "l2": "iso88592",
  9799. "l3": "iso88593",
  9800. "l4": "iso88594",
  9801. "l5": "iso88599",
  9802. "l6": "iso885910",
  9803. "l7": "iso885913",
  9804. "l8": "iso885914",
  9805. "l9": "iso885915",
  9806. "l10": "iso885916",
  9807. "isoir14": "iso646jp",
  9808. "isoir57": "iso646cn",
  9809. "isoir100": "iso88591",
  9810. "isoir101": "iso88592",
  9811. "isoir109": "iso88593",
  9812. "isoir110": "iso88594",
  9813. "isoir144": "iso88595",
  9814. "isoir127": "iso88596",
  9815. "isoir126": "iso88597",
  9816. "isoir138": "iso88598",
  9817. "isoir148": "iso88599",
  9818. "isoir157": "iso885910",
  9819. "isoir166": "tis620",
  9820. "isoir179": "iso885913",
  9821. "isoir199": "iso885914",
  9822. "isoir203": "iso885915",
  9823. "isoir226": "iso885916",
  9824. "cp819": "iso88591",
  9825. "ibm819": "iso88591",
  9826. "cyrillic": "iso88595",
  9827. "arabic": "iso88596",
  9828. "arabic8": "iso88596",
  9829. "ecma114": "iso88596",
  9830. "asmo708": "iso88596",
  9831. "greek" : "iso88597",
  9832. "greek8" : "iso88597",
  9833. "ecma118" : "iso88597",
  9834. "elot928" : "iso88597",
  9835. "hebrew": "iso88598",
  9836. "hebrew8": "iso88598",
  9837. "turkish": "iso88599",
  9838. "turkish8": "iso88599",
  9839. "thai": "iso885911",
  9840. "thai8": "iso885911",
  9841. "celtic": "iso885914",
  9842. "celtic8": "iso885914",
  9843. "isoceltic": "iso885914",
  9844. "tis6200": "tis620",
  9845. "tis62025291": "tis620",
  9846. "tis62025330": "tis620",
  9847. "10000": "macroman",
  9848. "10006": "macgreek",
  9849. "10007": "maccyrillic",
  9850. "10079": "maciceland",
  9851. "10081": "macturkish",
  9852. "cspc8codepage437": "cp437",
  9853. "cspc775baltic": "cp775",
  9854. "cspc850multilingual": "cp850",
  9855. "cspcp852": "cp852",
  9856. "cspc862latinhebrew": "cp862",
  9857. "cpgr": "cp869",
  9858. "msee": "cp1250",
  9859. "mscyrl": "cp1251",
  9860. "msansi": "cp1252",
  9861. "msgreek": "cp1253",
  9862. "msturk": "cp1254",
  9863. "mshebr": "cp1255",
  9864. "msarab": "cp1256",
  9865. "winbaltrim": "cp1257",
  9866. "cp20866": "koi8r",
  9867. "20866": "koi8r",
  9868. "ibm878": "koi8r",
  9869. "cskoi8r": "koi8r",
  9870. "cp21866": "koi8u",
  9871. "21866": "koi8u",
  9872. "ibm1168": "koi8u",
  9873. "strk10482002": "rk1048",
  9874. "tcvn5712": "tcvn",
  9875. "tcvn57121": "tcvn",
  9876. "gb198880": "iso646cn",
  9877. "cn": "iso646cn",
  9878. "csiso14jisc6220ro": "iso646jp",
  9879. "jisc62201969ro": "iso646jp",
  9880. "jp": "iso646jp",
  9881. "cshproman8": "hproman8",
  9882. "r8": "hproman8",
  9883. "roman8": "hproman8",
  9884. "xroman8": "hproman8",
  9885. "ibm1051": "hproman8",
  9886. "mac": "macintosh",
  9887. "csmacintosh": "macintosh",
  9888. };
  9889. /***/ }),
  9890. /***/ 91279:
  9891. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  9892. "use strict";
  9893. var Buffer = __webpack_require__(2399).Buffer;
  9894. // Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js
  9895. // == UTF16-BE codec. ==========================================================
  9896. exports.utf16be = Utf16BECodec;
  9897. function Utf16BECodec() {
  9898. }
  9899. Utf16BECodec.prototype.encoder = Utf16BEEncoder;
  9900. Utf16BECodec.prototype.decoder = Utf16BEDecoder;
  9901. Utf16BECodec.prototype.bomAware = true;
  9902. // -- Encoding
  9903. function Utf16BEEncoder() {
  9904. }
  9905. Utf16BEEncoder.prototype.write = function(str) {
  9906. var buf = Buffer.from(str, 'ucs2');
  9907. for (var i = 0; i < buf.length; i += 2) {
  9908. var tmp = buf[i]; buf[i] = buf[i+1]; buf[i+1] = tmp;
  9909. }
  9910. return buf;
  9911. }
  9912. Utf16BEEncoder.prototype.end = function() {
  9913. }
  9914. // -- Decoding
  9915. function Utf16BEDecoder() {
  9916. this.overflowByte = -1;
  9917. }
  9918. Utf16BEDecoder.prototype.write = function(buf) {
  9919. if (buf.length == 0)
  9920. return '';
  9921. var buf2 = Buffer.alloc(buf.length + 1),
  9922. i = 0, j = 0;
  9923. if (this.overflowByte !== -1) {
  9924. buf2[0] = buf[0];
  9925. buf2[1] = this.overflowByte;
  9926. i = 1; j = 2;
  9927. }
  9928. for (; i < buf.length-1; i += 2, j+= 2) {
  9929. buf2[j] = buf[i+1];
  9930. buf2[j+1] = buf[i];
  9931. }
  9932. this.overflowByte = (i == buf.length-1) ? buf[buf.length-1] : -1;
  9933. return buf2.slice(0, j).toString('ucs2');
  9934. }
  9935. Utf16BEDecoder.prototype.end = function() {
  9936. }
  9937. // == UTF-16 codec =============================================================
  9938. // Decoder chooses automatically from UTF-16LE and UTF-16BE using BOM and space-based heuristic.
  9939. // Defaults to UTF-16LE, as it's prevalent and default in Node.
  9940. // http://en.wikipedia.org/wiki/UTF-16 and http://encoding.spec.whatwg.org/#utf-16le
  9941. // Decoder default can be changed: iconv.decode(buf, 'utf16', {defaultEncoding: 'utf-16be'});
  9942. // Encoder uses UTF-16LE and prepends BOM (which can be overridden with addBOM: false).
  9943. exports.utf16 = Utf16Codec;
  9944. function Utf16Codec(codecOptions, iconv) {
  9945. this.iconv = iconv;
  9946. }
  9947. Utf16Codec.prototype.encoder = Utf16Encoder;
  9948. Utf16Codec.prototype.decoder = Utf16Decoder;
  9949. // -- Encoding (pass-through)
  9950. function Utf16Encoder(options, codec) {
  9951. options = options || {};
  9952. if (options.addBOM === undefined)
  9953. options.addBOM = true;
  9954. this.encoder = codec.iconv.getEncoder('utf-16le', options);
  9955. }
  9956. Utf16Encoder.prototype.write = function(str) {
  9957. return this.encoder.write(str);
  9958. }
  9959. Utf16Encoder.prototype.end = function() {
  9960. return this.encoder.end();
  9961. }
  9962. // -- Decoding
  9963. function Utf16Decoder(options, codec) {
  9964. this.decoder = null;
  9965. this.initialBytes = [];
  9966. this.initialBytesLen = 0;
  9967. this.options = options || {};
  9968. this.iconv = codec.iconv;
  9969. }
  9970. Utf16Decoder.prototype.write = function(buf) {
  9971. if (!this.decoder) {
  9972. // Codec is not chosen yet. Accumulate initial bytes.
  9973. this.initialBytes.push(buf);
  9974. this.initialBytesLen += buf.length;
  9975. if (this.initialBytesLen < 16) // We need more bytes to use space heuristic (see below)
  9976. return '';
  9977. // We have enough bytes -> detect endianness.
  9978. var buf = Buffer.concat(this.initialBytes),
  9979. encoding = detectEncoding(buf, this.options.defaultEncoding);
  9980. this.decoder = this.iconv.getDecoder(encoding, this.options);
  9981. this.initialBytes.length = this.initialBytesLen = 0;
  9982. }
  9983. return this.decoder.write(buf);
  9984. }
  9985. Utf16Decoder.prototype.end = function() {
  9986. if (!this.decoder) {
  9987. var buf = Buffer.concat(this.initialBytes),
  9988. encoding = detectEncoding(buf, this.options.defaultEncoding);
  9989. this.decoder = this.iconv.getDecoder(encoding, this.options);
  9990. var res = this.decoder.write(buf),
  9991. trail = this.decoder.end();
  9992. return trail ? (res + trail) : res;
  9993. }
  9994. return this.decoder.end();
  9995. }
  9996. function detectEncoding(buf, defaultEncoding) {
  9997. var enc = defaultEncoding || 'utf-16le';
  9998. if (buf.length >= 2) {
  9999. // Check BOM.
  10000. if (buf[0] == 0xFE && buf[1] == 0xFF) // UTF-16BE BOM
  10001. enc = 'utf-16be';
  10002. else if (buf[0] == 0xFF && buf[1] == 0xFE) // UTF-16LE BOM
  10003. enc = 'utf-16le';
  10004. else {
  10005. // No BOM found. Try to deduce encoding from initial content.
  10006. // Most of the time, the content has ASCII chars (U+00**), but the opposite (U+**00) is uncommon.
  10007. // So, we count ASCII as if it was LE or BE, and decide from that.
  10008. var asciiCharsLE = 0, asciiCharsBE = 0, // Counts of chars in both positions
  10009. _len = Math.min(buf.length - (buf.length % 2), 64); // Len is always even.
  10010. for (var i = 0; i < _len; i += 2) {
  10011. if (buf[i] === 0 && buf[i+1] !== 0) asciiCharsBE++;
  10012. if (buf[i] !== 0 && buf[i+1] === 0) asciiCharsLE++;
  10013. }
  10014. if (asciiCharsBE > asciiCharsLE)
  10015. enc = 'utf-16be';
  10016. else if (asciiCharsBE < asciiCharsLE)
  10017. enc = 'utf-16le';
  10018. }
  10019. }
  10020. return enc;
  10021. }
  10022. /***/ }),
  10023. /***/ 20758:
  10024. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  10025. "use strict";
  10026. var Buffer = __webpack_require__(2399).Buffer;
  10027. // UTF-7 codec, according to https://tools.ietf.org/html/rfc2152
  10028. // See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3
  10029. exports.utf7 = Utf7Codec;
  10030. exports.unicode11utf7 = 'utf7'; // Alias UNICODE-1-1-UTF-7
  10031. function Utf7Codec(codecOptions, iconv) {
  10032. this.iconv = iconv;
  10033. };
  10034. Utf7Codec.prototype.encoder = Utf7Encoder;
  10035. Utf7Codec.prototype.decoder = Utf7Decoder;
  10036. Utf7Codec.prototype.bomAware = true;
  10037. // -- Encoding
  10038. var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;
  10039. function Utf7Encoder(options, codec) {
  10040. this.iconv = codec.iconv;
  10041. }
  10042. Utf7Encoder.prototype.write = function(str) {
  10043. // Naive implementation.
  10044. // Non-direct chars are encoded as "+<base64>-"; single "+" char is encoded as "+-".
  10045. return Buffer.from(str.replace(nonDirectChars, function(chunk) {
  10046. return "+" + (chunk === '+' ? '' :
  10047. this.iconv.encode(chunk, 'utf16-be').toString('base64').replace(/=+$/, ''))
  10048. + "-";
  10049. }.bind(this)));
  10050. }
  10051. Utf7Encoder.prototype.end = function() {
  10052. }
  10053. // -- Decoding
  10054. function Utf7Decoder(options, codec) {
  10055. this.iconv = codec.iconv;
  10056. this.inBase64 = false;
  10057. this.base64Accum = '';
  10058. }
  10059. var base64Regex = /[A-Za-z0-9\/+]/;
  10060. var base64Chars = [];
  10061. for (var i = 0; i < 256; i++)
  10062. base64Chars[i] = base64Regex.test(String.fromCharCode(i));
  10063. var plusChar = '+'.charCodeAt(0),
  10064. minusChar = '-'.charCodeAt(0),
  10065. andChar = '&'.charCodeAt(0);
  10066. Utf7Decoder.prototype.write = function(buf) {
  10067. var res = "", lastI = 0,
  10068. inBase64 = this.inBase64,
  10069. base64Accum = this.base64Accum;
  10070. // The decoder is more involved as we must handle chunks in stream.
  10071. for (var i = 0; i < buf.length; i++) {
  10072. if (!inBase64) { // We're in direct mode.
  10073. // Write direct chars until '+'
  10074. if (buf[i] == plusChar) {
  10075. res += this.iconv.decode(buf.slice(lastI, i), "ascii"); // Write direct chars.
  10076. lastI = i+1;
  10077. inBase64 = true;
  10078. }
  10079. } else { // We decode base64.
  10080. if (!base64Chars[buf[i]]) { // Base64 ended.
  10081. if (i == lastI && buf[i] == minusChar) {// "+-" -> "+"
  10082. res += "+";
  10083. } else {
  10084. var b64str = base64Accum + buf.slice(lastI, i).toString();
  10085. res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
  10086. }
  10087. if (buf[i] != minusChar) // Minus is absorbed after base64.
  10088. i--;
  10089. lastI = i+1;
  10090. inBase64 = false;
  10091. base64Accum = '';
  10092. }
  10093. }
  10094. }
  10095. if (!inBase64) {
  10096. res += this.iconv.decode(buf.slice(lastI), "ascii"); // Write direct chars.
  10097. } else {
  10098. var b64str = base64Accum + buf.slice(lastI).toString();
  10099. var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
  10100. base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.
  10101. b64str = b64str.slice(0, canBeDecoded);
  10102. res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
  10103. }
  10104. this.inBase64 = inBase64;
  10105. this.base64Accum = base64Accum;
  10106. return res;
  10107. }
  10108. Utf7Decoder.prototype.end = function() {
  10109. var res = "";
  10110. if (this.inBase64 && this.base64Accum.length > 0)
  10111. res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be");
  10112. this.inBase64 = false;
  10113. this.base64Accum = '';
  10114. return res;
  10115. }
  10116. // UTF-7-IMAP codec.
  10117. // RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)
  10118. // Differences:
  10119. // * Base64 part is started by "&" instead of "+"
  10120. // * Direct characters are 0x20-0x7E, except "&" (0x26)
  10121. // * In Base64, "," is used instead of "/"
  10122. // * Base64 must not be used to represent direct characters.
  10123. // * No implicit shift back from Base64 (should always end with '-')
  10124. // * String must end in non-shifted position.
  10125. // * "-&" while in base64 is not allowed.
  10126. exports.utf7imap = Utf7IMAPCodec;
  10127. function Utf7IMAPCodec(codecOptions, iconv) {
  10128. this.iconv = iconv;
  10129. };
  10130. Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder;
  10131. Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder;
  10132. Utf7IMAPCodec.prototype.bomAware = true;
  10133. // -- Encoding
  10134. function Utf7IMAPEncoder(options, codec) {
  10135. this.iconv = codec.iconv;
  10136. this.inBase64 = false;
  10137. this.base64Accum = Buffer.alloc(6);
  10138. this.base64AccumIdx = 0;
  10139. }
  10140. Utf7IMAPEncoder.prototype.write = function(str) {
  10141. var inBase64 = this.inBase64,
  10142. base64Accum = this.base64Accum,
  10143. base64AccumIdx = this.base64AccumIdx,
  10144. buf = Buffer.alloc(str.length*5 + 10), bufIdx = 0;
  10145. for (var i = 0; i < str.length; i++) {
  10146. var uChar = str.charCodeAt(i);
  10147. if (0x20 <= uChar && uChar <= 0x7E) { // Direct character or '&'.
  10148. if (inBase64) {
  10149. if (base64AccumIdx > 0) {
  10150. bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx);
  10151. base64AccumIdx = 0;
  10152. }
  10153. buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.
  10154. inBase64 = false;
  10155. }
  10156. if (!inBase64) {
  10157. buf[bufIdx++] = uChar; // Write direct character
  10158. if (uChar === andChar) // Ampersand -> '&-'
  10159. buf[bufIdx++] = minusChar;
  10160. }
  10161. } else { // Non-direct character
  10162. if (!inBase64) {
  10163. buf[bufIdx++] = andChar; // Write '&', then go to base64 mode.
  10164. inBase64 = true;
  10165. }
  10166. if (inBase64) {
  10167. base64Accum[base64AccumIdx++] = uChar >> 8;
  10168. base64Accum[base64AccumIdx++] = uChar & 0xFF;
  10169. if (base64AccumIdx == base64Accum.length) {
  10170. bufIdx += buf.write(base64Accum.toString('base64').replace(/\//g, ','), bufIdx);
  10171. base64AccumIdx = 0;
  10172. }
  10173. }
  10174. }
  10175. }
  10176. this.inBase64 = inBase64;
  10177. this.base64AccumIdx = base64AccumIdx;
  10178. return buf.slice(0, bufIdx);
  10179. }
  10180. Utf7IMAPEncoder.prototype.end = function() {
  10181. var buf = Buffer.alloc(10), bufIdx = 0;
  10182. if (this.inBase64) {
  10183. if (this.base64AccumIdx > 0) {
  10184. bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString('base64').replace(/\//g, ',').replace(/=+$/, ''), bufIdx);
  10185. this.base64AccumIdx = 0;
  10186. }
  10187. buf[bufIdx++] = minusChar; // Write '-', then go to direct mode.
  10188. this.inBase64 = false;
  10189. }
  10190. return buf.slice(0, bufIdx);
  10191. }
  10192. // -- Decoding
  10193. function Utf7IMAPDecoder(options, codec) {
  10194. this.iconv = codec.iconv;
  10195. this.inBase64 = false;
  10196. this.base64Accum = '';
  10197. }
  10198. var base64IMAPChars = base64Chars.slice();
  10199. base64IMAPChars[','.charCodeAt(0)] = true;
  10200. Utf7IMAPDecoder.prototype.write = function(buf) {
  10201. var res = "", lastI = 0,
  10202. inBase64 = this.inBase64,
  10203. base64Accum = this.base64Accum;
  10204. // The decoder is more involved as we must handle chunks in stream.
  10205. // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).
  10206. for (var i = 0; i < buf.length; i++) {
  10207. if (!inBase64) { // We're in direct mode.
  10208. // Write direct chars until '&'
  10209. if (buf[i] == andChar) {
  10210. res += this.iconv.decode(buf.slice(lastI, i), "ascii"); // Write direct chars.
  10211. lastI = i+1;
  10212. inBase64 = true;
  10213. }
  10214. } else { // We decode base64.
  10215. if (!base64IMAPChars[buf[i]]) { // Base64 ended.
  10216. if (i == lastI && buf[i] == minusChar) { // "&-" -> "&"
  10217. res += "&";
  10218. } else {
  10219. var b64str = base64Accum + buf.slice(lastI, i).toString().replace(/,/g, '/');
  10220. res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
  10221. }
  10222. if (buf[i] != minusChar) // Minus may be absorbed after base64.
  10223. i--;
  10224. lastI = i+1;
  10225. inBase64 = false;
  10226. base64Accum = '';
  10227. }
  10228. }
  10229. }
  10230. if (!inBase64) {
  10231. res += this.iconv.decode(buf.slice(lastI), "ascii"); // Write direct chars.
  10232. } else {
  10233. var b64str = base64Accum + buf.slice(lastI).toString().replace(/,/g, '/');
  10234. var canBeDecoded = b64str.length - (b64str.length % 8); // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
  10235. base64Accum = b64str.slice(canBeDecoded); // The rest will be decoded in future.
  10236. b64str = b64str.slice(0, canBeDecoded);
  10237. res += this.iconv.decode(Buffer.from(b64str, 'base64'), "utf16-be");
  10238. }
  10239. this.inBase64 = inBase64;
  10240. this.base64Accum = base64Accum;
  10241. return res;
  10242. }
  10243. Utf7IMAPDecoder.prototype.end = function() {
  10244. var res = "";
  10245. if (this.inBase64 && this.base64Accum.length > 0)
  10246. res = this.iconv.decode(Buffer.from(this.base64Accum, 'base64'), "utf16-be");
  10247. this.inBase64 = false;
  10248. this.base64Accum = '';
  10249. return res;
  10250. }
  10251. /***/ }),
  10252. /***/ 65395:
  10253. /***/ ((__unused_webpack_module, exports) => {
  10254. "use strict";
  10255. var BOMChar = '\uFEFF';
  10256. exports.PrependBOM = PrependBOMWrapper
  10257. function PrependBOMWrapper(encoder, options) {
  10258. this.encoder = encoder;
  10259. this.addBOM = true;
  10260. }
  10261. PrependBOMWrapper.prototype.write = function(str) {
  10262. if (this.addBOM) {
  10263. str = BOMChar + str;
  10264. this.addBOM = false;
  10265. }
  10266. return this.encoder.write(str);
  10267. }
  10268. PrependBOMWrapper.prototype.end = function() {
  10269. return this.encoder.end();
  10270. }
  10271. //------------------------------------------------------------------------------
  10272. exports.StripBOM = StripBOMWrapper;
  10273. function StripBOMWrapper(decoder, options) {
  10274. this.decoder = decoder;
  10275. this.pass = false;
  10276. this.options = options || {};
  10277. }
  10278. StripBOMWrapper.prototype.write = function(buf) {
  10279. var res = this.decoder.write(buf);
  10280. if (this.pass || !res)
  10281. return res;
  10282. if (res[0] === BOMChar) {
  10283. res = res.slice(1);
  10284. if (typeof this.options.stripBOM === 'function')
  10285. this.options.stripBOM();
  10286. }
  10287. this.pass = true;
  10288. return res;
  10289. }
  10290. StripBOMWrapper.prototype.end = function() {
  10291. return this.decoder.end();
  10292. }
  10293. /***/ }),
  10294. /***/ 8544:
  10295. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  10296. "use strict";
  10297. var Buffer = __webpack_require__(64293).Buffer;
  10298. // Note: not polyfilled with safer-buffer on a purpose, as overrides Buffer
  10299. // == Extend Node primitives to use iconv-lite =================================
  10300. module.exports = function (iconv) {
  10301. var original = undefined; // Place to keep original methods.
  10302. // Node authors rewrote Buffer internals to make it compatible with
  10303. // Uint8Array and we cannot patch key functions since then.
  10304. // Note: this does use older Buffer API on a purpose
  10305. iconv.supportsNodeEncodingsExtension = !(Buffer.from || new Buffer(0) instanceof Uint8Array);
  10306. iconv.extendNodeEncodings = function extendNodeEncodings() {
  10307. if (original) return;
  10308. original = {};
  10309. if (!iconv.supportsNodeEncodingsExtension) {
  10310. console.error("ACTION NEEDED: require('iconv-lite').extendNodeEncodings() is not supported in your version of Node");
  10311. console.error("See more info at https://github.com/ashtuchkin/iconv-lite/wiki/Node-v4-compatibility");
  10312. return;
  10313. }
  10314. var nodeNativeEncodings = {
  10315. 'hex': true, 'utf8': true, 'utf-8': true, 'ascii': true, 'binary': true,
  10316. 'base64': true, 'ucs2': true, 'ucs-2': true, 'utf16le': true, 'utf-16le': true,
  10317. };
  10318. Buffer.isNativeEncoding = function(enc) {
  10319. return enc && nodeNativeEncodings[enc.toLowerCase()];
  10320. }
  10321. // -- SlowBuffer -----------------------------------------------------------
  10322. var SlowBuffer = __webpack_require__(64293).SlowBuffer;
  10323. original.SlowBufferToString = SlowBuffer.prototype.toString;
  10324. SlowBuffer.prototype.toString = function(encoding, start, end) {
  10325. encoding = String(encoding || 'utf8').toLowerCase();
  10326. // Use native conversion when possible
  10327. if (Buffer.isNativeEncoding(encoding))
  10328. return original.SlowBufferToString.call(this, encoding, start, end);
  10329. // Otherwise, use our decoding method.
  10330. if (typeof start == 'undefined') start = 0;
  10331. if (typeof end == 'undefined') end = this.length;
  10332. return iconv.decode(this.slice(start, end), encoding);
  10333. }
  10334. original.SlowBufferWrite = SlowBuffer.prototype.write;
  10335. SlowBuffer.prototype.write = function(string, offset, length, encoding) {
  10336. // Support both (string, offset, length, encoding)
  10337. // and the legacy (string, encoding, offset, length)
  10338. if (isFinite(offset)) {
  10339. if (!isFinite(length)) {
  10340. encoding = length;
  10341. length = undefined;
  10342. }
  10343. } else { // legacy
  10344. var swap = encoding;
  10345. encoding = offset;
  10346. offset = length;
  10347. length = swap;
  10348. }
  10349. offset = +offset || 0;
  10350. var remaining = this.length - offset;
  10351. if (!length) {
  10352. length = remaining;
  10353. } else {
  10354. length = +length;
  10355. if (length > remaining) {
  10356. length = remaining;
  10357. }
  10358. }
  10359. encoding = String(encoding || 'utf8').toLowerCase();
  10360. // Use native conversion when possible
  10361. if (Buffer.isNativeEncoding(encoding))
  10362. return original.SlowBufferWrite.call(this, string, offset, length, encoding);
  10363. if (string.length > 0 && (length < 0 || offset < 0))
  10364. throw new RangeError('attempt to write beyond buffer bounds');
  10365. // Otherwise, use our encoding method.
  10366. var buf = iconv.encode(string, encoding);
  10367. if (buf.length < length) length = buf.length;
  10368. buf.copy(this, offset, 0, length);
  10369. return length;
  10370. }
  10371. // -- Buffer ---------------------------------------------------------------
  10372. original.BufferIsEncoding = Buffer.isEncoding;
  10373. Buffer.isEncoding = function(encoding) {
  10374. return Buffer.isNativeEncoding(encoding) || iconv.encodingExists(encoding);
  10375. }
  10376. original.BufferByteLength = Buffer.byteLength;
  10377. Buffer.byteLength = SlowBuffer.byteLength = function(str, encoding) {
  10378. encoding = String(encoding || 'utf8').toLowerCase();
  10379. // Use native conversion when possible
  10380. if (Buffer.isNativeEncoding(encoding))
  10381. return original.BufferByteLength.call(this, str, encoding);
  10382. // Slow, I know, but we don't have a better way yet.
  10383. return iconv.encode(str, encoding).length;
  10384. }
  10385. original.BufferToString = Buffer.prototype.toString;
  10386. Buffer.prototype.toString = function(encoding, start, end) {
  10387. encoding = String(encoding || 'utf8').toLowerCase();
  10388. // Use native conversion when possible
  10389. if (Buffer.isNativeEncoding(encoding))
  10390. return original.BufferToString.call(this, encoding, start, end);
  10391. // Otherwise, use our decoding method.
  10392. if (typeof start == 'undefined') start = 0;
  10393. if (typeof end == 'undefined') end = this.length;
  10394. return iconv.decode(this.slice(start, end), encoding);
  10395. }
  10396. original.BufferWrite = Buffer.prototype.write;
  10397. Buffer.prototype.write = function(string, offset, length, encoding) {
  10398. var _offset = offset, _length = length, _encoding = encoding;
  10399. // Support both (string, offset, length, encoding)
  10400. // and the legacy (string, encoding, offset, length)
  10401. if (isFinite(offset)) {
  10402. if (!isFinite(length)) {
  10403. encoding = length;
  10404. length = undefined;
  10405. }
  10406. } else { // legacy
  10407. var swap = encoding;
  10408. encoding = offset;
  10409. offset = length;
  10410. length = swap;
  10411. }
  10412. encoding = String(encoding || 'utf8').toLowerCase();
  10413. // Use native conversion when possible
  10414. if (Buffer.isNativeEncoding(encoding))
  10415. return original.BufferWrite.call(this, string, _offset, _length, _encoding);
  10416. offset = +offset || 0;
  10417. var remaining = this.length - offset;
  10418. if (!length) {
  10419. length = remaining;
  10420. } else {
  10421. length = +length;
  10422. if (length > remaining) {
  10423. length = remaining;
  10424. }
  10425. }
  10426. if (string.length > 0 && (length < 0 || offset < 0))
  10427. throw new RangeError('attempt to write beyond buffer bounds');
  10428. // Otherwise, use our encoding method.
  10429. var buf = iconv.encode(string, encoding);
  10430. if (buf.length < length) length = buf.length;
  10431. buf.copy(this, offset, 0, length);
  10432. return length;
  10433. // TODO: Set _charsWritten.
  10434. }
  10435. // -- Readable -------------------------------------------------------------
  10436. if (iconv.supportsStreams) {
  10437. var Readable = __webpack_require__(92413).Readable;
  10438. original.ReadableSetEncoding = Readable.prototype.setEncoding;
  10439. Readable.prototype.setEncoding = function setEncoding(enc, options) {
  10440. // Use our own decoder, it has the same interface.
  10441. // We cannot use original function as it doesn't handle BOM-s.
  10442. this._readableState.decoder = iconv.getDecoder(enc, options);
  10443. this._readableState.encoding = enc;
  10444. }
  10445. Readable.prototype.collect = iconv._collect;
  10446. }
  10447. }
  10448. // Remove iconv-lite Node primitive extensions.
  10449. iconv.undoExtendNodeEncodings = function undoExtendNodeEncodings() {
  10450. if (!iconv.supportsNodeEncodingsExtension)
  10451. return;
  10452. if (!original)
  10453. throw new Error("require('iconv-lite').undoExtendNodeEncodings(): Nothing to undo; extendNodeEncodings() is not called.")
  10454. delete Buffer.isNativeEncoding;
  10455. var SlowBuffer = __webpack_require__(64293).SlowBuffer;
  10456. SlowBuffer.prototype.toString = original.SlowBufferToString;
  10457. SlowBuffer.prototype.write = original.SlowBufferWrite;
  10458. Buffer.isEncoding = original.BufferIsEncoding;
  10459. Buffer.byteLength = original.BufferByteLength;
  10460. Buffer.prototype.toString = original.BufferToString;
  10461. Buffer.prototype.write = original.BufferWrite;
  10462. if (iconv.supportsStreams) {
  10463. var Readable = __webpack_require__(92413).Readable;
  10464. Readable.prototype.setEncoding = original.ReadableSetEncoding;
  10465. delete Readable.prototype.collect;
  10466. }
  10467. original = undefined;
  10468. }
  10469. }
  10470. /***/ }),
  10471. /***/ 4914:
  10472. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  10473. "use strict";
  10474. // Some environments don't have global Buffer (e.g. React Native).
  10475. // Solution would be installing npm modules "buffer" and "stream" explicitly.
  10476. var Buffer = __webpack_require__(2399).Buffer;
  10477. var bomHandling = __webpack_require__(65395),
  10478. iconv = module.exports;
  10479. // All codecs and aliases are kept here, keyed by encoding name/alias.
  10480. // They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.
  10481. iconv.encodings = null;
  10482. // Characters emitted in case of error.
  10483. iconv.defaultCharUnicode = '�';
  10484. iconv.defaultCharSingleByte = '?';
  10485. // Public API.
  10486. iconv.encode = function encode(str, encoding, options) {
  10487. str = "" + (str || ""); // Ensure string.
  10488. var encoder = iconv.getEncoder(encoding, options);
  10489. var res = encoder.write(str);
  10490. var trail = encoder.end();
  10491. return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res;
  10492. }
  10493. iconv.decode = function decode(buf, encoding, options) {
  10494. if (typeof buf === 'string') {
  10495. if (!iconv.skipDecodeWarning) {
  10496. console.error('Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding');
  10497. iconv.skipDecodeWarning = true;
  10498. }
  10499. buf = Buffer.from("" + (buf || ""), "binary"); // Ensure buffer.
  10500. }
  10501. var decoder = iconv.getDecoder(encoding, options);
  10502. var res = decoder.write(buf);
  10503. var trail = decoder.end();
  10504. return trail ? (res + trail) : res;
  10505. }
  10506. iconv.encodingExists = function encodingExists(enc) {
  10507. try {
  10508. iconv.getCodec(enc);
  10509. return true;
  10510. } catch (e) {
  10511. return false;
  10512. }
  10513. }
  10514. // Legacy aliases to convert functions
  10515. iconv.toEncoding = iconv.encode;
  10516. iconv.fromEncoding = iconv.decode;
  10517. // Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.
  10518. iconv._codecDataCache = {};
  10519. iconv.getCodec = function getCodec(encoding) {
  10520. if (!iconv.encodings)
  10521. iconv.encodings = __webpack_require__(46934); // Lazy load all encoding definitions.
  10522. // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
  10523. var enc = iconv._canonicalizeEncoding(encoding);
  10524. // Traverse iconv.encodings to find actual codec.
  10525. var codecOptions = {};
  10526. while (true) {
  10527. var codec = iconv._codecDataCache[enc];
  10528. if (codec)
  10529. return codec;
  10530. var codecDef = iconv.encodings[enc];
  10531. switch (typeof codecDef) {
  10532. case "string": // Direct alias to other encoding.
  10533. enc = codecDef;
  10534. break;
  10535. case "object": // Alias with options. Can be layered.
  10536. for (var key in codecDef)
  10537. codecOptions[key] = codecDef[key];
  10538. if (!codecOptions.encodingName)
  10539. codecOptions.encodingName = enc;
  10540. enc = codecDef.type;
  10541. break;
  10542. case "function": // Codec itself.
  10543. if (!codecOptions.encodingName)
  10544. codecOptions.encodingName = enc;
  10545. // The codec function must load all tables and return object with .encoder and .decoder methods.
  10546. // It'll be called only once (for each different options object).
  10547. codec = new codecDef(codecOptions, iconv);
  10548. iconv._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later.
  10549. return codec;
  10550. default:
  10551. throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '"+enc+"')");
  10552. }
  10553. }
  10554. }
  10555. iconv._canonicalizeEncoding = function(encoding) {
  10556. // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
  10557. return (''+encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
  10558. }
  10559. iconv.getEncoder = function getEncoder(encoding, options) {
  10560. var codec = iconv.getCodec(encoding),
  10561. encoder = new codec.encoder(options, codec);
  10562. if (codec.bomAware && options && options.addBOM)
  10563. encoder = new bomHandling.PrependBOM(encoder, options);
  10564. return encoder;
  10565. }
  10566. iconv.getDecoder = function getDecoder(encoding, options) {
  10567. var codec = iconv.getCodec(encoding),
  10568. decoder = new codec.decoder(options, codec);
  10569. if (codec.bomAware && !(options && options.stripBOM === false))
  10570. decoder = new bomHandling.StripBOM(decoder, options);
  10571. return decoder;
  10572. }
  10573. // Load extensions in Node. All of them are omitted in Browserify build via 'browser' field in package.json.
  10574. var nodeVer = typeof process !== 'undefined' && process.versions && process.versions.node;
  10575. if (nodeVer) {
  10576. // Load streaming support in Node v0.10+
  10577. var nodeVerArr = nodeVer.split(".").map(Number);
  10578. if (nodeVerArr[0] > 0 || nodeVerArr[1] >= 10) {
  10579. __webpack_require__(38044)(iconv);
  10580. }
  10581. // Load Node primitive extensions.
  10582. __webpack_require__(8544)(iconv);
  10583. }
  10584. if (false) {}
  10585. /***/ }),
  10586. /***/ 38044:
  10587. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  10588. "use strict";
  10589. var Buffer = __webpack_require__(64293).Buffer,
  10590. Transform = __webpack_require__(92413).Transform;
  10591. // == Exports ==================================================================
  10592. module.exports = function(iconv) {
  10593. // Additional Public API.
  10594. iconv.encodeStream = function encodeStream(encoding, options) {
  10595. return new IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options);
  10596. }
  10597. iconv.decodeStream = function decodeStream(encoding, options) {
  10598. return new IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options);
  10599. }
  10600. iconv.supportsStreams = true;
  10601. // Not published yet.
  10602. iconv.IconvLiteEncoderStream = IconvLiteEncoderStream;
  10603. iconv.IconvLiteDecoderStream = IconvLiteDecoderStream;
  10604. iconv._collect = IconvLiteDecoderStream.prototype.collect;
  10605. };
  10606. // == Encoder stream =======================================================
  10607. function IconvLiteEncoderStream(conv, options) {
  10608. this.conv = conv;
  10609. options = options || {};
  10610. options.decodeStrings = false; // We accept only strings, so we don't need to decode them.
  10611. Transform.call(this, options);
  10612. }
  10613. IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {
  10614. constructor: { value: IconvLiteEncoderStream }
  10615. });
  10616. IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
  10617. if (typeof chunk != 'string')
  10618. return done(new Error("Iconv encoding stream needs strings as its input."));
  10619. try {
  10620. var res = this.conv.write(chunk);
  10621. if (res && res.length) this.push(res);
  10622. done();
  10623. }
  10624. catch (e) {
  10625. done(e);
  10626. }
  10627. }
  10628. IconvLiteEncoderStream.prototype._flush = function(done) {
  10629. try {
  10630. var res = this.conv.end();
  10631. if (res && res.length) this.push(res);
  10632. done();
  10633. }
  10634. catch (e) {
  10635. done(e);
  10636. }
  10637. }
  10638. IconvLiteEncoderStream.prototype.collect = function(cb) {
  10639. var chunks = [];
  10640. this.on('error', cb);
  10641. this.on('data', function(chunk) { chunks.push(chunk); });
  10642. this.on('end', function() {
  10643. cb(null, Buffer.concat(chunks));
  10644. });
  10645. return this;
  10646. }
  10647. // == Decoder stream =======================================================
  10648. function IconvLiteDecoderStream(conv, options) {
  10649. this.conv = conv;
  10650. options = options || {};
  10651. options.encoding = this.encoding = 'utf8'; // We output strings.
  10652. Transform.call(this, options);
  10653. }
  10654. IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {
  10655. constructor: { value: IconvLiteDecoderStream }
  10656. });
  10657. IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
  10658. if (!Buffer.isBuffer(chunk))
  10659. return done(new Error("Iconv decoding stream needs buffers as its input."));
  10660. try {
  10661. var res = this.conv.write(chunk);
  10662. if (res && res.length) this.push(res, this.encoding);
  10663. done();
  10664. }
  10665. catch (e) {
  10666. done(e);
  10667. }
  10668. }
  10669. IconvLiteDecoderStream.prototype._flush = function(done) {
  10670. try {
  10671. var res = this.conv.end();
  10672. if (res && res.length) this.push(res, this.encoding);
  10673. done();
  10674. }
  10675. catch (e) {
  10676. done(e);
  10677. }
  10678. }
  10679. IconvLiteDecoderStream.prototype.collect = function(cb) {
  10680. var res = '';
  10681. this.on('error', cb);
  10682. this.on('data', function(chunk) { res += chunk; });
  10683. this.on('end', function() {
  10684. cb(null, res);
  10685. });
  10686. return this;
  10687. }
  10688. /***/ }),
  10689. /***/ 4269:
  10690. /***/ ((module) => {
  10691. /**
  10692. * @preserve
  10693. * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
  10694. *
  10695. * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
  10696. * @see http://github.com/homebrewing/brauhaus-diff
  10697. * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
  10698. * @see http://github.com/garycourt/murmurhash-js
  10699. * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
  10700. * @see http://sites.google.com/site/murmurhash/
  10701. */
  10702. (function(){
  10703. var cache;
  10704. // Call this function without `new` to use the cached object (good for
  10705. // single-threaded environments), or with `new` to create a new object.
  10706. //
  10707. // @param {string} key A UTF-16 or ASCII string
  10708. // @param {number} seed An optional positive integer
  10709. // @return {object} A MurmurHash3 object for incremental hashing
  10710. function MurmurHash3(key, seed) {
  10711. var m = this instanceof MurmurHash3 ? this : cache;
  10712. m.reset(seed)
  10713. if (typeof key === 'string' && key.length > 0) {
  10714. m.hash(key);
  10715. }
  10716. if (m !== this) {
  10717. return m;
  10718. }
  10719. };
  10720. // Incrementally add a string to this hash
  10721. //
  10722. // @param {string} key A UTF-16 or ASCII string
  10723. // @return {object} this
  10724. MurmurHash3.prototype.hash = function(key) {
  10725. var h1, k1, i, top, len;
  10726. len = key.length;
  10727. this.len += len;
  10728. k1 = this.k1;
  10729. i = 0;
  10730. switch (this.rem) {
  10731. case 0: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) : 0;
  10732. case 1: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 8 : 0;
  10733. case 2: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 16 : 0;
  10734. case 3:
  10735. k1 ^= len > i ? (key.charCodeAt(i) & 0xff) << 24 : 0;
  10736. k1 ^= len > i ? (key.charCodeAt(i++) & 0xff00) >> 8 : 0;
  10737. }
  10738. this.rem = (len + this.rem) & 3; // & 3 is same as % 4
  10739. len -= this.rem;
  10740. if (len > 0) {
  10741. h1 = this.h1;
  10742. while (1) {
  10743. k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff;
  10744. k1 = (k1 << 15) | (k1 >>> 17);
  10745. k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff;
  10746. h1 ^= k1;
  10747. h1 = (h1 << 13) | (h1 >>> 19);
  10748. h1 = (h1 * 5 + 0xe6546b64) & 0xffffffff;
  10749. if (i >= len) {
  10750. break;
  10751. }
  10752. k1 = ((key.charCodeAt(i++) & 0xffff)) ^
  10753. ((key.charCodeAt(i++) & 0xffff) << 8) ^
  10754. ((key.charCodeAt(i++) & 0xffff) << 16);
  10755. top = key.charCodeAt(i++);
  10756. k1 ^= ((top & 0xff) << 24) ^
  10757. ((top & 0xff00) >> 8);
  10758. }
  10759. k1 = 0;
  10760. switch (this.rem) {
  10761. case 3: k1 ^= (key.charCodeAt(i + 2) & 0xffff) << 16;
  10762. case 2: k1 ^= (key.charCodeAt(i + 1) & 0xffff) << 8;
  10763. case 1: k1 ^= (key.charCodeAt(i) & 0xffff);
  10764. }
  10765. this.h1 = h1;
  10766. }
  10767. this.k1 = k1;
  10768. return this;
  10769. };
  10770. // Get the result of this hash
  10771. //
  10772. // @return {number} The 32-bit hash
  10773. MurmurHash3.prototype.result = function() {
  10774. var k1, h1;
  10775. k1 = this.k1;
  10776. h1 = this.h1;
  10777. if (k1 > 0) {
  10778. k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff;
  10779. k1 = (k1 << 15) | (k1 >>> 17);
  10780. k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff;
  10781. h1 ^= k1;
  10782. }
  10783. h1 ^= this.len;
  10784. h1 ^= h1 >>> 16;
  10785. h1 = (h1 * 0xca6b + (h1 & 0xffff) * 0x85eb0000) & 0xffffffff;
  10786. h1 ^= h1 >>> 13;
  10787. h1 = (h1 * 0xae35 + (h1 & 0xffff) * 0xc2b20000) & 0xffffffff;
  10788. h1 ^= h1 >>> 16;
  10789. return h1 >>> 0;
  10790. };
  10791. // Reset the hash object for reuse
  10792. //
  10793. // @param {number} seed An optional positive integer
  10794. MurmurHash3.prototype.reset = function(seed) {
  10795. this.h1 = typeof seed === 'number' ? seed : 0;
  10796. this.rem = this.k1 = this.len = 0;
  10797. return this;
  10798. };
  10799. // A cached object to use. This can be safely used if you're in a single-
  10800. // threaded environment, otherwise you need to create new hashes to use.
  10801. cache = new MurmurHash3();
  10802. if (true) {
  10803. module.exports = MurmurHash3;
  10804. } else {}
  10805. }());
  10806. /***/ }),
  10807. /***/ 64290:
  10808. /***/ ((module) => {
  10809. "use strict";
  10810. module.exports = value => {
  10811. const type = typeof value;
  10812. return value !== null && (type === 'object' || type === 'function');
  10813. };
  10814. /***/ }),
  10815. /***/ 4501:
  10816. /***/ ((module) => {
  10817. module.exports = isTypedArray
  10818. isTypedArray.strict = isStrictTypedArray
  10819. isTypedArray.loose = isLooseTypedArray
  10820. var toString = Object.prototype.toString
  10821. var names = {
  10822. '[object Int8Array]': true
  10823. , '[object Int16Array]': true
  10824. , '[object Int32Array]': true
  10825. , '[object Uint8Array]': true
  10826. , '[object Uint8ClampedArray]': true
  10827. , '[object Uint16Array]': true
  10828. , '[object Uint32Array]': true
  10829. , '[object Float32Array]': true
  10830. , '[object Float64Array]': true
  10831. }
  10832. function isTypedArray(arr) {
  10833. return (
  10834. isStrictTypedArray(arr)
  10835. || isLooseTypedArray(arr)
  10836. )
  10837. }
  10838. function isStrictTypedArray(arr) {
  10839. return (
  10840. arr instanceof Int8Array
  10841. || arr instanceof Int16Array
  10842. || arr instanceof Int32Array
  10843. || arr instanceof Uint8Array
  10844. || arr instanceof Uint8ClampedArray
  10845. || arr instanceof Uint16Array
  10846. || arr instanceof Uint32Array
  10847. || arr instanceof Float32Array
  10848. || arr instanceof Float64Array
  10849. )
  10850. }
  10851. function isLooseTypedArray(arr) {
  10852. return names[toString.call(arr)]
  10853. }
  10854. /***/ }),
  10855. /***/ 31959:
  10856. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  10857. var fs = __webpack_require__(35747)
  10858. var core
  10859. if (process.platform === 'win32' || global.TESTING_WINDOWS) {
  10860. core = __webpack_require__(61429)
  10861. } else {
  10862. core = __webpack_require__(44601)
  10863. }
  10864. module.exports = isexe
  10865. isexe.sync = sync
  10866. function isexe (path, options, cb) {
  10867. if (typeof options === 'function') {
  10868. cb = options
  10869. options = {}
  10870. }
  10871. if (!cb) {
  10872. if (typeof Promise !== 'function') {
  10873. throw new TypeError('callback not provided')
  10874. }
  10875. return new Promise(function (resolve, reject) {
  10876. isexe(path, options || {}, function (er, is) {
  10877. if (er) {
  10878. reject(er)
  10879. } else {
  10880. resolve(is)
  10881. }
  10882. })
  10883. })
  10884. }
  10885. core(path, options || {}, function (er, is) {
  10886. // ignore EACCES because that just means we aren't allowed to run it
  10887. if (er) {
  10888. if (er.code === 'EACCES' || options && options.ignoreErrors) {
  10889. er = null
  10890. is = false
  10891. }
  10892. }
  10893. cb(er, is)
  10894. })
  10895. }
  10896. function sync (path, options) {
  10897. // my kingdom for a filtered catch
  10898. try {
  10899. return core.sync(path, options || {})
  10900. } catch (er) {
  10901. if (options && options.ignoreErrors || er.code === 'EACCES') {
  10902. return false
  10903. } else {
  10904. throw er
  10905. }
  10906. }
  10907. }
  10908. /***/ }),
  10909. /***/ 44601:
  10910. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  10911. module.exports = isexe
  10912. isexe.sync = sync
  10913. var fs = __webpack_require__(35747)
  10914. function isexe (path, options, cb) {
  10915. fs.stat(path, function (er, stat) {
  10916. cb(er, er ? false : checkStat(stat, options))
  10917. })
  10918. }
  10919. function sync (path, options) {
  10920. return checkStat(fs.statSync(path), options)
  10921. }
  10922. function checkStat (stat, options) {
  10923. return stat.isFile() && checkMode(stat, options)
  10924. }
  10925. function checkMode (stat, options) {
  10926. var mod = stat.mode
  10927. var uid = stat.uid
  10928. var gid = stat.gid
  10929. var myUid = options.uid !== undefined ?
  10930. options.uid : process.getuid && process.getuid()
  10931. var myGid = options.gid !== undefined ?
  10932. options.gid : process.getgid && process.getgid()
  10933. var u = parseInt('100', 8)
  10934. var g = parseInt('010', 8)
  10935. var o = parseInt('001', 8)
  10936. var ug = u | g
  10937. var ret = (mod & o) ||
  10938. (mod & g) && gid === myGid ||
  10939. (mod & u) && uid === myUid ||
  10940. (mod & ug) && myUid === 0
  10941. return ret
  10942. }
  10943. /***/ }),
  10944. /***/ 61429:
  10945. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  10946. module.exports = isexe
  10947. isexe.sync = sync
  10948. var fs = __webpack_require__(35747)
  10949. function checkPathExt (path, options) {
  10950. var pathext = options.pathExt !== undefined ?
  10951. options.pathExt : process.env.PATHEXT
  10952. if (!pathext) {
  10953. return true
  10954. }
  10955. pathext = pathext.split(';')
  10956. if (pathext.indexOf('') !== -1) {
  10957. return true
  10958. }
  10959. for (var i = 0; i < pathext.length; i++) {
  10960. var p = pathext[i].toLowerCase()
  10961. if (p && path.substr(-p.length).toLowerCase() === p) {
  10962. return true
  10963. }
  10964. }
  10965. return false
  10966. }
  10967. function checkStat (stat, path, options) {
  10968. if (!stat.isSymbolicLink() && !stat.isFile()) {
  10969. return false
  10970. }
  10971. return checkPathExt(path, options)
  10972. }
  10973. function isexe (path, options, cb) {
  10974. fs.stat(path, function (er, stat) {
  10975. cb(er, er ? false : checkStat(stat, path, options))
  10976. })
  10977. }
  10978. function sync (path, options) {
  10979. return checkStat(fs.statSync(path), path, options)
  10980. }
  10981. /***/ }),
  10982. /***/ 64530:
  10983. /***/ ((module, exports) => {
  10984. exports = module.exports = stringify
  10985. exports.getSerialize = serializer
  10986. function stringify(obj, replacer, spaces, cycleReplacer) {
  10987. return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)
  10988. }
  10989. function serializer(replacer, cycleReplacer) {
  10990. var stack = [], keys = []
  10991. if (cycleReplacer == null) cycleReplacer = function(key, value) {
  10992. if (stack[0] === value) return "[Circular ~]"
  10993. return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"
  10994. }
  10995. return function(key, value) {
  10996. if (stack.length > 0) {
  10997. var thisPos = stack.indexOf(this)
  10998. ~thisPos ? stack.splice(thisPos + 1) : stack.push(this)
  10999. ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)
  11000. if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)
  11001. }
  11002. else stack.push(value)
  11003. return replacer == null ? value : replacer.call(this, key, value)
  11004. }
  11005. }
  11006. /***/ }),
  11007. /***/ 83465:
  11008. /***/ ((module, exports, __webpack_require__) => {
  11009. /* module decorator */ module = __webpack_require__.nmd(module);
  11010. /**
  11011. * lodash (Custom Build) <https://lodash.com/>
  11012. * Build: `lodash modularize exports="npm" -o ./`
  11013. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  11014. * Released under MIT license <https://lodash.com/license>
  11015. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  11016. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  11017. */
  11018. /** Used as the size to enable large array optimizations. */
  11019. var LARGE_ARRAY_SIZE = 200;
  11020. /** Used to stand-in for `undefined` hash values. */
  11021. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  11022. /** Used as references for various `Number` constants. */
  11023. var MAX_SAFE_INTEGER = 9007199254740991;
  11024. /** `Object#toString` result references. */
  11025. var argsTag = '[object Arguments]',
  11026. arrayTag = '[object Array]',
  11027. boolTag = '[object Boolean]',
  11028. dateTag = '[object Date]',
  11029. errorTag = '[object Error]',
  11030. funcTag = '[object Function]',
  11031. genTag = '[object GeneratorFunction]',
  11032. mapTag = '[object Map]',
  11033. numberTag = '[object Number]',
  11034. objectTag = '[object Object]',
  11035. promiseTag = '[object Promise]',
  11036. regexpTag = '[object RegExp]',
  11037. setTag = '[object Set]',
  11038. stringTag = '[object String]',
  11039. symbolTag = '[object Symbol]',
  11040. weakMapTag = '[object WeakMap]';
  11041. var arrayBufferTag = '[object ArrayBuffer]',
  11042. dataViewTag = '[object DataView]',
  11043. float32Tag = '[object Float32Array]',
  11044. float64Tag = '[object Float64Array]',
  11045. int8Tag = '[object Int8Array]',
  11046. int16Tag = '[object Int16Array]',
  11047. int32Tag = '[object Int32Array]',
  11048. uint8Tag = '[object Uint8Array]',
  11049. uint8ClampedTag = '[object Uint8ClampedArray]',
  11050. uint16Tag = '[object Uint16Array]',
  11051. uint32Tag = '[object Uint32Array]';
  11052. /**
  11053. * Used to match `RegExp`
  11054. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  11055. */
  11056. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  11057. /** Used to match `RegExp` flags from their coerced string values. */
  11058. var reFlags = /\w*$/;
  11059. /** Used to detect host constructors (Safari). */
  11060. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  11061. /** Used to detect unsigned integer values. */
  11062. var reIsUint = /^(?:0|[1-9]\d*)$/;
  11063. /** Used to identify `toStringTag` values supported by `_.clone`. */
  11064. var cloneableTags = {};
  11065. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  11066. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  11067. cloneableTags[boolTag] = cloneableTags[dateTag] =
  11068. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  11069. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  11070. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  11071. cloneableTags[numberTag] = cloneableTags[objectTag] =
  11072. cloneableTags[regexpTag] = cloneableTags[setTag] =
  11073. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  11074. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  11075. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  11076. cloneableTags[errorTag] = cloneableTags[funcTag] =
  11077. cloneableTags[weakMapTag] = false;
  11078. /** Detect free variable `global` from Node.js. */
  11079. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  11080. /** Detect free variable `self`. */
  11081. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  11082. /** Used as a reference to the global object. */
  11083. var root = freeGlobal || freeSelf || Function('return this')();
  11084. /** Detect free variable `exports`. */
  11085. var freeExports = true && exports && !exports.nodeType && exports;
  11086. /** Detect free variable `module`. */
  11087. var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
  11088. /** Detect the popular CommonJS extension `module.exports`. */
  11089. var moduleExports = freeModule && freeModule.exports === freeExports;
  11090. /**
  11091. * Adds the key-value `pair` to `map`.
  11092. *
  11093. * @private
  11094. * @param {Object} map The map to modify.
  11095. * @param {Array} pair The key-value pair to add.
  11096. * @returns {Object} Returns `map`.
  11097. */
  11098. function addMapEntry(map, pair) {
  11099. // Don't return `map.set` because it's not chainable in IE 11.
  11100. map.set(pair[0], pair[1]);
  11101. return map;
  11102. }
  11103. /**
  11104. * Adds `value` to `set`.
  11105. *
  11106. * @private
  11107. * @param {Object} set The set to modify.
  11108. * @param {*} value The value to add.
  11109. * @returns {Object} Returns `set`.
  11110. */
  11111. function addSetEntry(set, value) {
  11112. // Don't return `set.add` because it's not chainable in IE 11.
  11113. set.add(value);
  11114. return set;
  11115. }
  11116. /**
  11117. * A specialized version of `_.forEach` for arrays without support for
  11118. * iteratee shorthands.
  11119. *
  11120. * @private
  11121. * @param {Array} [array] The array to iterate over.
  11122. * @param {Function} iteratee The function invoked per iteration.
  11123. * @returns {Array} Returns `array`.
  11124. */
  11125. function arrayEach(array, iteratee) {
  11126. var index = -1,
  11127. length = array ? array.length : 0;
  11128. while (++index < length) {
  11129. if (iteratee(array[index], index, array) === false) {
  11130. break;
  11131. }
  11132. }
  11133. return array;
  11134. }
  11135. /**
  11136. * Appends the elements of `values` to `array`.
  11137. *
  11138. * @private
  11139. * @param {Array} array The array to modify.
  11140. * @param {Array} values The values to append.
  11141. * @returns {Array} Returns `array`.
  11142. */
  11143. function arrayPush(array, values) {
  11144. var index = -1,
  11145. length = values.length,
  11146. offset = array.length;
  11147. while (++index < length) {
  11148. array[offset + index] = values[index];
  11149. }
  11150. return array;
  11151. }
  11152. /**
  11153. * A specialized version of `_.reduce` for arrays without support for
  11154. * iteratee shorthands.
  11155. *
  11156. * @private
  11157. * @param {Array} [array] The array to iterate over.
  11158. * @param {Function} iteratee The function invoked per iteration.
  11159. * @param {*} [accumulator] The initial value.
  11160. * @param {boolean} [initAccum] Specify using the first element of `array` as
  11161. * the initial value.
  11162. * @returns {*} Returns the accumulated value.
  11163. */
  11164. function arrayReduce(array, iteratee, accumulator, initAccum) {
  11165. var index = -1,
  11166. length = array ? array.length : 0;
  11167. if (initAccum && length) {
  11168. accumulator = array[++index];
  11169. }
  11170. while (++index < length) {
  11171. accumulator = iteratee(accumulator, array[index], index, array);
  11172. }
  11173. return accumulator;
  11174. }
  11175. /**
  11176. * The base implementation of `_.times` without support for iteratee shorthands
  11177. * or max array length checks.
  11178. *
  11179. * @private
  11180. * @param {number} n The number of times to invoke `iteratee`.
  11181. * @param {Function} iteratee The function invoked per iteration.
  11182. * @returns {Array} Returns the array of results.
  11183. */
  11184. function baseTimes(n, iteratee) {
  11185. var index = -1,
  11186. result = Array(n);
  11187. while (++index < n) {
  11188. result[index] = iteratee(index);
  11189. }
  11190. return result;
  11191. }
  11192. /**
  11193. * Gets the value at `key` of `object`.
  11194. *
  11195. * @private
  11196. * @param {Object} [object] The object to query.
  11197. * @param {string} key The key of the property to get.
  11198. * @returns {*} Returns the property value.
  11199. */
  11200. function getValue(object, key) {
  11201. return object == null ? undefined : object[key];
  11202. }
  11203. /**
  11204. * Checks if `value` is a host object in IE < 9.
  11205. *
  11206. * @private
  11207. * @param {*} value The value to check.
  11208. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  11209. */
  11210. function isHostObject(value) {
  11211. // Many host objects are `Object` objects that can coerce to strings
  11212. // despite having improperly defined `toString` methods.
  11213. var result = false;
  11214. if (value != null && typeof value.toString != 'function') {
  11215. try {
  11216. result = !!(value + '');
  11217. } catch (e) {}
  11218. }
  11219. return result;
  11220. }
  11221. /**
  11222. * Converts `map` to its key-value pairs.
  11223. *
  11224. * @private
  11225. * @param {Object} map The map to convert.
  11226. * @returns {Array} Returns the key-value pairs.
  11227. */
  11228. function mapToArray(map) {
  11229. var index = -1,
  11230. result = Array(map.size);
  11231. map.forEach(function(value, key) {
  11232. result[++index] = [key, value];
  11233. });
  11234. return result;
  11235. }
  11236. /**
  11237. * Creates a unary function that invokes `func` with its argument transformed.
  11238. *
  11239. * @private
  11240. * @param {Function} func The function to wrap.
  11241. * @param {Function} transform The argument transform.
  11242. * @returns {Function} Returns the new function.
  11243. */
  11244. function overArg(func, transform) {
  11245. return function(arg) {
  11246. return func(transform(arg));
  11247. };
  11248. }
  11249. /**
  11250. * Converts `set` to an array of its values.
  11251. *
  11252. * @private
  11253. * @param {Object} set The set to convert.
  11254. * @returns {Array} Returns the values.
  11255. */
  11256. function setToArray(set) {
  11257. var index = -1,
  11258. result = Array(set.size);
  11259. set.forEach(function(value) {
  11260. result[++index] = value;
  11261. });
  11262. return result;
  11263. }
  11264. /** Used for built-in method references. */
  11265. var arrayProto = Array.prototype,
  11266. funcProto = Function.prototype,
  11267. objectProto = Object.prototype;
  11268. /** Used to detect overreaching core-js shims. */
  11269. var coreJsData = root['__core-js_shared__'];
  11270. /** Used to detect methods masquerading as native. */
  11271. var maskSrcKey = (function() {
  11272. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  11273. return uid ? ('Symbol(src)_1.' + uid) : '';
  11274. }());
  11275. /** Used to resolve the decompiled source of functions. */
  11276. var funcToString = funcProto.toString;
  11277. /** Used to check objects for own properties. */
  11278. var hasOwnProperty = objectProto.hasOwnProperty;
  11279. /**
  11280. * Used to resolve the
  11281. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  11282. * of values.
  11283. */
  11284. var objectToString = objectProto.toString;
  11285. /** Used to detect if a method is native. */
  11286. var reIsNative = RegExp('^' +
  11287. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  11288. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  11289. );
  11290. /** Built-in value references. */
  11291. var Buffer = moduleExports ? root.Buffer : undefined,
  11292. Symbol = root.Symbol,
  11293. Uint8Array = root.Uint8Array,
  11294. getPrototype = overArg(Object.getPrototypeOf, Object),
  11295. objectCreate = Object.create,
  11296. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  11297. splice = arrayProto.splice;
  11298. /* Built-in method references for those with the same name as other `lodash` methods. */
  11299. var nativeGetSymbols = Object.getOwnPropertySymbols,
  11300. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  11301. nativeKeys = overArg(Object.keys, Object);
  11302. /* Built-in method references that are verified to be native. */
  11303. var DataView = getNative(root, 'DataView'),
  11304. Map = getNative(root, 'Map'),
  11305. Promise = getNative(root, 'Promise'),
  11306. Set = getNative(root, 'Set'),
  11307. WeakMap = getNative(root, 'WeakMap'),
  11308. nativeCreate = getNative(Object, 'create');
  11309. /** Used to detect maps, sets, and weakmaps. */
  11310. var dataViewCtorString = toSource(DataView),
  11311. mapCtorString = toSource(Map),
  11312. promiseCtorString = toSource(Promise),
  11313. setCtorString = toSource(Set),
  11314. weakMapCtorString = toSource(WeakMap);
  11315. /** Used to convert symbols to primitives and strings. */
  11316. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11317. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  11318. /**
  11319. * Creates a hash object.
  11320. *
  11321. * @private
  11322. * @constructor
  11323. * @param {Array} [entries] The key-value pairs to cache.
  11324. */
  11325. function Hash(entries) {
  11326. var index = -1,
  11327. length = entries ? entries.length : 0;
  11328. this.clear();
  11329. while (++index < length) {
  11330. var entry = entries[index];
  11331. this.set(entry[0], entry[1]);
  11332. }
  11333. }
  11334. /**
  11335. * Removes all key-value entries from the hash.
  11336. *
  11337. * @private
  11338. * @name clear
  11339. * @memberOf Hash
  11340. */
  11341. function hashClear() {
  11342. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  11343. }
  11344. /**
  11345. * Removes `key` and its value from the hash.
  11346. *
  11347. * @private
  11348. * @name delete
  11349. * @memberOf Hash
  11350. * @param {Object} hash The hash to modify.
  11351. * @param {string} key The key of the value to remove.
  11352. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  11353. */
  11354. function hashDelete(key) {
  11355. return this.has(key) && delete this.__data__[key];
  11356. }
  11357. /**
  11358. * Gets the hash value for `key`.
  11359. *
  11360. * @private
  11361. * @name get
  11362. * @memberOf Hash
  11363. * @param {string} key The key of the value to get.
  11364. * @returns {*} Returns the entry value.
  11365. */
  11366. function hashGet(key) {
  11367. var data = this.__data__;
  11368. if (nativeCreate) {
  11369. var result = data[key];
  11370. return result === HASH_UNDEFINED ? undefined : result;
  11371. }
  11372. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  11373. }
  11374. /**
  11375. * Checks if a hash value for `key` exists.
  11376. *
  11377. * @private
  11378. * @name has
  11379. * @memberOf Hash
  11380. * @param {string} key The key of the entry to check.
  11381. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11382. */
  11383. function hashHas(key) {
  11384. var data = this.__data__;
  11385. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  11386. }
  11387. /**
  11388. * Sets the hash `key` to `value`.
  11389. *
  11390. * @private
  11391. * @name set
  11392. * @memberOf Hash
  11393. * @param {string} key The key of the value to set.
  11394. * @param {*} value The value to set.
  11395. * @returns {Object} Returns the hash instance.
  11396. */
  11397. function hashSet(key, value) {
  11398. var data = this.__data__;
  11399. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  11400. return this;
  11401. }
  11402. // Add methods to `Hash`.
  11403. Hash.prototype.clear = hashClear;
  11404. Hash.prototype['delete'] = hashDelete;
  11405. Hash.prototype.get = hashGet;
  11406. Hash.prototype.has = hashHas;
  11407. Hash.prototype.set = hashSet;
  11408. /**
  11409. * Creates an list cache object.
  11410. *
  11411. * @private
  11412. * @constructor
  11413. * @param {Array} [entries] The key-value pairs to cache.
  11414. */
  11415. function ListCache(entries) {
  11416. var index = -1,
  11417. length = entries ? entries.length : 0;
  11418. this.clear();
  11419. while (++index < length) {
  11420. var entry = entries[index];
  11421. this.set(entry[0], entry[1]);
  11422. }
  11423. }
  11424. /**
  11425. * Removes all key-value entries from the list cache.
  11426. *
  11427. * @private
  11428. * @name clear
  11429. * @memberOf ListCache
  11430. */
  11431. function listCacheClear() {
  11432. this.__data__ = [];
  11433. }
  11434. /**
  11435. * Removes `key` and its value from the list cache.
  11436. *
  11437. * @private
  11438. * @name delete
  11439. * @memberOf ListCache
  11440. * @param {string} key The key of the value to remove.
  11441. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  11442. */
  11443. function listCacheDelete(key) {
  11444. var data = this.__data__,
  11445. index = assocIndexOf(data, key);
  11446. if (index < 0) {
  11447. return false;
  11448. }
  11449. var lastIndex = data.length - 1;
  11450. if (index == lastIndex) {
  11451. data.pop();
  11452. } else {
  11453. splice.call(data, index, 1);
  11454. }
  11455. return true;
  11456. }
  11457. /**
  11458. * Gets the list cache value for `key`.
  11459. *
  11460. * @private
  11461. * @name get
  11462. * @memberOf ListCache
  11463. * @param {string} key The key of the value to get.
  11464. * @returns {*} Returns the entry value.
  11465. */
  11466. function listCacheGet(key) {
  11467. var data = this.__data__,
  11468. index = assocIndexOf(data, key);
  11469. return index < 0 ? undefined : data[index][1];
  11470. }
  11471. /**
  11472. * Checks if a list cache value for `key` exists.
  11473. *
  11474. * @private
  11475. * @name has
  11476. * @memberOf ListCache
  11477. * @param {string} key The key of the entry to check.
  11478. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11479. */
  11480. function listCacheHas(key) {
  11481. return assocIndexOf(this.__data__, key) > -1;
  11482. }
  11483. /**
  11484. * Sets the list cache `key` to `value`.
  11485. *
  11486. * @private
  11487. * @name set
  11488. * @memberOf ListCache
  11489. * @param {string} key The key of the value to set.
  11490. * @param {*} value The value to set.
  11491. * @returns {Object} Returns the list cache instance.
  11492. */
  11493. function listCacheSet(key, value) {
  11494. var data = this.__data__,
  11495. index = assocIndexOf(data, key);
  11496. if (index < 0) {
  11497. data.push([key, value]);
  11498. } else {
  11499. data[index][1] = value;
  11500. }
  11501. return this;
  11502. }
  11503. // Add methods to `ListCache`.
  11504. ListCache.prototype.clear = listCacheClear;
  11505. ListCache.prototype['delete'] = listCacheDelete;
  11506. ListCache.prototype.get = listCacheGet;
  11507. ListCache.prototype.has = listCacheHas;
  11508. ListCache.prototype.set = listCacheSet;
  11509. /**
  11510. * Creates a map cache object to store key-value pairs.
  11511. *
  11512. * @private
  11513. * @constructor
  11514. * @param {Array} [entries] The key-value pairs to cache.
  11515. */
  11516. function MapCache(entries) {
  11517. var index = -1,
  11518. length = entries ? entries.length : 0;
  11519. this.clear();
  11520. while (++index < length) {
  11521. var entry = entries[index];
  11522. this.set(entry[0], entry[1]);
  11523. }
  11524. }
  11525. /**
  11526. * Removes all key-value entries from the map.
  11527. *
  11528. * @private
  11529. * @name clear
  11530. * @memberOf MapCache
  11531. */
  11532. function mapCacheClear() {
  11533. this.__data__ = {
  11534. 'hash': new Hash,
  11535. 'map': new (Map || ListCache),
  11536. 'string': new Hash
  11537. };
  11538. }
  11539. /**
  11540. * Removes `key` and its value from the map.
  11541. *
  11542. * @private
  11543. * @name delete
  11544. * @memberOf MapCache
  11545. * @param {string} key The key of the value to remove.
  11546. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  11547. */
  11548. function mapCacheDelete(key) {
  11549. return getMapData(this, key)['delete'](key);
  11550. }
  11551. /**
  11552. * Gets the map value for `key`.
  11553. *
  11554. * @private
  11555. * @name get
  11556. * @memberOf MapCache
  11557. * @param {string} key The key of the value to get.
  11558. * @returns {*} Returns the entry value.
  11559. */
  11560. function mapCacheGet(key) {
  11561. return getMapData(this, key).get(key);
  11562. }
  11563. /**
  11564. * Checks if a map value for `key` exists.
  11565. *
  11566. * @private
  11567. * @name has
  11568. * @memberOf MapCache
  11569. * @param {string} key The key of the entry to check.
  11570. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11571. */
  11572. function mapCacheHas(key) {
  11573. return getMapData(this, key).has(key);
  11574. }
  11575. /**
  11576. * Sets the map `key` to `value`.
  11577. *
  11578. * @private
  11579. * @name set
  11580. * @memberOf MapCache
  11581. * @param {string} key The key of the value to set.
  11582. * @param {*} value The value to set.
  11583. * @returns {Object} Returns the map cache instance.
  11584. */
  11585. function mapCacheSet(key, value) {
  11586. getMapData(this, key).set(key, value);
  11587. return this;
  11588. }
  11589. // Add methods to `MapCache`.
  11590. MapCache.prototype.clear = mapCacheClear;
  11591. MapCache.prototype['delete'] = mapCacheDelete;
  11592. MapCache.prototype.get = mapCacheGet;
  11593. MapCache.prototype.has = mapCacheHas;
  11594. MapCache.prototype.set = mapCacheSet;
  11595. /**
  11596. * Creates a stack cache object to store key-value pairs.
  11597. *
  11598. * @private
  11599. * @constructor
  11600. * @param {Array} [entries] The key-value pairs to cache.
  11601. */
  11602. function Stack(entries) {
  11603. this.__data__ = new ListCache(entries);
  11604. }
  11605. /**
  11606. * Removes all key-value entries from the stack.
  11607. *
  11608. * @private
  11609. * @name clear
  11610. * @memberOf Stack
  11611. */
  11612. function stackClear() {
  11613. this.__data__ = new ListCache;
  11614. }
  11615. /**
  11616. * Removes `key` and its value from the stack.
  11617. *
  11618. * @private
  11619. * @name delete
  11620. * @memberOf Stack
  11621. * @param {string} key The key of the value to remove.
  11622. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  11623. */
  11624. function stackDelete(key) {
  11625. return this.__data__['delete'](key);
  11626. }
  11627. /**
  11628. * Gets the stack value for `key`.
  11629. *
  11630. * @private
  11631. * @name get
  11632. * @memberOf Stack
  11633. * @param {string} key The key of the value to get.
  11634. * @returns {*} Returns the entry value.
  11635. */
  11636. function stackGet(key) {
  11637. return this.__data__.get(key);
  11638. }
  11639. /**
  11640. * Checks if a stack value for `key` exists.
  11641. *
  11642. * @private
  11643. * @name has
  11644. * @memberOf Stack
  11645. * @param {string} key The key of the entry to check.
  11646. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11647. */
  11648. function stackHas(key) {
  11649. return this.__data__.has(key);
  11650. }
  11651. /**
  11652. * Sets the stack `key` to `value`.
  11653. *
  11654. * @private
  11655. * @name set
  11656. * @memberOf Stack
  11657. * @param {string} key The key of the value to set.
  11658. * @param {*} value The value to set.
  11659. * @returns {Object} Returns the stack cache instance.
  11660. */
  11661. function stackSet(key, value) {
  11662. var cache = this.__data__;
  11663. if (cache instanceof ListCache) {
  11664. var pairs = cache.__data__;
  11665. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  11666. pairs.push([key, value]);
  11667. return this;
  11668. }
  11669. cache = this.__data__ = new MapCache(pairs);
  11670. }
  11671. cache.set(key, value);
  11672. return this;
  11673. }
  11674. // Add methods to `Stack`.
  11675. Stack.prototype.clear = stackClear;
  11676. Stack.prototype['delete'] = stackDelete;
  11677. Stack.prototype.get = stackGet;
  11678. Stack.prototype.has = stackHas;
  11679. Stack.prototype.set = stackSet;
  11680. /**
  11681. * Creates an array of the enumerable property names of the array-like `value`.
  11682. *
  11683. * @private
  11684. * @param {*} value The value to query.
  11685. * @param {boolean} inherited Specify returning inherited property names.
  11686. * @returns {Array} Returns the array of property names.
  11687. */
  11688. function arrayLikeKeys(value, inherited) {
  11689. // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  11690. // Safari 9 makes `arguments.length` enumerable in strict mode.
  11691. var result = (isArray(value) || isArguments(value))
  11692. ? baseTimes(value.length, String)
  11693. : [];
  11694. var length = result.length,
  11695. skipIndexes = !!length;
  11696. for (var key in value) {
  11697. if ((inherited || hasOwnProperty.call(value, key)) &&
  11698. !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
  11699. result.push(key);
  11700. }
  11701. }
  11702. return result;
  11703. }
  11704. /**
  11705. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  11706. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  11707. * for equality comparisons.
  11708. *
  11709. * @private
  11710. * @param {Object} object The object to modify.
  11711. * @param {string} key The key of the property to assign.
  11712. * @param {*} value The value to assign.
  11713. */
  11714. function assignValue(object, key, value) {
  11715. var objValue = object[key];
  11716. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  11717. (value === undefined && !(key in object))) {
  11718. object[key] = value;
  11719. }
  11720. }
  11721. /**
  11722. * Gets the index at which the `key` is found in `array` of key-value pairs.
  11723. *
  11724. * @private
  11725. * @param {Array} array The array to inspect.
  11726. * @param {*} key The key to search for.
  11727. * @returns {number} Returns the index of the matched value, else `-1`.
  11728. */
  11729. function assocIndexOf(array, key) {
  11730. var length = array.length;
  11731. while (length--) {
  11732. if (eq(array[length][0], key)) {
  11733. return length;
  11734. }
  11735. }
  11736. return -1;
  11737. }
  11738. /**
  11739. * The base implementation of `_.assign` without support for multiple sources
  11740. * or `customizer` functions.
  11741. *
  11742. * @private
  11743. * @param {Object} object The destination object.
  11744. * @param {Object} source The source object.
  11745. * @returns {Object} Returns `object`.
  11746. */
  11747. function baseAssign(object, source) {
  11748. return object && copyObject(source, keys(source), object);
  11749. }
  11750. /**
  11751. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  11752. * traversed objects.
  11753. *
  11754. * @private
  11755. * @param {*} value The value to clone.
  11756. * @param {boolean} [isDeep] Specify a deep clone.
  11757. * @param {boolean} [isFull] Specify a clone including symbols.
  11758. * @param {Function} [customizer] The function to customize cloning.
  11759. * @param {string} [key] The key of `value`.
  11760. * @param {Object} [object] The parent object of `value`.
  11761. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  11762. * @returns {*} Returns the cloned value.
  11763. */
  11764. function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
  11765. var result;
  11766. if (customizer) {
  11767. result = object ? customizer(value, key, object, stack) : customizer(value);
  11768. }
  11769. if (result !== undefined) {
  11770. return result;
  11771. }
  11772. if (!isObject(value)) {
  11773. return value;
  11774. }
  11775. var isArr = isArray(value);
  11776. if (isArr) {
  11777. result = initCloneArray(value);
  11778. if (!isDeep) {
  11779. return copyArray(value, result);
  11780. }
  11781. } else {
  11782. var tag = getTag(value),
  11783. isFunc = tag == funcTag || tag == genTag;
  11784. if (isBuffer(value)) {
  11785. return cloneBuffer(value, isDeep);
  11786. }
  11787. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  11788. if (isHostObject(value)) {
  11789. return object ? value : {};
  11790. }
  11791. result = initCloneObject(isFunc ? {} : value);
  11792. if (!isDeep) {
  11793. return copySymbols(value, baseAssign(result, value));
  11794. }
  11795. } else {
  11796. if (!cloneableTags[tag]) {
  11797. return object ? value : {};
  11798. }
  11799. result = initCloneByTag(value, tag, baseClone, isDeep);
  11800. }
  11801. }
  11802. // Check for circular references and return its corresponding clone.
  11803. stack || (stack = new Stack);
  11804. var stacked = stack.get(value);
  11805. if (stacked) {
  11806. return stacked;
  11807. }
  11808. stack.set(value, result);
  11809. if (!isArr) {
  11810. var props = isFull ? getAllKeys(value) : keys(value);
  11811. }
  11812. arrayEach(props || value, function(subValue, key) {
  11813. if (props) {
  11814. key = subValue;
  11815. subValue = value[key];
  11816. }
  11817. // Recursively populate clone (susceptible to call stack limits).
  11818. assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
  11819. });
  11820. return result;
  11821. }
  11822. /**
  11823. * The base implementation of `_.create` without support for assigning
  11824. * properties to the created object.
  11825. *
  11826. * @private
  11827. * @param {Object} prototype The object to inherit from.
  11828. * @returns {Object} Returns the new object.
  11829. */
  11830. function baseCreate(proto) {
  11831. return isObject(proto) ? objectCreate(proto) : {};
  11832. }
  11833. /**
  11834. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  11835. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  11836. * symbols of `object`.
  11837. *
  11838. * @private
  11839. * @param {Object} object The object to query.
  11840. * @param {Function} keysFunc The function to get the keys of `object`.
  11841. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  11842. * @returns {Array} Returns the array of property names and symbols.
  11843. */
  11844. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  11845. var result = keysFunc(object);
  11846. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  11847. }
  11848. /**
  11849. * The base implementation of `getTag`.
  11850. *
  11851. * @private
  11852. * @param {*} value The value to query.
  11853. * @returns {string} Returns the `toStringTag`.
  11854. */
  11855. function baseGetTag(value) {
  11856. return objectToString.call(value);
  11857. }
  11858. /**
  11859. * The base implementation of `_.isNative` without bad shim checks.
  11860. *
  11861. * @private
  11862. * @param {*} value The value to check.
  11863. * @returns {boolean} Returns `true` if `value` is a native function,
  11864. * else `false`.
  11865. */
  11866. function baseIsNative(value) {
  11867. if (!isObject(value) || isMasked(value)) {
  11868. return false;
  11869. }
  11870. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  11871. return pattern.test(toSource(value));
  11872. }
  11873. /**
  11874. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  11875. *
  11876. * @private
  11877. * @param {Object} object The object to query.
  11878. * @returns {Array} Returns the array of property names.
  11879. */
  11880. function baseKeys(object) {
  11881. if (!isPrototype(object)) {
  11882. return nativeKeys(object);
  11883. }
  11884. var result = [];
  11885. for (var key in Object(object)) {
  11886. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  11887. result.push(key);
  11888. }
  11889. }
  11890. return result;
  11891. }
  11892. /**
  11893. * Creates a clone of `buffer`.
  11894. *
  11895. * @private
  11896. * @param {Buffer} buffer The buffer to clone.
  11897. * @param {boolean} [isDeep] Specify a deep clone.
  11898. * @returns {Buffer} Returns the cloned buffer.
  11899. */
  11900. function cloneBuffer(buffer, isDeep) {
  11901. if (isDeep) {
  11902. return buffer.slice();
  11903. }
  11904. var result = new buffer.constructor(buffer.length);
  11905. buffer.copy(result);
  11906. return result;
  11907. }
  11908. /**
  11909. * Creates a clone of `arrayBuffer`.
  11910. *
  11911. * @private
  11912. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  11913. * @returns {ArrayBuffer} Returns the cloned array buffer.
  11914. */
  11915. function cloneArrayBuffer(arrayBuffer) {
  11916. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  11917. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  11918. return result;
  11919. }
  11920. /**
  11921. * Creates a clone of `dataView`.
  11922. *
  11923. * @private
  11924. * @param {Object} dataView The data view to clone.
  11925. * @param {boolean} [isDeep] Specify a deep clone.
  11926. * @returns {Object} Returns the cloned data view.
  11927. */
  11928. function cloneDataView(dataView, isDeep) {
  11929. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  11930. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  11931. }
  11932. /**
  11933. * Creates a clone of `map`.
  11934. *
  11935. * @private
  11936. * @param {Object} map The map to clone.
  11937. * @param {Function} cloneFunc The function to clone values.
  11938. * @param {boolean} [isDeep] Specify a deep clone.
  11939. * @returns {Object} Returns the cloned map.
  11940. */
  11941. function cloneMap(map, isDeep, cloneFunc) {
  11942. var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
  11943. return arrayReduce(array, addMapEntry, new map.constructor);
  11944. }
  11945. /**
  11946. * Creates a clone of `regexp`.
  11947. *
  11948. * @private
  11949. * @param {Object} regexp The regexp to clone.
  11950. * @returns {Object} Returns the cloned regexp.
  11951. */
  11952. function cloneRegExp(regexp) {
  11953. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  11954. result.lastIndex = regexp.lastIndex;
  11955. return result;
  11956. }
  11957. /**
  11958. * Creates a clone of `set`.
  11959. *
  11960. * @private
  11961. * @param {Object} set The set to clone.
  11962. * @param {Function} cloneFunc The function to clone values.
  11963. * @param {boolean} [isDeep] Specify a deep clone.
  11964. * @returns {Object} Returns the cloned set.
  11965. */
  11966. function cloneSet(set, isDeep, cloneFunc) {
  11967. var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
  11968. return arrayReduce(array, addSetEntry, new set.constructor);
  11969. }
  11970. /**
  11971. * Creates a clone of the `symbol` object.
  11972. *
  11973. * @private
  11974. * @param {Object} symbol The symbol object to clone.
  11975. * @returns {Object} Returns the cloned symbol object.
  11976. */
  11977. function cloneSymbol(symbol) {
  11978. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  11979. }
  11980. /**
  11981. * Creates a clone of `typedArray`.
  11982. *
  11983. * @private
  11984. * @param {Object} typedArray The typed array to clone.
  11985. * @param {boolean} [isDeep] Specify a deep clone.
  11986. * @returns {Object} Returns the cloned typed array.
  11987. */
  11988. function cloneTypedArray(typedArray, isDeep) {
  11989. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  11990. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  11991. }
  11992. /**
  11993. * Copies the values of `source` to `array`.
  11994. *
  11995. * @private
  11996. * @param {Array} source The array to copy values from.
  11997. * @param {Array} [array=[]] The array to copy values to.
  11998. * @returns {Array} Returns `array`.
  11999. */
  12000. function copyArray(source, array) {
  12001. var index = -1,
  12002. length = source.length;
  12003. array || (array = Array(length));
  12004. while (++index < length) {
  12005. array[index] = source[index];
  12006. }
  12007. return array;
  12008. }
  12009. /**
  12010. * Copies properties of `source` to `object`.
  12011. *
  12012. * @private
  12013. * @param {Object} source The object to copy properties from.
  12014. * @param {Array} props The property identifiers to copy.
  12015. * @param {Object} [object={}] The object to copy properties to.
  12016. * @param {Function} [customizer] The function to customize copied values.
  12017. * @returns {Object} Returns `object`.
  12018. */
  12019. function copyObject(source, props, object, customizer) {
  12020. object || (object = {});
  12021. var index = -1,
  12022. length = props.length;
  12023. while (++index < length) {
  12024. var key = props[index];
  12025. var newValue = customizer
  12026. ? customizer(object[key], source[key], key, object, source)
  12027. : undefined;
  12028. assignValue(object, key, newValue === undefined ? source[key] : newValue);
  12029. }
  12030. return object;
  12031. }
  12032. /**
  12033. * Copies own symbol properties of `source` to `object`.
  12034. *
  12035. * @private
  12036. * @param {Object} source The object to copy symbols from.
  12037. * @param {Object} [object={}] The object to copy symbols to.
  12038. * @returns {Object} Returns `object`.
  12039. */
  12040. function copySymbols(source, object) {
  12041. return copyObject(source, getSymbols(source), object);
  12042. }
  12043. /**
  12044. * Creates an array of own enumerable property names and symbols of `object`.
  12045. *
  12046. * @private
  12047. * @param {Object} object The object to query.
  12048. * @returns {Array} Returns the array of property names and symbols.
  12049. */
  12050. function getAllKeys(object) {
  12051. return baseGetAllKeys(object, keys, getSymbols);
  12052. }
  12053. /**
  12054. * Gets the data for `map`.
  12055. *
  12056. * @private
  12057. * @param {Object} map The map to query.
  12058. * @param {string} key The reference key.
  12059. * @returns {*} Returns the map data.
  12060. */
  12061. function getMapData(map, key) {
  12062. var data = map.__data__;
  12063. return isKeyable(key)
  12064. ? data[typeof key == 'string' ? 'string' : 'hash']
  12065. : data.map;
  12066. }
  12067. /**
  12068. * Gets the native function at `key` of `object`.
  12069. *
  12070. * @private
  12071. * @param {Object} object The object to query.
  12072. * @param {string} key The key of the method to get.
  12073. * @returns {*} Returns the function if it's native, else `undefined`.
  12074. */
  12075. function getNative(object, key) {
  12076. var value = getValue(object, key);
  12077. return baseIsNative(value) ? value : undefined;
  12078. }
  12079. /**
  12080. * Creates an array of the own enumerable symbol properties of `object`.
  12081. *
  12082. * @private
  12083. * @param {Object} object The object to query.
  12084. * @returns {Array} Returns the array of symbols.
  12085. */
  12086. var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
  12087. /**
  12088. * Gets the `toStringTag` of `value`.
  12089. *
  12090. * @private
  12091. * @param {*} value The value to query.
  12092. * @returns {string} Returns the `toStringTag`.
  12093. */
  12094. var getTag = baseGetTag;
  12095. // Fallback for data views, maps, sets, and weak maps in IE 11,
  12096. // for data views in Edge < 14, and promises in Node.js.
  12097. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  12098. (Map && getTag(new Map) != mapTag) ||
  12099. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  12100. (Set && getTag(new Set) != setTag) ||
  12101. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  12102. getTag = function(value) {
  12103. var result = objectToString.call(value),
  12104. Ctor = result == objectTag ? value.constructor : undefined,
  12105. ctorString = Ctor ? toSource(Ctor) : undefined;
  12106. if (ctorString) {
  12107. switch (ctorString) {
  12108. case dataViewCtorString: return dataViewTag;
  12109. case mapCtorString: return mapTag;
  12110. case promiseCtorString: return promiseTag;
  12111. case setCtorString: return setTag;
  12112. case weakMapCtorString: return weakMapTag;
  12113. }
  12114. }
  12115. return result;
  12116. };
  12117. }
  12118. /**
  12119. * Initializes an array clone.
  12120. *
  12121. * @private
  12122. * @param {Array} array The array to clone.
  12123. * @returns {Array} Returns the initialized clone.
  12124. */
  12125. function initCloneArray(array) {
  12126. var length = array.length,
  12127. result = array.constructor(length);
  12128. // Add properties assigned by `RegExp#exec`.
  12129. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  12130. result.index = array.index;
  12131. result.input = array.input;
  12132. }
  12133. return result;
  12134. }
  12135. /**
  12136. * Initializes an object clone.
  12137. *
  12138. * @private
  12139. * @param {Object} object The object to clone.
  12140. * @returns {Object} Returns the initialized clone.
  12141. */
  12142. function initCloneObject(object) {
  12143. return (typeof object.constructor == 'function' && !isPrototype(object))
  12144. ? baseCreate(getPrototype(object))
  12145. : {};
  12146. }
  12147. /**
  12148. * Initializes an object clone based on its `toStringTag`.
  12149. *
  12150. * **Note:** This function only supports cloning values with tags of
  12151. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  12152. *
  12153. * @private
  12154. * @param {Object} object The object to clone.
  12155. * @param {string} tag The `toStringTag` of the object to clone.
  12156. * @param {Function} cloneFunc The function to clone values.
  12157. * @param {boolean} [isDeep] Specify a deep clone.
  12158. * @returns {Object} Returns the initialized clone.
  12159. */
  12160. function initCloneByTag(object, tag, cloneFunc, isDeep) {
  12161. var Ctor = object.constructor;
  12162. switch (tag) {
  12163. case arrayBufferTag:
  12164. return cloneArrayBuffer(object);
  12165. case boolTag:
  12166. case dateTag:
  12167. return new Ctor(+object);
  12168. case dataViewTag:
  12169. return cloneDataView(object, isDeep);
  12170. case float32Tag: case float64Tag:
  12171. case int8Tag: case int16Tag: case int32Tag:
  12172. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  12173. return cloneTypedArray(object, isDeep);
  12174. case mapTag:
  12175. return cloneMap(object, isDeep, cloneFunc);
  12176. case numberTag:
  12177. case stringTag:
  12178. return new Ctor(object);
  12179. case regexpTag:
  12180. return cloneRegExp(object);
  12181. case setTag:
  12182. return cloneSet(object, isDeep, cloneFunc);
  12183. case symbolTag:
  12184. return cloneSymbol(object);
  12185. }
  12186. }
  12187. /**
  12188. * Checks if `value` is a valid array-like index.
  12189. *
  12190. * @private
  12191. * @param {*} value The value to check.
  12192. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  12193. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  12194. */
  12195. function isIndex(value, length) {
  12196. length = length == null ? MAX_SAFE_INTEGER : length;
  12197. return !!length &&
  12198. (typeof value == 'number' || reIsUint.test(value)) &&
  12199. (value > -1 && value % 1 == 0 && value < length);
  12200. }
  12201. /**
  12202. * Checks if `value` is suitable for use as unique object key.
  12203. *
  12204. * @private
  12205. * @param {*} value The value to check.
  12206. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  12207. */
  12208. function isKeyable(value) {
  12209. var type = typeof value;
  12210. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  12211. ? (value !== '__proto__')
  12212. : (value === null);
  12213. }
  12214. /**
  12215. * Checks if `func` has its source masked.
  12216. *
  12217. * @private
  12218. * @param {Function} func The function to check.
  12219. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  12220. */
  12221. function isMasked(func) {
  12222. return !!maskSrcKey && (maskSrcKey in func);
  12223. }
  12224. /**
  12225. * Checks if `value` is likely a prototype object.
  12226. *
  12227. * @private
  12228. * @param {*} value The value to check.
  12229. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  12230. */
  12231. function isPrototype(value) {
  12232. var Ctor = value && value.constructor,
  12233. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  12234. return value === proto;
  12235. }
  12236. /**
  12237. * Converts `func` to its source code.
  12238. *
  12239. * @private
  12240. * @param {Function} func The function to process.
  12241. * @returns {string} Returns the source code.
  12242. */
  12243. function toSource(func) {
  12244. if (func != null) {
  12245. try {
  12246. return funcToString.call(func);
  12247. } catch (e) {}
  12248. try {
  12249. return (func + '');
  12250. } catch (e) {}
  12251. }
  12252. return '';
  12253. }
  12254. /**
  12255. * This method is like `_.clone` except that it recursively clones `value`.
  12256. *
  12257. * @static
  12258. * @memberOf _
  12259. * @since 1.0.0
  12260. * @category Lang
  12261. * @param {*} value The value to recursively clone.
  12262. * @returns {*} Returns the deep cloned value.
  12263. * @see _.clone
  12264. * @example
  12265. *
  12266. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  12267. *
  12268. * var deep = _.cloneDeep(objects);
  12269. * console.log(deep[0] === objects[0]);
  12270. * // => false
  12271. */
  12272. function cloneDeep(value) {
  12273. return baseClone(value, true, true);
  12274. }
  12275. /**
  12276. * Performs a
  12277. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  12278. * comparison between two values to determine if they are equivalent.
  12279. *
  12280. * @static
  12281. * @memberOf _
  12282. * @since 4.0.0
  12283. * @category Lang
  12284. * @param {*} value The value to compare.
  12285. * @param {*} other The other value to compare.
  12286. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  12287. * @example
  12288. *
  12289. * var object = { 'a': 1 };
  12290. * var other = { 'a': 1 };
  12291. *
  12292. * _.eq(object, object);
  12293. * // => true
  12294. *
  12295. * _.eq(object, other);
  12296. * // => false
  12297. *
  12298. * _.eq('a', 'a');
  12299. * // => true
  12300. *
  12301. * _.eq('a', Object('a'));
  12302. * // => false
  12303. *
  12304. * _.eq(NaN, NaN);
  12305. * // => true
  12306. */
  12307. function eq(value, other) {
  12308. return value === other || (value !== value && other !== other);
  12309. }
  12310. /**
  12311. * Checks if `value` is likely an `arguments` object.
  12312. *
  12313. * @static
  12314. * @memberOf _
  12315. * @since 0.1.0
  12316. * @category Lang
  12317. * @param {*} value The value to check.
  12318. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  12319. * else `false`.
  12320. * @example
  12321. *
  12322. * _.isArguments(function() { return arguments; }());
  12323. * // => true
  12324. *
  12325. * _.isArguments([1, 2, 3]);
  12326. * // => false
  12327. */
  12328. function isArguments(value) {
  12329. // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  12330. return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
  12331. (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
  12332. }
  12333. /**
  12334. * Checks if `value` is classified as an `Array` object.
  12335. *
  12336. * @static
  12337. * @memberOf _
  12338. * @since 0.1.0
  12339. * @category Lang
  12340. * @param {*} value The value to check.
  12341. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  12342. * @example
  12343. *
  12344. * _.isArray([1, 2, 3]);
  12345. * // => true
  12346. *
  12347. * _.isArray(document.body.children);
  12348. * // => false
  12349. *
  12350. * _.isArray('abc');
  12351. * // => false
  12352. *
  12353. * _.isArray(_.noop);
  12354. * // => false
  12355. */
  12356. var isArray = Array.isArray;
  12357. /**
  12358. * Checks if `value` is array-like. A value is considered array-like if it's
  12359. * not a function and has a `value.length` that's an integer greater than or
  12360. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  12361. *
  12362. * @static
  12363. * @memberOf _
  12364. * @since 4.0.0
  12365. * @category Lang
  12366. * @param {*} value The value to check.
  12367. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  12368. * @example
  12369. *
  12370. * _.isArrayLike([1, 2, 3]);
  12371. * // => true
  12372. *
  12373. * _.isArrayLike(document.body.children);
  12374. * // => true
  12375. *
  12376. * _.isArrayLike('abc');
  12377. * // => true
  12378. *
  12379. * _.isArrayLike(_.noop);
  12380. * // => false
  12381. */
  12382. function isArrayLike(value) {
  12383. return value != null && isLength(value.length) && !isFunction(value);
  12384. }
  12385. /**
  12386. * This method is like `_.isArrayLike` except that it also checks if `value`
  12387. * is an object.
  12388. *
  12389. * @static
  12390. * @memberOf _
  12391. * @since 4.0.0
  12392. * @category Lang
  12393. * @param {*} value The value to check.
  12394. * @returns {boolean} Returns `true` if `value` is an array-like object,
  12395. * else `false`.
  12396. * @example
  12397. *
  12398. * _.isArrayLikeObject([1, 2, 3]);
  12399. * // => true
  12400. *
  12401. * _.isArrayLikeObject(document.body.children);
  12402. * // => true
  12403. *
  12404. * _.isArrayLikeObject('abc');
  12405. * // => false
  12406. *
  12407. * _.isArrayLikeObject(_.noop);
  12408. * // => false
  12409. */
  12410. function isArrayLikeObject(value) {
  12411. return isObjectLike(value) && isArrayLike(value);
  12412. }
  12413. /**
  12414. * Checks if `value` is a buffer.
  12415. *
  12416. * @static
  12417. * @memberOf _
  12418. * @since 4.3.0
  12419. * @category Lang
  12420. * @param {*} value The value to check.
  12421. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  12422. * @example
  12423. *
  12424. * _.isBuffer(new Buffer(2));
  12425. * // => true
  12426. *
  12427. * _.isBuffer(new Uint8Array(2));
  12428. * // => false
  12429. */
  12430. var isBuffer = nativeIsBuffer || stubFalse;
  12431. /**
  12432. * Checks if `value` is classified as a `Function` object.
  12433. *
  12434. * @static
  12435. * @memberOf _
  12436. * @since 0.1.0
  12437. * @category Lang
  12438. * @param {*} value The value to check.
  12439. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  12440. * @example
  12441. *
  12442. * _.isFunction(_);
  12443. * // => true
  12444. *
  12445. * _.isFunction(/abc/);
  12446. * // => false
  12447. */
  12448. function isFunction(value) {
  12449. // The use of `Object#toString` avoids issues with the `typeof` operator
  12450. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  12451. var tag = isObject(value) ? objectToString.call(value) : '';
  12452. return tag == funcTag || tag == genTag;
  12453. }
  12454. /**
  12455. * Checks if `value` is a valid array-like length.
  12456. *
  12457. * **Note:** This method is loosely based on
  12458. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  12459. *
  12460. * @static
  12461. * @memberOf _
  12462. * @since 4.0.0
  12463. * @category Lang
  12464. * @param {*} value The value to check.
  12465. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  12466. * @example
  12467. *
  12468. * _.isLength(3);
  12469. * // => true
  12470. *
  12471. * _.isLength(Number.MIN_VALUE);
  12472. * // => false
  12473. *
  12474. * _.isLength(Infinity);
  12475. * // => false
  12476. *
  12477. * _.isLength('3');
  12478. * // => false
  12479. */
  12480. function isLength(value) {
  12481. return typeof value == 'number' &&
  12482. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  12483. }
  12484. /**
  12485. * Checks if `value` is the
  12486. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  12487. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  12488. *
  12489. * @static
  12490. * @memberOf _
  12491. * @since 0.1.0
  12492. * @category Lang
  12493. * @param {*} value The value to check.
  12494. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  12495. * @example
  12496. *
  12497. * _.isObject({});
  12498. * // => true
  12499. *
  12500. * _.isObject([1, 2, 3]);
  12501. * // => true
  12502. *
  12503. * _.isObject(_.noop);
  12504. * // => true
  12505. *
  12506. * _.isObject(null);
  12507. * // => false
  12508. */
  12509. function isObject(value) {
  12510. var type = typeof value;
  12511. return !!value && (type == 'object' || type == 'function');
  12512. }
  12513. /**
  12514. * Checks if `value` is object-like. A value is object-like if it's not `null`
  12515. * and has a `typeof` result of "object".
  12516. *
  12517. * @static
  12518. * @memberOf _
  12519. * @since 4.0.0
  12520. * @category Lang
  12521. * @param {*} value The value to check.
  12522. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  12523. * @example
  12524. *
  12525. * _.isObjectLike({});
  12526. * // => true
  12527. *
  12528. * _.isObjectLike([1, 2, 3]);
  12529. * // => true
  12530. *
  12531. * _.isObjectLike(_.noop);
  12532. * // => false
  12533. *
  12534. * _.isObjectLike(null);
  12535. * // => false
  12536. */
  12537. function isObjectLike(value) {
  12538. return !!value && typeof value == 'object';
  12539. }
  12540. /**
  12541. * Creates an array of the own enumerable property names of `object`.
  12542. *
  12543. * **Note:** Non-object values are coerced to objects. See the
  12544. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  12545. * for more details.
  12546. *
  12547. * @static
  12548. * @since 0.1.0
  12549. * @memberOf _
  12550. * @category Object
  12551. * @param {Object} object The object to query.
  12552. * @returns {Array} Returns the array of property names.
  12553. * @example
  12554. *
  12555. * function Foo() {
  12556. * this.a = 1;
  12557. * this.b = 2;
  12558. * }
  12559. *
  12560. * Foo.prototype.c = 3;
  12561. *
  12562. * _.keys(new Foo);
  12563. * // => ['a', 'b'] (iteration order is not guaranteed)
  12564. *
  12565. * _.keys('hi');
  12566. * // => ['0', '1']
  12567. */
  12568. function keys(object) {
  12569. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  12570. }
  12571. /**
  12572. * This method returns a new empty array.
  12573. *
  12574. * @static
  12575. * @memberOf _
  12576. * @since 4.13.0
  12577. * @category Util
  12578. * @returns {Array} Returns the new empty array.
  12579. * @example
  12580. *
  12581. * var arrays = _.times(2, _.stubArray);
  12582. *
  12583. * console.log(arrays);
  12584. * // => [[], []]
  12585. *
  12586. * console.log(arrays[0] === arrays[1]);
  12587. * // => false
  12588. */
  12589. function stubArray() {
  12590. return [];
  12591. }
  12592. /**
  12593. * This method returns `false`.
  12594. *
  12595. * @static
  12596. * @memberOf _
  12597. * @since 4.13.0
  12598. * @category Util
  12599. * @returns {boolean} Returns `false`.
  12600. * @example
  12601. *
  12602. * _.times(2, _.stubFalse);
  12603. * // => [false, false]
  12604. */
  12605. function stubFalse() {
  12606. return false;
  12607. }
  12608. module.exports = cloneDeep;
  12609. /***/ }),
  12610. /***/ 72378:
  12611. /***/ ((module, exports, __webpack_require__) => {
  12612. /* module decorator */ module = __webpack_require__.nmd(module);
  12613. /**
  12614. * Lodash (Custom Build) <https://lodash.com/>
  12615. * Build: `lodash modularize exports="npm" -o ./`
  12616. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  12617. * Released under MIT license <https://lodash.com/license>
  12618. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  12619. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  12620. */
  12621. /** Used as the size to enable large array optimizations. */
  12622. var LARGE_ARRAY_SIZE = 200;
  12623. /** Used to stand-in for `undefined` hash values. */
  12624. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  12625. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  12626. var HOT_COUNT = 800,
  12627. HOT_SPAN = 16;
  12628. /** Used as references for various `Number` constants. */
  12629. var MAX_SAFE_INTEGER = 9007199254740991;
  12630. /** `Object#toString` result references. */
  12631. var argsTag = '[object Arguments]',
  12632. arrayTag = '[object Array]',
  12633. asyncTag = '[object AsyncFunction]',
  12634. boolTag = '[object Boolean]',
  12635. dateTag = '[object Date]',
  12636. errorTag = '[object Error]',
  12637. funcTag = '[object Function]',
  12638. genTag = '[object GeneratorFunction]',
  12639. mapTag = '[object Map]',
  12640. numberTag = '[object Number]',
  12641. nullTag = '[object Null]',
  12642. objectTag = '[object Object]',
  12643. proxyTag = '[object Proxy]',
  12644. regexpTag = '[object RegExp]',
  12645. setTag = '[object Set]',
  12646. stringTag = '[object String]',
  12647. undefinedTag = '[object Undefined]',
  12648. weakMapTag = '[object WeakMap]';
  12649. var arrayBufferTag = '[object ArrayBuffer]',
  12650. dataViewTag = '[object DataView]',
  12651. float32Tag = '[object Float32Array]',
  12652. float64Tag = '[object Float64Array]',
  12653. int8Tag = '[object Int8Array]',
  12654. int16Tag = '[object Int16Array]',
  12655. int32Tag = '[object Int32Array]',
  12656. uint8Tag = '[object Uint8Array]',
  12657. uint8ClampedTag = '[object Uint8ClampedArray]',
  12658. uint16Tag = '[object Uint16Array]',
  12659. uint32Tag = '[object Uint32Array]';
  12660. /**
  12661. * Used to match `RegExp`
  12662. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  12663. */
  12664. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  12665. /** Used to detect host constructors (Safari). */
  12666. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  12667. /** Used to detect unsigned integer values. */
  12668. var reIsUint = /^(?:0|[1-9]\d*)$/;
  12669. /** Used to identify `toStringTag` values of typed arrays. */
  12670. var typedArrayTags = {};
  12671. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  12672. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  12673. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  12674. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  12675. typedArrayTags[uint32Tag] = true;
  12676. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  12677. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  12678. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  12679. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  12680. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  12681. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  12682. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  12683. typedArrayTags[weakMapTag] = false;
  12684. /** Detect free variable `global` from Node.js. */
  12685. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  12686. /** Detect free variable `self`. */
  12687. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  12688. /** Used as a reference to the global object. */
  12689. var root = freeGlobal || freeSelf || Function('return this')();
  12690. /** Detect free variable `exports`. */
  12691. var freeExports = true && exports && !exports.nodeType && exports;
  12692. /** Detect free variable `module`. */
  12693. var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
  12694. /** Detect the popular CommonJS extension `module.exports`. */
  12695. var moduleExports = freeModule && freeModule.exports === freeExports;
  12696. /** Detect free variable `process` from Node.js. */
  12697. var freeProcess = moduleExports && freeGlobal.process;
  12698. /** Used to access faster Node.js helpers. */
  12699. var nodeUtil = (function() {
  12700. try {
  12701. // Use `util.types` for Node.js 10+.
  12702. var types = freeModule && freeModule.require && freeModule.require('util').types;
  12703. if (types) {
  12704. return types;
  12705. }
  12706. // Legacy `process.binding('util')` for Node.js < 10.
  12707. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  12708. } catch (e) {}
  12709. }());
  12710. /* Node.js helper references. */
  12711. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  12712. /**
  12713. * A faster alternative to `Function#apply`, this function invokes `func`
  12714. * with the `this` binding of `thisArg` and the arguments of `args`.
  12715. *
  12716. * @private
  12717. * @param {Function} func The function to invoke.
  12718. * @param {*} thisArg The `this` binding of `func`.
  12719. * @param {Array} args The arguments to invoke `func` with.
  12720. * @returns {*} Returns the result of `func`.
  12721. */
  12722. function apply(func, thisArg, args) {
  12723. switch (args.length) {
  12724. case 0: return func.call(thisArg);
  12725. case 1: return func.call(thisArg, args[0]);
  12726. case 2: return func.call(thisArg, args[0], args[1]);
  12727. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  12728. }
  12729. return func.apply(thisArg, args);
  12730. }
  12731. /**
  12732. * The base implementation of `_.times` without support for iteratee shorthands
  12733. * or max array length checks.
  12734. *
  12735. * @private
  12736. * @param {number} n The number of times to invoke `iteratee`.
  12737. * @param {Function} iteratee The function invoked per iteration.
  12738. * @returns {Array} Returns the array of results.
  12739. */
  12740. function baseTimes(n, iteratee) {
  12741. var index = -1,
  12742. result = Array(n);
  12743. while (++index < n) {
  12744. result[index] = iteratee(index);
  12745. }
  12746. return result;
  12747. }
  12748. /**
  12749. * The base implementation of `_.unary` without support for storing metadata.
  12750. *
  12751. * @private
  12752. * @param {Function} func The function to cap arguments for.
  12753. * @returns {Function} Returns the new capped function.
  12754. */
  12755. function baseUnary(func) {
  12756. return function(value) {
  12757. return func(value);
  12758. };
  12759. }
  12760. /**
  12761. * Gets the value at `key` of `object`.
  12762. *
  12763. * @private
  12764. * @param {Object} [object] The object to query.
  12765. * @param {string} key The key of the property to get.
  12766. * @returns {*} Returns the property value.
  12767. */
  12768. function getValue(object, key) {
  12769. return object == null ? undefined : object[key];
  12770. }
  12771. /**
  12772. * Creates a unary function that invokes `func` with its argument transformed.
  12773. *
  12774. * @private
  12775. * @param {Function} func The function to wrap.
  12776. * @param {Function} transform The argument transform.
  12777. * @returns {Function} Returns the new function.
  12778. */
  12779. function overArg(func, transform) {
  12780. return function(arg) {
  12781. return func(transform(arg));
  12782. };
  12783. }
  12784. /** Used for built-in method references. */
  12785. var arrayProto = Array.prototype,
  12786. funcProto = Function.prototype,
  12787. objectProto = Object.prototype;
  12788. /** Used to detect overreaching core-js shims. */
  12789. var coreJsData = root['__core-js_shared__'];
  12790. /** Used to resolve the decompiled source of functions. */
  12791. var funcToString = funcProto.toString;
  12792. /** Used to check objects for own properties. */
  12793. var hasOwnProperty = objectProto.hasOwnProperty;
  12794. /** Used to detect methods masquerading as native. */
  12795. var maskSrcKey = (function() {
  12796. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  12797. return uid ? ('Symbol(src)_1.' + uid) : '';
  12798. }());
  12799. /**
  12800. * Used to resolve the
  12801. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  12802. * of values.
  12803. */
  12804. var nativeObjectToString = objectProto.toString;
  12805. /** Used to infer the `Object` constructor. */
  12806. var objectCtorString = funcToString.call(Object);
  12807. /** Used to detect if a method is native. */
  12808. var reIsNative = RegExp('^' +
  12809. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  12810. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  12811. );
  12812. /** Built-in value references. */
  12813. var Buffer = moduleExports ? root.Buffer : undefined,
  12814. Symbol = root.Symbol,
  12815. Uint8Array = root.Uint8Array,
  12816. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
  12817. getPrototype = overArg(Object.getPrototypeOf, Object),
  12818. objectCreate = Object.create,
  12819. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  12820. splice = arrayProto.splice,
  12821. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  12822. var defineProperty = (function() {
  12823. try {
  12824. var func = getNative(Object, 'defineProperty');
  12825. func({}, '', {});
  12826. return func;
  12827. } catch (e) {}
  12828. }());
  12829. /* Built-in method references for those with the same name as other `lodash` methods. */
  12830. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  12831. nativeMax = Math.max,
  12832. nativeNow = Date.now;
  12833. /* Built-in method references that are verified to be native. */
  12834. var Map = getNative(root, 'Map'),
  12835. nativeCreate = getNative(Object, 'create');
  12836. /**
  12837. * The base implementation of `_.create` without support for assigning
  12838. * properties to the created object.
  12839. *
  12840. * @private
  12841. * @param {Object} proto The object to inherit from.
  12842. * @returns {Object} Returns the new object.
  12843. */
  12844. var baseCreate = (function() {
  12845. function object() {}
  12846. return function(proto) {
  12847. if (!isObject(proto)) {
  12848. return {};
  12849. }
  12850. if (objectCreate) {
  12851. return objectCreate(proto);
  12852. }
  12853. object.prototype = proto;
  12854. var result = new object;
  12855. object.prototype = undefined;
  12856. return result;
  12857. };
  12858. }());
  12859. /**
  12860. * Creates a hash object.
  12861. *
  12862. * @private
  12863. * @constructor
  12864. * @param {Array} [entries] The key-value pairs to cache.
  12865. */
  12866. function Hash(entries) {
  12867. var index = -1,
  12868. length = entries == null ? 0 : entries.length;
  12869. this.clear();
  12870. while (++index < length) {
  12871. var entry = entries[index];
  12872. this.set(entry[0], entry[1]);
  12873. }
  12874. }
  12875. /**
  12876. * Removes all key-value entries from the hash.
  12877. *
  12878. * @private
  12879. * @name clear
  12880. * @memberOf Hash
  12881. */
  12882. function hashClear() {
  12883. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  12884. this.size = 0;
  12885. }
  12886. /**
  12887. * Removes `key` and its value from the hash.
  12888. *
  12889. * @private
  12890. * @name delete
  12891. * @memberOf Hash
  12892. * @param {Object} hash The hash to modify.
  12893. * @param {string} key The key of the value to remove.
  12894. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  12895. */
  12896. function hashDelete(key) {
  12897. var result = this.has(key) && delete this.__data__[key];
  12898. this.size -= result ? 1 : 0;
  12899. return result;
  12900. }
  12901. /**
  12902. * Gets the hash value for `key`.
  12903. *
  12904. * @private
  12905. * @name get
  12906. * @memberOf Hash
  12907. * @param {string} key The key of the value to get.
  12908. * @returns {*} Returns the entry value.
  12909. */
  12910. function hashGet(key) {
  12911. var data = this.__data__;
  12912. if (nativeCreate) {
  12913. var result = data[key];
  12914. return result === HASH_UNDEFINED ? undefined : result;
  12915. }
  12916. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  12917. }
  12918. /**
  12919. * Checks if a hash value for `key` exists.
  12920. *
  12921. * @private
  12922. * @name has
  12923. * @memberOf Hash
  12924. * @param {string} key The key of the entry to check.
  12925. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  12926. */
  12927. function hashHas(key) {
  12928. var data = this.__data__;
  12929. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  12930. }
  12931. /**
  12932. * Sets the hash `key` to `value`.
  12933. *
  12934. * @private
  12935. * @name set
  12936. * @memberOf Hash
  12937. * @param {string} key The key of the value to set.
  12938. * @param {*} value The value to set.
  12939. * @returns {Object} Returns the hash instance.
  12940. */
  12941. function hashSet(key, value) {
  12942. var data = this.__data__;
  12943. this.size += this.has(key) ? 0 : 1;
  12944. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  12945. return this;
  12946. }
  12947. // Add methods to `Hash`.
  12948. Hash.prototype.clear = hashClear;
  12949. Hash.prototype['delete'] = hashDelete;
  12950. Hash.prototype.get = hashGet;
  12951. Hash.prototype.has = hashHas;
  12952. Hash.prototype.set = hashSet;
  12953. /**
  12954. * Creates an list cache object.
  12955. *
  12956. * @private
  12957. * @constructor
  12958. * @param {Array} [entries] The key-value pairs to cache.
  12959. */
  12960. function ListCache(entries) {
  12961. var index = -1,
  12962. length = entries == null ? 0 : entries.length;
  12963. this.clear();
  12964. while (++index < length) {
  12965. var entry = entries[index];
  12966. this.set(entry[0], entry[1]);
  12967. }
  12968. }
  12969. /**
  12970. * Removes all key-value entries from the list cache.
  12971. *
  12972. * @private
  12973. * @name clear
  12974. * @memberOf ListCache
  12975. */
  12976. function listCacheClear() {
  12977. this.__data__ = [];
  12978. this.size = 0;
  12979. }
  12980. /**
  12981. * Removes `key` and its value from the list cache.
  12982. *
  12983. * @private
  12984. * @name delete
  12985. * @memberOf ListCache
  12986. * @param {string} key The key of the value to remove.
  12987. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  12988. */
  12989. function listCacheDelete(key) {
  12990. var data = this.__data__,
  12991. index = assocIndexOf(data, key);
  12992. if (index < 0) {
  12993. return false;
  12994. }
  12995. var lastIndex = data.length - 1;
  12996. if (index == lastIndex) {
  12997. data.pop();
  12998. } else {
  12999. splice.call(data, index, 1);
  13000. }
  13001. --this.size;
  13002. return true;
  13003. }
  13004. /**
  13005. * Gets the list cache value for `key`.
  13006. *
  13007. * @private
  13008. * @name get
  13009. * @memberOf ListCache
  13010. * @param {string} key The key of the value to get.
  13011. * @returns {*} Returns the entry value.
  13012. */
  13013. function listCacheGet(key) {
  13014. var data = this.__data__,
  13015. index = assocIndexOf(data, key);
  13016. return index < 0 ? undefined : data[index][1];
  13017. }
  13018. /**
  13019. * Checks if a list cache value for `key` exists.
  13020. *
  13021. * @private
  13022. * @name has
  13023. * @memberOf ListCache
  13024. * @param {string} key The key of the entry to check.
  13025. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13026. */
  13027. function listCacheHas(key) {
  13028. return assocIndexOf(this.__data__, key) > -1;
  13029. }
  13030. /**
  13031. * Sets the list cache `key` to `value`.
  13032. *
  13033. * @private
  13034. * @name set
  13035. * @memberOf ListCache
  13036. * @param {string} key The key of the value to set.
  13037. * @param {*} value The value to set.
  13038. * @returns {Object} Returns the list cache instance.
  13039. */
  13040. function listCacheSet(key, value) {
  13041. var data = this.__data__,
  13042. index = assocIndexOf(data, key);
  13043. if (index < 0) {
  13044. ++this.size;
  13045. data.push([key, value]);
  13046. } else {
  13047. data[index][1] = value;
  13048. }
  13049. return this;
  13050. }
  13051. // Add methods to `ListCache`.
  13052. ListCache.prototype.clear = listCacheClear;
  13053. ListCache.prototype['delete'] = listCacheDelete;
  13054. ListCache.prototype.get = listCacheGet;
  13055. ListCache.prototype.has = listCacheHas;
  13056. ListCache.prototype.set = listCacheSet;
  13057. /**
  13058. * Creates a map cache object to store key-value pairs.
  13059. *
  13060. * @private
  13061. * @constructor
  13062. * @param {Array} [entries] The key-value pairs to cache.
  13063. */
  13064. function MapCache(entries) {
  13065. var index = -1,
  13066. length = entries == null ? 0 : entries.length;
  13067. this.clear();
  13068. while (++index < length) {
  13069. var entry = entries[index];
  13070. this.set(entry[0], entry[1]);
  13071. }
  13072. }
  13073. /**
  13074. * Removes all key-value entries from the map.
  13075. *
  13076. * @private
  13077. * @name clear
  13078. * @memberOf MapCache
  13079. */
  13080. function mapCacheClear() {
  13081. this.size = 0;
  13082. this.__data__ = {
  13083. 'hash': new Hash,
  13084. 'map': new (Map || ListCache),
  13085. 'string': new Hash
  13086. };
  13087. }
  13088. /**
  13089. * Removes `key` and its value from the map.
  13090. *
  13091. * @private
  13092. * @name delete
  13093. * @memberOf MapCache
  13094. * @param {string} key The key of the value to remove.
  13095. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13096. */
  13097. function mapCacheDelete(key) {
  13098. var result = getMapData(this, key)['delete'](key);
  13099. this.size -= result ? 1 : 0;
  13100. return result;
  13101. }
  13102. /**
  13103. * Gets the map value for `key`.
  13104. *
  13105. * @private
  13106. * @name get
  13107. * @memberOf MapCache
  13108. * @param {string} key The key of the value to get.
  13109. * @returns {*} Returns the entry value.
  13110. */
  13111. function mapCacheGet(key) {
  13112. return getMapData(this, key).get(key);
  13113. }
  13114. /**
  13115. * Checks if a map value for `key` exists.
  13116. *
  13117. * @private
  13118. * @name has
  13119. * @memberOf MapCache
  13120. * @param {string} key The key of the entry to check.
  13121. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13122. */
  13123. function mapCacheHas(key) {
  13124. return getMapData(this, key).has(key);
  13125. }
  13126. /**
  13127. * Sets the map `key` to `value`.
  13128. *
  13129. * @private
  13130. * @name set
  13131. * @memberOf MapCache
  13132. * @param {string} key The key of the value to set.
  13133. * @param {*} value The value to set.
  13134. * @returns {Object} Returns the map cache instance.
  13135. */
  13136. function mapCacheSet(key, value) {
  13137. var data = getMapData(this, key),
  13138. size = data.size;
  13139. data.set(key, value);
  13140. this.size += data.size == size ? 0 : 1;
  13141. return this;
  13142. }
  13143. // Add methods to `MapCache`.
  13144. MapCache.prototype.clear = mapCacheClear;
  13145. MapCache.prototype['delete'] = mapCacheDelete;
  13146. MapCache.prototype.get = mapCacheGet;
  13147. MapCache.prototype.has = mapCacheHas;
  13148. MapCache.prototype.set = mapCacheSet;
  13149. /**
  13150. * Creates a stack cache object to store key-value pairs.
  13151. *
  13152. * @private
  13153. * @constructor
  13154. * @param {Array} [entries] The key-value pairs to cache.
  13155. */
  13156. function Stack(entries) {
  13157. var data = this.__data__ = new ListCache(entries);
  13158. this.size = data.size;
  13159. }
  13160. /**
  13161. * Removes all key-value entries from the stack.
  13162. *
  13163. * @private
  13164. * @name clear
  13165. * @memberOf Stack
  13166. */
  13167. function stackClear() {
  13168. this.__data__ = new ListCache;
  13169. this.size = 0;
  13170. }
  13171. /**
  13172. * Removes `key` and its value from the stack.
  13173. *
  13174. * @private
  13175. * @name delete
  13176. * @memberOf Stack
  13177. * @param {string} key The key of the value to remove.
  13178. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13179. */
  13180. function stackDelete(key) {
  13181. var data = this.__data__,
  13182. result = data['delete'](key);
  13183. this.size = data.size;
  13184. return result;
  13185. }
  13186. /**
  13187. * Gets the stack value for `key`.
  13188. *
  13189. * @private
  13190. * @name get
  13191. * @memberOf Stack
  13192. * @param {string} key The key of the value to get.
  13193. * @returns {*} Returns the entry value.
  13194. */
  13195. function stackGet(key) {
  13196. return this.__data__.get(key);
  13197. }
  13198. /**
  13199. * Checks if a stack value for `key` exists.
  13200. *
  13201. * @private
  13202. * @name has
  13203. * @memberOf Stack
  13204. * @param {string} key The key of the entry to check.
  13205. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13206. */
  13207. function stackHas(key) {
  13208. return this.__data__.has(key);
  13209. }
  13210. /**
  13211. * Sets the stack `key` to `value`.
  13212. *
  13213. * @private
  13214. * @name set
  13215. * @memberOf Stack
  13216. * @param {string} key The key of the value to set.
  13217. * @param {*} value The value to set.
  13218. * @returns {Object} Returns the stack cache instance.
  13219. */
  13220. function stackSet(key, value) {
  13221. var data = this.__data__;
  13222. if (data instanceof ListCache) {
  13223. var pairs = data.__data__;
  13224. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  13225. pairs.push([key, value]);
  13226. this.size = ++data.size;
  13227. return this;
  13228. }
  13229. data = this.__data__ = new MapCache(pairs);
  13230. }
  13231. data.set(key, value);
  13232. this.size = data.size;
  13233. return this;
  13234. }
  13235. // Add methods to `Stack`.
  13236. Stack.prototype.clear = stackClear;
  13237. Stack.prototype['delete'] = stackDelete;
  13238. Stack.prototype.get = stackGet;
  13239. Stack.prototype.has = stackHas;
  13240. Stack.prototype.set = stackSet;
  13241. /**
  13242. * Creates an array of the enumerable property names of the array-like `value`.
  13243. *
  13244. * @private
  13245. * @param {*} value The value to query.
  13246. * @param {boolean} inherited Specify returning inherited property names.
  13247. * @returns {Array} Returns the array of property names.
  13248. */
  13249. function arrayLikeKeys(value, inherited) {
  13250. var isArr = isArray(value),
  13251. isArg = !isArr && isArguments(value),
  13252. isBuff = !isArr && !isArg && isBuffer(value),
  13253. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  13254. skipIndexes = isArr || isArg || isBuff || isType,
  13255. result = skipIndexes ? baseTimes(value.length, String) : [],
  13256. length = result.length;
  13257. for (var key in value) {
  13258. if ((inherited || hasOwnProperty.call(value, key)) &&
  13259. !(skipIndexes && (
  13260. // Safari 9 has enumerable `arguments.length` in strict mode.
  13261. key == 'length' ||
  13262. // Node.js 0.10 has enumerable non-index properties on buffers.
  13263. (isBuff && (key == 'offset' || key == 'parent')) ||
  13264. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  13265. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  13266. // Skip index properties.
  13267. isIndex(key, length)
  13268. ))) {
  13269. result.push(key);
  13270. }
  13271. }
  13272. return result;
  13273. }
  13274. /**
  13275. * This function is like `assignValue` except that it doesn't assign
  13276. * `undefined` values.
  13277. *
  13278. * @private
  13279. * @param {Object} object The object to modify.
  13280. * @param {string} key The key of the property to assign.
  13281. * @param {*} value The value to assign.
  13282. */
  13283. function assignMergeValue(object, key, value) {
  13284. if ((value !== undefined && !eq(object[key], value)) ||
  13285. (value === undefined && !(key in object))) {
  13286. baseAssignValue(object, key, value);
  13287. }
  13288. }
  13289. /**
  13290. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  13291. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  13292. * for equality comparisons.
  13293. *
  13294. * @private
  13295. * @param {Object} object The object to modify.
  13296. * @param {string} key The key of the property to assign.
  13297. * @param {*} value The value to assign.
  13298. */
  13299. function assignValue(object, key, value) {
  13300. var objValue = object[key];
  13301. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  13302. (value === undefined && !(key in object))) {
  13303. baseAssignValue(object, key, value);
  13304. }
  13305. }
  13306. /**
  13307. * Gets the index at which the `key` is found in `array` of key-value pairs.
  13308. *
  13309. * @private
  13310. * @param {Array} array The array to inspect.
  13311. * @param {*} key The key to search for.
  13312. * @returns {number} Returns the index of the matched value, else `-1`.
  13313. */
  13314. function assocIndexOf(array, key) {
  13315. var length = array.length;
  13316. while (length--) {
  13317. if (eq(array[length][0], key)) {
  13318. return length;
  13319. }
  13320. }
  13321. return -1;
  13322. }
  13323. /**
  13324. * The base implementation of `assignValue` and `assignMergeValue` without
  13325. * value checks.
  13326. *
  13327. * @private
  13328. * @param {Object} object The object to modify.
  13329. * @param {string} key The key of the property to assign.
  13330. * @param {*} value The value to assign.
  13331. */
  13332. function baseAssignValue(object, key, value) {
  13333. if (key == '__proto__' && defineProperty) {
  13334. defineProperty(object, key, {
  13335. 'configurable': true,
  13336. 'enumerable': true,
  13337. 'value': value,
  13338. 'writable': true
  13339. });
  13340. } else {
  13341. object[key] = value;
  13342. }
  13343. }
  13344. /**
  13345. * The base implementation of `baseForOwn` which iterates over `object`
  13346. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  13347. * Iteratee functions may exit iteration early by explicitly returning `false`.
  13348. *
  13349. * @private
  13350. * @param {Object} object The object to iterate over.
  13351. * @param {Function} iteratee The function invoked per iteration.
  13352. * @param {Function} keysFunc The function to get the keys of `object`.
  13353. * @returns {Object} Returns `object`.
  13354. */
  13355. var baseFor = createBaseFor();
  13356. /**
  13357. * The base implementation of `getTag` without fallbacks for buggy environments.
  13358. *
  13359. * @private
  13360. * @param {*} value The value to query.
  13361. * @returns {string} Returns the `toStringTag`.
  13362. */
  13363. function baseGetTag(value) {
  13364. if (value == null) {
  13365. return value === undefined ? undefinedTag : nullTag;
  13366. }
  13367. return (symToStringTag && symToStringTag in Object(value))
  13368. ? getRawTag(value)
  13369. : objectToString(value);
  13370. }
  13371. /**
  13372. * The base implementation of `_.isArguments`.
  13373. *
  13374. * @private
  13375. * @param {*} value The value to check.
  13376. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  13377. */
  13378. function baseIsArguments(value) {
  13379. return isObjectLike(value) && baseGetTag(value) == argsTag;
  13380. }
  13381. /**
  13382. * The base implementation of `_.isNative` without bad shim checks.
  13383. *
  13384. * @private
  13385. * @param {*} value The value to check.
  13386. * @returns {boolean} Returns `true` if `value` is a native function,
  13387. * else `false`.
  13388. */
  13389. function baseIsNative(value) {
  13390. if (!isObject(value) || isMasked(value)) {
  13391. return false;
  13392. }
  13393. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  13394. return pattern.test(toSource(value));
  13395. }
  13396. /**
  13397. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  13398. *
  13399. * @private
  13400. * @param {*} value The value to check.
  13401. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  13402. */
  13403. function baseIsTypedArray(value) {
  13404. return isObjectLike(value) &&
  13405. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  13406. }
  13407. /**
  13408. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  13409. *
  13410. * @private
  13411. * @param {Object} object The object to query.
  13412. * @returns {Array} Returns the array of property names.
  13413. */
  13414. function baseKeysIn(object) {
  13415. if (!isObject(object)) {
  13416. return nativeKeysIn(object);
  13417. }
  13418. var isProto = isPrototype(object),
  13419. result = [];
  13420. for (var key in object) {
  13421. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  13422. result.push(key);
  13423. }
  13424. }
  13425. return result;
  13426. }
  13427. /**
  13428. * The base implementation of `_.merge` without support for multiple sources.
  13429. *
  13430. * @private
  13431. * @param {Object} object The destination object.
  13432. * @param {Object} source The source object.
  13433. * @param {number} srcIndex The index of `source`.
  13434. * @param {Function} [customizer] The function to customize merged values.
  13435. * @param {Object} [stack] Tracks traversed source values and their merged
  13436. * counterparts.
  13437. */
  13438. function baseMerge(object, source, srcIndex, customizer, stack) {
  13439. if (object === source) {
  13440. return;
  13441. }
  13442. baseFor(source, function(srcValue, key) {
  13443. stack || (stack = new Stack);
  13444. if (isObject(srcValue)) {
  13445. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  13446. }
  13447. else {
  13448. var newValue = customizer
  13449. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  13450. : undefined;
  13451. if (newValue === undefined) {
  13452. newValue = srcValue;
  13453. }
  13454. assignMergeValue(object, key, newValue);
  13455. }
  13456. }, keysIn);
  13457. }
  13458. /**
  13459. * A specialized version of `baseMerge` for arrays and objects which performs
  13460. * deep merges and tracks traversed objects enabling objects with circular
  13461. * references to be merged.
  13462. *
  13463. * @private
  13464. * @param {Object} object The destination object.
  13465. * @param {Object} source The source object.
  13466. * @param {string} key The key of the value to merge.
  13467. * @param {number} srcIndex The index of `source`.
  13468. * @param {Function} mergeFunc The function to merge values.
  13469. * @param {Function} [customizer] The function to customize assigned values.
  13470. * @param {Object} [stack] Tracks traversed source values and their merged
  13471. * counterparts.
  13472. */
  13473. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  13474. var objValue = safeGet(object, key),
  13475. srcValue = safeGet(source, key),
  13476. stacked = stack.get(srcValue);
  13477. if (stacked) {
  13478. assignMergeValue(object, key, stacked);
  13479. return;
  13480. }
  13481. var newValue = customizer
  13482. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  13483. : undefined;
  13484. var isCommon = newValue === undefined;
  13485. if (isCommon) {
  13486. var isArr = isArray(srcValue),
  13487. isBuff = !isArr && isBuffer(srcValue),
  13488. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  13489. newValue = srcValue;
  13490. if (isArr || isBuff || isTyped) {
  13491. if (isArray(objValue)) {
  13492. newValue = objValue;
  13493. }
  13494. else if (isArrayLikeObject(objValue)) {
  13495. newValue = copyArray(objValue);
  13496. }
  13497. else if (isBuff) {
  13498. isCommon = false;
  13499. newValue = cloneBuffer(srcValue, true);
  13500. }
  13501. else if (isTyped) {
  13502. isCommon = false;
  13503. newValue = cloneTypedArray(srcValue, true);
  13504. }
  13505. else {
  13506. newValue = [];
  13507. }
  13508. }
  13509. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  13510. newValue = objValue;
  13511. if (isArguments(objValue)) {
  13512. newValue = toPlainObject(objValue);
  13513. }
  13514. else if (!isObject(objValue) || isFunction(objValue)) {
  13515. newValue = initCloneObject(srcValue);
  13516. }
  13517. }
  13518. else {
  13519. isCommon = false;
  13520. }
  13521. }
  13522. if (isCommon) {
  13523. // Recursively merge objects and arrays (susceptible to call stack limits).
  13524. stack.set(srcValue, newValue);
  13525. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  13526. stack['delete'](srcValue);
  13527. }
  13528. assignMergeValue(object, key, newValue);
  13529. }
  13530. /**
  13531. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  13532. *
  13533. * @private
  13534. * @param {Function} func The function to apply a rest parameter to.
  13535. * @param {number} [start=func.length-1] The start position of the rest parameter.
  13536. * @returns {Function} Returns the new function.
  13537. */
  13538. function baseRest(func, start) {
  13539. return setToString(overRest(func, start, identity), func + '');
  13540. }
  13541. /**
  13542. * The base implementation of `setToString` without support for hot loop shorting.
  13543. *
  13544. * @private
  13545. * @param {Function} func The function to modify.
  13546. * @param {Function} string The `toString` result.
  13547. * @returns {Function} Returns `func`.
  13548. */
  13549. var baseSetToString = !defineProperty ? identity : function(func, string) {
  13550. return defineProperty(func, 'toString', {
  13551. 'configurable': true,
  13552. 'enumerable': false,
  13553. 'value': constant(string),
  13554. 'writable': true
  13555. });
  13556. };
  13557. /**
  13558. * Creates a clone of `buffer`.
  13559. *
  13560. * @private
  13561. * @param {Buffer} buffer The buffer to clone.
  13562. * @param {boolean} [isDeep] Specify a deep clone.
  13563. * @returns {Buffer} Returns the cloned buffer.
  13564. */
  13565. function cloneBuffer(buffer, isDeep) {
  13566. if (isDeep) {
  13567. return buffer.slice();
  13568. }
  13569. var length = buffer.length,
  13570. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  13571. buffer.copy(result);
  13572. return result;
  13573. }
  13574. /**
  13575. * Creates a clone of `arrayBuffer`.
  13576. *
  13577. * @private
  13578. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  13579. * @returns {ArrayBuffer} Returns the cloned array buffer.
  13580. */
  13581. function cloneArrayBuffer(arrayBuffer) {
  13582. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  13583. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  13584. return result;
  13585. }
  13586. /**
  13587. * Creates a clone of `typedArray`.
  13588. *
  13589. * @private
  13590. * @param {Object} typedArray The typed array to clone.
  13591. * @param {boolean} [isDeep] Specify a deep clone.
  13592. * @returns {Object} Returns the cloned typed array.
  13593. */
  13594. function cloneTypedArray(typedArray, isDeep) {
  13595. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  13596. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  13597. }
  13598. /**
  13599. * Copies the values of `source` to `array`.
  13600. *
  13601. * @private
  13602. * @param {Array} source The array to copy values from.
  13603. * @param {Array} [array=[]] The array to copy values to.
  13604. * @returns {Array} Returns `array`.
  13605. */
  13606. function copyArray(source, array) {
  13607. var index = -1,
  13608. length = source.length;
  13609. array || (array = Array(length));
  13610. while (++index < length) {
  13611. array[index] = source[index];
  13612. }
  13613. return array;
  13614. }
  13615. /**
  13616. * Copies properties of `source` to `object`.
  13617. *
  13618. * @private
  13619. * @param {Object} source The object to copy properties from.
  13620. * @param {Array} props The property identifiers to copy.
  13621. * @param {Object} [object={}] The object to copy properties to.
  13622. * @param {Function} [customizer] The function to customize copied values.
  13623. * @returns {Object} Returns `object`.
  13624. */
  13625. function copyObject(source, props, object, customizer) {
  13626. var isNew = !object;
  13627. object || (object = {});
  13628. var index = -1,
  13629. length = props.length;
  13630. while (++index < length) {
  13631. var key = props[index];
  13632. var newValue = customizer
  13633. ? customizer(object[key], source[key], key, object, source)
  13634. : undefined;
  13635. if (newValue === undefined) {
  13636. newValue = source[key];
  13637. }
  13638. if (isNew) {
  13639. baseAssignValue(object, key, newValue);
  13640. } else {
  13641. assignValue(object, key, newValue);
  13642. }
  13643. }
  13644. return object;
  13645. }
  13646. /**
  13647. * Creates a function like `_.assign`.
  13648. *
  13649. * @private
  13650. * @param {Function} assigner The function to assign values.
  13651. * @returns {Function} Returns the new assigner function.
  13652. */
  13653. function createAssigner(assigner) {
  13654. return baseRest(function(object, sources) {
  13655. var index = -1,
  13656. length = sources.length,
  13657. customizer = length > 1 ? sources[length - 1] : undefined,
  13658. guard = length > 2 ? sources[2] : undefined;
  13659. customizer = (assigner.length > 3 && typeof customizer == 'function')
  13660. ? (length--, customizer)
  13661. : undefined;
  13662. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  13663. customizer = length < 3 ? undefined : customizer;
  13664. length = 1;
  13665. }
  13666. object = Object(object);
  13667. while (++index < length) {
  13668. var source = sources[index];
  13669. if (source) {
  13670. assigner(object, source, index, customizer);
  13671. }
  13672. }
  13673. return object;
  13674. });
  13675. }
  13676. /**
  13677. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  13678. *
  13679. * @private
  13680. * @param {boolean} [fromRight] Specify iterating from right to left.
  13681. * @returns {Function} Returns the new base function.
  13682. */
  13683. function createBaseFor(fromRight) {
  13684. return function(object, iteratee, keysFunc) {
  13685. var index = -1,
  13686. iterable = Object(object),
  13687. props = keysFunc(object),
  13688. length = props.length;
  13689. while (length--) {
  13690. var key = props[fromRight ? length : ++index];
  13691. if (iteratee(iterable[key], key, iterable) === false) {
  13692. break;
  13693. }
  13694. }
  13695. return object;
  13696. };
  13697. }
  13698. /**
  13699. * Gets the data for `map`.
  13700. *
  13701. * @private
  13702. * @param {Object} map The map to query.
  13703. * @param {string} key The reference key.
  13704. * @returns {*} Returns the map data.
  13705. */
  13706. function getMapData(map, key) {
  13707. var data = map.__data__;
  13708. return isKeyable(key)
  13709. ? data[typeof key == 'string' ? 'string' : 'hash']
  13710. : data.map;
  13711. }
  13712. /**
  13713. * Gets the native function at `key` of `object`.
  13714. *
  13715. * @private
  13716. * @param {Object} object The object to query.
  13717. * @param {string} key The key of the method to get.
  13718. * @returns {*} Returns the function if it's native, else `undefined`.
  13719. */
  13720. function getNative(object, key) {
  13721. var value = getValue(object, key);
  13722. return baseIsNative(value) ? value : undefined;
  13723. }
  13724. /**
  13725. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  13726. *
  13727. * @private
  13728. * @param {*} value The value to query.
  13729. * @returns {string} Returns the raw `toStringTag`.
  13730. */
  13731. function getRawTag(value) {
  13732. var isOwn = hasOwnProperty.call(value, symToStringTag),
  13733. tag = value[symToStringTag];
  13734. try {
  13735. value[symToStringTag] = undefined;
  13736. var unmasked = true;
  13737. } catch (e) {}
  13738. var result = nativeObjectToString.call(value);
  13739. if (unmasked) {
  13740. if (isOwn) {
  13741. value[symToStringTag] = tag;
  13742. } else {
  13743. delete value[symToStringTag];
  13744. }
  13745. }
  13746. return result;
  13747. }
  13748. /**
  13749. * Initializes an object clone.
  13750. *
  13751. * @private
  13752. * @param {Object} object The object to clone.
  13753. * @returns {Object} Returns the initialized clone.
  13754. */
  13755. function initCloneObject(object) {
  13756. return (typeof object.constructor == 'function' && !isPrototype(object))
  13757. ? baseCreate(getPrototype(object))
  13758. : {};
  13759. }
  13760. /**
  13761. * Checks if `value` is a valid array-like index.
  13762. *
  13763. * @private
  13764. * @param {*} value The value to check.
  13765. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  13766. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  13767. */
  13768. function isIndex(value, length) {
  13769. var type = typeof value;
  13770. length = length == null ? MAX_SAFE_INTEGER : length;
  13771. return !!length &&
  13772. (type == 'number' ||
  13773. (type != 'symbol' && reIsUint.test(value))) &&
  13774. (value > -1 && value % 1 == 0 && value < length);
  13775. }
  13776. /**
  13777. * Checks if the given arguments are from an iteratee call.
  13778. *
  13779. * @private
  13780. * @param {*} value The potential iteratee value argument.
  13781. * @param {*} index The potential iteratee index or key argument.
  13782. * @param {*} object The potential iteratee object argument.
  13783. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  13784. * else `false`.
  13785. */
  13786. function isIterateeCall(value, index, object) {
  13787. if (!isObject(object)) {
  13788. return false;
  13789. }
  13790. var type = typeof index;
  13791. if (type == 'number'
  13792. ? (isArrayLike(object) && isIndex(index, object.length))
  13793. : (type == 'string' && index in object)
  13794. ) {
  13795. return eq(object[index], value);
  13796. }
  13797. return false;
  13798. }
  13799. /**
  13800. * Checks if `value` is suitable for use as unique object key.
  13801. *
  13802. * @private
  13803. * @param {*} value The value to check.
  13804. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  13805. */
  13806. function isKeyable(value) {
  13807. var type = typeof value;
  13808. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  13809. ? (value !== '__proto__')
  13810. : (value === null);
  13811. }
  13812. /**
  13813. * Checks if `func` has its source masked.
  13814. *
  13815. * @private
  13816. * @param {Function} func The function to check.
  13817. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  13818. */
  13819. function isMasked(func) {
  13820. return !!maskSrcKey && (maskSrcKey in func);
  13821. }
  13822. /**
  13823. * Checks if `value` is likely a prototype object.
  13824. *
  13825. * @private
  13826. * @param {*} value The value to check.
  13827. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  13828. */
  13829. function isPrototype(value) {
  13830. var Ctor = value && value.constructor,
  13831. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  13832. return value === proto;
  13833. }
  13834. /**
  13835. * This function is like
  13836. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  13837. * except that it includes inherited enumerable properties.
  13838. *
  13839. * @private
  13840. * @param {Object} object The object to query.
  13841. * @returns {Array} Returns the array of property names.
  13842. */
  13843. function nativeKeysIn(object) {
  13844. var result = [];
  13845. if (object != null) {
  13846. for (var key in Object(object)) {
  13847. result.push(key);
  13848. }
  13849. }
  13850. return result;
  13851. }
  13852. /**
  13853. * Converts `value` to a string using `Object.prototype.toString`.
  13854. *
  13855. * @private
  13856. * @param {*} value The value to convert.
  13857. * @returns {string} Returns the converted string.
  13858. */
  13859. function objectToString(value) {
  13860. return nativeObjectToString.call(value);
  13861. }
  13862. /**
  13863. * A specialized version of `baseRest` which transforms the rest array.
  13864. *
  13865. * @private
  13866. * @param {Function} func The function to apply a rest parameter to.
  13867. * @param {number} [start=func.length-1] The start position of the rest parameter.
  13868. * @param {Function} transform The rest array transform.
  13869. * @returns {Function} Returns the new function.
  13870. */
  13871. function overRest(func, start, transform) {
  13872. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  13873. return function() {
  13874. var args = arguments,
  13875. index = -1,
  13876. length = nativeMax(args.length - start, 0),
  13877. array = Array(length);
  13878. while (++index < length) {
  13879. array[index] = args[start + index];
  13880. }
  13881. index = -1;
  13882. var otherArgs = Array(start + 1);
  13883. while (++index < start) {
  13884. otherArgs[index] = args[index];
  13885. }
  13886. otherArgs[start] = transform(array);
  13887. return apply(func, this, otherArgs);
  13888. };
  13889. }
  13890. /**
  13891. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  13892. *
  13893. * @private
  13894. * @param {Object} object The object to query.
  13895. * @param {string} key The key of the property to get.
  13896. * @returns {*} Returns the property value.
  13897. */
  13898. function safeGet(object, key) {
  13899. if (key === 'constructor' && typeof object[key] === 'function') {
  13900. return;
  13901. }
  13902. if (key == '__proto__') {
  13903. return;
  13904. }
  13905. return object[key];
  13906. }
  13907. /**
  13908. * Sets the `toString` method of `func` to return `string`.
  13909. *
  13910. * @private
  13911. * @param {Function} func The function to modify.
  13912. * @param {Function} string The `toString` result.
  13913. * @returns {Function} Returns `func`.
  13914. */
  13915. var setToString = shortOut(baseSetToString);
  13916. /**
  13917. * Creates a function that'll short out and invoke `identity` instead
  13918. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  13919. * milliseconds.
  13920. *
  13921. * @private
  13922. * @param {Function} func The function to restrict.
  13923. * @returns {Function} Returns the new shortable function.
  13924. */
  13925. function shortOut(func) {
  13926. var count = 0,
  13927. lastCalled = 0;
  13928. return function() {
  13929. var stamp = nativeNow(),
  13930. remaining = HOT_SPAN - (stamp - lastCalled);
  13931. lastCalled = stamp;
  13932. if (remaining > 0) {
  13933. if (++count >= HOT_COUNT) {
  13934. return arguments[0];
  13935. }
  13936. } else {
  13937. count = 0;
  13938. }
  13939. return func.apply(undefined, arguments);
  13940. };
  13941. }
  13942. /**
  13943. * Converts `func` to its source code.
  13944. *
  13945. * @private
  13946. * @param {Function} func The function to convert.
  13947. * @returns {string} Returns the source code.
  13948. */
  13949. function toSource(func) {
  13950. if (func != null) {
  13951. try {
  13952. return funcToString.call(func);
  13953. } catch (e) {}
  13954. try {
  13955. return (func + '');
  13956. } catch (e) {}
  13957. }
  13958. return '';
  13959. }
  13960. /**
  13961. * Performs a
  13962. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  13963. * comparison between two values to determine if they are equivalent.
  13964. *
  13965. * @static
  13966. * @memberOf _
  13967. * @since 4.0.0
  13968. * @category Lang
  13969. * @param {*} value The value to compare.
  13970. * @param {*} other The other value to compare.
  13971. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  13972. * @example
  13973. *
  13974. * var object = { 'a': 1 };
  13975. * var other = { 'a': 1 };
  13976. *
  13977. * _.eq(object, object);
  13978. * // => true
  13979. *
  13980. * _.eq(object, other);
  13981. * // => false
  13982. *
  13983. * _.eq('a', 'a');
  13984. * // => true
  13985. *
  13986. * _.eq('a', Object('a'));
  13987. * // => false
  13988. *
  13989. * _.eq(NaN, NaN);
  13990. * // => true
  13991. */
  13992. function eq(value, other) {
  13993. return value === other || (value !== value && other !== other);
  13994. }
  13995. /**
  13996. * Checks if `value` is likely an `arguments` object.
  13997. *
  13998. * @static
  13999. * @memberOf _
  14000. * @since 0.1.0
  14001. * @category Lang
  14002. * @param {*} value The value to check.
  14003. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  14004. * else `false`.
  14005. * @example
  14006. *
  14007. * _.isArguments(function() { return arguments; }());
  14008. * // => true
  14009. *
  14010. * _.isArguments([1, 2, 3]);
  14011. * // => false
  14012. */
  14013. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  14014. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  14015. !propertyIsEnumerable.call(value, 'callee');
  14016. };
  14017. /**
  14018. * Checks if `value` is classified as an `Array` object.
  14019. *
  14020. * @static
  14021. * @memberOf _
  14022. * @since 0.1.0
  14023. * @category Lang
  14024. * @param {*} value The value to check.
  14025. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  14026. * @example
  14027. *
  14028. * _.isArray([1, 2, 3]);
  14029. * // => true
  14030. *
  14031. * _.isArray(document.body.children);
  14032. * // => false
  14033. *
  14034. * _.isArray('abc');
  14035. * // => false
  14036. *
  14037. * _.isArray(_.noop);
  14038. * // => false
  14039. */
  14040. var isArray = Array.isArray;
  14041. /**
  14042. * Checks if `value` is array-like. A value is considered array-like if it's
  14043. * not a function and has a `value.length` that's an integer greater than or
  14044. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  14045. *
  14046. * @static
  14047. * @memberOf _
  14048. * @since 4.0.0
  14049. * @category Lang
  14050. * @param {*} value The value to check.
  14051. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  14052. * @example
  14053. *
  14054. * _.isArrayLike([1, 2, 3]);
  14055. * // => true
  14056. *
  14057. * _.isArrayLike(document.body.children);
  14058. * // => true
  14059. *
  14060. * _.isArrayLike('abc');
  14061. * // => true
  14062. *
  14063. * _.isArrayLike(_.noop);
  14064. * // => false
  14065. */
  14066. function isArrayLike(value) {
  14067. return value != null && isLength(value.length) && !isFunction(value);
  14068. }
  14069. /**
  14070. * This method is like `_.isArrayLike` except that it also checks if `value`
  14071. * is an object.
  14072. *
  14073. * @static
  14074. * @memberOf _
  14075. * @since 4.0.0
  14076. * @category Lang
  14077. * @param {*} value The value to check.
  14078. * @returns {boolean} Returns `true` if `value` is an array-like object,
  14079. * else `false`.
  14080. * @example
  14081. *
  14082. * _.isArrayLikeObject([1, 2, 3]);
  14083. * // => true
  14084. *
  14085. * _.isArrayLikeObject(document.body.children);
  14086. * // => true
  14087. *
  14088. * _.isArrayLikeObject('abc');
  14089. * // => false
  14090. *
  14091. * _.isArrayLikeObject(_.noop);
  14092. * // => false
  14093. */
  14094. function isArrayLikeObject(value) {
  14095. return isObjectLike(value) && isArrayLike(value);
  14096. }
  14097. /**
  14098. * Checks if `value` is a buffer.
  14099. *
  14100. * @static
  14101. * @memberOf _
  14102. * @since 4.3.0
  14103. * @category Lang
  14104. * @param {*} value The value to check.
  14105. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  14106. * @example
  14107. *
  14108. * _.isBuffer(new Buffer(2));
  14109. * // => true
  14110. *
  14111. * _.isBuffer(new Uint8Array(2));
  14112. * // => false
  14113. */
  14114. var isBuffer = nativeIsBuffer || stubFalse;
  14115. /**
  14116. * Checks if `value` is classified as a `Function` object.
  14117. *
  14118. * @static
  14119. * @memberOf _
  14120. * @since 0.1.0
  14121. * @category Lang
  14122. * @param {*} value The value to check.
  14123. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  14124. * @example
  14125. *
  14126. * _.isFunction(_);
  14127. * // => true
  14128. *
  14129. * _.isFunction(/abc/);
  14130. * // => false
  14131. */
  14132. function isFunction(value) {
  14133. if (!isObject(value)) {
  14134. return false;
  14135. }
  14136. // The use of `Object#toString` avoids issues with the `typeof` operator
  14137. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  14138. var tag = baseGetTag(value);
  14139. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  14140. }
  14141. /**
  14142. * Checks if `value` is a valid array-like length.
  14143. *
  14144. * **Note:** This method is loosely based on
  14145. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  14146. *
  14147. * @static
  14148. * @memberOf _
  14149. * @since 4.0.0
  14150. * @category Lang
  14151. * @param {*} value The value to check.
  14152. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  14153. * @example
  14154. *
  14155. * _.isLength(3);
  14156. * // => true
  14157. *
  14158. * _.isLength(Number.MIN_VALUE);
  14159. * // => false
  14160. *
  14161. * _.isLength(Infinity);
  14162. * // => false
  14163. *
  14164. * _.isLength('3');
  14165. * // => false
  14166. */
  14167. function isLength(value) {
  14168. return typeof value == 'number' &&
  14169. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  14170. }
  14171. /**
  14172. * Checks if `value` is the
  14173. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  14174. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  14175. *
  14176. * @static
  14177. * @memberOf _
  14178. * @since 0.1.0
  14179. * @category Lang
  14180. * @param {*} value The value to check.
  14181. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  14182. * @example
  14183. *
  14184. * _.isObject({});
  14185. * // => true
  14186. *
  14187. * _.isObject([1, 2, 3]);
  14188. * // => true
  14189. *
  14190. * _.isObject(_.noop);
  14191. * // => true
  14192. *
  14193. * _.isObject(null);
  14194. * // => false
  14195. */
  14196. function isObject(value) {
  14197. var type = typeof value;
  14198. return value != null && (type == 'object' || type == 'function');
  14199. }
  14200. /**
  14201. * Checks if `value` is object-like. A value is object-like if it's not `null`
  14202. * and has a `typeof` result of "object".
  14203. *
  14204. * @static
  14205. * @memberOf _
  14206. * @since 4.0.0
  14207. * @category Lang
  14208. * @param {*} value The value to check.
  14209. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  14210. * @example
  14211. *
  14212. * _.isObjectLike({});
  14213. * // => true
  14214. *
  14215. * _.isObjectLike([1, 2, 3]);
  14216. * // => true
  14217. *
  14218. * _.isObjectLike(_.noop);
  14219. * // => false
  14220. *
  14221. * _.isObjectLike(null);
  14222. * // => false
  14223. */
  14224. function isObjectLike(value) {
  14225. return value != null && typeof value == 'object';
  14226. }
  14227. /**
  14228. * Checks if `value` is a plain object, that is, an object created by the
  14229. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  14230. *
  14231. * @static
  14232. * @memberOf _
  14233. * @since 0.8.0
  14234. * @category Lang
  14235. * @param {*} value The value to check.
  14236. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  14237. * @example
  14238. *
  14239. * function Foo() {
  14240. * this.a = 1;
  14241. * }
  14242. *
  14243. * _.isPlainObject(new Foo);
  14244. * // => false
  14245. *
  14246. * _.isPlainObject([1, 2, 3]);
  14247. * // => false
  14248. *
  14249. * _.isPlainObject({ 'x': 0, 'y': 0 });
  14250. * // => true
  14251. *
  14252. * _.isPlainObject(Object.create(null));
  14253. * // => true
  14254. */
  14255. function isPlainObject(value) {
  14256. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  14257. return false;
  14258. }
  14259. var proto = getPrototype(value);
  14260. if (proto === null) {
  14261. return true;
  14262. }
  14263. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  14264. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  14265. funcToString.call(Ctor) == objectCtorString;
  14266. }
  14267. /**
  14268. * Checks if `value` is classified as a typed array.
  14269. *
  14270. * @static
  14271. * @memberOf _
  14272. * @since 3.0.0
  14273. * @category Lang
  14274. * @param {*} value The value to check.
  14275. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  14276. * @example
  14277. *
  14278. * _.isTypedArray(new Uint8Array);
  14279. * // => true
  14280. *
  14281. * _.isTypedArray([]);
  14282. * // => false
  14283. */
  14284. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  14285. /**
  14286. * Converts `value` to a plain object flattening inherited enumerable string
  14287. * keyed properties of `value` to own properties of the plain object.
  14288. *
  14289. * @static
  14290. * @memberOf _
  14291. * @since 3.0.0
  14292. * @category Lang
  14293. * @param {*} value The value to convert.
  14294. * @returns {Object} Returns the converted plain object.
  14295. * @example
  14296. *
  14297. * function Foo() {
  14298. * this.b = 2;
  14299. * }
  14300. *
  14301. * Foo.prototype.c = 3;
  14302. *
  14303. * _.assign({ 'a': 1 }, new Foo);
  14304. * // => { 'a': 1, 'b': 2 }
  14305. *
  14306. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  14307. * // => { 'a': 1, 'b': 2, 'c': 3 }
  14308. */
  14309. function toPlainObject(value) {
  14310. return copyObject(value, keysIn(value));
  14311. }
  14312. /**
  14313. * Creates an array of the own and inherited enumerable property names of `object`.
  14314. *
  14315. * **Note:** Non-object values are coerced to objects.
  14316. *
  14317. * @static
  14318. * @memberOf _
  14319. * @since 3.0.0
  14320. * @category Object
  14321. * @param {Object} object The object to query.
  14322. * @returns {Array} Returns the array of property names.
  14323. * @example
  14324. *
  14325. * function Foo() {
  14326. * this.a = 1;
  14327. * this.b = 2;
  14328. * }
  14329. *
  14330. * Foo.prototype.c = 3;
  14331. *
  14332. * _.keysIn(new Foo);
  14333. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  14334. */
  14335. function keysIn(object) {
  14336. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  14337. }
  14338. /**
  14339. * This method is like `_.assign` except that it recursively merges own and
  14340. * inherited enumerable string keyed properties of source objects into the
  14341. * destination object. Source properties that resolve to `undefined` are
  14342. * skipped if a destination value exists. Array and plain object properties
  14343. * are merged recursively. Other objects and value types are overridden by
  14344. * assignment. Source objects are applied from left to right. Subsequent
  14345. * sources overwrite property assignments of previous sources.
  14346. *
  14347. * **Note:** This method mutates `object`.
  14348. *
  14349. * @static
  14350. * @memberOf _
  14351. * @since 0.5.0
  14352. * @category Object
  14353. * @param {Object} object The destination object.
  14354. * @param {...Object} [sources] The source objects.
  14355. * @returns {Object} Returns `object`.
  14356. * @example
  14357. *
  14358. * var object = {
  14359. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  14360. * };
  14361. *
  14362. * var other = {
  14363. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  14364. * };
  14365. *
  14366. * _.merge(object, other);
  14367. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  14368. */
  14369. var merge = createAssigner(function(object, source, srcIndex) {
  14370. baseMerge(object, source, srcIndex);
  14371. });
  14372. /**
  14373. * Creates a function that returns `value`.
  14374. *
  14375. * @static
  14376. * @memberOf _
  14377. * @since 2.4.0
  14378. * @category Util
  14379. * @param {*} value The value to return from the new function.
  14380. * @returns {Function} Returns the new constant function.
  14381. * @example
  14382. *
  14383. * var objects = _.times(2, _.constant({ 'a': 1 }));
  14384. *
  14385. * console.log(objects);
  14386. * // => [{ 'a': 1 }, { 'a': 1 }]
  14387. *
  14388. * console.log(objects[0] === objects[1]);
  14389. * // => true
  14390. */
  14391. function constant(value) {
  14392. return function() {
  14393. return value;
  14394. };
  14395. }
  14396. /**
  14397. * This method returns the first argument it receives.
  14398. *
  14399. * @static
  14400. * @since 0.1.0
  14401. * @memberOf _
  14402. * @category Util
  14403. * @param {*} value Any value.
  14404. * @returns {*} Returns `value`.
  14405. * @example
  14406. *
  14407. * var object = { 'a': 1 };
  14408. *
  14409. * console.log(_.identity(object) === object);
  14410. * // => true
  14411. */
  14412. function identity(value) {
  14413. return value;
  14414. }
  14415. /**
  14416. * This method returns `false`.
  14417. *
  14418. * @static
  14419. * @memberOf _
  14420. * @since 4.13.0
  14421. * @category Util
  14422. * @returns {boolean} Returns `false`.
  14423. * @example
  14424. *
  14425. * _.times(2, _.stubFalse);
  14426. * // => [false, false]
  14427. */
  14428. function stubFalse() {
  14429. return false;
  14430. }
  14431. module.exports = merge;
  14432. /***/ }),
  14433. /***/ 37718:
  14434. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  14435. "use strict";
  14436. const os = __webpack_require__(12087);
  14437. const nameMap = new Map([
  14438. [21, ['Monterey', '12']],
  14439. [20, ['Big Sur', '11']],
  14440. [19, ['Catalina', '10.15']],
  14441. [18, ['Mojave', '10.14']],
  14442. [17, ['High Sierra', '10.13']],
  14443. [16, ['Sierra', '10.12']],
  14444. [15, ['El Capitan', '10.11']],
  14445. [14, ['Yosemite', '10.10']],
  14446. [13, ['Mavericks', '10.9']],
  14447. [12, ['Mountain Lion', '10.8']],
  14448. [11, ['Lion', '10.7']],
  14449. [10, ['Snow Leopard', '10.6']],
  14450. [9, ['Leopard', '10.5']],
  14451. [8, ['Tiger', '10.4']],
  14452. [7, ['Panther', '10.3']],
  14453. [6, ['Jaguar', '10.2']],
  14454. [5, ['Puma', '10.1']]
  14455. ]);
  14456. const macosRelease = release => {
  14457. release = Number((release || os.release()).split('.')[0]);
  14458. const [name, version] = nameMap.get(release);
  14459. return {
  14460. name,
  14461. version
  14462. };
  14463. };
  14464. module.exports = macosRelease;
  14465. // TODO: remove this in the next major version
  14466. module.exports.default = macosRelease;
  14467. /***/ }),
  14468. /***/ 40789:
  14469. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  14470. "use strict";
  14471. const fs = __webpack_require__(35747);
  14472. const path = __webpack_require__(85622);
  14473. const {promisify} = __webpack_require__(31669);
  14474. const semver = __webpack_require__(36625);
  14475. const useNativeRecursiveOption = semver.satisfies(process.version, '>=10.12.0');
  14476. // https://github.com/nodejs/node/issues/8987
  14477. // https://github.com/libuv/libuv/pull/1088
  14478. const checkPath = pth => {
  14479. if (process.platform === 'win32') {
  14480. const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ''));
  14481. if (pathHasInvalidWinCharacters) {
  14482. const error = new Error(`Path contains invalid characters: ${pth}`);
  14483. error.code = 'EINVAL';
  14484. throw error;
  14485. }
  14486. }
  14487. };
  14488. const processOptions = options => {
  14489. // https://github.com/sindresorhus/make-dir/issues/18
  14490. const defaults = {
  14491. mode: 0o777,
  14492. fs
  14493. };
  14494. return {
  14495. ...defaults,
  14496. ...options
  14497. };
  14498. };
  14499. const permissionError = pth => {
  14500. // This replicates the exception of `fs.mkdir` with native the
  14501. // `recusive` option when run on an invalid drive under Windows.
  14502. const error = new Error(`operation not permitted, mkdir '${pth}'`);
  14503. error.code = 'EPERM';
  14504. error.errno = -4048;
  14505. error.path = pth;
  14506. error.syscall = 'mkdir';
  14507. return error;
  14508. };
  14509. const makeDir = async (input, options) => {
  14510. checkPath(input);
  14511. options = processOptions(options);
  14512. const mkdir = promisify(options.fs.mkdir);
  14513. const stat = promisify(options.fs.stat);
  14514. if (useNativeRecursiveOption && options.fs.mkdir === fs.mkdir) {
  14515. const pth = path.resolve(input);
  14516. await mkdir(pth, {
  14517. mode: options.mode,
  14518. recursive: true
  14519. });
  14520. return pth;
  14521. }
  14522. const make = async pth => {
  14523. try {
  14524. await mkdir(pth, options.mode);
  14525. return pth;
  14526. } catch (error) {
  14527. if (error.code === 'EPERM') {
  14528. throw error;
  14529. }
  14530. if (error.code === 'ENOENT') {
  14531. if (path.dirname(pth) === pth) {
  14532. throw permissionError(pth);
  14533. }
  14534. if (error.message.includes('null bytes')) {
  14535. throw error;
  14536. }
  14537. await make(path.dirname(pth));
  14538. return make(pth);
  14539. }
  14540. try {
  14541. const stats = await stat(pth);
  14542. if (!stats.isDirectory()) {
  14543. throw new Error('The path is not a directory');
  14544. }
  14545. } catch (_) {
  14546. throw error;
  14547. }
  14548. return pth;
  14549. }
  14550. };
  14551. return make(path.resolve(input));
  14552. };
  14553. module.exports = makeDir;
  14554. module.exports.sync = (input, options) => {
  14555. checkPath(input);
  14556. options = processOptions(options);
  14557. if (useNativeRecursiveOption && options.fs.mkdirSync === fs.mkdirSync) {
  14558. const pth = path.resolve(input);
  14559. fs.mkdirSync(pth, {
  14560. mode: options.mode,
  14561. recursive: true
  14562. });
  14563. return pth;
  14564. }
  14565. const make = pth => {
  14566. try {
  14567. options.fs.mkdirSync(pth, options.mode);
  14568. } catch (error) {
  14569. if (error.code === 'EPERM') {
  14570. throw error;
  14571. }
  14572. if (error.code === 'ENOENT') {
  14573. if (path.dirname(pth) === pth) {
  14574. throw permissionError(pth);
  14575. }
  14576. if (error.message.includes('null bytes')) {
  14577. throw error;
  14578. }
  14579. make(path.dirname(pth));
  14580. return make(pth);
  14581. }
  14582. try {
  14583. if (!options.fs.statSync(pth).isDirectory()) {
  14584. throw new Error('The path is not a directory');
  14585. }
  14586. } catch (_) {
  14587. throw error;
  14588. }
  14589. }
  14590. return pth;
  14591. };
  14592. return make(path.resolve(input));
  14593. };
  14594. /***/ }),
  14595. /***/ 63110:
  14596. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  14597. "use strict";
  14598. const escapeStringRegexp = __webpack_require__(95601);
  14599. const regexpCache = new Map();
  14600. function makeRegexp(pattern, options) {
  14601. options = {
  14602. caseSensitive: false,
  14603. ...options
  14604. };
  14605. const cacheKey = pattern + JSON.stringify(options);
  14606. if (regexpCache.has(cacheKey)) {
  14607. return regexpCache.get(cacheKey);
  14608. }
  14609. const negated = pattern[0] === '!';
  14610. if (negated) {
  14611. pattern = pattern.slice(1);
  14612. }
  14613. pattern = escapeStringRegexp(pattern).replace(/\\\*/g, '[\\s\\S]*');
  14614. const regexp = new RegExp(`^${pattern}$`, options.caseSensitive ? '' : 'i');
  14615. regexp.negated = negated;
  14616. regexpCache.set(cacheKey, regexp);
  14617. return regexp;
  14618. }
  14619. module.exports = (inputs, patterns, options) => {
  14620. if (!(Array.isArray(inputs) && Array.isArray(patterns))) {
  14621. throw new TypeError(`Expected two arrays, got ${typeof inputs} ${typeof patterns}`);
  14622. }
  14623. if (patterns.length === 0) {
  14624. return inputs;
  14625. }
  14626. const isFirstPatternNegated = patterns[0][0] === '!';
  14627. patterns = patterns.map(pattern => makeRegexp(pattern, options));
  14628. const result = [];
  14629. for (const input of inputs) {
  14630. // If first pattern is negated we include everything to match user expectation.
  14631. let matches = isFirstPatternNegated;
  14632. for (const pattern of patterns) {
  14633. if (pattern.test(input)) {
  14634. matches = !pattern.negated;
  14635. }
  14636. }
  14637. if (matches) {
  14638. result.push(input);
  14639. }
  14640. }
  14641. return result;
  14642. };
  14643. module.exports.isMatch = (input, pattern, options) => {
  14644. const inputArray = Array.isArray(input) ? input : [input];
  14645. const patternArray = Array.isArray(pattern) ? pattern : [pattern];
  14646. return inputArray.some(input => {
  14647. return patternArray.every(pattern => {
  14648. const regexp = makeRegexp(pattern, options);
  14649. const matches = regexp.test(input);
  14650. return regexp.negated ? !matches : matches;
  14651. });
  14652. });
  14653. };
  14654. /***/ }),
  14655. /***/ 95601:
  14656. /***/ ((module) => {
  14657. "use strict";
  14658. module.exports = string => {
  14659. if (typeof string !== 'string') {
  14660. throw new TypeError('Expected a string');
  14661. }
  14662. // Escape characters with special meaning either inside or outside character sets.
  14663. // Use a simple backslash escape when it’s always valid, and a \unnnn escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.
  14664. return string
  14665. .replace(/[|\\{}()[\]^$+*?.]/g, '\\$&')
  14666. .replace(/-/g, '\\x2d');
  14667. };
  14668. /***/ }),
  14669. /***/ 96562:
  14670. /***/ ((module) => {
  14671. module.exports = function (args, opts) {
  14672. if (!opts) opts = {};
  14673. var flags = { bools : {}, strings : {}, unknownFn: null };
  14674. if (typeof opts['unknown'] === 'function') {
  14675. flags.unknownFn = opts['unknown'];
  14676. }
  14677. if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
  14678. flags.allBools = true;
  14679. } else {
  14680. [].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
  14681. flags.bools[key] = true;
  14682. });
  14683. }
  14684. var aliases = {};
  14685. Object.keys(opts.alias || {}).forEach(function (key) {
  14686. aliases[key] = [].concat(opts.alias[key]);
  14687. aliases[key].forEach(function (x) {
  14688. aliases[x] = [key].concat(aliases[key].filter(function (y) {
  14689. return x !== y;
  14690. }));
  14691. });
  14692. });
  14693. [].concat(opts.string).filter(Boolean).forEach(function (key) {
  14694. flags.strings[key] = true;
  14695. if (aliases[key]) {
  14696. flags.strings[aliases[key]] = true;
  14697. }
  14698. });
  14699. var defaults = opts['default'] || {};
  14700. var argv = { _ : [] };
  14701. Object.keys(flags.bools).forEach(function (key) {
  14702. setArg(key, defaults[key] === undefined ? false : defaults[key]);
  14703. });
  14704. var notFlags = [];
  14705. if (args.indexOf('--') !== -1) {
  14706. notFlags = args.slice(args.indexOf('--')+1);
  14707. args = args.slice(0, args.indexOf('--'));
  14708. }
  14709. function argDefined(key, arg) {
  14710. return (flags.allBools && /^--[^=]+$/.test(arg)) ||
  14711. flags.strings[key] || flags.bools[key] || aliases[key];
  14712. }
  14713. function setArg (key, val, arg) {
  14714. if (arg && flags.unknownFn && !argDefined(key, arg)) {
  14715. if (flags.unknownFn(arg) === false) return;
  14716. }
  14717. var value = !flags.strings[key] && isNumber(val)
  14718. ? Number(val) : val
  14719. ;
  14720. setKey(argv, key.split('.'), value);
  14721. (aliases[key] || []).forEach(function (x) {
  14722. setKey(argv, x.split('.'), value);
  14723. });
  14724. }
  14725. function setKey (obj, keys, value) {
  14726. var o = obj;
  14727. for (var i = 0; i < keys.length-1; i++) {
  14728. var key = keys[i];
  14729. if (isConstructorOrProto(o, key)) return;
  14730. if (o[key] === undefined) o[key] = {};
  14731. if (o[key] === Object.prototype || o[key] === Number.prototype
  14732. || o[key] === String.prototype) o[key] = {};
  14733. if (o[key] === Array.prototype) o[key] = [];
  14734. o = o[key];
  14735. }
  14736. var key = keys[keys.length - 1];
  14737. if (isConstructorOrProto(o, key)) return;
  14738. if (o === Object.prototype || o === Number.prototype
  14739. || o === String.prototype) o = {};
  14740. if (o === Array.prototype) o = [];
  14741. if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') {
  14742. o[key] = value;
  14743. }
  14744. else if (Array.isArray(o[key])) {
  14745. o[key].push(value);
  14746. }
  14747. else {
  14748. o[key] = [ o[key], value ];
  14749. }
  14750. }
  14751. function aliasIsBoolean(key) {
  14752. return aliases[key].some(function (x) {
  14753. return flags.bools[x];
  14754. });
  14755. }
  14756. for (var i = 0; i < args.length; i++) {
  14757. var arg = args[i];
  14758. if (/^--.+=/.test(arg)) {
  14759. // Using [\s\S] instead of . because js doesn't support the
  14760. // 'dotall' regex modifier. See:
  14761. // http://stackoverflow.com/a/1068308/13216
  14762. var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
  14763. var key = m[1];
  14764. var value = m[2];
  14765. if (flags.bools[key]) {
  14766. value = value !== 'false';
  14767. }
  14768. setArg(key, value, arg);
  14769. }
  14770. else if (/^--no-.+/.test(arg)) {
  14771. var key = arg.match(/^--no-(.+)/)[1];
  14772. setArg(key, false, arg);
  14773. }
  14774. else if (/^--.+/.test(arg)) {
  14775. var key = arg.match(/^--(.+)/)[1];
  14776. var next = args[i + 1];
  14777. if (next !== undefined && !/^-/.test(next)
  14778. && !flags.bools[key]
  14779. && !flags.allBools
  14780. && (aliases[key] ? !aliasIsBoolean(key) : true)) {
  14781. setArg(key, next, arg);
  14782. i++;
  14783. }
  14784. else if (/^(true|false)$/.test(next)) {
  14785. setArg(key, next === 'true', arg);
  14786. i++;
  14787. }
  14788. else {
  14789. setArg(key, flags.strings[key] ? '' : true, arg);
  14790. }
  14791. }
  14792. else if (/^-[^-]+/.test(arg)) {
  14793. var letters = arg.slice(1,-1).split('');
  14794. var broken = false;
  14795. for (var j = 0; j < letters.length; j++) {
  14796. var next = arg.slice(j+2);
  14797. if (next === '-') {
  14798. setArg(letters[j], next, arg)
  14799. continue;
  14800. }
  14801. if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
  14802. setArg(letters[j], next.split('=')[1], arg);
  14803. broken = true;
  14804. break;
  14805. }
  14806. if (/[A-Za-z]/.test(letters[j])
  14807. && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
  14808. setArg(letters[j], next, arg);
  14809. broken = true;
  14810. break;
  14811. }
  14812. if (letters[j+1] && letters[j+1].match(/\W/)) {
  14813. setArg(letters[j], arg.slice(j+2), arg);
  14814. broken = true;
  14815. break;
  14816. }
  14817. else {
  14818. setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
  14819. }
  14820. }
  14821. var key = arg.slice(-1)[0];
  14822. if (!broken && key !== '-') {
  14823. if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
  14824. && !flags.bools[key]
  14825. && (aliases[key] ? !aliasIsBoolean(key) : true)) {
  14826. setArg(key, args[i+1], arg);
  14827. i++;
  14828. }
  14829. else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
  14830. setArg(key, args[i+1] === 'true', arg);
  14831. i++;
  14832. }
  14833. else {
  14834. setArg(key, flags.strings[key] ? '' : true, arg);
  14835. }
  14836. }
  14837. }
  14838. else {
  14839. if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
  14840. argv._.push(
  14841. flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
  14842. );
  14843. }
  14844. if (opts.stopEarly) {
  14845. argv._.push.apply(argv._, args.slice(i + 1));
  14846. break;
  14847. }
  14848. }
  14849. }
  14850. Object.keys(defaults).forEach(function (key) {
  14851. if (!hasKey(argv, key.split('.'))) {
  14852. setKey(argv, key.split('.'), defaults[key]);
  14853. (aliases[key] || []).forEach(function (x) {
  14854. setKey(argv, x.split('.'), defaults[key]);
  14855. });
  14856. }
  14857. });
  14858. if (opts['--']) {
  14859. argv['--'] = new Array();
  14860. notFlags.forEach(function(key) {
  14861. argv['--'].push(key);
  14862. });
  14863. }
  14864. else {
  14865. notFlags.forEach(function(key) {
  14866. argv._.push(key);
  14867. });
  14868. }
  14869. return argv;
  14870. };
  14871. function hasKey (obj, keys) {
  14872. var o = obj;
  14873. keys.slice(0,-1).forEach(function (key) {
  14874. o = (o[key] || {});
  14875. });
  14876. var key = keys[keys.length - 1];
  14877. return key in o;
  14878. }
  14879. function isNumber (x) {
  14880. if (typeof x === 'number') return true;
  14881. if (/^0x[0-9a-f]+$/i.test(x)) return true;
  14882. return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
  14883. }
  14884. function isConstructorOrProto (obj, key) {
  14885. return key === 'constructor' && typeof obj[key] === 'function' || key === '__proto__';
  14886. }
  14887. /***/ }),
  14888. /***/ 57824:
  14889. /***/ ((module) => {
  14890. /**
  14891. * Helpers.
  14892. */
  14893. var s = 1000;
  14894. var m = s * 60;
  14895. var h = m * 60;
  14896. var d = h * 24;
  14897. var w = d * 7;
  14898. var y = d * 365.25;
  14899. /**
  14900. * Parse or format the given `val`.
  14901. *
  14902. * Options:
  14903. *
  14904. * - `long` verbose formatting [false]
  14905. *
  14906. * @param {String|Number} val
  14907. * @param {Object} [options]
  14908. * @throws {Error} throw an error if val is not a non-empty string or a number
  14909. * @return {String|Number}
  14910. * @api public
  14911. */
  14912. module.exports = function(val, options) {
  14913. options = options || {};
  14914. var type = typeof val;
  14915. if (type === 'string' && val.length > 0) {
  14916. return parse(val);
  14917. } else if (type === 'number' && isFinite(val)) {
  14918. return options.long ? fmtLong(val) : fmtShort(val);
  14919. }
  14920. throw new Error(
  14921. 'val is not a non-empty string or a valid number. val=' +
  14922. JSON.stringify(val)
  14923. );
  14924. };
  14925. /**
  14926. * Parse the given `str` and return milliseconds.
  14927. *
  14928. * @param {String} str
  14929. * @return {Number}
  14930. * @api private
  14931. */
  14932. function parse(str) {
  14933. str = String(str);
  14934. if (str.length > 100) {
  14935. return;
  14936. }
  14937. var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
  14938. str
  14939. );
  14940. if (!match) {
  14941. return;
  14942. }
  14943. var n = parseFloat(match[1]);
  14944. var type = (match[2] || 'ms').toLowerCase();
  14945. switch (type) {
  14946. case 'years':
  14947. case 'year':
  14948. case 'yrs':
  14949. case 'yr':
  14950. case 'y':
  14951. return n * y;
  14952. case 'weeks':
  14953. case 'week':
  14954. case 'w':
  14955. return n * w;
  14956. case 'days':
  14957. case 'day':
  14958. case 'd':
  14959. return n * d;
  14960. case 'hours':
  14961. case 'hour':
  14962. case 'hrs':
  14963. case 'hr':
  14964. case 'h':
  14965. return n * h;
  14966. case 'minutes':
  14967. case 'minute':
  14968. case 'mins':
  14969. case 'min':
  14970. case 'm':
  14971. return n * m;
  14972. case 'seconds':
  14973. case 'second':
  14974. case 'secs':
  14975. case 'sec':
  14976. case 's':
  14977. return n * s;
  14978. case 'milliseconds':
  14979. case 'millisecond':
  14980. case 'msecs':
  14981. case 'msec':
  14982. case 'ms':
  14983. return n;
  14984. default:
  14985. return undefined;
  14986. }
  14987. }
  14988. /**
  14989. * Short format for `ms`.
  14990. *
  14991. * @param {Number} ms
  14992. * @return {String}
  14993. * @api private
  14994. */
  14995. function fmtShort(ms) {
  14996. var msAbs = Math.abs(ms);
  14997. if (msAbs >= d) {
  14998. return Math.round(ms / d) + 'd';
  14999. }
  15000. if (msAbs >= h) {
  15001. return Math.round(ms / h) + 'h';
  15002. }
  15003. if (msAbs >= m) {
  15004. return Math.round(ms / m) + 'm';
  15005. }
  15006. if (msAbs >= s) {
  15007. return Math.round(ms / s) + 's';
  15008. }
  15009. return ms + 'ms';
  15010. }
  15011. /**
  15012. * Long format for `ms`.
  15013. *
  15014. * @param {Number} ms
  15015. * @return {String}
  15016. * @api private
  15017. */
  15018. function fmtLong(ms) {
  15019. var msAbs = Math.abs(ms);
  15020. if (msAbs >= d) {
  15021. return plural(ms, msAbs, d, 'day');
  15022. }
  15023. if (msAbs >= h) {
  15024. return plural(ms, msAbs, h, 'hour');
  15025. }
  15026. if (msAbs >= m) {
  15027. return plural(ms, msAbs, m, 'minute');
  15028. }
  15029. if (msAbs >= s) {
  15030. return plural(ms, msAbs, s, 'second');
  15031. }
  15032. return ms + ' ms';
  15033. }
  15034. /**
  15035. * Pluralization helper.
  15036. */
  15037. function plural(ms, msAbs, n, name) {
  15038. var isPlural = msAbs >= n * 1.5;
  15039. return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
  15040. }
  15041. /***/ }),
  15042. /***/ 21901:
  15043. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  15044. var createHash = __webpack_require__(76417).createHash;
  15045. function get_header(header, credentials, opts) {
  15046. var type = header.split(' ')[0],
  15047. user = credentials[0],
  15048. pass = credentials[1];
  15049. if (type == 'Digest') {
  15050. return digest.generate(header, user, pass, opts.method, opts.path);
  15051. } else if (type == 'Basic') {
  15052. return basic(user, pass);
  15053. }
  15054. }
  15055. ////////////////////
  15056. // basic
  15057. function md5(string) {
  15058. return createHash('md5').update(string).digest('hex');
  15059. }
  15060. function basic(user, pass) {
  15061. var str = typeof pass == 'undefined' ? user : [user, pass].join(':');
  15062. return 'Basic ' + Buffer.from(str).toString('base64');
  15063. }
  15064. ////////////////////
  15065. // digest
  15066. // logic inspired from https://github.com/simme/node-http-digest-client
  15067. var digest = {};
  15068. digest.parse_header = function(header) {
  15069. var challenge = {},
  15070. matches = header.match(/([a-z0-9_-]+)="?([a-z0-9=\/\.@\s-\+)()]+)"?/gi);
  15071. for (var i = 0, l = matches.length; i < l; i++) {
  15072. var parts = matches[i].split('='),
  15073. key = parts.shift(),
  15074. val = parts.join('=').replace(/^"/, '').replace(/"$/, '');
  15075. challenge[key] = val;
  15076. }
  15077. return challenge;
  15078. }
  15079. digest.update_nc = function(nc) {
  15080. var max = 99999999;
  15081. nc++;
  15082. if (nc > max)
  15083. nc = 1;
  15084. var padding = new Array(8).join('0') + '';
  15085. nc = nc + '';
  15086. return padding.substr(0, 8 - nc.length) + nc;
  15087. }
  15088. digest.generate = function(header, user, pass, method, path) {
  15089. var nc = 1,
  15090. cnonce = null,
  15091. challenge = digest.parse_header(header);
  15092. var ha1 = md5(user + ':' + challenge.realm + ':' + pass),
  15093. ha2 = md5(method.toUpperCase() + ':' + path),
  15094. resp = [ha1, challenge.nonce];
  15095. if (typeof challenge.qop === 'string') {
  15096. cnonce = md5(Math.random().toString(36)).substr(0, 8);
  15097. nc = digest.update_nc(nc);
  15098. resp = resp.concat(nc, cnonce);
  15099. resp = resp.concat(challenge.qop, ha2);
  15100. } else {
  15101. resp = resp.concat(ha2);
  15102. }
  15103. var params = {
  15104. uri : path,
  15105. realm : challenge.realm,
  15106. nonce : challenge.nonce,
  15107. username : user,
  15108. response : md5(resp.join(':'))
  15109. }
  15110. if (challenge.qop) {
  15111. params.qop = challenge.qop;
  15112. }
  15113. if (challenge.opaque) {
  15114. params.opaque = challenge.opaque;
  15115. }
  15116. if (cnonce) {
  15117. params.nc = nc;
  15118. params.cnonce = cnonce;
  15119. }
  15120. header = []
  15121. for (var k in params)
  15122. header.push(k + '="' + params[k] + '"')
  15123. return 'Digest ' + header.join(', ');
  15124. }
  15125. module.exports = {
  15126. header : get_header,
  15127. basic : basic,
  15128. digest : digest.generate
  15129. }
  15130. /***/ }),
  15131. /***/ 70035:
  15132. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  15133. // Simple cookie handling implementation based on the standard RFC 6265.
  15134. //
  15135. // This module just has two functionalities:
  15136. // - Parse a set-cookie-header as a key value object
  15137. // - Write a cookie-string from a key value object
  15138. //
  15139. // All cookie attributes are ignored.
  15140. var unescape = __webpack_require__(71191).unescape;
  15141. var COOKIE_PAIR = /^([^=\s]+)\s*=\s*("?)\s*(.*)\s*\2\s*$/;
  15142. var EXCLUDED_CHARS = /[\x00-\x1F\x7F\x3B\x3B\s\"\,\\"%]/g;
  15143. var TRAILING_SEMICOLON = /\x3B+$/;
  15144. var SEP_SEMICOLON = /\s*\x3B\s*/;
  15145. // i know these should be 'const', but I'd like to keep
  15146. // supporting earlier node.js versions as long as I can. :)
  15147. var KEY_INDEX = 1; // index of key from COOKIE_PAIR match
  15148. var VALUE_INDEX = 3; // index of value from COOKIE_PAIR match
  15149. // Returns a copy str trimmed and without trainling semicolon.
  15150. function cleanCookieString(str) {
  15151. return str.trim().replace(/\x3B+$/, '');
  15152. }
  15153. function getFirstPair(str) {
  15154. var index = str.indexOf('\x3B');
  15155. return index === -1 ? str : str.substr(0, index);
  15156. }
  15157. // Returns a encoded copy of str based on RFC6265 S4.1.1.
  15158. function encodeCookieComponent(str) {
  15159. return str.toString().replace(EXCLUDED_CHARS, encodeURIComponent);
  15160. }
  15161. // Parses a set-cookie-string based on the standard defined in RFC6265 S4.1.1.
  15162. function parseSetCookieString(str) {
  15163. str = cleanCookieString(str);
  15164. str = getFirstPair(str);
  15165. var res = COOKIE_PAIR.exec(str);
  15166. if (!res || !res[VALUE_INDEX]) return null;
  15167. return {
  15168. name : unescape(res[KEY_INDEX]),
  15169. value : unescape(res[VALUE_INDEX])
  15170. };
  15171. }
  15172. // Parses a set-cookie-header and returns a key/value object.
  15173. // Each key represents the name of a cookie.
  15174. function parseSetCookieHeader(header) {
  15175. if (!header) return {};
  15176. header = Array.isArray(header) ? header : [header];
  15177. return header.reduce(function(res, str) {
  15178. var cookie = parseSetCookieString(str);
  15179. if (cookie) res[cookie.name] = cookie.value;
  15180. return res;
  15181. }, {});
  15182. }
  15183. // Writes a set-cookie-string based on the standard definded in RFC6265 S4.1.1.
  15184. function writeCookieString(obj) {
  15185. return Object.keys(obj).reduce(function(str, name) {
  15186. var encodedName = encodeCookieComponent(name);
  15187. var encodedValue = encodeCookieComponent(obj[name]);
  15188. str += (str ? '; ' : '') + encodedName + '=' + encodedValue;
  15189. return str;
  15190. }, '');
  15191. }
  15192. // returns a key/val object from an array of cookie strings
  15193. exports.read = parseSetCookieHeader;
  15194. // writes a cookie string header
  15195. exports.write = writeCookieString;
  15196. /***/ }),
  15197. /***/ 64313:
  15198. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  15199. var iconv,
  15200. inherits = __webpack_require__(31669).inherits,
  15201. stream = __webpack_require__(92413);
  15202. var regex = /(?:charset|encoding)\s*=\s*['"]? *([\w\-]+)/i;
  15203. inherits(StreamDecoder, stream.Transform);
  15204. function StreamDecoder(charset) {
  15205. if (!(this instanceof StreamDecoder))
  15206. return new StreamDecoder(charset);
  15207. stream.Transform.call(this, charset);
  15208. this.charset = charset;
  15209. this.parsed_chunk = false;
  15210. }
  15211. StreamDecoder.prototype._transform = function(chunk, encoding, done) {
  15212. var res, found;
  15213. // try get charset from chunk, just once
  15214. if (this.charset == 'utf8' && !this.parsed_chunk) {
  15215. this.parsed_chunk = true;
  15216. var matches = regex.exec(chunk.toString());
  15217. if (matches) {
  15218. found = matches[1].toLowerCase();
  15219. this.charset = found == 'utf-8' ? 'utf8' : found;
  15220. }
  15221. }
  15222. try {
  15223. res = iconv.decode(chunk, this.charset);
  15224. } catch(e) { // something went wrong, just return original chunk
  15225. res = chunk;
  15226. }
  15227. this.push(res);
  15228. done();
  15229. }
  15230. module.exports = function(charset) {
  15231. try {
  15232. if (!iconv) iconv = __webpack_require__(4914);
  15233. } catch(e) {
  15234. /* iconv not found */
  15235. }
  15236. if (iconv)
  15237. return new StreamDecoder(charset);
  15238. else
  15239. return new stream.PassThrough;
  15240. }
  15241. /***/ }),
  15242. /***/ 99095:
  15243. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  15244. var readFile = __webpack_require__(35747).readFile,
  15245. basename = __webpack_require__(85622).basename;
  15246. exports.build = function(data, boundary, callback) {
  15247. if (typeof data != 'object' || typeof data.pipe == 'function')
  15248. return callback(new Error('Multipart builder expects data as key/val object.'));
  15249. var body = '',
  15250. object = flatten(data),
  15251. count = Object.keys(object).length;
  15252. if (count === 0)
  15253. return callback(new Error('Empty multipart body. Invalid data.'))
  15254. function done(err, section) {
  15255. if (err) return callback(err);
  15256. if (section) body += section;
  15257. --count || callback(null, body + '--' + boundary + '--');
  15258. };
  15259. for (var key in object) {
  15260. var value = object[key];
  15261. if (value === null || typeof value == 'undefined') {
  15262. done();
  15263. } else if (Buffer.isBuffer(value)) {
  15264. var part = { buffer: value, content_type: 'application/octet-stream' };
  15265. generate_part(key, part, boundary, done);
  15266. } else {
  15267. var part = (value.buffer || value.file || value.content_type) ? value : { value: value };
  15268. generate_part(key, part, boundary, done);
  15269. }
  15270. }
  15271. }
  15272. function generate_part(name, part, boundary, callback) {
  15273. var return_part = '--' + boundary + '\r\n';
  15274. return_part += 'Content-Disposition: form-data; name="' + name + '"';
  15275. function append(data, filename) {
  15276. if (data) {
  15277. var binary = part.content_type.indexOf('text') == -1;
  15278. return_part += '; filename="' + encodeURIComponent(filename) + '"\r\n';
  15279. if (binary) return_part += 'Content-Transfer-Encoding: binary\r\n';
  15280. return_part += 'Content-Type: ' + part.content_type + '\r\n\r\n';
  15281. return_part += binary ? data.toString('binary') : data.toString('utf8');
  15282. }
  15283. callback(null, return_part + '\r\n');
  15284. };
  15285. if ((part.file || part.buffer) && part.content_type) {
  15286. var filename = part.filename ? part.filename : part.file ? basename(part.file) : name;
  15287. if (part.buffer) return append(part.buffer, filename);
  15288. readFile(part.file, function(err, data) {
  15289. if (err) return callback(err);
  15290. append(data, filename);
  15291. });
  15292. } else {
  15293. if (typeof part.value == 'object')
  15294. return callback(new Error('Object received for ' + name + ', expected string.'))
  15295. if (part.content_type) {
  15296. return_part += '\r\n';
  15297. return_part += 'Content-Type: ' + part.content_type;
  15298. }
  15299. return_part += '\r\n\r\n';
  15300. return_part += Buffer.from(String(part.value), 'utf8').toString('binary');
  15301. append();
  15302. }
  15303. }
  15304. // flattens nested objects for multipart body
  15305. function flatten(object, into, prefix) {
  15306. into = into || {};
  15307. for(var key in object) {
  15308. var prefix_key = prefix ? prefix + '[' + key + ']' : key;
  15309. var prop = object[key];
  15310. if (prop && typeof prop === 'object' && !(prop.buffer || prop.file || prop.content_type))
  15311. flatten(prop, into, prefix_key)
  15312. else
  15313. into[prefix_key] = prop;
  15314. }
  15315. return into;
  15316. }
  15317. /***/ }),
  15318. /***/ 64484:
  15319. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  15320. //////////////////////////////////////////
  15321. // Needle -- HTTP Client for Node.js
  15322. // Written by Tomás Pollak <tomas@forkhq.com>
  15323. // (c) 2012-2020 - Fork Ltd.
  15324. // MIT Licensed
  15325. //////////////////////////////////////////
  15326. var fs = __webpack_require__(35747),
  15327. http = __webpack_require__(98605),
  15328. https = __webpack_require__(57211),
  15329. url = __webpack_require__(78835),
  15330. stream = __webpack_require__(92413),
  15331. debug = __webpack_require__(60761)('needle'),
  15332. stringify = __webpack_require__(40773)/* .build */ .J,
  15333. multipart = __webpack_require__(99095),
  15334. auth = __webpack_require__(21901),
  15335. cookies = __webpack_require__(70035),
  15336. parsers = __webpack_require__(34417),
  15337. decoder = __webpack_require__(64313);
  15338. //////////////////////////////////////////
  15339. // variabilia
  15340. var version = __webpack_require__(666)/* .version */ .i8;
  15341. var user_agent = 'Needle/' + version;
  15342. user_agent += ' (Node.js ' + process.version + '; ' + process.platform + ' ' + process.arch + ')';
  15343. var tls_options = 'agent pfx key passphrase cert ca ciphers rejectUnauthorized secureProtocol checkServerIdentity family';
  15344. // older versions of node (< 0.11.4) prevent the runtime from exiting
  15345. // because of connections in keep-alive state. so if this is the case
  15346. // we'll default new requests to set a Connection: close header.
  15347. var close_by_default = !http.Agent || http.Agent.defaultMaxSockets != Infinity;
  15348. // see if we have Object.assign. otherwise fall back to util._extend
  15349. var extend = Object.assign ? Object.assign : __webpack_require__(31669)._extend;
  15350. // these are the status codes that Needle interprets as redirects.
  15351. var redirect_codes = [301, 302, 303, 307, 308];
  15352. //////////////////////////////////////////
  15353. // decompressors for gzip/deflate/br bodies
  15354. function bind_opts(fn, options) {
  15355. return fn.bind(null, options);
  15356. }
  15357. var decompressors = {};
  15358. try {
  15359. var zlib = __webpack_require__(78761);
  15360. // Enable Z_SYNC_FLUSH to avoid Z_BUF_ERROR errors (Node PR #2595)
  15361. var zlib_options = {
  15362. flush: zlib.Z_SYNC_FLUSH,
  15363. finishFlush: zlib.Z_SYNC_FLUSH
  15364. };
  15365. var br_options = {
  15366. flush: zlib.BROTLI_OPERATION_FLUSH,
  15367. finishFlush: zlib.BROTLI_OPERATION_FLUSH
  15368. };
  15369. decompressors['x-deflate'] = bind_opts(zlib.Inflate, zlib_options);
  15370. decompressors['deflate'] = bind_opts(zlib.Inflate, zlib_options);
  15371. decompressors['x-gzip'] = bind_opts(zlib.Gunzip, zlib_options);
  15372. decompressors['gzip'] = bind_opts(zlib.Gunzip, zlib_options);
  15373. if (typeof zlib.BrotliDecompress === 'function') {
  15374. decompressors['br'] = bind_opts(zlib.BrotliDecompress, br_options);
  15375. }
  15376. } catch(e) { /* zlib not available */ }
  15377. //////////////////////////////////////////
  15378. // options and aliases
  15379. var defaults = {
  15380. // data
  15381. boundary : '--------------------NODENEEDLEHTTPCLIENT',
  15382. encoding : 'utf8',
  15383. parse_response : 'all', // same as true. valid options: 'json', 'xml' or false/null
  15384. proxy : null,
  15385. // headers
  15386. headers : {},
  15387. accept : '*/*',
  15388. user_agent : user_agent,
  15389. // numbers
  15390. open_timeout : 10000,
  15391. response_timeout : 0,
  15392. read_timeout : 0,
  15393. follow_max : 0,
  15394. stream_length : -1,
  15395. // booleans
  15396. compressed : false,
  15397. decode_response : true,
  15398. parse_cookies : true,
  15399. follow_set_cookies : false,
  15400. follow_set_referer : false,
  15401. follow_keep_method : false,
  15402. follow_if_same_host : false,
  15403. follow_if_same_protocol : false,
  15404. follow_if_same_location : false
  15405. }
  15406. var aliased = {
  15407. options: {
  15408. decode : 'decode_response',
  15409. parse : 'parse_response',
  15410. timeout : 'open_timeout',
  15411. follow : 'follow_max'
  15412. },
  15413. inverted: {}
  15414. }
  15415. // only once, invert aliased keys so we can get passed options.
  15416. Object.keys(aliased.options).map(function(k) {
  15417. var value = aliased.options[k];
  15418. aliased.inverted[value] = k;
  15419. });
  15420. //////////////////////////////////////////
  15421. // helpers
  15422. function keys_by_type(type) {
  15423. return Object.keys(defaults).map(function(el) {
  15424. if (defaults[el] !== null && defaults[el].constructor == type)
  15425. return el;
  15426. }).filter(function(el) { return el })
  15427. }
  15428. function parse_content_type(header) {
  15429. if (!header || header === '') return {};
  15430. var found, charset = 'utf8', arr = header.split(';');
  15431. if (arr.length > 1 && (found = arr[1].match(/charset=(.+)/)))
  15432. charset = found[1];
  15433. return { type: arr[0], charset: charset };
  15434. }
  15435. function is_stream(obj) {
  15436. return typeof obj.pipe === 'function';
  15437. }
  15438. function get_stream_length(stream, given_length, cb) {
  15439. if (given_length > 0)
  15440. return cb(given_length);
  15441. if (stream.end !== void 0 && stream.end !== Infinity && stream.start !== void 0)
  15442. return cb((stream.end + 1) - (stream.start || 0));
  15443. fs.stat(stream.path, function(err, stat) {
  15444. cb(stat ? stat.size - (stream.start || 0) : null);
  15445. });
  15446. }
  15447. //////////////////////////////////////////
  15448. // the main act
  15449. function Needle(method, uri, data, options, callback) {
  15450. // if (!(this instanceof Needle)) {
  15451. // return new Needle(method, uri, data, options, callback);
  15452. // }
  15453. if (typeof uri !== 'string')
  15454. throw new TypeError('URL must be a string, not ' + uri);
  15455. this.method = method;
  15456. this.uri = uri;
  15457. this.data = data;
  15458. if (typeof options == 'function') {
  15459. this.callback = options;
  15460. this.options = {};
  15461. } else {
  15462. this.callback = callback;
  15463. this.options = options;
  15464. }
  15465. }
  15466. Needle.prototype.setup = function(uri, options) {
  15467. function get_option(key, fallback) {
  15468. // if original is in options, return that value
  15469. if (typeof options[key] != 'undefined') return options[key];
  15470. // otherwise, return value from alias or fallback/undefined
  15471. return typeof options[aliased.inverted[key]] != 'undefined'
  15472. ? options[aliased.inverted[key]] : fallback;
  15473. }
  15474. function check_value(expected, key) {
  15475. var value = get_option(key),
  15476. type = typeof value;
  15477. if (type != 'undefined' && type != expected)
  15478. throw new TypeError(type + ' received for ' + key + ', but expected a ' + expected);
  15479. return (type == expected) ? value : defaults[key];
  15480. }
  15481. //////////////////////////////////////////////////
  15482. // the basics
  15483. var config = {
  15484. http_opts : {
  15485. localAddress: get_option('localAddress', undefined)
  15486. }, // passed later to http.request() directly
  15487. headers : {},
  15488. output : options.output,
  15489. proxy : get_option('proxy', defaults.proxy),
  15490. parser : get_option('parse_response', defaults.parse_response),
  15491. encoding : options.encoding || (options.multipart ? 'binary' : defaults.encoding)
  15492. }
  15493. keys_by_type(Boolean).forEach(function(key) {
  15494. config[key] = check_value('boolean', key);
  15495. })
  15496. keys_by_type(Number).forEach(function(key) {
  15497. config[key] = check_value('number', key);
  15498. })
  15499. // populate http_opts with given TLS options
  15500. tls_options.split(' ').forEach(function(key) {
  15501. if (typeof options[key] != 'undefined') {
  15502. config.http_opts[key] = options[key];
  15503. if (typeof options.agent == 'undefined')
  15504. config.http_opts.agent = false; // otherwise tls options are skipped
  15505. }
  15506. });
  15507. //////////////////////////////////////////////////
  15508. // headers, cookies
  15509. for (var key in defaults.headers)
  15510. config.headers[key] = defaults.headers[key];
  15511. config.headers['accept'] = options.accept || defaults.accept;
  15512. config.headers['user-agent'] = options.user_agent || defaults.user_agent;
  15513. if (options.content_type)
  15514. config.headers['content-type'] = options.content_type;
  15515. // set connection header if opts.connection was passed, or if node < 0.11.4 (close)
  15516. if (options.connection || close_by_default)
  15517. config.headers['connection'] = options.connection || 'close';
  15518. if ((options.compressed || defaults.compressed) && typeof zlib != 'undefined')
  15519. config.headers['accept-encoding'] = decompressors['br'] ? 'gzip, deflate, br' : 'gzip, deflate';
  15520. if (options.cookies)
  15521. config.headers['cookie'] = cookies.write(options.cookies);
  15522. //////////////////////////////////////////////////
  15523. // basic/digest auth
  15524. if (uri.match(/[^\/]@/)) { // url contains user:pass@host, so parse it.
  15525. var parts = (url.parse(uri).auth || '').split(':');
  15526. options.username = parts[0];
  15527. options.password = parts[1];
  15528. }
  15529. if (options.username) {
  15530. if (options.auth && (options.auth == 'auto' || options.auth == 'digest')) {
  15531. config.credentials = [options.username, options.password];
  15532. } else {
  15533. config.headers['authorization'] = auth.basic(options.username, options.password);
  15534. }
  15535. }
  15536. // if proxy is present, set auth header from either url or proxy_user option.
  15537. if (config.proxy) {
  15538. if (config.proxy.indexOf('http') === -1)
  15539. config.proxy = 'http://' + config.proxy;
  15540. if (config.proxy.indexOf('@') !== -1) {
  15541. var proxy = (url.parse(config.proxy).auth || '').split(':');
  15542. options.proxy_user = proxy[0];
  15543. options.proxy_pass = proxy[1];
  15544. }
  15545. if (options.proxy_user)
  15546. config.headers['proxy-authorization'] = auth.basic(options.proxy_user, options.proxy_pass);
  15547. }
  15548. // now that all our headers are set, overwrite them if instructed.
  15549. for (var h in options.headers)
  15550. config.headers[h.toLowerCase()] = options.headers[h];
  15551. config.uri_modifier = get_option('uri_modifier', null);
  15552. return config;
  15553. }
  15554. Needle.prototype.start = function() {
  15555. var out = new stream.PassThrough({ objectMode: false }),
  15556. uri = this.uri,
  15557. data = this.data,
  15558. method = this.method,
  15559. callback = (typeof this.options == 'function') ? this.options : this.callback,
  15560. options = this.options || {};
  15561. // if no 'http' is found on URL, prepend it.
  15562. if (uri.indexOf('http') === -1)
  15563. uri = uri.replace(/^(\/\/)?/, 'http://');
  15564. var self = this, body, waiting = false, config = this.setup(uri, options);
  15565. // unless options.json was set to false, assume boss also wants JSON if content-type matches.
  15566. var json = options.json || (options.json !== false && config.headers['content-type'] == 'application/json');
  15567. if (data) {
  15568. if (options.multipart) { // boss says we do multipart. so we do it.
  15569. var boundary = options.boundary || defaults.boundary;
  15570. waiting = true;
  15571. multipart.build(data, boundary, function(err, parts) {
  15572. if (err) throw(err);
  15573. config.headers['content-type'] = 'multipart/form-data; boundary=' + boundary;
  15574. next(parts);
  15575. });
  15576. } else if (is_stream(data)) {
  15577. if (method.toUpperCase() == 'GET')
  15578. throw new Error('Refusing to pipe() a stream via GET. Did you mean .post?');
  15579. if (config.stream_length > 0 || (config.stream_length === 0 && data.path)) {
  15580. // ok, let's get the stream's length and set it as the content-length header.
  15581. // this prevents some servers from cutting us off before all the data is sent.
  15582. waiting = true;
  15583. get_stream_length(data, config.stream_length, function(length) {
  15584. data.length = length;
  15585. next(data);
  15586. })
  15587. } else {
  15588. // if the boss doesn't want us to get the stream's length, or if it doesn't
  15589. // have a file descriptor for that purpose, then just head on.
  15590. body = data;
  15591. }
  15592. } else if (Buffer.isBuffer(data)) {
  15593. body = data; // use the raw buffer as request body.
  15594. } else if (method.toUpperCase() == 'GET' && !json) {
  15595. // append the data to the URI as a querystring.
  15596. uri = uri.replace(/\?.*|$/, '?' + stringify(data));
  15597. } else { // string or object data, no multipart.
  15598. // if string, leave it as it is, otherwise, stringify.
  15599. body = (typeof(data) === 'string') ? data
  15600. : json ? JSON.stringify(data) : stringify(data);
  15601. // ensure we have a buffer so bytecount is correct.
  15602. body = Buffer.from(body, config.encoding);
  15603. }
  15604. }
  15605. function next(body) {
  15606. if (body) {
  15607. if (body.length) config.headers['content-length'] = body.length;
  15608. // if no content-type was passed, determine if json or not.
  15609. if (!config.headers['content-type']) {
  15610. config.headers['content-type'] = json
  15611. ? 'application/json; charset=utf-8'
  15612. : 'application/x-www-form-urlencoded'; // no charset says W3 spec.
  15613. }
  15614. }
  15615. // unless a specific accept header was set, assume json: true wants JSON back.
  15616. if (options.json && (!options.accept && !(options.headers || {}).accept))
  15617. config.headers['accept'] = 'application/json';
  15618. self.send_request(1, method, uri, config, body, out, callback);
  15619. }
  15620. if (!waiting) next(body);
  15621. return out;
  15622. }
  15623. Needle.prototype.get_request_opts = function(method, uri, config) {
  15624. var opts = config.http_opts,
  15625. proxy = config.proxy,
  15626. remote = proxy ? url.parse(proxy) : url.parse(uri);
  15627. opts.protocol = remote.protocol;
  15628. opts.host = remote.hostname;
  15629. opts.port = remote.port || (remote.protocol == 'https:' ? 443 : 80);
  15630. opts.path = proxy ? uri : remote.pathname + (remote.search || '');
  15631. opts.method = method;
  15632. opts.headers = config.headers;
  15633. if (!opts.headers['host']) {
  15634. // if using proxy, make sure the host header shows the final destination
  15635. var target = proxy ? url.parse(uri) : remote;
  15636. opts.headers['host'] = target.hostname;
  15637. // and if a non standard port was passed, append it to the port header
  15638. if (target.port && [80, 443].indexOf(target.port) === -1) {
  15639. opts.headers['host'] += ':' + target.port;
  15640. }
  15641. }
  15642. return opts;
  15643. }
  15644. Needle.prototype.should_follow = function(location, config, original) {
  15645. if (!location) return false;
  15646. // returns true if location contains matching property (host or protocol)
  15647. function matches(property) {
  15648. var property = original[property];
  15649. return location.indexOf(property) !== -1;
  15650. }
  15651. // first, check whether the requested location is actually different from the original
  15652. if (!config.follow_if_same_location && location === original)
  15653. return false;
  15654. if (config.follow_if_same_host && !matches('host'))
  15655. return false; // host does not match, so not following
  15656. if (config.follow_if_same_protocol && !matches('protocol'))
  15657. return false; // procotol does not match, so not following
  15658. return true;
  15659. }
  15660. Needle.prototype.send_request = function(count, method, uri, config, post_data, out, callback) {
  15661. if (typeof config.uri_modifier === 'function') {
  15662. var modified_uri = config.uri_modifier(uri);
  15663. debug('Modifying request URI', uri + ' => ' + modified_uri);
  15664. uri = modified_uri;
  15665. }
  15666. var timer,
  15667. returned = 0,
  15668. self = this,
  15669. request_opts = this.get_request_opts(method, uri, config),
  15670. protocol = request_opts.protocol == 'https:' ? https : http;
  15671. function done(err, resp) {
  15672. if (returned++ > 0)
  15673. return debug('Already finished, stopping here.');
  15674. if (timer) clearTimeout(timer);
  15675. request.removeListener('error', had_error);
  15676. if (callback)
  15677. return callback(err, resp, resp ? resp.body : undefined);
  15678. // NOTE: this event used to be called 'end', but the behaviour was confusing
  15679. // when errors ocurred, because the stream would still emit an 'end' event.
  15680. out.emit('done', err);
  15681. }
  15682. function had_error(err) {
  15683. debug('Request error', err);
  15684. out.emit('err', err);
  15685. done(err || new Error('Unknown error when making request.'));
  15686. }
  15687. function set_timeout(type, milisecs) {
  15688. if (timer) clearTimeout(timer);
  15689. if (milisecs <= 0) return;
  15690. timer = setTimeout(function() {
  15691. out.emit('timeout', type);
  15692. request.abort();
  15693. // also invoke done() to terminate job on read_timeout
  15694. if (type == 'read') done(new Error(type + ' timeout'));
  15695. }, milisecs);
  15696. }
  15697. // handle errors on the underlying socket, that may be closed while writing
  15698. // for an example case, see test/long_string_spec.js. we make sure this
  15699. // scenario ocurred by verifying the socket's writable & destroyed states.
  15700. function on_socket_end() {
  15701. if (returned && !this.writable && this.destroyed === false) {
  15702. this.destroy();
  15703. had_error(new Error('Remote end closed socket abruptly.'))
  15704. }
  15705. }
  15706. debug('Making request #' + count, request_opts);
  15707. var request = protocol.request(request_opts, function(resp) {
  15708. var headers = resp.headers;
  15709. debug('Got response', resp.statusCode, headers);
  15710. out.emit('response', resp);
  15711. set_timeout('read', config.read_timeout);
  15712. // if we got cookies, parse them unless we were instructed not to. make sure to include any
  15713. // cookies that might have been set on previous redirects.
  15714. if (config.parse_cookies && (headers['set-cookie'] || config.previous_resp_cookies)) {
  15715. resp.cookies = extend(config.previous_resp_cookies || {}, cookies.read(headers['set-cookie']));
  15716. debug('Got cookies', resp.cookies);
  15717. }
  15718. // if redirect code is found, determine if we should follow it according to the given options.
  15719. if (redirect_codes.indexOf(resp.statusCode) !== -1 && self.should_follow(headers.location, config, uri)) {
  15720. // clear timer before following redirects to prevent unexpected setTimeout consequence
  15721. clearTimeout(timer);
  15722. if (count <= config.follow_max) {
  15723. out.emit('redirect', headers.location);
  15724. // unless 'follow_keep_method' is true, rewrite the request to GET before continuing.
  15725. if (!config.follow_keep_method) {
  15726. method = 'GET';
  15727. post_data = null;
  15728. delete config.headers['content-length']; // in case the original was a multipart POST request.
  15729. }
  15730. // if follow_set_cookies is true, insert cookies in the next request's headers.
  15731. // we set both the original request cookies plus any response cookies we might have received.
  15732. if (config.follow_set_cookies) {
  15733. var request_cookies = cookies.read(config.headers['cookie']);
  15734. config.previous_resp_cookies = resp.cookies;
  15735. if (Object.keys(request_cookies).length || Object.keys(resp.cookies || {}).length) {
  15736. config.headers['cookie'] = cookies.write(extend(request_cookies, resp.cookies));
  15737. }
  15738. } else if (config.headers['cookie']) {
  15739. debug('Clearing original request cookie', config.headers['cookie']);
  15740. delete config.headers['cookie'];
  15741. }
  15742. if (config.follow_set_referer)
  15743. config.headers['referer'] = encodeURI(uri); // the original, not the destination URL.
  15744. config.headers['host'] = null; // clear previous Host header to avoid conflicts.
  15745. debug('Redirecting to ' + url.resolve(uri, headers.location));
  15746. return self.send_request(++count, method, url.resolve(uri, headers.location), config, post_data, out, callback);
  15747. } else if (config.follow_max > 0) {
  15748. return done(new Error('Max redirects reached. Possible loop in: ' + headers.location));
  15749. }
  15750. }
  15751. // if auth is requested and credentials were not passed, resend request, provided we have user/pass.
  15752. if (resp.statusCode == 401 && headers['www-authenticate'] && config.credentials) {
  15753. if (!config.headers['authorization']) { // only if authentication hasn't been sent
  15754. var auth_header = auth.header(headers['www-authenticate'], config.credentials, request_opts);
  15755. if (auth_header) {
  15756. config.headers['authorization'] = auth_header;
  15757. return self.send_request(count, method, uri, config, post_data, out, callback);
  15758. }
  15759. }
  15760. }
  15761. // ok, so we got a valid (non-redirect & authorized) response. let's notify the stream guys.
  15762. out.emit('header', resp.statusCode, headers);
  15763. out.emit('headers', headers);
  15764. var pipeline = [],
  15765. mime = parse_content_type(headers['content-type']),
  15766. text_response = mime.type && mime.type.indexOf('text/') != -1;
  15767. // To start, if our body is compressed and we're able to inflate it, do it.
  15768. if (headers['content-encoding'] && decompressors[headers['content-encoding']]) {
  15769. var decompressor = decompressors[headers['content-encoding']]();
  15770. // make sure we catch errors triggered by the decompressor.
  15771. decompressor.on('error', had_error);
  15772. pipeline.push(decompressor);
  15773. }
  15774. // If parse is enabled and we have a parser for it, then go for it.
  15775. if (config.parser && parsers[mime.type]) {
  15776. // If a specific parser was requested, make sure we don't parse other types.
  15777. var parser_name = config.parser.toString().toLowerCase();
  15778. if (['xml', 'json'].indexOf(parser_name) == -1 || parsers[mime.type].name == parser_name) {
  15779. // OK, so either we're parsing all content types or the one requested matches.
  15780. out.parser = parsers[mime.type].name;
  15781. pipeline.push(parsers[mime.type].fn());
  15782. // Set objectMode on out stream to improve performance.
  15783. out._writableState.objectMode = true;
  15784. out._readableState.objectMode = true;
  15785. }
  15786. // If we're not parsing, and unless decoding was disabled, we'll try
  15787. // decoding non UTF-8 bodies to UTF-8, using the iconv-lite library.
  15788. } else if (text_response && config.decode_response
  15789. && mime.charset) {
  15790. pipeline.push(decoder(mime.charset));
  15791. }
  15792. // And `out` is the stream we finally push the decoded/parsed output to.
  15793. pipeline.push(out);
  15794. // Now, release the kraken!
  15795. var tmp = resp;
  15796. while (pipeline.length) {
  15797. tmp = tmp.pipe(pipeline.shift());
  15798. }
  15799. // If the user has requested and output file, pipe the output stream to it.
  15800. // In stream mode, we will still get the response stream to play with.
  15801. if (config.output && resp.statusCode == 200) {
  15802. // for some reason, simply piping resp to the writable stream doesn't
  15803. // work all the time (stream gets cut in the middle with no warning).
  15804. // so we'll manually need to do the readable/write(chunk) trick.
  15805. var file = fs.createWriteStream(config.output);
  15806. file.on('error', had_error);
  15807. out.on('end', function() {
  15808. if (file.writable) file.end();
  15809. });
  15810. file.on('close', function() {
  15811. delete out.file;
  15812. })
  15813. out.on('readable', function() {
  15814. var chunk;
  15815. while ((chunk = this.read()) !== null) {
  15816. if (file.writable) file.write(chunk);
  15817. // if callback was requested, also push it to resp.body
  15818. if (resp.body) resp.body.push(chunk);
  15819. }
  15820. })
  15821. out.file = file;
  15822. }
  15823. // Only aggregate the full body if a callback was requested.
  15824. if (callback) {
  15825. resp.raw = [];
  15826. resp.body = [];
  15827. resp.bytes = 0;
  15828. // Gather and count the amount of (raw) bytes using a PassThrough stream.
  15829. var clean_pipe = new stream.PassThrough();
  15830. resp.pipe(clean_pipe);
  15831. clean_pipe.on('readable', function() {
  15832. var chunk;
  15833. while ((chunk = this.read()) != null) {
  15834. resp.bytes += chunk.length;
  15835. resp.raw.push(chunk);
  15836. }
  15837. })
  15838. // Listen on the 'readable' event to aggregate the chunks, but only if
  15839. // file output wasn't requested. Otherwise we'd have two stream readers.
  15840. if (!config.output || resp.statusCode != 200) {
  15841. out.on('readable', function() {
  15842. var chunk;
  15843. while ((chunk = this.read()) !== null) {
  15844. // We're either pushing buffers or objects, never strings.
  15845. if (typeof chunk == 'string') chunk = Buffer.from(chunk);
  15846. // Push all chunks to resp.body. We'll bind them in resp.end().
  15847. resp.body.push(chunk);
  15848. }
  15849. })
  15850. }
  15851. }
  15852. // And set the .body property once all data is in.
  15853. out.on('end', function() {
  15854. if (resp.body) { // callback mode
  15855. // we want to be able to access to the raw data later, so keep a reference.
  15856. resp.raw = Buffer.concat(resp.raw);
  15857. // if parse was successful, we should have an array with one object
  15858. if (resp.body[0] !== undefined && !Buffer.isBuffer(resp.body[0])) {
  15859. // that's our body right there.
  15860. resp.body = resp.body[0];
  15861. // set the parser property on our response. we may want to check.
  15862. if (out.parser) resp.parser = out.parser;
  15863. } else { // we got one or several buffers. string or binary.
  15864. resp.body = Buffer.concat(resp.body);
  15865. // if we're here and parsed is true, it means we tried to but it didn't work.
  15866. // so given that we got a text response, let's stringify it.
  15867. if (text_response || out.parser) {
  15868. resp.body = resp.body.toString();
  15869. }
  15870. }
  15871. }
  15872. // if an output file is being written to, make sure the callback
  15873. // is triggered after all data has been written to it.
  15874. if (out.file) {
  15875. out.file.on('close', function() {
  15876. done(null, resp, resp.body);
  15877. })
  15878. } else { // elvis has left the building.
  15879. done(null, resp, resp.body);
  15880. }
  15881. });
  15882. }); // end request call
  15883. // unless open_timeout was disabled, set a timeout to abort the request.
  15884. set_timeout('open', config.open_timeout);
  15885. // handle errors on the request object. things might get bumpy.
  15886. request.on('error', had_error);
  15887. // make sure timer is cleared if request is aborted (issue #257)
  15888. request.once('abort', function() {
  15889. if (timer) clearTimeout(timer);
  15890. })
  15891. // handle socket 'end' event to ensure we don't get delayed EPIPE errors.
  15892. request.once('socket', function(socket) {
  15893. if (socket.connecting) {
  15894. socket.once('connect', function() {
  15895. set_timeout('response', config.response_timeout);
  15896. })
  15897. } else {
  15898. set_timeout('response', config.response_timeout);
  15899. }
  15900. // console.log(socket);
  15901. if (!socket.on_socket_end) {
  15902. socket.on_socket_end = on_socket_end;
  15903. socket.once('end', function() { process.nextTick(on_socket_end.bind(socket)) });
  15904. }
  15905. })
  15906. if (post_data) {
  15907. if (is_stream(post_data)) {
  15908. post_data.pipe(request);
  15909. } else {
  15910. request.write(post_data, config.encoding);
  15911. request.end();
  15912. }
  15913. } else {
  15914. request.end();
  15915. }
  15916. out.request = request;
  15917. return out;
  15918. }
  15919. //////////////////////////////////////////
  15920. // exports
  15921. if (typeof Promise !== 'undefined') {
  15922. module.exports = function() {
  15923. var verb, args = [].slice.call(arguments);
  15924. if (args[0].match(/\.|\//)) // first argument looks like a URL
  15925. verb = (args.length > 2) ? 'post' : 'get';
  15926. else
  15927. verb = args.shift();
  15928. if (verb.match(/get|head/) && args.length == 2)
  15929. args.splice(1, 0, null); // assume no data if head/get with two args (url, options)
  15930. return new Promise(function(resolve, reject) {
  15931. module.exports.request(verb, args[0], args[1], args[2], function(err, resp) {
  15932. return err ? reject(err) : resolve(resp);
  15933. });
  15934. })
  15935. }
  15936. }
  15937. module.exports.version = version;
  15938. module.exports.defaults = function(obj) {
  15939. for (var key in obj) {
  15940. var target_key = aliased.options[key] || key;
  15941. if (defaults.hasOwnProperty(target_key) && typeof obj[key] != 'undefined') {
  15942. if (target_key != 'parse_response' && target_key != 'proxy') {
  15943. // ensure type matches the original, except for proxy/parse_response that can be null/bool or string
  15944. var valid_type = defaults[target_key].constructor.name;
  15945. if (obj[key].constructor.name != valid_type)
  15946. throw new TypeError('Invalid type for ' + key + ', should be ' + valid_type);
  15947. }
  15948. defaults[target_key] = obj[key];
  15949. } else {
  15950. throw new Error('Invalid property for defaults:' + target_key);
  15951. }
  15952. }
  15953. return defaults;
  15954. }
  15955. 'head get'.split(' ').forEach(function(method) {
  15956. module.exports[method] = function(uri, options, callback) {
  15957. return new Needle(method, uri, null, options, callback).start();
  15958. }
  15959. })
  15960. 'post put patch delete'.split(' ').forEach(function(method) {
  15961. module.exports[method] = function(uri, data, options, callback) {
  15962. return new Needle(method, uri, data, options, callback).start();
  15963. }
  15964. })
  15965. module.exports.request = function(method, uri, data, opts, callback) {
  15966. return new Needle(method, uri, data, opts, callback).start();
  15967. };
  15968. /***/ }),
  15969. /***/ 34417:
  15970. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  15971. //////////////////////////////////////////
  15972. // Defines mappings between content-type
  15973. // and the appropriate parsers.
  15974. //////////////////////////////////////////
  15975. var Transform = __webpack_require__(92413).Transform;
  15976. var sax = __webpack_require__(36099);
  15977. function parseXML(str, cb) {
  15978. var obj, current, parser = sax.parser(true, { trim: true, lowercase: true })
  15979. parser.onerror = parser.onend = done;
  15980. function done(err) {
  15981. parser.onerror = parser.onend = function() { }
  15982. cb(err, obj)
  15983. }
  15984. function newElement(name, attributes) {
  15985. return {
  15986. name: name || '',
  15987. value: '',
  15988. attributes: attributes || {},
  15989. children: []
  15990. }
  15991. }
  15992. parser.oncdata = parser.ontext = function(t) {
  15993. if (current) current.value += t
  15994. }
  15995. parser.onopentag = function(node) {
  15996. var element = newElement(node.name, node.attributes)
  15997. if (current) {
  15998. element.parent = current
  15999. current.children.push(element)
  16000. } else { // root object
  16001. obj = element
  16002. }
  16003. current = element
  16004. };
  16005. parser.onclosetag = function() {
  16006. if (typeof current.parent !== 'undefined') {
  16007. var just_closed = current
  16008. current = current.parent
  16009. delete just_closed.parent
  16010. }
  16011. }
  16012. parser.write(str).close()
  16013. }
  16014. function parserFactory(name, fn) {
  16015. function parser() {
  16016. var chunks = [],
  16017. stream = new Transform({ objectMode: true });
  16018. // Buffer all our data
  16019. stream._transform = function(chunk, encoding, done) {
  16020. chunks.push(chunk);
  16021. done();
  16022. }
  16023. // And call the parser when all is there.
  16024. stream._flush = function(done) {
  16025. var self = this,
  16026. data = Buffer.concat(chunks);
  16027. try {
  16028. fn(data, function(err, result) {
  16029. if (err) throw err;
  16030. self.push(result);
  16031. });
  16032. } catch (err) {
  16033. self.push(data); // just pass the original data
  16034. } finally {
  16035. done();
  16036. }
  16037. }
  16038. return stream;
  16039. }
  16040. return { fn: parser, name: name };
  16041. }
  16042. var parsers = {}
  16043. function buildParser(name, types, fn) {
  16044. var parser = parserFactory(name, fn);
  16045. types.forEach(function(type) {
  16046. parsers[type] = parser;
  16047. })
  16048. }
  16049. buildParser('json', [
  16050. 'application/json',
  16051. 'text/javascript'
  16052. ], function(buffer, cb) {
  16053. var err, data;
  16054. try { data = JSON.parse(buffer); } catch (e) { err = e; }
  16055. cb(err, data);
  16056. });
  16057. buildParser('xml', [
  16058. 'text/xml',
  16059. 'application/xml',
  16060. 'application/rdf+xml',
  16061. 'application/rss+xml',
  16062. 'application/atom+xml'
  16063. ], function(buffer, cb) {
  16064. parseXML(buffer.toString(), function(err, obj) {
  16065. cb(err, obj)
  16066. })
  16067. });
  16068. module.exports = parsers;
  16069. module.exports.use = buildParser;
  16070. /***/ }),
  16071. /***/ 40773:
  16072. /***/ ((__unused_webpack_module, exports) => {
  16073. // based on the qs module, but handles null objects as expected
  16074. // fixes by Tomas Pollak.
  16075. var toString = Object.prototype.toString;
  16076. function stringify(obj, prefix) {
  16077. if (prefix && (obj === null || typeof obj == 'undefined')) {
  16078. return prefix + '=';
  16079. } else if (toString.call(obj) == '[object Array]') {
  16080. return stringifyArray(obj, prefix);
  16081. } else if (toString.call(obj) == '[object Object]') {
  16082. return stringifyObject(obj, prefix);
  16083. } else if (toString.call(obj) == '[object Date]') {
  16084. return obj.toISOString();
  16085. } else if (prefix) { // string inside array or hash
  16086. return prefix + '=' + encodeURIComponent(String(obj));
  16087. } else if (String(obj).indexOf('=') !== -1) { // string with equal sign
  16088. return String(obj);
  16089. } else {
  16090. throw new TypeError('Cannot build a querystring out of: ' + obj);
  16091. }
  16092. };
  16093. function stringifyArray(arr, prefix) {
  16094. var ret = [];
  16095. for (var i = 0, len = arr.length; i < len; i++) {
  16096. if (prefix)
  16097. ret.push(stringify(arr[i], prefix + '[]'));
  16098. else
  16099. ret.push(stringify(arr[i]));
  16100. }
  16101. return ret.join('&');
  16102. }
  16103. function stringifyObject(obj, prefix) {
  16104. var ret = [];
  16105. Object.keys(obj).forEach(function(key) {
  16106. ret.push(stringify(obj[key], prefix
  16107. ? prefix + '[' + encodeURIComponent(key) + ']'
  16108. : encodeURIComponent(key)));
  16109. })
  16110. return ret.join('&');
  16111. }
  16112. exports.J = stringify;
  16113. /***/ }),
  16114. /***/ 3643:
  16115. /***/ ((module, exports, __webpack_require__) => {
  16116. "use strict";
  16117. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  16118. /* eslint-env browser */
  16119. /**
  16120. * This is the web browser implementation of `debug()`.
  16121. */
  16122. exports.log = log;
  16123. exports.formatArgs = formatArgs;
  16124. exports.save = save;
  16125. exports.load = load;
  16126. exports.useColors = useColors;
  16127. exports.storage = localstorage();
  16128. /**
  16129. * Colors.
  16130. */
  16131. exports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];
  16132. /**
  16133. * Currently only WebKit-based Web Inspectors, Firefox >= v31,
  16134. * and the Firebug extension (any Firefox version) are known
  16135. * to support "%c" CSS customizations.
  16136. *
  16137. * TODO: add a `localStorage` variable to explicitly enable/disable colors
  16138. */
  16139. // eslint-disable-next-line complexity
  16140. function useColors() {
  16141. // NB: In an Electron preload script, document will be defined but not fully
  16142. // initialized. Since we know we're in Chrome, we'll just detect this case
  16143. // explicitly
  16144. if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
  16145. return true;
  16146. } // Internet Explorer and Edge do not support colors.
  16147. if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
  16148. return false;
  16149. } // Is webkit? http://stackoverflow.com/a/16459606/376773
  16150. // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
  16151. return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
  16152. typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
  16153. // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
  16154. typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
  16155. typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
  16156. }
  16157. /**
  16158. * Colorize log arguments if enabled.
  16159. *
  16160. * @api public
  16161. */
  16162. function formatArgs(args) {
  16163. args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);
  16164. if (!this.useColors) {
  16165. return;
  16166. }
  16167. var c = 'color: ' + this.color;
  16168. args.splice(1, 0, c, 'color: inherit'); // The final "%c" is somewhat tricky, because there could be other
  16169. // arguments passed either before or after the %c, so we need to
  16170. // figure out the correct index to insert the CSS into
  16171. var index = 0;
  16172. var lastC = 0;
  16173. args[0].replace(/%[a-zA-Z%]/g, function (match) {
  16174. if (match === '%%') {
  16175. return;
  16176. }
  16177. index++;
  16178. if (match === '%c') {
  16179. // We only are interested in the *last* %c
  16180. // (the user may have provided their own)
  16181. lastC = index;
  16182. }
  16183. });
  16184. args.splice(lastC, 0, c);
  16185. }
  16186. /**
  16187. * Invokes `console.log()` when available.
  16188. * No-op when `console.log` is not a "function".
  16189. *
  16190. * @api public
  16191. */
  16192. function log() {
  16193. var _console;
  16194. // This hackery is required for IE8/9, where
  16195. // the `console.log` function doesn't have 'apply'
  16196. return (typeof console === "undefined" ? "undefined" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);
  16197. }
  16198. /**
  16199. * Save `namespaces`.
  16200. *
  16201. * @param {String} namespaces
  16202. * @api private
  16203. */
  16204. function save(namespaces) {
  16205. try {
  16206. if (namespaces) {
  16207. exports.storage.setItem('debug', namespaces);
  16208. } else {
  16209. exports.storage.removeItem('debug');
  16210. }
  16211. } catch (error) {// Swallow
  16212. // XXX (@Qix-) should we be logging these?
  16213. }
  16214. }
  16215. /**
  16216. * Load `namespaces`.
  16217. *
  16218. * @return {String} returns the previously persisted debug modes
  16219. * @api private
  16220. */
  16221. function load() {
  16222. var r;
  16223. try {
  16224. r = exports.storage.getItem('debug');
  16225. } catch (error) {} // Swallow
  16226. // XXX (@Qix-) should we be logging these?
  16227. // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
  16228. if (!r && typeof process !== 'undefined' && 'env' in process) {
  16229. r = process.env.DEBUG;
  16230. }
  16231. return r;
  16232. }
  16233. /**
  16234. * Localstorage attempts to return the localstorage.
  16235. *
  16236. * This is necessary because safari throws
  16237. * when a user disables cookies/localstorage
  16238. * and you attempt to access it.
  16239. *
  16240. * @return {LocalStorage}
  16241. * @api private
  16242. */
  16243. function localstorage() {
  16244. try {
  16245. // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
  16246. // The Browser also has localStorage in the global context.
  16247. return localStorage;
  16248. } catch (error) {// Swallow
  16249. // XXX (@Qix-) should we be logging these?
  16250. }
  16251. }
  16252. module.exports = __webpack_require__(55782)(exports);
  16253. var formatters = module.exports.formatters;
  16254. /**
  16255. * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
  16256. */
  16257. formatters.j = function (v) {
  16258. try {
  16259. return JSON.stringify(v);
  16260. } catch (error) {
  16261. return '[UnexpectedJSONParseError]: ' + error.message;
  16262. }
  16263. };
  16264. /***/ }),
  16265. /***/ 55782:
  16266. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  16267. "use strict";
  16268. /**
  16269. * This is the common logic for both the Node.js and web browser
  16270. * implementations of `debug()`.
  16271. */
  16272. function setup(env) {
  16273. createDebug.debug = createDebug;
  16274. createDebug.default = createDebug;
  16275. createDebug.coerce = coerce;
  16276. createDebug.disable = disable;
  16277. createDebug.enable = enable;
  16278. createDebug.enabled = enabled;
  16279. createDebug.humanize = __webpack_require__(57824);
  16280. Object.keys(env).forEach(function (key) {
  16281. createDebug[key] = env[key];
  16282. });
  16283. /**
  16284. * Active `debug` instances.
  16285. */
  16286. createDebug.instances = [];
  16287. /**
  16288. * The currently active debug mode names, and names to skip.
  16289. */
  16290. createDebug.names = [];
  16291. createDebug.skips = [];
  16292. /**
  16293. * Map of special "%n" handling functions, for the debug "format" argument.
  16294. *
  16295. * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
  16296. */
  16297. createDebug.formatters = {};
  16298. /**
  16299. * Selects a color for a debug namespace
  16300. * @param {String} namespace The namespace string for the for the debug instance to be colored
  16301. * @return {Number|String} An ANSI color code for the given namespace
  16302. * @api private
  16303. */
  16304. function selectColor(namespace) {
  16305. var hash = 0;
  16306. for (var i = 0; i < namespace.length; i++) {
  16307. hash = (hash << 5) - hash + namespace.charCodeAt(i);
  16308. hash |= 0; // Convert to 32bit integer
  16309. }
  16310. return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
  16311. }
  16312. createDebug.selectColor = selectColor;
  16313. /**
  16314. * Create a debugger with the given `namespace`.
  16315. *
  16316. * @param {String} namespace
  16317. * @return {Function}
  16318. * @api public
  16319. */
  16320. function createDebug(namespace) {
  16321. var prevTime;
  16322. function debug() {
  16323. // Disabled?
  16324. if (!debug.enabled) {
  16325. return;
  16326. }
  16327. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  16328. args[_key] = arguments[_key];
  16329. }
  16330. var self = debug; // Set `diff` timestamp
  16331. var curr = Number(new Date());
  16332. var ms = curr - (prevTime || curr);
  16333. self.diff = ms;
  16334. self.prev = prevTime;
  16335. self.curr = curr;
  16336. prevTime = curr;
  16337. args[0] = createDebug.coerce(args[0]);
  16338. if (typeof args[0] !== 'string') {
  16339. // Anything else let's inspect with %O
  16340. args.unshift('%O');
  16341. } // Apply any `formatters` transformations
  16342. var index = 0;
  16343. args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {
  16344. // If we encounter an escaped % then don't increase the array index
  16345. if (match === '%%') {
  16346. return match;
  16347. }
  16348. index++;
  16349. var formatter = createDebug.formatters[format];
  16350. if (typeof formatter === 'function') {
  16351. var val = args[index];
  16352. match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`
  16353. args.splice(index, 1);
  16354. index--;
  16355. }
  16356. return match;
  16357. }); // Apply env-specific formatting (colors, etc.)
  16358. createDebug.formatArgs.call(self, args);
  16359. var logFn = self.log || createDebug.log;
  16360. logFn.apply(self, args);
  16361. }
  16362. debug.namespace = namespace;
  16363. debug.enabled = createDebug.enabled(namespace);
  16364. debug.useColors = createDebug.useColors();
  16365. debug.color = selectColor(namespace);
  16366. debug.destroy = destroy;
  16367. debug.extend = extend; // Debug.formatArgs = formatArgs;
  16368. // debug.rawLog = rawLog;
  16369. // env-specific initialization logic for debug instances
  16370. if (typeof createDebug.init === 'function') {
  16371. createDebug.init(debug);
  16372. }
  16373. createDebug.instances.push(debug);
  16374. return debug;
  16375. }
  16376. function destroy() {
  16377. var index = createDebug.instances.indexOf(this);
  16378. if (index !== -1) {
  16379. createDebug.instances.splice(index, 1);
  16380. return true;
  16381. }
  16382. return false;
  16383. }
  16384. function extend(namespace, delimiter) {
  16385. return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
  16386. }
  16387. /**
  16388. * Enables a debug mode by namespaces. This can include modes
  16389. * separated by a colon and wildcards.
  16390. *
  16391. * @param {String} namespaces
  16392. * @api public
  16393. */
  16394. function enable(namespaces) {
  16395. createDebug.save(namespaces);
  16396. createDebug.names = [];
  16397. createDebug.skips = [];
  16398. var i;
  16399. var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
  16400. var len = split.length;
  16401. for (i = 0; i < len; i++) {
  16402. if (!split[i]) {
  16403. // ignore empty strings
  16404. continue;
  16405. }
  16406. namespaces = split[i].replace(/\*/g, '.*?');
  16407. if (namespaces[0] === '-') {
  16408. createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
  16409. } else {
  16410. createDebug.names.push(new RegExp('^' + namespaces + '$'));
  16411. }
  16412. }
  16413. for (i = 0; i < createDebug.instances.length; i++) {
  16414. var instance = createDebug.instances[i];
  16415. instance.enabled = createDebug.enabled(instance.namespace);
  16416. }
  16417. }
  16418. /**
  16419. * Disable debug output.
  16420. *
  16421. * @api public
  16422. */
  16423. function disable() {
  16424. createDebug.enable('');
  16425. }
  16426. /**
  16427. * Returns true if the given mode name is enabled, false otherwise.
  16428. *
  16429. * @param {String} name
  16430. * @return {Boolean}
  16431. * @api public
  16432. */
  16433. function enabled(name) {
  16434. if (name[name.length - 1] === '*') {
  16435. return true;
  16436. }
  16437. var i;
  16438. var len;
  16439. for (i = 0, len = createDebug.skips.length; i < len; i++) {
  16440. if (createDebug.skips[i].test(name)) {
  16441. return false;
  16442. }
  16443. }
  16444. for (i = 0, len = createDebug.names.length; i < len; i++) {
  16445. if (createDebug.names[i].test(name)) {
  16446. return true;
  16447. }
  16448. }
  16449. return false;
  16450. }
  16451. /**
  16452. * Coerce `val`.
  16453. *
  16454. * @param {Mixed} val
  16455. * @return {Mixed}
  16456. * @api private
  16457. */
  16458. function coerce(val) {
  16459. if (val instanceof Error) {
  16460. return val.stack || val.message;
  16461. }
  16462. return val;
  16463. }
  16464. createDebug.enable(createDebug.load());
  16465. return createDebug;
  16466. }
  16467. module.exports = setup;
  16468. /***/ }),
  16469. /***/ 60761:
  16470. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  16471. "use strict";
  16472. /**
  16473. * Detect Electron renderer / nwjs process, which is node, but we should
  16474. * treat as a browser.
  16475. */
  16476. if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
  16477. module.exports = __webpack_require__(3643);
  16478. } else {
  16479. module.exports = __webpack_require__(65481);
  16480. }
  16481. /***/ }),
  16482. /***/ 65481:
  16483. /***/ ((module, exports, __webpack_require__) => {
  16484. "use strict";
  16485. /**
  16486. * Module dependencies.
  16487. */
  16488. var tty = __webpack_require__(33867);
  16489. var util = __webpack_require__(31669);
  16490. /**
  16491. * This is the Node.js implementation of `debug()`.
  16492. */
  16493. exports.init = init;
  16494. exports.log = log;
  16495. exports.formatArgs = formatArgs;
  16496. exports.save = save;
  16497. exports.load = load;
  16498. exports.useColors = useColors;
  16499. /**
  16500. * Colors.
  16501. */
  16502. exports.colors = [6, 2, 3, 4, 5, 1];
  16503. try {
  16504. // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
  16505. // eslint-disable-next-line import/no-extraneous-dependencies
  16506. var supportsColor = __webpack_require__(92130);
  16507. if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
  16508. exports.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
  16509. }
  16510. } catch (error) {} // Swallow - we only care if `supports-color` is available; it doesn't have to be.
  16511. /**
  16512. * Build up the default `inspectOpts` object from the environment variables.
  16513. *
  16514. * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
  16515. */
  16516. exports.inspectOpts = Object.keys(process.env).filter(function (key) {
  16517. return /^debug_/i.test(key);
  16518. }).reduce(function (obj, key) {
  16519. // Camel-case
  16520. var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function (_, k) {
  16521. return k.toUpperCase();
  16522. }); // Coerce string value into JS value
  16523. var val = process.env[key];
  16524. if (/^(yes|on|true|enabled)$/i.test(val)) {
  16525. val = true;
  16526. } else if (/^(no|off|false|disabled)$/i.test(val)) {
  16527. val = false;
  16528. } else if (val === 'null') {
  16529. val = null;
  16530. } else {
  16531. val = Number(val);
  16532. }
  16533. obj[prop] = val;
  16534. return obj;
  16535. }, {});
  16536. /**
  16537. * Is stdout a TTY? Colored output is enabled when `true`.
  16538. */
  16539. function useColors() {
  16540. return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
  16541. }
  16542. /**
  16543. * Adds ANSI color escape codes if enabled.
  16544. *
  16545. * @api public
  16546. */
  16547. function formatArgs(args) {
  16548. var name = this.namespace,
  16549. useColors = this.useColors;
  16550. if (useColors) {
  16551. var c = this.color;
  16552. var colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c);
  16553. var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
  16554. args[0] = prefix + args[0].split('\n').join('\n' + prefix);
  16555. args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + "\x1B[0m");
  16556. } else {
  16557. args[0] = getDate() + name + ' ' + args[0];
  16558. }
  16559. }
  16560. function getDate() {
  16561. if (exports.inspectOpts.hideDate) {
  16562. return '';
  16563. }
  16564. return new Date().toISOString() + ' ';
  16565. }
  16566. /**
  16567. * Invokes `util.format()` with the specified arguments and writes to stderr.
  16568. */
  16569. function log() {
  16570. return process.stderr.write(util.format.apply(util, arguments) + '\n');
  16571. }
  16572. /**
  16573. * Save `namespaces`.
  16574. *
  16575. * @param {String} namespaces
  16576. * @api private
  16577. */
  16578. function save(namespaces) {
  16579. if (namespaces) {
  16580. process.env.DEBUG = namespaces;
  16581. } else {
  16582. // If you set a process.env field to null or undefined, it gets cast to the
  16583. // string 'null' or 'undefined'. Just delete instead.
  16584. delete process.env.DEBUG;
  16585. }
  16586. }
  16587. /**
  16588. * Load `namespaces`.
  16589. *
  16590. * @return {String} returns the previously persisted debug modes
  16591. * @api private
  16592. */
  16593. function load() {
  16594. return process.env.DEBUG;
  16595. }
  16596. /**
  16597. * Init logic for `debug` instances.
  16598. *
  16599. * Create a new `inspectOpts` object in case `useColors` is set
  16600. * differently for a particular `debug` instance.
  16601. */
  16602. function init(debug) {
  16603. debug.inspectOpts = {};
  16604. var keys = Object.keys(exports.inspectOpts);
  16605. for (var i = 0; i < keys.length; i++) {
  16606. debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
  16607. }
  16608. }
  16609. module.exports = __webpack_require__(55782)(exports);
  16610. var formatters = module.exports.formatters;
  16611. /**
  16612. * Map %o to `util.inspect()`, all on a single line.
  16613. */
  16614. formatters.o = function (v) {
  16615. this.inspectOpts.colors = this.useColors;
  16616. return util.inspect(v, this.inspectOpts)
  16617. .split('\n')
  16618. .map(function (str) { return str.trim(); })
  16619. .join(' ');
  16620. };
  16621. /**
  16622. * Map %O to `util.inspect()`, allowing multiple lines if needed.
  16623. */
  16624. formatters.O = function (v) {
  16625. this.inspectOpts.colors = this.useColors;
  16626. return util.inspect(v, this.inspectOpts);
  16627. };
  16628. /***/ }),
  16629. /***/ 61150:
  16630. /***/ ((module) => {
  16631. "use strict";
  16632. /**
  16633. * Tries to execute a function and discards any error that occurs.
  16634. * @param {Function} fn - Function that might or might not throw an error.
  16635. * @returns {?*} Return-value of the function when no error occurred.
  16636. */
  16637. module.exports = function(fn) {
  16638. try { return fn() } catch (e) {}
  16639. }
  16640. /***/ }),
  16641. /***/ 18987:
  16642. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  16643. "use strict";
  16644. var keysShim;
  16645. if (!Object.keys) {
  16646. // modified from https://github.com/es-shims/es5-shim
  16647. var has = Object.prototype.hasOwnProperty;
  16648. var toStr = Object.prototype.toString;
  16649. var isArgs = __webpack_require__(21414); // eslint-disable-line global-require
  16650. var isEnumerable = Object.prototype.propertyIsEnumerable;
  16651. var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
  16652. var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');
  16653. var dontEnums = [
  16654. 'toString',
  16655. 'toLocaleString',
  16656. 'valueOf',
  16657. 'hasOwnProperty',
  16658. 'isPrototypeOf',
  16659. 'propertyIsEnumerable',
  16660. 'constructor'
  16661. ];
  16662. var equalsConstructorPrototype = function (o) {
  16663. var ctor = o.constructor;
  16664. return ctor && ctor.prototype === o;
  16665. };
  16666. var excludedKeys = {
  16667. $applicationCache: true,
  16668. $console: true,
  16669. $external: true,
  16670. $frame: true,
  16671. $frameElement: true,
  16672. $frames: true,
  16673. $innerHeight: true,
  16674. $innerWidth: true,
  16675. $onmozfullscreenchange: true,
  16676. $onmozfullscreenerror: true,
  16677. $outerHeight: true,
  16678. $outerWidth: true,
  16679. $pageXOffset: true,
  16680. $pageYOffset: true,
  16681. $parent: true,
  16682. $scrollLeft: true,
  16683. $scrollTop: true,
  16684. $scrollX: true,
  16685. $scrollY: true,
  16686. $self: true,
  16687. $webkitIndexedDB: true,
  16688. $webkitStorageInfo: true,
  16689. $window: true
  16690. };
  16691. var hasAutomationEqualityBug = (function () {
  16692. /* global window */
  16693. if (typeof window === 'undefined') { return false; }
  16694. for (var k in window) {
  16695. try {
  16696. if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
  16697. try {
  16698. equalsConstructorPrototype(window[k]);
  16699. } catch (e) {
  16700. return true;
  16701. }
  16702. }
  16703. } catch (e) {
  16704. return true;
  16705. }
  16706. }
  16707. return false;
  16708. }());
  16709. var equalsConstructorPrototypeIfNotBuggy = function (o) {
  16710. /* global window */
  16711. if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
  16712. return equalsConstructorPrototype(o);
  16713. }
  16714. try {
  16715. return equalsConstructorPrototype(o);
  16716. } catch (e) {
  16717. return false;
  16718. }
  16719. };
  16720. keysShim = function keys(object) {
  16721. var isObject = object !== null && typeof object === 'object';
  16722. var isFunction = toStr.call(object) === '[object Function]';
  16723. var isArguments = isArgs(object);
  16724. var isString = isObject && toStr.call(object) === '[object String]';
  16725. var theKeys = [];
  16726. if (!isObject && !isFunction && !isArguments) {
  16727. throw new TypeError('Object.keys called on a non-object');
  16728. }
  16729. var skipProto = hasProtoEnumBug && isFunction;
  16730. if (isString && object.length > 0 && !has.call(object, 0)) {
  16731. for (var i = 0; i < object.length; ++i) {
  16732. theKeys.push(String(i));
  16733. }
  16734. }
  16735. if (isArguments && object.length > 0) {
  16736. for (var j = 0; j < object.length; ++j) {
  16737. theKeys.push(String(j));
  16738. }
  16739. } else {
  16740. for (var name in object) {
  16741. if (!(skipProto && name === 'prototype') && has.call(object, name)) {
  16742. theKeys.push(String(name));
  16743. }
  16744. }
  16745. }
  16746. if (hasDontEnumBug) {
  16747. var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
  16748. for (var k = 0; k < dontEnums.length; ++k) {
  16749. if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
  16750. theKeys.push(dontEnums[k]);
  16751. }
  16752. }
  16753. }
  16754. return theKeys;
  16755. };
  16756. }
  16757. module.exports = keysShim;
  16758. /***/ }),
  16759. /***/ 82215:
  16760. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  16761. "use strict";
  16762. var slice = Array.prototype.slice;
  16763. var isArgs = __webpack_require__(21414);
  16764. var origKeys = Object.keys;
  16765. var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(18987);
  16766. var originalKeys = Object.keys;
  16767. keysShim.shim = function shimObjectKeys() {
  16768. if (Object.keys) {
  16769. var keysWorksWithArguments = (function () {
  16770. // Safari 5.0 bug
  16771. var args = Object.keys(arguments);
  16772. return args && args.length === arguments.length;
  16773. }(1, 2));
  16774. if (!keysWorksWithArguments) {
  16775. Object.keys = function keys(object) { // eslint-disable-line func-name-matching
  16776. if (isArgs(object)) {
  16777. return originalKeys(slice.call(object));
  16778. }
  16779. return originalKeys(object);
  16780. };
  16781. }
  16782. } else {
  16783. Object.keys = keysShim;
  16784. }
  16785. return Object.keys || keysShim;
  16786. };
  16787. module.exports = keysShim;
  16788. /***/ }),
  16789. /***/ 21414:
  16790. /***/ ((module) => {
  16791. "use strict";
  16792. var toStr = Object.prototype.toString;
  16793. module.exports = function isArguments(value) {
  16794. var str = toStr.call(value);
  16795. var isArgs = str === '[object Arguments]';
  16796. if (!isArgs) {
  16797. isArgs = str !== '[object Array]' &&
  16798. value !== null &&
  16799. typeof value === 'object' &&
  16800. typeof value.length === 'number' &&
  16801. value.length >= 0 &&
  16802. toStr.call(value.callee) === '[object Function]';
  16803. }
  16804. return isArgs;
  16805. };
  16806. /***/ }),
  16807. /***/ 30778:
  16808. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  16809. var wrappy = __webpack_require__(52479)
  16810. module.exports = wrappy(once)
  16811. module.exports.strict = wrappy(onceStrict)
  16812. once.proto = once(function () {
  16813. Object.defineProperty(Function.prototype, 'once', {
  16814. value: function () {
  16815. return once(this)
  16816. },
  16817. configurable: true
  16818. })
  16819. Object.defineProperty(Function.prototype, 'onceStrict', {
  16820. value: function () {
  16821. return onceStrict(this)
  16822. },
  16823. configurable: true
  16824. })
  16825. })
  16826. function once (fn) {
  16827. var f = function () {
  16828. if (f.called) return f.value
  16829. f.called = true
  16830. return f.value = fn.apply(this, arguments)
  16831. }
  16832. f.called = false
  16833. return f
  16834. }
  16835. function onceStrict (fn) {
  16836. var f = function () {
  16837. if (f.called)
  16838. throw new Error(f.onceError)
  16839. f.called = true
  16840. return f.value = fn.apply(this, arguments)
  16841. }
  16842. var name = fn.name || 'Function wrapped with `once`'
  16843. f.onceError = name + " shouldn't be called more than once"
  16844. f.called = false
  16845. return f
  16846. }
  16847. /***/ }),
  16848. /***/ 7719:
  16849. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  16850. "use strict";
  16851. const os = __webpack_require__(12087);
  16852. const macosRelease = __webpack_require__(37718);
  16853. const winRelease = __webpack_require__(46143);
  16854. const osName = (platform, release) => {
  16855. if (!platform && release) {
  16856. throw new Error('You can\'t specify a `release` without specifying `platform`');
  16857. }
  16858. platform = platform || os.platform();
  16859. let id;
  16860. if (platform === 'darwin') {
  16861. if (!release && os.platform() === 'darwin') {
  16862. release = os.release();
  16863. }
  16864. const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS';
  16865. id = release ? macosRelease(release).name : '';
  16866. return prefix + (id ? ' ' + id : '');
  16867. }
  16868. if (platform === 'linux') {
  16869. if (!release && os.platform() === 'linux') {
  16870. release = os.release();
  16871. }
  16872. id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : '';
  16873. return 'Linux' + (id ? ' ' + id : '');
  16874. }
  16875. if (platform === 'win32') {
  16876. if (!release && os.platform() === 'win32') {
  16877. release = os.release();
  16878. }
  16879. id = release ? winRelease(release) : '';
  16880. return 'Windows' + (id ? ' ' + id : '');
  16881. }
  16882. return platform;
  16883. };
  16884. module.exports = osName;
  16885. /***/ }),
  16886. /***/ 27345:
  16887. /***/ ((module) => {
  16888. "use strict";
  16889. module.exports = (promise, onFinally) => {
  16890. onFinally = onFinally || (() => {});
  16891. return promise.then(
  16892. val => new Promise(resolve => {
  16893. resolve(onFinally());
  16894. }).then(() => val),
  16895. err => new Promise(resolve => {
  16896. resolve(onFinally());
  16897. }).then(() => {
  16898. throw err;
  16899. })
  16900. );
  16901. };
  16902. /***/ }),
  16903. /***/ 3024:
  16904. /***/ ((module) => {
  16905. "use strict";
  16906. module.exports = opts => {
  16907. opts = opts || {};
  16908. const env = opts.env || process.env;
  16909. const platform = opts.platform || process.platform;
  16910. if (platform !== 'win32') {
  16911. return 'PATH';
  16912. }
  16913. return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
  16914. };
  16915. /***/ }),
  16916. /***/ 21394:
  16917. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  16918. "use strict";
  16919. var parseUrl = __webpack_require__(78835).parse;
  16920. var DEFAULT_PORTS = {
  16921. ftp: 21,
  16922. gopher: 70,
  16923. http: 80,
  16924. https: 443,
  16925. ws: 80,
  16926. wss: 443,
  16927. };
  16928. var stringEndsWith = String.prototype.endsWith || function(s) {
  16929. return s.length <= this.length &&
  16930. this.indexOf(s, this.length - s.length) !== -1;
  16931. };
  16932. /**
  16933. * @param {string|object} url - The URL, or the result from url.parse.
  16934. * @return {string} The URL of the proxy that should handle the request to the
  16935. * given URL. If no proxy is set, this will be an empty string.
  16936. */
  16937. function getProxyForUrl(url) {
  16938. var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {};
  16939. var proto = parsedUrl.protocol;
  16940. var hostname = parsedUrl.host;
  16941. var port = parsedUrl.port;
  16942. if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {
  16943. return ''; // Don't proxy URLs without a valid scheme or host.
  16944. }
  16945. proto = proto.split(':', 1)[0];
  16946. // Stripping ports in this way instead of using parsedUrl.hostname to make
  16947. // sure that the brackets around IPv6 addresses are kept.
  16948. hostname = hostname.replace(/:\d*$/, '');
  16949. port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
  16950. if (!shouldProxy(hostname, port)) {
  16951. return ''; // Don't proxy URLs that match NO_PROXY.
  16952. }
  16953. var proxy =
  16954. getEnv('npm_config_' + proto + '_proxy') ||
  16955. getEnv(proto + '_proxy') ||
  16956. getEnv('npm_config_proxy') ||
  16957. getEnv('all_proxy');
  16958. if (proxy && proxy.indexOf('://') === -1) {
  16959. // Missing scheme in proxy, default to the requested URL's scheme.
  16960. proxy = proto + '://' + proxy;
  16961. }
  16962. return proxy;
  16963. }
  16964. /**
  16965. * Determines whether a given URL should be proxied.
  16966. *
  16967. * @param {string} hostname - The host name of the URL.
  16968. * @param {number} port - The effective port of the URL.
  16969. * @returns {boolean} Whether the given URL should be proxied.
  16970. * @private
  16971. */
  16972. function shouldProxy(hostname, port) {
  16973. var NO_PROXY =
  16974. (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase();
  16975. if (!NO_PROXY) {
  16976. return true; // Always proxy if NO_PROXY is not set.
  16977. }
  16978. if (NO_PROXY === '*') {
  16979. return false; // Never proxy if wildcard is set.
  16980. }
  16981. return NO_PROXY.split(/[,\s]/).every(function(proxy) {
  16982. if (!proxy) {
  16983. return true; // Skip zero-length hosts.
  16984. }
  16985. var parsedProxy = proxy.match(/^(.+):(\d+)$/);
  16986. var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
  16987. var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
  16988. if (parsedProxyPort && parsedProxyPort !== port) {
  16989. return true; // Skip if ports don't match.
  16990. }
  16991. if (!/^[.*]/.test(parsedProxyHostname)) {
  16992. // No wildcards, so stop proxying if there is an exact match.
  16993. return hostname !== parsedProxyHostname;
  16994. }
  16995. if (parsedProxyHostname.charAt(0) === '*') {
  16996. // Remove leading wildcard.
  16997. parsedProxyHostname = parsedProxyHostname.slice(1);
  16998. }
  16999. // Stop proxying if the hostname ends with the no_proxy host.
  17000. return !stringEndsWith.call(hostname, parsedProxyHostname);
  17001. });
  17002. }
  17003. /**
  17004. * Get the value for an environment variable.
  17005. *
  17006. * @param {string} key - The name of the environment variable.
  17007. * @return {string} The value of the environment variable.
  17008. * @private
  17009. */
  17010. function getEnv(key) {
  17011. return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';
  17012. }
  17013. exports.getProxyForUrl = getProxyForUrl;
  17014. /***/ }),
  17015. /***/ 74286:
  17016. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  17017. var once = __webpack_require__(30778)
  17018. var eos = __webpack_require__(12840)
  17019. var fs = __webpack_require__(35747) // we only need fs to get the ReadStream and WriteStream prototypes
  17020. var noop = function () {}
  17021. var ancient = /^v?\.0/.test(process.version)
  17022. var isFn = function (fn) {
  17023. return typeof fn === 'function'
  17024. }
  17025. var isFS = function (stream) {
  17026. if (!ancient) return false // newer node version do not need to care about fs is a special way
  17027. if (!fs) return false // browser
  17028. return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)
  17029. }
  17030. var isRequest = function (stream) {
  17031. return stream.setHeader && isFn(stream.abort)
  17032. }
  17033. var destroyer = function (stream, reading, writing, callback) {
  17034. callback = once(callback)
  17035. var closed = false
  17036. stream.on('close', function () {
  17037. closed = true
  17038. })
  17039. eos(stream, {readable: reading, writable: writing}, function (err) {
  17040. if (err) return callback(err)
  17041. closed = true
  17042. callback()
  17043. })
  17044. var destroyed = false
  17045. return function (err) {
  17046. if (closed) return
  17047. if (destroyed) return
  17048. destroyed = true
  17049. if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks
  17050. if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want
  17051. if (isFn(stream.destroy)) return stream.destroy()
  17052. callback(err || new Error('stream was destroyed'))
  17053. }
  17054. }
  17055. var call = function (fn) {
  17056. fn()
  17057. }
  17058. var pipe = function (from, to) {
  17059. return from.pipe(to)
  17060. }
  17061. var pump = function () {
  17062. var streams = Array.prototype.slice.call(arguments)
  17063. var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop
  17064. if (Array.isArray(streams[0])) streams = streams[0]
  17065. if (streams.length < 2) throw new Error('pump requires two streams per minimum')
  17066. var error
  17067. var destroys = streams.map(function (stream, i) {
  17068. var reading = i < streams.length - 1
  17069. var writing = i > 0
  17070. return destroyer(stream, reading, writing, function (err) {
  17071. if (!error) error = err
  17072. if (err) destroys.forEach(call)
  17073. if (reading) return
  17074. destroys.forEach(call)
  17075. callback(error)
  17076. })
  17077. })
  17078. return streams.reduce(pipe)
  17079. }
  17080. module.exports = pump
  17081. /***/ }),
  17082. /***/ 34584:
  17083. /***/ ((__unused_webpack_module, exports) => {
  17084. "use strict";
  17085. Object.defineProperty(exports, "__esModule", ({
  17086. value: true
  17087. }));
  17088. exports.logLevels = void 0;
  17089. const logLevels = {
  17090. debug: 20,
  17091. error: 50,
  17092. fatal: 60,
  17093. info: 30,
  17094. trace: 10,
  17095. warn: 40
  17096. };
  17097. exports.logLevels = logLevels;
  17098. //# sourceMappingURL=constants.js.map
  17099. /***/ }),
  17100. /***/ 57843:
  17101. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  17102. "use strict";
  17103. Object.defineProperty(exports, "__esModule", ({
  17104. value: true
  17105. }));
  17106. exports.default = void 0;
  17107. var _detectNode = _interopRequireDefault(__webpack_require__(48590));
  17108. var _globalthis = _interopRequireDefault(__webpack_require__(82503));
  17109. var _jsonStringifySafe = _interopRequireDefault(__webpack_require__(64530));
  17110. var _sprintfJs = __webpack_require__(8975);
  17111. var _constants = __webpack_require__(34584);
  17112. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  17113. function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
  17114. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
  17115. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
  17116. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  17117. const globalThis = (0, _globalthis.default)();
  17118. let domain;
  17119. if (_detectNode.default) {
  17120. // eslint-disable-next-line global-require
  17121. domain = __webpack_require__(85229);
  17122. }
  17123. const getParentDomainContext = () => {
  17124. if (!domain) {
  17125. return {};
  17126. }
  17127. const parentRoarrContexts = [];
  17128. let currentDomain = process.domain; // $FlowFixMe
  17129. if (!currentDomain || !currentDomain.parentDomain) {
  17130. return {};
  17131. }
  17132. while (currentDomain && currentDomain.parentDomain) {
  17133. currentDomain = currentDomain.parentDomain;
  17134. if (currentDomain.roarr && currentDomain.roarr.context) {
  17135. parentRoarrContexts.push(currentDomain.roarr.context);
  17136. }
  17137. }
  17138. let domainContext = {};
  17139. for (const parentRoarrContext of parentRoarrContexts) {
  17140. domainContext = _objectSpread(_objectSpread({}, domainContext), parentRoarrContext);
  17141. }
  17142. return domainContext;
  17143. };
  17144. const getFirstParentDomainContext = () => {
  17145. if (!domain) {
  17146. return {};
  17147. }
  17148. let currentDomain = process.domain; // $FlowFixMe
  17149. if (currentDomain && currentDomain.roarr && currentDomain.roarr.context) {
  17150. return currentDomain.roarr.context;
  17151. } // $FlowFixMe
  17152. if (!currentDomain || !currentDomain.parentDomain) {
  17153. return {};
  17154. }
  17155. while (currentDomain && currentDomain.parentDomain) {
  17156. currentDomain = currentDomain.parentDomain;
  17157. if (currentDomain.roarr && currentDomain.roarr.context) {
  17158. return currentDomain.roarr.context;
  17159. }
  17160. }
  17161. return {};
  17162. };
  17163. const createLogger = (onMessage, parentContext) => {
  17164. // eslint-disable-next-line id-length, unicorn/prevent-abbreviations
  17165. const log = (a, b, c, d, e, f, g, h, i, k) => {
  17166. const time = Date.now();
  17167. const sequence = globalThis.ROARR.sequence++;
  17168. let context;
  17169. let message;
  17170. if (typeof a === 'string') {
  17171. context = _objectSpread(_objectSpread({}, getFirstParentDomainContext()), parentContext || {}); // eslint-disable-next-line id-length, object-property-newline
  17172. const args = _extends({}, {
  17173. a,
  17174. b,
  17175. c,
  17176. d,
  17177. e,
  17178. f,
  17179. g,
  17180. h,
  17181. i,
  17182. k
  17183. });
  17184. const values = Object.keys(args).map(key => {
  17185. return args[key];
  17186. }); // eslint-disable-next-line unicorn/no-reduce
  17187. const hasOnlyOneParameterValued = 1 === values.reduce((accumulator, value) => {
  17188. // eslint-disable-next-line no-return-assign, no-param-reassign
  17189. return accumulator += typeof value === 'undefined' ? 0 : 1;
  17190. }, 0);
  17191. message = hasOnlyOneParameterValued ? (0, _sprintfJs.sprintf)('%s', a) : (0, _sprintfJs.sprintf)(a, b, c, d, e, f, g, h, i, k);
  17192. } else {
  17193. if (typeof b !== 'string') {
  17194. throw new TypeError('Message must be a string.');
  17195. }
  17196. context = JSON.parse((0, _jsonStringifySafe.default)(_objectSpread(_objectSpread(_objectSpread({}, getFirstParentDomainContext()), parentContext || {}), a)));
  17197. message = (0, _sprintfJs.sprintf)(b, c, d, e, f, g, h, i, k);
  17198. }
  17199. onMessage({
  17200. context,
  17201. message,
  17202. sequence,
  17203. time,
  17204. version: '1.0.0'
  17205. });
  17206. };
  17207. log.child = context => {
  17208. if (typeof context === 'function') {
  17209. return createLogger(message => {
  17210. if (typeof context !== 'function') {
  17211. throw new TypeError('Unexpected state.');
  17212. }
  17213. onMessage(context(message));
  17214. }, parentContext);
  17215. }
  17216. return createLogger(onMessage, _objectSpread(_objectSpread(_objectSpread({}, getFirstParentDomainContext()), parentContext), context));
  17217. };
  17218. log.getContext = () => {
  17219. return _objectSpread(_objectSpread({}, getFirstParentDomainContext()), parentContext || {});
  17220. };
  17221. log.adopt = async (routine, context) => {
  17222. if (!domain) {
  17223. return routine();
  17224. }
  17225. const adoptedDomain = domain.create();
  17226. return adoptedDomain.run(() => {
  17227. // $FlowFixMe
  17228. adoptedDomain.roarr = {
  17229. context: _objectSpread(_objectSpread({}, getParentDomainContext()), context)
  17230. };
  17231. return routine();
  17232. });
  17233. };
  17234. for (const logLevel of Object.keys(_constants.logLevels)) {
  17235. // eslint-disable-next-line id-length, unicorn/prevent-abbreviations
  17236. log[logLevel] = (a, b, c, d, e, f, g, h, i, k) => {
  17237. return log.child({
  17238. logLevel: _constants.logLevels[logLevel]
  17239. })(a, b, c, d, e, f, g, h, i, k);
  17240. };
  17241. } // @see https://github.com/facebook/flow/issues/6705
  17242. // $FlowFixMe
  17243. return log;
  17244. };
  17245. var _default = createLogger;
  17246. exports.default = _default;
  17247. //# sourceMappingURL=createLogger.js.map
  17248. /***/ }),
  17249. /***/ 86800:
  17250. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  17251. "use strict";
  17252. Object.defineProperty(exports, "__esModule", ({
  17253. value: true
  17254. }));
  17255. exports.default = void 0;
  17256. var _constants = __webpack_require__(34584);
  17257. const createMockLogger = (onMessage, parentContext) => {
  17258. // eslint-disable-next-line id-length, unicorn/prevent-abbreviations, no-unused-vars
  17259. const log = (a, b, c, d, e, f, g, h, i, k) => {//
  17260. };
  17261. log.adopt = async routine => {
  17262. return routine();
  17263. }; // eslint-disable-next-line no-unused-vars
  17264. log.child = context => {
  17265. return createMockLogger(onMessage, parentContext);
  17266. };
  17267. log.getContext = () => {
  17268. return {};
  17269. };
  17270. for (const logLevel of Object.keys(_constants.logLevels)) {
  17271. // eslint-disable-next-line id-length, unicorn/prevent-abbreviations
  17272. log[logLevel] = (a, b, c, d, e, f, g, h, i, k) => {
  17273. return log.child({
  17274. logLevel: _constants.logLevels[logLevel]
  17275. })(a, b, c, d, e, f, g, h, i, k);
  17276. };
  17277. } // @see https://github.com/facebook/flow/issues/6705
  17278. // $FlowFixMe
  17279. return log;
  17280. };
  17281. var _default = createMockLogger;
  17282. exports.default = _default;
  17283. //# sourceMappingURL=createMockLogger.js.map
  17284. /***/ }),
  17285. /***/ 68370:
  17286. /***/ ((__unused_webpack_module, exports) => {
  17287. "use strict";
  17288. Object.defineProperty(exports, "__esModule", ({
  17289. value: true
  17290. }));
  17291. exports.default = void 0;
  17292. const createBlockingWriter = stream => {
  17293. return {
  17294. write: message => {
  17295. stream.write(message + '\n');
  17296. }
  17297. };
  17298. };
  17299. const createNodeWriter = () => {
  17300. // eslint-disable-next-line no-process-env
  17301. const targetStream = (process.env.ROARR_STREAM || 'STDOUT').toUpperCase();
  17302. const stream = targetStream.toUpperCase() === 'STDOUT' ? process.stdout : process.stderr;
  17303. return createBlockingWriter(stream);
  17304. };
  17305. var _default = createNodeWriter;
  17306. exports.default = _default;
  17307. //# sourceMappingURL=createNodeWriter.js.map
  17308. /***/ }),
  17309. /***/ 64909:
  17310. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  17311. "use strict";
  17312. Object.defineProperty(exports, "__esModule", ({
  17313. value: true
  17314. }));
  17315. exports.default = void 0;
  17316. var _detectNode = _interopRequireDefault(__webpack_require__(48590));
  17317. var _semverCompare = _interopRequireDefault(__webpack_require__(29140));
  17318. var _package = __webpack_require__(98799);
  17319. var _createNodeWriter = _interopRequireDefault(__webpack_require__(68370));
  17320. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  17321. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
  17322. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
  17323. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  17324. // eslint-disable-next-line flowtype/no-weak-types
  17325. const createRoarrInititialGlobalState = currentState => {
  17326. const versions = (currentState.versions || []).concat();
  17327. versions.sort(_semverCompare.default);
  17328. const currentIsLatestVersion = !versions.length || (0, _semverCompare.default)(_package.version, versions[versions.length - 1]) === 1;
  17329. if (!versions.includes(_package.version)) {
  17330. versions.push(_package.version);
  17331. }
  17332. versions.sort(_semverCompare.default);
  17333. let newState = _objectSpread(_objectSpread({
  17334. sequence: 0
  17335. }, currentState), {}, {
  17336. versions
  17337. });
  17338. if (_detectNode.default) {
  17339. if (currentIsLatestVersion || !newState.write) {
  17340. newState = _objectSpread(_objectSpread({}, newState), (0, _createNodeWriter.default)());
  17341. }
  17342. }
  17343. return newState;
  17344. };
  17345. var _default = createRoarrInititialGlobalState;
  17346. exports.default = _default;
  17347. //# sourceMappingURL=createRoarrInititialGlobalState.js.map
  17348. /***/ }),
  17349. /***/ 69089:
  17350. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  17351. "use strict";
  17352. Object.defineProperty(exports, "__esModule", ({
  17353. value: true
  17354. }));
  17355. Object.defineProperty(exports, "createLogger", ({
  17356. enumerable: true,
  17357. get: function () {
  17358. return _createLogger.default;
  17359. }
  17360. }));
  17361. Object.defineProperty(exports, "createMockLogger", ({
  17362. enumerable: true,
  17363. get: function () {
  17364. return _createMockLogger.default;
  17365. }
  17366. }));
  17367. Object.defineProperty(exports, "createRoarrInititialGlobalState", ({
  17368. enumerable: true,
  17369. get: function () {
  17370. return _createRoarrInititialGlobalState.default;
  17371. }
  17372. }));
  17373. var _createLogger = _interopRequireDefault(__webpack_require__(57843));
  17374. var _createMockLogger = _interopRequireDefault(__webpack_require__(86800));
  17375. var _createRoarrInititialGlobalState = _interopRequireDefault(__webpack_require__(64909));
  17376. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  17377. //# sourceMappingURL=index.js.map
  17378. /***/ }),
  17379. /***/ 83085:
  17380. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  17381. "use strict";
  17382. Object.defineProperty(exports, "__esModule", ({
  17383. value: true
  17384. }));
  17385. exports.default = exports.ROARR = void 0;
  17386. var _boolean = __webpack_require__(46088);
  17387. var _detectNode = _interopRequireDefault(__webpack_require__(48590));
  17388. var _globalthis = _interopRequireDefault(__webpack_require__(82503));
  17389. var _factories = __webpack_require__(69089);
  17390. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  17391. const globalThis = (0, _globalthis.default)();
  17392. const ROARR = globalThis.ROARR = (0, _factories.createRoarrInititialGlobalState)(globalThis.ROARR || {});
  17393. exports.ROARR = ROARR;
  17394. let logFactory = _factories.createLogger;
  17395. if (_detectNode.default) {
  17396. // eslint-disable-next-line no-process-env
  17397. const enabled = (0, _boolean.boolean)(process.env.ROARR_LOG || '');
  17398. if (!enabled) {
  17399. logFactory = _factories.createMockLogger;
  17400. }
  17401. }
  17402. var _default = logFactory(message => {
  17403. if (ROARR.write) {
  17404. // Stringify message as soon as it is received to prevent
  17405. // properties of the context from being modified by reference.
  17406. const body = JSON.stringify(message);
  17407. ROARR.write(body);
  17408. }
  17409. });
  17410. exports.default = _default;
  17411. //# sourceMappingURL=log.js.map
  17412. /***/ }),
  17413. /***/ 2399:
  17414. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  17415. "use strict";
  17416. /* eslint-disable node/no-deprecated-api */
  17417. var buffer = __webpack_require__(64293)
  17418. var Buffer = buffer.Buffer
  17419. var safer = {}
  17420. var key
  17421. for (key in buffer) {
  17422. if (!buffer.hasOwnProperty(key)) continue
  17423. if (key === 'SlowBuffer' || key === 'Buffer') continue
  17424. safer[key] = buffer[key]
  17425. }
  17426. var Safer = safer.Buffer = {}
  17427. for (key in Buffer) {
  17428. if (!Buffer.hasOwnProperty(key)) continue
  17429. if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue
  17430. Safer[key] = Buffer[key]
  17431. }
  17432. safer.Buffer.prototype = Buffer.prototype
  17433. if (!Safer.from || Safer.from === Uint8Array.from) {
  17434. Safer.from = function (value, encodingOrOffset, length) {
  17435. if (typeof value === 'number') {
  17436. throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value)
  17437. }
  17438. if (value && typeof value.length === 'undefined') {
  17439. throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value)
  17440. }
  17441. return Buffer(value, encodingOrOffset, length)
  17442. }
  17443. }
  17444. if (!Safer.alloc) {
  17445. Safer.alloc = function (size, fill, encoding) {
  17446. if (typeof size !== 'number') {
  17447. throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size)
  17448. }
  17449. if (size < 0 || size >= 2 * (1 << 30)) {
  17450. throw new RangeError('The value "' + size + '" is invalid for option "size"')
  17451. }
  17452. var buf = Buffer(size)
  17453. if (!fill || fill.length === 0) {
  17454. buf.fill(0)
  17455. } else if (typeof encoding === 'string') {
  17456. buf.fill(fill, encoding)
  17457. } else {
  17458. buf.fill(fill)
  17459. }
  17460. return buf
  17461. }
  17462. }
  17463. if (!safer.kStringMaxLength) {
  17464. try {
  17465. safer.kStringMaxLength = process.binding('buffer').kStringMaxLength
  17466. } catch (e) {
  17467. // we can't determine kStringMaxLength in environments where process.binding
  17468. // is unsupported, so let's not set it
  17469. }
  17470. }
  17471. if (!safer.constants) {
  17472. safer.constants = {
  17473. MAX_LENGTH: safer.kMaxLength
  17474. }
  17475. if (safer.kStringMaxLength) {
  17476. safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength
  17477. }
  17478. }
  17479. module.exports = safer
  17480. /***/ }),
  17481. /***/ 36099:
  17482. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  17483. ;(function (sax) { // wrapper for non-node envs
  17484. sax.parser = function (strict, opt) { return new SAXParser(strict, opt) }
  17485. sax.SAXParser = SAXParser
  17486. sax.SAXStream = SAXStream
  17487. sax.createStream = createStream
  17488. // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns.
  17489. // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)),
  17490. // since that's the earliest that a buffer overrun could occur. This way, checks are
  17491. // as rare as required, but as often as necessary to ensure never crossing this bound.
  17492. // Furthermore, buffers are only tested at most once per write(), so passing a very
  17493. // large string into write() might have undesirable effects, but this is manageable by
  17494. // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme
  17495. // edge case, result in creating at most one complete copy of the string passed in.
  17496. // Set to Infinity to have unlimited buffers.
  17497. sax.MAX_BUFFER_LENGTH = 64 * 1024
  17498. var buffers = [
  17499. 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype',
  17500. 'procInstName', 'procInstBody', 'entity', 'attribName',
  17501. 'attribValue', 'cdata', 'script'
  17502. ]
  17503. sax.EVENTS = [
  17504. 'text',
  17505. 'processinginstruction',
  17506. 'sgmldeclaration',
  17507. 'doctype',
  17508. 'comment',
  17509. 'opentagstart',
  17510. 'attribute',
  17511. 'opentag',
  17512. 'closetag',
  17513. 'opencdata',
  17514. 'cdata',
  17515. 'closecdata',
  17516. 'error',
  17517. 'end',
  17518. 'ready',
  17519. 'script',
  17520. 'opennamespace',
  17521. 'closenamespace'
  17522. ]
  17523. function SAXParser (strict, opt) {
  17524. if (!(this instanceof SAXParser)) {
  17525. return new SAXParser(strict, opt)
  17526. }
  17527. var parser = this
  17528. clearBuffers(parser)
  17529. parser.q = parser.c = ''
  17530. parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH
  17531. parser.opt = opt || {}
  17532. parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags
  17533. parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase'
  17534. parser.tags = []
  17535. parser.closed = parser.closedRoot = parser.sawRoot = false
  17536. parser.tag = parser.error = null
  17537. parser.strict = !!strict
  17538. parser.noscript = !!(strict || parser.opt.noscript)
  17539. parser.state = S.BEGIN
  17540. parser.strictEntities = parser.opt.strictEntities
  17541. parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES)
  17542. parser.attribList = []
  17543. // namespaces form a prototype chain.
  17544. // it always points at the current tag,
  17545. // which protos to its parent tag.
  17546. if (parser.opt.xmlns) {
  17547. parser.ns = Object.create(rootNS)
  17548. }
  17549. // mostly just for error reporting
  17550. parser.trackPosition = parser.opt.position !== false
  17551. if (parser.trackPosition) {
  17552. parser.position = parser.line = parser.column = 0
  17553. }
  17554. emit(parser, 'onready')
  17555. }
  17556. if (!Object.create) {
  17557. Object.create = function (o) {
  17558. function F () {}
  17559. F.prototype = o
  17560. var newf = new F()
  17561. return newf
  17562. }
  17563. }
  17564. if (!Object.keys) {
  17565. Object.keys = function (o) {
  17566. var a = []
  17567. for (var i in o) if (o.hasOwnProperty(i)) a.push(i)
  17568. return a
  17569. }
  17570. }
  17571. function checkBufferLength (parser) {
  17572. var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10)
  17573. var maxActual = 0
  17574. for (var i = 0, l = buffers.length; i < l; i++) {
  17575. var len = parser[buffers[i]].length
  17576. if (len > maxAllowed) {
  17577. // Text/cdata nodes can get big, and since they're buffered,
  17578. // we can get here under normal conditions.
  17579. // Avoid issues by emitting the text node now,
  17580. // so at least it won't get any bigger.
  17581. switch (buffers[i]) {
  17582. case 'textNode':
  17583. closeText(parser)
  17584. break
  17585. case 'cdata':
  17586. emitNode(parser, 'oncdata', parser.cdata)
  17587. parser.cdata = ''
  17588. break
  17589. case 'script':
  17590. emitNode(parser, 'onscript', parser.script)
  17591. parser.script = ''
  17592. break
  17593. default:
  17594. error(parser, 'Max buffer length exceeded: ' + buffers[i])
  17595. }
  17596. }
  17597. maxActual = Math.max(maxActual, len)
  17598. }
  17599. // schedule the next check for the earliest possible buffer overrun.
  17600. var m = sax.MAX_BUFFER_LENGTH - maxActual
  17601. parser.bufferCheckPosition = m + parser.position
  17602. }
  17603. function clearBuffers (parser) {
  17604. for (var i = 0, l = buffers.length; i < l; i++) {
  17605. parser[buffers[i]] = ''
  17606. }
  17607. }
  17608. function flushBuffers (parser) {
  17609. closeText(parser)
  17610. if (parser.cdata !== '') {
  17611. emitNode(parser, 'oncdata', parser.cdata)
  17612. parser.cdata = ''
  17613. }
  17614. if (parser.script !== '') {
  17615. emitNode(parser, 'onscript', parser.script)
  17616. parser.script = ''
  17617. }
  17618. }
  17619. SAXParser.prototype = {
  17620. end: function () { end(this) },
  17621. write: write,
  17622. resume: function () { this.error = null; return this },
  17623. close: function () { return this.write(null) },
  17624. flush: function () { flushBuffers(this) }
  17625. }
  17626. var Stream
  17627. try {
  17628. Stream = __webpack_require__(92413).Stream
  17629. } catch (ex) {
  17630. Stream = function () {}
  17631. }
  17632. var streamWraps = sax.EVENTS.filter(function (ev) {
  17633. return ev !== 'error' && ev !== 'end'
  17634. })
  17635. function createStream (strict, opt) {
  17636. return new SAXStream(strict, opt)
  17637. }
  17638. function SAXStream (strict, opt) {
  17639. if (!(this instanceof SAXStream)) {
  17640. return new SAXStream(strict, opt)
  17641. }
  17642. Stream.apply(this)
  17643. this._parser = new SAXParser(strict, opt)
  17644. this.writable = true
  17645. this.readable = true
  17646. var me = this
  17647. this._parser.onend = function () {
  17648. me.emit('end')
  17649. }
  17650. this._parser.onerror = function (er) {
  17651. me.emit('error', er)
  17652. // if didn't throw, then means error was handled.
  17653. // go ahead and clear error, so we can write again.
  17654. me._parser.error = null
  17655. }
  17656. this._decoder = null
  17657. streamWraps.forEach(function (ev) {
  17658. Object.defineProperty(me, 'on' + ev, {
  17659. get: function () {
  17660. return me._parser['on' + ev]
  17661. },
  17662. set: function (h) {
  17663. if (!h) {
  17664. me.removeAllListeners(ev)
  17665. me._parser['on' + ev] = h
  17666. return h
  17667. }
  17668. me.on(ev, h)
  17669. },
  17670. enumerable: true,
  17671. configurable: false
  17672. })
  17673. })
  17674. }
  17675. SAXStream.prototype = Object.create(Stream.prototype, {
  17676. constructor: {
  17677. value: SAXStream
  17678. }
  17679. })
  17680. SAXStream.prototype.write = function (data) {
  17681. if (typeof Buffer === 'function' &&
  17682. typeof Buffer.isBuffer === 'function' &&
  17683. Buffer.isBuffer(data)) {
  17684. if (!this._decoder) {
  17685. var SD = __webpack_require__(24304).StringDecoder
  17686. this._decoder = new SD('utf8')
  17687. }
  17688. data = this._decoder.write(data)
  17689. }
  17690. this._parser.write(data.toString())
  17691. this.emit('data', data)
  17692. return true
  17693. }
  17694. SAXStream.prototype.end = function (chunk) {
  17695. if (chunk && chunk.length) {
  17696. this.write(chunk)
  17697. }
  17698. this._parser.end()
  17699. return true
  17700. }
  17701. SAXStream.prototype.on = function (ev, handler) {
  17702. var me = this
  17703. if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {
  17704. me._parser['on' + ev] = function () {
  17705. var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments)
  17706. args.splice(0, 0, ev)
  17707. me.emit.apply(me, args)
  17708. }
  17709. }
  17710. return Stream.prototype.on.call(me, ev, handler)
  17711. }
  17712. // this really needs to be replaced with character classes.
  17713. // XML allows all manner of ridiculous numbers and digits.
  17714. var CDATA = '[CDATA['
  17715. var DOCTYPE = 'DOCTYPE'
  17716. var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'
  17717. var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
  17718. var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }
  17719. // http://www.w3.org/TR/REC-xml/#NT-NameStartChar
  17720. // This implementation works on strings, a single character at a time
  17721. // as such, it cannot ever support astral-plane characters (10000-EFFFF)
  17722. // without a significant breaking change to either this parser, or the
  17723. // JavaScript language. Implementation of an emoji-capable xml parser
  17724. // is left as an exercise for the reader.
  17725. var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/
  17726. var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/
  17727. var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/
  17728. var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/
  17729. function isWhitespace (c) {
  17730. return c === ' ' || c === '\n' || c === '\r' || c === '\t'
  17731. }
  17732. function isQuote (c) {
  17733. return c === '"' || c === '\''
  17734. }
  17735. function isAttribEnd (c) {
  17736. return c === '>' || isWhitespace(c)
  17737. }
  17738. function isMatch (regex, c) {
  17739. return regex.test(c)
  17740. }
  17741. function notMatch (regex, c) {
  17742. return !isMatch(regex, c)
  17743. }
  17744. var S = 0
  17745. sax.STATE = {
  17746. BEGIN: S++, // leading byte order mark or whitespace
  17747. BEGIN_WHITESPACE: S++, // leading whitespace
  17748. TEXT: S++, // general stuff
  17749. TEXT_ENTITY: S++, // &amp and such.
  17750. OPEN_WAKA: S++, // <
  17751. SGML_DECL: S++, // <!BLARG
  17752. SGML_DECL_QUOTED: S++, // <!BLARG foo "bar
  17753. DOCTYPE: S++, // <!DOCTYPE
  17754. DOCTYPE_QUOTED: S++, // <!DOCTYPE "//blah
  17755. DOCTYPE_DTD: S++, // <!DOCTYPE "//blah" [ ...
  17756. DOCTYPE_DTD_QUOTED: S++, // <!DOCTYPE "//blah" [ "foo
  17757. COMMENT_STARTING: S++, // <!-
  17758. COMMENT: S++, // <!--
  17759. COMMENT_ENDING: S++, // <!-- blah -
  17760. COMMENT_ENDED: S++, // <!-- blah --
  17761. CDATA: S++, // <![CDATA[ something
  17762. CDATA_ENDING: S++, // ]
  17763. CDATA_ENDING_2: S++, // ]]
  17764. PROC_INST: S++, // <?hi
  17765. PROC_INST_BODY: S++, // <?hi there
  17766. PROC_INST_ENDING: S++, // <?hi "there" ?
  17767. OPEN_TAG: S++, // <strong
  17768. OPEN_TAG_SLASH: S++, // <strong /
  17769. ATTRIB: S++, // <a
  17770. ATTRIB_NAME: S++, // <a foo
  17771. ATTRIB_NAME_SAW_WHITE: S++, // <a foo _
  17772. ATTRIB_VALUE: S++, // <a foo=
  17773. ATTRIB_VALUE_QUOTED: S++, // <a foo="bar
  17774. ATTRIB_VALUE_CLOSED: S++, // <a foo="bar"
  17775. ATTRIB_VALUE_UNQUOTED: S++, // <a foo=bar
  17776. ATTRIB_VALUE_ENTITY_Q: S++, // <foo bar="&quot;"
  17777. ATTRIB_VALUE_ENTITY_U: S++, // <foo bar=&quot
  17778. CLOSE_TAG: S++, // </a
  17779. CLOSE_TAG_SAW_WHITE: S++, // </a >
  17780. SCRIPT: S++, // <script> ...
  17781. SCRIPT_ENDING: S++ // <script> ... <
  17782. }
  17783. sax.XML_ENTITIES = {
  17784. 'amp': '&',
  17785. 'gt': '>',
  17786. 'lt': '<',
  17787. 'quot': '"',
  17788. 'apos': "'"
  17789. }
  17790. sax.ENTITIES = {
  17791. 'amp': '&',
  17792. 'gt': '>',
  17793. 'lt': '<',
  17794. 'quot': '"',
  17795. 'apos': "'",
  17796. 'AElig': 198,
  17797. 'Aacute': 193,
  17798. 'Acirc': 194,
  17799. 'Agrave': 192,
  17800. 'Aring': 197,
  17801. 'Atilde': 195,
  17802. 'Auml': 196,
  17803. 'Ccedil': 199,
  17804. 'ETH': 208,
  17805. 'Eacute': 201,
  17806. 'Ecirc': 202,
  17807. 'Egrave': 200,
  17808. 'Euml': 203,
  17809. 'Iacute': 205,
  17810. 'Icirc': 206,
  17811. 'Igrave': 204,
  17812. 'Iuml': 207,
  17813. 'Ntilde': 209,
  17814. 'Oacute': 211,
  17815. 'Ocirc': 212,
  17816. 'Ograve': 210,
  17817. 'Oslash': 216,
  17818. 'Otilde': 213,
  17819. 'Ouml': 214,
  17820. 'THORN': 222,
  17821. 'Uacute': 218,
  17822. 'Ucirc': 219,
  17823. 'Ugrave': 217,
  17824. 'Uuml': 220,
  17825. 'Yacute': 221,
  17826. 'aacute': 225,
  17827. 'acirc': 226,
  17828. 'aelig': 230,
  17829. 'agrave': 224,
  17830. 'aring': 229,
  17831. 'atilde': 227,
  17832. 'auml': 228,
  17833. 'ccedil': 231,
  17834. 'eacute': 233,
  17835. 'ecirc': 234,
  17836. 'egrave': 232,
  17837. 'eth': 240,
  17838. 'euml': 235,
  17839. 'iacute': 237,
  17840. 'icirc': 238,
  17841. 'igrave': 236,
  17842. 'iuml': 239,
  17843. 'ntilde': 241,
  17844. 'oacute': 243,
  17845. 'ocirc': 244,
  17846. 'ograve': 242,
  17847. 'oslash': 248,
  17848. 'otilde': 245,
  17849. 'ouml': 246,
  17850. 'szlig': 223,
  17851. 'thorn': 254,
  17852. 'uacute': 250,
  17853. 'ucirc': 251,
  17854. 'ugrave': 249,
  17855. 'uuml': 252,
  17856. 'yacute': 253,
  17857. 'yuml': 255,
  17858. 'copy': 169,
  17859. 'reg': 174,
  17860. 'nbsp': 160,
  17861. 'iexcl': 161,
  17862. 'cent': 162,
  17863. 'pound': 163,
  17864. 'curren': 164,
  17865. 'yen': 165,
  17866. 'brvbar': 166,
  17867. 'sect': 167,
  17868. 'uml': 168,
  17869. 'ordf': 170,
  17870. 'laquo': 171,
  17871. 'not': 172,
  17872. 'shy': 173,
  17873. 'macr': 175,
  17874. 'deg': 176,
  17875. 'plusmn': 177,
  17876. 'sup1': 185,
  17877. 'sup2': 178,
  17878. 'sup3': 179,
  17879. 'acute': 180,
  17880. 'micro': 181,
  17881. 'para': 182,
  17882. 'middot': 183,
  17883. 'cedil': 184,
  17884. 'ordm': 186,
  17885. 'raquo': 187,
  17886. 'frac14': 188,
  17887. 'frac12': 189,
  17888. 'frac34': 190,
  17889. 'iquest': 191,
  17890. 'times': 215,
  17891. 'divide': 247,
  17892. 'OElig': 338,
  17893. 'oelig': 339,
  17894. 'Scaron': 352,
  17895. 'scaron': 353,
  17896. 'Yuml': 376,
  17897. 'fnof': 402,
  17898. 'circ': 710,
  17899. 'tilde': 732,
  17900. 'Alpha': 913,
  17901. 'Beta': 914,
  17902. 'Gamma': 915,
  17903. 'Delta': 916,
  17904. 'Epsilon': 917,
  17905. 'Zeta': 918,
  17906. 'Eta': 919,
  17907. 'Theta': 920,
  17908. 'Iota': 921,
  17909. 'Kappa': 922,
  17910. 'Lambda': 923,
  17911. 'Mu': 924,
  17912. 'Nu': 925,
  17913. 'Xi': 926,
  17914. 'Omicron': 927,
  17915. 'Pi': 928,
  17916. 'Rho': 929,
  17917. 'Sigma': 931,
  17918. 'Tau': 932,
  17919. 'Upsilon': 933,
  17920. 'Phi': 934,
  17921. 'Chi': 935,
  17922. 'Psi': 936,
  17923. 'Omega': 937,
  17924. 'alpha': 945,
  17925. 'beta': 946,
  17926. 'gamma': 947,
  17927. 'delta': 948,
  17928. 'epsilon': 949,
  17929. 'zeta': 950,
  17930. 'eta': 951,
  17931. 'theta': 952,
  17932. 'iota': 953,
  17933. 'kappa': 954,
  17934. 'lambda': 955,
  17935. 'mu': 956,
  17936. 'nu': 957,
  17937. 'xi': 958,
  17938. 'omicron': 959,
  17939. 'pi': 960,
  17940. 'rho': 961,
  17941. 'sigmaf': 962,
  17942. 'sigma': 963,
  17943. 'tau': 964,
  17944. 'upsilon': 965,
  17945. 'phi': 966,
  17946. 'chi': 967,
  17947. 'psi': 968,
  17948. 'omega': 969,
  17949. 'thetasym': 977,
  17950. 'upsih': 978,
  17951. 'piv': 982,
  17952. 'ensp': 8194,
  17953. 'emsp': 8195,
  17954. 'thinsp': 8201,
  17955. 'zwnj': 8204,
  17956. 'zwj': 8205,
  17957. 'lrm': 8206,
  17958. 'rlm': 8207,
  17959. 'ndash': 8211,
  17960. 'mdash': 8212,
  17961. 'lsquo': 8216,
  17962. 'rsquo': 8217,
  17963. 'sbquo': 8218,
  17964. 'ldquo': 8220,
  17965. 'rdquo': 8221,
  17966. 'bdquo': 8222,
  17967. 'dagger': 8224,
  17968. 'Dagger': 8225,
  17969. 'bull': 8226,
  17970. 'hellip': 8230,
  17971. 'permil': 8240,
  17972. 'prime': 8242,
  17973. 'Prime': 8243,
  17974. 'lsaquo': 8249,
  17975. 'rsaquo': 8250,
  17976. 'oline': 8254,
  17977. 'frasl': 8260,
  17978. 'euro': 8364,
  17979. 'image': 8465,
  17980. 'weierp': 8472,
  17981. 'real': 8476,
  17982. 'trade': 8482,
  17983. 'alefsym': 8501,
  17984. 'larr': 8592,
  17985. 'uarr': 8593,
  17986. 'rarr': 8594,
  17987. 'darr': 8595,
  17988. 'harr': 8596,
  17989. 'crarr': 8629,
  17990. 'lArr': 8656,
  17991. 'uArr': 8657,
  17992. 'rArr': 8658,
  17993. 'dArr': 8659,
  17994. 'hArr': 8660,
  17995. 'forall': 8704,
  17996. 'part': 8706,
  17997. 'exist': 8707,
  17998. 'empty': 8709,
  17999. 'nabla': 8711,
  18000. 'isin': 8712,
  18001. 'notin': 8713,
  18002. 'ni': 8715,
  18003. 'prod': 8719,
  18004. 'sum': 8721,
  18005. 'minus': 8722,
  18006. 'lowast': 8727,
  18007. 'radic': 8730,
  18008. 'prop': 8733,
  18009. 'infin': 8734,
  18010. 'ang': 8736,
  18011. 'and': 8743,
  18012. 'or': 8744,
  18013. 'cap': 8745,
  18014. 'cup': 8746,
  18015. 'int': 8747,
  18016. 'there4': 8756,
  18017. 'sim': 8764,
  18018. 'cong': 8773,
  18019. 'asymp': 8776,
  18020. 'ne': 8800,
  18021. 'equiv': 8801,
  18022. 'le': 8804,
  18023. 'ge': 8805,
  18024. 'sub': 8834,
  18025. 'sup': 8835,
  18026. 'nsub': 8836,
  18027. 'sube': 8838,
  18028. 'supe': 8839,
  18029. 'oplus': 8853,
  18030. 'otimes': 8855,
  18031. 'perp': 8869,
  18032. 'sdot': 8901,
  18033. 'lceil': 8968,
  18034. 'rceil': 8969,
  18035. 'lfloor': 8970,
  18036. 'rfloor': 8971,
  18037. 'lang': 9001,
  18038. 'rang': 9002,
  18039. 'loz': 9674,
  18040. 'spades': 9824,
  18041. 'clubs': 9827,
  18042. 'hearts': 9829,
  18043. 'diams': 9830
  18044. }
  18045. Object.keys(sax.ENTITIES).forEach(function (key) {
  18046. var e = sax.ENTITIES[key]
  18047. var s = typeof e === 'number' ? String.fromCharCode(e) : e
  18048. sax.ENTITIES[key] = s
  18049. })
  18050. for (var s in sax.STATE) {
  18051. sax.STATE[sax.STATE[s]] = s
  18052. }
  18053. // shorthand
  18054. S = sax.STATE
  18055. function emit (parser, event, data) {
  18056. parser[event] && parser[event](data)
  18057. }
  18058. function emitNode (parser, nodeType, data) {
  18059. if (parser.textNode) closeText(parser)
  18060. emit(parser, nodeType, data)
  18061. }
  18062. function closeText (parser) {
  18063. parser.textNode = textopts(parser.opt, parser.textNode)
  18064. if (parser.textNode) emit(parser, 'ontext', parser.textNode)
  18065. parser.textNode = ''
  18066. }
  18067. function textopts (opt, text) {
  18068. if (opt.trim) text = text.trim()
  18069. if (opt.normalize) text = text.replace(/\s+/g, ' ')
  18070. return text
  18071. }
  18072. function error (parser, er) {
  18073. closeText(parser)
  18074. if (parser.trackPosition) {
  18075. er += '\nLine: ' + parser.line +
  18076. '\nColumn: ' + parser.column +
  18077. '\nChar: ' + parser.c
  18078. }
  18079. er = new Error(er)
  18080. parser.error = er
  18081. emit(parser, 'onerror', er)
  18082. return parser
  18083. }
  18084. function end (parser) {
  18085. if (parser.sawRoot && !parser.closedRoot) strictFail(parser, 'Unclosed root tag')
  18086. if ((parser.state !== S.BEGIN) &&
  18087. (parser.state !== S.BEGIN_WHITESPACE) &&
  18088. (parser.state !== S.TEXT)) {
  18089. error(parser, 'Unexpected end')
  18090. }
  18091. closeText(parser)
  18092. parser.c = ''
  18093. parser.closed = true
  18094. emit(parser, 'onend')
  18095. SAXParser.call(parser, parser.strict, parser.opt)
  18096. return parser
  18097. }
  18098. function strictFail (parser, message) {
  18099. if (typeof parser !== 'object' || !(parser instanceof SAXParser)) {
  18100. throw new Error('bad call to strictFail')
  18101. }
  18102. if (parser.strict) {
  18103. error(parser, message)
  18104. }
  18105. }
  18106. function newTag (parser) {
  18107. if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase]()
  18108. var parent = parser.tags[parser.tags.length - 1] || parser
  18109. var tag = parser.tag = { name: parser.tagName, attributes: {} }
  18110. // will be overridden if tag contails an xmlns="foo" or xmlns:foo="bar"
  18111. if (parser.opt.xmlns) {
  18112. tag.ns = parent.ns
  18113. }
  18114. parser.attribList.length = 0
  18115. emitNode(parser, 'onopentagstart', tag)
  18116. }
  18117. function qname (name, attribute) {
  18118. var i = name.indexOf(':')
  18119. var qualName = i < 0 ? [ '', name ] : name.split(':')
  18120. var prefix = qualName[0]
  18121. var local = qualName[1]
  18122. // <x "xmlns"="http://foo">
  18123. if (attribute && name === 'xmlns') {
  18124. prefix = 'xmlns'
  18125. local = ''
  18126. }
  18127. return { prefix: prefix, local: local }
  18128. }
  18129. function attrib (parser) {
  18130. if (!parser.strict) {
  18131. parser.attribName = parser.attribName[parser.looseCase]()
  18132. }
  18133. if (parser.attribList.indexOf(parser.attribName) !== -1 ||
  18134. parser.tag.attributes.hasOwnProperty(parser.attribName)) {
  18135. parser.attribName = parser.attribValue = ''
  18136. return
  18137. }
  18138. if (parser.opt.xmlns) {
  18139. var qn = qname(parser.attribName, true)
  18140. var prefix = qn.prefix
  18141. var local = qn.local
  18142. if (prefix === 'xmlns') {
  18143. // namespace binding attribute. push the binding into scope
  18144. if (local === 'xml' && parser.attribValue !== XML_NAMESPACE) {
  18145. strictFail(parser,
  18146. 'xml: prefix must be bound to ' + XML_NAMESPACE + '\n' +
  18147. 'Actual: ' + parser.attribValue)
  18148. } else if (local === 'xmlns' && parser.attribValue !== XMLNS_NAMESPACE) {
  18149. strictFail(parser,
  18150. 'xmlns: prefix must be bound to ' + XMLNS_NAMESPACE + '\n' +
  18151. 'Actual: ' + parser.attribValue)
  18152. } else {
  18153. var tag = parser.tag
  18154. var parent = parser.tags[parser.tags.length - 1] || parser
  18155. if (tag.ns === parent.ns) {
  18156. tag.ns = Object.create(parent.ns)
  18157. }
  18158. tag.ns[local] = parser.attribValue
  18159. }
  18160. }
  18161. // defer onattribute events until all attributes have been seen
  18162. // so any new bindings can take effect. preserve attribute order
  18163. // so deferred events can be emitted in document order
  18164. parser.attribList.push([parser.attribName, parser.attribValue])
  18165. } else {
  18166. // in non-xmlns mode, we can emit the event right away
  18167. parser.tag.attributes[parser.attribName] = parser.attribValue
  18168. emitNode(parser, 'onattribute', {
  18169. name: parser.attribName,
  18170. value: parser.attribValue
  18171. })
  18172. }
  18173. parser.attribName = parser.attribValue = ''
  18174. }
  18175. function openTag (parser, selfClosing) {
  18176. if (parser.opt.xmlns) {
  18177. // emit namespace binding events
  18178. var tag = parser.tag
  18179. // add namespace info to tag
  18180. var qn = qname(parser.tagName)
  18181. tag.prefix = qn.prefix
  18182. tag.local = qn.local
  18183. tag.uri = tag.ns[qn.prefix] || ''
  18184. if (tag.prefix && !tag.uri) {
  18185. strictFail(parser, 'Unbound namespace prefix: ' +
  18186. JSON.stringify(parser.tagName))
  18187. tag.uri = qn.prefix
  18188. }
  18189. var parent = parser.tags[parser.tags.length - 1] || parser
  18190. if (tag.ns && parent.ns !== tag.ns) {
  18191. Object.keys(tag.ns).forEach(function (p) {
  18192. emitNode(parser, 'onopennamespace', {
  18193. prefix: p,
  18194. uri: tag.ns[p]
  18195. })
  18196. })
  18197. }
  18198. // handle deferred onattribute events
  18199. // Note: do not apply default ns to attributes:
  18200. // http://www.w3.org/TR/REC-xml-names/#defaulting
  18201. for (var i = 0, l = parser.attribList.length; i < l; i++) {
  18202. var nv = parser.attribList[i]
  18203. var name = nv[0]
  18204. var value = nv[1]
  18205. var qualName = qname(name, true)
  18206. var prefix = qualName.prefix
  18207. var local = qualName.local
  18208. var uri = prefix === '' ? '' : (tag.ns[prefix] || '')
  18209. var a = {
  18210. name: name,
  18211. value: value,
  18212. prefix: prefix,
  18213. local: local,
  18214. uri: uri
  18215. }
  18216. // if there's any attributes with an undefined namespace,
  18217. // then fail on them now.
  18218. if (prefix && prefix !== 'xmlns' && !uri) {
  18219. strictFail(parser, 'Unbound namespace prefix: ' +
  18220. JSON.stringify(prefix))
  18221. a.uri = prefix
  18222. }
  18223. parser.tag.attributes[name] = a
  18224. emitNode(parser, 'onattribute', a)
  18225. }
  18226. parser.attribList.length = 0
  18227. }
  18228. parser.tag.isSelfClosing = !!selfClosing
  18229. // process the tag
  18230. parser.sawRoot = true
  18231. parser.tags.push(parser.tag)
  18232. emitNode(parser, 'onopentag', parser.tag)
  18233. if (!selfClosing) {
  18234. // special case for <script> in non-strict mode.
  18235. if (!parser.noscript && parser.tagName.toLowerCase() === 'script') {
  18236. parser.state = S.SCRIPT
  18237. } else {
  18238. parser.state = S.TEXT
  18239. }
  18240. parser.tag = null
  18241. parser.tagName = ''
  18242. }
  18243. parser.attribName = parser.attribValue = ''
  18244. parser.attribList.length = 0
  18245. }
  18246. function closeTag (parser) {
  18247. if (!parser.tagName) {
  18248. strictFail(parser, 'Weird empty close tag.')
  18249. parser.textNode += '</>'
  18250. parser.state = S.TEXT
  18251. return
  18252. }
  18253. if (parser.script) {
  18254. if (parser.tagName !== 'script') {
  18255. parser.script += '</' + parser.tagName + '>'
  18256. parser.tagName = ''
  18257. parser.state = S.SCRIPT
  18258. return
  18259. }
  18260. emitNode(parser, 'onscript', parser.script)
  18261. parser.script = ''
  18262. }
  18263. // first make sure that the closing tag actually exists.
  18264. // <a><b></c></b></a> will close everything, otherwise.
  18265. var t = parser.tags.length
  18266. var tagName = parser.tagName
  18267. if (!parser.strict) {
  18268. tagName = tagName[parser.looseCase]()
  18269. }
  18270. var closeTo = tagName
  18271. while (t--) {
  18272. var close = parser.tags[t]
  18273. if (close.name !== closeTo) {
  18274. // fail the first time in strict mode
  18275. strictFail(parser, 'Unexpected close tag')
  18276. } else {
  18277. break
  18278. }
  18279. }
  18280. // didn't find it. we already failed for strict, so just abort.
  18281. if (t < 0) {
  18282. strictFail(parser, 'Unmatched closing tag: ' + parser.tagName)
  18283. parser.textNode += '</' + parser.tagName + '>'
  18284. parser.state = S.TEXT
  18285. return
  18286. }
  18287. parser.tagName = tagName
  18288. var s = parser.tags.length
  18289. while (s-- > t) {
  18290. var tag = parser.tag = parser.tags.pop()
  18291. parser.tagName = parser.tag.name
  18292. emitNode(parser, 'onclosetag', parser.tagName)
  18293. var x = {}
  18294. for (var i in tag.ns) {
  18295. x[i] = tag.ns[i]
  18296. }
  18297. var parent = parser.tags[parser.tags.length - 1] || parser
  18298. if (parser.opt.xmlns && tag.ns !== parent.ns) {
  18299. // remove namespace bindings introduced by tag
  18300. Object.keys(tag.ns).forEach(function (p) {
  18301. var n = tag.ns[p]
  18302. emitNode(parser, 'onclosenamespace', { prefix: p, uri: n })
  18303. })
  18304. }
  18305. }
  18306. if (t === 0) parser.closedRoot = true
  18307. parser.tagName = parser.attribValue = parser.attribName = ''
  18308. parser.attribList.length = 0
  18309. parser.state = S.TEXT
  18310. }
  18311. function parseEntity (parser) {
  18312. var entity = parser.entity
  18313. var entityLC = entity.toLowerCase()
  18314. var num
  18315. var numStr = ''
  18316. if (parser.ENTITIES[entity]) {
  18317. return parser.ENTITIES[entity]
  18318. }
  18319. if (parser.ENTITIES[entityLC]) {
  18320. return parser.ENTITIES[entityLC]
  18321. }
  18322. entity = entityLC
  18323. if (entity.charAt(0) === '#') {
  18324. if (entity.charAt(1) === 'x') {
  18325. entity = entity.slice(2)
  18326. num = parseInt(entity, 16)
  18327. numStr = num.toString(16)
  18328. } else {
  18329. entity = entity.slice(1)
  18330. num = parseInt(entity, 10)
  18331. numStr = num.toString(10)
  18332. }
  18333. }
  18334. entity = entity.replace(/^0+/, '')
  18335. if (isNaN(num) || numStr.toLowerCase() !== entity) {
  18336. strictFail(parser, 'Invalid character entity')
  18337. return '&' + parser.entity + ';'
  18338. }
  18339. return String.fromCodePoint(num)
  18340. }
  18341. function beginWhiteSpace (parser, c) {
  18342. if (c === '<') {
  18343. parser.state = S.OPEN_WAKA
  18344. parser.startTagPosition = parser.position
  18345. } else if (!isWhitespace(c)) {
  18346. // have to process this as a text node.
  18347. // weird, but happens.
  18348. strictFail(parser, 'Non-whitespace before first tag.')
  18349. parser.textNode = c
  18350. parser.state = S.TEXT
  18351. }
  18352. }
  18353. function charAt (chunk, i) {
  18354. var result = ''
  18355. if (i < chunk.length) {
  18356. result = chunk.charAt(i)
  18357. }
  18358. return result
  18359. }
  18360. function write (chunk) {
  18361. var parser = this
  18362. if (this.error) {
  18363. throw this.error
  18364. }
  18365. if (parser.closed) {
  18366. return error(parser,
  18367. 'Cannot write after close. Assign an onready handler.')
  18368. }
  18369. if (chunk === null) {
  18370. return end(parser)
  18371. }
  18372. if (typeof chunk === 'object') {
  18373. chunk = chunk.toString()
  18374. }
  18375. var i = 0
  18376. var c = ''
  18377. while (true) {
  18378. c = charAt(chunk, i++)
  18379. parser.c = c
  18380. if (!c) {
  18381. break
  18382. }
  18383. if (parser.trackPosition) {
  18384. parser.position++
  18385. if (c === '\n') {
  18386. parser.line++
  18387. parser.column = 0
  18388. } else {
  18389. parser.column++
  18390. }
  18391. }
  18392. switch (parser.state) {
  18393. case S.BEGIN:
  18394. parser.state = S.BEGIN_WHITESPACE
  18395. if (c === '\uFEFF') {
  18396. continue
  18397. }
  18398. beginWhiteSpace(parser, c)
  18399. continue
  18400. case S.BEGIN_WHITESPACE:
  18401. beginWhiteSpace(parser, c)
  18402. continue
  18403. case S.TEXT:
  18404. if (parser.sawRoot && !parser.closedRoot) {
  18405. var starti = i - 1
  18406. while (c && c !== '<' && c !== '&') {
  18407. c = charAt(chunk, i++)
  18408. if (c && parser.trackPosition) {
  18409. parser.position++
  18410. if (c === '\n') {
  18411. parser.line++
  18412. parser.column = 0
  18413. } else {
  18414. parser.column++
  18415. }
  18416. }
  18417. }
  18418. parser.textNode += chunk.substring(starti, i - 1)
  18419. }
  18420. if (c === '<' && !(parser.sawRoot && parser.closedRoot && !parser.strict)) {
  18421. parser.state = S.OPEN_WAKA
  18422. parser.startTagPosition = parser.position
  18423. } else {
  18424. if (!isWhitespace(c) && (!parser.sawRoot || parser.closedRoot)) {
  18425. strictFail(parser, 'Text data outside of root node.')
  18426. }
  18427. if (c === '&') {
  18428. parser.state = S.TEXT_ENTITY
  18429. } else {
  18430. parser.textNode += c
  18431. }
  18432. }
  18433. continue
  18434. case S.SCRIPT:
  18435. // only non-strict
  18436. if (c === '<') {
  18437. parser.state = S.SCRIPT_ENDING
  18438. } else {
  18439. parser.script += c
  18440. }
  18441. continue
  18442. case S.SCRIPT_ENDING:
  18443. if (c === '/') {
  18444. parser.state = S.CLOSE_TAG
  18445. } else {
  18446. parser.script += '<' + c
  18447. parser.state = S.SCRIPT
  18448. }
  18449. continue
  18450. case S.OPEN_WAKA:
  18451. // either a /, ?, !, or text is coming next.
  18452. if (c === '!') {
  18453. parser.state = S.SGML_DECL
  18454. parser.sgmlDecl = ''
  18455. } else if (isWhitespace(c)) {
  18456. // wait for it...
  18457. } else if (isMatch(nameStart, c)) {
  18458. parser.state = S.OPEN_TAG
  18459. parser.tagName = c
  18460. } else if (c === '/') {
  18461. parser.state = S.CLOSE_TAG
  18462. parser.tagName = ''
  18463. } else if (c === '?') {
  18464. parser.state = S.PROC_INST
  18465. parser.procInstName = parser.procInstBody = ''
  18466. } else {
  18467. strictFail(parser, 'Unencoded <')
  18468. // if there was some whitespace, then add that in.
  18469. if (parser.startTagPosition + 1 < parser.position) {
  18470. var pad = parser.position - parser.startTagPosition
  18471. c = new Array(pad).join(' ') + c
  18472. }
  18473. parser.textNode += '<' + c
  18474. parser.state = S.TEXT
  18475. }
  18476. continue
  18477. case S.SGML_DECL:
  18478. if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
  18479. emitNode(parser, 'onopencdata')
  18480. parser.state = S.CDATA
  18481. parser.sgmlDecl = ''
  18482. parser.cdata = ''
  18483. } else if (parser.sgmlDecl + c === '--') {
  18484. parser.state = S.COMMENT
  18485. parser.comment = ''
  18486. parser.sgmlDecl = ''
  18487. } else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {
  18488. parser.state = S.DOCTYPE
  18489. if (parser.doctype || parser.sawRoot) {
  18490. strictFail(parser,
  18491. 'Inappropriately located doctype declaration')
  18492. }
  18493. parser.doctype = ''
  18494. parser.sgmlDecl = ''
  18495. } else if (c === '>') {
  18496. emitNode(parser, 'onsgmldeclaration', parser.sgmlDecl)
  18497. parser.sgmlDecl = ''
  18498. parser.state = S.TEXT
  18499. } else if (isQuote(c)) {
  18500. parser.state = S.SGML_DECL_QUOTED
  18501. parser.sgmlDecl += c
  18502. } else {
  18503. parser.sgmlDecl += c
  18504. }
  18505. continue
  18506. case S.SGML_DECL_QUOTED:
  18507. if (c === parser.q) {
  18508. parser.state = S.SGML_DECL
  18509. parser.q = ''
  18510. }
  18511. parser.sgmlDecl += c
  18512. continue
  18513. case S.DOCTYPE:
  18514. if (c === '>') {
  18515. parser.state = S.TEXT
  18516. emitNode(parser, 'ondoctype', parser.doctype)
  18517. parser.doctype = true // just remember that we saw it.
  18518. } else {
  18519. parser.doctype += c
  18520. if (c === '[') {
  18521. parser.state = S.DOCTYPE_DTD
  18522. } else if (isQuote(c)) {
  18523. parser.state = S.DOCTYPE_QUOTED
  18524. parser.q = c
  18525. }
  18526. }
  18527. continue
  18528. case S.DOCTYPE_QUOTED:
  18529. parser.doctype += c
  18530. if (c === parser.q) {
  18531. parser.q = ''
  18532. parser.state = S.DOCTYPE
  18533. }
  18534. continue
  18535. case S.DOCTYPE_DTD:
  18536. parser.doctype += c
  18537. if (c === ']') {
  18538. parser.state = S.DOCTYPE
  18539. } else if (isQuote(c)) {
  18540. parser.state = S.DOCTYPE_DTD_QUOTED
  18541. parser.q = c
  18542. }
  18543. continue
  18544. case S.DOCTYPE_DTD_QUOTED:
  18545. parser.doctype += c
  18546. if (c === parser.q) {
  18547. parser.state = S.DOCTYPE_DTD
  18548. parser.q = ''
  18549. }
  18550. continue
  18551. case S.COMMENT:
  18552. if (c === '-') {
  18553. parser.state = S.COMMENT_ENDING
  18554. } else {
  18555. parser.comment += c
  18556. }
  18557. continue
  18558. case S.COMMENT_ENDING:
  18559. if (c === '-') {
  18560. parser.state = S.COMMENT_ENDED
  18561. parser.comment = textopts(parser.opt, parser.comment)
  18562. if (parser.comment) {
  18563. emitNode(parser, 'oncomment', parser.comment)
  18564. }
  18565. parser.comment = ''
  18566. } else {
  18567. parser.comment += '-' + c
  18568. parser.state = S.COMMENT
  18569. }
  18570. continue
  18571. case S.COMMENT_ENDED:
  18572. if (c !== '>') {
  18573. strictFail(parser, 'Malformed comment')
  18574. // allow <!-- blah -- bloo --> in non-strict mode,
  18575. // which is a comment of " blah -- bloo "
  18576. parser.comment += '--' + c
  18577. parser.state = S.COMMENT
  18578. } else {
  18579. parser.state = S.TEXT
  18580. }
  18581. continue
  18582. case S.CDATA:
  18583. if (c === ']') {
  18584. parser.state = S.CDATA_ENDING
  18585. } else {
  18586. parser.cdata += c
  18587. }
  18588. continue
  18589. case S.CDATA_ENDING:
  18590. if (c === ']') {
  18591. parser.state = S.CDATA_ENDING_2
  18592. } else {
  18593. parser.cdata += ']' + c
  18594. parser.state = S.CDATA
  18595. }
  18596. continue
  18597. case S.CDATA_ENDING_2:
  18598. if (c === '>') {
  18599. if (parser.cdata) {
  18600. emitNode(parser, 'oncdata', parser.cdata)
  18601. }
  18602. emitNode(parser, 'onclosecdata')
  18603. parser.cdata = ''
  18604. parser.state = S.TEXT
  18605. } else if (c === ']') {
  18606. parser.cdata += ']'
  18607. } else {
  18608. parser.cdata += ']]' + c
  18609. parser.state = S.CDATA
  18610. }
  18611. continue
  18612. case S.PROC_INST:
  18613. if (c === '?') {
  18614. parser.state = S.PROC_INST_ENDING
  18615. } else if (isWhitespace(c)) {
  18616. parser.state = S.PROC_INST_BODY
  18617. } else {
  18618. parser.procInstName += c
  18619. }
  18620. continue
  18621. case S.PROC_INST_BODY:
  18622. if (!parser.procInstBody && isWhitespace(c)) {
  18623. continue
  18624. } else if (c === '?') {
  18625. parser.state = S.PROC_INST_ENDING
  18626. } else {
  18627. parser.procInstBody += c
  18628. }
  18629. continue
  18630. case S.PROC_INST_ENDING:
  18631. if (c === '>') {
  18632. emitNode(parser, 'onprocessinginstruction', {
  18633. name: parser.procInstName,
  18634. body: parser.procInstBody
  18635. })
  18636. parser.procInstName = parser.procInstBody = ''
  18637. parser.state = S.TEXT
  18638. } else {
  18639. parser.procInstBody += '?' + c
  18640. parser.state = S.PROC_INST_BODY
  18641. }
  18642. continue
  18643. case S.OPEN_TAG:
  18644. if (isMatch(nameBody, c)) {
  18645. parser.tagName += c
  18646. } else {
  18647. newTag(parser)
  18648. if (c === '>') {
  18649. openTag(parser)
  18650. } else if (c === '/') {
  18651. parser.state = S.OPEN_TAG_SLASH
  18652. } else {
  18653. if (!isWhitespace(c)) {
  18654. strictFail(parser, 'Invalid character in tag name')
  18655. }
  18656. parser.state = S.ATTRIB
  18657. }
  18658. }
  18659. continue
  18660. case S.OPEN_TAG_SLASH:
  18661. if (c === '>') {
  18662. openTag(parser, true)
  18663. closeTag(parser)
  18664. } else {
  18665. strictFail(parser, 'Forward-slash in opening tag not followed by >')
  18666. parser.state = S.ATTRIB
  18667. }
  18668. continue
  18669. case S.ATTRIB:
  18670. // haven't read the attribute name yet.
  18671. if (isWhitespace(c)) {
  18672. continue
  18673. } else if (c === '>') {
  18674. openTag(parser)
  18675. } else if (c === '/') {
  18676. parser.state = S.OPEN_TAG_SLASH
  18677. } else if (isMatch(nameStart, c)) {
  18678. parser.attribName = c
  18679. parser.attribValue = ''
  18680. parser.state = S.ATTRIB_NAME
  18681. } else {
  18682. strictFail(parser, 'Invalid attribute name')
  18683. }
  18684. continue
  18685. case S.ATTRIB_NAME:
  18686. if (c === '=') {
  18687. parser.state = S.ATTRIB_VALUE
  18688. } else if (c === '>') {
  18689. strictFail(parser, 'Attribute without value')
  18690. parser.attribValue = parser.attribName
  18691. attrib(parser)
  18692. openTag(parser)
  18693. } else if (isWhitespace(c)) {
  18694. parser.state = S.ATTRIB_NAME_SAW_WHITE
  18695. } else if (isMatch(nameBody, c)) {
  18696. parser.attribName += c
  18697. } else {
  18698. strictFail(parser, 'Invalid attribute name')
  18699. }
  18700. continue
  18701. case S.ATTRIB_NAME_SAW_WHITE:
  18702. if (c === '=') {
  18703. parser.state = S.ATTRIB_VALUE
  18704. } else if (isWhitespace(c)) {
  18705. continue
  18706. } else {
  18707. strictFail(parser, 'Attribute without value')
  18708. parser.tag.attributes[parser.attribName] = ''
  18709. parser.attribValue = ''
  18710. emitNode(parser, 'onattribute', {
  18711. name: parser.attribName,
  18712. value: ''
  18713. })
  18714. parser.attribName = ''
  18715. if (c === '>') {
  18716. openTag(parser)
  18717. } else if (isMatch(nameStart, c)) {
  18718. parser.attribName = c
  18719. parser.state = S.ATTRIB_NAME
  18720. } else {
  18721. strictFail(parser, 'Invalid attribute name')
  18722. parser.state = S.ATTRIB
  18723. }
  18724. }
  18725. continue
  18726. case S.ATTRIB_VALUE:
  18727. if (isWhitespace(c)) {
  18728. continue
  18729. } else if (isQuote(c)) {
  18730. parser.q = c
  18731. parser.state = S.ATTRIB_VALUE_QUOTED
  18732. } else {
  18733. strictFail(parser, 'Unquoted attribute value')
  18734. parser.state = S.ATTRIB_VALUE_UNQUOTED
  18735. parser.attribValue = c
  18736. }
  18737. continue
  18738. case S.ATTRIB_VALUE_QUOTED:
  18739. if (c !== parser.q) {
  18740. if (c === '&') {
  18741. parser.state = S.ATTRIB_VALUE_ENTITY_Q
  18742. } else {
  18743. parser.attribValue += c
  18744. }
  18745. continue
  18746. }
  18747. attrib(parser)
  18748. parser.q = ''
  18749. parser.state = S.ATTRIB_VALUE_CLOSED
  18750. continue
  18751. case S.ATTRIB_VALUE_CLOSED:
  18752. if (isWhitespace(c)) {
  18753. parser.state = S.ATTRIB
  18754. } else if (c === '>') {
  18755. openTag(parser)
  18756. } else if (c === '/') {
  18757. parser.state = S.OPEN_TAG_SLASH
  18758. } else if (isMatch(nameStart, c)) {
  18759. strictFail(parser, 'No whitespace between attributes')
  18760. parser.attribName = c
  18761. parser.attribValue = ''
  18762. parser.state = S.ATTRIB_NAME
  18763. } else {
  18764. strictFail(parser, 'Invalid attribute name')
  18765. }
  18766. continue
  18767. case S.ATTRIB_VALUE_UNQUOTED:
  18768. if (!isAttribEnd(c)) {
  18769. if (c === '&') {
  18770. parser.state = S.ATTRIB_VALUE_ENTITY_U
  18771. } else {
  18772. parser.attribValue += c
  18773. }
  18774. continue
  18775. }
  18776. attrib(parser)
  18777. if (c === '>') {
  18778. openTag(parser)
  18779. } else {
  18780. parser.state = S.ATTRIB
  18781. }
  18782. continue
  18783. case S.CLOSE_TAG:
  18784. if (!parser.tagName) {
  18785. if (isWhitespace(c)) {
  18786. continue
  18787. } else if (notMatch(nameStart, c)) {
  18788. if (parser.script) {
  18789. parser.script += '</' + c
  18790. parser.state = S.SCRIPT
  18791. } else {
  18792. strictFail(parser, 'Invalid tagname in closing tag.')
  18793. }
  18794. } else {
  18795. parser.tagName = c
  18796. }
  18797. } else if (c === '>') {
  18798. closeTag(parser)
  18799. } else if (isMatch(nameBody, c)) {
  18800. parser.tagName += c
  18801. } else if (parser.script) {
  18802. parser.script += '</' + parser.tagName
  18803. parser.tagName = ''
  18804. parser.state = S.SCRIPT
  18805. } else {
  18806. if (!isWhitespace(c)) {
  18807. strictFail(parser, 'Invalid tagname in closing tag')
  18808. }
  18809. parser.state = S.CLOSE_TAG_SAW_WHITE
  18810. }
  18811. continue
  18812. case S.CLOSE_TAG_SAW_WHITE:
  18813. if (isWhitespace(c)) {
  18814. continue
  18815. }
  18816. if (c === '>') {
  18817. closeTag(parser)
  18818. } else {
  18819. strictFail(parser, 'Invalid characters in closing tag')
  18820. }
  18821. continue
  18822. case S.TEXT_ENTITY:
  18823. case S.ATTRIB_VALUE_ENTITY_Q:
  18824. case S.ATTRIB_VALUE_ENTITY_U:
  18825. var returnState
  18826. var buffer
  18827. switch (parser.state) {
  18828. case S.TEXT_ENTITY:
  18829. returnState = S.TEXT
  18830. buffer = 'textNode'
  18831. break
  18832. case S.ATTRIB_VALUE_ENTITY_Q:
  18833. returnState = S.ATTRIB_VALUE_QUOTED
  18834. buffer = 'attribValue'
  18835. break
  18836. case S.ATTRIB_VALUE_ENTITY_U:
  18837. returnState = S.ATTRIB_VALUE_UNQUOTED
  18838. buffer = 'attribValue'
  18839. break
  18840. }
  18841. if (c === ';') {
  18842. parser[buffer] += parseEntity(parser)
  18843. parser.entity = ''
  18844. parser.state = returnState
  18845. } else if (isMatch(parser.entity.length ? entityBody : entityStart, c)) {
  18846. parser.entity += c
  18847. } else {
  18848. strictFail(parser, 'Invalid character in entity name')
  18849. parser[buffer] += '&' + parser.entity + c
  18850. parser.entity = ''
  18851. parser.state = returnState
  18852. }
  18853. continue
  18854. default:
  18855. throw new Error(parser, 'Unknown state: ' + parser.state)
  18856. }
  18857. } // while
  18858. if (parser.position >= parser.bufferCheckPosition) {
  18859. checkBufferLength(parser)
  18860. }
  18861. return parser
  18862. }
  18863. /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
  18864. /* istanbul ignore next */
  18865. if (!String.fromCodePoint) {
  18866. (function () {
  18867. var stringFromCharCode = String.fromCharCode
  18868. var floor = Math.floor
  18869. var fromCodePoint = function () {
  18870. var MAX_SIZE = 0x4000
  18871. var codeUnits = []
  18872. var highSurrogate
  18873. var lowSurrogate
  18874. var index = -1
  18875. var length = arguments.length
  18876. if (!length) {
  18877. return ''
  18878. }
  18879. var result = ''
  18880. while (++index < length) {
  18881. var codePoint = Number(arguments[index])
  18882. if (
  18883. !isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity`
  18884. codePoint < 0 || // not a valid Unicode code point
  18885. codePoint > 0x10FFFF || // not a valid Unicode code point
  18886. floor(codePoint) !== codePoint // not an integer
  18887. ) {
  18888. throw RangeError('Invalid code point: ' + codePoint)
  18889. }
  18890. if (codePoint <= 0xFFFF) { // BMP code point
  18891. codeUnits.push(codePoint)
  18892. } else { // Astral code point; split in surrogate halves
  18893. // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
  18894. codePoint -= 0x10000
  18895. highSurrogate = (codePoint >> 10) + 0xD800
  18896. lowSurrogate = (codePoint % 0x400) + 0xDC00
  18897. codeUnits.push(highSurrogate, lowSurrogate)
  18898. }
  18899. if (index + 1 === length || codeUnits.length > MAX_SIZE) {
  18900. result += stringFromCharCode.apply(null, codeUnits)
  18901. codeUnits.length = 0
  18902. }
  18903. }
  18904. return result
  18905. }
  18906. /* istanbul ignore next */
  18907. if (Object.defineProperty) {
  18908. Object.defineProperty(String, 'fromCodePoint', {
  18909. value: fromCodePoint,
  18910. configurable: true,
  18911. writable: true
  18912. })
  18913. } else {
  18914. String.fromCodePoint = fromCodePoint
  18915. }
  18916. }())
  18917. }
  18918. })( false ? 0 : exports)
  18919. /***/ }),
  18920. /***/ 29140:
  18921. /***/ ((module) => {
  18922. module.exports = function cmp (a, b) {
  18923. var pa = a.split('.');
  18924. var pb = b.split('.');
  18925. for (var i = 0; i < 3; i++) {
  18926. var na = Number(pa[i]);
  18927. var nb = Number(pb[i]);
  18928. if (na > nb) return 1;
  18929. if (nb > na) return -1;
  18930. if (!isNaN(na) && isNaN(nb)) return 1;
  18931. if (isNaN(na) && !isNaN(nb)) return -1;
  18932. }
  18933. return 0;
  18934. };
  18935. /***/ }),
  18936. /***/ 36625:
  18937. /***/ ((module, exports) => {
  18938. exports = module.exports = SemVer
  18939. var debug
  18940. /* istanbul ignore next */
  18941. if (typeof process === 'object' &&
  18942. process.env &&
  18943. process.env.NODE_DEBUG &&
  18944. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  18945. debug = function () {
  18946. var args = Array.prototype.slice.call(arguments, 0)
  18947. args.unshift('SEMVER')
  18948. console.log.apply(console, args)
  18949. }
  18950. } else {
  18951. debug = function () {}
  18952. }
  18953. // Note: this is the semver.org version of the spec that it implements
  18954. // Not necessarily the package version of this code.
  18955. exports.SEMVER_SPEC_VERSION = '2.0.0'
  18956. var MAX_LENGTH = 256
  18957. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  18958. /* istanbul ignore next */ 9007199254740991
  18959. // Max safe segment length for coercion.
  18960. var MAX_SAFE_COMPONENT_LENGTH = 16
  18961. // The actual regexps go on exports.re
  18962. var re = exports.re = []
  18963. var src = exports.src = []
  18964. var t = exports.tokens = {}
  18965. var R = 0
  18966. function tok (n) {
  18967. t[n] = R++
  18968. }
  18969. // The following Regular Expressions can be used for tokenizing,
  18970. // validating, and parsing SemVer version strings.
  18971. // ## Numeric Identifier
  18972. // A single `0`, or a non-zero digit followed by zero or more digits.
  18973. tok('NUMERICIDENTIFIER')
  18974. src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  18975. tok('NUMERICIDENTIFIERLOOSE')
  18976. src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  18977. // ## Non-numeric Identifier
  18978. // Zero or more digits, followed by a letter or hyphen, and then zero or
  18979. // more letters, digits, or hyphens.
  18980. tok('NONNUMERICIDENTIFIER')
  18981. src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  18982. // ## Main Version
  18983. // Three dot-separated numeric identifiers.
  18984. tok('MAINVERSION')
  18985. src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  18986. '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  18987. '(' + src[t.NUMERICIDENTIFIER] + ')'
  18988. tok('MAINVERSIONLOOSE')
  18989. src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  18990. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  18991. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'
  18992. // ## Pre-release Version Identifier
  18993. // A numeric identifier, or a non-numeric identifier.
  18994. tok('PRERELEASEIDENTIFIER')
  18995. src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +
  18996. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  18997. tok('PRERELEASEIDENTIFIERLOOSE')
  18998. src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +
  18999. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  19000. // ## Pre-release Version
  19001. // Hyphen, followed by one or more dot-separated pre-release version
  19002. // identifiers.
  19003. tok('PRERELEASE')
  19004. src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +
  19005. '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'
  19006. tok('PRERELEASELOOSE')
  19007. src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +
  19008. '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'
  19009. // ## Build Metadata Identifier
  19010. // Any combination of digits, letters, or hyphens.
  19011. tok('BUILDIDENTIFIER')
  19012. src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  19013. // ## Build Metadata
  19014. // Plus sign, followed by one or more period-separated build metadata
  19015. // identifiers.
  19016. tok('BUILD')
  19017. src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] +
  19018. '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'
  19019. // ## Full Version String
  19020. // A main version, followed optionally by a pre-release version and
  19021. // build metadata.
  19022. // Note that the only major, minor, patch, and pre-release sections of
  19023. // the version string are capturing groups. The build metadata is not a
  19024. // capturing group, because it should not ever be used in version
  19025. // comparison.
  19026. tok('FULL')
  19027. tok('FULLPLAIN')
  19028. src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +
  19029. src[t.PRERELEASE] + '?' +
  19030. src[t.BUILD] + '?'
  19031. src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'
  19032. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  19033. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  19034. // common in the npm registry.
  19035. tok('LOOSEPLAIN')
  19036. src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] +
  19037. src[t.PRERELEASELOOSE] + '?' +
  19038. src[t.BUILD] + '?'
  19039. tok('LOOSE')
  19040. src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'
  19041. tok('GTLT')
  19042. src[t.GTLT] = '((?:<|>)?=?)'
  19043. // Something like "2.*" or "1.2.x".
  19044. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  19045. // Only the first item is strictly required.
  19046. tok('XRANGEIDENTIFIERLOOSE')
  19047. src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  19048. tok('XRANGEIDENTIFIER')
  19049. src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'
  19050. tok('XRANGEPLAIN')
  19051. src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +
  19052. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  19053. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  19054. '(?:' + src[t.PRERELEASE] + ')?' +
  19055. src[t.BUILD] + '?' +
  19056. ')?)?'
  19057. tok('XRANGEPLAINLOOSE')
  19058. src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  19059. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  19060. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  19061. '(?:' + src[t.PRERELEASELOOSE] + ')?' +
  19062. src[t.BUILD] + '?' +
  19063. ')?)?'
  19064. tok('XRANGE')
  19065. src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'
  19066. tok('XRANGELOOSE')
  19067. src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'
  19068. // Coercion.
  19069. // Extract anything that could conceivably be a part of a valid semver
  19070. tok('COERCE')
  19071. src[t.COERCE] = '(^|[^\\d])' +
  19072. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  19073. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  19074. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  19075. '(?:$|[^\\d])'
  19076. tok('COERCERTL')
  19077. re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')
  19078. // Tilde ranges.
  19079. // Meaning is "reasonably at or greater than"
  19080. tok('LONETILDE')
  19081. src[t.LONETILDE] = '(?:~>?)'
  19082. tok('TILDETRIM')
  19083. src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'
  19084. re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')
  19085. var tildeTrimReplace = '$1~'
  19086. tok('TILDE')
  19087. src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'
  19088. tok('TILDELOOSE')
  19089. src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'
  19090. // Caret ranges.
  19091. // Meaning is "at least and backwards compatible with"
  19092. tok('LONECARET')
  19093. src[t.LONECARET] = '(?:\\^)'
  19094. tok('CARETTRIM')
  19095. src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'
  19096. re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')
  19097. var caretTrimReplace = '$1^'
  19098. tok('CARET')
  19099. src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'
  19100. tok('CARETLOOSE')
  19101. src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'
  19102. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  19103. tok('COMPARATORLOOSE')
  19104. src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'
  19105. tok('COMPARATOR')
  19106. src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'
  19107. // An expression to strip any whitespace between the gtlt and the thing
  19108. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  19109. tok('COMPARATORTRIM')
  19110. src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] +
  19111. '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'
  19112. // this one has to use the /g flag
  19113. re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')
  19114. var comparatorTrimReplace = '$1$2$3'
  19115. // Something like `1.2.3 - 1.2.4`
  19116. // Note that these all use the loose form, because they'll be
  19117. // checked against either the strict or loose comparator form
  19118. // later.
  19119. tok('HYPHENRANGE')
  19120. src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' +
  19121. '\\s+-\\s+' +
  19122. '(' + src[t.XRANGEPLAIN] + ')' +
  19123. '\\s*$'
  19124. tok('HYPHENRANGELOOSE')
  19125. src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +
  19126. '\\s+-\\s+' +
  19127. '(' + src[t.XRANGEPLAINLOOSE] + ')' +
  19128. '\\s*$'
  19129. // Star ranges basically just allow anything at all.
  19130. tok('STAR')
  19131. src[t.STAR] = '(<|>)?=?\\s*\\*'
  19132. // Compile to actual regexp objects.
  19133. // All are flag-free, unless they were created above with a flag.
  19134. for (var i = 0; i < R; i++) {
  19135. debug(i, src[i])
  19136. if (!re[i]) {
  19137. re[i] = new RegExp(src[i])
  19138. }
  19139. }
  19140. exports.parse = parse
  19141. function parse (version, options) {
  19142. if (!options || typeof options !== 'object') {
  19143. options = {
  19144. loose: !!options,
  19145. includePrerelease: false
  19146. }
  19147. }
  19148. if (version instanceof SemVer) {
  19149. return version
  19150. }
  19151. if (typeof version !== 'string') {
  19152. return null
  19153. }
  19154. if (version.length > MAX_LENGTH) {
  19155. return null
  19156. }
  19157. var r = options.loose ? re[t.LOOSE] : re[t.FULL]
  19158. if (!r.test(version)) {
  19159. return null
  19160. }
  19161. try {
  19162. return new SemVer(version, options)
  19163. } catch (er) {
  19164. return null
  19165. }
  19166. }
  19167. exports.valid = valid
  19168. function valid (version, options) {
  19169. var v = parse(version, options)
  19170. return v ? v.version : null
  19171. }
  19172. exports.clean = clean
  19173. function clean (version, options) {
  19174. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  19175. return s ? s.version : null
  19176. }
  19177. exports.SemVer = SemVer
  19178. function SemVer (version, options) {
  19179. if (!options || typeof options !== 'object') {
  19180. options = {
  19181. loose: !!options,
  19182. includePrerelease: false
  19183. }
  19184. }
  19185. if (version instanceof SemVer) {
  19186. if (version.loose === options.loose) {
  19187. return version
  19188. } else {
  19189. version = version.version
  19190. }
  19191. } else if (typeof version !== 'string') {
  19192. throw new TypeError('Invalid Version: ' + version)
  19193. }
  19194. if (version.length > MAX_LENGTH) {
  19195. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  19196. }
  19197. if (!(this instanceof SemVer)) {
  19198. return new SemVer(version, options)
  19199. }
  19200. debug('SemVer', version, options)
  19201. this.options = options
  19202. this.loose = !!options.loose
  19203. var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
  19204. if (!m) {
  19205. throw new TypeError('Invalid Version: ' + version)
  19206. }
  19207. this.raw = version
  19208. // these are actually numbers
  19209. this.major = +m[1]
  19210. this.minor = +m[2]
  19211. this.patch = +m[3]
  19212. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  19213. throw new TypeError('Invalid major version')
  19214. }
  19215. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  19216. throw new TypeError('Invalid minor version')
  19217. }
  19218. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  19219. throw new TypeError('Invalid patch version')
  19220. }
  19221. // numberify any prerelease numeric ids
  19222. if (!m[4]) {
  19223. this.prerelease = []
  19224. } else {
  19225. this.prerelease = m[4].split('.').map(function (id) {
  19226. if (/^[0-9]+$/.test(id)) {
  19227. var num = +id
  19228. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  19229. return num
  19230. }
  19231. }
  19232. return id
  19233. })
  19234. }
  19235. this.build = m[5] ? m[5].split('.') : []
  19236. this.format()
  19237. }
  19238. SemVer.prototype.format = function () {
  19239. this.version = this.major + '.' + this.minor + '.' + this.patch
  19240. if (this.prerelease.length) {
  19241. this.version += '-' + this.prerelease.join('.')
  19242. }
  19243. return this.version
  19244. }
  19245. SemVer.prototype.toString = function () {
  19246. return this.version
  19247. }
  19248. SemVer.prototype.compare = function (other) {
  19249. debug('SemVer.compare', this.version, this.options, other)
  19250. if (!(other instanceof SemVer)) {
  19251. other = new SemVer(other, this.options)
  19252. }
  19253. return this.compareMain(other) || this.comparePre(other)
  19254. }
  19255. SemVer.prototype.compareMain = function (other) {
  19256. if (!(other instanceof SemVer)) {
  19257. other = new SemVer(other, this.options)
  19258. }
  19259. return compareIdentifiers(this.major, other.major) ||
  19260. compareIdentifiers(this.minor, other.minor) ||
  19261. compareIdentifiers(this.patch, other.patch)
  19262. }
  19263. SemVer.prototype.comparePre = function (other) {
  19264. if (!(other instanceof SemVer)) {
  19265. other = new SemVer(other, this.options)
  19266. }
  19267. // NOT having a prerelease is > having one
  19268. if (this.prerelease.length && !other.prerelease.length) {
  19269. return -1
  19270. } else if (!this.prerelease.length && other.prerelease.length) {
  19271. return 1
  19272. } else if (!this.prerelease.length && !other.prerelease.length) {
  19273. return 0
  19274. }
  19275. var i = 0
  19276. do {
  19277. var a = this.prerelease[i]
  19278. var b = other.prerelease[i]
  19279. debug('prerelease compare', i, a, b)
  19280. if (a === undefined && b === undefined) {
  19281. return 0
  19282. } else if (b === undefined) {
  19283. return 1
  19284. } else if (a === undefined) {
  19285. return -1
  19286. } else if (a === b) {
  19287. continue
  19288. } else {
  19289. return compareIdentifiers(a, b)
  19290. }
  19291. } while (++i)
  19292. }
  19293. SemVer.prototype.compareBuild = function (other) {
  19294. if (!(other instanceof SemVer)) {
  19295. other = new SemVer(other, this.options)
  19296. }
  19297. var i = 0
  19298. do {
  19299. var a = this.build[i]
  19300. var b = other.build[i]
  19301. debug('prerelease compare', i, a, b)
  19302. if (a === undefined && b === undefined) {
  19303. return 0
  19304. } else if (b === undefined) {
  19305. return 1
  19306. } else if (a === undefined) {
  19307. return -1
  19308. } else if (a === b) {
  19309. continue
  19310. } else {
  19311. return compareIdentifiers(a, b)
  19312. }
  19313. } while (++i)
  19314. }
  19315. // preminor will bump the version up to the next minor release, and immediately
  19316. // down to pre-release. premajor and prepatch work the same way.
  19317. SemVer.prototype.inc = function (release, identifier) {
  19318. switch (release) {
  19319. case 'premajor':
  19320. this.prerelease.length = 0
  19321. this.patch = 0
  19322. this.minor = 0
  19323. this.major++
  19324. this.inc('pre', identifier)
  19325. break
  19326. case 'preminor':
  19327. this.prerelease.length = 0
  19328. this.patch = 0
  19329. this.minor++
  19330. this.inc('pre', identifier)
  19331. break
  19332. case 'prepatch':
  19333. // If this is already a prerelease, it will bump to the next version
  19334. // drop any prereleases that might already exist, since they are not
  19335. // relevant at this point.
  19336. this.prerelease.length = 0
  19337. this.inc('patch', identifier)
  19338. this.inc('pre', identifier)
  19339. break
  19340. // If the input is a non-prerelease version, this acts the same as
  19341. // prepatch.
  19342. case 'prerelease':
  19343. if (this.prerelease.length === 0) {
  19344. this.inc('patch', identifier)
  19345. }
  19346. this.inc('pre', identifier)
  19347. break
  19348. case 'major':
  19349. // If this is a pre-major version, bump up to the same major version.
  19350. // Otherwise increment major.
  19351. // 1.0.0-5 bumps to 1.0.0
  19352. // 1.1.0 bumps to 2.0.0
  19353. if (this.minor !== 0 ||
  19354. this.patch !== 0 ||
  19355. this.prerelease.length === 0) {
  19356. this.major++
  19357. }
  19358. this.minor = 0
  19359. this.patch = 0
  19360. this.prerelease = []
  19361. break
  19362. case 'minor':
  19363. // If this is a pre-minor version, bump up to the same minor version.
  19364. // Otherwise increment minor.
  19365. // 1.2.0-5 bumps to 1.2.0
  19366. // 1.2.1 bumps to 1.3.0
  19367. if (this.patch !== 0 || this.prerelease.length === 0) {
  19368. this.minor++
  19369. }
  19370. this.patch = 0
  19371. this.prerelease = []
  19372. break
  19373. case 'patch':
  19374. // If this is not a pre-release version, it will increment the patch.
  19375. // If it is a pre-release it will bump up to the same patch version.
  19376. // 1.2.0-5 patches to 1.2.0
  19377. // 1.2.0 patches to 1.2.1
  19378. if (this.prerelease.length === 0) {
  19379. this.patch++
  19380. }
  19381. this.prerelease = []
  19382. break
  19383. // This probably shouldn't be used publicly.
  19384. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  19385. case 'pre':
  19386. if (this.prerelease.length === 0) {
  19387. this.prerelease = [0]
  19388. } else {
  19389. var i = this.prerelease.length
  19390. while (--i >= 0) {
  19391. if (typeof this.prerelease[i] === 'number') {
  19392. this.prerelease[i]++
  19393. i = -2
  19394. }
  19395. }
  19396. if (i === -1) {
  19397. // didn't increment anything
  19398. this.prerelease.push(0)
  19399. }
  19400. }
  19401. if (identifier) {
  19402. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  19403. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  19404. if (this.prerelease[0] === identifier) {
  19405. if (isNaN(this.prerelease[1])) {
  19406. this.prerelease = [identifier, 0]
  19407. }
  19408. } else {
  19409. this.prerelease = [identifier, 0]
  19410. }
  19411. }
  19412. break
  19413. default:
  19414. throw new Error('invalid increment argument: ' + release)
  19415. }
  19416. this.format()
  19417. this.raw = this.version
  19418. return this
  19419. }
  19420. exports.inc = inc
  19421. function inc (version, release, loose, identifier) {
  19422. if (typeof (loose) === 'string') {
  19423. identifier = loose
  19424. loose = undefined
  19425. }
  19426. try {
  19427. return new SemVer(version, loose).inc(release, identifier).version
  19428. } catch (er) {
  19429. return null
  19430. }
  19431. }
  19432. exports.diff = diff
  19433. function diff (version1, version2) {
  19434. if (eq(version1, version2)) {
  19435. return null
  19436. } else {
  19437. var v1 = parse(version1)
  19438. var v2 = parse(version2)
  19439. var prefix = ''
  19440. if (v1.prerelease.length || v2.prerelease.length) {
  19441. prefix = 'pre'
  19442. var defaultResult = 'prerelease'
  19443. }
  19444. for (var key in v1) {
  19445. if (key === 'major' || key === 'minor' || key === 'patch') {
  19446. if (v1[key] !== v2[key]) {
  19447. return prefix + key
  19448. }
  19449. }
  19450. }
  19451. return defaultResult // may be undefined
  19452. }
  19453. }
  19454. exports.compareIdentifiers = compareIdentifiers
  19455. var numeric = /^[0-9]+$/
  19456. function compareIdentifiers (a, b) {
  19457. var anum = numeric.test(a)
  19458. var bnum = numeric.test(b)
  19459. if (anum && bnum) {
  19460. a = +a
  19461. b = +b
  19462. }
  19463. return a === b ? 0
  19464. : (anum && !bnum) ? -1
  19465. : (bnum && !anum) ? 1
  19466. : a < b ? -1
  19467. : 1
  19468. }
  19469. exports.rcompareIdentifiers = rcompareIdentifiers
  19470. function rcompareIdentifiers (a, b) {
  19471. return compareIdentifiers(b, a)
  19472. }
  19473. exports.major = major
  19474. function major (a, loose) {
  19475. return new SemVer(a, loose).major
  19476. }
  19477. exports.minor = minor
  19478. function minor (a, loose) {
  19479. return new SemVer(a, loose).minor
  19480. }
  19481. exports.patch = patch
  19482. function patch (a, loose) {
  19483. return new SemVer(a, loose).patch
  19484. }
  19485. exports.compare = compare
  19486. function compare (a, b, loose) {
  19487. return new SemVer(a, loose).compare(new SemVer(b, loose))
  19488. }
  19489. exports.compareLoose = compareLoose
  19490. function compareLoose (a, b) {
  19491. return compare(a, b, true)
  19492. }
  19493. exports.compareBuild = compareBuild
  19494. function compareBuild (a, b, loose) {
  19495. var versionA = new SemVer(a, loose)
  19496. var versionB = new SemVer(b, loose)
  19497. return versionA.compare(versionB) || versionA.compareBuild(versionB)
  19498. }
  19499. exports.rcompare = rcompare
  19500. function rcompare (a, b, loose) {
  19501. return compare(b, a, loose)
  19502. }
  19503. exports.sort = sort
  19504. function sort (list, loose) {
  19505. return list.sort(function (a, b) {
  19506. return exports.compareBuild(a, b, loose)
  19507. })
  19508. }
  19509. exports.rsort = rsort
  19510. function rsort (list, loose) {
  19511. return list.sort(function (a, b) {
  19512. return exports.compareBuild(b, a, loose)
  19513. })
  19514. }
  19515. exports.gt = gt
  19516. function gt (a, b, loose) {
  19517. return compare(a, b, loose) > 0
  19518. }
  19519. exports.lt = lt
  19520. function lt (a, b, loose) {
  19521. return compare(a, b, loose) < 0
  19522. }
  19523. exports.eq = eq
  19524. function eq (a, b, loose) {
  19525. return compare(a, b, loose) === 0
  19526. }
  19527. exports.neq = neq
  19528. function neq (a, b, loose) {
  19529. return compare(a, b, loose) !== 0
  19530. }
  19531. exports.gte = gte
  19532. function gte (a, b, loose) {
  19533. return compare(a, b, loose) >= 0
  19534. }
  19535. exports.lte = lte
  19536. function lte (a, b, loose) {
  19537. return compare(a, b, loose) <= 0
  19538. }
  19539. exports.cmp = cmp
  19540. function cmp (a, op, b, loose) {
  19541. switch (op) {
  19542. case '===':
  19543. if (typeof a === 'object')
  19544. a = a.version
  19545. if (typeof b === 'object')
  19546. b = b.version
  19547. return a === b
  19548. case '!==':
  19549. if (typeof a === 'object')
  19550. a = a.version
  19551. if (typeof b === 'object')
  19552. b = b.version
  19553. return a !== b
  19554. case '':
  19555. case '=':
  19556. case '==':
  19557. return eq(a, b, loose)
  19558. case '!=':
  19559. return neq(a, b, loose)
  19560. case '>':
  19561. return gt(a, b, loose)
  19562. case '>=':
  19563. return gte(a, b, loose)
  19564. case '<':
  19565. return lt(a, b, loose)
  19566. case '<=':
  19567. return lte(a, b, loose)
  19568. default:
  19569. throw new TypeError('Invalid operator: ' + op)
  19570. }
  19571. }
  19572. exports.Comparator = Comparator
  19573. function Comparator (comp, options) {
  19574. if (!options || typeof options !== 'object') {
  19575. options = {
  19576. loose: !!options,
  19577. includePrerelease: false
  19578. }
  19579. }
  19580. if (comp instanceof Comparator) {
  19581. if (comp.loose === !!options.loose) {
  19582. return comp
  19583. } else {
  19584. comp = comp.value
  19585. }
  19586. }
  19587. if (!(this instanceof Comparator)) {
  19588. return new Comparator(comp, options)
  19589. }
  19590. debug('comparator', comp, options)
  19591. this.options = options
  19592. this.loose = !!options.loose
  19593. this.parse(comp)
  19594. if (this.semver === ANY) {
  19595. this.value = ''
  19596. } else {
  19597. this.value = this.operator + this.semver.version
  19598. }
  19599. debug('comp', this)
  19600. }
  19601. var ANY = {}
  19602. Comparator.prototype.parse = function (comp) {
  19603. var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  19604. var m = comp.match(r)
  19605. if (!m) {
  19606. throw new TypeError('Invalid comparator: ' + comp)
  19607. }
  19608. this.operator = m[1] !== undefined ? m[1] : ''
  19609. if (this.operator === '=') {
  19610. this.operator = ''
  19611. }
  19612. // if it literally is just '>' or '' then allow anything.
  19613. if (!m[2]) {
  19614. this.semver = ANY
  19615. } else {
  19616. this.semver = new SemVer(m[2], this.options.loose)
  19617. }
  19618. }
  19619. Comparator.prototype.toString = function () {
  19620. return this.value
  19621. }
  19622. Comparator.prototype.test = function (version) {
  19623. debug('Comparator.test', version, this.options.loose)
  19624. if (this.semver === ANY || version === ANY) {
  19625. return true
  19626. }
  19627. if (typeof version === 'string') {
  19628. try {
  19629. version = new SemVer(version, this.options)
  19630. } catch (er) {
  19631. return false
  19632. }
  19633. }
  19634. return cmp(version, this.operator, this.semver, this.options)
  19635. }
  19636. Comparator.prototype.intersects = function (comp, options) {
  19637. if (!(comp instanceof Comparator)) {
  19638. throw new TypeError('a Comparator is required')
  19639. }
  19640. if (!options || typeof options !== 'object') {
  19641. options = {
  19642. loose: !!options,
  19643. includePrerelease: false
  19644. }
  19645. }
  19646. var rangeTmp
  19647. if (this.operator === '') {
  19648. if (this.value === '') {
  19649. return true
  19650. }
  19651. rangeTmp = new Range(comp.value, options)
  19652. return satisfies(this.value, rangeTmp, options)
  19653. } else if (comp.operator === '') {
  19654. if (comp.value === '') {
  19655. return true
  19656. }
  19657. rangeTmp = new Range(this.value, options)
  19658. return satisfies(comp.semver, rangeTmp, options)
  19659. }
  19660. var sameDirectionIncreasing =
  19661. (this.operator === '>=' || this.operator === '>') &&
  19662. (comp.operator === '>=' || comp.operator === '>')
  19663. var sameDirectionDecreasing =
  19664. (this.operator === '<=' || this.operator === '<') &&
  19665. (comp.operator === '<=' || comp.operator === '<')
  19666. var sameSemVer = this.semver.version === comp.semver.version
  19667. var differentDirectionsInclusive =
  19668. (this.operator === '>=' || this.operator === '<=') &&
  19669. (comp.operator === '>=' || comp.operator === '<=')
  19670. var oppositeDirectionsLessThan =
  19671. cmp(this.semver, '<', comp.semver, options) &&
  19672. ((this.operator === '>=' || this.operator === '>') &&
  19673. (comp.operator === '<=' || comp.operator === '<'))
  19674. var oppositeDirectionsGreaterThan =
  19675. cmp(this.semver, '>', comp.semver, options) &&
  19676. ((this.operator === '<=' || this.operator === '<') &&
  19677. (comp.operator === '>=' || comp.operator === '>'))
  19678. return sameDirectionIncreasing || sameDirectionDecreasing ||
  19679. (sameSemVer && differentDirectionsInclusive) ||
  19680. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  19681. }
  19682. exports.Range = Range
  19683. function Range (range, options) {
  19684. if (!options || typeof options !== 'object') {
  19685. options = {
  19686. loose: !!options,
  19687. includePrerelease: false
  19688. }
  19689. }
  19690. if (range instanceof Range) {
  19691. if (range.loose === !!options.loose &&
  19692. range.includePrerelease === !!options.includePrerelease) {
  19693. return range
  19694. } else {
  19695. return new Range(range.raw, options)
  19696. }
  19697. }
  19698. if (range instanceof Comparator) {
  19699. return new Range(range.value, options)
  19700. }
  19701. if (!(this instanceof Range)) {
  19702. return new Range(range, options)
  19703. }
  19704. this.options = options
  19705. this.loose = !!options.loose
  19706. this.includePrerelease = !!options.includePrerelease
  19707. // First, split based on boolean or ||
  19708. this.raw = range
  19709. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  19710. return this.parseRange(range.trim())
  19711. }, this).filter(function (c) {
  19712. // throw out any that are not relevant for whatever reason
  19713. return c.length
  19714. })
  19715. if (!this.set.length) {
  19716. throw new TypeError('Invalid SemVer Range: ' + range)
  19717. }
  19718. this.format()
  19719. }
  19720. Range.prototype.format = function () {
  19721. this.range = this.set.map(function (comps) {
  19722. return comps.join(' ').trim()
  19723. }).join('||').trim()
  19724. return this.range
  19725. }
  19726. Range.prototype.toString = function () {
  19727. return this.range
  19728. }
  19729. Range.prototype.parseRange = function (range) {
  19730. var loose = this.options.loose
  19731. range = range.trim()
  19732. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  19733. var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
  19734. range = range.replace(hr, hyphenReplace)
  19735. debug('hyphen replace', range)
  19736. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  19737. range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
  19738. debug('comparator trim', range, re[t.COMPARATORTRIM])
  19739. // `~ 1.2.3` => `~1.2.3`
  19740. range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
  19741. // `^ 1.2.3` => `^1.2.3`
  19742. range = range.replace(re[t.CARETTRIM], caretTrimReplace)
  19743. // normalize spaces
  19744. range = range.split(/\s+/).join(' ')
  19745. // At this point, the range is completely trimmed and
  19746. // ready to be split into comparators.
  19747. var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  19748. var set = range.split(' ').map(function (comp) {
  19749. return parseComparator(comp, this.options)
  19750. }, this).join(' ').split(/\s+/)
  19751. if (this.options.loose) {
  19752. // in loose mode, throw out any that are not valid comparators
  19753. set = set.filter(function (comp) {
  19754. return !!comp.match(compRe)
  19755. })
  19756. }
  19757. set = set.map(function (comp) {
  19758. return new Comparator(comp, this.options)
  19759. }, this)
  19760. return set
  19761. }
  19762. Range.prototype.intersects = function (range, options) {
  19763. if (!(range instanceof Range)) {
  19764. throw new TypeError('a Range is required')
  19765. }
  19766. return this.set.some(function (thisComparators) {
  19767. return (
  19768. isSatisfiable(thisComparators, options) &&
  19769. range.set.some(function (rangeComparators) {
  19770. return (
  19771. isSatisfiable(rangeComparators, options) &&
  19772. thisComparators.every(function (thisComparator) {
  19773. return rangeComparators.every(function (rangeComparator) {
  19774. return thisComparator.intersects(rangeComparator, options)
  19775. })
  19776. })
  19777. )
  19778. })
  19779. )
  19780. })
  19781. }
  19782. // take a set of comparators and determine whether there
  19783. // exists a version which can satisfy it
  19784. function isSatisfiable (comparators, options) {
  19785. var result = true
  19786. var remainingComparators = comparators.slice()
  19787. var testComparator = remainingComparators.pop()
  19788. while (result && remainingComparators.length) {
  19789. result = remainingComparators.every(function (otherComparator) {
  19790. return testComparator.intersects(otherComparator, options)
  19791. })
  19792. testComparator = remainingComparators.pop()
  19793. }
  19794. return result
  19795. }
  19796. // Mostly just for testing and legacy API reasons
  19797. exports.toComparators = toComparators
  19798. function toComparators (range, options) {
  19799. return new Range(range, options).set.map(function (comp) {
  19800. return comp.map(function (c) {
  19801. return c.value
  19802. }).join(' ').trim().split(' ')
  19803. })
  19804. }
  19805. // comprised of xranges, tildes, stars, and gtlt's at this point.
  19806. // already replaced the hyphen ranges
  19807. // turn into a set of JUST comparators.
  19808. function parseComparator (comp, options) {
  19809. debug('comp', comp, options)
  19810. comp = replaceCarets(comp, options)
  19811. debug('caret', comp)
  19812. comp = replaceTildes(comp, options)
  19813. debug('tildes', comp)
  19814. comp = replaceXRanges(comp, options)
  19815. debug('xrange', comp)
  19816. comp = replaceStars(comp, options)
  19817. debug('stars', comp)
  19818. return comp
  19819. }
  19820. function isX (id) {
  19821. return !id || id.toLowerCase() === 'x' || id === '*'
  19822. }
  19823. // ~, ~> --> * (any, kinda silly)
  19824. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  19825. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  19826. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  19827. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  19828. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  19829. function replaceTildes (comp, options) {
  19830. return comp.trim().split(/\s+/).map(function (comp) {
  19831. return replaceTilde(comp, options)
  19832. }).join(' ')
  19833. }
  19834. function replaceTilde (comp, options) {
  19835. var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
  19836. return comp.replace(r, function (_, M, m, p, pr) {
  19837. debug('tilde', comp, _, M, m, p, pr)
  19838. var ret
  19839. if (isX(M)) {
  19840. ret = ''
  19841. } else if (isX(m)) {
  19842. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  19843. } else if (isX(p)) {
  19844. // ~1.2 == >=1.2.0 <1.3.0
  19845. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  19846. } else if (pr) {
  19847. debug('replaceTilde pr', pr)
  19848. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  19849. ' <' + M + '.' + (+m + 1) + '.0'
  19850. } else {
  19851. // ~1.2.3 == >=1.2.3 <1.3.0
  19852. ret = '>=' + M + '.' + m + '.' + p +
  19853. ' <' + M + '.' + (+m + 1) + '.0'
  19854. }
  19855. debug('tilde return', ret)
  19856. return ret
  19857. })
  19858. }
  19859. // ^ --> * (any, kinda silly)
  19860. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  19861. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  19862. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  19863. // ^1.2.3 --> >=1.2.3 <2.0.0
  19864. // ^1.2.0 --> >=1.2.0 <2.0.0
  19865. function replaceCarets (comp, options) {
  19866. return comp.trim().split(/\s+/).map(function (comp) {
  19867. return replaceCaret(comp, options)
  19868. }).join(' ')
  19869. }
  19870. function replaceCaret (comp, options) {
  19871. debug('caret', comp, options)
  19872. var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
  19873. return comp.replace(r, function (_, M, m, p, pr) {
  19874. debug('caret', comp, _, M, m, p, pr)
  19875. var ret
  19876. if (isX(M)) {
  19877. ret = ''
  19878. } else if (isX(m)) {
  19879. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  19880. } else if (isX(p)) {
  19881. if (M === '0') {
  19882. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  19883. } else {
  19884. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  19885. }
  19886. } else if (pr) {
  19887. debug('replaceCaret pr', pr)
  19888. if (M === '0') {
  19889. if (m === '0') {
  19890. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  19891. ' <' + M + '.' + m + '.' + (+p + 1)
  19892. } else {
  19893. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  19894. ' <' + M + '.' + (+m + 1) + '.0'
  19895. }
  19896. } else {
  19897. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  19898. ' <' + (+M + 1) + '.0.0'
  19899. }
  19900. } else {
  19901. debug('no pr')
  19902. if (M === '0') {
  19903. if (m === '0') {
  19904. ret = '>=' + M + '.' + m + '.' + p +
  19905. ' <' + M + '.' + m + '.' + (+p + 1)
  19906. } else {
  19907. ret = '>=' + M + '.' + m + '.' + p +
  19908. ' <' + M + '.' + (+m + 1) + '.0'
  19909. }
  19910. } else {
  19911. ret = '>=' + M + '.' + m + '.' + p +
  19912. ' <' + (+M + 1) + '.0.0'
  19913. }
  19914. }
  19915. debug('caret return', ret)
  19916. return ret
  19917. })
  19918. }
  19919. function replaceXRanges (comp, options) {
  19920. debug('replaceXRanges', comp, options)
  19921. return comp.split(/\s+/).map(function (comp) {
  19922. return replaceXRange(comp, options)
  19923. }).join(' ')
  19924. }
  19925. function replaceXRange (comp, options) {
  19926. comp = comp.trim()
  19927. var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
  19928. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  19929. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  19930. var xM = isX(M)
  19931. var xm = xM || isX(m)
  19932. var xp = xm || isX(p)
  19933. var anyX = xp
  19934. if (gtlt === '=' && anyX) {
  19935. gtlt = ''
  19936. }
  19937. // if we're including prereleases in the match, then we need
  19938. // to fix this to -0, the lowest possible prerelease value
  19939. pr = options.includePrerelease ? '-0' : ''
  19940. if (xM) {
  19941. if (gtlt === '>' || gtlt === '<') {
  19942. // nothing is allowed
  19943. ret = '<0.0.0-0'
  19944. } else {
  19945. // nothing is forbidden
  19946. ret = '*'
  19947. }
  19948. } else if (gtlt && anyX) {
  19949. // we know patch is an x, because we have any x at all.
  19950. // replace X with 0
  19951. if (xm) {
  19952. m = 0
  19953. }
  19954. p = 0
  19955. if (gtlt === '>') {
  19956. // >1 => >=2.0.0
  19957. // >1.2 => >=1.3.0
  19958. // >1.2.3 => >= 1.2.4
  19959. gtlt = '>='
  19960. if (xm) {
  19961. M = +M + 1
  19962. m = 0
  19963. p = 0
  19964. } else {
  19965. m = +m + 1
  19966. p = 0
  19967. }
  19968. } else if (gtlt === '<=') {
  19969. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  19970. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  19971. gtlt = '<'
  19972. if (xm) {
  19973. M = +M + 1
  19974. } else {
  19975. m = +m + 1
  19976. }
  19977. }
  19978. ret = gtlt + M + '.' + m + '.' + p + pr
  19979. } else if (xm) {
  19980. ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr
  19981. } else if (xp) {
  19982. ret = '>=' + M + '.' + m + '.0' + pr +
  19983. ' <' + M + '.' + (+m + 1) + '.0' + pr
  19984. }
  19985. debug('xRange return', ret)
  19986. return ret
  19987. })
  19988. }
  19989. // Because * is AND-ed with everything else in the comparator,
  19990. // and '' means "any version", just remove the *s entirely.
  19991. function replaceStars (comp, options) {
  19992. debug('replaceStars', comp, options)
  19993. // Looseness is ignored here. star is always as loose as it gets!
  19994. return comp.trim().replace(re[t.STAR], '')
  19995. }
  19996. // This function is passed to string.replace(re[t.HYPHENRANGE])
  19997. // M, m, patch, prerelease, build
  19998. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  19999. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  20000. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  20001. function hyphenReplace ($0,
  20002. from, fM, fm, fp, fpr, fb,
  20003. to, tM, tm, tp, tpr, tb) {
  20004. if (isX(fM)) {
  20005. from = ''
  20006. } else if (isX(fm)) {
  20007. from = '>=' + fM + '.0.0'
  20008. } else if (isX(fp)) {
  20009. from = '>=' + fM + '.' + fm + '.0'
  20010. } else {
  20011. from = '>=' + from
  20012. }
  20013. if (isX(tM)) {
  20014. to = ''
  20015. } else if (isX(tm)) {
  20016. to = '<' + (+tM + 1) + '.0.0'
  20017. } else if (isX(tp)) {
  20018. to = '<' + tM + '.' + (+tm + 1) + '.0'
  20019. } else if (tpr) {
  20020. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  20021. } else {
  20022. to = '<=' + to
  20023. }
  20024. return (from + ' ' + to).trim()
  20025. }
  20026. // if ANY of the sets match ALL of its comparators, then pass
  20027. Range.prototype.test = function (version) {
  20028. if (!version) {
  20029. return false
  20030. }
  20031. if (typeof version === 'string') {
  20032. try {
  20033. version = new SemVer(version, this.options)
  20034. } catch (er) {
  20035. return false
  20036. }
  20037. }
  20038. for (var i = 0; i < this.set.length; i++) {
  20039. if (testSet(this.set[i], version, this.options)) {
  20040. return true
  20041. }
  20042. }
  20043. return false
  20044. }
  20045. function testSet (set, version, options) {
  20046. for (var i = 0; i < set.length; i++) {
  20047. if (!set[i].test(version)) {
  20048. return false
  20049. }
  20050. }
  20051. if (version.prerelease.length && !options.includePrerelease) {
  20052. // Find the set of versions that are allowed to have prereleases
  20053. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  20054. // That should allow `1.2.3-pr.2` to pass.
  20055. // However, `1.2.4-alpha.notready` should NOT be allowed,
  20056. // even though it's within the range set by the comparators.
  20057. for (i = 0; i < set.length; i++) {
  20058. debug(set[i].semver)
  20059. if (set[i].semver === ANY) {
  20060. continue
  20061. }
  20062. if (set[i].semver.prerelease.length > 0) {
  20063. var allowed = set[i].semver
  20064. if (allowed.major === version.major &&
  20065. allowed.minor === version.minor &&
  20066. allowed.patch === version.patch) {
  20067. return true
  20068. }
  20069. }
  20070. }
  20071. // Version has a -pre, but it's not one of the ones we like.
  20072. return false
  20073. }
  20074. return true
  20075. }
  20076. exports.satisfies = satisfies
  20077. function satisfies (version, range, options) {
  20078. try {
  20079. range = new Range(range, options)
  20080. } catch (er) {
  20081. return false
  20082. }
  20083. return range.test(version)
  20084. }
  20085. exports.maxSatisfying = maxSatisfying
  20086. function maxSatisfying (versions, range, options) {
  20087. var max = null
  20088. var maxSV = null
  20089. try {
  20090. var rangeObj = new Range(range, options)
  20091. } catch (er) {
  20092. return null
  20093. }
  20094. versions.forEach(function (v) {
  20095. if (rangeObj.test(v)) {
  20096. // satisfies(v, range, options)
  20097. if (!max || maxSV.compare(v) === -1) {
  20098. // compare(max, v, true)
  20099. max = v
  20100. maxSV = new SemVer(max, options)
  20101. }
  20102. }
  20103. })
  20104. return max
  20105. }
  20106. exports.minSatisfying = minSatisfying
  20107. function minSatisfying (versions, range, options) {
  20108. var min = null
  20109. var minSV = null
  20110. try {
  20111. var rangeObj = new Range(range, options)
  20112. } catch (er) {
  20113. return null
  20114. }
  20115. versions.forEach(function (v) {
  20116. if (rangeObj.test(v)) {
  20117. // satisfies(v, range, options)
  20118. if (!min || minSV.compare(v) === 1) {
  20119. // compare(min, v, true)
  20120. min = v
  20121. minSV = new SemVer(min, options)
  20122. }
  20123. }
  20124. })
  20125. return min
  20126. }
  20127. exports.minVersion = minVersion
  20128. function minVersion (range, loose) {
  20129. range = new Range(range, loose)
  20130. var minver = new SemVer('0.0.0')
  20131. if (range.test(minver)) {
  20132. return minver
  20133. }
  20134. minver = new SemVer('0.0.0-0')
  20135. if (range.test(minver)) {
  20136. return minver
  20137. }
  20138. minver = null
  20139. for (var i = 0; i < range.set.length; ++i) {
  20140. var comparators = range.set[i]
  20141. comparators.forEach(function (comparator) {
  20142. // Clone to avoid manipulating the comparator's semver object.
  20143. var compver = new SemVer(comparator.semver.version)
  20144. switch (comparator.operator) {
  20145. case '>':
  20146. if (compver.prerelease.length === 0) {
  20147. compver.patch++
  20148. } else {
  20149. compver.prerelease.push(0)
  20150. }
  20151. compver.raw = compver.format()
  20152. /* fallthrough */
  20153. case '':
  20154. case '>=':
  20155. if (!minver || gt(minver, compver)) {
  20156. minver = compver
  20157. }
  20158. break
  20159. case '<':
  20160. case '<=':
  20161. /* Ignore maximum versions */
  20162. break
  20163. /* istanbul ignore next */
  20164. default:
  20165. throw new Error('Unexpected operation: ' + comparator.operator)
  20166. }
  20167. })
  20168. }
  20169. if (minver && range.test(minver)) {
  20170. return minver
  20171. }
  20172. return null
  20173. }
  20174. exports.validRange = validRange
  20175. function validRange (range, options) {
  20176. try {
  20177. // Return '*' instead of '' so that truthiness works.
  20178. // This will throw if it's invalid anyway
  20179. return new Range(range, options).range || '*'
  20180. } catch (er) {
  20181. return null
  20182. }
  20183. }
  20184. // Determine if version is less than all the versions possible in the range
  20185. exports.ltr = ltr
  20186. function ltr (version, range, options) {
  20187. return outside(version, range, '<', options)
  20188. }
  20189. // Determine if version is greater than all the versions possible in the range.
  20190. exports.gtr = gtr
  20191. function gtr (version, range, options) {
  20192. return outside(version, range, '>', options)
  20193. }
  20194. exports.outside = outside
  20195. function outside (version, range, hilo, options) {
  20196. version = new SemVer(version, options)
  20197. range = new Range(range, options)
  20198. var gtfn, ltefn, ltfn, comp, ecomp
  20199. switch (hilo) {
  20200. case '>':
  20201. gtfn = gt
  20202. ltefn = lte
  20203. ltfn = lt
  20204. comp = '>'
  20205. ecomp = '>='
  20206. break
  20207. case '<':
  20208. gtfn = lt
  20209. ltefn = gte
  20210. ltfn = gt
  20211. comp = '<'
  20212. ecomp = '<='
  20213. break
  20214. default:
  20215. throw new TypeError('Must provide a hilo val of "<" or ">"')
  20216. }
  20217. // If it satisifes the range it is not outside
  20218. if (satisfies(version, range, options)) {
  20219. return false
  20220. }
  20221. // From now on, variable terms are as if we're in "gtr" mode.
  20222. // but note that everything is flipped for the "ltr" function.
  20223. for (var i = 0; i < range.set.length; ++i) {
  20224. var comparators = range.set[i]
  20225. var high = null
  20226. var low = null
  20227. comparators.forEach(function (comparator) {
  20228. if (comparator.semver === ANY) {
  20229. comparator = new Comparator('>=0.0.0')
  20230. }
  20231. high = high || comparator
  20232. low = low || comparator
  20233. if (gtfn(comparator.semver, high.semver, options)) {
  20234. high = comparator
  20235. } else if (ltfn(comparator.semver, low.semver, options)) {
  20236. low = comparator
  20237. }
  20238. })
  20239. // If the edge version comparator has a operator then our version
  20240. // isn't outside it
  20241. if (high.operator === comp || high.operator === ecomp) {
  20242. return false
  20243. }
  20244. // If the lowest version comparator has an operator and our version
  20245. // is less than it then it isn't higher than the range
  20246. if ((!low.operator || low.operator === comp) &&
  20247. ltefn(version, low.semver)) {
  20248. return false
  20249. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  20250. return false
  20251. }
  20252. }
  20253. return true
  20254. }
  20255. exports.prerelease = prerelease
  20256. function prerelease (version, options) {
  20257. var parsed = parse(version, options)
  20258. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  20259. }
  20260. exports.intersects = intersects
  20261. function intersects (r1, r2, options) {
  20262. r1 = new Range(r1, options)
  20263. r2 = new Range(r2, options)
  20264. return r1.intersects(r2)
  20265. }
  20266. exports.coerce = coerce
  20267. function coerce (version, options) {
  20268. if (version instanceof SemVer) {
  20269. return version
  20270. }
  20271. if (typeof version === 'number') {
  20272. version = String(version)
  20273. }
  20274. if (typeof version !== 'string') {
  20275. return null
  20276. }
  20277. options = options || {}
  20278. var match = null
  20279. if (!options.rtl) {
  20280. match = version.match(re[t.COERCE])
  20281. } else {
  20282. // Find the right-most coercible string that does not share
  20283. // a terminus with a more left-ward coercible string.
  20284. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
  20285. //
  20286. // Walk through the string checking with a /g regexp
  20287. // Manually set the index so as to pick up overlapping matches.
  20288. // Stop when we get a match that ends at the string end, since no
  20289. // coercible string can be more right-ward without the same terminus.
  20290. var next
  20291. while ((next = re[t.COERCERTL].exec(version)) &&
  20292. (!match || match.index + match[0].length !== version.length)
  20293. ) {
  20294. if (!match ||
  20295. next.index + next[0].length !== match.index + match[0].length) {
  20296. match = next
  20297. }
  20298. re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
  20299. }
  20300. // leave it in a clean state
  20301. re[t.COERCERTL].lastIndex = -1
  20302. }
  20303. if (match === null) {
  20304. return null
  20305. }
  20306. return parse(match[2] +
  20307. '.' + (match[3] || '0') +
  20308. '.' + (match[4] || '0'), options)
  20309. }
  20310. /***/ }),
  20311. /***/ 7710:
  20312. /***/ ((module) => {
  20313. "use strict";
  20314. class NonError extends Error {
  20315. constructor(message) {
  20316. super(NonError._prepareSuperMessage(message));
  20317. Object.defineProperty(this, 'name', {
  20318. value: 'NonError',
  20319. configurable: true,
  20320. writable: true
  20321. });
  20322. if (Error.captureStackTrace) {
  20323. Error.captureStackTrace(this, NonError);
  20324. }
  20325. }
  20326. static _prepareSuperMessage(message) {
  20327. try {
  20328. return JSON.stringify(message);
  20329. } catch (_) {
  20330. return String(message);
  20331. }
  20332. }
  20333. }
  20334. const commonProperties = [
  20335. {property: 'name', enumerable: false},
  20336. {property: 'message', enumerable: false},
  20337. {property: 'stack', enumerable: false},
  20338. {property: 'code', enumerable: true}
  20339. ];
  20340. const destroyCircular = ({from, seen, to_, forceEnumerable}) => {
  20341. const to = to_ || (Array.isArray(from) ? [] : {});
  20342. seen.push(from);
  20343. for (const [key, value] of Object.entries(from)) {
  20344. if (typeof value === 'function') {
  20345. continue;
  20346. }
  20347. if (!value || typeof value !== 'object') {
  20348. to[key] = value;
  20349. continue;
  20350. }
  20351. if (!seen.includes(from[key])) {
  20352. to[key] = destroyCircular({from: from[key], seen: seen.slice(), forceEnumerable});
  20353. continue;
  20354. }
  20355. to[key] = '[Circular]';
  20356. }
  20357. for (const {property, enumerable} of commonProperties) {
  20358. if (typeof from[property] === 'string') {
  20359. Object.defineProperty(to, property, {
  20360. value: from[property],
  20361. enumerable: forceEnumerable ? true : enumerable,
  20362. configurable: true,
  20363. writable: true
  20364. });
  20365. }
  20366. }
  20367. return to;
  20368. };
  20369. const serializeError = value => {
  20370. if (typeof value === 'object' && value !== null) {
  20371. return destroyCircular({from: value, seen: [], forceEnumerable: true});
  20372. }
  20373. // People sometimes throw things besides Error objects…
  20374. if (typeof value === 'function') {
  20375. // `JSON.stringify()` discards functions. We do too, unless a function is thrown directly.
  20376. return `[Function: ${(value.name || 'anonymous')}]`;
  20377. }
  20378. return value;
  20379. };
  20380. const deserializeError = value => {
  20381. if (value instanceof Error) {
  20382. return value;
  20383. }
  20384. if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
  20385. const newError = new Error();
  20386. destroyCircular({from: value, seen: [], to_: newError});
  20387. return newError;
  20388. }
  20389. return new NonError(value);
  20390. };
  20391. module.exports = {
  20392. serializeError,
  20393. deserializeError
  20394. };
  20395. /***/ }),
  20396. /***/ 92063:
  20397. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  20398. "use strict";
  20399. var shebangRegex = __webpack_require__(99395);
  20400. module.exports = function (str) {
  20401. var match = str.match(shebangRegex);
  20402. if (!match) {
  20403. return null;
  20404. }
  20405. var arr = match[0].replace(/#! ?/, '').split(' ');
  20406. var bin = arr[0].split('/').pop();
  20407. var arg = arr[1];
  20408. return (bin === 'env' ?
  20409. arg :
  20410. bin + (arg ? ' ' + arg : '')
  20411. );
  20412. };
  20413. /***/ }),
  20414. /***/ 99395:
  20415. /***/ ((module) => {
  20416. "use strict";
  20417. module.exports = /^#!.*/;
  20418. /***/ }),
  20419. /***/ 27908:
  20420. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  20421. // Note: since nyc uses this module to output coverage, any lines
  20422. // that are in the direct sync flow of nyc's outputCoverage are
  20423. // ignored, since we can never get coverage for them.
  20424. var assert = __webpack_require__(42357)
  20425. var signals = __webpack_require__(85397)
  20426. var isWin = /^win/i.test(process.platform)
  20427. var EE = __webpack_require__(28614)
  20428. /* istanbul ignore if */
  20429. if (typeof EE !== 'function') {
  20430. EE = EE.EventEmitter
  20431. }
  20432. var emitter
  20433. if (process.__signal_exit_emitter__) {
  20434. emitter = process.__signal_exit_emitter__
  20435. } else {
  20436. emitter = process.__signal_exit_emitter__ = new EE()
  20437. emitter.count = 0
  20438. emitter.emitted = {}
  20439. }
  20440. // Because this emitter is a global, we have to check to see if a
  20441. // previous version of this library failed to enable infinite listeners.
  20442. // I know what you're about to say. But literally everything about
  20443. // signal-exit is a compromise with evil. Get used to it.
  20444. if (!emitter.infinite) {
  20445. emitter.setMaxListeners(Infinity)
  20446. emitter.infinite = true
  20447. }
  20448. module.exports = function (cb, opts) {
  20449. assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
  20450. if (loaded === false) {
  20451. load()
  20452. }
  20453. var ev = 'exit'
  20454. if (opts && opts.alwaysLast) {
  20455. ev = 'afterexit'
  20456. }
  20457. var remove = function () {
  20458. emitter.removeListener(ev, cb)
  20459. if (emitter.listeners('exit').length === 0 &&
  20460. emitter.listeners('afterexit').length === 0) {
  20461. unload()
  20462. }
  20463. }
  20464. emitter.on(ev, cb)
  20465. return remove
  20466. }
  20467. module.exports.unload = unload
  20468. function unload () {
  20469. if (!loaded) {
  20470. return
  20471. }
  20472. loaded = false
  20473. signals.forEach(function (sig) {
  20474. try {
  20475. process.removeListener(sig, sigListeners[sig])
  20476. } catch (er) {}
  20477. })
  20478. process.emit = originalProcessEmit
  20479. process.reallyExit = originalProcessReallyExit
  20480. emitter.count -= 1
  20481. }
  20482. function emit (event, code, signal) {
  20483. if (emitter.emitted[event]) {
  20484. return
  20485. }
  20486. emitter.emitted[event] = true
  20487. emitter.emit(event, code, signal)
  20488. }
  20489. // { <signal>: <listener fn>, ... }
  20490. var sigListeners = {}
  20491. signals.forEach(function (sig) {
  20492. sigListeners[sig] = function listener () {
  20493. // If there are no other listeners, an exit is coming!
  20494. // Simplest way: remove us and then re-send the signal.
  20495. // We know that this will kill the process, so we can
  20496. // safely emit now.
  20497. var listeners = process.listeners(sig)
  20498. if (listeners.length === emitter.count) {
  20499. unload()
  20500. emit('exit', null, sig)
  20501. /* istanbul ignore next */
  20502. emit('afterexit', null, sig)
  20503. /* istanbul ignore next */
  20504. if (isWin && sig === 'SIGHUP') {
  20505. // "SIGHUP" throws an `ENOSYS` error on Windows,
  20506. // so use a supported signal instead
  20507. sig = 'SIGINT'
  20508. }
  20509. process.kill(process.pid, sig)
  20510. }
  20511. }
  20512. })
  20513. module.exports.signals = function () {
  20514. return signals
  20515. }
  20516. module.exports.load = load
  20517. var loaded = false
  20518. function load () {
  20519. if (loaded) {
  20520. return
  20521. }
  20522. loaded = true
  20523. // This is the number of onSignalExit's that are in play.
  20524. // It's important so that we can count the correct number of
  20525. // listeners on signals, and don't wait for the other one to
  20526. // handle it instead of us.
  20527. emitter.count += 1
  20528. signals = signals.filter(function (sig) {
  20529. try {
  20530. process.on(sig, sigListeners[sig])
  20531. return true
  20532. } catch (er) {
  20533. return false
  20534. }
  20535. })
  20536. process.emit = processEmit
  20537. process.reallyExit = processReallyExit
  20538. }
  20539. var originalProcessReallyExit = process.reallyExit
  20540. function processReallyExit (code) {
  20541. process.exitCode = code || 0
  20542. emit('exit', process.exitCode, null)
  20543. /* istanbul ignore next */
  20544. emit('afterexit', process.exitCode, null)
  20545. /* istanbul ignore next */
  20546. originalProcessReallyExit.call(process, process.exitCode)
  20547. }
  20548. var originalProcessEmit = process.emit
  20549. function processEmit (ev, arg) {
  20550. if (ev === 'exit') {
  20551. if (arg !== undefined) {
  20552. process.exitCode = arg
  20553. }
  20554. var ret = originalProcessEmit.apply(this, arguments)
  20555. emit('exit', process.exitCode, null)
  20556. /* istanbul ignore next */
  20557. emit('afterexit', process.exitCode, null)
  20558. return ret
  20559. } else {
  20560. return originalProcessEmit.apply(this, arguments)
  20561. }
  20562. }
  20563. /***/ }),
  20564. /***/ 85397:
  20565. /***/ ((module) => {
  20566. // This is not the set of all possible signals.
  20567. //
  20568. // It IS, however, the set of all signals that trigger
  20569. // an exit on either Linux or BSD systems. Linux is a
  20570. // superset of the signal names supported on BSD, and
  20571. // the unknown signals just fail to register, so we can
  20572. // catch that easily enough.
  20573. //
  20574. // Don't bother with SIGKILL. It's uncatchable, which
  20575. // means that we can't fire any callbacks anyway.
  20576. //
  20577. // If a user does happen to register a handler on a non-
  20578. // fatal signal like SIGWINCH or something, and then
  20579. // exit, it'll end up firing `process.emit('exit')`, so
  20580. // the handler will be fired anyway.
  20581. //
  20582. // SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
  20583. // artificially, inherently leave the process in a
  20584. // state from which it is not safe to try and enter JS
  20585. // listeners.
  20586. module.exports = [
  20587. 'SIGABRT',
  20588. 'SIGALRM',
  20589. 'SIGHUP',
  20590. 'SIGINT',
  20591. 'SIGTERM'
  20592. ]
  20593. if (process.platform !== 'win32') {
  20594. module.exports.push(
  20595. 'SIGVTALRM',
  20596. 'SIGXCPU',
  20597. 'SIGXFSZ',
  20598. 'SIGUSR2',
  20599. 'SIGTRAP',
  20600. 'SIGSYS',
  20601. 'SIGQUIT',
  20602. 'SIGIOT'
  20603. // should detect profiler and enable/disable accordingly.
  20604. // see #21
  20605. // 'SIGPROF'
  20606. )
  20607. }
  20608. if (process.platform === 'linux') {
  20609. module.exports.push(
  20610. 'SIGIO',
  20611. 'SIGPOLL',
  20612. 'SIGPWR',
  20613. 'SIGSTKFLT',
  20614. 'SIGUNUSED'
  20615. )
  20616. }
  20617. /***/ }),
  20618. /***/ 8658:
  20619. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  20620. "use strict";
  20621. Object.defineProperty(exports, "__esModule", ({ value: true }));
  20622. exports.loadConfig = void 0;
  20623. const debugFactory = __webpack_require__(15158);
  20624. const path = __webpack_require__(85622);
  20625. const _merge = __webpack_require__(72378);
  20626. // Use vendored and patched nconf without yargs and with our custom TRUE/FALSE logic in env.ts file
  20627. const nconf_1 = __webpack_require__(3821);
  20628. const debug = debugFactory('snyk:config');
  20629. function loadConfig(dir, options) {
  20630. if (!dir) {
  20631. dir = '';
  20632. }
  20633. options = options || {};
  20634. const secretConfig = options.secretConfig ||
  20635. process.env['CONFIG_SECRET_FILE'] ||
  20636. path.resolve(dir, 'config.secret.json');
  20637. if (!path.isAbsolute(dir)) {
  20638. throw new Error('config requires absolute path to read from');
  20639. }
  20640. const serviceEnv = process.env['SERVICE_ENV'];
  20641. const localConfig = serviceEnv ? serviceEnv : 'local';
  20642. const localConfigPath = path.resolve(dir, `config.${localConfig}.json`);
  20643. debug('dir: %s, local: %s, secret: %s', dir, localConfigPath, secretConfig);
  20644. const snykMatch = /^SNYK_.*$/;
  20645. nconf_1.default.env({
  20646. separator: '__',
  20647. match: snykMatch,
  20648. whitelist: ['NODE_ENV', 'PORT'],
  20649. });
  20650. // This argv parser is using minimist on the background, instead of yargs as nconf by default
  20651. // Do not pass `options` to this parser
  20652. nconf_1.default.argv();
  20653. nconf_1.default.file('secret', { file: path.resolve(secretConfig) });
  20654. nconf_1.default.file('local', { file: localConfigPath });
  20655. nconf_1.default.file('default', { file: path.resolve(dir, 'config.default.json') });
  20656. const config = nconf_1.default.get();
  20657. // strip prefix from env vars in config
  20658. Object.keys(config).forEach(function (key) {
  20659. if (key.match(snykMatch)) {
  20660. const trimmedKey = key.replace(/^SNYK_/, '');
  20661. if (typeof config[trimmedKey] === 'object' &&
  20662. typeof config[key] === 'object') {
  20663. config[trimmedKey] = _merge(config[trimmedKey], config[key]);
  20664. }
  20665. else {
  20666. config[trimmedKey] = config[key];
  20667. }
  20668. delete config[key];
  20669. }
  20670. });
  20671. substituteEnvVarValues(config);
  20672. debug('loading from %s', dir, JSON.stringify(config, null, 2));
  20673. return config;
  20674. }
  20675. exports.loadConfig = loadConfig;
  20676. // recursively replace ${VAL} in config values with process.env.VAL
  20677. function substituteEnvVarValues(config) {
  20678. Object.keys(config).forEach(function (key) {
  20679. // recurse through nested objects
  20680. if (typeof config[key] === 'object') {
  20681. return substituteEnvVarValues(config[key]);
  20682. }
  20683. // replace /\${.*?}/g in strings with env var if such exists
  20684. if (typeof config[key] === 'string') {
  20685. config[key] = config[key].replace(/(\${.*?})/g, function (_, match) {
  20686. const val = match.slice(2, -1); // ditch the wrappers
  20687. // explode if env var is missing
  20688. if (process.env[val] === undefined) {
  20689. throw new Error('Missing env var to substitute ' +
  20690. val +
  20691. " in '" +
  20692. key +
  20693. ': "' +
  20694. config[key] +
  20695. '"\'');
  20696. }
  20697. return process.env[val];
  20698. });
  20699. }
  20700. });
  20701. }
  20702. //# sourceMappingURL=index.js.map
  20703. /***/ }),
  20704. /***/ 3821:
  20705. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  20706. "use strict";
  20707. /*
  20708. * nconf.js: Top-level include for the nconf module
  20709. *
  20710. * (C) 2011, Charlie Robbins and the Contributors.
  20711. *
  20712. */
  20713. Object.defineProperty(exports, "__esModule", ({ value: true }));
  20714. const common = __webpack_require__(9649);
  20715. const provider_1 = __webpack_require__(32919);
  20716. const formats = __webpack_require__(80210);
  20717. const argv_1 = __webpack_require__(75636);
  20718. const env_1 = __webpack_require__(18702);
  20719. const file_1 = __webpack_require__(56159);
  20720. const literal_1 = __webpack_require__(38907);
  20721. const memory_1 = __webpack_require__(35238);
  20722. //
  20723. // `nconf` is by default an instance of `nconf.Provider`.
  20724. //
  20725. const nconf = new provider_1.Provider();
  20726. nconf.Argv = argv_1.Argv;
  20727. nconf.Env = env_1.Env;
  20728. nconf.File = file_1.File;
  20729. nconf.Literal = literal_1.Literal;
  20730. nconf.Memory = memory_1.Memory;
  20731. //
  20732. // Expose the various components included with nconf
  20733. //
  20734. nconf.key = common.key;
  20735. nconf.path = common.path;
  20736. nconf.loadFiles = common.loadFiles;
  20737. nconf.loadFilesSync = common.loadFilesSync;
  20738. nconf.formats = formats;
  20739. nconf.Provider = provider_1.Provider;
  20740. exports.default = nconf;
  20741. //# sourceMappingURL=nconf.js.map
  20742. /***/ }),
  20743. /***/ 9649:
  20744. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  20745. "use strict";
  20746. /*
  20747. * utils.js: Utility functions for the nconf module.
  20748. *
  20749. * (C) 2011, Charlie Robbins and the Contributors.
  20750. *
  20751. */
  20752. Object.defineProperty(exports, "__esModule", ({ value: true }));
  20753. exports.transform = exports.parseValues = exports.capitalize = exports.merge = exports.loadFilesSync = exports.loadFiles = exports.keyed = exports.key = exports.path = void 0;
  20754. const fs = __webpack_require__(35747);
  20755. const async = __webpack_require__(1641);
  20756. const formats = __webpack_require__(80210);
  20757. const memory_1 = __webpack_require__(35238);
  20758. //
  20759. // ### function path (key)
  20760. // #### @key {string} The ':' delimited key to split
  20761. // Returns a fully-qualified path to a nested nconf key.
  20762. // If given null or undefined it should return an empty path.
  20763. // '' should still be respected as a path.
  20764. //
  20765. function path(key, separator) {
  20766. separator = separator || ':';
  20767. return key == null ? [] : key.split(separator);
  20768. }
  20769. exports.path = path;
  20770. //
  20771. // ### function key (arguments)
  20772. // Returns a `:` joined string from the `arguments`.
  20773. //
  20774. function key(...args) {
  20775. return Array.prototype.slice.call(args).join(':');
  20776. }
  20777. exports.key = key;
  20778. //
  20779. // ### function key (arguments)
  20780. // Returns a joined string from the `arguments`,
  20781. // first argument is the join delimiter.
  20782. //
  20783. function keyed(...args) {
  20784. return Array.prototype.slice.call(args, 1).join(args[0]);
  20785. }
  20786. exports.keyed = keyed;
  20787. //
  20788. // ### function loadFiles (files, callback)
  20789. // #### @files {Object|Array} List of files (or settings object) to load.
  20790. // #### @callback {function} Continuation to respond to when complete.
  20791. // Loads all the data in the specified `files`.
  20792. //
  20793. function loadFiles(files, callback) {
  20794. if (!files) {
  20795. return callback(null, {});
  20796. }
  20797. const options = Array.isArray(files) ? { files: files } : files;
  20798. //
  20799. // Set the default JSON format if not already
  20800. // specified
  20801. //
  20802. options.format = options.format || formats.json;
  20803. function parseFile(file, next) {
  20804. fs.readFile(file, function (err, data) {
  20805. return !err
  20806. ? next(null, options.format.parse(data.toString()))
  20807. : next(err);
  20808. });
  20809. }
  20810. async.map(options.files, parseFile, function (err, objs) {
  20811. return err ? callback(err) : callback(null, merge(objs));
  20812. });
  20813. }
  20814. exports.loadFiles = loadFiles;
  20815. //
  20816. // ### function loadFilesSync (files)
  20817. // #### @files {Object|Array} List of files (or settings object) to load.
  20818. // Loads all the data in the specified `files` synchronously.
  20819. //
  20820. function loadFilesSync(files) {
  20821. if (!files) {
  20822. return;
  20823. }
  20824. //
  20825. // Set the default JSON format if not already
  20826. // specified
  20827. //
  20828. const options = Array.isArray(files) ? { files: files } : files;
  20829. options.format = options.format || formats.json;
  20830. return merge(options.files.map(function (file) {
  20831. return options.format.parse(fs.readFileSync(file, 'utf8'));
  20832. }));
  20833. }
  20834. exports.loadFilesSync = loadFilesSync;
  20835. //
  20836. // ### function merge (objs)
  20837. // #### @objs {Array} Array of object literals to merge
  20838. // Merges the specified `objs` using a temporary instance
  20839. // of `stores.Memory`.
  20840. //
  20841. function merge(objs) {
  20842. const store = new memory_1.Memory();
  20843. objs.forEach(function (obj) {
  20844. Object.keys(obj).forEach(function (key) {
  20845. store.merge(key, obj[key]);
  20846. });
  20847. });
  20848. return store.store;
  20849. }
  20850. exports.merge = merge;
  20851. //
  20852. // ### function capitalize (str)
  20853. // #### @str {string} String to capitalize
  20854. // Capitalizes the specified `str`.
  20855. //
  20856. function capitalize(str) {
  20857. return str && str[0].toUpperCase() + str.slice(1);
  20858. }
  20859. exports.capitalize = capitalize;
  20860. //
  20861. // ### function parseValues (any)
  20862. // #### @any {string} String to parse as native data-type or return as is
  20863. // try to parse `any` as a native data-type
  20864. //
  20865. function parseValues(value) {
  20866. let val = value;
  20867. try {
  20868. val = JSON.parse(value);
  20869. }
  20870. catch (ignore) {
  20871. // Check for any other well-known strings that should be "parsed"
  20872. if (value === 'undefined') {
  20873. val = void 0;
  20874. }
  20875. }
  20876. return val;
  20877. }
  20878. exports.parseValues = parseValues;
  20879. //
  20880. // ### function transform(map, fn)
  20881. // #### @map {object} Object of key/value pairs to apply `fn` to
  20882. // #### @fn {function} Transformation function that will be applied to every key/value pair
  20883. // transform a set of key/value pairs and return the transformed result
  20884. function transform(map, fn) {
  20885. const pairs = Object.keys(map).map(function (key) {
  20886. const obj = { key: key, value: map[key] };
  20887. const result = fn.call(null, obj);
  20888. if (!result) {
  20889. return null;
  20890. }
  20891. else if (result.key) {
  20892. return result;
  20893. }
  20894. const error = new Error('Transform function passed to store returned an invalid format: ' +
  20895. JSON.stringify(result));
  20896. error.name = 'RuntimeError';
  20897. throw error;
  20898. });
  20899. return pairs
  20900. .filter(function (pair) {
  20901. return pair !== null;
  20902. })
  20903. .reduce(function (accumulator, pair) {
  20904. accumulator[pair.key] = pair.value;
  20905. return accumulator;
  20906. }, {});
  20907. }
  20908. exports.transform = transform;
  20909. //# sourceMappingURL=common.js.map
  20910. /***/ }),
  20911. /***/ 80210:
  20912. /***/ ((__unused_webpack_module, exports) => {
  20913. "use strict";
  20914. /*
  20915. * formats.js: Default formats supported by nconf
  20916. *
  20917. * (C) 2011, Charlie Robbins and the Contributors.
  20918. *
  20919. */
  20920. Object.defineProperty(exports, "__esModule", ({ value: true }));
  20921. exports.json = void 0;
  20922. //
  20923. // ### @json
  20924. // Standard JSON format which pretty prints `.stringify()`.
  20925. //
  20926. exports.json = {
  20927. stringify: function (obj, replacer, spacing) {
  20928. return JSON.stringify(obj, replacer || null, spacing || 2);
  20929. },
  20930. parse: JSON.parse,
  20931. };
  20932. //# sourceMappingURL=formats.js.map
  20933. /***/ }),
  20934. /***/ 32919:
  20935. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  20936. "use strict";
  20937. /*
  20938. * provider.js: Abstraction providing an interface into pluggable configuration storage.
  20939. *
  20940. * (C) 2011, Charlie Robbins and the Contributors.
  20941. *
  20942. */
  20943. Object.defineProperty(exports, "__esModule", ({ value: true }));
  20944. exports.Provider = void 0;
  20945. const async = __webpack_require__(1641);
  20946. const common = __webpack_require__(9649);
  20947. //
  20948. // ### function Provider (options)
  20949. // #### @options {Object} Options for this instance.
  20950. // Constructor function for the Provider object responsible
  20951. // for exposing the pluggable storage features of `nconf`.
  20952. //
  20953. exports.Provider = function (options = {}) {
  20954. //
  20955. // Setup default options for working with `stores`,
  20956. // `overrides`, `process.env` and `process.argv`.
  20957. //
  20958. options = options || {};
  20959. this.stores = {};
  20960. this.sources = [];
  20961. this.init(options);
  20962. };
  20963. //
  20964. // Define wrapper functions for using basic stores
  20965. // in this instance
  20966. //
  20967. ['argv', 'env'].forEach(function (type) {
  20968. exports.Provider.prototype[type] = function () {
  20969. const args = [type].concat(Array.prototype.slice.call(arguments));
  20970. return this.add.apply(this, args);
  20971. };
  20972. });
  20973. //
  20974. // ### function file (key, options)
  20975. // #### @key {string|Object} Fully qualified options, name of file store, or path.
  20976. // #### @path {string|Object} **Optional** Full qualified options, or path.
  20977. // Adds a new `File` store to this instance. Accepts the following options
  20978. //
  20979. // nconf.file({ file: '.jitsuconf', dir: process.env.HOME, search: true });
  20980. // nconf.file('path/to/config/file');
  20981. // nconf.file('userconfig', 'path/to/config/file');
  20982. // nconf.file('userconfig', { file: '.jitsuconf', search: true });
  20983. //
  20984. exports.Provider.prototype.file = function (key, options) {
  20985. if (arguments.length == 1) {
  20986. options = typeof key === 'string' ? { file: key } : key;
  20987. key = 'file';
  20988. }
  20989. else {
  20990. options = typeof options === 'string' ? { file: options } : options;
  20991. }
  20992. options.type = 'file';
  20993. return this.add(key, options);
  20994. };
  20995. //
  20996. // Define wrapper functions for using
  20997. // overrides and defaults
  20998. //
  20999. ['defaults', 'overrides'].forEach(function (type) {
  21000. exports.Provider.prototype[type] = function (options) {
  21001. options = options || {};
  21002. if (!options.type) {
  21003. options.type = 'literal';
  21004. }
  21005. return this.add(type, options);
  21006. };
  21007. });
  21008. //
  21009. // ### function use (name, options)
  21010. // #### @type {string} Type of the nconf store to use.
  21011. // #### @options {Object} Options for the store instance.
  21012. // Adds (or replaces) a new store with the specified `name`
  21013. // and `options`. If `options.type` is not set, then `name`
  21014. // will be used instead:
  21015. //
  21016. // provider.use('file');
  21017. // provider.use('file', { type: 'file', filename: '/path/to/userconf' })
  21018. //
  21019. exports.Provider.prototype.use = function (name, options) {
  21020. options = options || {};
  21021. function sameOptions(store) {
  21022. return Object.keys(options).every(function (key) {
  21023. return options[key] === store[key];
  21024. });
  21025. }
  21026. const store = this.stores[name], update = store && !sameOptions(store);
  21027. if (!store || update) {
  21028. if (update) {
  21029. this.remove(name);
  21030. }
  21031. this.add(name, options);
  21032. }
  21033. return this;
  21034. };
  21035. //
  21036. // ### function add (name, options)
  21037. // #### @name {string} Name of the store to add to this instance
  21038. // #### @options {Object} Options for the store to create
  21039. // Adds a new store with the specified `name` and `options`. If `options.type`
  21040. // is not set, then `name` will be used instead:
  21041. //
  21042. // provider.add('memory');
  21043. // provider.add('userconf', { type: 'file', filename: '/path/to/userconf' })
  21044. //
  21045. exports.Provider.prototype.add = function (name, options, usage) {
  21046. options = options || {};
  21047. const type = options.type || name;
  21048. if (!__webpack_require__(3821).default[common.capitalize(type)]) {
  21049. throw new Error('Cannot add store with unknown type: ' + type);
  21050. }
  21051. this.stores[name] = this.create(type, options, usage);
  21052. if (this.stores[name].loadSync) {
  21053. this.stores[name].loadSync();
  21054. }
  21055. return this;
  21056. };
  21057. //
  21058. // ### function remove (name)
  21059. // #### @name {string} Name of the store to remove from this instance
  21060. // Removes a store with the specified `name` from this instance. Users
  21061. // are allowed to pass in a type argument (e.g. `memory`) as name if
  21062. // this was used in the call to `.add()`.
  21063. //
  21064. exports.Provider.prototype.remove = function (name) {
  21065. delete this.stores[name];
  21066. return this;
  21067. };
  21068. //
  21069. // ### function create (type, options)
  21070. // #### @type {string} Type of the nconf store to use.
  21071. // #### @options {Object} Options for the store instance.
  21072. // Creates a store of the specified `type` using the
  21073. // specified `options`.
  21074. //
  21075. exports.Provider.prototype.create = function (type, options, usage) {
  21076. return new (__webpack_require__(3821).default[common.capitalize(type.toLowerCase())])(options, usage);
  21077. };
  21078. //
  21079. // ### function init (options)
  21080. // #### @options {Object} Options to initialize this instance with.
  21081. // Initializes this instance with additional `stores` or `sources` in the
  21082. // `options` supplied.
  21083. //
  21084. exports.Provider.prototype.init = function (options) {
  21085. const self = this;
  21086. //
  21087. // Add any stores passed in through the options
  21088. // to this instance.
  21089. //
  21090. if (options.type) {
  21091. this.add(options.type, options);
  21092. }
  21093. else if (options.store) {
  21094. this.add(options.store.name || options.store.type, options.store);
  21095. }
  21096. else if (options.stores) {
  21097. Object.keys(options.stores).forEach(function (name) {
  21098. const store = options.stores[name];
  21099. self.add(store.name || name || store.type, store);
  21100. });
  21101. }
  21102. //
  21103. // Add any read-only sources to this instance
  21104. //
  21105. if (options.source) {
  21106. this.sources.push(this.create(options.source.type || options.source.name, options.source));
  21107. }
  21108. else if (options.sources) {
  21109. Object.keys(options.sources).forEach(function (name) {
  21110. const source = options.sources[name];
  21111. self.sources.push(self.create(source.type || source.name || name, source));
  21112. });
  21113. }
  21114. };
  21115. //
  21116. // ### function get (key, callback)
  21117. // #### @key {string} Key to retrieve for this instance.
  21118. // #### @callback {function} **Optional** Continuation to respond to when complete.
  21119. // Retrieves the value for the specified key (if any).
  21120. //
  21121. exports.Provider.prototype.get = function (key, callback) {
  21122. if (typeof key === 'function') {
  21123. // Allow a * key call to be made
  21124. callback = key;
  21125. key = null;
  21126. }
  21127. //
  21128. // If there is no callback we can short-circuit into the default
  21129. // logic for traversing stores.
  21130. //
  21131. if (!callback) {
  21132. return this._execute('get', 1, key, callback);
  21133. }
  21134. //
  21135. // Otherwise the asynchronous, hierarchical `get` is
  21136. // slightly more complicated because we do not need to traverse
  21137. // the entire set of stores, but up until there is a defined value.
  21138. //
  21139. let current = 0, names = Object.keys(this.stores), self = this, response, mergeObjs = [];
  21140. async.whilst(function () {
  21141. return typeof response === 'undefined' && current < names.length;
  21142. }, function (next) {
  21143. const store = self.stores[names[current]];
  21144. current++;
  21145. if (store.get.length >= 2) {
  21146. return store.get(key, function (err, value) {
  21147. if (err) {
  21148. return next(err);
  21149. }
  21150. response = value;
  21151. // Merge objects if necessary
  21152. if (response &&
  21153. typeof response === 'object' &&
  21154. !Array.isArray(response)) {
  21155. mergeObjs.push(response);
  21156. response = undefined;
  21157. }
  21158. next();
  21159. });
  21160. }
  21161. response = store.get(key);
  21162. // Merge objects if necessary
  21163. if (response &&
  21164. typeof response === 'object' &&
  21165. !Array.isArray(response)) {
  21166. mergeObjs.push(response);
  21167. response = undefined;
  21168. }
  21169. next();
  21170. }, function (err) {
  21171. if (!err && mergeObjs.length) {
  21172. response = common.merge(mergeObjs.reverse());
  21173. }
  21174. return err ? callback(err) : callback(null, response);
  21175. });
  21176. };
  21177. //
  21178. // ### function any (keys, callback)
  21179. // #### @keys {array|string...} Array of keys to query, or a variable list of strings
  21180. // #### @callback {function} **Optional** Continuation to respond to when complete.
  21181. // Retrieves the first truthy value (if any) for the specified list of keys.
  21182. //
  21183. exports.Provider.prototype.any = function (keys, callback) {
  21184. if (!Array.isArray(keys)) {
  21185. keys = Array.prototype.slice.call(arguments);
  21186. if (keys.length > 0 && typeof keys[keys.length - 1] === 'function') {
  21187. callback = keys.pop();
  21188. }
  21189. else {
  21190. callback = null;
  21191. }
  21192. }
  21193. //
  21194. // If there is no callback, use the short-circuited "get"
  21195. // on each key in turn.
  21196. //
  21197. if (!callback) {
  21198. let val;
  21199. for (let i = 0; i < keys.length; ++i) {
  21200. val = this._execute('get', 1, keys[i], callback);
  21201. if (val) {
  21202. return val;
  21203. }
  21204. }
  21205. return null;
  21206. }
  21207. let keyIndex = 0, result, self = this;
  21208. async.whilst(function () {
  21209. return !result && keyIndex < keys.length;
  21210. }, function (next) {
  21211. const key = keys[keyIndex];
  21212. keyIndex++;
  21213. self.get(key, function (err, v) {
  21214. if (err) {
  21215. next(err);
  21216. }
  21217. else {
  21218. result = v;
  21219. next();
  21220. }
  21221. });
  21222. }, function (err) {
  21223. return err ? callback(err) : callback(null, result);
  21224. });
  21225. };
  21226. //
  21227. // ### function set (key, value, callback)
  21228. // #### @key {string} Key to set in this instance
  21229. // #### @value {literal|Object} Value for the specified key
  21230. // #### @callback {function} **Optional** Continuation to respond to when complete.
  21231. // Sets the `value` for the specified `key` in this instance.
  21232. //
  21233. exports.Provider.prototype.set = function (key, value, callback) {
  21234. return this._execute('set', 2, key, value, callback);
  21235. };
  21236. //
  21237. // ### function required (keys)
  21238. // #### @keys {array} List of keys
  21239. // Throws an error if any of `keys` has no value, otherwise returns `true`
  21240. exports.Provider.prototype.required = function (keys) {
  21241. if (!Array.isArray(keys)) {
  21242. throw new Error('Incorrect parameter, array expected');
  21243. }
  21244. const missing = [];
  21245. keys.forEach(function (key) {
  21246. if (typeof this.get(key) === 'undefined') {
  21247. missing.push(key);
  21248. }
  21249. }, this);
  21250. if (missing.length) {
  21251. throw new Error('Missing required keys: ' + missing.join(', '));
  21252. }
  21253. else {
  21254. return this;
  21255. }
  21256. };
  21257. //
  21258. // ### function reset (callback)
  21259. // #### @callback {function} **Optional** Continuation to respond to when complete.
  21260. // Clears all keys associated with this instance.
  21261. //
  21262. exports.Provider.prototype.reset = function (callback) {
  21263. return this._execute('reset', 0, callback);
  21264. };
  21265. //
  21266. // ### function clear (key, callback)
  21267. // #### @key {string} Key to remove from this instance
  21268. // #### @callback {function} **Optional** Continuation to respond to when complete.
  21269. // Removes the value for the specified `key` from this instance.
  21270. //
  21271. exports.Provider.prototype.clear = function (key, callback) {
  21272. return this._execute('clear', 1, key, callback);
  21273. };
  21274. //
  21275. // ### function merge ([key,] value [, callback])
  21276. // #### @key {string} Key to merge the value into
  21277. // #### @value {literal|Object} Value to merge into the key
  21278. // #### @callback {function} **Optional** Continuation to respond to when complete.
  21279. // Merges the properties in `value` into the existing object value at `key`.
  21280. //
  21281. // 1. If the existing value `key` is not an Object, it will be completely overwritten.
  21282. // 2. If `key` is not supplied, then the `value` will be merged into the root.
  21283. //
  21284. exports.Provider.prototype.merge = function () {
  21285. const self = this, args = Array.prototype.slice.call(arguments), callback = typeof args[args.length - 1] === 'function' && args.pop(), value = args.pop(), key = args.pop();
  21286. function mergeProperty(prop, next) {
  21287. return self._execute('merge', 2, prop, value[prop], next);
  21288. }
  21289. if (!key) {
  21290. if (Array.isArray(value) || typeof value !== 'object') {
  21291. return onError(new Error('Cannot merge non-Object into top-level.'), callback);
  21292. }
  21293. return async.forEach(Object.keys(value), mergeProperty, callback || function () { });
  21294. }
  21295. return this._execute('merge', 2, key, value, callback);
  21296. };
  21297. //
  21298. // ### function load (callback)
  21299. // #### @callback {function} Continuation to respond to when complete.
  21300. // Responds with an Object representing all keys associated in this instance.
  21301. //
  21302. exports.Provider.prototype.load = function (callback) {
  21303. const self = this;
  21304. function getStores() {
  21305. const stores = Object.keys(self.stores);
  21306. stores.reverse();
  21307. return stores.map(function (name) {
  21308. return self.stores[name];
  21309. });
  21310. }
  21311. function loadStoreSync(store) {
  21312. if (!store.loadSync) {
  21313. throw new Error('nconf store ' + store.type + ' has no loadSync() method');
  21314. }
  21315. return store.loadSync();
  21316. }
  21317. function loadStore(store, next) {
  21318. if (!store.load && !store.loadSync) {
  21319. return next(new Error('nconf store ' + store.type + ' has no load() method'));
  21320. }
  21321. return store.loadSync ? next(null, store.loadSync()) : store.load(next);
  21322. }
  21323. function loadBatch(targets, done) {
  21324. if (!done) {
  21325. return common.merge(targets.map(loadStoreSync));
  21326. }
  21327. async.map(targets, loadStore, function (err, objs) {
  21328. return err ? done(err) : done(null, common.merge(objs));
  21329. });
  21330. }
  21331. function mergeSources(data) {
  21332. //
  21333. // If `data` was returned then merge it into
  21334. // the system store.
  21335. //
  21336. if (data && typeof data === 'object') {
  21337. self.use('sources', {
  21338. type: 'literal',
  21339. store: data,
  21340. });
  21341. }
  21342. }
  21343. function loadSources() {
  21344. const sourceHierarchy = self.sources.splice(0);
  21345. sourceHierarchy.reverse();
  21346. //
  21347. // If we don't have a callback and the current
  21348. // store is capable of loading synchronously
  21349. // then do so.
  21350. //
  21351. if (!callback) {
  21352. mergeSources(loadBatch(sourceHierarchy));
  21353. return loadBatch(getStores());
  21354. }
  21355. loadBatch(sourceHierarchy, function (err, data) {
  21356. if (err) {
  21357. return callback(err);
  21358. }
  21359. mergeSources(data);
  21360. return loadBatch(getStores(), callback);
  21361. });
  21362. }
  21363. return self.sources.length ? loadSources() : loadBatch(getStores(), callback);
  21364. };
  21365. //
  21366. // ### function save (callback)
  21367. // #### @callback {function} **optional** Continuation to respond to when
  21368. // complete.
  21369. // Instructs each provider to save. If a callback is provided, we will attempt
  21370. // asynchronous saves on the providers, falling back to synchronous saves if
  21371. // this isn't possible. If a provider does not know how to save, it will be
  21372. // ignored. Returns an object consisting of all of the data which was
  21373. // actually saved.
  21374. //
  21375. exports.Provider.prototype.save = function (value, callback) {
  21376. if (!callback && typeof value === 'function') {
  21377. callback = value;
  21378. value = null;
  21379. }
  21380. const self = this, names = Object.keys(this.stores);
  21381. function saveStoreSync(memo, name) {
  21382. const store = self.stores[name];
  21383. //
  21384. // If the `store` doesn't have a `saveSync` method,
  21385. // just ignore it and continue.
  21386. //
  21387. if (store.saveSync) {
  21388. const ret = store.saveSync();
  21389. if (typeof ret == 'object' && ret !== null) {
  21390. memo.push(ret);
  21391. }
  21392. }
  21393. return memo;
  21394. }
  21395. function saveStore(memo, name, next) {
  21396. const store = self.stores[name];
  21397. //
  21398. // If the `store` doesn't have a `save` or saveSync`
  21399. // method(s), just ignore it and continue.
  21400. //
  21401. if (store.save) {
  21402. return store.save(value, function (err, data) {
  21403. if (err) {
  21404. return next(err);
  21405. }
  21406. if (typeof data == 'object' && data !== null) {
  21407. memo.push(data);
  21408. }
  21409. next(null, memo);
  21410. });
  21411. }
  21412. else if (store.saveSync) {
  21413. memo.push(store.saveSync());
  21414. }
  21415. next(null, memo);
  21416. }
  21417. //
  21418. // If we don't have a callback and the current
  21419. // store is capable of saving synchronously
  21420. // then do so.
  21421. //
  21422. if (!callback) {
  21423. return common.merge(names.reduce(saveStoreSync, []));
  21424. }
  21425. async.reduce(names, [], saveStore, function (err, objs) {
  21426. return err ? callback(err) : callback(null, common.merge(objs));
  21427. });
  21428. };
  21429. //
  21430. // ### @private function _execute (action, syncLength, [arguments])
  21431. // #### @action {string} Action to execute on `this.store`.
  21432. // #### @syncLength {number} Function length of the sync version.
  21433. // #### @arguments {Array} Arguments array to apply to the action
  21434. // Executes the specified `action` on all stores for this instance, ensuring a callback supplied
  21435. // to a synchronous store function is still invoked.
  21436. //
  21437. exports.Provider.prototype._execute = function (action, syncLength /* [arguments] */) {
  21438. let args = Array.prototype.slice.call(arguments, 2), callback = typeof args[args.length - 1] === 'function' && args.pop(), destructive = ['set', 'clear', 'merge', 'reset'].indexOf(action) !== -1, self = this, response, mergeObjs = [], keys = Object.keys(this.stores);
  21439. function runAction(name, next) {
  21440. const store = self.stores[name];
  21441. if (destructive && store.readOnly) {
  21442. return next();
  21443. }
  21444. return store[action].length > syncLength
  21445. ? store[action].apply(store, args.concat(next))
  21446. : next(null, store[action].apply(store, args));
  21447. }
  21448. if (callback) {
  21449. return async.forEach(keys, runAction, function (err) {
  21450. return err ? callback(err) : callback();
  21451. });
  21452. }
  21453. keys.forEach(function (name) {
  21454. if (typeof response === 'undefined') {
  21455. const store = self.stores[name];
  21456. if (destructive && store.readOnly) {
  21457. return;
  21458. }
  21459. response = store[action].apply(store, args);
  21460. // Merge objects if necessary
  21461. if (response &&
  21462. action === 'get' &&
  21463. typeof response === 'object' &&
  21464. !Array.isArray(response)) {
  21465. mergeObjs.push(response);
  21466. response = undefined;
  21467. }
  21468. }
  21469. });
  21470. if (mergeObjs.length) {
  21471. response = common.merge(mergeObjs.reverse());
  21472. }
  21473. return response;
  21474. };
  21475. //
  21476. // Throw the `err` if a callback is not supplied
  21477. //
  21478. function onError(err, callback) {
  21479. if (callback) {
  21480. return callback(err);
  21481. }
  21482. throw err;
  21483. }
  21484. //# sourceMappingURL=provider.js.map
  21485. /***/ }),
  21486. /***/ 75636:
  21487. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  21488. "use strict";
  21489. /*
  21490. * argv.js: Simple memory-based store for command-line arguments.
  21491. *
  21492. * (C) 2011, Charlie Robbins and the Contributors.
  21493. *
  21494. */
  21495. Object.defineProperty(exports, "__esModule", ({ value: true }));
  21496. exports.Argv = void 0;
  21497. const path = __webpack_require__(85622);
  21498. const util = __webpack_require__(31669);
  21499. const common = __webpack_require__(9649);
  21500. const memory_1 = __webpack_require__(35238);
  21501. const minimist = __webpack_require__(96562);
  21502. //
  21503. // ### function Argv (options)
  21504. // #### @options {Object} Options for this instance.
  21505. // Constructor function for the Argv nconf store, a simple abstraction
  21506. // around the Memory store that can read command-line arguments.
  21507. //
  21508. exports.Argv = function (options, usage) {
  21509. memory_1.Memory.call(this, options);
  21510. options = options || {};
  21511. this.type = 'argv';
  21512. this.readOnly = options.readOnly !== undefined ? options.readOnly : true;
  21513. this.options = options;
  21514. this.usage = usage;
  21515. if (typeof options.readOnly === 'boolean') {
  21516. this.readOnly = options.readOnly;
  21517. delete options.readOnly;
  21518. // FIXME; should not mutate options!!!!
  21519. }
  21520. else {
  21521. this.readOnly = true;
  21522. }
  21523. if (typeof options.parseValues === 'boolean') {
  21524. this.parseValues = options.parseValues;
  21525. delete options.parseValues;
  21526. }
  21527. else {
  21528. this.parseValues = false;
  21529. }
  21530. if (typeof options.transform === 'function') {
  21531. this.transform = options.transform;
  21532. delete options.transform;
  21533. }
  21534. else {
  21535. this.transform = false;
  21536. }
  21537. if (typeof options.separator === 'string' ||
  21538. options.separator instanceof RegExp) {
  21539. this.separator = options.separator;
  21540. delete options.separator;
  21541. }
  21542. else {
  21543. this.separator = '';
  21544. }
  21545. };
  21546. // Inherit from the Memory store
  21547. util.inherits(exports.Argv, memory_1.Memory);
  21548. //
  21549. // ### function loadSync ()
  21550. // Loads the data passed in from `process.argv` into this instance.
  21551. //
  21552. exports.Argv.prototype.loadSync = function () {
  21553. this.loadArgv();
  21554. return this.store;
  21555. };
  21556. //
  21557. // ### function loadArgv ()
  21558. // Loads the data passed in from the command-line arguments
  21559. // into this instance.
  21560. //
  21561. exports.Argv.prototype.loadArgv = function () {
  21562. let self = this, argv;
  21563. // Adapted from the original yargs library that we are replacing
  21564. // Source: https://github.com/yargs/yargs/blob/cb01c98c44e30f55c2dc9434caef524ae433d9a4/lib/yargs-factory.ts#L96-L109
  21565. /*
  21566. MIT License
  21567. Copyright 2010 James Halliday (mail@substack.net); Modified work Copyright 2014 Contributors (ben@npmjs.com)
  21568. Permission is hereby granted, free of charge, to any person obtaining a copy
  21569. of this software and associated documentation files (the "Software"), to deal
  21570. in the Software without restriction, including without limitation the rights
  21571. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  21572. copies of the Software, and to permit persons to whom the Software is
  21573. furnished to do so, subject to the following conditions:
  21574. The above copyright notice and this permission notice shall be included in
  21575. all copies or substantial portions of the Software.
  21576. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  21577. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21578. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21579. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21580. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  21581. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21582. THE SOFTWARE.
  21583. */
  21584. let default$0;
  21585. if (/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])) {
  21586. default$0 = process.argv.slice(1, 2);
  21587. }
  21588. else {
  21589. default$0 = process.argv.slice(0, 1);
  21590. }
  21591. const scriptName = default$0
  21592. .map((x) => {
  21593. const b = path.relative(process.cwd(), x);
  21594. return x.match(/^(\/|([a-zA-Z]:)?\\)/) && b.length < x.length ? b : x;
  21595. })
  21596. .join(' ')
  21597. .trim();
  21598. // End of yargs block
  21599. // we don't support passing options to minimist
  21600. const minimistOutput = Object.assign(Object.assign({}, minimist(process.argv.slice(2))), { $0: scriptName });
  21601. // Minimist does not support usage - we don't set it anywhere
  21602. // if (typeof this.usage === 'string') {
  21603. // yargs.usage(this.usage);
  21604. // }
  21605. argv = minimistOutput;
  21606. if (!argv) {
  21607. return;
  21608. }
  21609. if (this.transform) {
  21610. argv = common.transform(argv, this.transform);
  21611. }
  21612. let tempWrite = false;
  21613. if (this.readOnly) {
  21614. this.readOnly = false;
  21615. tempWrite = true;
  21616. }
  21617. Object.keys(argv).forEach(function (key) {
  21618. let val = argv[key];
  21619. if (typeof val !== 'undefined') {
  21620. if (self.parseValues) {
  21621. val = common.parseValues(val);
  21622. }
  21623. if (self.separator) {
  21624. self.set(common.key.apply(common, key.split(self.separator)), val);
  21625. }
  21626. else {
  21627. self.set(key, val);
  21628. }
  21629. }
  21630. });
  21631. // minimist does not support these options
  21632. // this.showHelp = yargs.showHelp;
  21633. // this.help = yargs.help;
  21634. if (tempWrite) {
  21635. this.readOnly = true;
  21636. }
  21637. return this.store;
  21638. };
  21639. //# sourceMappingURL=argv.js.map
  21640. /***/ }),
  21641. /***/ 18702:
  21642. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  21643. "use strict";
  21644. /*
  21645. * env.js: Simple memory-based store for environment variables
  21646. *
  21647. * (C) 2011, Charlie Robbins and the Contributors.
  21648. *
  21649. */
  21650. Object.defineProperty(exports, "__esModule", ({ value: true }));
  21651. exports.Env = void 0;
  21652. const util = __webpack_require__(31669);
  21653. const common = __webpack_require__(9649);
  21654. const memory_1 = __webpack_require__(35238);
  21655. //
  21656. // ### function Env (options)
  21657. // #### @options {Object} Options for this instance.
  21658. // Constructor function for the Env nconf store, a simple abstraction
  21659. // around the Memory store that can read process environment variables.
  21660. //
  21661. exports.Env = function (options) {
  21662. memory_1.Memory.call(this, options);
  21663. options = options || {};
  21664. this.type = 'env';
  21665. this.readOnly = options.readOnly !== undefined ? options.readOnly : true;
  21666. this.whitelist = options.whitelist || [];
  21667. this.separator = options.separator || '';
  21668. this.lowerCase = options.lowerCase || false;
  21669. this.parseValues = options.parseValues || false;
  21670. this.transform = options.transform || false;
  21671. if ({}.toString.call(options.match) === '[object RegExp]' &&
  21672. typeof options !== 'string') {
  21673. this.match = options.match;
  21674. }
  21675. if (options instanceof Array) {
  21676. this.whitelist = options;
  21677. }
  21678. if (typeof options === 'string' || options instanceof RegExp) {
  21679. this.separator = options;
  21680. }
  21681. };
  21682. // Inherit from the Memory store
  21683. util.inherits(exports.Env, memory_1.Memory);
  21684. //
  21685. // ### function loadSync ()
  21686. // Loads the data passed in from `process.env` into this instance.
  21687. //
  21688. exports.Env.prototype.loadSync = function () {
  21689. this.loadEnv();
  21690. return this.store;
  21691. };
  21692. //
  21693. // ### function loadEnv ()
  21694. // Loads the data passed in from `process.env` into this instance.
  21695. //
  21696. exports.Env.prototype.loadEnv = function () {
  21697. const self = this;
  21698. let env = process.env;
  21699. if (this.lowerCase) {
  21700. env = {};
  21701. Object.keys(process.env).forEach(function (key) {
  21702. env[key.toLowerCase()] = process.env[key];
  21703. });
  21704. }
  21705. if (this.transform) {
  21706. env = common.transform(env, this.transform);
  21707. }
  21708. let tempWrite = false;
  21709. if (this.readOnly) {
  21710. this.readOnly = false;
  21711. tempWrite = true;
  21712. }
  21713. Object.keys(env)
  21714. .filter(function (key) {
  21715. if (self.match && self.whitelist.length) {
  21716. return key.match(self.match) || self.whitelist.indexOf(key) !== -1;
  21717. }
  21718. else if (self.match) {
  21719. return key.match(self.match);
  21720. }
  21721. else {
  21722. return !self.whitelist.length || self.whitelist.indexOf(key) !== -1;
  21723. }
  21724. })
  21725. .forEach(function (key) {
  21726. /**
  21727. * Snyk modification ahead:
  21728. * monkey patch nconf to support TRUE & FALSE on env & arg to port to bool
  21729. */
  21730. let val = env[key];
  21731. if (val === 'TRUE' || val === 'true') {
  21732. val = true;
  21733. }
  21734. else if (val === 'FALSE' || val === 'false') {
  21735. val = false;
  21736. }
  21737. /**
  21738. * Snyk modification end
  21739. */
  21740. if (self.parseValues) {
  21741. val = common.parseValues(val);
  21742. }
  21743. if (self.separator) {
  21744. self.set(common.key.apply(common, key.split(self.separator)), val);
  21745. }
  21746. else {
  21747. self.set(key, val);
  21748. }
  21749. });
  21750. if (tempWrite) {
  21751. this.readOnly = true;
  21752. }
  21753. return this.store;
  21754. };
  21755. //# sourceMappingURL=env.js.map
  21756. /***/ }),
  21757. /***/ 56159:
  21758. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  21759. "use strict";
  21760. /*
  21761. * file.js: Simple file storage engine for nconf files
  21762. *
  21763. * (C) 2011, Charlie Robbins and the Contributors.
  21764. *
  21765. */
  21766. Object.defineProperty(exports, "__esModule", ({ value: true }));
  21767. exports.File = void 0;
  21768. const fs = __webpack_require__(35747);
  21769. const path = __webpack_require__(85622);
  21770. const util = __webpack_require__(31669);
  21771. const crypto = __webpack_require__(76417);
  21772. const formats = __webpack_require__(80210);
  21773. const memory_1 = __webpack_require__(35238);
  21774. const exists = fs.exists;
  21775. const existsSync = fs.existsSync;
  21776. //
  21777. // ### function File (options)
  21778. // #### @options {Object} Options for this instance
  21779. // Constructor function for the File nconf store, a simple abstraction
  21780. // around the Memory store that can persist configuration to disk.
  21781. //
  21782. exports.File = function (options) {
  21783. if (!options || !options.file) {
  21784. throw new Error('Missing required option `file`');
  21785. }
  21786. memory_1.Memory.call(this, options);
  21787. this.type = 'file';
  21788. this.file = options.file;
  21789. this.dir = options.dir || process.cwd();
  21790. this.format = options.format || formats.json;
  21791. this.secure = options.secure;
  21792. this.spacing = options.json_spacing || options.spacing || 2;
  21793. if (this.secure) {
  21794. this.secure =
  21795. Buffer.isBuffer(this.secure) || typeof this.secure === 'string'
  21796. ? { secret: this.secure.toString() }
  21797. : this.secure;
  21798. this.secure.alg = this.secure.alg || 'aes-256-ctr';
  21799. if (this.secure.secretPath) {
  21800. this.secure.secret = fs.readFileSync(this.secure.secretPath, 'utf8');
  21801. }
  21802. if (!this.secure.secret) {
  21803. throw new Error('secure.secret option is required');
  21804. }
  21805. }
  21806. if (options.search) {
  21807. this.search(this.dir);
  21808. }
  21809. };
  21810. // Inherit from the Memory store
  21811. util.inherits(exports.File, memory_1.Memory);
  21812. //
  21813. // ### function save (value, callback)
  21814. // #### @value {Object} _Ignored_ Left here for consistency
  21815. // #### @callback {function} Continuation to respond to when complete.
  21816. // Saves the current configuration object to disk at `this.file`
  21817. // using the format specified by `this.format`.
  21818. //
  21819. exports.File.prototype.save = function (value, callback) {
  21820. this.saveToFile(this.file, value, callback);
  21821. };
  21822. //
  21823. // ### function saveToFile (path, value, callback)
  21824. // #### @path {string} The path to the file where we save the configuration to
  21825. // #### @format {Object} Optional formatter, default behing the one of the store
  21826. // #### @callback {function} Continuation to respond to when complete.
  21827. // Saves the current configuration object to disk at `this.file`
  21828. // using the format specified by `this.format`.
  21829. //
  21830. exports.File.prototype.saveToFile = function (path, format, callback) {
  21831. if (!callback) {
  21832. callback = format;
  21833. format = this.format;
  21834. }
  21835. fs.writeFile(path, this.stringify(format), callback);
  21836. };
  21837. //
  21838. // ### function saveSync (value, callback)
  21839. // Saves the current configuration object to disk at `this.file`
  21840. // using the format specified by `this.format` synchronously.
  21841. //
  21842. exports.File.prototype.saveSync = function () {
  21843. fs.writeFileSync(this.file, this.stringify());
  21844. return this.store;
  21845. };
  21846. //
  21847. // ### function load (callback)
  21848. // #### @callback {function} Continuation to respond to when complete.
  21849. // Responds with an Object representing all keys associated in this instance.
  21850. //
  21851. exports.File.prototype.load = function (callback) {
  21852. const self = this;
  21853. exists(self.file, function (exists) {
  21854. if (!exists) {
  21855. return callback(null, {});
  21856. }
  21857. //
  21858. // Else, the path exists, read it from disk
  21859. //
  21860. fs.readFile(self.file, function (err, data) {
  21861. if (err) {
  21862. return callback(err);
  21863. }
  21864. try {
  21865. // Deals with string that include BOM
  21866. let stringData = data.toString();
  21867. if (stringData.charAt(0) === '\uFEFF') {
  21868. stringData = stringData.substr(1);
  21869. }
  21870. self.store = self.parse(stringData);
  21871. }
  21872. catch (ex) {
  21873. return callback(new Error('Error parsing your configuration file: [' +
  21874. self.file +
  21875. ']: ' +
  21876. ex.message));
  21877. }
  21878. callback(null, self.store);
  21879. });
  21880. });
  21881. };
  21882. //
  21883. // ### function loadSync (callback)
  21884. // Attempts to load the data stored in `this.file` synchronously
  21885. // and responds appropriately.
  21886. //
  21887. exports.File.prototype.loadSync = function () {
  21888. if (!existsSync(this.file)) {
  21889. this.store = {};
  21890. return this.store;
  21891. }
  21892. //
  21893. // Else, the path exists, read it from disk
  21894. //
  21895. try {
  21896. // Deals with file that include BOM
  21897. let fileData = fs.readFileSync(this.file, 'utf8');
  21898. if (fileData.charAt(0) === '\uFEFF') {
  21899. fileData = fileData.substr(1);
  21900. }
  21901. this.store = this.parse(fileData);
  21902. }
  21903. catch (ex) {
  21904. throw new Error('Error parsing your configuration file: [' +
  21905. this.file +
  21906. ']: ' +
  21907. ex.message);
  21908. }
  21909. return this.store;
  21910. };
  21911. //
  21912. // ### function stringify ()
  21913. // Returns an encrypted version of the contents IIF
  21914. // `this.secure` is enabled
  21915. //
  21916. exports.File.prototype.stringify = function (format) {
  21917. let data = this.store;
  21918. if (!format) {
  21919. format = this.format;
  21920. }
  21921. if (this.secure) {
  21922. const self = this;
  21923. data = Object.keys(data).reduce(function (acc, key) {
  21924. const value = format.stringify(data[key]);
  21925. const iv = crypto.randomBytes(16);
  21926. const cipher = crypto.createCipheriv(self.secure.alg, self.secure.secret, iv);
  21927. let ciphertext = cipher.update(value, 'utf8', 'hex');
  21928. ciphertext += cipher.final('hex');
  21929. acc[key] = {
  21930. alg: self.secure.alg,
  21931. value: ciphertext,
  21932. iv: iv.toString('hex'),
  21933. };
  21934. return acc;
  21935. }, {});
  21936. }
  21937. return format.stringify(data, null, this.spacing);
  21938. };
  21939. //
  21940. // ### function parse (contents)
  21941. // Returns a decrypted version of the contents IFF
  21942. // `this.secure` is enabled.
  21943. //
  21944. exports.File.prototype.parse = function (contents) {
  21945. let parsed = this.format.parse(contents);
  21946. if (this.secure) {
  21947. const self = this;
  21948. let outdated = false;
  21949. parsed = Object.keys(parsed).reduce(function (acc, key) {
  21950. const value = parsed[key];
  21951. let decipher = crypto.createDecipher(value.alg, self.secure.secret);
  21952. if (value.iv) {
  21953. // For backward compatibility, use createDecipheriv only if there is iv stored in file
  21954. decipher = crypto.createDecipheriv(value.alg, self.secure.secret, Buffer.from(value.iv, 'hex'));
  21955. }
  21956. else {
  21957. outdated = true;
  21958. }
  21959. let plaintext = decipher.update(value.value, 'hex', 'utf8');
  21960. plaintext += decipher.final('utf8');
  21961. acc[key] = self.format.parse(plaintext);
  21962. return acc;
  21963. }, {});
  21964. if (outdated) {
  21965. // warn user if the file is encrypted without iv
  21966. console.warn('Your encrypted file is outdated (encrypted without iv). Please re-encrypt your file.');
  21967. }
  21968. }
  21969. return parsed;
  21970. };
  21971. //
  21972. // ### function search (base)
  21973. // #### @base {string} Base directory (or file) to begin searching for the target file.
  21974. // Attempts to find `this.file` by iteratively searching up the
  21975. // directory structure
  21976. //
  21977. exports.File.prototype.search = function (base) {
  21978. let looking = true, fullpath, previous, stats;
  21979. base = base || process.cwd();
  21980. if (this.file[0] === '/') {
  21981. //
  21982. // If filename for this instance is a fully qualified path
  21983. // (i.e. it starts with a `'/'`) then check if it exists
  21984. //
  21985. try {
  21986. stats = fs.statSync(fs.realpathSync(this.file));
  21987. if (stats.isFile()) {
  21988. fullpath = this.file;
  21989. looking = false;
  21990. }
  21991. }
  21992. catch (ex) {
  21993. //
  21994. // Ignore errors
  21995. //
  21996. }
  21997. }
  21998. if (looking && base) {
  21999. //
  22000. // Attempt to stat the realpath located at `base`
  22001. // if the directory does not exist then return false.
  22002. //
  22003. try {
  22004. const stat = fs.statSync(fs.realpathSync(base));
  22005. looking = stat.isDirectory();
  22006. }
  22007. catch (ex) {
  22008. return false;
  22009. }
  22010. }
  22011. while (looking) {
  22012. //
  22013. // Iteratively look up the directory structure from `base`
  22014. //
  22015. try {
  22016. stats = fs.statSync(fs.realpathSync((fullpath = path.join(base, this.file))));
  22017. looking = stats.isDirectory();
  22018. }
  22019. catch (ex) {
  22020. previous = base;
  22021. base = path.dirname(base);
  22022. if (previous === base) {
  22023. //
  22024. // If we've reached the top of the directory structure then simply use
  22025. // the default file path.
  22026. //
  22027. try {
  22028. stats = fs.statSync(fs.realpathSync((fullpath = path.join(this.dir, this.file))));
  22029. if (stats.isDirectory()) {
  22030. fullpath = undefined;
  22031. }
  22032. }
  22033. catch (ex) {
  22034. //
  22035. // Ignore errors
  22036. //
  22037. }
  22038. looking = false;
  22039. }
  22040. }
  22041. }
  22042. //
  22043. // Set the file for this instance to the fullpath
  22044. // that we have found during the search. In the event that
  22045. // the search was unsuccessful use the original value for `this.file`.
  22046. //
  22047. this.file = fullpath || this.file;
  22048. return fullpath;
  22049. };
  22050. //# sourceMappingURL=file.js.map
  22051. /***/ }),
  22052. /***/ 38907:
  22053. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  22054. "use strict";
  22055. /*
  22056. * literal.js: Simple literal Object store for nconf.
  22057. *
  22058. * (C) 2011, Charlie Robbins and the Contributors.
  22059. *
  22060. */
  22061. Object.defineProperty(exports, "__esModule", ({ value: true }));
  22062. exports.Literal = void 0;
  22063. const util = __webpack_require__(31669);
  22064. const memory_1 = __webpack_require__(35238);
  22065. exports.Literal = function Literal(options) {
  22066. memory_1.Memory.call(this, options);
  22067. options = options || {};
  22068. this.type = 'literal';
  22069. this.readOnly = true;
  22070. this.store = options.store || options;
  22071. };
  22072. // Inherit from Memory store.
  22073. util.inherits(exports.Literal, memory_1.Memory);
  22074. //
  22075. // ### function loadSync (callback)
  22076. // Returns the data stored in `this.store` synchronously.
  22077. //
  22078. exports.Literal.prototype.loadSync = function () {
  22079. return this.store;
  22080. };
  22081. //# sourceMappingURL=literal.js.map
  22082. /***/ }),
  22083. /***/ 35238:
  22084. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  22085. "use strict";
  22086. /*
  22087. * memory.js: Simple memory storage engine for nconf configuration(s)
  22088. *
  22089. * (C) 2011, Charlie Robbins and the Contributors.
  22090. *
  22091. */
  22092. Object.defineProperty(exports, "__esModule", ({ value: true }));
  22093. exports.Memory = void 0;
  22094. const common = __webpack_require__(9649);
  22095. //
  22096. // ### function Memory (options)
  22097. // #### @options {Object} Options for this instance
  22098. // Constructor function for the Memory nconf store which maintains
  22099. // a nested json structure based on key delimiters `:`.
  22100. //
  22101. // e.g. `my:nested:key` ==> `{ my: { nested: { key: } } }`
  22102. //
  22103. exports.Memory = function (options = {}) {
  22104. options = options || {};
  22105. this.type = 'memory';
  22106. this.store = {};
  22107. this.mtimes = {};
  22108. this.readOnly = false;
  22109. this.loadFrom = options.loadFrom || null;
  22110. this.logicalSeparator = options.logicalSeparator || ':';
  22111. this.parseValues = options.parseValues || false;
  22112. if (this.loadFrom) {
  22113. this.store = common.loadFilesSync(this.loadFrom);
  22114. }
  22115. };
  22116. //
  22117. // ### function get (key)
  22118. // #### @key {string} Key to retrieve for this instance.
  22119. // Retrieves the value for the specified key (if any).
  22120. //
  22121. exports.Memory.prototype.get = function (key) {
  22122. let target = this.store, path = common.path(key, this.logicalSeparator);
  22123. //
  22124. // Scope into the object to get the appropriate nested context
  22125. //
  22126. while (path.length > 0) {
  22127. key = path.shift();
  22128. if (target && typeof target !== 'string' && target.hasOwnProperty(key)) {
  22129. target = target[key];
  22130. continue;
  22131. }
  22132. return undefined;
  22133. }
  22134. return target;
  22135. };
  22136. //
  22137. // ### function set (key, value)
  22138. // #### @key {string} Key to set in this instance
  22139. // #### @value {literal|Object} Value for the specified key
  22140. // Sets the `value` for the specified `key` in this instance.
  22141. //
  22142. exports.Memory.prototype.set = function (key, value) {
  22143. if (this.readOnly) {
  22144. return false;
  22145. }
  22146. let target = this.store, path = common.path(key, this.logicalSeparator);
  22147. if (path.length === 0) {
  22148. //
  22149. // Root must be an object
  22150. //
  22151. if (!value || typeof value !== 'object') {
  22152. return false;
  22153. }
  22154. else {
  22155. this.reset();
  22156. this.store = value;
  22157. return true;
  22158. }
  22159. }
  22160. //
  22161. // Update the `mtime` (modified time) of the key
  22162. //
  22163. this.mtimes[key] = Date.now();
  22164. //
  22165. // Scope into the object to get the appropriate nested context
  22166. //
  22167. while (path.length > 1) {
  22168. key = path.shift();
  22169. if (!target[key] || typeof target[key] !== 'object') {
  22170. target[key] = {};
  22171. }
  22172. target = target[key];
  22173. }
  22174. // Set the specified value in the nested JSON structure
  22175. key = path.shift();
  22176. if (this.parseValues) {
  22177. value = common.parseValues.call(common, value);
  22178. }
  22179. target[key] = value;
  22180. return true;
  22181. };
  22182. //
  22183. // ### function clear (key)
  22184. // #### @key {string} Key to remove from this instance
  22185. // Removes the value for the specified `key` from this instance.
  22186. //
  22187. exports.Memory.prototype.clear = function (key) {
  22188. if (this.readOnly) {
  22189. return false;
  22190. }
  22191. let target = this.store, value = target, path = common.path(key, this.logicalSeparator);
  22192. //
  22193. // Remove the key from the set of `mtimes` (modified times)
  22194. //
  22195. delete this.mtimes[key];
  22196. //
  22197. // Scope into the object to get the appropriate nested context
  22198. //
  22199. for (var i = 0; i < path.length - 1; i++) {
  22200. key = path[i];
  22201. value = target[key];
  22202. if (typeof value !== 'function' && typeof value !== 'object') {
  22203. return false;
  22204. }
  22205. target = value;
  22206. }
  22207. // Delete the key from the nested JSON structure
  22208. key = path[i];
  22209. delete target[key];
  22210. return true;
  22211. };
  22212. //
  22213. // ### function merge (key, value)
  22214. // #### @key {string} Key to merge the value into
  22215. // #### @value {literal|Object} Value to merge into the key
  22216. // Merges the properties in `value` into the existing object value
  22217. // at `key`. If the existing value `key` is not an Object, it will be
  22218. // completely overwritten.
  22219. //
  22220. exports.Memory.prototype.merge = function (key, value) {
  22221. if (this.readOnly) {
  22222. return false;
  22223. }
  22224. //
  22225. // If the key is not an `Object` or is an `Array`,
  22226. // then simply set it. Merging is for Objects.
  22227. //
  22228. if (typeof value !== 'object' || Array.isArray(value) || value === null) {
  22229. return this.set(key, value);
  22230. }
  22231. let self = this, target = this.store, path = common.path(key, this.logicalSeparator), fullKey = key;
  22232. //
  22233. // Update the `mtime` (modified time) of the key
  22234. //
  22235. this.mtimes[key] = Date.now();
  22236. //
  22237. // Scope into the object to get the appropriate nested context
  22238. //
  22239. while (path.length > 1) {
  22240. key = path.shift();
  22241. if (!target[key]) {
  22242. target[key] = {};
  22243. }
  22244. target = target[key];
  22245. }
  22246. // Set the specified value in the nested JSON structure
  22247. key = path.shift();
  22248. //
  22249. // If the current value at the key target is not an `Object`,
  22250. // or is an `Array` then simply override it because the new value
  22251. // is an Object.
  22252. //
  22253. if (typeof target[key] !== 'object' || Array.isArray(target[key])) {
  22254. target[key] = value;
  22255. return true;
  22256. }
  22257. return Object.keys(value).every(function (nested) {
  22258. return self.merge(common.keyed(self.logicalSeparator, fullKey, nested), value[nested]);
  22259. });
  22260. };
  22261. //
  22262. // ### function reset (callback)
  22263. // Clears all keys associated with this instance.
  22264. //
  22265. exports.Memory.prototype.reset = function () {
  22266. if (this.readOnly) {
  22267. return false;
  22268. }
  22269. this.mtimes = {};
  22270. this.store = {};
  22271. return true;
  22272. };
  22273. //
  22274. // ### function loadSync
  22275. // Returns the store managed by this instance
  22276. //
  22277. exports.Memory.prototype.loadSync = function () {
  22278. return this.store || {};
  22279. };
  22280. //# sourceMappingURL=memory.js.map
  22281. /***/ }),
  22282. /***/ 8975:
  22283. /***/ ((module, exports, __webpack_require__) => {
  22284. var __WEBPACK_AMD_DEFINE_RESULT__;/* global window, exports, define */
  22285. !function() {
  22286. 'use strict'
  22287. var re = {
  22288. not_string: /[^s]/,
  22289. not_bool: /[^t]/,
  22290. not_type: /[^T]/,
  22291. not_primitive: /[^v]/,
  22292. number: /[diefg]/,
  22293. numeric_arg: /[bcdiefguxX]/,
  22294. json: /[j]/,
  22295. not_json: /[^j]/,
  22296. text: /^[^\x25]+/,
  22297. modulo: /^\x25{2}/,
  22298. placeholder: /^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,
  22299. key: /^([a-z_][a-z_\d]*)/i,
  22300. key_access: /^\.([a-z_][a-z_\d]*)/i,
  22301. index_access: /^\[(\d+)\]/,
  22302. sign: /^[+-]/
  22303. }
  22304. function sprintf(key) {
  22305. // `arguments` is not an array, but should be fine for this call
  22306. return sprintf_format(sprintf_parse(key), arguments)
  22307. }
  22308. function vsprintf(fmt, argv) {
  22309. return sprintf.apply(null, [fmt].concat(argv || []))
  22310. }
  22311. function sprintf_format(parse_tree, argv) {
  22312. var cursor = 1, tree_length = parse_tree.length, arg, output = '', i, k, ph, pad, pad_character, pad_length, is_positive, sign
  22313. for (i = 0; i < tree_length; i++) {
  22314. if (typeof parse_tree[i] === 'string') {
  22315. output += parse_tree[i]
  22316. }
  22317. else if (typeof parse_tree[i] === 'object') {
  22318. ph = parse_tree[i] // convenience purposes only
  22319. if (ph.keys) { // keyword argument
  22320. arg = argv[cursor]
  22321. for (k = 0; k < ph.keys.length; k++) {
  22322. if (arg == undefined) {
  22323. throw new Error(sprintf('[sprintf] Cannot access property "%s" of undefined value "%s"', ph.keys[k], ph.keys[k-1]))
  22324. }
  22325. arg = arg[ph.keys[k]]
  22326. }
  22327. }
  22328. else if (ph.param_no) { // positional argument (explicit)
  22329. arg = argv[ph.param_no]
  22330. }
  22331. else { // positional argument (implicit)
  22332. arg = argv[cursor++]
  22333. }
  22334. if (re.not_type.test(ph.type) && re.not_primitive.test(ph.type) && arg instanceof Function) {
  22335. arg = arg()
  22336. }
  22337. if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) {
  22338. throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg))
  22339. }
  22340. if (re.number.test(ph.type)) {
  22341. is_positive = arg >= 0
  22342. }
  22343. switch (ph.type) {
  22344. case 'b':
  22345. arg = parseInt(arg, 10).toString(2)
  22346. break
  22347. case 'c':
  22348. arg = String.fromCharCode(parseInt(arg, 10))
  22349. break
  22350. case 'd':
  22351. case 'i':
  22352. arg = parseInt(arg, 10)
  22353. break
  22354. case 'j':
  22355. arg = JSON.stringify(arg, null, ph.width ? parseInt(ph.width) : 0)
  22356. break
  22357. case 'e':
  22358. arg = ph.precision ? parseFloat(arg).toExponential(ph.precision) : parseFloat(arg).toExponential()
  22359. break
  22360. case 'f':
  22361. arg = ph.precision ? parseFloat(arg).toFixed(ph.precision) : parseFloat(arg)
  22362. break
  22363. case 'g':
  22364. arg = ph.precision ? String(Number(arg.toPrecision(ph.precision))) : parseFloat(arg)
  22365. break
  22366. case 'o':
  22367. arg = (parseInt(arg, 10) >>> 0).toString(8)
  22368. break
  22369. case 's':
  22370. arg = String(arg)
  22371. arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
  22372. break
  22373. case 't':
  22374. arg = String(!!arg)
  22375. arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
  22376. break
  22377. case 'T':
  22378. arg = Object.prototype.toString.call(arg).slice(8, -1).toLowerCase()
  22379. arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
  22380. break
  22381. case 'u':
  22382. arg = parseInt(arg, 10) >>> 0
  22383. break
  22384. case 'v':
  22385. arg = arg.valueOf()
  22386. arg = (ph.precision ? arg.substring(0, ph.precision) : arg)
  22387. break
  22388. case 'x':
  22389. arg = (parseInt(arg, 10) >>> 0).toString(16)
  22390. break
  22391. case 'X':
  22392. arg = (parseInt(arg, 10) >>> 0).toString(16).toUpperCase()
  22393. break
  22394. }
  22395. if (re.json.test(ph.type)) {
  22396. output += arg
  22397. }
  22398. else {
  22399. if (re.number.test(ph.type) && (!is_positive || ph.sign)) {
  22400. sign = is_positive ? '+' : '-'
  22401. arg = arg.toString().replace(re.sign, '')
  22402. }
  22403. else {
  22404. sign = ''
  22405. }
  22406. pad_character = ph.pad_char ? ph.pad_char === '0' ? '0' : ph.pad_char.charAt(1) : ' '
  22407. pad_length = ph.width - (sign + arg).length
  22408. pad = ph.width ? (pad_length > 0 ? pad_character.repeat(pad_length) : '') : ''
  22409. output += ph.align ? sign + arg + pad : (pad_character === '0' ? sign + pad + arg : pad + sign + arg)
  22410. }
  22411. }
  22412. }
  22413. return output
  22414. }
  22415. var sprintf_cache = Object.create(null)
  22416. function sprintf_parse(fmt) {
  22417. if (sprintf_cache[fmt]) {
  22418. return sprintf_cache[fmt]
  22419. }
  22420. var _fmt = fmt, match, parse_tree = [], arg_names = 0
  22421. while (_fmt) {
  22422. if ((match = re.text.exec(_fmt)) !== null) {
  22423. parse_tree.push(match[0])
  22424. }
  22425. else if ((match = re.modulo.exec(_fmt)) !== null) {
  22426. parse_tree.push('%')
  22427. }
  22428. else if ((match = re.placeholder.exec(_fmt)) !== null) {
  22429. if (match[2]) {
  22430. arg_names |= 1
  22431. var field_list = [], replacement_field = match[2], field_match = []
  22432. if ((field_match = re.key.exec(replacement_field)) !== null) {
  22433. field_list.push(field_match[1])
  22434. while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {
  22435. if ((field_match = re.key_access.exec(replacement_field)) !== null) {
  22436. field_list.push(field_match[1])
  22437. }
  22438. else if ((field_match = re.index_access.exec(replacement_field)) !== null) {
  22439. field_list.push(field_match[1])
  22440. }
  22441. else {
  22442. throw new SyntaxError('[sprintf] failed to parse named argument key')
  22443. }
  22444. }
  22445. }
  22446. else {
  22447. throw new SyntaxError('[sprintf] failed to parse named argument key')
  22448. }
  22449. match[2] = field_list
  22450. }
  22451. else {
  22452. arg_names |= 2
  22453. }
  22454. if (arg_names === 3) {
  22455. throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported')
  22456. }
  22457. parse_tree.push(
  22458. {
  22459. placeholder: match[0],
  22460. param_no: match[1],
  22461. keys: match[2],
  22462. sign: match[3],
  22463. pad_char: match[4],
  22464. align: match[5],
  22465. width: match[6],
  22466. precision: match[7],
  22467. type: match[8]
  22468. }
  22469. )
  22470. }
  22471. else {
  22472. throw new SyntaxError('[sprintf] unexpected placeholder')
  22473. }
  22474. _fmt = _fmt.substring(match[0].length)
  22475. }
  22476. return sprintf_cache[fmt] = parse_tree
  22477. }
  22478. /**
  22479. * export to either browser or node.js
  22480. */
  22481. /* eslint-disable quote-props */
  22482. if (true) {
  22483. exports.sprintf = sprintf
  22484. exports.vsprintf = vsprintf
  22485. }
  22486. if (typeof window !== 'undefined') {
  22487. window['sprintf'] = sprintf
  22488. window['vsprintf'] = vsprintf
  22489. if (true) {
  22490. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  22491. return {
  22492. 'sprintf': sprintf,
  22493. 'vsprintf': vsprintf
  22494. }
  22495. }).call(exports, __webpack_require__, exports, module),
  22496. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))
  22497. }
  22498. }
  22499. /* eslint-enable quote-props */
  22500. }(); // eslint-disable-line
  22501. /***/ }),
  22502. /***/ 76003:
  22503. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  22504. "use strict";
  22505. const ansiRegex = __webpack_require__(98916);
  22506. const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
  22507. module.exports = stripAnsi;
  22508. module.exports.default = stripAnsi;
  22509. /***/ }),
  22510. /***/ 98916:
  22511. /***/ ((module) => {
  22512. "use strict";
  22513. module.exports = options => {
  22514. options = Object.assign({
  22515. onlyFirst: false
  22516. }, options);
  22517. const pattern = [
  22518. '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
  22519. '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
  22520. ].join('|');
  22521. return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
  22522. };
  22523. /***/ }),
  22524. /***/ 64502:
  22525. /***/ ((module) => {
  22526. "use strict";
  22527. module.exports = function (x) {
  22528. var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
  22529. var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
  22530. if (x[x.length - 1] === lf) {
  22531. x = x.slice(0, x.length - 1);
  22532. }
  22533. if (x[x.length - 1] === cr) {
  22534. x = x.slice(0, x.length - 1);
  22535. }
  22536. return x;
  22537. };
  22538. /***/ }),
  22539. /***/ 92130:
  22540. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  22541. "use strict";
  22542. const os = __webpack_require__(12087);
  22543. const hasFlag = __webpack_require__(86560);
  22544. const env = process.env;
  22545. let forceColor;
  22546. if (hasFlag('no-color') ||
  22547. hasFlag('no-colors') ||
  22548. hasFlag('color=false')) {
  22549. forceColor = false;
  22550. } else if (hasFlag('color') ||
  22551. hasFlag('colors') ||
  22552. hasFlag('color=true') ||
  22553. hasFlag('color=always')) {
  22554. forceColor = true;
  22555. }
  22556. if ('FORCE_COLOR' in env) {
  22557. forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
  22558. }
  22559. function translateLevel(level) {
  22560. if (level === 0) {
  22561. return false;
  22562. }
  22563. return {
  22564. level,
  22565. hasBasic: true,
  22566. has256: level >= 2,
  22567. has16m: level >= 3
  22568. };
  22569. }
  22570. function supportsColor(stream) {
  22571. if (forceColor === false) {
  22572. return 0;
  22573. }
  22574. if (hasFlag('color=16m') ||
  22575. hasFlag('color=full') ||
  22576. hasFlag('color=truecolor')) {
  22577. return 3;
  22578. }
  22579. if (hasFlag('color=256')) {
  22580. return 2;
  22581. }
  22582. if (stream && !stream.isTTY && forceColor !== true) {
  22583. return 0;
  22584. }
  22585. const min = forceColor ? 1 : 0;
  22586. if (process.platform === 'win32') {
  22587. // Node.js 7.5.0 is the first version of Node.js to include a patch to
  22588. // libuv that enables 256 color output on Windows. Anything earlier and it
  22589. // won't work. However, here we target Node.js 8 at minimum as it is an LTS
  22590. // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
  22591. // release that supports 256 colors. Windows 10 build 14931 is the first release
  22592. // that supports 16m/TrueColor.
  22593. const osRelease = os.release().split('.');
  22594. if (
  22595. Number(process.versions.node.split('.')[0]) >= 8 &&
  22596. Number(osRelease[0]) >= 10 &&
  22597. Number(osRelease[2]) >= 10586
  22598. ) {
  22599. return Number(osRelease[2]) >= 14931 ? 3 : 2;
  22600. }
  22601. return 1;
  22602. }
  22603. if ('CI' in env) {
  22604. if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
  22605. return 1;
  22606. }
  22607. return min;
  22608. }
  22609. if ('TEAMCITY_VERSION' in env) {
  22610. return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
  22611. }
  22612. if (env.COLORTERM === 'truecolor') {
  22613. return 3;
  22614. }
  22615. if ('TERM_PROGRAM' in env) {
  22616. const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
  22617. switch (env.TERM_PROGRAM) {
  22618. case 'iTerm.app':
  22619. return version >= 3 ? 3 : 2;
  22620. case 'Apple_Terminal':
  22621. return 2;
  22622. // No default
  22623. }
  22624. }
  22625. if (/-256(color)?$/i.test(env.TERM)) {
  22626. return 2;
  22627. }
  22628. if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
  22629. return 1;
  22630. }
  22631. if ('COLORTERM' in env) {
  22632. return 1;
  22633. }
  22634. if (env.TERM === 'dumb') {
  22635. return min;
  22636. }
  22637. return min;
  22638. }
  22639. function getSupportLevel(stream) {
  22640. const level = supportsColor(stream);
  22641. return translateLevel(level);
  22642. }
  22643. module.exports = {
  22644. supportsColor: getSupportLevel,
  22645. stdout: getSupportLevel(process.stdout),
  22646. stderr: getSupportLevel(process.stderr)
  22647. };
  22648. /***/ }),
  22649. /***/ 94765:
  22650. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  22651. "use strict";
  22652. Object.defineProperty(exports, "__esModule", ({ value: true }));
  22653. exports.args = void 0;
  22654. const abbrev = __webpack_require__(99989);
  22655. const debugModule = __webpack_require__(15158);
  22656. const modes_1 = __webpack_require__(60615);
  22657. const types_1 = __webpack_require__(94055);
  22658. const container_1 = __webpack_require__(51804);
  22659. const utils_1 = __webpack_require__(61721);
  22660. const alias = abbrev('copy', 'version', 'debug', 'help', 'quiet', 'interactive', 'dev');
  22661. alias.d = 'debug'; // always make `-d` debug
  22662. alias.t = 'test';
  22663. alias.p = 'prune-repeated-subdependencies';
  22664. // The -d flag enables printing the messages for predefined namespaces.
  22665. // Additional ones can be specified (comma-separated) in the DEBUG environment variable.
  22666. const DEBUG_DEFAULT_NAMESPACES = [
  22667. 'snyk-test',
  22668. 'snyk',
  22669. 'snyk-code',
  22670. 'snyk-iac',
  22671. 'snyk:find-files',
  22672. 'snyk:run-test',
  22673. 'snyk:prune',
  22674. 'snyk-nodejs-plugin',
  22675. 'snyk-gradle-plugin',
  22676. 'snyk-sbt-plugin',
  22677. 'snyk-mvn-plugin',
  22678. 'snyk-yarn-workspaces',
  22679. 'snyk-java-call-graph-builder',
  22680. ];
  22681. function dashToCamelCase(dash) {
  22682. return dash.indexOf('-') < 0
  22683. ? dash
  22684. : dash.replace(/-[a-z]/g, (m) => m[1].toUpperCase());
  22685. }
  22686. function args(rawArgv) {
  22687. const argv = {
  22688. _: [],
  22689. };
  22690. for (let arg of rawArgv.slice(2)) {
  22691. if (argv._doubleDashArgs) {
  22692. argv._doubleDashArgs.push(arg);
  22693. }
  22694. else if (arg === '--') {
  22695. argv._doubleDashArgs = [];
  22696. }
  22697. else if (arg[0] === '-') {
  22698. arg = arg.slice(1);
  22699. if (alias[arg] !== undefined) {
  22700. argv[alias[arg]] = true;
  22701. }
  22702. else if (arg[0] === '-') {
  22703. arg = arg.slice(1);
  22704. if (arg.indexOf('=') === -1) {
  22705. argv[arg] = true;
  22706. }
  22707. else {
  22708. const parts = arg.split('=');
  22709. argv[parts.shift()] = parts.join('=');
  22710. }
  22711. }
  22712. else {
  22713. argv[arg] = true;
  22714. }
  22715. }
  22716. else {
  22717. argv._.push(arg);
  22718. }
  22719. }
  22720. // By passing `-d` to the CLI, we enable the debugging output.
  22721. // It needs to happen BEFORE any of the `debug(namespace)` calls needed to create loggers.
  22722. // Therefore, the code used by the CLI should create the loggers in a lazy fashion
  22723. // or be `require`d after this code.
  22724. // TODO(BST-648): sort this out reliably
  22725. if (argv.debug) {
  22726. let enable = DEBUG_DEFAULT_NAMESPACES.join(',');
  22727. if (process.env.DEBUG) {
  22728. enable += ',' + process.env.DEBUG;
  22729. }
  22730. // Storing in the global state, because just "debugModule.enable" call won't affect different instances of `debug`
  22731. // module imported by plugins, libraries etc.
  22732. process.env.DEBUG = enable;
  22733. debugModule.enable(enable);
  22734. }
  22735. const debug = debugModule('snyk');
  22736. // Late require, see the note re "debug" option above.
  22737. const cli = __webpack_require__(64971);
  22738. // the first argument is the command we'll execute, everything else will be
  22739. // an argument to our command, like `snyk test package2test`
  22740. let command = argv._[0] || '';
  22741. // since we are handling documentation for subcommands now, we should keep all the arguments
  22742. if (!argv.help) {
  22743. command = argv._.shift(); // can actually be undefined
  22744. }
  22745. // snyk [mode?] [command] [paths?] [options-double-dash]
  22746. command = modes_1.displayModeHelp(command, argv);
  22747. command = modes_1.parseMode(command, argv);
  22748. // alias switcheroo - allows us to have
  22749. if (cli.aliases[command]) {
  22750. command = cli.aliases[command];
  22751. }
  22752. // alias `-v` to `snyk version`
  22753. if (argv.version) {
  22754. command = 'version';
  22755. }
  22756. // alias `--about` to `snyk about`
  22757. if (argv.about) {
  22758. command = 'about';
  22759. }
  22760. if (!command || argv.help || command === 'help') {
  22761. // bit of a song and dance to support `snyk -h` and `snyk help`
  22762. if (argv.help === true || command === 'help') {
  22763. argv.help = 'help';
  22764. }
  22765. // If command has a value prior to running it over with “help” and argv.help contains "help", save the command in argv._
  22766. // so that no argument gets deleted or ignored. This ensures `snyk --help [command]` and `snyk [command] --help` return the
  22767. // specific help page instead of the generic one.
  22768. // This change also covers the scenario of 'snyk [mode] [command] --help' and 'snyk --help [mode] [command]`.
  22769. if (!argv._.length) {
  22770. command && argv.help === 'help'
  22771. ? argv._.unshift(command)
  22772. : argv._.unshift(argv.help || 'help');
  22773. }
  22774. command = 'help';
  22775. }
  22776. if (command && command.indexOf('config:') === 0) {
  22777. // config looks like `config:set x=y` or `config:get x`
  22778. // so we need to mangle the commands into this format:
  22779. // snyk.config('set', 'api=x')
  22780. // snyk.config('get', 'api') // etc
  22781. const tmp = command.split(':');
  22782. command = tmp.shift();
  22783. argv._.unshift(tmp.shift());
  22784. }
  22785. let method = cli[command];
  22786. if (!method) {
  22787. // if we failed to find a command, then default to an error
  22788. method = __webpack_require__(79407);
  22789. argv._.push(command);
  22790. }
  22791. // TODO: Once experimental flag became default this block should be
  22792. // moved to inside the parseModes function for container mode
  22793. const imageSavePath = container_1.getContainerImageSavePath();
  22794. if (imageSavePath) {
  22795. argv['imageSavePath'] = imageSavePath;
  22796. }
  22797. if (command in types_1.SupportedCliCommands) {
  22798. // copy all the options across to argv._ as an object
  22799. argv._.push(argv);
  22800. }
  22801. // TODO: eventually all arguments should be transformed like this.
  22802. const argumentsToTransform = [
  22803. 'package-manager',
  22804. 'packages-folder',
  22805. 'severity-threshold',
  22806. 'strict-out-of-sync',
  22807. 'all-sub-projects',
  22808. 'sub-project',
  22809. 'gradle-sub-project',
  22810. 'skip-unresolved',
  22811. 'scan-all-unmanaged',
  22812. 'fail-on',
  22813. 'all-projects',
  22814. 'yarn-workspaces',
  22815. 'maven-aggregate-project',
  22816. 'detection-depth',
  22817. 'init-script',
  22818. 'integration-name',
  22819. 'integration-version',
  22820. 'prune-repeated-subdependencies',
  22821. 'dry-run',
  22822. 'sequential',
  22823. ];
  22824. for (const dashedArg of argumentsToTransform) {
  22825. if (argv[dashedArg]) {
  22826. const camelCased = dashToCamelCase(dashedArg);
  22827. if (camelCased === dashedArg) {
  22828. continue;
  22829. }
  22830. argv[camelCased] = argv[dashedArg];
  22831. delete argv[dashedArg];
  22832. }
  22833. }
  22834. if (argv.detectionDepth !== undefined) {
  22835. argv.detectionDepth = Number(argv.detectionDepth);
  22836. }
  22837. if (argv.skipUnresolved !== undefined) {
  22838. if (argv.skipUnresolved === 'false') {
  22839. argv.allowMissing = false;
  22840. }
  22841. else {
  22842. argv.allowMissing = true;
  22843. }
  22844. }
  22845. if (argv.strictOutOfSync !== undefined) {
  22846. if (argv.strictOutOfSync === 'false') {
  22847. argv.strictOutOfSync = false;
  22848. }
  22849. else {
  22850. argv.strictOutOfSync = true;
  22851. }
  22852. }
  22853. // Alias
  22854. const aliases = {
  22855. gradleSubProject: 'subProject',
  22856. container: 'docker',
  22857. };
  22858. for (const argAlias in aliases) {
  22859. if (argv[argAlias]) {
  22860. const target = aliases[argAlias];
  22861. argv[target] = argv[argAlias];
  22862. delete argv[argAlias];
  22863. }
  22864. }
  22865. if (argv.insecure) {
  22866. global.ignoreUnknownCA = true;
  22867. }
  22868. debug(command, utils_1.obfuscateArgs(argv));
  22869. return {
  22870. command,
  22871. method,
  22872. options: argv,
  22873. };
  22874. }
  22875. exports.args = args;
  22876. /***/ }),
  22877. /***/ 94820:
  22878. /***/ ((__unused_webpack_module, exports) => {
  22879. "use strict";
  22880. Object.defineProperty(exports, "__esModule", ({ value: true }));
  22881. exports.PerformanceAnalyticsKey = exports.IaCErrorCodes = exports.VALID_RESOURCE_ACTIONS_FOR_FULL_SCAN = exports.VALID_RESOURCE_ACTIONS_FOR_DELTA_SCAN = exports.TerraformPlanScanMode = exports.EngineType = exports.RulesOrigin = exports.VALID_TERRAFORM_FILE_TYPES = exports.VALID_FILE_TYPES = void 0;
  22882. var ValidFileType;
  22883. (function (ValidFileType) {
  22884. ValidFileType["Terraform"] = "tf";
  22885. ValidFileType["JSON"] = "json";
  22886. ValidFileType["YAML"] = "yaml";
  22887. ValidFileType["YML"] = "yml";
  22888. ValidFileType["TFVARS"] = "tfvars";
  22889. })(ValidFileType || (ValidFileType = {}));
  22890. exports.VALID_FILE_TYPES = Object.values(ValidFileType);
  22891. exports.VALID_TERRAFORM_FILE_TYPES = [
  22892. ValidFileType.Terraform,
  22893. ValidFileType.TFVARS,
  22894. ];
  22895. var RulesOrigin;
  22896. (function (RulesOrigin) {
  22897. RulesOrigin["Local"] = "local";
  22898. RulesOrigin["Remote"] = "remote";
  22899. RulesOrigin["Internal"] = "internal";
  22900. })(RulesOrigin = exports.RulesOrigin || (exports.RulesOrigin = {}));
  22901. var EngineType;
  22902. (function (EngineType) {
  22903. EngineType[EngineType["Kubernetes"] = 0] = "Kubernetes";
  22904. EngineType[EngineType["Terraform"] = 1] = "Terraform";
  22905. EngineType[EngineType["CloudFormation"] = 2] = "CloudFormation";
  22906. EngineType[EngineType["ARM"] = 3] = "ARM";
  22907. EngineType[EngineType["Custom"] = 4] = "Custom";
  22908. })(EngineType = exports.EngineType || (exports.EngineType = {}));
  22909. var TerraformPlanScanMode;
  22910. (function (TerraformPlanScanMode) {
  22911. TerraformPlanScanMode["DeltaScan"] = "resource-changes";
  22912. TerraformPlanScanMode["FullScan"] = "planned-values";
  22913. })(TerraformPlanScanMode = exports.TerraformPlanScanMode || (exports.TerraformPlanScanMode = {}));
  22914. // we will be scanning the `create` & `update` actions only.
  22915. exports.VALID_RESOURCE_ACTIONS_FOR_DELTA_SCAN = [
  22916. ['create'],
  22917. ['update'],
  22918. ['create', 'delete'],
  22919. ['delete', 'create'],
  22920. ];
  22921. // scans all actions including 'no-op' in order to iterate on all resources.
  22922. exports.VALID_RESOURCE_ACTIONS_FOR_FULL_SCAN = [
  22923. ['no-op'],
  22924. ...exports.VALID_RESOURCE_ACTIONS_FOR_DELTA_SCAN,
  22925. ];
  22926. // Error codes used for Analytics & Debugging
  22927. // Error names get converted to error string codes
  22928. // Within a single module, increments are in 1.
  22929. // Between modules, increments are in 10, according to the order of execution.
  22930. var IaCErrorCodes;
  22931. (function (IaCErrorCodes) {
  22932. // local-cache errors
  22933. IaCErrorCodes[IaCErrorCodes["FailedToInitLocalCacheError"] = 1000] = "FailedToInitLocalCacheError";
  22934. IaCErrorCodes[IaCErrorCodes["FailedToCleanLocalCacheError"] = 1001] = "FailedToCleanLocalCacheError";
  22935. IaCErrorCodes[IaCErrorCodes["FailedToDownloadRulesError"] = 1002] = "FailedToDownloadRulesError";
  22936. IaCErrorCodes[IaCErrorCodes["FailedToExtractCustomRulesError"] = 1003] = "FailedToExtractCustomRulesError";
  22937. IaCErrorCodes[IaCErrorCodes["InvalidCustomRules"] = 1004] = "InvalidCustomRules";
  22938. IaCErrorCodes[IaCErrorCodes["InvalidCustomRulesPath"] = 1005] = "InvalidCustomRulesPath";
  22939. IaCErrorCodes[IaCErrorCodes["InvalidVarFilePath"] = 1006] = "InvalidVarFilePath";
  22940. // file-loader errors
  22941. IaCErrorCodes[IaCErrorCodes["NoFilesToScanError"] = 1010] = "NoFilesToScanError";
  22942. IaCErrorCodes[IaCErrorCodes["FailedToLoadFileError"] = 1011] = "FailedToLoadFileError";
  22943. IaCErrorCodes[IaCErrorCodes["CurrentWorkingDirectoryTraversalError"] = 1012] = "CurrentWorkingDirectoryTraversalError";
  22944. // file-parser errors
  22945. IaCErrorCodes[IaCErrorCodes["UnsupportedFileTypeError"] = 1020] = "UnsupportedFileTypeError";
  22946. IaCErrorCodes[IaCErrorCodes["InvalidJsonFileError"] = 1021] = "InvalidJsonFileError";
  22947. IaCErrorCodes[IaCErrorCodes["InvalidYamlFileError"] = 1022] = "InvalidYamlFileError";
  22948. IaCErrorCodes[IaCErrorCodes["FailedToDetectJsonConfigError"] = 1023] = "FailedToDetectJsonConfigError";
  22949. IaCErrorCodes[IaCErrorCodes["FailedToDetectYamlConfigError"] = 1024] = "FailedToDetectYamlConfigError";
  22950. // kubernetes-parser errors
  22951. IaCErrorCodes[IaCErrorCodes["MissingRequiredFieldsInKubernetesYamlError"] = 1031] = "MissingRequiredFieldsInKubernetesYamlError";
  22952. IaCErrorCodes[IaCErrorCodes["FailedToParseHelmError"] = 1032] = "FailedToParseHelmError";
  22953. // terraform-file-parser errors
  22954. IaCErrorCodes[IaCErrorCodes["FailedToParseTerraformFileError"] = 1040] = "FailedToParseTerraformFileError";
  22955. // terraform-plan-parser errors
  22956. IaCErrorCodes[IaCErrorCodes["FailedToExtractResourcesInTerraformPlanError"] = 1052] = "FailedToExtractResourcesInTerraformPlanError";
  22957. // file-scanner errors
  22958. IaCErrorCodes[IaCErrorCodes["FailedToBuildPolicyEngine"] = 1060] = "FailedToBuildPolicyEngine";
  22959. IaCErrorCodes[IaCErrorCodes["FailedToExecutePolicyEngine"] = 1061] = "FailedToExecutePolicyEngine";
  22960. // results-formatter errors
  22961. IaCErrorCodes[IaCErrorCodes["FailedToFormatResults"] = 1070] = "FailedToFormatResults";
  22962. IaCErrorCodes[IaCErrorCodes["FailedToExtractLineNumberError"] = 1071] = "FailedToExtractLineNumberError";
  22963. // get-iac-org-settings errors
  22964. IaCErrorCodes[IaCErrorCodes["FailedToGetIacOrgSettingsError"] = 1080] = "FailedToGetIacOrgSettingsError";
  22965. // assert-iac-options-flag
  22966. IaCErrorCodes[IaCErrorCodes["FlagError"] = 1090] = "FlagError";
  22967. IaCErrorCodes[IaCErrorCodes["FlagValueError"] = 1091] = "FlagValueError";
  22968. IaCErrorCodes[IaCErrorCodes["UnsupportedEntitlementFlagError"] = 1092] = "UnsupportedEntitlementFlagError";
  22969. IaCErrorCodes[IaCErrorCodes["FeatureFlagError"] = 1093] = "FeatureFlagError";
  22970. IaCErrorCodes[IaCErrorCodes["InvalidArgumentError"] = 1094] = "InvalidArgumentError";
  22971. // oci-pull errors
  22972. IaCErrorCodes[IaCErrorCodes["FailedToExecuteCustomRulesError"] = 1100] = "FailedToExecuteCustomRulesError";
  22973. IaCErrorCodes[IaCErrorCodes["FailedToPullCustomBundleError"] = 1101] = "FailedToPullCustomBundleError";
  22974. IaCErrorCodes[IaCErrorCodes["FailedToBuildOCIArtifactError"] = 1102] = "FailedToBuildOCIArtifactError";
  22975. IaCErrorCodes[IaCErrorCodes["InvalidRemoteRegistryURLError"] = 1103] = "InvalidRemoteRegistryURLError";
  22976. IaCErrorCodes[IaCErrorCodes["InvalidManifestSchemaVersionError"] = 1104] = "InvalidManifestSchemaVersionError";
  22977. IaCErrorCodes[IaCErrorCodes["UnsupportedFeatureFlagPullError"] = 1105] = "UnsupportedFeatureFlagPullError";
  22978. IaCErrorCodes[IaCErrorCodes["UnsupportedEntitlementPullError"] = 1106] = "UnsupportedEntitlementPullError";
  22979. // drift errors
  22980. IaCErrorCodes[IaCErrorCodes["InvalidServiceError"] = 1110] = "InvalidServiceError";
  22981. // Rules bundle errors.
  22982. IaCErrorCodes[IaCErrorCodes["InvalidUserRulesBundlePathError"] = 1130] = "InvalidUserRulesBundlePathError";
  22983. IaCErrorCodes[IaCErrorCodes["FailedToDownloadRulesBundleError"] = 1131] = "FailedToDownloadRulesBundleError";
  22984. IaCErrorCodes[IaCErrorCodes["FailedToCacheRulesBundleError"] = 1132] = "FailedToCacheRulesBundleError";
  22985. // Unified Policy Engine executable errors.
  22986. IaCErrorCodes[IaCErrorCodes["InvalidUserPolicyEnginePathError"] = 1140] = "InvalidUserPolicyEnginePathError";
  22987. IaCErrorCodes[IaCErrorCodes["FailedToDownloadPolicyEngineError"] = 1141] = "FailedToDownloadPolicyEngineError";
  22988. IaCErrorCodes[IaCErrorCodes["FailedToCachePolicyEngineError"] = 1142] = "FailedToCachePolicyEngineError";
  22989. // Scan errors
  22990. IaCErrorCodes[IaCErrorCodes["PolicyEngineScanError"] = 1150] = "PolicyEngineScanError";
  22991. // snyk-iac-test errors
  22992. IaCErrorCodes[IaCErrorCodes["NoPaths"] = 2000] = "NoPaths";
  22993. IaCErrorCodes[IaCErrorCodes["CwdTraversal"] = 2003] = "CwdTraversal";
  22994. IaCErrorCodes[IaCErrorCodes["NoBundle"] = 2004] = "NoBundle";
  22995. IaCErrorCodes[IaCErrorCodes["OpenBundle"] = 2005] = "OpenBundle";
  22996. IaCErrorCodes[IaCErrorCodes["InvalidSeverityThreshold"] = 2006] = "InvalidSeverityThreshold";
  22997. IaCErrorCodes[IaCErrorCodes["Scan"] = 2100] = "Scan";
  22998. IaCErrorCodes[IaCErrorCodes["UnableToRecognizeInputType"] = 2101] = "UnableToRecognizeInputType";
  22999. IaCErrorCodes[IaCErrorCodes["UnsupportedInputType"] = 2102] = "UnsupportedInputType";
  23000. IaCErrorCodes[IaCErrorCodes["UnableToResolveLocation"] = 2103] = "UnableToResolveLocation";
  23001. IaCErrorCodes[IaCErrorCodes["UnrecognizedFileExtension"] = 2104] = "UnrecognizedFileExtension";
  23002. IaCErrorCodes[IaCErrorCodes["FailedToParseInput"] = 2105] = "FailedToParseInput";
  23003. IaCErrorCodes[IaCErrorCodes["InvalidInput"] = 2106] = "InvalidInput";
  23004. IaCErrorCodes[IaCErrorCodes["UnableToReadFile"] = 2107] = "UnableToReadFile";
  23005. IaCErrorCodes[IaCErrorCodes["UnableToReadDir"] = 2108] = "UnableToReadDir";
  23006. IaCErrorCodes[IaCErrorCodes["UnableToReadStdin"] = 2109] = "UnableToReadStdin";
  23007. IaCErrorCodes[IaCErrorCodes["FailedToLoadRegoAPI"] = 2110] = "FailedToLoadRegoAPI";
  23008. IaCErrorCodes[IaCErrorCodes["FailedToLoadRules"] = 2111] = "FailedToLoadRules";
  23009. IaCErrorCodes[IaCErrorCodes["FailedToCompile"] = 2112] = "FailedToCompile";
  23010. IaCErrorCodes[IaCErrorCodes["UnableToReadPath"] = 2113] = "UnableToReadPath";
  23011. IaCErrorCodes[IaCErrorCodes["NoLoadableInput"] = 2114] = "NoLoadableInput";
  23012. IaCErrorCodes[IaCErrorCodes["FailedToMakeResourcesResolvers"] = 2115] = "FailedToMakeResourcesResolvers";
  23013. IaCErrorCodes[IaCErrorCodes["FailedToShareResults"] = 2200] = "FailedToShareResults";
  23014. })(IaCErrorCodes = exports.IaCErrorCodes || (exports.IaCErrorCodes = {}));
  23015. var PerformanceAnalyticsKey;
  23016. (function (PerformanceAnalyticsKey) {
  23017. PerformanceAnalyticsKey["InitLocalCache"] = "cache-init-ms";
  23018. PerformanceAnalyticsKey["FileLoading"] = "file-loading-ms";
  23019. PerformanceAnalyticsKey["FileParsing"] = "file-parsing-ms";
  23020. PerformanceAnalyticsKey["FileScanning"] = "file-scanning-ms";
  23021. PerformanceAnalyticsKey["OrgSettings"] = "org-settings-ms";
  23022. PerformanceAnalyticsKey["CustomSeverities"] = "custom-severities-ms";
  23023. PerformanceAnalyticsKey["ResultFormatting"] = "results-formatting-ms";
  23024. PerformanceAnalyticsKey["UsageTracking"] = "usage-tracking-ms";
  23025. PerformanceAnalyticsKey["CacheCleanup"] = "cache-cleanup-ms";
  23026. PerformanceAnalyticsKey["Total"] = "total-iac-ms";
  23027. })(PerformanceAnalyticsKey = exports.PerformanceAnalyticsKey || (exports.PerformanceAnalyticsKey = {}));
  23028. /***/ }),
  23029. /***/ 43017:
  23030. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23031. "use strict";
  23032. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23033. exports.copy = void 0;
  23034. const child_process_1 = __webpack_require__(63129);
  23035. const program = {
  23036. darwin: 'pbcopy',
  23037. linux: 'xclip -selection clipboard',
  23038. win32: 'clip',
  23039. }[process.platform];
  23040. function copy(str) {
  23041. return child_process_1.execSync(program, { input: str });
  23042. }
  23043. exports.copy = copy;
  23044. /***/ }),
  23045. /***/ 80079:
  23046. /***/ ((__unused_webpack_module, exports) => {
  23047. "use strict";
  23048. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23049. exports.EXIT_CODES = void 0;
  23050. exports.EXIT_CODES = {
  23051. VULNS_FOUND: 1,
  23052. ERROR: 2,
  23053. NO_SUPPORTED_PROJECTS_DETECTED: 3,
  23054. };
  23055. /***/ }),
  23056. /***/ 33402:
  23057. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23058. "use strict";
  23059. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23060. const unexpected_error_1 = __webpack_require__(89088);
  23061. const exit_codes_1 = __webpack_require__(80079);
  23062. /**
  23063. * By using a dynamic import, we can add error handlers before evaluating any
  23064. * further modules. This way, if a module has errors, it'll be caught and
  23065. * handled as we expect.
  23066. */
  23067. unexpected_error_1.callHandlingUnexpectedErrors(async () => {
  23068. const { main } = await Promise.resolve().then(() => __webpack_require__(64514));
  23069. await main();
  23070. }, exit_codes_1.EXIT_CODES.ERROR);
  23071. /***/ }),
  23072. /***/ 64514:
  23073. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23074. "use strict";
  23075. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23076. exports.main = void 0;
  23077. const Debug = __webpack_require__(15158);
  23078. const pathLib = __webpack_require__(85622);
  23079. // import args as a first internal module
  23080. const args_1 = __webpack_require__(94765);
  23081. // parse args as a first thing; argsLib modifies global namespace
  23082. // therefore it is better to do it as a first thing to prevent bugs
  23083. // when modules use this global setting during their require phase
  23084. // TODO(code): remove once https://app.stepsize.com/issue/c2f6253e-7240-436f-943c-23a897558156/2-http-libraries-in-cli is solved
  23085. const globalArgs = args_1.args(process.argv);
  23086. // assert supported node runtime version
  23087. const runtime = __webpack_require__(76377);
  23088. // require analytics as soon as possible to start measuring execution time
  23089. const analytics = __webpack_require__(82744);
  23090. const alerts = __webpack_require__(21696);
  23091. const sln = __webpack_require__(87044);
  23092. const copy_1 = __webpack_require__(43017);
  23093. const spinner_1 = __webpack_require__(86766);
  23094. const errors = __webpack_require__(79407);
  23095. const ansiEscapes = __webpack_require__(45018);
  23096. const errors_1 = __webpack_require__(55191);
  23097. const types_1 = __webpack_require__(94820);
  23098. const strip_ansi_1 = __webpack_require__(76003);
  23099. const exclude_flag_invalid_input_1 = __webpack_require__(40159);
  23100. const modes_1 = __webpack_require__(60615);
  23101. const json_file_output_bad_input_error_1 = __webpack_require__(63426);
  23102. const json_file_output_1 = __webpack_require__(83421);
  23103. const empty_sarif_output_error_1 = __webpack_require__(53731);
  23104. const invalid_detection_depth_value_1 = __webpack_require__(80401);
  23105. const utils_1 = __webpack_require__(61721);
  23106. const exit_codes_1 = __webpack_require__(80079);
  23107. const debug = Debug('snyk');
  23108. async function runCommand(args) {
  23109. const commandResult = await args.method(...args.options._);
  23110. const res = analytics.addDataAndSend({
  23111. args: utils_1.obfuscateArgs(args.options._),
  23112. command: args.command,
  23113. org: args.options.org,
  23114. });
  23115. if (!commandResult) {
  23116. return;
  23117. }
  23118. const result = commandResult.toString();
  23119. if (result && !args.options.quiet) {
  23120. if (args.options.copy) {
  23121. copy_1.copy(result);
  23122. console.log('Result copied to clipboard');
  23123. }
  23124. else {
  23125. console.log(result);
  23126. }
  23127. }
  23128. // also save the json (in error.json) to file if option is set
  23129. if (args.command === 'test') {
  23130. const jsonResults = commandResult.getJsonResult();
  23131. await saveResultsToFile(args.options, 'json', jsonResults);
  23132. const sarifResults = commandResult.getSarifResult();
  23133. await saveResultsToFile(args.options, 'sarif', sarifResults);
  23134. }
  23135. return res;
  23136. }
  23137. async function handleError(args, error) {
  23138. var _a;
  23139. spinner_1.spinner.clearAll();
  23140. if (typeof error === 'object') {
  23141. error.stack = error.nestedStack || error.stack;
  23142. error.userMessage = error.nestedUserMessage || error.userMessage;
  23143. error.code = error.nestedCode || error.code;
  23144. error.strCode = error.nestedStrCode || error.strCode;
  23145. error.userMessage = error.nestedUserMessage || error.userMessage;
  23146. }
  23147. let command = 'bad-command';
  23148. let exitCode = exit_codes_1.EXIT_CODES.ERROR;
  23149. const noSupportedManifestsFound = (_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('Could not detect supported target files in');
  23150. const noSupportedSastFiles = error instanceof errors_1.NoSupportedSastFiles;
  23151. const noSupportedIaCFiles = error.code === types_1.IaCErrorCodes.NoFilesToScanError;
  23152. const noSupportedProjectsDetected = noSupportedManifestsFound || noSupportedSastFiles || noSupportedIaCFiles;
  23153. if (noSupportedProjectsDetected) {
  23154. exitCode = exit_codes_1.EXIT_CODES.NO_SUPPORTED_PROJECTS_DETECTED;
  23155. }
  23156. const vulnsFound = error.code === 'VULNS';
  23157. if (vulnsFound) {
  23158. // this isn't a bad command, so we won't record it as such
  23159. command = args.command;
  23160. exitCode = exit_codes_1.EXIT_CODES.VULNS_FOUND;
  23161. }
  23162. if (args.options.debug && !args.options.json) {
  23163. const output = vulnsFound ? error.message : error.stack;
  23164. console.log(output);
  23165. }
  23166. else if (args.options.json &&
  23167. !(error instanceof errors_1.UnsupportedOptionCombinationError)) {
  23168. const output = vulnsFound
  23169. ? error.message
  23170. : strip_ansi_1.default(error.json || error.stack);
  23171. console.log(output);
  23172. }
  23173. else {
  23174. if (!args.options.quiet) {
  23175. const result = errors.message(error);
  23176. if (args.options.copy) {
  23177. copy_1.copy(result);
  23178. console.log('Result copied to clipboard');
  23179. }
  23180. else {
  23181. if (`${error.code}`.indexOf('AUTH_') === 0) {
  23182. // remove the last few lines
  23183. const erase = ansiEscapes.eraseLines(4);
  23184. process.stdout.write(erase);
  23185. }
  23186. console.log(result);
  23187. }
  23188. }
  23189. }
  23190. await saveResultsToFile(args.options, 'json', error.jsonStringifiedResults);
  23191. await saveResultsToFile(args.options, 'sarif', error.sarifStringifiedResults);
  23192. const analyticsError = vulnsFound
  23193. ? {
  23194. stack: error.jsonNoVulns,
  23195. code: error.code,
  23196. message: 'Vulnerabilities found',
  23197. }
  23198. : {
  23199. stack: error.stack,
  23200. code: error.code,
  23201. message: error.message,
  23202. };
  23203. if (!vulnsFound && !error.stack) {
  23204. // log errors that are not error objects
  23205. analytics.add('error', true);
  23206. analytics.add('command', args.command);
  23207. }
  23208. else {
  23209. analytics.add('error-message', analyticsError.message);
  23210. // Note that error.stack would also contain the error message
  23211. // (see https://nodejs.org/api/errors.html#errors_error_stack)
  23212. analytics.add('error', analyticsError.stack);
  23213. analytics.add('error-code', error.code);
  23214. analytics.add('error-str-code', error.strCode);
  23215. analytics.add('command', args.command);
  23216. }
  23217. const res = analytics.addDataAndSend({
  23218. args: utils_1.obfuscateArgs(args.options._),
  23219. command,
  23220. org: args.options.org,
  23221. });
  23222. return { res, exitCode };
  23223. }
  23224. function getFullPath(filepathFragment) {
  23225. if (pathLib.isAbsolute(filepathFragment)) {
  23226. return filepathFragment;
  23227. }
  23228. else {
  23229. const fullPath = pathLib.join(process.cwd(), filepathFragment);
  23230. return fullPath;
  23231. }
  23232. }
  23233. async function saveJsonResultsToFile(stringifiedJson, jsonOutputFile) {
  23234. if (!jsonOutputFile) {
  23235. console.error('empty jsonOutputFile');
  23236. return;
  23237. }
  23238. if (jsonOutputFile.constructor.name !== String.name) {
  23239. console.error('--json-output-file should be a filename path');
  23240. return;
  23241. }
  23242. await json_file_output_1.saveJsonToFileCreatingDirectoryIfRequired(jsonOutputFile, stringifiedJson);
  23243. }
  23244. function checkRuntime() {
  23245. if (!runtime.isSupported(process.versions.node)) {
  23246. console.error(`Node.js version ${process.versions.node} is an unsupported Node.js ` +
  23247. `runtime! Supported runtime range is '${runtime.supportedRange}'`);
  23248. console.error('Please upgrade your Node.js runtime. The last version of Snyk CLI that supports Node.js v8 is v1.454.0.');
  23249. process.exit(exit_codes_1.EXIT_CODES.ERROR);
  23250. }
  23251. }
  23252. async function main() {
  23253. checkRuntime();
  23254. let res;
  23255. let failed = false;
  23256. let exitCode = exit_codes_1.EXIT_CODES.ERROR;
  23257. try {
  23258. modes_1.modeValidation(globalArgs);
  23259. // TODO: fix this, we do transformation to options and teh type doesn't reflect it
  23260. validateUnsupportedOptionCombinations(globalArgs.options);
  23261. if (globalArgs.options['group-issues'] && globalArgs.options['iac']) {
  23262. throw new errors_1.UnsupportedOptionCombinationError([
  23263. '--group-issues is currently not supported for Snyk IaC.',
  23264. ]);
  23265. }
  23266. if (globalArgs.options['group-issues'] &&
  23267. !globalArgs.options['json'] &&
  23268. !globalArgs.options['json-file-output']) {
  23269. throw new errors_1.UnsupportedOptionCombinationError([
  23270. 'JSON output is required to use --group-issues, try adding --json.',
  23271. ]);
  23272. }
  23273. if (globalArgs.options.file &&
  23274. typeof globalArgs.options.file === 'string' &&
  23275. globalArgs.options.file.match(/\.sln$/)) {
  23276. if (globalArgs.options['project-name']) {
  23277. throw new errors_1.UnsupportedOptionCombinationError([
  23278. 'file=*.sln',
  23279. 'project-name',
  23280. ]);
  23281. }
  23282. sln.updateArgs(globalArgs);
  23283. }
  23284. else if (typeof globalArgs.options.file === 'boolean') {
  23285. throw new errors_1.FileFlagBadInputError();
  23286. }
  23287. if (typeof globalArgs.options.detectionDepth !== 'undefined' &&
  23288. (globalArgs.options.detectionDepth <= 0 ||
  23289. Number.isNaN(globalArgs.options.detectionDepth))) {
  23290. throw new invalid_detection_depth_value_1.InvalidDetectionDepthValue();
  23291. }
  23292. validateUnsupportedSarifCombinations(globalArgs);
  23293. validateOutputFile(globalArgs.options, 'json', new json_file_output_bad_input_error_1.JsonFileOutputBadInputError());
  23294. validateOutputFile(globalArgs.options, 'sarif', new empty_sarif_output_error_1.SarifFileOutputEmptyError());
  23295. res = await runCommand(globalArgs);
  23296. }
  23297. catch (error) {
  23298. failed = true;
  23299. const response = await handleError(globalArgs, error);
  23300. res = response.res;
  23301. exitCode = response.exitCode;
  23302. }
  23303. if (!globalArgs.options.json) {
  23304. const alertsMessage = alerts.displayAlerts();
  23305. if (alertsMessage) {
  23306. console.warn(alertsMessage);
  23307. }
  23308. }
  23309. if (!process.env.TAP && failed) {
  23310. debug('Exit code: ' + exitCode);
  23311. process.exitCode = exitCode;
  23312. }
  23313. return res;
  23314. }
  23315. exports.main = main;
  23316. function validateUnsupportedOptionCombinations(options) {
  23317. const unsupportedAllProjectsCombinations = {
  23318. 'project-name': 'project-name',
  23319. file: 'file',
  23320. yarnWorkspaces: 'yarn-workspaces',
  23321. packageManager: 'package-manager',
  23322. docker: 'docker',
  23323. allSubProjects: 'all-sub-projects',
  23324. };
  23325. const unsupportedYarnWorkspacesCombinations = {
  23326. 'project-name': 'project-name',
  23327. file: 'file',
  23328. packageManager: 'package-manager',
  23329. docker: 'docker',
  23330. allSubProjects: 'all-sub-projects',
  23331. };
  23332. if (options.scanAllUnmanaged && options.file) {
  23333. throw new errors_1.UnsupportedOptionCombinationError(['file', 'scan-all-unmanaged']);
  23334. }
  23335. if (options.allProjects) {
  23336. for (const option in unsupportedAllProjectsCombinations) {
  23337. if (options[option]) {
  23338. throw new errors_1.UnsupportedOptionCombinationError([
  23339. unsupportedAllProjectsCombinations[option],
  23340. 'all-projects',
  23341. ]);
  23342. }
  23343. }
  23344. }
  23345. if (options.yarnWorkspaces) {
  23346. for (const option in unsupportedYarnWorkspacesCombinations) {
  23347. if (options[option]) {
  23348. throw new errors_1.UnsupportedOptionCombinationError([
  23349. unsupportedAllProjectsCombinations[option],
  23350. 'yarn-workspaces',
  23351. ]);
  23352. }
  23353. }
  23354. }
  23355. if (options.exclude) {
  23356. if (!(options.allProjects || options.yarnWorkspaces)) {
  23357. throw new errors_1.MissingOptionError('--exclude', [
  23358. '--yarn-workspaces',
  23359. '--all-projects',
  23360. ]);
  23361. }
  23362. if (typeof options.exclude !== 'string') {
  23363. throw new errors_1.ExcludeFlagBadInputError();
  23364. }
  23365. if (options.exclude.indexOf(pathLib.sep) > -1) {
  23366. throw new exclude_flag_invalid_input_1.ExcludeFlagInvalidInputError();
  23367. }
  23368. }
  23369. }
  23370. function validateUnsupportedSarifCombinations(args) {
  23371. if (args.options['json-file-output'] && args.command !== 'test') {
  23372. throw new errors_1.UnsupportedOptionCombinationError([
  23373. args.command,
  23374. 'json-file-output',
  23375. ]);
  23376. }
  23377. if (args.options['sarif'] && args.command !== 'test') {
  23378. throw new errors_1.UnsupportedOptionCombinationError([args.command, 'sarif']);
  23379. }
  23380. if (args.options['sarif'] && args.options['json']) {
  23381. throw new errors_1.UnsupportedOptionCombinationError([
  23382. args.command,
  23383. 'sarif',
  23384. 'json',
  23385. ]);
  23386. }
  23387. if (args.options['sarif-file-output'] && args.command !== 'test') {
  23388. throw new errors_1.UnsupportedOptionCombinationError([
  23389. args.command,
  23390. 'sarif-file-output',
  23391. ]);
  23392. }
  23393. if (args.options['sarif'] &&
  23394. args.options['docker'] &&
  23395. !args.options['file']) {
  23396. throw new errors_1.MissingOptionError('sarif', ['--file']);
  23397. }
  23398. if (args.options['sarif-file-output'] &&
  23399. args.options['docker'] &&
  23400. !args.options['file']) {
  23401. throw new errors_1.MissingOptionError('sarif-file-output', ['--file']);
  23402. }
  23403. }
  23404. async function saveResultsToFile(options, outputType, jsonResults) {
  23405. const flag = `${outputType}-file-output`;
  23406. const outputFile = options[flag];
  23407. if (outputFile && jsonResults) {
  23408. const outputFileStr = outputFile;
  23409. const fullOutputFilePath = getFullPath(outputFileStr);
  23410. await saveJsonResultsToFile(strip_ansi_1.default(jsonResults), fullOutputFilePath);
  23411. }
  23412. }
  23413. function validateOutputFile(options, outputType, error) {
  23414. const fileOutputValue = options[`${outputType}-file-output`];
  23415. if (fileOutputValue === undefined) {
  23416. return;
  23417. }
  23418. if (!fileOutputValue || typeof fileOutputValue !== 'string') {
  23419. throw error;
  23420. }
  23421. // On Windows, seems like quotes get passed in
  23422. if (fileOutputValue === "''" || fileOutputValue === '""') {
  23423. throw error;
  23424. }
  23425. }
  23426. /***/ }),
  23427. /***/ 60615:
  23428. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23429. "use strict";
  23430. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23431. exports.displayModeHelp = exports.modeValidation = exports.parseMode = void 0;
  23432. const abbrev = __webpack_require__(99989);
  23433. const errors_1 = __webpack_require__(55191);
  23434. const modes = {
  23435. unmanaged: {
  23436. allowedCommands: ['test', 'monitor'],
  23437. config: (args) => {
  23438. args['unmanaged'] = true;
  23439. return args;
  23440. },
  23441. },
  23442. container: {
  23443. allowedCommands: ['test', 'monitor'],
  23444. config: (args) => {
  23445. args['docker'] = true;
  23446. return args;
  23447. },
  23448. },
  23449. iac: {
  23450. allowedCommands: ['test', 'update-exclude-policy', 'describe'],
  23451. config: (args) => {
  23452. args['iac'] = true;
  23453. return args;
  23454. },
  23455. },
  23456. code: {
  23457. allowedCommands: ['test'],
  23458. config: (args) => {
  23459. args['code'] = true;
  23460. return args;
  23461. },
  23462. },
  23463. };
  23464. function parseMode(mode, args) {
  23465. if (isValidMode(mode)) {
  23466. const command = args._[0];
  23467. if (isValidCommand(mode, command)) {
  23468. configArgs(mode, args);
  23469. mode = args._.shift();
  23470. }
  23471. }
  23472. return mode;
  23473. }
  23474. exports.parseMode = parseMode;
  23475. function modeValidation(args) {
  23476. const mode = args['command'];
  23477. const commands = args['options']._;
  23478. if (isValidMode(mode) && commands.length <= 1) {
  23479. const allowed = modes[mode].allowedCommands
  23480. .join(', ')
  23481. .replace(/, ([^,]*)$/, ' or $1');
  23482. const message = `use snyk ${mode} with ${allowed}`;
  23483. throw new errors_1.CustomError(message);
  23484. }
  23485. const command = commands[0];
  23486. if (isValidMode(mode) && !isValidCommand(mode, command)) {
  23487. const notSupported = [mode, command];
  23488. throw new errors_1.UnsupportedOptionCombinationError(notSupported);
  23489. }
  23490. }
  23491. exports.modeValidation = modeValidation;
  23492. function displayModeHelp(mode, args) {
  23493. if (isValidMode(mode)) {
  23494. const command = args._[0];
  23495. if (!isValidCommand(mode, command) || args['help']) {
  23496. args['help'] = mode;
  23497. }
  23498. }
  23499. return mode;
  23500. }
  23501. exports.displayModeHelp = displayModeHelp;
  23502. function isValidMode(mode) {
  23503. return Object.keys(modes).includes(mode);
  23504. }
  23505. function isValidCommand(mode, command) {
  23506. const aliases = abbrev(modes[mode].allowedCommands);
  23507. return Object.keys(aliases).includes(command);
  23508. }
  23509. function configArgs(mode, args) {
  23510. return modes[mode].config(args);
  23511. }
  23512. /***/ }),
  23513. /***/ 76377:
  23514. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23515. "use strict";
  23516. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23517. exports.isSupported = exports.supportedRange = void 0;
  23518. const semver_1 = __webpack_require__(36625);
  23519. const MIN_RUNTIME = '12.0.0';
  23520. exports.supportedRange = `>= ${MIN_RUNTIME}`;
  23521. function isSupported(runtimeVersion) {
  23522. return semver_1.gte(runtimeVersion, MIN_RUNTIME);
  23523. }
  23524. exports.isSupported = isSupported;
  23525. /***/ }),
  23526. /***/ 21696:
  23527. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23528. "use strict";
  23529. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23530. exports.displayAlerts = exports.hasAlert = exports.registerAlerts = void 0;
  23531. const chalk_1 = __webpack_require__(32589);
  23532. const registeredAlerts = [];
  23533. function registerAlerts(alerts) {
  23534. if (!alerts) {
  23535. return;
  23536. }
  23537. alerts.forEach((alert) => {
  23538. if (!hasAlert(alert.name)) {
  23539. registeredAlerts.push(alert);
  23540. }
  23541. });
  23542. }
  23543. exports.registerAlerts = registerAlerts;
  23544. function hasAlert(name) {
  23545. return registeredAlerts.some((a) => a.name === name);
  23546. }
  23547. exports.hasAlert = hasAlert;
  23548. function displayAlerts() {
  23549. let res = '';
  23550. const sep = '\n';
  23551. registeredAlerts.forEach((alert) => {
  23552. res += sep;
  23553. if (alert.type === 'warning') {
  23554. res += chalk_1.default.bold.red(alert.msg);
  23555. }
  23556. else {
  23557. res += chalk_1.default.yellow(alert.msg);
  23558. }
  23559. });
  23560. return res;
  23561. }
  23562. exports.displayAlerts = displayAlerts;
  23563. /***/ }),
  23564. /***/ 52984:
  23565. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23566. "use strict";
  23567. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23568. exports.getStandardData = void 0;
  23569. const version = __webpack_require__(38217);
  23570. const uuid_1 = __webpack_require__(42277);
  23571. const os = __webpack_require__(12087);
  23572. const crypto = __webpack_require__(76417);
  23573. const is_ci_1 = __webpack_require__(10090);
  23574. const sources_1 = __webpack_require__(71653);
  23575. const metrics_1 = __webpack_require__(32971);
  23576. const createDebug = __webpack_require__(15158);
  23577. const osName = __webpack_require__(7719);
  23578. const debug = createDebug('snyk');
  23579. const START_TIME = Date.now();
  23580. function getMetrics(durationMs) {
  23581. try {
  23582. const networkTime = metrics_1.MetricsCollector.NETWORK_TIME.getTotal();
  23583. const cpuTime = durationMs - networkTime;
  23584. metrics_1.MetricsCollector.CPU_TIME.createInstance().setValue(cpuTime);
  23585. return metrics_1.MetricsCollector.getAllMetrics();
  23586. }
  23587. catch (err) {
  23588. debug('Error with metrics', err);
  23589. }
  23590. }
  23591. async function getStandardData(args) {
  23592. const isStandalone = version.isStandaloneBuild();
  23593. const snykVersion = version.getVersion();
  23594. const seed = uuid_1.v4();
  23595. const shasum = crypto.createHash('sha1');
  23596. const durationMs = Date.now() - START_TIME;
  23597. const metrics = getMetrics(durationMs);
  23598. const data = {
  23599. os: osName(os.platform(), os.release()),
  23600. osPlatform: os.platform(),
  23601. osRelease: os.release(),
  23602. osArch: os.arch(),
  23603. version: snykVersion,
  23604. nodeVersion: process.version,
  23605. standalone: isStandalone,
  23606. integrationName: sources_1.getIntegrationName(args),
  23607. integrationVersion: sources_1.getIntegrationVersion(args),
  23608. integrationEnvironment: sources_1.getIntegrationEnvironment(args),
  23609. integrationEnvironmentVersion: sources_1.getIntegrationEnvironmentVersion(args),
  23610. id: shasum.update(seed).digest('hex'),
  23611. ci: is_ci_1.isCI(),
  23612. durationMs,
  23613. metrics,
  23614. };
  23615. return data;
  23616. }
  23617. exports.getStandardData = getStandardData;
  23618. /***/ }),
  23619. /***/ 82744:
  23620. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23621. "use strict";
  23622. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23623. exports.add = exports.allowAnalytics = exports.addDataAndSend = void 0;
  23624. const createDebug = __webpack_require__(15158);
  23625. const strip_ansi_1 = __webpack_require__(76003);
  23626. const api_token_1 = __webpack_require__(95181);
  23627. const config_1 = __webpack_require__(25425);
  23628. const request_1 = __webpack_require__(52050);
  23629. const user_config_1 = __webpack_require__(28137);
  23630. const getStandardData_1 = __webpack_require__(52984);
  23631. // Add flags whose values should be redacted in analytics here.
  23632. // TODO make this less error-prone by baking the concept of sensitivity into the
  23633. // flag-parsing code, but this is a start.
  23634. const sensitiveFlags = [
  23635. 'tfc-token',
  23636. 'azurerm-account-key',
  23637. 'fetch-tfstate-headers',
  23638. ];
  23639. const debug = createDebug('snyk');
  23640. const metadata = {};
  23641. // analytics module is required at the beginning of the CLI run cycle
  23642. /**
  23643. *
  23644. * @param data the data to merge into that data which has been staged thus far (with the {@link add} function)
  23645. * and then sent to the backend.
  23646. */
  23647. function addDataAndSend(data) {
  23648. if (!data) {
  23649. data = {};
  23650. }
  23651. // merge any new data with data we picked up along the way
  23652. if (Array.isArray(data.args)) {
  23653. // this is an overhang from the cli/args.js and we don't want it
  23654. delete (data.args.slice(-1).pop() || {})._;
  23655. data.args.forEach((argObj) => {
  23656. if (typeof argObj === 'object') {
  23657. Object.keys(argObj).forEach((field) => {
  23658. if (sensitiveFlags.includes(field)) {
  23659. argObj[field] = 'REDACTED';
  23660. }
  23661. });
  23662. }
  23663. });
  23664. }
  23665. if (Object.keys(metadata).length) {
  23666. data.metadata = metadata;
  23667. }
  23668. return postAnalytics(data);
  23669. }
  23670. exports.addDataAndSend = addDataAndSend;
  23671. function allowAnalytics() {
  23672. if (user_config_1.config.get('disable-analytics') || config_1.default.DISABLE_ANALYTICS) {
  23673. return false;
  23674. }
  23675. else {
  23676. return true;
  23677. }
  23678. }
  23679. exports.allowAnalytics = allowAnalytics;
  23680. /**
  23681. * Actually send the analytics to the backend. This can be used standalone to send only the data
  23682. * given by the data parameter, or called from {@link addDataAndSend}.
  23683. * @param customData the analytics data to send to the backend.
  23684. */
  23685. async function postAnalytics(customData) {
  23686. // if the user opt'ed out of analytics, then let's bail out early
  23687. // ths applies to all sending to protect user's privacy
  23688. if (!allowAnalytics()) {
  23689. debug('analytics disabled');
  23690. return Promise.resolve();
  23691. }
  23692. try {
  23693. const standardData = await getStandardData_1.getStandardData(customData.args);
  23694. const analyticsData = {
  23695. ...customData,
  23696. ...standardData,
  23697. };
  23698. debug('analytics', JSON.stringify(analyticsData, null, ' '));
  23699. const headers = {};
  23700. if (api_token_1.someTokenExists()) {
  23701. headers['authorization'] = api_token_1.getAuthHeader();
  23702. }
  23703. const queryStringParams = {};
  23704. if (analyticsData.org) {
  23705. queryStringParams['org'] = analyticsData.org;
  23706. }
  23707. const queryString = Object.keys(queryStringParams).length > 0 ? queryStringParams : undefined;
  23708. const res = await request_1.makeRequest({
  23709. body: {
  23710. data: analyticsData,
  23711. },
  23712. qs: queryString,
  23713. url: config_1.default.API + '/analytics/cli',
  23714. json: true,
  23715. method: 'post',
  23716. headers: headers,
  23717. });
  23718. return res;
  23719. }
  23720. catch (err) {
  23721. debug('analytics', err); // this swallows the analytics error
  23722. }
  23723. }
  23724. /**
  23725. * Adds a key-value pair to the analytics data `metadata` field. This doesn't send the analytics, just stages it for
  23726. * sending later (via the {@link addDataAndSend} function).
  23727. * @param key
  23728. * @param value
  23729. */
  23730. function add(key, value) {
  23731. if (typeof value === 'string') {
  23732. value = strip_ansi_1.default(value);
  23733. }
  23734. if (metadata[key]) {
  23735. switch (key) {
  23736. case 'iac-metrics':
  23737. break;
  23738. case 'iac-type':
  23739. if (typeof value === 'object') {
  23740. for (const type in value) {
  23741. if (metadata[key][type]) {
  23742. for (const metric in value[type]) {
  23743. metadata[key][type][metric] &&
  23744. typeof value[type][metric] === 'number'
  23745. ? (metadata[key][type][metric] += value[type][metric])
  23746. : (metadata[key][type][metric] = value[type][metric]);
  23747. }
  23748. }
  23749. else {
  23750. metadata[key][type] = value[type];
  23751. }
  23752. }
  23753. }
  23754. break;
  23755. default:
  23756. if (typeof value === 'number' && typeof metadata[key] === 'number') {
  23757. metadata[key] += value;
  23758. }
  23759. else {
  23760. if (!Array.isArray(metadata[key])) {
  23761. metadata[key] = [metadata[key]];
  23762. }
  23763. Array.isArray(value)
  23764. ? metadata[key].push(...value)
  23765. : metadata[key].push(value);
  23766. }
  23767. }
  23768. }
  23769. else {
  23770. metadata[key] = value;
  23771. }
  23772. }
  23773. exports.add = add;
  23774. /***/ }),
  23775. /***/ 71653:
  23776. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23777. "use strict";
  23778. /*
  23779. We are collecting Snyk CLI usage in our official integrations
  23780. We distinguish them by either:
  23781. - Setting SNYK_INTEGRATION_NAME or SNYK_INTEGRATION_VERSION in environment when CLI is run
  23782. - passing an --integration-name or --integration-version flags on CLI invocation
  23783. Integration name is validated with a list
  23784. */
  23785. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23786. exports.isInstalled = exports.validateHomebrew = exports.isHomebrew = exports.validateScoopManifestFile = exports.isScoop = exports.getIntegrationEnvironmentVersion = exports.getIntegrationEnvironment = exports.getIntegrationVersion = exports.getIntegrationName = exports.INTEGRATION_ENVIRONMENT_VERSION_ENVVAR = exports.INTEGRATION_ENVIRONMENT_ENVVAR = exports.INTEGRATION_VERSION_ENVVAR = exports.INTEGRATION_NAME_ENVVAR = void 0;
  23787. const child_process_1 = __webpack_require__(63129);
  23788. const createDebug = __webpack_require__(15158);
  23789. const fs = __webpack_require__(35747);
  23790. const path_1 = __webpack_require__(85622);
  23791. const debug = createDebug('snyk');
  23792. exports.INTEGRATION_NAME_ENVVAR = 'SNYK_INTEGRATION_NAME';
  23793. exports.INTEGRATION_VERSION_ENVVAR = 'SNYK_INTEGRATION_VERSION';
  23794. exports.INTEGRATION_ENVIRONMENT_ENVVAR = 'SNYK_INTEGRATION_ENVIRONMENT';
  23795. exports.INTEGRATION_ENVIRONMENT_VERSION_ENVVAR = 'SNYK_INTEGRATION_ENVIRONMENT_VERSION';
  23796. var TrackedIntegration;
  23797. (function (TrackedIntegration) {
  23798. // tracked by passing envvar on CLI invocation
  23799. TrackedIntegration["HOMEBREW"] = "HOMEBREW";
  23800. TrackedIntegration["SCOOP"] = "SCOOP";
  23801. // Our Docker images - tracked by passing envvar on CLI invocation
  23802. TrackedIntegration["DOCKER_SNYK_CLI"] = "DOCKER_SNYK_CLI";
  23803. TrackedIntegration["DOCKER_SNYK"] = "DOCKER_SNYK";
  23804. // IDE plugins - tracked by passing flag or envvar on CLI invocation
  23805. TrackedIntegration["JETBRAINS_IDE"] = "JETBRAINS_IDE";
  23806. TrackedIntegration["ECLIPSE"] = "ECLIPSE";
  23807. TrackedIntegration["VISUAL_STUDIO"] = "VISUAL_STUDIO";
  23808. TrackedIntegration["VS_CODE"] = "VS_CODE";
  23809. TrackedIntegration["VS_CODE_VULN_COST"] = "VS_CODE_VULN_COST";
  23810. // CI - tracked by passing flag or envvar on CLI invocation
  23811. TrackedIntegration["JENKINS"] = "JENKINS";
  23812. TrackedIntegration["TEAMCITY"] = "TEAMCITY";
  23813. TrackedIntegration["BITBUCKET_PIPELINES"] = "BITBUCKET_PIPELINES";
  23814. TrackedIntegration["AZURE_PIPELINES"] = "AZURE_PIPELINES";
  23815. TrackedIntegration["CIRCLECI_ORB"] = "CIRCLECI_ORB";
  23816. TrackedIntegration["GITHUB_ACTIONS"] = "GITHUB_ACTIONS";
  23817. TrackedIntegration["MAVEN_PLUGIN"] = "MAVEN_PLUGIN";
  23818. TrackedIntegration["AWS_CODEPIPELINE"] = "AWS_CODEPIPELINE";
  23819. // Partner integrations - tracked by passing envvar on CLI invocation
  23820. TrackedIntegration["DOCKER_DESKTOP"] = "DOCKER_DESKTOP";
  23821. // DevRel integrations and plugins
  23822. // Netlify plugin: https://github.com/snyk-labs/netlify-plugin-snyk
  23823. TrackedIntegration["NETLIFY_PLUGIN"] = "NETLIFY_PLUGIN";
  23824. // CLI_V1_PLUGIN integration
  23825. TrackedIntegration["CLI_V1_PLUGIN"] = "CLI_V1_PLUGIN";
  23826. })(TrackedIntegration || (TrackedIntegration = {}));
  23827. exports.getIntegrationName = (args) => {
  23828. var _a;
  23829. const maybeHomebrew = isHomebrew() ? 'HOMEBREW' : '';
  23830. const maybeScoop = isScoop() ? 'SCOOP' : '';
  23831. const integrationName = (((_a = args[0]) === null || _a === void 0 ? void 0 : _a.integrationName) || // Integration details passed through CLI flag
  23832. process.env[exports.INTEGRATION_NAME_ENVVAR] ||
  23833. maybeHomebrew ||
  23834. maybeScoop ||
  23835. '').toUpperCase();
  23836. if (integrationName in TrackedIntegration) {
  23837. return integrationName;
  23838. }
  23839. return '';
  23840. };
  23841. exports.getIntegrationVersion = (args) => {
  23842. var _a;
  23843. return ((_a = args[0]) === null || _a === void 0 ? void 0 : _a.integrationVersion) ||
  23844. process.env[exports.INTEGRATION_VERSION_ENVVAR] ||
  23845. '';
  23846. };
  23847. exports.getIntegrationEnvironment = (args) => {
  23848. var _a;
  23849. return ((_a = args[0]) === null || _a === void 0 ? void 0 : _a.integrationEnvironment) ||
  23850. process.env[exports.INTEGRATION_ENVIRONMENT_ENVVAR] ||
  23851. '';
  23852. };
  23853. exports.getIntegrationEnvironmentVersion = (args) => {
  23854. var _a;
  23855. return ((_a = args[0]) === null || _a === void 0 ? void 0 : _a.integrationEnvironmentVersion) ||
  23856. process.env[exports.INTEGRATION_ENVIRONMENT_VERSION_ENVVAR] ||
  23857. '';
  23858. };
  23859. function isScoop() {
  23860. const currentProcessPath = process.execPath;
  23861. const looksLikeScoop = currentProcessPath.includes('snyk-win.exe') &&
  23862. currentProcessPath.includes('scoop');
  23863. if (looksLikeScoop) {
  23864. return validateScoopManifestFile(currentProcessPath);
  23865. }
  23866. else {
  23867. return false;
  23868. }
  23869. }
  23870. exports.isScoop = isScoop;
  23871. function validateScoopManifestFile(snykExecutablePath) {
  23872. // If this really is installed with scoop, there should be a `manifest.json` file adjacent to the running CLI executable (`snyk-win.exe`) which
  23873. // we can look at for further validation that this really is from scoop.
  23874. try {
  23875. const snykScoopManifiestPath = snykExecutablePath.replace('snyk-win.exe', 'manifest.json');
  23876. if (fs.existsSync(snykScoopManifiestPath)) {
  23877. const manifestJson = JSON.parse(fs.readFileSync(snykScoopManifiestPath, 'utf8'));
  23878. const url = manifestJson.url;
  23879. if (url.startsWith('https://github.com/snyk/snyk') &&
  23880. url.endsWith('snyk-win.exe')) {
  23881. return true;
  23882. }
  23883. }
  23884. }
  23885. catch (error) {
  23886. debug('Error validating scoop manifest file', error);
  23887. }
  23888. return false;
  23889. }
  23890. exports.validateScoopManifestFile = validateScoopManifestFile;
  23891. function isHomebrew() {
  23892. const currentProcessPath = process.execPath;
  23893. const isHomebrewPath = currentProcessPath.includes('/Cellar/snyk/');
  23894. if (isHomebrewPath) {
  23895. return validateHomebrew(currentProcessPath);
  23896. }
  23897. else {
  23898. return false;
  23899. }
  23900. }
  23901. exports.isHomebrew = isHomebrew;
  23902. function validateHomebrew(snykExecutablePath) {
  23903. try {
  23904. const expectedFormulaFilePath = path_1.join(snykExecutablePath, '../../.brew/snyk.rb');
  23905. const formulaFileExists = fs.existsSync(expectedFormulaFilePath);
  23906. return formulaFileExists;
  23907. }
  23908. catch (error) {
  23909. debug('Error checking for Homebrew Formula file', error);
  23910. }
  23911. return false;
  23912. }
  23913. exports.validateHomebrew = validateHomebrew;
  23914. function runCommand(cmd) {
  23915. return new Promise((resolve) => {
  23916. child_process_1.exec(cmd, (error, stdout, stderr) => {
  23917. if (error) {
  23918. debug("Error trying to get program's version", error);
  23919. }
  23920. return resolve(stdout ? stdout : stderr);
  23921. });
  23922. });
  23923. }
  23924. async function isInstalled(commandToCheck) {
  23925. let whichCommand = 'which';
  23926. const os = process.platform;
  23927. if (os === 'win32') {
  23928. whichCommand = 'where';
  23929. }
  23930. else if (os === 'android') {
  23931. whichCommand = 'adb shell which';
  23932. }
  23933. try {
  23934. await runCommand(`${whichCommand} ${commandToCheck}`);
  23935. }
  23936. catch (error) {
  23937. return false;
  23938. }
  23939. return true;
  23940. }
  23941. exports.isInstalled = isInstalled;
  23942. /***/ }),
  23943. /***/ 95181:
  23944. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  23945. "use strict";
  23946. Object.defineProperty(exports, "__esModule", ({ value: true }));
  23947. exports.someTokenExists = exports.getAuthHeader = exports.apiOrOAuthTokenExists = exports.apiTokenExists = exports.getDockerToken = exports.getOAuthToken = exports.api = void 0;
  23948. const errors_1 = __webpack_require__(55191);
  23949. const config_1 = __webpack_require__(25425);
  23950. const user_config_1 = __webpack_require__(28137);
  23951. function api() {
  23952. // note: config.TOKEN will potentially come via the environment
  23953. return config_1.default.api || config_1.default.TOKEN || user_config_1.config.get('api');
  23954. }
  23955. exports.api = api;
  23956. function getOAuthToken() {
  23957. return process.env.SNYK_OAUTH_TOKEN;
  23958. }
  23959. exports.getOAuthToken = getOAuthToken;
  23960. function getDockerToken() {
  23961. return process.env.SNYK_DOCKER_TOKEN;
  23962. }
  23963. exports.getDockerToken = getDockerToken;
  23964. function apiTokenExists() {
  23965. const configured = api();
  23966. if (!configured) {
  23967. throw new errors_1.MissingApiTokenError();
  23968. }
  23969. return configured;
  23970. }
  23971. exports.apiTokenExists = apiTokenExists;
  23972. function apiOrOAuthTokenExists() {
  23973. const oauthToken = getOAuthToken();
  23974. if (oauthToken) {
  23975. return oauthToken;
  23976. }
  23977. return apiTokenExists();
  23978. }
  23979. exports.apiOrOAuthTokenExists = apiOrOAuthTokenExists;
  23980. function getAuthHeader() {
  23981. const oauthToken = getOAuthToken();
  23982. const dockerToken = getDockerToken();
  23983. if (oauthToken) {
  23984. return `Bearer ${oauthToken}`;
  23985. }
  23986. if (dockerToken) {
  23987. return `Bearer ${dockerToken}`;
  23988. }
  23989. return `token ${api()}`;
  23990. }
  23991. exports.getAuthHeader = getAuthHeader;
  23992. function someTokenExists() {
  23993. return Boolean(getOAuthToken() || getDockerToken() || api());
  23994. }
  23995. exports.someTokenExists = someTokenExists;
  23996. /***/ }),
  23997. /***/ 70527:
  23998. /***/ ((__unused_webpack_module, exports) => {
  23999. "use strict";
  24000. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24001. exports.contactSupportMessage = exports.reTryMessage = exports.sleep = void 0;
  24002. async function sleep(ms) {
  24003. return new Promise((resolve) => setTimeout(resolve, ms));
  24004. }
  24005. exports.sleep = sleep;
  24006. exports.reTryMessage = 'Tip: Re-run in debug mode to see more information: DEBUG=*snyk* <COMMAND>';
  24007. exports.contactSupportMessage = 'If the issue persists contact support@snyk.io';
  24008. /***/ }),
  24009. /***/ 37381:
  24010. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24011. "use strict";
  24012. /*
  24013. This file is trying to make sense from different Snyk API URLs configurations
  24014. API URL settings could be defined in a few ways:
  24015. - snyk config file with key "endpoint" (including override with SNYK_CFG_ENDPOINT envvar!)
  24016. - SNYK_API envvar
  24017. - Snyk REST API had their own envvars to be set
  24018. And API URL itself could (currently) point to multiple places
  24019. - https://snyk.io/api/v1 (old default)
  24020. - https://snyk.io/api
  24021. - https://app.snyk.io/api
  24022. - https://app.snyk.io/api/v1
  24023. - https://api.snyk.io/v1
  24024. For Snyk REST API it's a bit simpler:
  24025. - https://api.snyk.io/rest
  24026. There are also other URLs - one for the snyk auth command, one for Snyk Code Proxy
  24027. Idea is to configure a single URL and derive the rest from it.
  24028. This file handles an internal concept of a Base URL and logic needed to derive the other URLs
  24029. In a backwards compatible way.
  24030. */
  24031. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24032. exports.getRestApiUrl = exports.getV1ApiUrl = exports.getBaseApiUrl = void 0;
  24033. const path = __webpack_require__(85622);
  24034. const Debug = __webpack_require__(15158);
  24035. const theme_1 = __webpack_require__(86988);
  24036. const debug = Debug('snyk');
  24037. /**
  24038. * @description Get a Base URL for Snyk APIs
  24039. * @export
  24040. * @param {string} defaultUrl URL to default to, should be the one defined in the config.default.json file
  24041. * @param {(string | undefined)} envvarDefinedApiUrl if there is an URL defined in the SNYK_API envvar
  24042. * @param {(string | undefined)} configDefinedApiUrl if there is an URL defined in the 'endpoint' key of the config
  24043. * @returns {string} Returns a Base URL - without the /v1. Use this to construct derived URLs
  24044. */
  24045. function getBaseApiUrl(defaultUrl, envvarDefinedApiUrl, configDefinedApiUrl) {
  24046. const defaultBaseApiUrl = stripV1FromApiUrl(defaultUrl);
  24047. // Use SNYK_API envvar by default
  24048. if (envvarDefinedApiUrl) {
  24049. return validateUrlOrReturnDefault(envvarDefinedApiUrl, "'SNYK_API' environment variable", defaultBaseApiUrl);
  24050. }
  24051. if (configDefinedApiUrl) {
  24052. return validateUrlOrReturnDefault(configDefinedApiUrl, "'endpoint' config option. See 'snyk config' command. The value of 'endpoint' is currently set as", defaultBaseApiUrl);
  24053. }
  24054. return defaultBaseApiUrl; // Fallback to default
  24055. }
  24056. exports.getBaseApiUrl = getBaseApiUrl;
  24057. /**
  24058. * @description Macro to validate user-defined URL and fallback to default if needed
  24059. * @param {string} urlString "dirty" user defined string coming from config, envvar or a flag
  24060. * @param {string} optionName For formatting error messages
  24061. * @param {string} defaultUrl What to return if urlString does not pass
  24062. * @returns {string}
  24063. */
  24064. function validateUrlOrReturnDefault(urlString, optionName, defaultUrl) {
  24065. const parsedEndpoint = parseURLWithoutThrowing(urlString);
  24066. // Endpoint option must be a valid URL including protocol
  24067. if (!parsedEndpoint || !parsedEndpoint.protocol || !parsedEndpoint.host) {
  24068. console.error(theme_1.color.status.error(`Invalid ${optionName} '${urlString}'. Value must be a valid URL including protocol. Using default Snyk API URL '${defaultUrl}'`));
  24069. return defaultUrl;
  24070. }
  24071. // TODO: this debug is not printed when using the --debug flag, because flags are parsed after config. Making it async works around this
  24072. setTimeout(() => debug(`Using a custom Snyk API ${optionName} '${urlString}'`), 1);
  24073. return stripV1FromApiUrl(urlString);
  24074. }
  24075. function parseURLWithoutThrowing(urlString) {
  24076. try {
  24077. return new URL(urlString);
  24078. }
  24079. catch (error) {
  24080. return undefined;
  24081. }
  24082. }
  24083. /**
  24084. * @description Removes /v1 suffix from URL if present
  24085. * @param {string} url
  24086. * @returns {string}
  24087. */
  24088. function stripV1FromApiUrl(url) {
  24089. const parsedUrl = new URL(url);
  24090. if (/\/v1\/?$/.test(parsedUrl.pathname)) {
  24091. parsedUrl.pathname = parsedUrl.pathname.replace(/\/v1\/?$/, '/');
  24092. return parsedUrl.toString();
  24093. }
  24094. return url;
  24095. }
  24096. function getV1ApiUrl(baseApiUrl) {
  24097. const parsedBaseUrl = new URL(baseApiUrl);
  24098. parsedBaseUrl.pathname = path.join(parsedBaseUrl.pathname, 'v1');
  24099. return parsedBaseUrl.toString();
  24100. }
  24101. exports.getV1ApiUrl = getV1ApiUrl;
  24102. /**
  24103. * @description Return Snyk REST API URL
  24104. * @export
  24105. * @param {string} baseApiUrl
  24106. * @param {string} envvarDefinedRestApiUrl
  24107. * @param {string} envvarDefinedRestV3Url
  24108. * @returns {string}
  24109. */
  24110. function getRestApiUrl(baseApiUrl, envvarDefinedRestApiUrl, envvarDefinedRestV3Url) {
  24111. var _a, _b, _c;
  24112. // REST API URL should always look like this: https://api.$DOMAIN/rest
  24113. const parsedBaseUrl = new URL(baseApiUrl);
  24114. parsedBaseUrl.pathname = '/rest';
  24115. if ((_a = parsedBaseUrl.host) === null || _a === void 0 ? void 0 : _a.startsWith('app.')) {
  24116. // Rewrite app.snyk.io/ to api.snyk.io/rest
  24117. parsedBaseUrl.host = parsedBaseUrl.host.replace(/^app\./, 'api.');
  24118. }
  24119. else if (
  24120. // Ignore localhosts and URLs with api. already defined
  24121. !((_b = parsedBaseUrl.host) === null || _b === void 0 ? void 0 : _b.startsWith('localhost')) &&
  24122. !((_c = parsedBaseUrl.host) === null || _c === void 0 ? void 0 : _c.startsWith('api.'))) {
  24123. // Otherwise add the api. subdomain
  24124. parsedBaseUrl.host = 'api.' + parsedBaseUrl.host;
  24125. }
  24126. const defaultRestApiUrl = parsedBaseUrl.toString();
  24127. // TODO: notify users they can set just the (SNYK_)API envvar
  24128. if (envvarDefinedRestV3Url) {
  24129. return validateUrlOrReturnDefault(envvarDefinedRestV3Url, "'SNYK_API_V3_URL' environment variable", defaultRestApiUrl);
  24130. }
  24131. if (envvarDefinedRestApiUrl) {
  24132. return validateUrlOrReturnDefault(envvarDefinedRestApiUrl, "'SNYK_API_REST_URL' environment variable", defaultRestApiUrl);
  24133. }
  24134. return defaultRestApiUrl; // Fallback to default
  24135. }
  24136. exports.getRestApiUrl = getRestApiUrl;
  24137. /***/ }),
  24138. /***/ 25425:
  24139. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24140. "use strict";
  24141. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24142. const snykConfig = __webpack_require__(8658);
  24143. const user_config_1 = __webpack_require__(28137);
  24144. const api_url_1 = __webpack_require__(37381);
  24145. const DEFAULT_TIMEOUT = 5 * 60; // in seconds
  24146. // TODO: fix the types!
  24147. const config = snykConfig.loadConfig(__dirname + '/../..');
  24148. const defaultApiUrl = 'https://api.snyk.io';
  24149. const configDefinedApiUrl = user_config_1.config.get('endpoint');
  24150. const envvarDefinedApiUrl = process.env.SNYK_API;
  24151. const snykApiBaseUrl = api_url_1.getBaseApiUrl(defaultApiUrl, envvarDefinedApiUrl, configDefinedApiUrl);
  24152. config.API = api_url_1.getV1ApiUrl(snykApiBaseUrl);
  24153. // API_V3_URL is deprecated, but maintaining backwards compatibility
  24154. config.API_REST_URL = api_url_1.getRestApiUrl(snykApiBaseUrl, process.env.API_REST_URL || config.API_REST_URL, process.env.API_V3_URL || config.API_V3_URL);
  24155. const disableSuggestions = user_config_1.config.get('disableSuggestions');
  24156. if (disableSuggestions) {
  24157. config.disableSuggestions = disableSuggestions;
  24158. }
  24159. const org = user_config_1.config.get('org');
  24160. if (!config.org && org) {
  24161. config.org = org;
  24162. }
  24163. // client request timeout
  24164. // to change, set this config key to the desired value in seconds
  24165. // invalid (non-numeric) value will fallback to the default
  24166. const timeout = user_config_1.config.get('timeout');
  24167. if (!config.timeout) {
  24168. config.timeout = timeout && +timeout ? +timeout : DEFAULT_TIMEOUT;
  24169. }
  24170. // this is a bit of an assumption that our web site origin is the same
  24171. // as our API origin, but for now it's okay - RS 2015-10-16
  24172. if (!config.ROOT) {
  24173. const apiUrl = new URL(config.API);
  24174. apiUrl.host = apiUrl.host.replace(/^ap[pi]\./, '');
  24175. config.ROOT = apiUrl.protocol + '//' + apiUrl.host;
  24176. }
  24177. config.PUBLIC_VULN_DB_URL = 'https://security.snyk.io';
  24178. exports.default = config;
  24179. /***/ }),
  24180. /***/ 51804:
  24181. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24182. "use strict";
  24183. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24184. exports.getContainerImageSavePath = exports.getContainerProjectName = exports.getContainerName = exports.getContainerTargetFile = exports.isContainer = exports.IMAGE_SAVE_PATH_ENV_VAR = exports.IMAGE_SAVE_PATH_OPT = void 0;
  24185. const user_config_1 = __webpack_require__(28137);
  24186. exports.IMAGE_SAVE_PATH_OPT = 'imageSavePath';
  24187. exports.IMAGE_SAVE_PATH_ENV_VAR = 'SNYK_IMAGE_SAVE_PATH';
  24188. function isContainer(scannedProject) {
  24189. var _a, _b;
  24190. return (_b = (_a = scannedProject.meta) === null || _a === void 0 ? void 0 : _a.imageName) === null || _b === void 0 ? void 0 : _b.length;
  24191. }
  24192. exports.isContainer = isContainer;
  24193. function getContainerTargetFile(scannedProject) {
  24194. return scannedProject.targetFile;
  24195. }
  24196. exports.getContainerTargetFile = getContainerTargetFile;
  24197. function getContainerName(scannedProject, meta) {
  24198. var _a, _b;
  24199. let name = (_a = scannedProject.meta) === null || _a === void 0 ? void 0 : _a.imageName;
  24200. if ((_b = meta['project-name']) === null || _b === void 0 ? void 0 : _b.length) {
  24201. name = meta['project-name'];
  24202. }
  24203. if (scannedProject.targetFile) {
  24204. // for app+os projects the name of project is a mix of the image name
  24205. // with the target file (if one exists)
  24206. return name + ':' + scannedProject.targetFile;
  24207. }
  24208. else {
  24209. return name;
  24210. }
  24211. }
  24212. exports.getContainerName = getContainerName;
  24213. function getContainerProjectName(scannedProject, meta) {
  24214. var _a, _b;
  24215. let name = (_a = scannedProject.meta) === null || _a === void 0 ? void 0 : _a.imageName;
  24216. if ((_b = meta['project-name']) === null || _b === void 0 ? void 0 : _b.length) {
  24217. name = meta['project-name'];
  24218. }
  24219. return name;
  24220. }
  24221. exports.getContainerProjectName = getContainerProjectName;
  24222. function getContainerImageSavePath() {
  24223. return (process.env[exports.IMAGE_SAVE_PATH_ENV_VAR] ||
  24224. user_config_1.config.get(exports.IMAGE_SAVE_PATH_OPT) ||
  24225. undefined);
  24226. }
  24227. exports.getContainerImageSavePath = getContainerImageSavePath;
  24228. /***/ }),
  24229. /***/ 45318:
  24230. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24231. "use strict";
  24232. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24233. exports.detectPackageManagerFromFile = exports.detectPackageFile = exports.isLocalFolder = exports.localFileSuppliedButNotFound = exports.detectPackageManager = exports.isPathToPackageFile = exports.AUTO_DETECTABLE_FILES = void 0;
  24234. const fs = __webpack_require__(35747);
  24235. const pathLib = __webpack_require__(85622);
  24236. const debugLib = __webpack_require__(15158);
  24237. const errors_1 = __webpack_require__(55191);
  24238. const package_managers_1 = __webpack_require__(53847);
  24239. const debug = debugLib('snyk-detect');
  24240. const DETECTABLE_FILES = [
  24241. 'yarn.lock',
  24242. 'package-lock.json',
  24243. 'package.json',
  24244. 'Gemfile',
  24245. 'Gemfile.lock',
  24246. 'pom.xml',
  24247. 'build.gradle',
  24248. 'build.gradle.kts',
  24249. 'build.sbt',
  24250. 'Pipfile',
  24251. 'requirements.txt',
  24252. 'Gopkg.lock',
  24253. 'go.mod',
  24254. 'vendor/vendor.json',
  24255. 'obj/project.assets.json',
  24256. 'project.assets.json',
  24257. 'packages.config',
  24258. 'paket.dependencies',
  24259. 'composer.lock',
  24260. 'Podfile',
  24261. 'Podfile.lock',
  24262. 'poetry.lock',
  24263. 'mix.exs',
  24264. 'mix.lock',
  24265. ];
  24266. exports.AUTO_DETECTABLE_FILES = [
  24267. 'package-lock.json',
  24268. 'yarn.lock',
  24269. 'package.json',
  24270. 'Gemfile',
  24271. 'Gemfile.lock',
  24272. 'pom.xml',
  24273. 'packages.config',
  24274. 'paket.dependencies',
  24275. 'project.json',
  24276. 'project.assets.json',
  24277. 'Podfile',
  24278. 'Podfile.lock',
  24279. 'composer.lock',
  24280. 'Gopkg.lock',
  24281. 'go.mod',
  24282. 'vendor.json',
  24283. 'Pipfile',
  24284. 'requirements.txt',
  24285. 'build.sbt',
  24286. 'build.gradle',
  24287. 'build.gradle.kts',
  24288. 'poetry.lock',
  24289. 'mix.exs',
  24290. 'mix.lock',
  24291. ];
  24292. // when file is specified with --file, we look it up here
  24293. // this is also used when --all-projects flag is enabled and auto detection plugin is triggered
  24294. const DETECTABLE_PACKAGE_MANAGERS = {
  24295. [package_managers_1.SUPPORTED_MANIFEST_FILES.GEMFILE]: 'rubygems',
  24296. [package_managers_1.SUPPORTED_MANIFEST_FILES.GEMFILE_LOCK]: 'rubygems',
  24297. [package_managers_1.SUPPORTED_MANIFEST_FILES.GEMSPEC]: 'rubygems',
  24298. [package_managers_1.SUPPORTED_MANIFEST_FILES.PACKAGE_LOCK_JSON]: 'npm',
  24299. [package_managers_1.SUPPORTED_MANIFEST_FILES.POM_XML]: 'maven',
  24300. [package_managers_1.SUPPORTED_MANIFEST_FILES.JAR]: 'maven',
  24301. [package_managers_1.SUPPORTED_MANIFEST_FILES.WAR]: 'maven',
  24302. [package_managers_1.SUPPORTED_MANIFEST_FILES.BUILD_GRADLE]: 'gradle',
  24303. [package_managers_1.SUPPORTED_MANIFEST_FILES.BUILD_GRADLE_KTS]: 'gradle',
  24304. [package_managers_1.SUPPORTED_MANIFEST_FILES.BUILD_SBT]: 'sbt',
  24305. [package_managers_1.SUPPORTED_MANIFEST_FILES.YARN_LOCK]: 'yarn',
  24306. [package_managers_1.SUPPORTED_MANIFEST_FILES.PACKAGE_JSON]: 'npm',
  24307. [package_managers_1.SUPPORTED_MANIFEST_FILES.PIPFILE]: 'pip',
  24308. [package_managers_1.SUPPORTED_MANIFEST_FILES.SETUP_PY]: 'pip',
  24309. [package_managers_1.SUPPORTED_MANIFEST_FILES.REQUIREMENTS_TXT]: 'pip',
  24310. [package_managers_1.SUPPORTED_MANIFEST_FILES.GOPKG_LOCK]: 'golangdep',
  24311. [package_managers_1.SUPPORTED_MANIFEST_FILES.GO_MOD]: 'gomodules',
  24312. [package_managers_1.SUPPORTED_MANIFEST_FILES.VENDOR_JSON]: 'govendor',
  24313. [package_managers_1.SUPPORTED_MANIFEST_FILES.PROJECT_ASSETS_JSON]: 'nuget',
  24314. [package_managers_1.SUPPORTED_MANIFEST_FILES.PACKAGES_CONFIG]: 'nuget',
  24315. [package_managers_1.SUPPORTED_MANIFEST_FILES.PROJECT_JSON]: 'nuget',
  24316. [package_managers_1.SUPPORTED_MANIFEST_FILES.PAKET_DEPENDENCIES]: 'paket',
  24317. [package_managers_1.SUPPORTED_MANIFEST_FILES.COMPOSER_LOCK]: 'composer',
  24318. [package_managers_1.SUPPORTED_MANIFEST_FILES.PODFILE_LOCK]: 'cocoapods',
  24319. [package_managers_1.SUPPORTED_MANIFEST_FILES.COCOAPODS_PODFILE_YAML]: 'cocoapods',
  24320. [package_managers_1.SUPPORTED_MANIFEST_FILES.COCOAPODS_PODFILE]: 'cocoapods',
  24321. [package_managers_1.SUPPORTED_MANIFEST_FILES.PODFILE]: 'cocoapods',
  24322. [package_managers_1.SUPPORTED_MANIFEST_FILES.POETRY_LOCK]: 'poetry',
  24323. [package_managers_1.SUPPORTED_MANIFEST_FILES.MIX_EXS]: 'hex',
  24324. };
  24325. function isPathToPackageFile(path) {
  24326. for (const fileName of DETECTABLE_FILES) {
  24327. if (path.endsWith(fileName)) {
  24328. return true;
  24329. }
  24330. }
  24331. return false;
  24332. }
  24333. exports.isPathToPackageFile = isPathToPackageFile;
  24334. function detectPackageManager(root, options) {
  24335. // If user specified a package manager let's use it.
  24336. if (options.packageManager) {
  24337. return options.packageManager;
  24338. }
  24339. // The package manager used by a docker container is not known ahead of time
  24340. if (options.docker) {
  24341. return undefined;
  24342. }
  24343. let packageManager;
  24344. let file;
  24345. if (isLocalFolder(root)) {
  24346. if (options.file) {
  24347. if (localFileSuppliedButNotFound(root, options.file)) {
  24348. throw new Error('Could not find the specified file: ' +
  24349. options.file +
  24350. '\nPlease check that it exists and try again.');
  24351. }
  24352. file = options.file;
  24353. packageManager = detectPackageManagerFromFile(file);
  24354. }
  24355. else if (options.scanAllUnmanaged) {
  24356. packageManager = 'maven';
  24357. }
  24358. else {
  24359. debug('no file specified. Trying to autodetect in base folder ' + root);
  24360. file = detectPackageFile(root);
  24361. if (file) {
  24362. packageManager = detectPackageManagerFromFile(file);
  24363. }
  24364. }
  24365. }
  24366. else {
  24367. debug('specified parameter is not a folder, trying to lookup as repo');
  24368. const registry = options.registry || 'npm';
  24369. packageManager = detectPackageManagerFromRegistry(registry);
  24370. }
  24371. if (!packageManager) {
  24372. throw errors_1.NoSupportedManifestsFoundError([root]);
  24373. }
  24374. return packageManager;
  24375. }
  24376. exports.detectPackageManager = detectPackageManager;
  24377. // User supplied a "local" file, but that file doesn't exist
  24378. function localFileSuppliedButNotFound(root, file) {
  24379. return (file && fs.existsSync(root) && !fs.existsSync(pathLib.resolve(root, file)));
  24380. }
  24381. exports.localFileSuppliedButNotFound = localFileSuppliedButNotFound;
  24382. function isLocalFolder(root) {
  24383. try {
  24384. return fs.lstatSync(root).isDirectory();
  24385. }
  24386. catch (e) {
  24387. return false;
  24388. }
  24389. }
  24390. exports.isLocalFolder = isLocalFolder;
  24391. function detectPackageFile(root) {
  24392. for (const file of DETECTABLE_FILES) {
  24393. if (fs.existsSync(pathLib.resolve(root, file))) {
  24394. debug('found package file ' + file + ' in ' + root);
  24395. return file;
  24396. }
  24397. }
  24398. debug('no package file found in ' + root);
  24399. }
  24400. exports.detectPackageFile = detectPackageFile;
  24401. function detectPackageManagerFromFile(file) {
  24402. let key = pathLib.basename(file);
  24403. // TODO: fix this to use glob matching instead
  24404. // like *.gemspec
  24405. if (/\.gemspec$/.test(key)) {
  24406. key = '.gemspec';
  24407. }
  24408. if (/\.jar$/.test(key)) {
  24409. key = '.jar';
  24410. }
  24411. if (/\.war$/.test(key)) {
  24412. key = '.war';
  24413. }
  24414. if (!(key in DETECTABLE_PACKAGE_MANAGERS)) {
  24415. // we throw and error here because the file was specified by the user
  24416. throw new Error('Could not detect package manager for file: ' + file);
  24417. }
  24418. return DETECTABLE_PACKAGE_MANAGERS[key];
  24419. }
  24420. exports.detectPackageManagerFromFile = detectPackageManagerFromFile;
  24421. function detectPackageManagerFromRegistry(registry) {
  24422. return registry;
  24423. }
  24424. /***/ }),
  24425. /***/ 23770:
  24426. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24427. "use strict";
  24428. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24429. exports.AuthFailedError = void 0;
  24430. const custom_error_1 = __webpack_require__(17188);
  24431. const config_1 = __webpack_require__(25425);
  24432. function AuthFailedError(errorMessage = 'Authentication failed. Please check the API token on ' +
  24433. config_1.default.ROOT, errorCode = 401) {
  24434. const error = new custom_error_1.CustomError(errorMessage);
  24435. error.code = errorCode;
  24436. error.strCode = 'authfail';
  24437. error.userMessage = errorMessage;
  24438. return error;
  24439. }
  24440. exports.AuthFailedError = AuthFailedError;
  24441. /***/ }),
  24442. /***/ 39492:
  24443. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24444. "use strict";
  24445. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24446. exports.ConnectionTimeoutError = void 0;
  24447. const custom_error_1 = __webpack_require__(17188);
  24448. class ConnectionTimeoutError extends custom_error_1.CustomError {
  24449. constructor() {
  24450. super(ConnectionTimeoutError.ERROR_MESSAGE);
  24451. this.code = 504;
  24452. this.userMessage = ConnectionTimeoutError.ERROR_MESSAGE;
  24453. }
  24454. }
  24455. exports.ConnectionTimeoutError = ConnectionTimeoutError;
  24456. ConnectionTimeoutError.ERROR_MESSAGE = 'Connection timeout.';
  24457. /***/ }),
  24458. /***/ 17188:
  24459. /***/ ((__unused_webpack_module, exports) => {
  24460. "use strict";
  24461. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24462. exports.CustomError = void 0;
  24463. class CustomError extends Error {
  24464. constructor(message) {
  24465. super(message);
  24466. Error.captureStackTrace(this, this.constructor);
  24467. this.name = this.constructor.name;
  24468. this.code = undefined;
  24469. this.strCode = undefined;
  24470. this.innerError = undefined;
  24471. this.userMessage = undefined;
  24472. }
  24473. }
  24474. exports.CustomError = CustomError;
  24475. /***/ }),
  24476. /***/ 44179:
  24477. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24478. "use strict";
  24479. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24480. exports.DockerImageNotFoundError = void 0;
  24481. const custom_error_1 = __webpack_require__(17188);
  24482. class DockerImageNotFoundError extends custom_error_1.CustomError {
  24483. constructor(image) {
  24484. const message = `Failed to scan image "${image}". Please make sure the image and/or repository exist, and that you are using the correct credentials.`;
  24485. super(message);
  24486. this.code = DockerImageNotFoundError.ERROR_CODE;
  24487. this.userMessage = message;
  24488. }
  24489. }
  24490. exports.DockerImageNotFoundError = DockerImageNotFoundError;
  24491. DockerImageNotFoundError.ERROR_CODE = 404;
  24492. /***/ }),
  24493. /***/ 53731:
  24494. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24495. "use strict";
  24496. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24497. exports.SarifFileOutputEmptyError = void 0;
  24498. const custom_error_1 = __webpack_require__(17188);
  24499. class SarifFileOutputEmptyError extends custom_error_1.CustomError {
  24500. constructor() {
  24501. super(SarifFileOutputEmptyError.ERROR_MESSAGE);
  24502. this.code = SarifFileOutputEmptyError.ERROR_CODE;
  24503. this.userMessage = SarifFileOutputEmptyError.ERROR_MESSAGE;
  24504. }
  24505. }
  24506. exports.SarifFileOutputEmptyError = SarifFileOutputEmptyError;
  24507. SarifFileOutputEmptyError.ERROR_CODE = 422;
  24508. SarifFileOutputEmptyError.ERROR_MESSAGE = 'Empty --sarif-file-output argument. Did you mean --file=path/to/output-file.json ?';
  24509. /***/ }),
  24510. /***/ 10598:
  24511. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24512. "use strict";
  24513. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24514. exports.errorMessageWithRetry = void 0;
  24515. const common_1 = __webpack_require__(70527);
  24516. function errorMessageWithRetry(message) {
  24517. return `${message}\n${common_1.reTryMessage}\n${common_1.contactSupportMessage}`;
  24518. }
  24519. exports.errorMessageWithRetry = errorMessageWithRetry;
  24520. /***/ }),
  24521. /***/ 12244:
  24522. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24523. "use strict";
  24524. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24525. exports.ExcludeFlagBadInputError = void 0;
  24526. const custom_error_1 = __webpack_require__(17188);
  24527. class ExcludeFlagBadInputError extends custom_error_1.CustomError {
  24528. constructor() {
  24529. super(ExcludeFlagBadInputError.ERROR_MESSAGE);
  24530. this.code = ExcludeFlagBadInputError.ERROR_CODE;
  24531. this.userMessage = ExcludeFlagBadInputError.ERROR_MESSAGE;
  24532. }
  24533. }
  24534. exports.ExcludeFlagBadInputError = ExcludeFlagBadInputError;
  24535. ExcludeFlagBadInputError.ERROR_CODE = 422;
  24536. ExcludeFlagBadInputError.ERROR_MESSAGE = 'Empty --exclude argument. Did you mean --exclude=subdirectory ?';
  24537. /***/ }),
  24538. /***/ 40159:
  24539. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24540. "use strict";
  24541. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24542. exports.ExcludeFlagInvalidInputError = void 0;
  24543. const custom_error_1 = __webpack_require__(17188);
  24544. class ExcludeFlagInvalidInputError extends custom_error_1.CustomError {
  24545. constructor() {
  24546. super(ExcludeFlagInvalidInputError.ERROR_MESSAGE);
  24547. this.code = ExcludeFlagInvalidInputError.ERROR_CODE;
  24548. this.userMessage = ExcludeFlagInvalidInputError.ERROR_MESSAGE;
  24549. }
  24550. }
  24551. exports.ExcludeFlagInvalidInputError = ExcludeFlagInvalidInputError;
  24552. ExcludeFlagInvalidInputError.ERROR_CODE = 422;
  24553. ExcludeFlagInvalidInputError.ERROR_MESSAGE = 'The --exclude argument must be a comma separated list of directory or file names and cannot contain a path.';
  24554. /***/ }),
  24555. /***/ 41655:
  24556. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24557. "use strict";
  24558. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24559. exports.FailedToGetVulnerabilitiesError = void 0;
  24560. const custom_error_1 = __webpack_require__(17188);
  24561. class FailedToGetVulnerabilitiesError extends custom_error_1.CustomError {
  24562. constructor(userMessage, statusCode) {
  24563. super(FailedToGetVulnerabilitiesError.ERROR_MESSAGE);
  24564. this.code = statusCode || FailedToGetVulnerabilitiesError.ERROR_CODE;
  24565. this.strCode = FailedToGetVulnerabilitiesError.ERROR_STRING_CODE;
  24566. this.userMessage =
  24567. userMessage || FailedToGetVulnerabilitiesError.ERROR_MESSAGE;
  24568. }
  24569. }
  24570. exports.FailedToGetVulnerabilitiesError = FailedToGetVulnerabilitiesError;
  24571. FailedToGetVulnerabilitiesError.ERROR_CODE = 500;
  24572. FailedToGetVulnerabilitiesError.ERROR_STRING_CODE = 'INTERNAL_SERVER_ERROR';
  24573. FailedToGetVulnerabilitiesError.ERROR_MESSAGE = 'Failed to get vulns';
  24574. /***/ }),
  24575. /***/ 46632:
  24576. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24577. "use strict";
  24578. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24579. exports.FailedToGetVulnsFromUnavailableResource = void 0;
  24580. const custom_error_1 = __webpack_require__(17188);
  24581. const errorNpmMessage = 'Please check the version and package name and try running `snyk test` again.\nFor additional assistance, run `snyk help` or check out our docs \n(link to: https://support.snyk.io/hc/en-us/articles/360003851277#UUID-ba99a73f-110d-1f1d-9e7a-1bad66bf0996).';
  24582. const errorRepositoryMessage = 'Try testing this repository at https://snyk.io/test/.\nFor additional assistance, run `snyk help` or check out our docs \n(link to: https://support.snyk.io/hc/en-us/articles/360003851277#UUID-ba99a73f-110d-1f1d-9e7a-1bad66bf0996).';
  24583. function FailedToGetVulnsFromUnavailableResource(root, statusCode) {
  24584. const isRepository = root.startsWith('http' || 0);
  24585. const errorMsg = `We couldn't test ${root}. ${isRepository ? errorRepositoryMessage : errorNpmMessage}`;
  24586. const error = new custom_error_1.CustomError(errorMsg);
  24587. error.code = statusCode;
  24588. error.userMessage = errorMsg;
  24589. return error;
  24590. }
  24591. exports.FailedToGetVulnsFromUnavailableResource = FailedToGetVulnsFromUnavailableResource;
  24592. /***/ }),
  24593. /***/ 33793:
  24594. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24595. "use strict";
  24596. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24597. exports.FailedToLoadPolicyError = void 0;
  24598. const custom_error_1 = __webpack_require__(17188);
  24599. class FailedToLoadPolicyError extends custom_error_1.CustomError {
  24600. constructor() {
  24601. super(FailedToLoadPolicyError.ERROR_MESSAGE);
  24602. this.code = FailedToLoadPolicyError.ERROR_CODE;
  24603. this.strCode = FailedToLoadPolicyError.ERROR_STRING_CODE;
  24604. this.userMessage = FailedToLoadPolicyError.ERROR_MESSAGE;
  24605. }
  24606. }
  24607. exports.FailedToLoadPolicyError = FailedToLoadPolicyError;
  24608. FailedToLoadPolicyError.ERROR_CODE = 422;
  24609. FailedToLoadPolicyError.ERROR_STRING_CODE = 'POLICY_LOAD_FAILED';
  24610. FailedToLoadPolicyError.ERROR_MESSAGE = 'Could not load policy file.';
  24611. /***/ }),
  24612. /***/ 38609:
  24613. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24614. "use strict";
  24615. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24616. exports.FailedToRunTestError = void 0;
  24617. const custom_error_1 = __webpack_require__(17188);
  24618. class FailedToRunTestError extends custom_error_1.CustomError {
  24619. constructor(userMessage, errorCode) {
  24620. const code = errorCode || 500;
  24621. super(userMessage || FailedToRunTestError.ERROR_MESSAGE);
  24622. this.code = errorCode || code;
  24623. this.userMessage = userMessage || FailedToRunTestError.ERROR_MESSAGE;
  24624. }
  24625. }
  24626. exports.FailedToRunTestError = FailedToRunTestError;
  24627. FailedToRunTestError.ERROR_MESSAGE = 'Failed to run a test';
  24628. /***/ }),
  24629. /***/ 33063:
  24630. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24631. "use strict";
  24632. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24633. exports.FeatureNotSupportedByPackageManagerError = void 0;
  24634. const custom_error_1 = __webpack_require__(17188);
  24635. class FeatureNotSupportedByPackageManagerError extends custom_error_1.CustomError {
  24636. constructor(feature, packageManager, additionalUserHelp = '') {
  24637. super(`Unsupported package manager ${packageManager} for ${feature}.`);
  24638. this.code = 422;
  24639. this.feature = feature;
  24640. this.userMessage = `'${feature}' is not supported for package manager '${packageManager}'. ${additionalUserHelp}`;
  24641. }
  24642. }
  24643. exports.FeatureNotSupportedByPackageManagerError = FeatureNotSupportedByPackageManagerError;
  24644. /***/ }),
  24645. /***/ 21832:
  24646. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24647. "use strict";
  24648. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24649. exports.FileFlagBadInputError = void 0;
  24650. const custom_error_1 = __webpack_require__(17188);
  24651. class FileFlagBadInputError extends custom_error_1.CustomError {
  24652. constructor() {
  24653. super(FileFlagBadInputError.ERROR_MESSAGE);
  24654. this.code = FileFlagBadInputError.ERROR_CODE;
  24655. this.userMessage = FileFlagBadInputError.ERROR_MESSAGE;
  24656. }
  24657. }
  24658. exports.FileFlagBadInputError = FileFlagBadInputError;
  24659. FileFlagBadInputError.ERROR_CODE = 422;
  24660. FileFlagBadInputError.ERROR_MESSAGE = 'Empty --file argument. Did you mean --file=path/to/file ?';
  24661. /***/ }),
  24662. /***/ 17207:
  24663. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24664. "use strict";
  24665. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24666. exports.FormattedCustomError = void 0;
  24667. const chalk_1 = __webpack_require__(32589);
  24668. const _1 = __webpack_require__(55191);
  24669. class FormattedCustomError extends _1.CustomError {
  24670. constructor(message, formattedUserMessage, userMessage) {
  24671. super(message);
  24672. this.userMessage = userMessage || chalk_1.default.reset(formattedUserMessage);
  24673. this.formattedUserMessage = formattedUserMessage;
  24674. }
  24675. }
  24676. exports.FormattedCustomError = FormattedCustomError;
  24677. /***/ }),
  24678. /***/ 55191:
  24679. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24680. "use strict";
  24681. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24682. var missing_api_token_1 = __webpack_require__(71825);
  24683. Object.defineProperty(exports, "MissingApiTokenError", ({ enumerable: true, get: function () { return missing_api_token_1.MissingApiTokenError; } }));
  24684. var file_flag_bad_input_1 = __webpack_require__(21832);
  24685. Object.defineProperty(exports, "FileFlagBadInputError", ({ enumerable: true, get: function () { return file_flag_bad_input_1.FileFlagBadInputError; } }));
  24686. var missing_targetfile_error_1 = __webpack_require__(56775);
  24687. Object.defineProperty(exports, "MissingTargetFileError", ({ enumerable: true, get: function () { return missing_targetfile_error_1.MissingTargetFileError; } }));
  24688. var no_supported_manifests_found_1 = __webpack_require__(65475);
  24689. Object.defineProperty(exports, "NoSupportedManifestsFoundError", ({ enumerable: true, get: function () { return no_supported_manifests_found_1.NoSupportedManifestsFoundError; } }));
  24690. var no_supported_sast_files_found_1 = __webpack_require__(42147);
  24691. Object.defineProperty(exports, "NoSupportedSastFiles", ({ enumerable: true, get: function () { return no_supported_sast_files_found_1.NoSupportedSastFiles; } }));
  24692. var custom_error_1 = __webpack_require__(17188);
  24693. Object.defineProperty(exports, "CustomError", ({ enumerable: true, get: function () { return custom_error_1.CustomError; } }));
  24694. var monitor_error_1 = __webpack_require__(93049);
  24695. Object.defineProperty(exports, "MonitorError", ({ enumerable: true, get: function () { return monitor_error_1.MonitorError; } }));
  24696. var validation_error_1 = __webpack_require__(38008);
  24697. Object.defineProperty(exports, "ValidationError", ({ enumerable: true, get: function () { return validation_error_1.ValidationError; } }));
  24698. var connection_timeout_error_1 = __webpack_require__(39492);
  24699. Object.defineProperty(exports, "ConnectionTimeoutError", ({ enumerable: true, get: function () { return connection_timeout_error_1.ConnectionTimeoutError; } }));
  24700. var failed_to_load_policy_error_1 = __webpack_require__(33793);
  24701. Object.defineProperty(exports, "FailedToLoadPolicyError", ({ enumerable: true, get: function () { return failed_to_load_policy_error_1.FailedToLoadPolicyError; } }));
  24702. var policy_not_found_error_1 = __webpack_require__(59189);
  24703. Object.defineProperty(exports, "PolicyNotFoundError", ({ enumerable: true, get: function () { return policy_not_found_error_1.PolicyNotFoundError; } }));
  24704. var internal_server_error_1 = __webpack_require__(5135);
  24705. Object.defineProperty(exports, "InternalServerError", ({ enumerable: true, get: function () { return internal_server_error_1.InternalServerError; } }));
  24706. var failed_to_get_vulnerabilities_error_1 = __webpack_require__(41655);
  24707. Object.defineProperty(exports, "FailedToGetVulnerabilitiesError", ({ enumerable: true, get: function () { return failed_to_get_vulnerabilities_error_1.FailedToGetVulnerabilitiesError; } }));
  24708. var failed_to_get_vulns_from_unavailable_resource_1 = __webpack_require__(46632);
  24709. Object.defineProperty(exports, "FailedToGetVulnsFromUnavailableResource", ({ enumerable: true, get: function () { return failed_to_get_vulns_from_unavailable_resource_1.FailedToGetVulnsFromUnavailableResource; } }));
  24710. var unsupported_package_manager_error_1 = __webpack_require__(73462);
  24711. Object.defineProperty(exports, "UnsupportedPackageManagerError", ({ enumerable: true, get: function () { return unsupported_package_manager_error_1.UnsupportedPackageManagerError; } }));
  24712. var failed_to_run_test_error_1 = __webpack_require__(38609);
  24713. Object.defineProperty(exports, "FailedToRunTestError", ({ enumerable: true, get: function () { return failed_to_run_test_error_1.FailedToRunTestError; } }));
  24714. var too_many_vuln_paths_1 = __webpack_require__(2972);
  24715. Object.defineProperty(exports, "TooManyVulnPaths", ({ enumerable: true, get: function () { return too_many_vuln_paths_1.TooManyVulnPaths; } }));
  24716. var authentication_failed_error_1 = __webpack_require__(23770);
  24717. Object.defineProperty(exports, "AuthFailedError", ({ enumerable: true, get: function () { return authentication_failed_error_1.AuthFailedError; } }));
  24718. var unsupported_feature_for_org_error_1 = __webpack_require__(57245);
  24719. Object.defineProperty(exports, "FeatureNotSupportedForOrgError", ({ enumerable: true, get: function () { return unsupported_feature_for_org_error_1.FeatureNotSupportedForOrgError; } }));
  24720. var missing_option_error_1 = __webpack_require__(99001);
  24721. Object.defineProperty(exports, "MissingOptionError", ({ enumerable: true, get: function () { return missing_option_error_1.MissingOptionError; } }));
  24722. var missing_arg_error_1 = __webpack_require__(85413);
  24723. Object.defineProperty(exports, "MissingArgError", ({ enumerable: true, get: function () { return missing_arg_error_1.MissingArgError; } }));
  24724. var exclude_flag_bad_input_1 = __webpack_require__(12244);
  24725. Object.defineProperty(exports, "ExcludeFlagBadInputError", ({ enumerable: true, get: function () { return exclude_flag_bad_input_1.ExcludeFlagBadInputError; } }));
  24726. var unsupported_option_combination_error_1 = __webpack_require__(45848);
  24727. Object.defineProperty(exports, "UnsupportedOptionCombinationError", ({ enumerable: true, get: function () { return unsupported_option_combination_error_1.UnsupportedOptionCombinationError; } }));
  24728. var feature_not_supported_by_package_manager_error_1 = __webpack_require__(33063);
  24729. Object.defineProperty(exports, "FeatureNotSupportedByPackageManagerError", ({ enumerable: true, get: function () { return feature_not_supported_by_package_manager_error_1.FeatureNotSupportedByPackageManagerError; } }));
  24730. var docker_image_not_found_error_1 = __webpack_require__(44179);
  24731. Object.defineProperty(exports, "DockerImageNotFoundError", ({ enumerable: true, get: function () { return docker_image_not_found_error_1.DockerImageNotFoundError; } }));
  24732. var not_found_error_1 = __webpack_require__(84005);
  24733. Object.defineProperty(exports, "NotFoundError", ({ enumerable: true, get: function () { return not_found_error_1.NotFoundError; } }));
  24734. var error_with_retry_1 = __webpack_require__(10598);
  24735. Object.defineProperty(exports, "errorMessageWithRetry", ({ enumerable: true, get: function () { return error_with_retry_1.errorMessageWithRetry; } }));
  24736. var formatted_custom_error_1 = __webpack_require__(17207);
  24737. Object.defineProperty(exports, "FormattedCustomError", ({ enumerable: true, get: function () { return formatted_custom_error_1.FormattedCustomError; } }));
  24738. /***/ }),
  24739. /***/ 5135:
  24740. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24741. "use strict";
  24742. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24743. exports.InternalServerError = void 0;
  24744. const custom_error_1 = __webpack_require__(17188);
  24745. class InternalServerError extends custom_error_1.CustomError {
  24746. constructor(userMessage) {
  24747. super(InternalServerError.ERROR_MESSAGE);
  24748. this.code = InternalServerError.ERROR_CODE;
  24749. this.strCode = InternalServerError.ERROR_STRING_CODE;
  24750. this.userMessage = userMessage || InternalServerError.ERROR_MESSAGE;
  24751. }
  24752. }
  24753. exports.InternalServerError = InternalServerError;
  24754. InternalServerError.ERROR_CODE = 500;
  24755. InternalServerError.ERROR_STRING_CODE = 'INTERNAL_SERVER_ERROR';
  24756. InternalServerError.ERROR_MESSAGE = 'Internal server error';
  24757. /***/ }),
  24758. /***/ 80401:
  24759. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24760. "use strict";
  24761. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24762. exports.InvalidDetectionDepthValue = void 0;
  24763. const custom_error_1 = __webpack_require__(17188);
  24764. class InvalidDetectionDepthValue extends custom_error_1.CustomError {
  24765. constructor() {
  24766. const msg = `Unsupported value for --detection-depth flag. Expected a positive integer.`;
  24767. super(msg);
  24768. this.code = 422;
  24769. this.userMessage = msg;
  24770. }
  24771. }
  24772. exports.InvalidDetectionDepthValue = InvalidDetectionDepthValue;
  24773. /***/ }),
  24774. /***/ 63426:
  24775. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24776. "use strict";
  24777. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24778. exports.JsonFileOutputBadInputError = void 0;
  24779. const custom_error_1 = __webpack_require__(17188);
  24780. class JsonFileOutputBadInputError extends custom_error_1.CustomError {
  24781. constructor() {
  24782. super(JsonFileOutputBadInputError.ERROR_MESSAGE);
  24783. this.code = JsonFileOutputBadInputError.ERROR_CODE;
  24784. this.userMessage = JsonFileOutputBadInputError.ERROR_MESSAGE;
  24785. }
  24786. }
  24787. exports.JsonFileOutputBadInputError = JsonFileOutputBadInputError;
  24788. JsonFileOutputBadInputError.ERROR_CODE = 422;
  24789. JsonFileOutputBadInputError.ERROR_MESSAGE = 'Empty --json-file-output argument. Did you mean --file=path/to/output-file.json ?';
  24790. /***/ }),
  24791. /***/ 71825:
  24792. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24793. "use strict";
  24794. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24795. exports.MissingApiTokenError = void 0;
  24796. const custom_error_1 = __webpack_require__(17188);
  24797. class MissingApiTokenError extends custom_error_1.CustomError {
  24798. constructor() {
  24799. super(MissingApiTokenError.ERROR_MESSAGE);
  24800. this.code = MissingApiTokenError.ERROR_CODE;
  24801. this.strCode = MissingApiTokenError.ERROR_STRING_CODE;
  24802. this.userMessage = MissingApiTokenError.ERROR_MESSAGE;
  24803. }
  24804. }
  24805. exports.MissingApiTokenError = MissingApiTokenError;
  24806. MissingApiTokenError.ERROR_CODE = 401;
  24807. MissingApiTokenError.ERROR_STRING_CODE = 'NO_API_TOKEN';
  24808. MissingApiTokenError.ERROR_MESSAGE = '`snyk` requires an authenticated account. Please run `snyk auth` and try again.';
  24809. /***/ }),
  24810. /***/ 85413:
  24811. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24812. "use strict";
  24813. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24814. exports.MissingArgError = void 0;
  24815. const custom_error_1 = __webpack_require__(17188);
  24816. class MissingArgError extends custom_error_1.CustomError {
  24817. constructor() {
  24818. const msg = 'Could not detect an image. Specify an image name to scan and try running the command again.';
  24819. super(msg);
  24820. this.code = 422;
  24821. this.userMessage = msg;
  24822. }
  24823. }
  24824. exports.MissingArgError = MissingArgError;
  24825. /***/ }),
  24826. /***/ 99001:
  24827. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24828. "use strict";
  24829. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24830. exports.MissingOptionError = void 0;
  24831. const custom_error_1 = __webpack_require__(17188);
  24832. class MissingOptionError extends custom_error_1.CustomError {
  24833. constructor(option, required) {
  24834. const msg = `The ${option} option can only be use in combination with ${required
  24835. .sort()
  24836. .join(' or ')}.`;
  24837. super(msg);
  24838. this.code = 422;
  24839. this.userMessage = msg;
  24840. }
  24841. }
  24842. exports.MissingOptionError = MissingOptionError;
  24843. /***/ }),
  24844. /***/ 56775:
  24845. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24846. "use strict";
  24847. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24848. exports.MissingTargetFileError = void 0;
  24849. const custom_error_1 = __webpack_require__(17188);
  24850. function MissingTargetFileError(path) {
  24851. const errorMsg = `Not a recognised option did you mean --file=${path}? ` +
  24852. 'Check other options by running snyk --help';
  24853. const error = new custom_error_1.CustomError(errorMsg);
  24854. error.code = 422;
  24855. error.userMessage = errorMsg;
  24856. return error;
  24857. }
  24858. exports.MissingTargetFileError = MissingTargetFileError;
  24859. /***/ }),
  24860. /***/ 93049:
  24861. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24862. "use strict";
  24863. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24864. exports.MonitorError = void 0;
  24865. const custom_error_1 = __webpack_require__(17188);
  24866. class MonitorError extends custom_error_1.CustomError {
  24867. constructor(errorCode, message) {
  24868. const errorMessage = message ? `, response: ${message}` : '';
  24869. const code = errorCode || 500;
  24870. super(MonitorError.ERROR_MESSAGE + `Status code: ${code}${errorMessage}`);
  24871. this.code = errorCode;
  24872. this.userMessage = message;
  24873. }
  24874. }
  24875. exports.MonitorError = MonitorError;
  24876. MonitorError.ERROR_MESSAGE = 'Server returned unexpected error for the monitor request. ';
  24877. /***/ }),
  24878. /***/ 65475:
  24879. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24880. "use strict";
  24881. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24882. exports.NoSupportedManifestsFoundError = void 0;
  24883. const chalk_1 = __webpack_require__(32589);
  24884. const custom_error_1 = __webpack_require__(17188);
  24885. function NoSupportedManifestsFoundError(atLocations) {
  24886. const locationsStr = atLocations.join(', ');
  24887. const errorMsg = 'Could not detect supported target files in ' +
  24888. locationsStr +
  24889. '.\nPlease see our documentation for supported languages and ' +
  24890. 'target files: ' +
  24891. chalk_1.default.underline('https://snyk.co/udVgQ') +
  24892. ' and make sure you are in the right directory.';
  24893. const error = new custom_error_1.CustomError(errorMsg);
  24894. error.code = 422;
  24895. error.userMessage = errorMsg;
  24896. return error;
  24897. }
  24898. exports.NoSupportedManifestsFoundError = NoSupportedManifestsFoundError;
  24899. /***/ }),
  24900. /***/ 42147:
  24901. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24902. "use strict";
  24903. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24904. exports.NoSupportedSastFiles = void 0;
  24905. const chalk_1 = __webpack_require__(32589);
  24906. const custom_error_1 = __webpack_require__(17188);
  24907. class NoSupportedSastFiles extends custom_error_1.CustomError {
  24908. constructor() {
  24909. super(NoSupportedSastFiles.ERROR_MESSAGE);
  24910. this.code = 422;
  24911. this.userMessage = NoSupportedSastFiles.ERROR_MESSAGE;
  24912. }
  24913. }
  24914. exports.NoSupportedSastFiles = NoSupportedSastFiles;
  24915. NoSupportedSastFiles.ERROR_MESSAGE = 'We found 0 supported files ' +
  24916. '\nPlease see our documentation for Snyk Code language and framework support\n' +
  24917. chalk_1.default.underline('https://docs.snyk.io/products/snyk-code/snyk-code-language-and-framework-support');
  24918. /***/ }),
  24919. /***/ 84005:
  24920. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24921. "use strict";
  24922. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24923. exports.NotFoundError = void 0;
  24924. const custom_error_1 = __webpack_require__(17188);
  24925. class NotFoundError extends custom_error_1.CustomError {
  24926. constructor(userMessage) {
  24927. super(userMessage || NotFoundError.ERROR_MESSAGE);
  24928. this.code = NotFoundError.ERROR_CODE;
  24929. this.userMessage = userMessage || NotFoundError.ERROR_MESSAGE;
  24930. }
  24931. }
  24932. exports.NotFoundError = NotFoundError;
  24933. NotFoundError.ERROR_CODE = 404;
  24934. NotFoundError.ERROR_MESSAGE = "Couldn't find the requested resource";
  24935. /***/ }),
  24936. /***/ 59189:
  24937. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24938. "use strict";
  24939. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24940. exports.PolicyNotFoundError = void 0;
  24941. const custom_error_1 = __webpack_require__(17188);
  24942. class PolicyNotFoundError extends custom_error_1.CustomError {
  24943. constructor() {
  24944. super(PolicyNotFoundError.ERROR_MESSAGE);
  24945. this.code = PolicyNotFoundError.ERROR_CODE;
  24946. this.strCode = PolicyNotFoundError.ERROR_STRING_CODE;
  24947. this.userMessage = PolicyNotFoundError.ERROR_MESSAGE;
  24948. }
  24949. }
  24950. exports.PolicyNotFoundError = PolicyNotFoundError;
  24951. PolicyNotFoundError.ERROR_CODE = 404;
  24952. PolicyNotFoundError.ERROR_STRING_CODE = 'MISSING_DOTFILE';
  24953. PolicyNotFoundError.ERROR_MESSAGE = 'Policy file not found.';
  24954. /***/ }),
  24955. /***/ 2972:
  24956. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24957. "use strict";
  24958. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24959. exports.TooManyVulnPaths = void 0;
  24960. const custom_error_1 = __webpack_require__(17188);
  24961. class TooManyVulnPaths extends custom_error_1.CustomError {
  24962. constructor() {
  24963. super(TooManyVulnPaths.ERROR_MESSAGE);
  24964. this.code = TooManyVulnPaths.ERROR_CODE;
  24965. this.strCode = TooManyVulnPaths.ERROR_STRING_CODE;
  24966. this.userMessage = TooManyVulnPaths.ERROR_MESSAGE;
  24967. }
  24968. }
  24969. exports.TooManyVulnPaths = TooManyVulnPaths;
  24970. TooManyVulnPaths.ERROR_CODE = 413;
  24971. TooManyVulnPaths.ERROR_STRING_CODE = 'TOO_MANY_VULN_PATHS';
  24972. TooManyVulnPaths.ERROR_MESSAGE = 'Too many vulnerable paths to process the project';
  24973. /***/ }),
  24974. /***/ 57245:
  24975. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24976. "use strict";
  24977. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24978. exports.FeatureNotSupportedForOrgError = void 0;
  24979. const custom_error_1 = __webpack_require__(17188);
  24980. class FeatureNotSupportedForOrgError extends custom_error_1.CustomError {
  24981. constructor(org, feature = 'Feature', additionalUserHelp = '') {
  24982. super(`Unsupported action for org ${org}.`);
  24983. this.code = 422;
  24984. this.org = org;
  24985. this.userMessage =
  24986. `${feature} is not supported for org` +
  24987. (org ? ` ${org}` : '') +
  24988. (additionalUserHelp ? `: ${additionalUserHelp}` : '.');
  24989. }
  24990. }
  24991. exports.FeatureNotSupportedForOrgError = FeatureNotSupportedForOrgError;
  24992. /***/ }),
  24993. /***/ 45848:
  24994. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  24995. "use strict";
  24996. Object.defineProperty(exports, "__esModule", ({ value: true }));
  24997. exports.UnsupportedOptionCombinationError = void 0;
  24998. const custom_error_1 = __webpack_require__(17188);
  24999. class UnsupportedOptionCombinationError extends custom_error_1.CustomError {
  25000. constructor(options) {
  25001. super(UnsupportedOptionCombinationError.ERROR_MESSAGE + options.join(' + '));
  25002. this.code = 422;
  25003. this.userMessage =
  25004. UnsupportedOptionCombinationError.ERROR_MESSAGE + options.join(' + ');
  25005. }
  25006. }
  25007. exports.UnsupportedOptionCombinationError = UnsupportedOptionCombinationError;
  25008. UnsupportedOptionCombinationError.ERROR_MESSAGE = 'The following option combination is not currently supported: ';
  25009. /***/ }),
  25010. /***/ 73462:
  25011. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25012. "use strict";
  25013. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25014. exports.UnsupportedPackageManagerError = void 0;
  25015. const custom_error_1 = __webpack_require__(17188);
  25016. const pms = __webpack_require__(53847);
  25017. class UnsupportedPackageManagerError extends custom_error_1.CustomError {
  25018. constructor(packageManager) {
  25019. super(`Unsupported package manager ${packageManager}.` +
  25020. UnsupportedPackageManagerError.ERROR_MESSAGE);
  25021. this.code = 422;
  25022. this.userMessage =
  25023. `Unsupported package manager '${packageManager}''. ` +
  25024. UnsupportedPackageManagerError.ERROR_MESSAGE;
  25025. }
  25026. }
  25027. exports.UnsupportedPackageManagerError = UnsupportedPackageManagerError;
  25028. UnsupportedPackageManagerError.ERROR_MESSAGE = 'Here are our supported package managers:' +
  25029. `${Object.keys(pms.SUPPORTED_PACKAGE_MANAGER_NAME).map((i) => '\n - ' + i + ' (' + pms.SUPPORTED_PACKAGE_MANAGER_NAME[i] + ')')}
  25030. `;
  25031. /***/ }),
  25032. /***/ 38008:
  25033. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25034. "use strict";
  25035. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25036. exports.ValidationError = void 0;
  25037. const custom_error_1 = __webpack_require__(17188);
  25038. class ValidationError extends custom_error_1.CustomError {
  25039. constructor(message) {
  25040. super(message);
  25041. this.userMessage = message;
  25042. }
  25043. }
  25044. exports.ValidationError = ValidationError;
  25045. /***/ }),
  25046. /***/ 10090:
  25047. /***/ ((__unused_webpack_module, exports) => {
  25048. "use strict";
  25049. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25050. exports.isCI = void 0;
  25051. const ciEnvs = new Set([
  25052. 'SNYK_CI',
  25053. 'CI',
  25054. 'CONTINUOUS_INTEGRATION',
  25055. 'BUILD_ID',
  25056. 'BUILD_NUMBER',
  25057. 'TEAMCITY_VERSION',
  25058. 'TRAVIS',
  25059. 'CIRCLECI',
  25060. 'JENKINS_URL',
  25061. 'HUDSON_URL',
  25062. 'bamboo.buildKey',
  25063. 'PHPCI',
  25064. 'GOCD_SERVER_HOST',
  25065. 'BUILDKITE',
  25066. 'TF_BUILD',
  25067. 'SYSTEM_TEAMFOUNDATIONSERVERURI',
  25068. ]);
  25069. function isCI() {
  25070. return Object.keys(process.env).some((key) => ciEnvs.has(key));
  25071. }
  25072. exports.isCI = isCI;
  25073. /***/ }),
  25074. /***/ 83421:
  25075. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25076. "use strict";
  25077. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25078. exports.saveJsonToFileCreatingDirectoryIfRequired = exports.writeContentsToFileSwallowingErrors = exports.createDirectory = exports.MIN_VERSION_FOR_MKDIR_RECURSIVE = void 0;
  25079. const semver_1 = __webpack_require__(36625);
  25080. const fs_1 = __webpack_require__(35747);
  25081. const path = __webpack_require__(85622);
  25082. exports.MIN_VERSION_FOR_MKDIR_RECURSIVE = '10.12.0';
  25083. /**
  25084. * Attempts to create a directory and fails quietly if it cannot. Rather than throwing errors it logs them to stderr and returns false.
  25085. * It will attempt to recursively nested direcotry (ex `mkdir -p` style) if it needs to but will fail to do so with Node < 10 LTS.
  25086. * @param newDirectoryFullPath the full path to a directory to create
  25087. * @returns true if either the directory already exists or it is successful in creating one or false if it fails to create it.
  25088. */
  25089. function createDirectory(newDirectoryFullPath) {
  25090. // if the path already exists, true
  25091. // if we successfully create the directory, return true
  25092. // if we can't successfully create the directory, either because node < 10 and recursive or some other failure, catch the error and return false
  25093. if (fs_1.existsSync(newDirectoryFullPath)) {
  25094. return true;
  25095. }
  25096. const nodeVersion = process.version;
  25097. try {
  25098. if (semver_1.gte(nodeVersion, exports.MIN_VERSION_FOR_MKDIR_RECURSIVE)) {
  25099. // nodeVersion is >= 10.12.0 - required for mkdirsync recursive
  25100. const options = { recursive: true }; // TODO: remove this after we drop support for node v8
  25101. fs_1.mkdirSync(newDirectoryFullPath, options);
  25102. return true;
  25103. }
  25104. else {
  25105. // nodeVersion is < 10.12.0
  25106. fs_1.mkdirSync(newDirectoryFullPath);
  25107. return true;
  25108. }
  25109. }
  25110. catch (err) {
  25111. console.error(err);
  25112. console.error(`could not create directory ${newDirectoryFullPath}`);
  25113. return false;
  25114. }
  25115. }
  25116. exports.createDirectory = createDirectory;
  25117. /**
  25118. * Write the given contents to a file.
  25119. * If any errors are thrown in the process they are caught, logged, and discarded.
  25120. * @param jsonOutputFile the path of the file you want to write.
  25121. * @param contents the contents you want to write.
  25122. */
  25123. async function writeContentsToFileSwallowingErrors(jsonOutputFile, contents) {
  25124. return new Promise((resolve) => {
  25125. try {
  25126. const ws = fs_1.createWriteStream(jsonOutputFile, { flags: 'w' });
  25127. ws.on('error', (err) => {
  25128. console.error(err);
  25129. resolve();
  25130. });
  25131. ws.write(contents);
  25132. ws.end('\n');
  25133. ws.on('finish', () => {
  25134. resolve();
  25135. });
  25136. }
  25137. catch (err) {
  25138. console.error(err);
  25139. return Promise.resolve();
  25140. }
  25141. });
  25142. }
  25143. exports.writeContentsToFileSwallowingErrors = writeContentsToFileSwallowingErrors;
  25144. async function saveJsonToFileCreatingDirectoryIfRequired(jsonOutputFile, contents) {
  25145. const dirPath = path.dirname(jsonOutputFile);
  25146. const createDirSuccess = createDirectory(dirPath);
  25147. if (createDirSuccess) {
  25148. await writeContentsToFileSwallowingErrors(jsonOutputFile, contents);
  25149. }
  25150. }
  25151. exports.saveJsonToFileCreatingDirectoryIfRequired = saveJsonToFileCreatingDirectoryIfRequired;
  25152. /***/ }),
  25153. /***/ 32971:
  25154. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25155. "use strict";
  25156. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25157. exports.MetricsCollector = exports.SyntheticMetric = exports.TimerMetric = exports.Metric = exports.SyntheticMetricInstance = exports.TimerMetricInstance = exports.MetricInstance = exports.METRIC_TYPE_SYNTHETIC = exports.METRIC_TYPE_TIMER = void 0;
  25158. const debug = __webpack_require__(15158)('snyk-metrics');
  25159. exports.METRIC_TYPE_TIMER = 'timer';
  25160. exports.METRIC_TYPE_SYNTHETIC = 'synthetic';
  25161. class MetricInstance {
  25162. }
  25163. exports.MetricInstance = MetricInstance;
  25164. class TimerMetricInstance extends MetricInstance {
  25165. /**
  25166. * Creates a new TimerMetricInstance
  25167. * @param metricTag used for logging to identify the metric
  25168. */
  25169. constructor(metricTag) {
  25170. super();
  25171. this.startTimeMs = 0;
  25172. this.endTimeMs = 0;
  25173. this.metricTag = metricTag;
  25174. }
  25175. getValue() {
  25176. if (this.startTimeMs !== 0 && this.endTimeMs !== 0) {
  25177. return this.endTimeMs - this.startTimeMs;
  25178. }
  25179. else {
  25180. return undefined;
  25181. }
  25182. }
  25183. start() {
  25184. if (this.startTimeMs === 0) {
  25185. this.startTimeMs = Date.now();
  25186. debug(`Timer ${this.metricTag} started at ${this.startTimeMs}.`);
  25187. }
  25188. else {
  25189. debug('Invalid Timer use: start() called when timer already stopped');
  25190. }
  25191. }
  25192. stop() {
  25193. if (this.endTimeMs === 0) {
  25194. this.endTimeMs = Date.now();
  25195. debug(`Timer ${this.metricTag} stopped at ${this.endTimeMs}. Elapsed time is ${this.getValue()}`);
  25196. }
  25197. else {
  25198. debug('Invalid Timer use: stop() called when timer already stopped');
  25199. }
  25200. }
  25201. }
  25202. exports.TimerMetricInstance = TimerMetricInstance;
  25203. class SyntheticMetricInstance extends MetricInstance {
  25204. constructor() {
  25205. super(...arguments);
  25206. this.value = 0;
  25207. }
  25208. setValue(value) {
  25209. this.value = value;
  25210. }
  25211. getValue() {
  25212. return this.value;
  25213. }
  25214. }
  25215. exports.SyntheticMetricInstance = SyntheticMetricInstance;
  25216. class Metric {
  25217. constructor(name, metricType, context) {
  25218. this.instances = [];
  25219. this.name = name;
  25220. this.metricType = metricType;
  25221. this.context = context;
  25222. }
  25223. clear() {
  25224. this.instances = [];
  25225. }
  25226. getValues() {
  25227. return this.instances.map((mi) => mi.getValue() || 0);
  25228. }
  25229. getTotal() {
  25230. const sumMetricValues = (accum, current) => {
  25231. const currentTimerMs = current.getValue() || 0;
  25232. return (accum = accum + currentTimerMs);
  25233. };
  25234. const total = this.instances.reduce(sumMetricValues, 0);
  25235. return total;
  25236. }
  25237. }
  25238. exports.Metric = Metric;
  25239. class TimerMetric extends Metric {
  25240. createInstance() {
  25241. const t = new TimerMetricInstance(`${this.metricType}/${this.name}`);
  25242. this.instances.push(t);
  25243. return t;
  25244. }
  25245. }
  25246. exports.TimerMetric = TimerMetric;
  25247. class SyntheticMetric extends Metric {
  25248. createInstance() {
  25249. const sm = new SyntheticMetricInstance();
  25250. this.instances.push(sm);
  25251. return sm;
  25252. }
  25253. }
  25254. exports.SyntheticMetric = SyntheticMetric;
  25255. class MetricsCollector {
  25256. static getAllMetrics() {
  25257. const metrics = [
  25258. MetricsCollector.NETWORK_TIME,
  25259. MetricsCollector.CPU_TIME,
  25260. ];
  25261. const res = {};
  25262. for (const m of metrics) {
  25263. res[m.name] = {
  25264. type: m.metricType,
  25265. values: m.getValues(),
  25266. total: m.getTotal(),
  25267. };
  25268. }
  25269. return res;
  25270. }
  25271. }
  25272. exports.MetricsCollector = MetricsCollector;
  25273. MetricsCollector.NETWORK_TIME = new TimerMetric('network_time', 'timer', 'Total time spent making and waiting on network requests');
  25274. MetricsCollector.CPU_TIME = new SyntheticMetric('cpu_time', 'synthetic', 'Time spent on things other than network requests');
  25275. /***/ }),
  25276. /***/ 53847:
  25277. /***/ ((__unused_webpack_module, exports) => {
  25278. "use strict";
  25279. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25280. exports.PINNING_SUPPORTED_PACKAGE_MANAGERS = exports.GRAPH_SUPPORTED_PACKAGE_MANAGERS = exports.SUPPORTED_PACKAGE_MANAGER_NAME = exports.SUPPORTED_MANIFEST_FILES = void 0;
  25281. var SUPPORTED_MANIFEST_FILES;
  25282. (function (SUPPORTED_MANIFEST_FILES) {
  25283. SUPPORTED_MANIFEST_FILES["GEMFILE"] = "Gemfile";
  25284. SUPPORTED_MANIFEST_FILES["GEMFILE_LOCK"] = "Gemfile.lock";
  25285. SUPPORTED_MANIFEST_FILES["GEMSPEC"] = ".gemspec";
  25286. SUPPORTED_MANIFEST_FILES["PACKAGE_LOCK_JSON"] = "package-lock.json";
  25287. SUPPORTED_MANIFEST_FILES["POM_XML"] = "pom.xml";
  25288. SUPPORTED_MANIFEST_FILES["JAR"] = ".jar";
  25289. SUPPORTED_MANIFEST_FILES["WAR"] = ".war";
  25290. SUPPORTED_MANIFEST_FILES["BUILD_GRADLE"] = "build.gradle";
  25291. SUPPORTED_MANIFEST_FILES["BUILD_GRADLE_KTS"] = "build.gradle.kts";
  25292. SUPPORTED_MANIFEST_FILES["BUILD_SBT"] = "build.sbt";
  25293. SUPPORTED_MANIFEST_FILES["YARN_LOCK"] = "yarn.lock";
  25294. SUPPORTED_MANIFEST_FILES["PACKAGE_JSON"] = "package.json";
  25295. SUPPORTED_MANIFEST_FILES["PIPFILE"] = "Pipfile";
  25296. SUPPORTED_MANIFEST_FILES["SETUP_PY"] = "setup.py";
  25297. SUPPORTED_MANIFEST_FILES["REQUIREMENTS_TXT"] = "requirements.txt";
  25298. SUPPORTED_MANIFEST_FILES["GOPKG_LOCK"] = "Gopkg.lock";
  25299. SUPPORTED_MANIFEST_FILES["GO_MOD"] = "go.mod";
  25300. SUPPORTED_MANIFEST_FILES["VENDOR_JSON"] = "vendor.json";
  25301. SUPPORTED_MANIFEST_FILES["PROJECT_ASSETS_JSON"] = "project.assets.json";
  25302. SUPPORTED_MANIFEST_FILES["PACKAGES_CONFIG"] = "packages.config";
  25303. SUPPORTED_MANIFEST_FILES["PROJECT_JSON"] = "project.json";
  25304. SUPPORTED_MANIFEST_FILES["PAKET_DEPENDENCIES"] = "paket.dependencies";
  25305. SUPPORTED_MANIFEST_FILES["COMPOSER_LOCK"] = "composer.lock";
  25306. SUPPORTED_MANIFEST_FILES["PODFILE_LOCK"] = "Podfile.lock";
  25307. SUPPORTED_MANIFEST_FILES["COCOAPODS_PODFILE_YAML"] = "CocoaPods.podfile.yaml";
  25308. SUPPORTED_MANIFEST_FILES["COCOAPODS_PODFILE"] = "CocoaPods.podfile";
  25309. SUPPORTED_MANIFEST_FILES["PODFILE"] = "Podfile";
  25310. SUPPORTED_MANIFEST_FILES["POETRY_LOCK"] = "poetry.lock";
  25311. SUPPORTED_MANIFEST_FILES["MIX_EXS"] = "mix.exs";
  25312. })(SUPPORTED_MANIFEST_FILES = exports.SUPPORTED_MANIFEST_FILES || (exports.SUPPORTED_MANIFEST_FILES = {}));
  25313. exports.SUPPORTED_PACKAGE_MANAGER_NAME = {
  25314. rubygems: 'RubyGems',
  25315. npm: 'npm',
  25316. yarn: 'Yarn',
  25317. maven: 'Maven',
  25318. pip: 'pip',
  25319. sbt: 'SBT',
  25320. gradle: 'Gradle',
  25321. golangdep: 'dep (Go)',
  25322. gomodules: 'Go Modules',
  25323. govendor: 'govendor',
  25324. nuget: 'NuGet',
  25325. paket: 'Paket',
  25326. composer: 'Composer',
  25327. cocoapods: 'CocoaPods',
  25328. poetry: 'Poetry',
  25329. hex: 'Hex',
  25330. 'Unmanaged (C/C++)': 'Unmanaged (C/C++)',
  25331. };
  25332. exports.GRAPH_SUPPORTED_PACKAGE_MANAGERS = [
  25333. 'npm',
  25334. 'sbt',
  25335. 'yarn',
  25336. 'rubygems',
  25337. 'poetry',
  25338. ];
  25339. // For ecosystems with a flat set of libraries (e.g. Python, JVM), one can
  25340. // "pin" a transitive dependency
  25341. exports.PINNING_SUPPORTED_PACKAGE_MANAGERS = [
  25342. 'pip',
  25343. ];
  25344. /***/ }),
  25345. /***/ 52050:
  25346. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25347. "use strict";
  25348. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25349. exports.makeRequest = void 0;
  25350. const request_1 = __webpack_require__(1552);
  25351. const alerts = __webpack_require__(21696);
  25352. const metrics_1 = __webpack_require__(32971);
  25353. async function makeRequestWrapper(payload, callback) {
  25354. const totalNetworkTimeTimer = metrics_1.MetricsCollector.NETWORK_TIME.createInstance();
  25355. totalNetworkTimeTimer.start();
  25356. try {
  25357. const result = await request_1.makeRequest(payload);
  25358. if (result.body.alerts) {
  25359. alerts.registerAlerts(result.body.alerts);
  25360. }
  25361. // make callbacks and promises work
  25362. if (callback) {
  25363. callback(null, result.res, result.body);
  25364. }
  25365. return result;
  25366. }
  25367. catch (error) {
  25368. if (callback) {
  25369. return callback(error);
  25370. }
  25371. throw error;
  25372. }
  25373. finally {
  25374. totalNetworkTimeTimer.stop();
  25375. }
  25376. }
  25377. exports.makeRequest = makeRequestWrapper;
  25378. /***/ }),
  25379. /***/ 1552:
  25380. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25381. "use strict";
  25382. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25383. exports.streamRequest = exports.makeRequest = void 0;
  25384. const debug_1 = __webpack_require__(15158);
  25385. const needle = __webpack_require__(64484);
  25386. const url_1 = __webpack_require__(78835);
  25387. const querystring = __webpack_require__(71191);
  25388. const zlib = __webpack_require__(78761);
  25389. const config_1 = __webpack_require__(25425);
  25390. const proxy_from_env_1 = __webpack_require__(21394);
  25391. const global_agent_1 = __webpack_require__(97959);
  25392. const version_1 = __webpack_require__(38217);
  25393. const https = __webpack_require__(57211);
  25394. const http = __webpack_require__(98605);
  25395. const debug = debug_1.debug('snyk:req');
  25396. const snykDebug = debug_1.debug('snyk');
  25397. function setupRequest(payload) {
  25398. // This ensures we support lowercase http(s)_proxy values as well
  25399. // The weird IF around it ensures we don't create an envvar with a value of undefined, which throws error when trying to use it as a proxy
  25400. if (process.env.HTTP_PROXY || process.env.http_proxy) {
  25401. process.env.HTTP_PROXY = process.env.HTTP_PROXY || process.env.http_proxy;
  25402. }
  25403. if (process.env.HTTPS_PROXY || process.env.https_proxy) {
  25404. process.env.HTTPS_PROXY =
  25405. process.env.HTTPS_PROXY || process.env.https_proxy;
  25406. }
  25407. const versionNumber = version_1.getVersion();
  25408. const body = payload.body;
  25409. let data;
  25410. delete payload.body;
  25411. if (!payload.headers) {
  25412. payload.headers = {};
  25413. }
  25414. payload.headers['x-snyk-cli-version'] = versionNumber;
  25415. if (body) {
  25416. const json = JSON.stringify(body);
  25417. if (json.length < 1e4) {
  25418. debug(JSON.stringify(body, null, 2));
  25419. }
  25420. // always compress going upstream
  25421. data = zlib.gzipSync(json, { level: 9 });
  25422. snykDebug('sending request to:', payload.url);
  25423. snykDebug('request body size:', json.length);
  25424. snykDebug('gzipped request body size:', data.length);
  25425. let callGraphLength = null;
  25426. if (body.callGraph) {
  25427. callGraphLength = JSON.stringify(body.callGraph).length;
  25428. snykDebug('call graph size:', callGraphLength);
  25429. }
  25430. payload.headers['content-encoding'] = 'gzip';
  25431. payload.headers['content-length'] = data.length;
  25432. }
  25433. const parsedUrl = url_1.parse(payload.url);
  25434. if (parsedUrl.protocol === 'http:' &&
  25435. parsedUrl.hostname !== 'localhost' &&
  25436. process.env.SNYK_HTTP_PROTOCOL_UPGRADE !== '0') {
  25437. debug('forcing api request to https');
  25438. parsedUrl.protocol = 'https:';
  25439. payload.url = url_1.format(parsedUrl);
  25440. }
  25441. // prefer config timeout unless payload specified
  25442. if (!payload.hasOwnProperty('timeout')) {
  25443. payload.timeout = config_1.default.timeout * 1000; // s -> ms
  25444. }
  25445. try {
  25446. debug('request payload: ', JSON.stringify(payload));
  25447. }
  25448. catch (e) {
  25449. debug('request payload is too big to log', e);
  25450. }
  25451. const method = (payload.method || 'get').toLowerCase();
  25452. let url = payload.url;
  25453. if (payload.qs) {
  25454. // Parse the URL and append the search part - this will take care of adding the '/?' part if it's missing
  25455. const urlObject = new URL(url);
  25456. urlObject.search = querystring.stringify(payload.qs);
  25457. url = urlObject.toString();
  25458. delete payload.qs;
  25459. }
  25460. const agent = parsedUrl.protocol === 'http:'
  25461. ? new http.Agent({ keepAlive: true })
  25462. : new https.Agent({ keepAlive: true });
  25463. const options = {
  25464. json: payload.json,
  25465. headers: payload.headers,
  25466. timeout: payload.timeout,
  25467. follow_max: 5,
  25468. family: payload.family,
  25469. agent,
  25470. };
  25471. const proxyUri = proxy_from_env_1.getProxyForUrl(url);
  25472. if (proxyUri) {
  25473. snykDebug('using proxy:', proxyUri);
  25474. global_agent_1.bootstrap({
  25475. environmentVariableNamespace: '',
  25476. });
  25477. }
  25478. else {
  25479. snykDebug('not using proxy');
  25480. }
  25481. if (global.ignoreUnknownCA) {
  25482. debug('Using insecure mode (ignore unknown certificate authority)');
  25483. options.rejectUnauthorized = false;
  25484. }
  25485. return { method, url, data, options };
  25486. }
  25487. async function makeRequest(payload) {
  25488. const { method, url, data, options } = setupRequest(payload);
  25489. return new Promise((resolve, reject) => {
  25490. needle.request(method, url, data, options, (err, res, respBody) => {
  25491. debug(err);
  25492. debug('response (%s): ', (res || {}).statusCode, JSON.stringify(respBody));
  25493. if (err) {
  25494. return reject(err);
  25495. }
  25496. resolve({ res, body: respBody });
  25497. });
  25498. });
  25499. }
  25500. exports.makeRequest = makeRequest;
  25501. async function streamRequest(payload) {
  25502. const { method, url, data, options } = setupRequest(payload);
  25503. try {
  25504. const result = await needle.request(method, url, data, options);
  25505. const statusCode = await getStatusCode(result);
  25506. debug('response (%s): <stream>', statusCode);
  25507. return result;
  25508. }
  25509. catch (e) {
  25510. debug(e);
  25511. throw e;
  25512. }
  25513. }
  25514. exports.streamRequest = streamRequest;
  25515. async function getStatusCode(stream) {
  25516. return new Promise((resolve, reject) => {
  25517. stream.on('header', (statusCode) => {
  25518. resolve(statusCode);
  25519. });
  25520. stream.on('err', (err) => {
  25521. reject(err);
  25522. });
  25523. });
  25524. }
  25525. /***/ }),
  25526. /***/ 87044:
  25527. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25528. "use strict";
  25529. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25530. exports.updateArgs = exports.parsePathsFromSln = void 0;
  25531. const fs = __webpack_require__(35747);
  25532. const path = __webpack_require__(85622);
  25533. const detect = __webpack_require__(45318);
  25534. const no_supported_manifests_found_1 = __webpack_require__(65475);
  25535. const Debug = __webpack_require__(15158);
  25536. const errors_1 = __webpack_require__(55191);
  25537. const debug = Debug('snyk');
  25538. // slnFile should exist.
  25539. // returns array of project paths (path/to/manifest.file)
  25540. exports.parsePathsFromSln = (slnFile) => {
  25541. // read project scopes from solution file
  25542. // [\s\S] is like ., but with newlines!
  25543. // *? means grab the shortest match
  25544. const projectScopes = loadFile(path.resolve(slnFile)).match(/Project[\s\S]*?EndProject/g) || [];
  25545. const paths = projectScopes
  25546. .map((projectScope) => {
  25547. const secondArg = projectScope.split(',')[1];
  25548. // expected ` "path/to/manifest.file"`, clean it up
  25549. return secondArg && secondArg.trim().replace(/"/g, '');
  25550. })
  25551. // drop falsey values
  25552. .filter(Boolean)
  25553. // convert path separators
  25554. .map((projectPath) => {
  25555. return path.dirname(projectPath.replace(/\\/g, path.sep));
  25556. });
  25557. debug('extracted paths from solution file: ', paths);
  25558. return paths;
  25559. };
  25560. exports.updateArgs = (args) => {
  25561. if (!args.options.file || typeof args.options.file !== 'string') {
  25562. throw new errors_1.FileFlagBadInputError();
  25563. }
  25564. // save the path if --file=path/file.sln
  25565. const slnFilePath = path.dirname(args.options.file);
  25566. // extract all referenced projects from solution
  25567. // keep only those that contain relevant manifest files
  25568. const projectFolders = exports.parsePathsFromSln(args.options.file);
  25569. const foldersWithSupportedProjects = projectFolders
  25570. .map((projectPath) => {
  25571. const projectFolder = path.resolve(slnFilePath, projectPath);
  25572. const manifestFile = detect.detectPackageFile(projectFolder);
  25573. return manifestFile ? projectFolder : undefined;
  25574. })
  25575. .filter(Boolean);
  25576. debug('valid project folders in solution: ', projectFolders);
  25577. if (foldersWithSupportedProjects.length === 0) {
  25578. throw no_supported_manifests_found_1.NoSupportedManifestsFoundError([...projectFolders]);
  25579. }
  25580. // delete the file option as the solution has now been parsed
  25581. delete args.options.file;
  25582. // mutates args!
  25583. addProjectFoldersToArgs(args, foldersWithSupportedProjects);
  25584. };
  25585. function addProjectFoldersToArgs(args, projectFolders) {
  25586. // keep the last arg (options) aside for later use
  25587. const lastArg = args.options._.pop();
  25588. // add relevant project paths as if they were given as a runtime path args
  25589. args.options._ = args.options._.concat(projectFolders);
  25590. // bring back the last (options) arg
  25591. args.options._.push(lastArg);
  25592. }
  25593. function loadFile(filePath) {
  25594. // fs.existsSync doesn't throw an exception; no need for try
  25595. if (!fs.existsSync(filePath)) {
  25596. throw new Error('File not found: ' + filePath);
  25597. }
  25598. return fs.readFileSync(filePath, 'utf8');
  25599. }
  25600. /***/ }),
  25601. /***/ 53110:
  25602. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25603. "use strict";
  25604. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25605. exports.FAIL_ON = exports.colorTextBySeverity = exports.SEVERITIES = exports.SEVERITY = exports.assembleQueryString = void 0;
  25606. const config_1 = __webpack_require__(25425);
  25607. const theme_1 = __webpack_require__(86988);
  25608. function assembleQueryString(options) {
  25609. const org = options.org || config_1.default.org || null;
  25610. const qs = {
  25611. org,
  25612. };
  25613. if (options.severityThreshold) {
  25614. qs.severityThreshold = options.severityThreshold;
  25615. }
  25616. if (options['ignore-policy']) {
  25617. qs.ignorePolicy = true;
  25618. }
  25619. return Object.keys(qs).length !== 0 ? qs : null;
  25620. }
  25621. exports.assembleQueryString = assembleQueryString;
  25622. var SEVERITY;
  25623. (function (SEVERITY) {
  25624. SEVERITY["LOW"] = "low";
  25625. SEVERITY["MEDIUM"] = "medium";
  25626. SEVERITY["HIGH"] = "high";
  25627. SEVERITY["CRITICAL"] = "critical";
  25628. })(SEVERITY = exports.SEVERITY || (exports.SEVERITY = {}));
  25629. exports.SEVERITIES = [
  25630. {
  25631. verboseName: SEVERITY.LOW,
  25632. value: 1,
  25633. },
  25634. {
  25635. verboseName: SEVERITY.MEDIUM,
  25636. value: 2,
  25637. },
  25638. {
  25639. verboseName: SEVERITY.HIGH,
  25640. value: 3,
  25641. },
  25642. {
  25643. verboseName: SEVERITY.CRITICAL,
  25644. value: 4,
  25645. },
  25646. ];
  25647. function colorTextBySeverity(severity, textToColor) {
  25648. return (theme_1.color.severity[(severity || '').toLowerCase()] || theme_1.color.severity.low)(textToColor);
  25649. }
  25650. exports.colorTextBySeverity = colorTextBySeverity;
  25651. var FAIL_ON;
  25652. (function (FAIL_ON) {
  25653. FAIL_ON["all"] = "all";
  25654. FAIL_ON["upgradable"] = "upgradable";
  25655. FAIL_ON["patchable"] = "patchable";
  25656. })(FAIL_ON = exports.FAIL_ON || (exports.FAIL_ON = {}));
  25657. /***/ }),
  25658. /***/ 86766:
  25659. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25660. "use strict";
  25661. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25662. exports.spinner = void 0;
  25663. const debugModule = __webpack_require__(15158);
  25664. const is_ci_1 = __webpack_require__(10090);
  25665. const debug = debugModule('snyk:spinner');
  25666. const spinners = {};
  25667. let sticky = false;
  25668. let handleExit = false;
  25669. async function addSpinner(label) {
  25670. if (!label) {
  25671. throw new Error('spinner requires a label');
  25672. }
  25673. if (spinners[label] === undefined) {
  25674. spinners[label] = [];
  25675. }
  25676. // helper...
  25677. return new Promise((resolve) => {
  25678. debug('spinner: %s', label);
  25679. spinners[label].push(createSpinner({
  25680. // string: '◐◓◑◒',
  25681. stream: sticky ? process.stdout : process.stderr,
  25682. interval: 75,
  25683. label,
  25684. }));
  25685. resolve();
  25686. });
  25687. }
  25688. exports.spinner = addSpinner;
  25689. addSpinner.sticky = (s) => {
  25690. sticky = s === undefined ? true : s;
  25691. };
  25692. addSpinner.clear = (label) => {
  25693. return (res) => {
  25694. if (spinners[label] === undefined) {
  25695. // clearing a non-existend spinner is ok by default
  25696. return res;
  25697. }
  25698. debug('clearing %s (%s)', label, spinners[label].length);
  25699. if (spinners[label].length) {
  25700. const s = spinners[label].pop();
  25701. if (s) {
  25702. s.clear();
  25703. }
  25704. }
  25705. return res;
  25706. };
  25707. };
  25708. addSpinner.clearAll = () => {
  25709. Object.keys(spinners).map((lbl) => {
  25710. addSpinner.clear(lbl)();
  25711. });
  25712. };
  25713. // adapted from https://github.com/isaacs/char-spinner/blob/201fb1312e0472af3e7a044bd38d9bdf1a663b6d/spin.js
  25714. function createSpinner(opt) {
  25715. if (is_ci_1.isCI()) {
  25716. return false;
  25717. }
  25718. debug('creating spinner');
  25719. if (!opt) {
  25720. opt = {};
  25721. }
  25722. const str = opt.stream || process.stderr;
  25723. const tty = typeof opt.tty === 'boolean' ? opt.tty : true;
  25724. const stringOpt = opt.string || '/-\\|';
  25725. let ms = typeof opt.interval === 'number' ? opt.interval : 50;
  25726. if (ms < 0) {
  25727. ms = 0;
  25728. }
  25729. if (tty && !str.isTTY) {
  25730. return false;
  25731. }
  25732. const CR = str.isTTY ? '\u001b[0G' : '\u000d';
  25733. const CLEAR = str.isTTY ? '\u001b[2K' : '\u000d \u000d';
  25734. let s = 0;
  25735. const sprite = stringOpt.split('');
  25736. let wrote = false;
  25737. let delay = typeof opt.delay === 'number' ? opt.delay : 2;
  25738. const interval = setInterval(() => {
  25739. if (--delay >= 0) {
  25740. return;
  25741. }
  25742. s = ++s % sprite.length;
  25743. const c = sprite[s];
  25744. str.write(c + ' ' + (opt.label || '') + CR);
  25745. wrote = true;
  25746. }, ms);
  25747. const unref = typeof opt.unref === 'boolean' ? opt.unref : true;
  25748. if (unref && typeof interval.unref === 'function') {
  25749. interval.unref();
  25750. }
  25751. const cleanup = typeof opt.cleanup === 'boolean' ? opt.cleanup : true;
  25752. if (cleanup && !handleExit) {
  25753. handleExit = true;
  25754. process.on('exit', () => {
  25755. if (wrote) {
  25756. str.write(CLEAR);
  25757. }
  25758. });
  25759. }
  25760. createSpinner.clear = () => {
  25761. clearInterval(interval);
  25762. // debug('spinner cleared');
  25763. if (sticky) {
  25764. str.write(CLEAR);
  25765. str.write(opt.label + '\n');
  25766. }
  25767. else {
  25768. str.write(CLEAR);
  25769. }
  25770. };
  25771. return {
  25772. clear: createSpinner.clear,
  25773. };
  25774. }
  25775. /***/ }),
  25776. /***/ 86988:
  25777. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25778. "use strict";
  25779. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25780. exports.color = exports.icon = void 0;
  25781. const chalk_1 = __webpack_require__(32589);
  25782. exports.icon = {
  25783. RUN: '►',
  25784. VALID: '✔',
  25785. ISSUE: '✗',
  25786. WARNING: '⚠',
  25787. INFO: 'ℹ',
  25788. };
  25789. exports.color = {
  25790. status: {
  25791. error: (text) => chalk_1.default.red(text),
  25792. warn: (text) => chalk_1.default.yellow(text),
  25793. success: (text) => chalk_1.default.green(text),
  25794. },
  25795. severity: {
  25796. critical: (text) => chalk_1.default.magenta(text),
  25797. high: (text) => chalk_1.default.red(text),
  25798. medium: (text) => chalk_1.default.yellow(text),
  25799. low: (text) => text,
  25800. },
  25801. };
  25802. /***/ }),
  25803. /***/ 94055:
  25804. /***/ ((__unused_webpack_module, exports) => {
  25805. "use strict";
  25806. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25807. exports.SupportedCliCommands = exports.PROJECT_LIFECYCLE = exports.PROJECT_ENVIRONMENT = exports.PROJECT_CRITICALITY = void 0;
  25808. var PROJECT_CRITICALITY;
  25809. (function (PROJECT_CRITICALITY) {
  25810. PROJECT_CRITICALITY["CRITICAL"] = "critical";
  25811. PROJECT_CRITICALITY["HIGH"] = "high";
  25812. PROJECT_CRITICALITY["MEDIUM"] = "medium";
  25813. PROJECT_CRITICALITY["LOW"] = "low";
  25814. })(PROJECT_CRITICALITY = exports.PROJECT_CRITICALITY || (exports.PROJECT_CRITICALITY = {}));
  25815. var PROJECT_ENVIRONMENT;
  25816. (function (PROJECT_ENVIRONMENT) {
  25817. PROJECT_ENVIRONMENT["FRONTEND"] = "frontend";
  25818. PROJECT_ENVIRONMENT["BACKEND"] = "backend";
  25819. PROJECT_ENVIRONMENT["INTERNAL"] = "internal";
  25820. PROJECT_ENVIRONMENT["EXTERNAL"] = "external";
  25821. PROJECT_ENVIRONMENT["MOBILE"] = "mobile";
  25822. PROJECT_ENVIRONMENT["SAAS"] = "saas";
  25823. PROJECT_ENVIRONMENT["ONPREM"] = "onprem";
  25824. PROJECT_ENVIRONMENT["HOSTED"] = "hosted";
  25825. PROJECT_ENVIRONMENT["DISTRIBUTED"] = "distributed";
  25826. })(PROJECT_ENVIRONMENT = exports.PROJECT_ENVIRONMENT || (exports.PROJECT_ENVIRONMENT = {}));
  25827. var PROJECT_LIFECYCLE;
  25828. (function (PROJECT_LIFECYCLE) {
  25829. PROJECT_LIFECYCLE["PRODUCTION"] = "production";
  25830. PROJECT_LIFECYCLE["DEVELOPMENT"] = "development";
  25831. PROJECT_LIFECYCLE["SANDBOX"] = "sandbox";
  25832. })(PROJECT_LIFECYCLE = exports.PROJECT_LIFECYCLE || (exports.PROJECT_LIFECYCLE = {}));
  25833. var SupportedCliCommands;
  25834. (function (SupportedCliCommands) {
  25835. SupportedCliCommands["version"] = "version";
  25836. SupportedCliCommands["about"] = "about";
  25837. SupportedCliCommands["help"] = "help";
  25838. // config = 'config', // TODO: cleanup `$ snyk config` parsing logic before adding it here
  25839. // auth = 'auth', // TODO: auth does not support argv._ at the moment
  25840. SupportedCliCommands["test"] = "test";
  25841. SupportedCliCommands["monitor"] = "monitor";
  25842. SupportedCliCommands["fix"] = "fix";
  25843. SupportedCliCommands["protect"] = "protect";
  25844. SupportedCliCommands["policy"] = "policy";
  25845. SupportedCliCommands["ignore"] = "ignore";
  25846. SupportedCliCommands["wizard"] = "wizard";
  25847. SupportedCliCommands["woof"] = "woof";
  25848. SupportedCliCommands["log4shell"] = "log4shell";
  25849. SupportedCliCommands["apps"] = "apps";
  25850. SupportedCliCommands["drift"] = "drift";
  25851. SupportedCliCommands["describe"] = "describe";
  25852. SupportedCliCommands["update-exclude-policy"] = "update-exclude-policy";
  25853. })(SupportedCliCommands = exports.SupportedCliCommands || (exports.SupportedCliCommands = {}));
  25854. /***/ }),
  25855. /***/ 89088:
  25856. /***/ ((__unused_webpack_module, exports) => {
  25857. "use strict";
  25858. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25859. exports.callHandlingUnexpectedErrors = void 0;
  25860. /**
  25861. * Ensures a given function does not throw any errors, including unexpected ones
  25862. * outside of its chain of execution.
  25863. *
  25864. * This function can only be used once in the same process. If you have multiple
  25865. * callables needing this, compose them into a single callable.
  25866. */
  25867. async function callHandlingUnexpectedErrors(callable, exitCode) {
  25868. function handleUnexpectedError(reason) {
  25869. console.error('Something unexpected went wrong:', reason);
  25870. console.error('Exit code:', exitCode);
  25871. process.exit(exitCode);
  25872. }
  25873. process.on('uncaughtException', handleUnexpectedError);
  25874. /**
  25875. * Since Node 15, 'unhandledRejection' without a handler causes an
  25876. * 'uncaughtException'. However, we also support Node 14 (as of writing)
  25877. * which doesn't have that behaviour. So we still need this handler for now.
  25878. */
  25879. process.on('unhandledRejection', handleUnexpectedError);
  25880. try {
  25881. await callable();
  25882. }
  25883. catch (e) {
  25884. handleUnexpectedError(e);
  25885. }
  25886. /**
  25887. * Do NOT remove any 'uncaughtException' and 'unhandledRejection' handlers.
  25888. * It may seem like we should after callable has done its thing. However,
  25889. * there's never a point when everything's "done". There's no guarantee that
  25890. * a callable hasn't created a chain of execution outside of its chain which
  25891. * might trigger an unexpected error.
  25892. *
  25893. * For example, we want to avoid this scenario:
  25894. *
  25895. * - Add Handler L for 'uncaughtException' and 'unhandledRejection'
  25896. * - Call Function A
  25897. * - Function A calls Function B, which returns Promise P.
  25898. * - Function A does not await Promise P
  25899. * - Function A returns.
  25900. * - Remove Handler L. <- Don't do this! Otherwise...
  25901. * - Some time passes...
  25902. * - Promise P rejects.
  25903. * - NodeJS has nothing left to execute.
  25904. * - NodeJS gathers all unhandled rejected promises.
  25905. * - There are no 'unhandledRejection' handlers.
  25906. * - For Node 15 and above:
  25907. * - NodeJS triggers 'uncaughtException'
  25908. * - There are no 'uncaughtException' handlers.
  25909. * - NodeJS defaults to Exit Code 1. <- We want a different exit code.
  25910. * - For Node 14 and below:
  25911. * - NodeJS logs a warning. <- We want the same behaviour across versions.
  25912. */
  25913. }
  25914. exports.callHandlingUnexpectedErrors = callHandlingUnexpectedErrors;
  25915. /***/ }),
  25916. /***/ 28137:
  25917. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25918. "use strict";
  25919. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25920. exports.config = exports.ConfigStoreWithEnvironmentVariables = void 0;
  25921. const Configstore = __webpack_require__(70214);
  25922. class ConfigStoreWithEnvironmentVariables extends Configstore {
  25923. constructor(id, defaults = undefined, options = {}) {
  25924. super(id, defaults, options);
  25925. }
  25926. get(key) {
  25927. const envKey = `SNYK_CFG_${key.replace(/-/g, '_').toUpperCase()}`;
  25928. const envValue = process.env[envKey];
  25929. return super.has(key) && !envValue ? String(super.get(key)) : envValue;
  25930. }
  25931. }
  25932. exports.ConfigStoreWithEnvironmentVariables = ConfigStoreWithEnvironmentVariables;
  25933. exports.config = new ConfigStoreWithEnvironmentVariables('snyk');
  25934. /***/ }),
  25935. /***/ 61721:
  25936. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25937. "use strict";
  25938. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25939. exports.obfuscateArgs = exports.countPathsToGraphRoot = void 0;
  25940. const cloneDeep = __webpack_require__(83465);
  25941. function countPathsToGraphRoot(graph) {
  25942. return graph
  25943. .getPkgs()
  25944. .reduce((acc, pkg) => acc + graph.countPathsToRoot(pkg), 0);
  25945. }
  25946. exports.countPathsToGraphRoot = countPathsToGraphRoot;
  25947. function obfuscateArgs(args) {
  25948. const obfuscatedArgs = cloneDeep(args);
  25949. if (obfuscatedArgs['username']) {
  25950. obfuscatedArgs['username'] = 'username-set';
  25951. }
  25952. if (obfuscatedArgs[1] && obfuscatedArgs[1]['username']) {
  25953. obfuscatedArgs[1]['username'] = 'username-set';
  25954. }
  25955. if (obfuscatedArgs['password']) {
  25956. obfuscatedArgs['password'] = 'password-set';
  25957. }
  25958. if (obfuscatedArgs[1] && obfuscatedArgs[1]['password']) {
  25959. obfuscatedArgs[1]['password'] = 'password-set';
  25960. }
  25961. return obfuscatedArgs;
  25962. }
  25963. exports.obfuscateArgs = obfuscateArgs;
  25964. /***/ }),
  25965. /***/ 38217:
  25966. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  25967. "use strict";
  25968. Object.defineProperty(exports, "__esModule", ({ value: true }));
  25969. exports.isStandaloneBuild = exports.getVersion = void 0;
  25970. const fs = __webpack_require__(35747);
  25971. const path = __webpack_require__(85622);
  25972. function getVersion() {
  25973. const root = path.resolve(__dirname, '../..');
  25974. const { version } = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'));
  25975. return version;
  25976. }
  25977. exports.getVersion = getVersion;
  25978. /**
  25979. * We use pkg to create standalone builds (binaries).
  25980. * pkg uses `process.pkg` to identify itself at runtime so we can do the same.
  25981. * https://github.com/vercel/pkg
  25982. */
  25983. function isStandaloneBuild() {
  25984. return 'pkg' in process;
  25985. }
  25986. exports.isStandaloneBuild = isStandaloneBuild;
  25987. /***/ }),
  25988. /***/ 65054:
  25989. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  25990. /**
  25991. * Convert a typed array to a Buffer without a copy
  25992. *
  25993. * Author: Feross Aboukhadijeh <https://feross.org>
  25994. * License: MIT
  25995. *
  25996. * `npm install typedarray-to-buffer`
  25997. */
  25998. var isTypedArray = __webpack_require__(4501).strict
  25999. module.exports = function typedarrayToBuffer (arr) {
  26000. if (isTypedArray(arr)) {
  26001. // To avoid a copy, use the typed array's underlying ArrayBuffer to back new Buffer
  26002. var buf = Buffer.from(arr.buffer)
  26003. if (arr.byteLength !== arr.buffer.byteLength) {
  26004. // Respect the "view", i.e. byteOffset and byteLength, without doing a copy
  26005. buf = buf.slice(arr.byteOffset, arr.byteOffset + arr.byteLength)
  26006. }
  26007. return buf
  26008. } else {
  26009. // Pass through all other types to `Buffer.from`
  26010. return Buffer.from(arr)
  26011. }
  26012. }
  26013. /***/ }),
  26014. /***/ 36277:
  26015. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26016. "use strict";
  26017. const cryptoRandomString = __webpack_require__(20511);
  26018. module.exports = () => cryptoRandomString(32);
  26019. /***/ }),
  26020. /***/ 42277:
  26021. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  26022. "use strict";
  26023. // ESM COMPAT FLAG
  26024. __webpack_require__.r(__webpack_exports__);
  26025. // EXPORTS
  26026. __webpack_require__.d(__webpack_exports__, {
  26027. "NIL": () => (/* reexport */ nil),
  26028. "parse": () => (/* reexport */ esm_node_parse),
  26029. "stringify": () => (/* reexport */ esm_node_stringify),
  26030. "v1": () => (/* reexport */ esm_node_v1),
  26031. "v3": () => (/* reexport */ esm_node_v3),
  26032. "v4": () => (/* reexport */ esm_node_v4),
  26033. "v5": () => (/* reexport */ esm_node_v5),
  26034. "validate": () => (/* reexport */ esm_node_validate),
  26035. "version": () => (/* reexport */ esm_node_version)
  26036. });
  26037. // EXTERNAL MODULE: external "crypto"
  26038. var external_crypto_ = __webpack_require__(76417);
  26039. var external_crypto_default = /*#__PURE__*/__webpack_require__.n(external_crypto_);
  26040. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/rng.js
  26041. const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
  26042. let poolPtr = rnds8Pool.length;
  26043. function rng() {
  26044. if (poolPtr > rnds8Pool.length - 16) {
  26045. external_crypto_default().randomFillSync(rnds8Pool);
  26046. poolPtr = 0;
  26047. }
  26048. return rnds8Pool.slice(poolPtr, poolPtr += 16);
  26049. }
  26050. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/regex.js
  26051. /* harmony default export */ const regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
  26052. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/validate.js
  26053. function validate(uuid) {
  26054. return typeof uuid === 'string' && regex.test(uuid);
  26055. }
  26056. /* harmony default export */ const esm_node_validate = (validate);
  26057. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/stringify.js
  26058. /**
  26059. * Convert array of 16 byte values to UUID string format of the form:
  26060. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  26061. */
  26062. const byteToHex = [];
  26063. for (let i = 0; i < 256; ++i) {
  26064. byteToHex.push((i + 0x100).toString(16).substr(1));
  26065. }
  26066. function stringify(arr, offset = 0) {
  26067. // Note: Be careful editing this code! It's been tuned for performance
  26068. // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
  26069. const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
  26070. // of the following:
  26071. // - One or more input array values don't map to a hex octet (leading to
  26072. // "undefined" in the uuid)
  26073. // - Invalid input values for the RFC `version` or `variant` fields
  26074. if (!esm_node_validate(uuid)) {
  26075. throw TypeError('Stringified UUID is invalid');
  26076. }
  26077. return uuid;
  26078. }
  26079. /* harmony default export */ const esm_node_stringify = (stringify);
  26080. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/v1.js
  26081. // **`v1()` - Generate time-based UUID**
  26082. //
  26083. // Inspired by https://github.com/LiosK/UUID.js
  26084. // and http://docs.python.org/library/uuid.html
  26085. let _nodeId;
  26086. let _clockseq; // Previous uuid creation time
  26087. let _lastMSecs = 0;
  26088. let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
  26089. function v1(options, buf, offset) {
  26090. let i = buf && offset || 0;
  26091. const b = buf || new Array(16);
  26092. options = options || {};
  26093. let node = options.node || _nodeId;
  26094. let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
  26095. // specified. We do this lazily to minimize issues related to insufficient
  26096. // system entropy. See #189
  26097. if (node == null || clockseq == null) {
  26098. const seedBytes = options.random || (options.rng || rng)();
  26099. if (node == null) {
  26100. // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
  26101. node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
  26102. }
  26103. if (clockseq == null) {
  26104. // Per 4.2.2, randomize (14 bit) clockseq
  26105. clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
  26106. }
  26107. } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
  26108. // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
  26109. // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
  26110. // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
  26111. let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
  26112. // cycle to simulate higher resolution clock
  26113. let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
  26114. const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
  26115. if (dt < 0 && options.clockseq === undefined) {
  26116. clockseq = clockseq + 1 & 0x3fff;
  26117. } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
  26118. // time interval
  26119. if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
  26120. nsecs = 0;
  26121. } // Per 4.2.1.2 Throw error if too many uuids are requested
  26122. if (nsecs >= 10000) {
  26123. throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
  26124. }
  26125. _lastMSecs = msecs;
  26126. _lastNSecs = nsecs;
  26127. _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
  26128. msecs += 12219292800000; // `time_low`
  26129. const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
  26130. b[i++] = tl >>> 24 & 0xff;
  26131. b[i++] = tl >>> 16 & 0xff;
  26132. b[i++] = tl >>> 8 & 0xff;
  26133. b[i++] = tl & 0xff; // `time_mid`
  26134. const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
  26135. b[i++] = tmh >>> 8 & 0xff;
  26136. b[i++] = tmh & 0xff; // `time_high_and_version`
  26137. b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
  26138. b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
  26139. b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
  26140. b[i++] = clockseq & 0xff; // `node`
  26141. for (let n = 0; n < 6; ++n) {
  26142. b[i + n] = node[n];
  26143. }
  26144. return buf || esm_node_stringify(b);
  26145. }
  26146. /* harmony default export */ const esm_node_v1 = (v1);
  26147. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/parse.js
  26148. function parse(uuid) {
  26149. if (!esm_node_validate(uuid)) {
  26150. throw TypeError('Invalid UUID');
  26151. }
  26152. let v;
  26153. const arr = new Uint8Array(16); // Parse ########-....-....-....-............
  26154. arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
  26155. arr[1] = v >>> 16 & 0xff;
  26156. arr[2] = v >>> 8 & 0xff;
  26157. arr[3] = v & 0xff; // Parse ........-####-....-....-............
  26158. arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
  26159. arr[5] = v & 0xff; // Parse ........-....-####-....-............
  26160. arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
  26161. arr[7] = v & 0xff; // Parse ........-....-....-####-............
  26162. arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
  26163. arr[9] = v & 0xff; // Parse ........-....-....-....-############
  26164. // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
  26165. arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
  26166. arr[11] = v / 0x100000000 & 0xff;
  26167. arr[12] = v >>> 24 & 0xff;
  26168. arr[13] = v >>> 16 & 0xff;
  26169. arr[14] = v >>> 8 & 0xff;
  26170. arr[15] = v & 0xff;
  26171. return arr;
  26172. }
  26173. /* harmony default export */ const esm_node_parse = (parse);
  26174. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/v35.js
  26175. function stringToBytes(str) {
  26176. str = unescape(encodeURIComponent(str)); // UTF8 escape
  26177. const bytes = [];
  26178. for (let i = 0; i < str.length; ++i) {
  26179. bytes.push(str.charCodeAt(i));
  26180. }
  26181. return bytes;
  26182. }
  26183. const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
  26184. const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
  26185. /* harmony default export */ function v35(name, version, hashfunc) {
  26186. function generateUUID(value, namespace, buf, offset) {
  26187. if (typeof value === 'string') {
  26188. value = stringToBytes(value);
  26189. }
  26190. if (typeof namespace === 'string') {
  26191. namespace = esm_node_parse(namespace);
  26192. }
  26193. if (namespace.length !== 16) {
  26194. throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
  26195. } // Compute hash of namespace and value, Per 4.3
  26196. // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
  26197. // hashfunc([...namespace, ... value])`
  26198. let bytes = new Uint8Array(16 + value.length);
  26199. bytes.set(namespace);
  26200. bytes.set(value, namespace.length);
  26201. bytes = hashfunc(bytes);
  26202. bytes[6] = bytes[6] & 0x0f | version;
  26203. bytes[8] = bytes[8] & 0x3f | 0x80;
  26204. if (buf) {
  26205. offset = offset || 0;
  26206. for (let i = 0; i < 16; ++i) {
  26207. buf[offset + i] = bytes[i];
  26208. }
  26209. return buf;
  26210. }
  26211. return esm_node_stringify(bytes);
  26212. } // Function#name is not settable on some platforms (#270)
  26213. try {
  26214. generateUUID.name = name; // eslint-disable-next-line no-empty
  26215. } catch (err) {} // For CommonJS default export support
  26216. generateUUID.DNS = DNS;
  26217. generateUUID.URL = URL;
  26218. return generateUUID;
  26219. }
  26220. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/md5.js
  26221. function md5(bytes) {
  26222. if (Array.isArray(bytes)) {
  26223. bytes = Buffer.from(bytes);
  26224. } else if (typeof bytes === 'string') {
  26225. bytes = Buffer.from(bytes, 'utf8');
  26226. }
  26227. return external_crypto_default().createHash('md5').update(bytes).digest();
  26228. }
  26229. /* harmony default export */ const esm_node_md5 = (md5);
  26230. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/v3.js
  26231. const v3 = v35('v3', 0x30, esm_node_md5);
  26232. /* harmony default export */ const esm_node_v3 = (v3);
  26233. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/v4.js
  26234. function v4(options, buf, offset) {
  26235. options = options || {};
  26236. const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  26237. rnds[6] = rnds[6] & 0x0f | 0x40;
  26238. rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
  26239. if (buf) {
  26240. offset = offset || 0;
  26241. for (let i = 0; i < 16; ++i) {
  26242. buf[offset + i] = rnds[i];
  26243. }
  26244. return buf;
  26245. }
  26246. return esm_node_stringify(rnds);
  26247. }
  26248. /* harmony default export */ const esm_node_v4 = (v4);
  26249. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/sha1.js
  26250. function sha1(bytes) {
  26251. if (Array.isArray(bytes)) {
  26252. bytes = Buffer.from(bytes);
  26253. } else if (typeof bytes === 'string') {
  26254. bytes = Buffer.from(bytes, 'utf8');
  26255. }
  26256. return external_crypto_default().createHash('sha1').update(bytes).digest();
  26257. }
  26258. /* harmony default export */ const esm_node_sha1 = (sha1);
  26259. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/v5.js
  26260. const v5 = v35('v5', 0x50, esm_node_sha1);
  26261. /* harmony default export */ const esm_node_v5 = (v5);
  26262. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/nil.js
  26263. /* harmony default export */ const nil = ('00000000-0000-0000-0000-000000000000');
  26264. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/version.js
  26265. function version(uuid) {
  26266. if (!esm_node_validate(uuid)) {
  26267. throw TypeError('Invalid UUID');
  26268. }
  26269. return parseInt(uuid.substr(14, 1), 16);
  26270. }
  26271. /* harmony default export */ const esm_node_version = (version);
  26272. ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-node/index.js
  26273. /***/ }),
  26274. /***/ 22806:
  26275. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26276. module.exports = which
  26277. which.sync = whichSync
  26278. var isWindows = process.platform === 'win32' ||
  26279. process.env.OSTYPE === 'cygwin' ||
  26280. process.env.OSTYPE === 'msys'
  26281. var path = __webpack_require__(85622)
  26282. var COLON = isWindows ? ';' : ':'
  26283. var isexe = __webpack_require__(31959)
  26284. function getNotFoundError (cmd) {
  26285. var er = new Error('not found: ' + cmd)
  26286. er.code = 'ENOENT'
  26287. return er
  26288. }
  26289. function getPathInfo (cmd, opt) {
  26290. var colon = opt.colon || COLON
  26291. var pathEnv = opt.path || process.env.PATH || ''
  26292. var pathExt = ['']
  26293. pathEnv = pathEnv.split(colon)
  26294. var pathExtExe = ''
  26295. if (isWindows) {
  26296. pathEnv.unshift(process.cwd())
  26297. pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
  26298. pathExt = pathExtExe.split(colon)
  26299. // Always test the cmd itself first. isexe will check to make sure
  26300. // it's found in the pathExt set.
  26301. if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
  26302. pathExt.unshift('')
  26303. }
  26304. // If it has a slash, then we don't bother searching the pathenv.
  26305. // just check the file itself, and that's it.
  26306. if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
  26307. pathEnv = ['']
  26308. return {
  26309. env: pathEnv,
  26310. ext: pathExt,
  26311. extExe: pathExtExe
  26312. }
  26313. }
  26314. function which (cmd, opt, cb) {
  26315. if (typeof opt === 'function') {
  26316. cb = opt
  26317. opt = {}
  26318. }
  26319. var info = getPathInfo(cmd, opt)
  26320. var pathEnv = info.env
  26321. var pathExt = info.ext
  26322. var pathExtExe = info.extExe
  26323. var found = []
  26324. ;(function F (i, l) {
  26325. if (i === l) {
  26326. if (opt.all && found.length)
  26327. return cb(null, found)
  26328. else
  26329. return cb(getNotFoundError(cmd))
  26330. }
  26331. var pathPart = pathEnv[i]
  26332. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  26333. pathPart = pathPart.slice(1, -1)
  26334. var p = path.join(pathPart, cmd)
  26335. if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
  26336. p = cmd.slice(0, 2) + p
  26337. }
  26338. ;(function E (ii, ll) {
  26339. if (ii === ll) return F(i + 1, l)
  26340. var ext = pathExt[ii]
  26341. isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
  26342. if (!er && is) {
  26343. if (opt.all)
  26344. found.push(p + ext)
  26345. else
  26346. return cb(null, p + ext)
  26347. }
  26348. return E(ii + 1, ll)
  26349. })
  26350. })(0, pathExt.length)
  26351. })(0, pathEnv.length)
  26352. }
  26353. function whichSync (cmd, opt) {
  26354. opt = opt || {}
  26355. var info = getPathInfo(cmd, opt)
  26356. var pathEnv = info.env
  26357. var pathExt = info.ext
  26358. var pathExtExe = info.extExe
  26359. var found = []
  26360. for (var i = 0, l = pathEnv.length; i < l; i ++) {
  26361. var pathPart = pathEnv[i]
  26362. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  26363. pathPart = pathPart.slice(1, -1)
  26364. var p = path.join(pathPart, cmd)
  26365. if (!pathPart && /^\.[\\\/]/.test(cmd)) {
  26366. p = cmd.slice(0, 2) + p
  26367. }
  26368. for (var j = 0, ll = pathExt.length; j < ll; j ++) {
  26369. var cur = p + pathExt[j]
  26370. var is
  26371. try {
  26372. is = isexe.sync(cur, { pathExt: pathExtExe })
  26373. if (is) {
  26374. if (opt.all)
  26375. found.push(cur)
  26376. else
  26377. return cur
  26378. }
  26379. } catch (ex) {}
  26380. }
  26381. }
  26382. if (opt.all && found.length)
  26383. return found
  26384. if (opt.nothrow)
  26385. return null
  26386. throw getNotFoundError(cmd)
  26387. }
  26388. /***/ }),
  26389. /***/ 46143:
  26390. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26391. "use strict";
  26392. const os = __webpack_require__(12087);
  26393. const execa = __webpack_require__(52819);
  26394. // Reference: https://www.gaijin.at/en/lstwinver.php
  26395. const names = new Map([
  26396. ['10.0', '10'],
  26397. ['6.3', '8.1'],
  26398. ['6.2', '8'],
  26399. ['6.1', '7'],
  26400. ['6.0', 'Vista'],
  26401. ['5.2', 'Server 2003'],
  26402. ['5.1', 'XP'],
  26403. ['5.0', '2000'],
  26404. ['4.9', 'ME'],
  26405. ['4.1', '98'],
  26406. ['4.0', '95']
  26407. ]);
  26408. const windowsRelease = release => {
  26409. const version = /\d+\.\d/.exec(release || os.release());
  26410. if (release && !version) {
  26411. throw new Error('`release` argument doesn\'t match `n.n`');
  26412. }
  26413. const ver = (version || [])[0];
  26414. // Server 2008, 2012, 2016, and 2019 versions are ambiguous with desktop versions and must be detected at runtime.
  26415. // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version
  26416. // then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx
  26417. // If `wmic` is obsoloete (later versions of Windows 10), use PowerShell instead.
  26418. // If the resulting caption contains the year 2008, 2012, 2016 or 2019, it is a server version, so return a server OS name.
  26419. if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) {
  26420. let stdout;
  26421. try {
  26422. stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '';
  26423. } catch (_) {
  26424. stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
  26425. }
  26426. const year = (stdout.match(/2008|2012|2016|2019/) || [])[0];
  26427. if (year) {
  26428. return `Server ${year}`;
  26429. }
  26430. }
  26431. return names.get(ver);
  26432. };
  26433. module.exports = windowsRelease;
  26434. /***/ }),
  26435. /***/ 52819:
  26436. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26437. "use strict";
  26438. const path = __webpack_require__(85622);
  26439. const childProcess = __webpack_require__(63129);
  26440. const crossSpawn = __webpack_require__(88309);
  26441. const stripEof = __webpack_require__(64502);
  26442. const npmRunPath = __webpack_require__(73122);
  26443. const isStream = __webpack_require__(57294);
  26444. const _getStream = __webpack_require__(84338);
  26445. const pFinally = __webpack_require__(27345);
  26446. const onExit = __webpack_require__(27908);
  26447. const errname = __webpack_require__(88319);
  26448. const stdio = __webpack_require__(25822);
  26449. const TEN_MEGABYTES = 1000 * 1000 * 10;
  26450. function handleArgs(cmd, args, opts) {
  26451. let parsed;
  26452. opts = Object.assign({
  26453. extendEnv: true,
  26454. env: {}
  26455. }, opts);
  26456. if (opts.extendEnv) {
  26457. opts.env = Object.assign({}, process.env, opts.env);
  26458. }
  26459. if (opts.__winShell === true) {
  26460. delete opts.__winShell;
  26461. parsed = {
  26462. command: cmd,
  26463. args,
  26464. options: opts,
  26465. file: cmd,
  26466. original: {
  26467. cmd,
  26468. args
  26469. }
  26470. };
  26471. } else {
  26472. parsed = crossSpawn._parse(cmd, args, opts);
  26473. }
  26474. opts = Object.assign({
  26475. maxBuffer: TEN_MEGABYTES,
  26476. buffer: true,
  26477. stripEof: true,
  26478. preferLocal: true,
  26479. localDir: parsed.options.cwd || process.cwd(),
  26480. encoding: 'utf8',
  26481. reject: true,
  26482. cleanup: true
  26483. }, parsed.options);
  26484. opts.stdio = stdio(opts);
  26485. if (opts.preferLocal) {
  26486. opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir}));
  26487. }
  26488. if (opts.detached) {
  26489. // #115
  26490. opts.cleanup = false;
  26491. }
  26492. if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') {
  26493. // #116
  26494. parsed.args.unshift('/q');
  26495. }
  26496. return {
  26497. cmd: parsed.command,
  26498. args: parsed.args,
  26499. opts,
  26500. parsed
  26501. };
  26502. }
  26503. function handleInput(spawned, input) {
  26504. if (input === null || input === undefined) {
  26505. return;
  26506. }
  26507. if (isStream(input)) {
  26508. input.pipe(spawned.stdin);
  26509. } else {
  26510. spawned.stdin.end(input);
  26511. }
  26512. }
  26513. function handleOutput(opts, val) {
  26514. if (val && opts.stripEof) {
  26515. val = stripEof(val);
  26516. }
  26517. return val;
  26518. }
  26519. function handleShell(fn, cmd, opts) {
  26520. let file = '/bin/sh';
  26521. let args = ['-c', cmd];
  26522. opts = Object.assign({}, opts);
  26523. if (process.platform === 'win32') {
  26524. opts.__winShell = true;
  26525. file = process.env.comspec || 'cmd.exe';
  26526. args = ['/s', '/c', `"${cmd}"`];
  26527. opts.windowsVerbatimArguments = true;
  26528. }
  26529. if (opts.shell) {
  26530. file = opts.shell;
  26531. delete opts.shell;
  26532. }
  26533. return fn(file, args, opts);
  26534. }
  26535. function getStream(process, stream, {encoding, buffer, maxBuffer}) {
  26536. if (!process[stream]) {
  26537. return null;
  26538. }
  26539. let ret;
  26540. if (!buffer) {
  26541. // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10
  26542. ret = new Promise((resolve, reject) => {
  26543. process[stream]
  26544. .once('end', resolve)
  26545. .once('error', reject);
  26546. });
  26547. } else if (encoding) {
  26548. ret = _getStream(process[stream], {
  26549. encoding,
  26550. maxBuffer
  26551. });
  26552. } else {
  26553. ret = _getStream.buffer(process[stream], {maxBuffer});
  26554. }
  26555. return ret.catch(err => {
  26556. err.stream = stream;
  26557. err.message = `${stream} ${err.message}`;
  26558. throw err;
  26559. });
  26560. }
  26561. function makeError(result, options) {
  26562. const {stdout, stderr} = result;
  26563. let err = result.error;
  26564. const {code, signal} = result;
  26565. const {parsed, joinedCmd} = options;
  26566. const timedOut = options.timedOut || false;
  26567. if (!err) {
  26568. let output = '';
  26569. if (Array.isArray(parsed.opts.stdio)) {
  26570. if (parsed.opts.stdio[2] !== 'inherit') {
  26571. output += output.length > 0 ? stderr : `\n${stderr}`;
  26572. }
  26573. if (parsed.opts.stdio[1] !== 'inherit') {
  26574. output += `\n${stdout}`;
  26575. }
  26576. } else if (parsed.opts.stdio !== 'inherit') {
  26577. output = `\n${stderr}${stdout}`;
  26578. }
  26579. err = new Error(`Command failed: ${joinedCmd}${output}`);
  26580. err.code = code < 0 ? errname(code) : code;
  26581. }
  26582. err.stdout = stdout;
  26583. err.stderr = stderr;
  26584. err.failed = true;
  26585. err.signal = signal || null;
  26586. err.cmd = joinedCmd;
  26587. err.timedOut = timedOut;
  26588. return err;
  26589. }
  26590. function joinCmd(cmd, args) {
  26591. let joinedCmd = cmd;
  26592. if (Array.isArray(args) && args.length > 0) {
  26593. joinedCmd += ' ' + args.join(' ');
  26594. }
  26595. return joinedCmd;
  26596. }
  26597. module.exports = (cmd, args, opts) => {
  26598. const parsed = handleArgs(cmd, args, opts);
  26599. const {encoding, buffer, maxBuffer} = parsed.opts;
  26600. const joinedCmd = joinCmd(cmd, args);
  26601. let spawned;
  26602. try {
  26603. spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts);
  26604. } catch (err) {
  26605. return Promise.reject(err);
  26606. }
  26607. let removeExitHandler;
  26608. if (parsed.opts.cleanup) {
  26609. removeExitHandler = onExit(() => {
  26610. spawned.kill();
  26611. });
  26612. }
  26613. let timeoutId = null;
  26614. let timedOut = false;
  26615. const cleanup = () => {
  26616. if (timeoutId) {
  26617. clearTimeout(timeoutId);
  26618. timeoutId = null;
  26619. }
  26620. if (removeExitHandler) {
  26621. removeExitHandler();
  26622. }
  26623. };
  26624. if (parsed.opts.timeout > 0) {
  26625. timeoutId = setTimeout(() => {
  26626. timeoutId = null;
  26627. timedOut = true;
  26628. spawned.kill(parsed.opts.killSignal);
  26629. }, parsed.opts.timeout);
  26630. }
  26631. const processDone = new Promise(resolve => {
  26632. spawned.on('exit', (code, signal) => {
  26633. cleanup();
  26634. resolve({code, signal});
  26635. });
  26636. spawned.on('error', err => {
  26637. cleanup();
  26638. resolve({error: err});
  26639. });
  26640. if (spawned.stdin) {
  26641. spawned.stdin.on('error', err => {
  26642. cleanup();
  26643. resolve({error: err});
  26644. });
  26645. }
  26646. });
  26647. function destroy() {
  26648. if (spawned.stdout) {
  26649. spawned.stdout.destroy();
  26650. }
  26651. if (spawned.stderr) {
  26652. spawned.stderr.destroy();
  26653. }
  26654. }
  26655. const handlePromise = () => pFinally(Promise.all([
  26656. processDone,
  26657. getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}),
  26658. getStream(spawned, 'stderr', {encoding, buffer, maxBuffer})
  26659. ]).then(arr => {
  26660. const result = arr[0];
  26661. result.stdout = arr[1];
  26662. result.stderr = arr[2];
  26663. if (result.error || result.code !== 0 || result.signal !== null) {
  26664. const err = makeError(result, {
  26665. joinedCmd,
  26666. parsed,
  26667. timedOut
  26668. });
  26669. // TODO: missing some timeout logic for killed
  26670. // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203
  26671. // err.killed = spawned.killed || killed;
  26672. err.killed = err.killed || spawned.killed;
  26673. if (!parsed.opts.reject) {
  26674. return err;
  26675. }
  26676. throw err;
  26677. }
  26678. return {
  26679. stdout: handleOutput(parsed.opts, result.stdout),
  26680. stderr: handleOutput(parsed.opts, result.stderr),
  26681. code: 0,
  26682. failed: false,
  26683. killed: false,
  26684. signal: null,
  26685. cmd: joinedCmd,
  26686. timedOut: false
  26687. };
  26688. }), destroy);
  26689. crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
  26690. handleInput(spawned, parsed.opts.input);
  26691. spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected);
  26692. spawned.catch = onrejected => handlePromise().catch(onrejected);
  26693. return spawned;
  26694. };
  26695. // TODO: set `stderr: 'ignore'` when that option is implemented
  26696. module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout);
  26697. // TODO: set `stdout: 'ignore'` when that option is implemented
  26698. module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr);
  26699. module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts);
  26700. module.exports.sync = (cmd, args, opts) => {
  26701. const parsed = handleArgs(cmd, args, opts);
  26702. const joinedCmd = joinCmd(cmd, args);
  26703. if (isStream(parsed.opts.input)) {
  26704. throw new TypeError('The `input` option cannot be a stream in sync mode');
  26705. }
  26706. const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts);
  26707. result.code = result.status;
  26708. if (result.error || result.status !== 0 || result.signal !== null) {
  26709. const err = makeError(result, {
  26710. joinedCmd,
  26711. parsed
  26712. });
  26713. if (!parsed.opts.reject) {
  26714. return err;
  26715. }
  26716. throw err;
  26717. }
  26718. return {
  26719. stdout: handleOutput(parsed.opts, result.stdout),
  26720. stderr: handleOutput(parsed.opts, result.stderr),
  26721. code: 0,
  26722. failed: false,
  26723. signal: null,
  26724. cmd: joinedCmd,
  26725. timedOut: false
  26726. };
  26727. };
  26728. module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts);
  26729. /***/ }),
  26730. /***/ 88319:
  26731. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26732. "use strict";
  26733. // Older verions of Node.js might not have `util.getSystemErrorName()`.
  26734. // In that case, fall back to a deprecated internal.
  26735. const util = __webpack_require__(31669);
  26736. let uv;
  26737. if (typeof util.getSystemErrorName === 'function') {
  26738. module.exports = util.getSystemErrorName;
  26739. } else {
  26740. try {
  26741. uv = process.binding('uv');
  26742. if (typeof uv.errname !== 'function') {
  26743. throw new TypeError('uv.errname is not a function');
  26744. }
  26745. } catch (err) {
  26746. console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err);
  26747. uv = null;
  26748. }
  26749. module.exports = code => errname(uv, code);
  26750. }
  26751. // Used for testing the fallback behavior
  26752. module.exports.__test__ = errname;
  26753. function errname(uv, code) {
  26754. if (uv) {
  26755. return uv.errname(code);
  26756. }
  26757. if (!(code < 0)) {
  26758. throw new Error('err >= 0');
  26759. }
  26760. return `Unknown system error ${code}`;
  26761. }
  26762. /***/ }),
  26763. /***/ 25822:
  26764. /***/ ((module) => {
  26765. "use strict";
  26766. const alias = ['stdin', 'stdout', 'stderr'];
  26767. const hasAlias = opts => alias.some(x => Boolean(opts[x]));
  26768. module.exports = opts => {
  26769. if (!opts) {
  26770. return null;
  26771. }
  26772. if (opts.stdio && hasAlias(opts)) {
  26773. throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`);
  26774. }
  26775. if (typeof opts.stdio === 'string') {
  26776. return opts.stdio;
  26777. }
  26778. const stdio = opts.stdio || [];
  26779. if (!Array.isArray(stdio)) {
  26780. throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
  26781. }
  26782. const result = [];
  26783. const len = Math.max(stdio.length, alias.length);
  26784. for (let i = 0; i < len; i++) {
  26785. let value = null;
  26786. if (stdio[i] !== undefined) {
  26787. value = stdio[i];
  26788. } else if (opts[alias[i]] !== undefined) {
  26789. value = opts[alias[i]];
  26790. }
  26791. result[i] = value;
  26792. }
  26793. return result;
  26794. };
  26795. /***/ }),
  26796. /***/ 58943:
  26797. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26798. "use strict";
  26799. const {PassThrough} = __webpack_require__(92413);
  26800. module.exports = options => {
  26801. options = Object.assign({}, options);
  26802. const {array} = options;
  26803. let {encoding} = options;
  26804. const buffer = encoding === 'buffer';
  26805. let objectMode = false;
  26806. if (array) {
  26807. objectMode = !(encoding || buffer);
  26808. } else {
  26809. encoding = encoding || 'utf8';
  26810. }
  26811. if (buffer) {
  26812. encoding = null;
  26813. }
  26814. let len = 0;
  26815. const ret = [];
  26816. const stream = new PassThrough({objectMode});
  26817. if (encoding) {
  26818. stream.setEncoding(encoding);
  26819. }
  26820. stream.on('data', chunk => {
  26821. ret.push(chunk);
  26822. if (objectMode) {
  26823. len = ret.length;
  26824. } else {
  26825. len += chunk.length;
  26826. }
  26827. });
  26828. stream.getBufferedValue = () => {
  26829. if (array) {
  26830. return ret;
  26831. }
  26832. return buffer ? Buffer.concat(ret, len) : ret.join('');
  26833. };
  26834. stream.getBufferedLength = () => len;
  26835. return stream;
  26836. };
  26837. /***/ }),
  26838. /***/ 84338:
  26839. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26840. "use strict";
  26841. const pump = __webpack_require__(74286);
  26842. const bufferStream = __webpack_require__(58943);
  26843. class MaxBufferError extends Error {
  26844. constructor() {
  26845. super('maxBuffer exceeded');
  26846. this.name = 'MaxBufferError';
  26847. }
  26848. }
  26849. function getStream(inputStream, options) {
  26850. if (!inputStream) {
  26851. return Promise.reject(new Error('Expected a stream'));
  26852. }
  26853. options = Object.assign({maxBuffer: Infinity}, options);
  26854. const {maxBuffer} = options;
  26855. let stream;
  26856. return new Promise((resolve, reject) => {
  26857. const rejectPromise = error => {
  26858. if (error) { // A null check
  26859. error.bufferedData = stream.getBufferedValue();
  26860. }
  26861. reject(error);
  26862. };
  26863. stream = pump(inputStream, bufferStream(options), error => {
  26864. if (error) {
  26865. rejectPromise(error);
  26866. return;
  26867. }
  26868. resolve();
  26869. });
  26870. stream.on('data', () => {
  26871. if (stream.getBufferedLength() > maxBuffer) {
  26872. rejectPromise(new MaxBufferError());
  26873. }
  26874. });
  26875. }).then(() => stream.getBufferedValue());
  26876. }
  26877. module.exports = getStream;
  26878. module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'}));
  26879. module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true}));
  26880. module.exports.MaxBufferError = MaxBufferError;
  26881. /***/ }),
  26882. /***/ 57294:
  26883. /***/ ((module) => {
  26884. "use strict";
  26885. var isStream = module.exports = function (stream) {
  26886. return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';
  26887. };
  26888. isStream.writable = function (stream) {
  26889. return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';
  26890. };
  26891. isStream.readable = function (stream) {
  26892. return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';
  26893. };
  26894. isStream.duplex = function (stream) {
  26895. return isStream.writable(stream) && isStream.readable(stream);
  26896. };
  26897. isStream.transform = function (stream) {
  26898. return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';
  26899. };
  26900. /***/ }),
  26901. /***/ 73122:
  26902. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26903. "use strict";
  26904. const path = __webpack_require__(85622);
  26905. const pathKey = __webpack_require__(3024);
  26906. module.exports = opts => {
  26907. opts = Object.assign({
  26908. cwd: process.cwd(),
  26909. path: process.env[pathKey()]
  26910. }, opts);
  26911. let prev;
  26912. let pth = path.resolve(opts.cwd);
  26913. const ret = [];
  26914. while (prev !== pth) {
  26915. ret.push(path.join(pth, 'node_modules/.bin'));
  26916. prev = pth;
  26917. pth = path.resolve(pth, '..');
  26918. }
  26919. // ensure the running `node` binary is used
  26920. ret.push(path.dirname(process.execPath));
  26921. return ret.concat(opts.path).join(path.delimiter);
  26922. };
  26923. module.exports.env = opts => {
  26924. opts = Object.assign({
  26925. env: process.env
  26926. }, opts);
  26927. const env = Object.assign({}, opts.env);
  26928. const path = pathKey({env});
  26929. opts.path = env[path];
  26930. env[path] = module.exports(opts);
  26931. return env;
  26932. };
  26933. /***/ }),
  26934. /***/ 52479:
  26935. /***/ ((module) => {
  26936. // Returns a wrapper function that returns a wrapped callback
  26937. // The wrapper function should do some stuff, and return a
  26938. // presumably different callback function.
  26939. // This makes sure that own properties are retained, so that
  26940. // decorations and such are not lost along the way.
  26941. module.exports = wrappy
  26942. function wrappy (fn, cb) {
  26943. if (fn && cb) return wrappy(fn)(cb)
  26944. if (typeof fn !== 'function')
  26945. throw new TypeError('need wrapper function')
  26946. Object.keys(fn).forEach(function (k) {
  26947. wrapper[k] = fn[k]
  26948. })
  26949. return wrapper
  26950. function wrapper() {
  26951. var args = new Array(arguments.length)
  26952. for (var i = 0; i < args.length; i++) {
  26953. args[i] = arguments[i]
  26954. }
  26955. var ret = fn.apply(this, args)
  26956. var cb = args[args.length-1]
  26957. if (typeof ret === 'function' && ret !== cb) {
  26958. Object.keys(cb).forEach(function (k) {
  26959. ret[k] = cb[k]
  26960. })
  26961. }
  26962. return ret
  26963. }
  26964. }
  26965. /***/ }),
  26966. /***/ 70902:
  26967. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26968. "use strict";
  26969. module.exports = writeFile
  26970. module.exports.sync = writeFileSync
  26971. module.exports._getTmpname = getTmpname // for testing
  26972. module.exports._cleanupOnExit = cleanupOnExit
  26973. const fs = __webpack_require__(35747)
  26974. const MurmurHash3 = __webpack_require__(4269)
  26975. const onExit = __webpack_require__(27908)
  26976. const path = __webpack_require__(85622)
  26977. const isTypedArray = __webpack_require__(4501)
  26978. const typedArrayToBuffer = __webpack_require__(65054)
  26979. const { promisify } = __webpack_require__(31669)
  26980. const activeFiles = {}
  26981. // if we run inside of a worker_thread, `process.pid` is not unique
  26982. /* istanbul ignore next */
  26983. const threadId = (function getId () {
  26984. try {
  26985. const workerThreads = __webpack_require__(65013)
  26986. /// if we are in main thread, this is set to `0`
  26987. return workerThreads.threadId
  26988. } catch (e) {
  26989. // worker_threads are not available, fallback to 0
  26990. return 0
  26991. }
  26992. })()
  26993. let invocations = 0
  26994. function getTmpname (filename) {
  26995. return filename + '.' +
  26996. MurmurHash3(__filename)
  26997. .hash(String(process.pid))
  26998. .hash(String(threadId))
  26999. .hash(String(++invocations))
  27000. .result()
  27001. }
  27002. function cleanupOnExit (tmpfile) {
  27003. return () => {
  27004. try {
  27005. fs.unlinkSync(typeof tmpfile === 'function' ? tmpfile() : tmpfile)
  27006. } catch (_) {}
  27007. }
  27008. }
  27009. function serializeActiveFile (absoluteName) {
  27010. return new Promise(resolve => {
  27011. // make a queue if it doesn't already exist
  27012. if (!activeFiles[absoluteName]) activeFiles[absoluteName] = []
  27013. activeFiles[absoluteName].push(resolve) // add this job to the queue
  27014. if (activeFiles[absoluteName].length === 1) resolve() // kick off the first one
  27015. })
  27016. }
  27017. // https://github.com/isaacs/node-graceful-fs/blob/master/polyfills.js#L315-L342
  27018. function isChownErrOk (err) {
  27019. if (err.code === 'ENOSYS') {
  27020. return true
  27021. }
  27022. const nonroot = !process.getuid || process.getuid() !== 0
  27023. if (nonroot) {
  27024. if (err.code === 'EINVAL' || err.code === 'EPERM') {
  27025. return true
  27026. }
  27027. }
  27028. return false
  27029. }
  27030. async function writeFileAsync (filename, data, options = {}) {
  27031. if (typeof options === 'string') {
  27032. options = { encoding: options }
  27033. }
  27034. let fd
  27035. let tmpfile
  27036. /* istanbul ignore next -- The closure only gets called when onExit triggers */
  27037. const removeOnExitHandler = onExit(cleanupOnExit(() => tmpfile))
  27038. const absoluteName = path.resolve(filename)
  27039. try {
  27040. await serializeActiveFile(absoluteName)
  27041. const truename = await promisify(fs.realpath)(filename).catch(() => filename)
  27042. tmpfile = getTmpname(truename)
  27043. if (!options.mode || !options.chown) {
  27044. // Either mode or chown is not explicitly set
  27045. // Default behavior is to copy it from original file
  27046. const stats = await promisify(fs.stat)(truename).catch(() => {})
  27047. if (stats) {
  27048. if (options.mode == null) {
  27049. options.mode = stats.mode
  27050. }
  27051. if (options.chown == null && process.getuid) {
  27052. options.chown = { uid: stats.uid, gid: stats.gid }
  27053. }
  27054. }
  27055. }
  27056. fd = await promisify(fs.open)(tmpfile, 'w', options.mode)
  27057. if (options.tmpfileCreated) {
  27058. await options.tmpfileCreated(tmpfile)
  27059. }
  27060. if (isTypedArray(data)) {
  27061. data = typedArrayToBuffer(data)
  27062. }
  27063. if (Buffer.isBuffer(data)) {
  27064. await promisify(fs.write)(fd, data, 0, data.length, 0)
  27065. } else if (data != null) {
  27066. await promisify(fs.write)(fd, String(data), 0, String(options.encoding || 'utf8'))
  27067. }
  27068. if (options.fsync !== false) {
  27069. await promisify(fs.fsync)(fd)
  27070. }
  27071. await promisify(fs.close)(fd)
  27072. fd = null
  27073. if (options.chown) {
  27074. await promisify(fs.chown)(tmpfile, options.chown.uid, options.chown.gid).catch(err => {
  27075. if (!isChownErrOk(err)) {
  27076. throw err
  27077. }
  27078. })
  27079. }
  27080. if (options.mode) {
  27081. await promisify(fs.chmod)(tmpfile, options.mode).catch(err => {
  27082. if (!isChownErrOk(err)) {
  27083. throw err
  27084. }
  27085. })
  27086. }
  27087. await promisify(fs.rename)(tmpfile, truename)
  27088. } finally {
  27089. if (fd) {
  27090. await promisify(fs.close)(fd).catch(
  27091. /* istanbul ignore next */
  27092. () => {}
  27093. )
  27094. }
  27095. removeOnExitHandler()
  27096. await promisify(fs.unlink)(tmpfile).catch(() => {})
  27097. activeFiles[absoluteName].shift() // remove the element added by serializeSameFile
  27098. if (activeFiles[absoluteName].length > 0) {
  27099. activeFiles[absoluteName][0]() // start next job if one is pending
  27100. } else delete activeFiles[absoluteName]
  27101. }
  27102. }
  27103. function writeFile (filename, data, options, callback) {
  27104. if (options instanceof Function) {
  27105. callback = options
  27106. options = {}
  27107. }
  27108. const promise = writeFileAsync(filename, data, options)
  27109. if (callback) {
  27110. promise.then(callback, callback)
  27111. }
  27112. return promise
  27113. }
  27114. function writeFileSync (filename, data, options) {
  27115. if (typeof options === 'string') options = { encoding: options }
  27116. else if (!options) options = {}
  27117. try {
  27118. filename = fs.realpathSync(filename)
  27119. } catch (ex) {
  27120. // it's ok, it'll happen on a not yet existing file
  27121. }
  27122. const tmpfile = getTmpname(filename)
  27123. if (!options.mode || !options.chown) {
  27124. // Either mode or chown is not explicitly set
  27125. // Default behavior is to copy it from original file
  27126. try {
  27127. const stats = fs.statSync(filename)
  27128. options = Object.assign({}, options)
  27129. if (!options.mode) {
  27130. options.mode = stats.mode
  27131. }
  27132. if (!options.chown && process.getuid) {
  27133. options.chown = { uid: stats.uid, gid: stats.gid }
  27134. }
  27135. } catch (ex) {
  27136. // ignore stat errors
  27137. }
  27138. }
  27139. let fd
  27140. const cleanup = cleanupOnExit(tmpfile)
  27141. const removeOnExitHandler = onExit(cleanup)
  27142. let threw = true
  27143. try {
  27144. fd = fs.openSync(tmpfile, 'w', options.mode || 0o666)
  27145. if (options.tmpfileCreated) {
  27146. options.tmpfileCreated(tmpfile)
  27147. }
  27148. if (isTypedArray(data)) {
  27149. data = typedArrayToBuffer(data)
  27150. }
  27151. if (Buffer.isBuffer(data)) {
  27152. fs.writeSync(fd, data, 0, data.length, 0)
  27153. } else if (data != null) {
  27154. fs.writeSync(fd, String(data), 0, String(options.encoding || 'utf8'))
  27155. }
  27156. if (options.fsync !== false) {
  27157. fs.fsyncSync(fd)
  27158. }
  27159. fs.closeSync(fd)
  27160. fd = null
  27161. if (options.chown) {
  27162. try {
  27163. fs.chownSync(tmpfile, options.chown.uid, options.chown.gid)
  27164. } catch (err) {
  27165. if (!isChownErrOk(err)) {
  27166. throw err
  27167. }
  27168. }
  27169. }
  27170. if (options.mode) {
  27171. try {
  27172. fs.chmodSync(tmpfile, options.mode)
  27173. } catch (err) {
  27174. if (!isChownErrOk(err)) {
  27175. throw err
  27176. }
  27177. }
  27178. }
  27179. fs.renameSync(tmpfile, filename)
  27180. threw = false
  27181. } finally {
  27182. if (fd) {
  27183. try {
  27184. fs.closeSync(fd)
  27185. } catch (ex) {
  27186. // ignore close errors at this stage, error may have closed fd already.
  27187. }
  27188. }
  27189. removeOnExitHandler()
  27190. if (threw) {
  27191. cleanup()
  27192. }
  27193. }
  27194. }
  27195. /***/ }),
  27196. /***/ 20071:
  27197. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  27198. "use strict";
  27199. const os = __webpack_require__(12087);
  27200. const path = __webpack_require__(85622);
  27201. const homeDirectory = os.homedir();
  27202. const {env} = process;
  27203. exports.data = env.XDG_DATA_HOME ||
  27204. (homeDirectory ? path.join(homeDirectory, '.local', 'share') : undefined);
  27205. exports.config = env.XDG_CONFIG_HOME ||
  27206. (homeDirectory ? path.join(homeDirectory, '.config') : undefined);
  27207. exports.cache = env.XDG_CACHE_HOME || (homeDirectory ? path.join(homeDirectory, '.cache') : undefined);
  27208. exports.runtime = env.XDG_RUNTIME_DIR || undefined;
  27209. exports.dataDirs = (env.XDG_DATA_DIRS || '/usr/local/share/:/usr/share/').split(':');
  27210. if (exports.data) {
  27211. exports.dataDirs.unshift(exports.data);
  27212. }
  27213. exports.configDirs = (env.XDG_CONFIG_DIRS || '/etc/xdg').split(':');
  27214. if (exports.config) {
  27215. exports.configDirs.unshift(exports.config);
  27216. }
  27217. /***/ }),
  27218. /***/ 64971:
  27219. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  27220. const abbrev = __webpack_require__(99989);
  27221. // Wrapper for Commonjs compatibility
  27222. async function callModule(mod, args) {
  27223. const resolvedModule = await mod;
  27224. return (resolvedModule.default || resolvedModule)(...args);
  27225. }
  27226. const commands = {
  27227. auth: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(790), __webpack_require__.e(905), __webpack_require__.e(213), __webpack_require__.e(545), __webpack_require__.e(784), __webpack_require__.e(974)]).then(__webpack_require__.bind(__webpack_require__, 27974)), args),
  27228. config: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(790), __webpack_require__.e(905), __webpack_require__.e(213), __webpack_require__.e(545), __webpack_require__.e(784), __webpack_require__.e(110)]).then(__webpack_require__.bind(__webpack_require__, 73608)), args),
  27229. 'update-exclude-policy': async (...args) =>
  27230. callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(790), __webpack_require__.e(384), __webpack_require__.e(895), __webpack_require__.e(831)]).then(__webpack_require__.bind(__webpack_require__, 87831)), args),
  27231. describe: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(790), __webpack_require__.e(213), __webpack_require__.e(970), __webpack_require__.e(384), __webpack_require__.e(895), __webpack_require__.e(519), __webpack_require__.e(726)]).then(__webpack_require__.bind(__webpack_require__, 70919)), args),
  27232. help: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(970), __webpack_require__.e(85)]).then(__webpack_require__.bind(__webpack_require__, 21085)), args),
  27233. ignore: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(790), __webpack_require__.e(905), __webpack_require__.e(213), __webpack_require__.e(545), __webpack_require__.e(784), __webpack_require__.e(542)]).then(__webpack_require__.bind(__webpack_require__, 3542)), args),
  27234. monitor: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(790), __webpack_require__.e(905), __webpack_require__.e(213), __webpack_require__.e(545), __webpack_require__.e(784)]).then(__webpack_require__.bind(__webpack_require__, 3708)), args),
  27235. fix: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(790), __webpack_require__.e(905), __webpack_require__.e(213), __webpack_require__.e(545), __webpack_require__.e(395), __webpack_require__.e(779), __webpack_require__.e(784), __webpack_require__.e(741)]).then(__webpack_require__.bind(__webpack_require__, 73741)), args),
  27236. policy: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(477)]).then(__webpack_require__.bind(__webpack_require__, 15477)), args),
  27237. protect: async (...args) => callModule(__webpack_require__.e(/* import() */ 522).then(__webpack_require__.bind(__webpack_require__, 1522)), args),
  27238. test: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(535), __webpack_require__.e(790), __webpack_require__.e(905), __webpack_require__.e(213), __webpack_require__.e(545), __webpack_require__.e(970), __webpack_require__.e(384), __webpack_require__.e(395), __webpack_require__.e(277), __webpack_require__.e(784), __webpack_require__.e(895), __webpack_require__.e(519), __webpack_require__.e(917)]).then(__webpack_require__.bind(__webpack_require__, 86917)), args),
  27239. version: async (...args) => callModule(__webpack_require__.e(/* import() */ 875).then(__webpack_require__.bind(__webpack_require__, 74970)), args),
  27240. about: async (...args) => callModule(__webpack_require__.e(/* import() */ 575).then(__webpack_require__.bind(__webpack_require__, 77575)), args),
  27241. wizard: async (...args) => callModule(__webpack_require__.e(/* import() */ 959).then(__webpack_require__.bind(__webpack_require__, 55959)), args),
  27242. woof: async (...args) => callModule(__webpack_require__.e(/* import() */ 855).then(__webpack_require__.bind(__webpack_require__, 66855)), args),
  27243. log4shell: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(905), __webpack_require__.e(395), __webpack_require__.e(989)]).then(__webpack_require__.bind(__webpack_require__, 86989)), args),
  27244. apps: async (...args) => callModule(Promise.all(/* import() */[__webpack_require__.e(970), __webpack_require__.e(31), __webpack_require__.e(663)]).then(__webpack_require__.bind(__webpack_require__, 68458)), args),
  27245. };
  27246. commands.aliases = abbrev(Object.keys(commands));
  27247. commands.aliases.t = 'test';
  27248. module.exports = commands;
  27249. /***/ }),
  27250. /***/ 79407:
  27251. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  27252. const { default: config } = __webpack_require__(25425);
  27253. const chalk = __webpack_require__(32589);
  27254. const { SEVERITIES } = __webpack_require__(53110);
  27255. const { errorMessageWithRetry } = __webpack_require__(10598);
  27256. const analytics = __webpack_require__(82744);
  27257. const { FormattedCustomError } = __webpack_require__(17207);
  27258. const errors = {
  27259. connect: 'Check your network connection, failed to connect to Snyk API',
  27260. endpoint: 'The Snyk API is not available on ' + config.API,
  27261. auth: 'Unauthorized: please ensure you are logged in using `snyk auth`',
  27262. oldsnyk:
  27263. 'You have an alpha format Snyk policy file in this directory. ' +
  27264. 'Please remove it.',
  27265. notfound: 'The package could not be found or does not exist',
  27266. patchfail: 'Failed to apply patch against %s',
  27267. updatefail:
  27268. 'Encountered errors while updating dependencies.' +
  27269. 'If the issue persists please try removing your node_modules ' +
  27270. 'and re-installing the dependencies then trying again.' +
  27271. '\n If you see any WARN messages about permission issues you can try ' +
  27272. 'following advice on: ' +
  27273. 'https://docs.npmjs.com/getting-started/fixing-npm-permissions',
  27274. updatepackage: 'Upgrade this package to "%s".',
  27275. nodeModules:
  27276. 'This directory looks like a node project, but is missing the ' +
  27277. 'contents of the node_modules directory.' +
  27278. '\n Please run `npm install` or `yarn install` and ' +
  27279. 're-run your snyk command.',
  27280. noApiToken:
  27281. '%s requires an authenticated account. Please run `snyk auth` ' +
  27282. 'and try again.',
  27283. timeout: errorMessageWithRetry(
  27284. 'The request has timed out on the server side.',
  27285. ),
  27286. policyFile:
  27287. 'Bad policy file, please use --path=PATH to specify a ' +
  27288. 'directory with a .snyk file',
  27289. idRequired: 'id is a required field for `snyk ignore`',
  27290. unknownCommand: '%s\n\nRun `snyk --help` for a list of available commands.',
  27291. invalidSeverityThreshold:
  27292. 'Invalid severity threshold, please use one of ' +
  27293. SEVERITIES.map((s) => s.verboseName).join(' | '),
  27294. };
  27295. // a key/value pair of error.code (or error.message) as the key, and our nice
  27296. // strings as the value.
  27297. const codes = {
  27298. ECONNREFUSED: errors.connect,
  27299. ENOTFOUND: errors.connect,
  27300. NOT_FOUND: errors.notfound,
  27301. 404: errors.notfound,
  27302. 411: errors.endpoint, // try to post to a weird endpoint
  27303. 403: errors.endpoint,
  27304. 401: errors.auth,
  27305. 400: errors.invalidSeverityThreshold,
  27306. Unauthorized: errors.auth,
  27307. MISSING_NODE_MODULES: errors.nodeModules,
  27308. OLD_DOTFILE_FORMAT: errors.oldsnyk,
  27309. FAIL_PATCH: errors.patchfail,
  27310. FAIL_UPDATE: errors.updatefail,
  27311. NO_API_TOKEN: errors.noApiToken,
  27312. 502: errors.timeout,
  27313. 504: errors.timeout,
  27314. UNKNOWN_COMMAND: errors.unknownCommand,
  27315. INVALID_SEVERITY_THRESHOLD: errors.invalidSeverityThreshold,
  27316. };
  27317. module.exports = function error(command) {
  27318. const e = new Error('Unknown command "' + command + '"');
  27319. e.code = 'UNKNOWN_COMMAND';
  27320. return Promise.reject(e);
  27321. };
  27322. module.exports.message = function(error) {
  27323. let message = error; // defaults to a string (which is super unlikely)
  27324. if (error instanceof Error) {
  27325. if (error.code === 'VULNS') {
  27326. return error.message;
  27327. }
  27328. // try to lookup the error string based either on the error code OR
  27329. // the actual error.message (which can be "Unauthorized" for instance),
  27330. // otherwise send the error message back
  27331. message =
  27332. error.userMessage ||
  27333. codes[error.code || error.message] ||
  27334. errors[error.code || error.message];
  27335. if (message) {
  27336. if (error instanceof FormattedCustomError) {
  27337. message = error.formattedUserMessage;
  27338. } else {
  27339. message = message.replace(/(%s)/g, error.message).trim();
  27340. message = chalk.bold.red(message);
  27341. }
  27342. } else if (error.code) {
  27343. // means it's a code error
  27344. message =
  27345. 'An unknown error occurred. Please run with `-d` and include full trace ' +
  27346. 'when reporting to Snyk';
  27347. analytics.add('unknown-error-code', JSON.stringify(error));
  27348. } else {
  27349. // should be one of ours
  27350. message = error.message;
  27351. }
  27352. }
  27353. return message;
  27354. };
  27355. /***/ }),
  27356. /***/ 42357:
  27357. /***/ ((module) => {
  27358. "use strict";
  27359. module.exports = require("assert");
  27360. /***/ }),
  27361. /***/ 64293:
  27362. /***/ ((module) => {
  27363. "use strict";
  27364. module.exports = require("buffer");
  27365. /***/ }),
  27366. /***/ 63129:
  27367. /***/ ((module) => {
  27368. "use strict";
  27369. module.exports = require("child_process");
  27370. /***/ }),
  27371. /***/ 27619:
  27372. /***/ ((module) => {
  27373. "use strict";
  27374. module.exports = require("constants");
  27375. /***/ }),
  27376. /***/ 76417:
  27377. /***/ ((module) => {
  27378. "use strict";
  27379. module.exports = require("crypto");
  27380. /***/ }),
  27381. /***/ 40881:
  27382. /***/ ((module) => {
  27383. "use strict";
  27384. module.exports = require("dns");
  27385. /***/ }),
  27386. /***/ 85229:
  27387. /***/ ((module) => {
  27388. "use strict";
  27389. module.exports = require("domain");
  27390. /***/ }),
  27391. /***/ 28614:
  27392. /***/ ((module) => {
  27393. "use strict";
  27394. module.exports = require("events");
  27395. /***/ }),
  27396. /***/ 35747:
  27397. /***/ ((module) => {
  27398. "use strict";
  27399. module.exports = require("fs");
  27400. /***/ }),
  27401. /***/ 98605:
  27402. /***/ ((module) => {
  27403. "use strict";
  27404. module.exports = require("http");
  27405. /***/ }),
  27406. /***/ 97565:
  27407. /***/ ((module) => {
  27408. "use strict";
  27409. module.exports = require("http2");
  27410. /***/ }),
  27411. /***/ 57211:
  27412. /***/ ((module) => {
  27413. "use strict";
  27414. module.exports = require("https");
  27415. /***/ }),
  27416. /***/ 32282:
  27417. /***/ ((module) => {
  27418. "use strict";
  27419. module.exports = require("module");
  27420. /***/ }),
  27421. /***/ 11631:
  27422. /***/ ((module) => {
  27423. "use strict";
  27424. module.exports = require("net");
  27425. /***/ }),
  27426. /***/ 12087:
  27427. /***/ ((module) => {
  27428. "use strict";
  27429. module.exports = require("os");
  27430. /***/ }),
  27431. /***/ 85622:
  27432. /***/ ((module) => {
  27433. "use strict";
  27434. module.exports = require("path");
  27435. /***/ }),
  27436. /***/ 71191:
  27437. /***/ ((module) => {
  27438. "use strict";
  27439. module.exports = require("querystring");
  27440. /***/ }),
  27441. /***/ 51058:
  27442. /***/ ((module) => {
  27443. "use strict";
  27444. module.exports = require("readline");
  27445. /***/ }),
  27446. /***/ 92413:
  27447. /***/ ((module) => {
  27448. "use strict";
  27449. module.exports = require("stream");
  27450. /***/ }),
  27451. /***/ 24304:
  27452. /***/ ((module) => {
  27453. "use strict";
  27454. module.exports = require("string_decoder");
  27455. /***/ }),
  27456. /***/ 78213:
  27457. /***/ ((module) => {
  27458. "use strict";
  27459. module.exports = require("timers");
  27460. /***/ }),
  27461. /***/ 4016:
  27462. /***/ ((module) => {
  27463. "use strict";
  27464. module.exports = require("tls");
  27465. /***/ }),
  27466. /***/ 33867:
  27467. /***/ ((module) => {
  27468. "use strict";
  27469. module.exports = require("tty");
  27470. /***/ }),
  27471. /***/ 78835:
  27472. /***/ ((module) => {
  27473. "use strict";
  27474. module.exports = require("url");
  27475. /***/ }),
  27476. /***/ 31669:
  27477. /***/ ((module) => {
  27478. "use strict";
  27479. module.exports = require("util");
  27480. /***/ }),
  27481. /***/ 68987:
  27482. /***/ ((module) => {
  27483. "use strict";
  27484. module.exports = require("v8");
  27485. /***/ }),
  27486. /***/ 65013:
  27487. /***/ ((module) => {
  27488. "use strict";
  27489. module.exports = require("worker_threads");
  27490. /***/ }),
  27491. /***/ 78761:
  27492. /***/ ((module) => {
  27493. "use strict";
  27494. module.exports = require("zlib");
  27495. /***/ }),
  27496. /***/ 1641:
  27497. /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
  27498. "use strict";
  27499. __webpack_require__.r(__webpack_exports__);
  27500. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27501. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
  27502. /* harmony export */ "apply": () => (/* binding */ apply),
  27503. /* harmony export */ "applyEach": () => (/* binding */ applyEach$1),
  27504. /* harmony export */ "applyEachSeries": () => (/* binding */ applyEachSeries),
  27505. /* harmony export */ "asyncify": () => (/* binding */ asyncify),
  27506. /* harmony export */ "auto": () => (/* binding */ auto),
  27507. /* harmony export */ "autoInject": () => (/* binding */ autoInject),
  27508. /* harmony export */ "cargo": () => (/* binding */ cargo),
  27509. /* harmony export */ "cargoQueue": () => (/* binding */ cargo$1),
  27510. /* harmony export */ "compose": () => (/* binding */ compose),
  27511. /* harmony export */ "concat": () => (/* binding */ concat$1),
  27512. /* harmony export */ "concatLimit": () => (/* binding */ concatLimit$1),
  27513. /* harmony export */ "concatSeries": () => (/* binding */ concatSeries$1),
  27514. /* harmony export */ "constant": () => (/* binding */ constant),
  27515. /* harmony export */ "detect": () => (/* binding */ detect$1),
  27516. /* harmony export */ "detectLimit": () => (/* binding */ detectLimit$1),
  27517. /* harmony export */ "detectSeries": () => (/* binding */ detectSeries$1),
  27518. /* harmony export */ "dir": () => (/* binding */ dir),
  27519. /* harmony export */ "doUntil": () => (/* binding */ doUntil),
  27520. /* harmony export */ "doWhilst": () => (/* binding */ doWhilst$1),
  27521. /* harmony export */ "each": () => (/* binding */ each),
  27522. /* harmony export */ "eachLimit": () => (/* binding */ eachLimit$2),
  27523. /* harmony export */ "eachOf": () => (/* binding */ eachOf$1),
  27524. /* harmony export */ "eachOfLimit": () => (/* binding */ eachOfLimit$2),
  27525. /* harmony export */ "eachOfSeries": () => (/* binding */ eachOfSeries$1),
  27526. /* harmony export */ "eachSeries": () => (/* binding */ eachSeries$1),
  27527. /* harmony export */ "ensureAsync": () => (/* binding */ ensureAsync),
  27528. /* harmony export */ "every": () => (/* binding */ every$1),
  27529. /* harmony export */ "everyLimit": () => (/* binding */ everyLimit$1),
  27530. /* harmony export */ "everySeries": () => (/* binding */ everySeries$1),
  27531. /* harmony export */ "filter": () => (/* binding */ filter$1),
  27532. /* harmony export */ "filterLimit": () => (/* binding */ filterLimit$1),
  27533. /* harmony export */ "filterSeries": () => (/* binding */ filterSeries$1),
  27534. /* harmony export */ "forever": () => (/* binding */ forever$1),
  27535. /* harmony export */ "groupBy": () => (/* binding */ groupBy),
  27536. /* harmony export */ "groupByLimit": () => (/* binding */ groupByLimit$1),
  27537. /* harmony export */ "groupBySeries": () => (/* binding */ groupBySeries),
  27538. /* harmony export */ "log": () => (/* binding */ log),
  27539. /* harmony export */ "map": () => (/* binding */ map$1),
  27540. /* harmony export */ "mapLimit": () => (/* binding */ mapLimit$1),
  27541. /* harmony export */ "mapSeries": () => (/* binding */ mapSeries$1),
  27542. /* harmony export */ "mapValues": () => (/* binding */ mapValues),
  27543. /* harmony export */ "mapValuesLimit": () => (/* binding */ mapValuesLimit$1),
  27544. /* harmony export */ "mapValuesSeries": () => (/* binding */ mapValuesSeries),
  27545. /* harmony export */ "memoize": () => (/* binding */ memoize),
  27546. /* harmony export */ "nextTick": () => (/* binding */ nextTick),
  27547. /* harmony export */ "parallel": () => (/* binding */ parallel),
  27548. /* harmony export */ "parallelLimit": () => (/* binding */ parallelLimit),
  27549. /* harmony export */ "priorityQueue": () => (/* binding */ priorityQueue),
  27550. /* harmony export */ "queue": () => (/* binding */ queue$1),
  27551. /* harmony export */ "race": () => (/* binding */ race$1),
  27552. /* harmony export */ "reduce": () => (/* binding */ reduce$1),
  27553. /* harmony export */ "reduceRight": () => (/* binding */ reduceRight),
  27554. /* harmony export */ "reflect": () => (/* binding */ reflect),
  27555. /* harmony export */ "reflectAll": () => (/* binding */ reflectAll),
  27556. /* harmony export */ "reject": () => (/* binding */ reject$2),
  27557. /* harmony export */ "rejectLimit": () => (/* binding */ rejectLimit$1),
  27558. /* harmony export */ "rejectSeries": () => (/* binding */ rejectSeries$1),
  27559. /* harmony export */ "retry": () => (/* binding */ retry),
  27560. /* harmony export */ "retryable": () => (/* binding */ retryable),
  27561. /* harmony export */ "seq": () => (/* binding */ seq),
  27562. /* harmony export */ "series": () => (/* binding */ series),
  27563. /* harmony export */ "setImmediate": () => (/* binding */ setImmediate$1),
  27564. /* harmony export */ "some": () => (/* binding */ some$1),
  27565. /* harmony export */ "someLimit": () => (/* binding */ someLimit$1),
  27566. /* harmony export */ "someSeries": () => (/* binding */ someSeries$1),
  27567. /* harmony export */ "sortBy": () => (/* binding */ sortBy$1),
  27568. /* harmony export */ "timeout": () => (/* binding */ timeout),
  27569. /* harmony export */ "times": () => (/* binding */ times),
  27570. /* harmony export */ "timesLimit": () => (/* binding */ timesLimit),
  27571. /* harmony export */ "timesSeries": () => (/* binding */ timesSeries),
  27572. /* harmony export */ "transform": () => (/* binding */ transform),
  27573. /* harmony export */ "tryEach": () => (/* binding */ tryEach$1),
  27574. /* harmony export */ "unmemoize": () => (/* binding */ unmemoize),
  27575. /* harmony export */ "until": () => (/* binding */ until),
  27576. /* harmony export */ "waterfall": () => (/* binding */ waterfall$1),
  27577. /* harmony export */ "whilst": () => (/* binding */ whilst$1),
  27578. /* harmony export */ "all": () => (/* binding */ every$1),
  27579. /* harmony export */ "allLimit": () => (/* binding */ everyLimit$1),
  27580. /* harmony export */ "allSeries": () => (/* binding */ everySeries$1),
  27581. /* harmony export */ "any": () => (/* binding */ some$1),
  27582. /* harmony export */ "anyLimit": () => (/* binding */ someLimit$1),
  27583. /* harmony export */ "anySeries": () => (/* binding */ someSeries$1),
  27584. /* harmony export */ "find": () => (/* binding */ detect$1),
  27585. /* harmony export */ "findLimit": () => (/* binding */ detectLimit$1),
  27586. /* harmony export */ "findSeries": () => (/* binding */ detectSeries$1),
  27587. /* harmony export */ "flatMap": () => (/* binding */ concat$1),
  27588. /* harmony export */ "flatMapLimit": () => (/* binding */ concatLimit$1),
  27589. /* harmony export */ "flatMapSeries": () => (/* binding */ concatSeries$1),
  27590. /* harmony export */ "forEach": () => (/* binding */ each),
  27591. /* harmony export */ "forEachSeries": () => (/* binding */ eachSeries$1),
  27592. /* harmony export */ "forEachLimit": () => (/* binding */ eachLimit$2),
  27593. /* harmony export */ "forEachOf": () => (/* binding */ eachOf$1),
  27594. /* harmony export */ "forEachOfSeries": () => (/* binding */ eachOfSeries$1),
  27595. /* harmony export */ "forEachOfLimit": () => (/* binding */ eachOfLimit$2),
  27596. /* harmony export */ "inject": () => (/* binding */ reduce$1),
  27597. /* harmony export */ "foldl": () => (/* binding */ reduce$1),
  27598. /* harmony export */ "foldr": () => (/* binding */ reduceRight),
  27599. /* harmony export */ "select": () => (/* binding */ filter$1),
  27600. /* harmony export */ "selectLimit": () => (/* binding */ filterLimit$1),
  27601. /* harmony export */ "selectSeries": () => (/* binding */ filterSeries$1),
  27602. /* harmony export */ "wrapSync": () => (/* binding */ asyncify),
  27603. /* harmony export */ "during": () => (/* binding */ whilst$1),
  27604. /* harmony export */ "doDuring": () => (/* binding */ doWhilst$1)
  27605. /* harmony export */ });
  27606. /**
  27607. * Creates a continuation function with some arguments already applied.
  27608. *
  27609. * Useful as a shorthand when combined with other control flow functions. Any
  27610. * arguments passed to the returned function are added to the arguments
  27611. * originally passed to apply.
  27612. *
  27613. * @name apply
  27614. * @static
  27615. * @memberOf module:Utils
  27616. * @method
  27617. * @category Util
  27618. * @param {Function} fn - The function you want to eventually apply all
  27619. * arguments to. Invokes with (arguments...).
  27620. * @param {...*} arguments... - Any number of arguments to automatically apply
  27621. * when the continuation is called.
  27622. * @returns {Function} the partially-applied function
  27623. * @example
  27624. *
  27625. * // using apply
  27626. * async.parallel([
  27627. * async.apply(fs.writeFile, 'testfile1', 'test1'),
  27628. * async.apply(fs.writeFile, 'testfile2', 'test2')
  27629. * ]);
  27630. *
  27631. *
  27632. * // the same process without using apply
  27633. * async.parallel([
  27634. * function(callback) {
  27635. * fs.writeFile('testfile1', 'test1', callback);
  27636. * },
  27637. * function(callback) {
  27638. * fs.writeFile('testfile2', 'test2', callback);
  27639. * }
  27640. * ]);
  27641. *
  27642. * // It's possible to pass any number of additional arguments when calling the
  27643. * // continuation:
  27644. *
  27645. * node> var fn = async.apply(sys.puts, 'one');
  27646. * node> fn('two', 'three');
  27647. * one
  27648. * two
  27649. * three
  27650. */
  27651. function apply(fn, ...args) {
  27652. return (...callArgs) => fn(...args,...callArgs);
  27653. }
  27654. function initialParams (fn) {
  27655. return function (...args/*, callback*/) {
  27656. var callback = args.pop();
  27657. return fn.call(this, args, callback);
  27658. };
  27659. }
  27660. /* istanbul ignore file */
  27661. var hasQueueMicrotask = typeof queueMicrotask === 'function' && queueMicrotask;
  27662. var hasSetImmediate = typeof setImmediate === 'function' && setImmediate;
  27663. var hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function';
  27664. function fallback(fn) {
  27665. setTimeout(fn, 0);
  27666. }
  27667. function wrap(defer) {
  27668. return (fn, ...args) => defer(() => fn(...args));
  27669. }
  27670. var _defer;
  27671. if (hasQueueMicrotask) {
  27672. _defer = queueMicrotask;
  27673. } else if (hasSetImmediate) {
  27674. _defer = setImmediate;
  27675. } else if (hasNextTick) {
  27676. _defer = process.nextTick;
  27677. } else {
  27678. _defer = fallback;
  27679. }
  27680. var setImmediate$1 = wrap(_defer);
  27681. /**
  27682. * Take a sync function and make it async, passing its return value to a
  27683. * callback. This is useful for plugging sync functions into a waterfall,
  27684. * series, or other async functions. Any arguments passed to the generated
  27685. * function will be passed to the wrapped function (except for the final
  27686. * callback argument). Errors thrown will be passed to the callback.
  27687. *
  27688. * If the function passed to `asyncify` returns a Promise, that promises's
  27689. * resolved/rejected state will be used to call the callback, rather than simply
  27690. * the synchronous return value.
  27691. *
  27692. * This also means you can asyncify ES2017 `async` functions.
  27693. *
  27694. * @name asyncify
  27695. * @static
  27696. * @memberOf module:Utils
  27697. * @method
  27698. * @alias wrapSync
  27699. * @category Util
  27700. * @param {Function} func - The synchronous function, or Promise-returning
  27701. * function to convert to an {@link AsyncFunction}.
  27702. * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be
  27703. * invoked with `(args..., callback)`.
  27704. * @example
  27705. *
  27706. * // passing a regular synchronous function
  27707. * async.waterfall([
  27708. * async.apply(fs.readFile, filename, "utf8"),
  27709. * async.asyncify(JSON.parse),
  27710. * function (data, next) {
  27711. * // data is the result of parsing the text.
  27712. * // If there was a parsing error, it would have been caught.
  27713. * }
  27714. * ], callback);
  27715. *
  27716. * // passing a function returning a promise
  27717. * async.waterfall([
  27718. * async.apply(fs.readFile, filename, "utf8"),
  27719. * async.asyncify(function (contents) {
  27720. * return db.model.create(contents);
  27721. * }),
  27722. * function (model, next) {
  27723. * // `model` is the instantiated model object.
  27724. * // If there was an error, this function would be skipped.
  27725. * }
  27726. * ], callback);
  27727. *
  27728. * // es2017 example, though `asyncify` is not needed if your JS environment
  27729. * // supports async functions out of the box
  27730. * var q = async.queue(async.asyncify(async function(file) {
  27731. * var intermediateStep = await processFile(file);
  27732. * return await somePromise(intermediateStep)
  27733. * }));
  27734. *
  27735. * q.push(files);
  27736. */
  27737. function asyncify(func) {
  27738. if (isAsync(func)) {
  27739. return function (...args/*, callback*/) {
  27740. const callback = args.pop();
  27741. const promise = func.apply(this, args);
  27742. return handlePromise(promise, callback)
  27743. }
  27744. }
  27745. return initialParams(function (args, callback) {
  27746. var result;
  27747. try {
  27748. result = func.apply(this, args);
  27749. } catch (e) {
  27750. return callback(e);
  27751. }
  27752. // if result is Promise object
  27753. if (result && typeof result.then === 'function') {
  27754. return handlePromise(result, callback)
  27755. } else {
  27756. callback(null, result);
  27757. }
  27758. });
  27759. }
  27760. function handlePromise(promise, callback) {
  27761. return promise.then(value => {
  27762. invokeCallback(callback, null, value);
  27763. }, err => {
  27764. invokeCallback(callback, err && err.message ? err : new Error(err));
  27765. });
  27766. }
  27767. function invokeCallback(callback, error, value) {
  27768. try {
  27769. callback(error, value);
  27770. } catch (err) {
  27771. setImmediate$1(e => { throw e }, err);
  27772. }
  27773. }
  27774. function isAsync(fn) {
  27775. return fn[Symbol.toStringTag] === 'AsyncFunction';
  27776. }
  27777. function isAsyncGenerator(fn) {
  27778. return fn[Symbol.toStringTag] === 'AsyncGenerator';
  27779. }
  27780. function isAsyncIterable(obj) {
  27781. return typeof obj[Symbol.asyncIterator] === 'function';
  27782. }
  27783. function wrapAsync(asyncFn) {
  27784. if (typeof asyncFn !== 'function') throw new Error('expected a function')
  27785. return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn;
  27786. }
  27787. // conditionally promisify a function.
  27788. // only return a promise if a callback is omitted
  27789. function awaitify (asyncFn, arity = asyncFn.length) {
  27790. if (!arity) throw new Error('arity is undefined')
  27791. function awaitable (...args) {
  27792. if (typeof args[arity - 1] === 'function') {
  27793. return asyncFn.apply(this, args)
  27794. }
  27795. return new Promise((resolve, reject) => {
  27796. args[arity - 1] = (err, ...cbArgs) => {
  27797. if (err) return reject(err)
  27798. resolve(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
  27799. };
  27800. asyncFn.apply(this, args);
  27801. })
  27802. }
  27803. return awaitable
  27804. }
  27805. function applyEach (eachfn) {
  27806. return function applyEach(fns, ...callArgs) {
  27807. const go = awaitify(function (callback) {
  27808. var that = this;
  27809. return eachfn(fns, (fn, cb) => {
  27810. wrapAsync(fn).apply(that, callArgs.concat(cb));
  27811. }, callback);
  27812. });
  27813. return go;
  27814. };
  27815. }
  27816. function _asyncMap(eachfn, arr, iteratee, callback) {
  27817. arr = arr || [];
  27818. var results = [];
  27819. var counter = 0;
  27820. var _iteratee = wrapAsync(iteratee);
  27821. return eachfn(arr, (value, _, iterCb) => {
  27822. var index = counter++;
  27823. _iteratee(value, (err, v) => {
  27824. results[index] = v;
  27825. iterCb(err);
  27826. });
  27827. }, err => {
  27828. callback(err, results);
  27829. });
  27830. }
  27831. function isArrayLike(value) {
  27832. return value &&
  27833. typeof value.length === 'number' &&
  27834. value.length >= 0 &&
  27835. value.length % 1 === 0;
  27836. }
  27837. // A temporary value used to identify if the loop should be broken.
  27838. // See #1064, #1293
  27839. const breakLoop = {};
  27840. function once(fn) {
  27841. function wrapper (...args) {
  27842. if (fn === null) return;
  27843. var callFn = fn;
  27844. fn = null;
  27845. callFn.apply(this, args);
  27846. }
  27847. Object.assign(wrapper, fn);
  27848. return wrapper
  27849. }
  27850. function getIterator (coll) {
  27851. return coll[Symbol.iterator] && coll[Symbol.iterator]();
  27852. }
  27853. function createArrayIterator(coll) {
  27854. var i = -1;
  27855. var len = coll.length;
  27856. return function next() {
  27857. return ++i < len ? {value: coll[i], key: i} : null;
  27858. }
  27859. }
  27860. function createES2015Iterator(iterator) {
  27861. var i = -1;
  27862. return function next() {
  27863. var item = iterator.next();
  27864. if (item.done)
  27865. return null;
  27866. i++;
  27867. return {value: item.value, key: i};
  27868. }
  27869. }
  27870. function createObjectIterator(obj) {
  27871. var okeys = obj ? Object.keys(obj) : [];
  27872. var i = -1;
  27873. var len = okeys.length;
  27874. return function next() {
  27875. var key = okeys[++i];
  27876. return i < len ? {value: obj[key], key} : null;
  27877. };
  27878. }
  27879. function createIterator(coll) {
  27880. if (isArrayLike(coll)) {
  27881. return createArrayIterator(coll);
  27882. }
  27883. var iterator = getIterator(coll);
  27884. return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll);
  27885. }
  27886. function onlyOnce(fn) {
  27887. return function (...args) {
  27888. if (fn === null) throw new Error("Callback was already called.");
  27889. var callFn = fn;
  27890. fn = null;
  27891. callFn.apply(this, args);
  27892. };
  27893. }
  27894. // for async generators
  27895. function asyncEachOfLimit(generator, limit, iteratee, callback) {
  27896. let done = false;
  27897. let canceled = false;
  27898. let awaiting = false;
  27899. let running = 0;
  27900. let idx = 0;
  27901. function replenish() {
  27902. //console.log('replenish')
  27903. if (running >= limit || awaiting || done) return
  27904. //console.log('replenish awaiting')
  27905. awaiting = true;
  27906. generator.next().then(({value, done: iterDone}) => {
  27907. //console.log('got value', value)
  27908. if (canceled || done) return
  27909. awaiting = false;
  27910. if (iterDone) {
  27911. done = true;
  27912. if (running <= 0) {
  27913. //console.log('done nextCb')
  27914. callback(null);
  27915. }
  27916. return;
  27917. }
  27918. running++;
  27919. iteratee(value, idx, iterateeCallback);
  27920. idx++;
  27921. replenish();
  27922. }).catch(handleError);
  27923. }
  27924. function iterateeCallback(err, result) {
  27925. //console.log('iterateeCallback')
  27926. running -= 1;
  27927. if (canceled) return
  27928. if (err) return handleError(err)
  27929. if (err === false) {
  27930. done = true;
  27931. canceled = true;
  27932. return
  27933. }
  27934. if (result === breakLoop || (done && running <= 0)) {
  27935. done = true;
  27936. //console.log('done iterCb')
  27937. return callback(null);
  27938. }
  27939. replenish();
  27940. }
  27941. function handleError(err) {
  27942. if (canceled) return
  27943. awaiting = false;
  27944. done = true;
  27945. callback(err);
  27946. }
  27947. replenish();
  27948. }
  27949. var eachOfLimit = (limit) => {
  27950. return (obj, iteratee, callback) => {
  27951. callback = once(callback);
  27952. if (limit <= 0) {
  27953. throw new RangeError('concurrency limit cannot be less than 1')
  27954. }
  27955. if (!obj) {
  27956. return callback(null);
  27957. }
  27958. if (isAsyncGenerator(obj)) {
  27959. return asyncEachOfLimit(obj, limit, iteratee, callback)
  27960. }
  27961. if (isAsyncIterable(obj)) {
  27962. return asyncEachOfLimit(obj[Symbol.asyncIterator](), limit, iteratee, callback)
  27963. }
  27964. var nextElem = createIterator(obj);
  27965. var done = false;
  27966. var canceled = false;
  27967. var running = 0;
  27968. var looping = false;
  27969. function iterateeCallback(err, value) {
  27970. if (canceled) return
  27971. running -= 1;
  27972. if (err) {
  27973. done = true;
  27974. callback(err);
  27975. }
  27976. else if (err === false) {
  27977. done = true;
  27978. canceled = true;
  27979. }
  27980. else if (value === breakLoop || (done && running <= 0)) {
  27981. done = true;
  27982. return callback(null);
  27983. }
  27984. else if (!looping) {
  27985. replenish();
  27986. }
  27987. }
  27988. function replenish () {
  27989. looping = true;
  27990. while (running < limit && !done) {
  27991. var elem = nextElem();
  27992. if (elem === null) {
  27993. done = true;
  27994. if (running <= 0) {
  27995. callback(null);
  27996. }
  27997. return;
  27998. }
  27999. running += 1;
  28000. iteratee(elem.value, elem.key, onlyOnce(iterateeCallback));
  28001. }
  28002. looping = false;
  28003. }
  28004. replenish();
  28005. };
  28006. };
  28007. /**
  28008. * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a
  28009. * time.
  28010. *
  28011. * @name eachOfLimit
  28012. * @static
  28013. * @memberOf module:Collections
  28014. * @method
  28015. * @see [async.eachOf]{@link module:Collections.eachOf}
  28016. * @alias forEachOfLimit
  28017. * @category Collection
  28018. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  28019. * @param {number} limit - The maximum number of async operations at a time.
  28020. * @param {AsyncFunction} iteratee - An async function to apply to each
  28021. * item in `coll`. The `key` is the item's key, or index in the case of an
  28022. * array.
  28023. * Invoked with (item, key, callback).
  28024. * @param {Function} [callback] - A callback which is called when all
  28025. * `iteratee` functions have finished, or an error occurs. Invoked with (err).
  28026. * @returns {Promise} a promise, if a callback is omitted
  28027. */
  28028. function eachOfLimit$1(coll, limit, iteratee, callback) {
  28029. return eachOfLimit(limit)(coll, wrapAsync(iteratee), callback);
  28030. }
  28031. var eachOfLimit$2 = awaitify(eachOfLimit$1, 4);
  28032. // eachOf implementation optimized for array-likes
  28033. function eachOfArrayLike(coll, iteratee, callback) {
  28034. callback = once(callback);
  28035. var index = 0,
  28036. completed = 0,
  28037. {length} = coll,
  28038. canceled = false;
  28039. if (length === 0) {
  28040. callback(null);
  28041. }
  28042. function iteratorCallback(err, value) {
  28043. if (err === false) {
  28044. canceled = true;
  28045. }
  28046. if (canceled === true) return
  28047. if (err) {
  28048. callback(err);
  28049. } else if ((++completed === length) || value === breakLoop) {
  28050. callback(null);
  28051. }
  28052. }
  28053. for (; index < length; index++) {
  28054. iteratee(coll[index], index, onlyOnce(iteratorCallback));
  28055. }
  28056. }
  28057. // a generic version of eachOf which can handle array, object, and iterator cases.
  28058. function eachOfGeneric (coll, iteratee, callback) {
  28059. return eachOfLimit$2(coll, Infinity, iteratee, callback);
  28060. }
  28061. /**
  28062. * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument
  28063. * to the iteratee.
  28064. *
  28065. * @name eachOf
  28066. * @static
  28067. * @memberOf module:Collections
  28068. * @method
  28069. * @alias forEachOf
  28070. * @category Collection
  28071. * @see [async.each]{@link module:Collections.each}
  28072. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  28073. * @param {AsyncFunction} iteratee - A function to apply to each
  28074. * item in `coll`.
  28075. * The `key` is the item's key, or index in the case of an array.
  28076. * Invoked with (item, key, callback).
  28077. * @param {Function} [callback] - A callback which is called when all
  28078. * `iteratee` functions have finished, or an error occurs. Invoked with (err).
  28079. * @returns {Promise} a promise, if a callback is omitted
  28080. * @example
  28081. *
  28082. * // dev.json is a file containing a valid json object config for dev environment
  28083. * // dev.json is a file containing a valid json object config for test environment
  28084. * // prod.json is a file containing a valid json object config for prod environment
  28085. * // invalid.json is a file with a malformed json object
  28086. *
  28087. * let configs = {}; //global variable
  28088. * let validConfigFileMap = {dev: 'dev.json', test: 'test.json', prod: 'prod.json'};
  28089. * let invalidConfigFileMap = {dev: 'dev.json', test: 'test.json', invalid: 'invalid.json'};
  28090. *
  28091. * // asynchronous function that reads a json file and parses the contents as json object
  28092. * function parseFile(file, key, callback) {
  28093. * fs.readFile(file, "utf8", function(err, data) {
  28094. * if (err) return calback(err);
  28095. * try {
  28096. * configs[key] = JSON.parse(data);
  28097. * } catch (e) {
  28098. * return callback(e);
  28099. * }
  28100. * callback();
  28101. * });
  28102. * }
  28103. *
  28104. * // Using callbacks
  28105. * async.forEachOf(validConfigFileMap, parseFile, function (err) {
  28106. * if (err) {
  28107. * console.error(err);
  28108. * } else {
  28109. * console.log(configs);
  28110. * // configs is now a map of JSON data, e.g.
  28111. * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}
  28112. * }
  28113. * });
  28114. *
  28115. * //Error handing
  28116. * async.forEachOf(invalidConfigFileMap, parseFile, function (err) {
  28117. * if (err) {
  28118. * console.error(err);
  28119. * // JSON parse error exception
  28120. * } else {
  28121. * console.log(configs);
  28122. * }
  28123. * });
  28124. *
  28125. * // Using Promises
  28126. * async.forEachOf(validConfigFileMap, parseFile)
  28127. * .then( () => {
  28128. * console.log(configs);
  28129. * // configs is now a map of JSON data, e.g.
  28130. * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}
  28131. * }).catch( err => {
  28132. * console.error(err);
  28133. * });
  28134. *
  28135. * //Error handing
  28136. * async.forEachOf(invalidConfigFileMap, parseFile)
  28137. * .then( () => {
  28138. * console.log(configs);
  28139. * }).catch( err => {
  28140. * console.error(err);
  28141. * // JSON parse error exception
  28142. * });
  28143. *
  28144. * // Using async/await
  28145. * async () => {
  28146. * try {
  28147. * let result = await async.forEachOf(validConfigFileMap, parseFile);
  28148. * console.log(configs);
  28149. * // configs is now a map of JSON data, e.g.
  28150. * // { dev: //parsed dev.json, test: //parsed test.json, prod: //parsed prod.json}
  28151. * }
  28152. * catch (err) {
  28153. * console.log(err);
  28154. * }
  28155. * }
  28156. *
  28157. * //Error handing
  28158. * async () => {
  28159. * try {
  28160. * let result = await async.forEachOf(invalidConfigFileMap, parseFile);
  28161. * console.log(configs);
  28162. * }
  28163. * catch (err) {
  28164. * console.log(err);
  28165. * // JSON parse error exception
  28166. * }
  28167. * }
  28168. *
  28169. */
  28170. function eachOf(coll, iteratee, callback) {
  28171. var eachOfImplementation = isArrayLike(coll) ? eachOfArrayLike : eachOfGeneric;
  28172. return eachOfImplementation(coll, wrapAsync(iteratee), callback);
  28173. }
  28174. var eachOf$1 = awaitify(eachOf, 3);
  28175. /**
  28176. * Produces a new collection of values by mapping each value in `coll` through
  28177. * the `iteratee` function. The `iteratee` is called with an item from `coll`
  28178. * and a callback for when it has finished processing. Each of these callback
  28179. * takes 2 arguments: an `error`, and the transformed item from `coll`. If
  28180. * `iteratee` passes an error to its callback, the main `callback` (for the
  28181. * `map` function) is immediately called with the error.
  28182. *
  28183. * Note, that since this function applies the `iteratee` to each item in
  28184. * parallel, there is no guarantee that the `iteratee` functions will complete
  28185. * in order. However, the results array will be in the same order as the
  28186. * original `coll`.
  28187. *
  28188. * If `map` is passed an Object, the results will be an Array. The results
  28189. * will roughly be in the order of the original Objects' keys (but this can
  28190. * vary across JavaScript engines).
  28191. *
  28192. * @name map
  28193. * @static
  28194. * @memberOf module:Collections
  28195. * @method
  28196. * @category Collection
  28197. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  28198. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  28199. * `coll`.
  28200. * The iteratee should complete with the transformed item.
  28201. * Invoked with (item, callback).
  28202. * @param {Function} [callback] - A callback which is called when all `iteratee`
  28203. * functions have finished, or an error occurs. Results is an Array of the
  28204. * transformed items from the `coll`. Invoked with (err, results).
  28205. * @returns {Promise} a promise, if no callback is passed
  28206. * @example
  28207. *
  28208. * // file1.txt is a file that is 1000 bytes in size
  28209. * // file2.txt is a file that is 2000 bytes in size
  28210. * // file3.txt is a file that is 3000 bytes in size
  28211. * // file4.txt does not exist
  28212. *
  28213. * const fileList = ['file1.txt','file2.txt','file3.txt'];
  28214. * const withMissingFileList = ['file1.txt','file2.txt','file4.txt'];
  28215. *
  28216. * // asynchronous function that returns the file size in bytes
  28217. * function getFileSizeInBytes(file, callback) {
  28218. * fs.stat(file, function(err, stat) {
  28219. * if (err) {
  28220. * return callback(err);
  28221. * }
  28222. * callback(null, stat.size);
  28223. * });
  28224. * }
  28225. *
  28226. * // Using callbacks
  28227. * async.map(fileList, getFileSizeInBytes, function(err, results) {
  28228. * if (err) {
  28229. * console.log(err);
  28230. * } else {
  28231. * console.log(results);
  28232. * // results is now an array of the file size in bytes for each file, e.g.
  28233. * // [ 1000, 2000, 3000]
  28234. * }
  28235. * });
  28236. *
  28237. * // Error Handling
  28238. * async.map(withMissingFileList, getFileSizeInBytes, function(err, results) {
  28239. * if (err) {
  28240. * console.log(err);
  28241. * // [ Error: ENOENT: no such file or directory ]
  28242. * } else {
  28243. * console.log(results);
  28244. * }
  28245. * });
  28246. *
  28247. * // Using Promises
  28248. * async.map(fileList, getFileSizeInBytes)
  28249. * .then( results => {
  28250. * console.log(results);
  28251. * // results is now an array of the file size in bytes for each file, e.g.
  28252. * // [ 1000, 2000, 3000]
  28253. * }).catch( err => {
  28254. * console.log(err);
  28255. * });
  28256. *
  28257. * // Error Handling
  28258. * async.map(withMissingFileList, getFileSizeInBytes)
  28259. * .then( results => {
  28260. * console.log(results);
  28261. * }).catch( err => {
  28262. * console.log(err);
  28263. * // [ Error: ENOENT: no such file or directory ]
  28264. * });
  28265. *
  28266. * // Using async/await
  28267. * async () => {
  28268. * try {
  28269. * let results = await async.map(fileList, getFileSizeInBytes);
  28270. * console.log(results);
  28271. * // results is now an array of the file size in bytes for each file, e.g.
  28272. * // [ 1000, 2000, 3000]
  28273. * }
  28274. * catch (err) {
  28275. * console.log(err);
  28276. * }
  28277. * }
  28278. *
  28279. * // Error Handling
  28280. * async () => {
  28281. * try {
  28282. * let results = await async.map(withMissingFileList, getFileSizeInBytes);
  28283. * console.log(results);
  28284. * }
  28285. * catch (err) {
  28286. * console.log(err);
  28287. * // [ Error: ENOENT: no such file or directory ]
  28288. * }
  28289. * }
  28290. *
  28291. */
  28292. function map (coll, iteratee, callback) {
  28293. return _asyncMap(eachOf$1, coll, iteratee, callback)
  28294. }
  28295. var map$1 = awaitify(map, 3);
  28296. /**
  28297. * Applies the provided arguments to each function in the array, calling
  28298. * `callback` after all functions have completed. If you only provide the first
  28299. * argument, `fns`, then it will return a function which lets you pass in the
  28300. * arguments as if it were a single function call. If more arguments are
  28301. * provided, `callback` is required while `args` is still optional. The results
  28302. * for each of the applied async functions are passed to the final callback
  28303. * as an array.
  28304. *
  28305. * @name applyEach
  28306. * @static
  28307. * @memberOf module:ControlFlow
  28308. * @method
  28309. * @category Control Flow
  28310. * @param {Array|Iterable|AsyncIterable|Object} fns - A collection of {@link AsyncFunction}s
  28311. * to all call with the same arguments
  28312. * @param {...*} [args] - any number of separate arguments to pass to the
  28313. * function.
  28314. * @param {Function} [callback] - the final argument should be the callback,
  28315. * called when all functions have completed processing.
  28316. * @returns {AsyncFunction} - Returns a function that takes no args other than
  28317. * an optional callback, that is the result of applying the `args` to each
  28318. * of the functions.
  28319. * @example
  28320. *
  28321. * const appliedFn = async.applyEach([enableSearch, updateSchema], 'bucket')
  28322. *
  28323. * appliedFn((err, results) => {
  28324. * // results[0] is the results for `enableSearch`
  28325. * // results[1] is the results for `updateSchema`
  28326. * });
  28327. *
  28328. * // partial application example:
  28329. * async.each(
  28330. * buckets,
  28331. * async (bucket) => async.applyEach([enableSearch, updateSchema], bucket)(),
  28332. * callback
  28333. * );
  28334. */
  28335. var applyEach$1 = applyEach(map$1);
  28336. /**
  28337. * The same as [`eachOf`]{@link module:Collections.eachOf} but runs only a single async operation at a time.
  28338. *
  28339. * @name eachOfSeries
  28340. * @static
  28341. * @memberOf module:Collections
  28342. * @method
  28343. * @see [async.eachOf]{@link module:Collections.eachOf}
  28344. * @alias forEachOfSeries
  28345. * @category Collection
  28346. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  28347. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  28348. * `coll`.
  28349. * Invoked with (item, key, callback).
  28350. * @param {Function} [callback] - A callback which is called when all `iteratee`
  28351. * functions have finished, or an error occurs. Invoked with (err).
  28352. * @returns {Promise} a promise, if a callback is omitted
  28353. */
  28354. function eachOfSeries(coll, iteratee, callback) {
  28355. return eachOfLimit$2(coll, 1, iteratee, callback)
  28356. }
  28357. var eachOfSeries$1 = awaitify(eachOfSeries, 3);
  28358. /**
  28359. * The same as [`map`]{@link module:Collections.map} but runs only a single async operation at a time.
  28360. *
  28361. * @name mapSeries
  28362. * @static
  28363. * @memberOf module:Collections
  28364. * @method
  28365. * @see [async.map]{@link module:Collections.map}
  28366. * @category Collection
  28367. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  28368. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  28369. * `coll`.
  28370. * The iteratee should complete with the transformed item.
  28371. * Invoked with (item, callback).
  28372. * @param {Function} [callback] - A callback which is called when all `iteratee`
  28373. * functions have finished, or an error occurs. Results is an array of the
  28374. * transformed items from the `coll`. Invoked with (err, results).
  28375. * @returns {Promise} a promise, if no callback is passed
  28376. */
  28377. function mapSeries (coll, iteratee, callback) {
  28378. return _asyncMap(eachOfSeries$1, coll, iteratee, callback)
  28379. }
  28380. var mapSeries$1 = awaitify(mapSeries, 3);
  28381. /**
  28382. * The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.
  28383. *
  28384. * @name applyEachSeries
  28385. * @static
  28386. * @memberOf module:ControlFlow
  28387. * @method
  28388. * @see [async.applyEach]{@link module:ControlFlow.applyEach}
  28389. * @category Control Flow
  28390. * @param {Array|Iterable|AsyncIterable|Object} fns - A collection of {@link AsyncFunction}s to all
  28391. * call with the same arguments
  28392. * @param {...*} [args] - any number of separate arguments to pass to the
  28393. * function.
  28394. * @param {Function} [callback] - the final argument should be the callback,
  28395. * called when all functions have completed processing.
  28396. * @returns {AsyncFunction} - A function, that when called, is the result of
  28397. * appling the `args` to the list of functions. It takes no args, other than
  28398. * a callback.
  28399. */
  28400. var applyEachSeries = applyEach(mapSeries$1);
  28401. const PROMISE_SYMBOL = Symbol('promiseCallback');
  28402. function promiseCallback () {
  28403. let resolve, reject;
  28404. function callback (err, ...args) {
  28405. if (err) return reject(err)
  28406. resolve(args.length > 1 ? args : args[0]);
  28407. }
  28408. callback[PROMISE_SYMBOL] = new Promise((res, rej) => {
  28409. resolve = res,
  28410. reject = rej;
  28411. });
  28412. return callback
  28413. }
  28414. /**
  28415. * Determines the best order for running the {@link AsyncFunction}s in `tasks`, based on
  28416. * their requirements. Each function can optionally depend on other functions
  28417. * being completed first, and each function is run as soon as its requirements
  28418. * are satisfied.
  28419. *
  28420. * If any of the {@link AsyncFunction}s pass an error to their callback, the `auto` sequence
  28421. * will stop. Further tasks will not execute (so any other functions depending
  28422. * on it will not run), and the main `callback` is immediately called with the
  28423. * error.
  28424. *
  28425. * {@link AsyncFunction}s also receive an object containing the results of functions which
  28426. * have completed so far as the first argument, if they have dependencies. If a
  28427. * task function has no dependencies, it will only be passed a callback.
  28428. *
  28429. * @name auto
  28430. * @static
  28431. * @memberOf module:ControlFlow
  28432. * @method
  28433. * @category Control Flow
  28434. * @param {Object} tasks - An object. Each of its properties is either a
  28435. * function or an array of requirements, with the {@link AsyncFunction} itself the last item
  28436. * in the array. The object's key of a property serves as the name of the task
  28437. * defined by that property, i.e. can be used when specifying requirements for
  28438. * other tasks. The function receives one or two arguments:
  28439. * * a `results` object, containing the results of the previously executed
  28440. * functions, only passed if the task has any dependencies,
  28441. * * a `callback(err, result)` function, which must be called when finished,
  28442. * passing an `error` (which can be `null`) and the result of the function's
  28443. * execution.
  28444. * @param {number} [concurrency=Infinity] - An optional `integer` for
  28445. * determining the maximum number of tasks that can be run in parallel. By
  28446. * default, as many as possible.
  28447. * @param {Function} [callback] - An optional callback which is called when all
  28448. * the tasks have been completed. It receives the `err` argument if any `tasks`
  28449. * pass an error to their callback. Results are always returned; however, if an
  28450. * error occurs, no further `tasks` will be performed, and the results object
  28451. * will only contain partial results. Invoked with (err, results).
  28452. * @returns {Promise} a promise, if a callback is not passed
  28453. * @example
  28454. *
  28455. * //Using Callbacks
  28456. * async.auto({
  28457. * get_data: function(callback) {
  28458. * // async code to get some data
  28459. * callback(null, 'data', 'converted to array');
  28460. * },
  28461. * make_folder: function(callback) {
  28462. * // async code to create a directory to store a file in
  28463. * // this is run at the same time as getting the data
  28464. * callback(null, 'folder');
  28465. * },
  28466. * write_file: ['get_data', 'make_folder', function(results, callback) {
  28467. * // once there is some data and the directory exists,
  28468. * // write the data to a file in the directory
  28469. * callback(null, 'filename');
  28470. * }],
  28471. * email_link: ['write_file', function(results, callback) {
  28472. * // once the file is written let's email a link to it...
  28473. * callback(null, {'file':results.write_file, 'email':'user@example.com'});
  28474. * }]
  28475. * }, function(err, results) {
  28476. * if (err) {
  28477. * console.log('err = ', err);
  28478. * }
  28479. * console.log('results = ', results);
  28480. * // results = {
  28481. * // get_data: ['data', 'converted to array']
  28482. * // make_folder; 'folder',
  28483. * // write_file: 'filename'
  28484. * // email_link: { file: 'filename', email: 'user@example.com' }
  28485. * // }
  28486. * });
  28487. *
  28488. * //Using Promises
  28489. * async.auto({
  28490. * get_data: function(callback) {
  28491. * console.log('in get_data');
  28492. * // async code to get some data
  28493. * callback(null, 'data', 'converted to array');
  28494. * },
  28495. * make_folder: function(callback) {
  28496. * console.log('in make_folder');
  28497. * // async code to create a directory to store a file in
  28498. * // this is run at the same time as getting the data
  28499. * callback(null, 'folder');
  28500. * },
  28501. * write_file: ['get_data', 'make_folder', function(results, callback) {
  28502. * // once there is some data and the directory exists,
  28503. * // write the data to a file in the directory
  28504. * callback(null, 'filename');
  28505. * }],
  28506. * email_link: ['write_file', function(results, callback) {
  28507. * // once the file is written let's email a link to it...
  28508. * callback(null, {'file':results.write_file, 'email':'user@example.com'});
  28509. * }]
  28510. * }).then(results => {
  28511. * console.log('results = ', results);
  28512. * // results = {
  28513. * // get_data: ['data', 'converted to array']
  28514. * // make_folder; 'folder',
  28515. * // write_file: 'filename'
  28516. * // email_link: { file: 'filename', email: 'user@example.com' }
  28517. * // }
  28518. * }).catch(err => {
  28519. * console.log('err = ', err);
  28520. * });
  28521. *
  28522. * //Using async/await
  28523. * async () => {
  28524. * try {
  28525. * let results = await async.auto({
  28526. * get_data: function(callback) {
  28527. * // async code to get some data
  28528. * callback(null, 'data', 'converted to array');
  28529. * },
  28530. * make_folder: function(callback) {
  28531. * // async code to create a directory to store a file in
  28532. * // this is run at the same time as getting the data
  28533. * callback(null, 'folder');
  28534. * },
  28535. * write_file: ['get_data', 'make_folder', function(results, callback) {
  28536. * // once there is some data and the directory exists,
  28537. * // write the data to a file in the directory
  28538. * callback(null, 'filename');
  28539. * }],
  28540. * email_link: ['write_file', function(results, callback) {
  28541. * // once the file is written let's email a link to it...
  28542. * callback(null, {'file':results.write_file, 'email':'user@example.com'});
  28543. * }]
  28544. * });
  28545. * console.log('results = ', results);
  28546. * // results = {
  28547. * // get_data: ['data', 'converted to array']
  28548. * // make_folder; 'folder',
  28549. * // write_file: 'filename'
  28550. * // email_link: { file: 'filename', email: 'user@example.com' }
  28551. * // }
  28552. * }
  28553. * catch (err) {
  28554. * console.log(err);
  28555. * }
  28556. * }
  28557. *
  28558. */
  28559. function auto(tasks, concurrency, callback) {
  28560. if (typeof concurrency !== 'number') {
  28561. // concurrency is optional, shift the args.
  28562. callback = concurrency;
  28563. concurrency = null;
  28564. }
  28565. callback = once(callback || promiseCallback());
  28566. var numTasks = Object.keys(tasks).length;
  28567. if (!numTasks) {
  28568. return callback(null);
  28569. }
  28570. if (!concurrency) {
  28571. concurrency = numTasks;
  28572. }
  28573. var results = {};
  28574. var runningTasks = 0;
  28575. var canceled = false;
  28576. var hasError = false;
  28577. var listeners = Object.create(null);
  28578. var readyTasks = [];
  28579. // for cycle detection:
  28580. var readyToCheck = []; // tasks that have been identified as reachable
  28581. // without the possibility of returning to an ancestor task
  28582. var uncheckedDependencies = {};
  28583. Object.keys(tasks).forEach(key => {
  28584. var task = tasks[key];
  28585. if (!Array.isArray(task)) {
  28586. // no dependencies
  28587. enqueueTask(key, [task]);
  28588. readyToCheck.push(key);
  28589. return;
  28590. }
  28591. var dependencies = task.slice(0, task.length - 1);
  28592. var remainingDependencies = dependencies.length;
  28593. if (remainingDependencies === 0) {
  28594. enqueueTask(key, task);
  28595. readyToCheck.push(key);
  28596. return;
  28597. }
  28598. uncheckedDependencies[key] = remainingDependencies;
  28599. dependencies.forEach(dependencyName => {
  28600. if (!tasks[dependencyName]) {
  28601. throw new Error('async.auto task `' + key +
  28602. '` has a non-existent dependency `' +
  28603. dependencyName + '` in ' +
  28604. dependencies.join(', '));
  28605. }
  28606. addListener(dependencyName, () => {
  28607. remainingDependencies--;
  28608. if (remainingDependencies === 0) {
  28609. enqueueTask(key, task);
  28610. }
  28611. });
  28612. });
  28613. });
  28614. checkForDeadlocks();
  28615. processQueue();
  28616. function enqueueTask(key, task) {
  28617. readyTasks.push(() => runTask(key, task));
  28618. }
  28619. function processQueue() {
  28620. if (canceled) return
  28621. if (readyTasks.length === 0 && runningTasks === 0) {
  28622. return callback(null, results);
  28623. }
  28624. while(readyTasks.length && runningTasks < concurrency) {
  28625. var run = readyTasks.shift();
  28626. run();
  28627. }
  28628. }
  28629. function addListener(taskName, fn) {
  28630. var taskListeners = listeners[taskName];
  28631. if (!taskListeners) {
  28632. taskListeners = listeners[taskName] = [];
  28633. }
  28634. taskListeners.push(fn);
  28635. }
  28636. function taskComplete(taskName) {
  28637. var taskListeners = listeners[taskName] || [];
  28638. taskListeners.forEach(fn => fn());
  28639. processQueue();
  28640. }
  28641. function runTask(key, task) {
  28642. if (hasError) return;
  28643. var taskCallback = onlyOnce((err, ...result) => {
  28644. runningTasks--;
  28645. if (err === false) {
  28646. canceled = true;
  28647. return
  28648. }
  28649. if (result.length < 2) {
  28650. [result] = result;
  28651. }
  28652. if (err) {
  28653. var safeResults = {};
  28654. Object.keys(results).forEach(rkey => {
  28655. safeResults[rkey] = results[rkey];
  28656. });
  28657. safeResults[key] = result;
  28658. hasError = true;
  28659. listeners = Object.create(null);
  28660. if (canceled) return
  28661. callback(err, safeResults);
  28662. } else {
  28663. results[key] = result;
  28664. taskComplete(key);
  28665. }
  28666. });
  28667. runningTasks++;
  28668. var taskFn = wrapAsync(task[task.length - 1]);
  28669. if (task.length > 1) {
  28670. taskFn(results, taskCallback);
  28671. } else {
  28672. taskFn(taskCallback);
  28673. }
  28674. }
  28675. function checkForDeadlocks() {
  28676. // Kahn's algorithm
  28677. // https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm
  28678. // http://connalle.blogspot.com/2013/10/topological-sortingkahn-algorithm.html
  28679. var currentTask;
  28680. var counter = 0;
  28681. while (readyToCheck.length) {
  28682. currentTask = readyToCheck.pop();
  28683. counter++;
  28684. getDependents(currentTask).forEach(dependent => {
  28685. if (--uncheckedDependencies[dependent] === 0) {
  28686. readyToCheck.push(dependent);
  28687. }
  28688. });
  28689. }
  28690. if (counter !== numTasks) {
  28691. throw new Error(
  28692. 'async.auto cannot execute tasks due to a recursive dependency'
  28693. );
  28694. }
  28695. }
  28696. function getDependents(taskName) {
  28697. var result = [];
  28698. Object.keys(tasks).forEach(key => {
  28699. const task = tasks[key];
  28700. if (Array.isArray(task) && task.indexOf(taskName) >= 0) {
  28701. result.push(key);
  28702. }
  28703. });
  28704. return result;
  28705. }
  28706. return callback[PROMISE_SYMBOL]
  28707. }
  28708. var FN_ARGS = /^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;
  28709. var ARROW_FN_ARGS = /^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;
  28710. var FN_ARG_SPLIT = /,/;
  28711. var FN_ARG = /(=.+)?(\s*)$/;
  28712. var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
  28713. function parseParams(func) {
  28714. const src = func.toString().replace(STRIP_COMMENTS, '');
  28715. let match = src.match(FN_ARGS);
  28716. if (!match) {
  28717. match = src.match(ARROW_FN_ARGS);
  28718. }
  28719. if (!match) throw new Error('could not parse args in autoInject\nSource:\n' + src)
  28720. let [, args] = match;
  28721. return args
  28722. .replace(/\s/g, '')
  28723. .split(FN_ARG_SPLIT)
  28724. .map((arg) => arg.replace(FN_ARG, '').trim());
  28725. }
  28726. /**
  28727. * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent
  28728. * tasks are specified as parameters to the function, after the usual callback
  28729. * parameter, with the parameter names matching the names of the tasks it
  28730. * depends on. This can provide even more readable task graphs which can be
  28731. * easier to maintain.
  28732. *
  28733. * If a final callback is specified, the task results are similarly injected,
  28734. * specified as named parameters after the initial error parameter.
  28735. *
  28736. * The autoInject function is purely syntactic sugar and its semantics are
  28737. * otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}.
  28738. *
  28739. * @name autoInject
  28740. * @static
  28741. * @memberOf module:ControlFlow
  28742. * @method
  28743. * @see [async.auto]{@link module:ControlFlow.auto}
  28744. * @category Control Flow
  28745. * @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of
  28746. * the form 'func([dependencies...], callback). The object's key of a property
  28747. * serves as the name of the task defined by that property, i.e. can be used
  28748. * when specifying requirements for other tasks.
  28749. * * The `callback` parameter is a `callback(err, result)` which must be called
  28750. * when finished, passing an `error` (which can be `null`) and the result of
  28751. * the function's execution. The remaining parameters name other tasks on
  28752. * which the task is dependent, and the results from those tasks are the
  28753. * arguments of those parameters.
  28754. * @param {Function} [callback] - An optional callback which is called when all
  28755. * the tasks have been completed. It receives the `err` argument if any `tasks`
  28756. * pass an error to their callback, and a `results` object with any completed
  28757. * task results, similar to `auto`.
  28758. * @returns {Promise} a promise, if no callback is passed
  28759. * @example
  28760. *
  28761. * // The example from `auto` can be rewritten as follows:
  28762. * async.autoInject({
  28763. * get_data: function(callback) {
  28764. * // async code to get some data
  28765. * callback(null, 'data', 'converted to array');
  28766. * },
  28767. * make_folder: function(callback) {
  28768. * // async code to create a directory to store a file in
  28769. * // this is run at the same time as getting the data
  28770. * callback(null, 'folder');
  28771. * },
  28772. * write_file: function(get_data, make_folder, callback) {
  28773. * // once there is some data and the directory exists,
  28774. * // write the data to a file in the directory
  28775. * callback(null, 'filename');
  28776. * },
  28777. * email_link: function(write_file, callback) {
  28778. * // once the file is written let's email a link to it...
  28779. * // write_file contains the filename returned by write_file.
  28780. * callback(null, {'file':write_file, 'email':'user@example.com'});
  28781. * }
  28782. * }, function(err, results) {
  28783. * console.log('err = ', err);
  28784. * console.log('email_link = ', results.email_link);
  28785. * });
  28786. *
  28787. * // If you are using a JS minifier that mangles parameter names, `autoInject`
  28788. * // will not work with plain functions, since the parameter names will be
  28789. * // collapsed to a single letter identifier. To work around this, you can
  28790. * // explicitly specify the names of the parameters your task function needs
  28791. * // in an array, similar to Angular.js dependency injection.
  28792. *
  28793. * // This still has an advantage over plain `auto`, since the results a task
  28794. * // depends on are still spread into arguments.
  28795. * async.autoInject({
  28796. * //...
  28797. * write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) {
  28798. * callback(null, 'filename');
  28799. * }],
  28800. * email_link: ['write_file', function(write_file, callback) {
  28801. * callback(null, {'file':write_file, 'email':'user@example.com'});
  28802. * }]
  28803. * //...
  28804. * }, function(err, results) {
  28805. * console.log('err = ', err);
  28806. * console.log('email_link = ', results.email_link);
  28807. * });
  28808. */
  28809. function autoInject(tasks, callback) {
  28810. var newTasks = {};
  28811. Object.keys(tasks).forEach(key => {
  28812. var taskFn = tasks[key];
  28813. var params;
  28814. var fnIsAsync = isAsync(taskFn);
  28815. var hasNoDeps =
  28816. (!fnIsAsync && taskFn.length === 1) ||
  28817. (fnIsAsync && taskFn.length === 0);
  28818. if (Array.isArray(taskFn)) {
  28819. params = [...taskFn];
  28820. taskFn = params.pop();
  28821. newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn);
  28822. } else if (hasNoDeps) {
  28823. // no dependencies, use the function as-is
  28824. newTasks[key] = taskFn;
  28825. } else {
  28826. params = parseParams(taskFn);
  28827. if ((taskFn.length === 0 && !fnIsAsync) && params.length === 0) {
  28828. throw new Error("autoInject task functions require explicit parameters.");
  28829. }
  28830. // remove callback param
  28831. if (!fnIsAsync) params.pop();
  28832. newTasks[key] = params.concat(newTask);
  28833. }
  28834. function newTask(results, taskCb) {
  28835. var newArgs = params.map(name => results[name]);
  28836. newArgs.push(taskCb);
  28837. wrapAsync(taskFn)(...newArgs);
  28838. }
  28839. });
  28840. return auto(newTasks, callback);
  28841. }
  28842. // Simple doubly linked list (https://en.wikipedia.org/wiki/Doubly_linked_list) implementation
  28843. // used for queues. This implementation assumes that the node provided by the user can be modified
  28844. // to adjust the next and last properties. We implement only the minimal functionality
  28845. // for queue support.
  28846. class DLL {
  28847. constructor() {
  28848. this.head = this.tail = null;
  28849. this.length = 0;
  28850. }
  28851. removeLink(node) {
  28852. if (node.prev) node.prev.next = node.next;
  28853. else this.head = node.next;
  28854. if (node.next) node.next.prev = node.prev;
  28855. else this.tail = node.prev;
  28856. node.prev = node.next = null;
  28857. this.length -= 1;
  28858. return node;
  28859. }
  28860. empty () {
  28861. while(this.head) this.shift();
  28862. return this;
  28863. }
  28864. insertAfter(node, newNode) {
  28865. newNode.prev = node;
  28866. newNode.next = node.next;
  28867. if (node.next) node.next.prev = newNode;
  28868. else this.tail = newNode;
  28869. node.next = newNode;
  28870. this.length += 1;
  28871. }
  28872. insertBefore(node, newNode) {
  28873. newNode.prev = node.prev;
  28874. newNode.next = node;
  28875. if (node.prev) node.prev.next = newNode;
  28876. else this.head = newNode;
  28877. node.prev = newNode;
  28878. this.length += 1;
  28879. }
  28880. unshift(node) {
  28881. if (this.head) this.insertBefore(this.head, node);
  28882. else setInitial(this, node);
  28883. }
  28884. push(node) {
  28885. if (this.tail) this.insertAfter(this.tail, node);
  28886. else setInitial(this, node);
  28887. }
  28888. shift() {
  28889. return this.head && this.removeLink(this.head);
  28890. }
  28891. pop() {
  28892. return this.tail && this.removeLink(this.tail);
  28893. }
  28894. toArray() {
  28895. return [...this]
  28896. }
  28897. *[Symbol.iterator] () {
  28898. var cur = this.head;
  28899. while (cur) {
  28900. yield cur.data;
  28901. cur = cur.next;
  28902. }
  28903. }
  28904. remove (testFn) {
  28905. var curr = this.head;
  28906. while(curr) {
  28907. var {next} = curr;
  28908. if (testFn(curr)) {
  28909. this.removeLink(curr);
  28910. }
  28911. curr = next;
  28912. }
  28913. return this;
  28914. }
  28915. }
  28916. function setInitial(dll, node) {
  28917. dll.length = 1;
  28918. dll.head = dll.tail = node;
  28919. }
  28920. function queue(worker, concurrency, payload) {
  28921. if (concurrency == null) {
  28922. concurrency = 1;
  28923. }
  28924. else if(concurrency === 0) {
  28925. throw new RangeError('Concurrency must not be zero');
  28926. }
  28927. var _worker = wrapAsync(worker);
  28928. var numRunning = 0;
  28929. var workersList = [];
  28930. const events = {
  28931. error: [],
  28932. drain: [],
  28933. saturated: [],
  28934. unsaturated: [],
  28935. empty: []
  28936. };
  28937. function on (event, handler) {
  28938. events[event].push(handler);
  28939. }
  28940. function once (event, handler) {
  28941. const handleAndRemove = (...args) => {
  28942. off(event, handleAndRemove);
  28943. handler(...args);
  28944. };
  28945. events[event].push(handleAndRemove);
  28946. }
  28947. function off (event, handler) {
  28948. if (!event) return Object.keys(events).forEach(ev => events[ev] = [])
  28949. if (!handler) return events[event] = []
  28950. events[event] = events[event].filter(ev => ev !== handler);
  28951. }
  28952. function trigger (event, ...args) {
  28953. events[event].forEach(handler => handler(...args));
  28954. }
  28955. var processingScheduled = false;
  28956. function _insert(data, insertAtFront, rejectOnError, callback) {
  28957. if (callback != null && typeof callback !== 'function') {
  28958. throw new Error('task callback must be a function');
  28959. }
  28960. q.started = true;
  28961. var res, rej;
  28962. function promiseCallback (err, ...args) {
  28963. // we don't care about the error, let the global error handler
  28964. // deal with it
  28965. if (err) return rejectOnError ? rej(err) : res()
  28966. if (args.length <= 1) return res(args[0])
  28967. res(args);
  28968. }
  28969. var item = {
  28970. data,
  28971. callback: rejectOnError ?
  28972. promiseCallback :
  28973. (callback || promiseCallback)
  28974. };
  28975. if (insertAtFront) {
  28976. q._tasks.unshift(item);
  28977. } else {
  28978. q._tasks.push(item);
  28979. }
  28980. if (!processingScheduled) {
  28981. processingScheduled = true;
  28982. setImmediate$1(() => {
  28983. processingScheduled = false;
  28984. q.process();
  28985. });
  28986. }
  28987. if (rejectOnError || !callback) {
  28988. return new Promise((resolve, reject) => {
  28989. res = resolve;
  28990. rej = reject;
  28991. })
  28992. }
  28993. }
  28994. function _createCB(tasks) {
  28995. return function (err, ...args) {
  28996. numRunning -= 1;
  28997. for (var i = 0, l = tasks.length; i < l; i++) {
  28998. var task = tasks[i];
  28999. var index = workersList.indexOf(task);
  29000. if (index === 0) {
  29001. workersList.shift();
  29002. } else if (index > 0) {
  29003. workersList.splice(index, 1);
  29004. }
  29005. task.callback(err, ...args);
  29006. if (err != null) {
  29007. trigger('error', err, task.data);
  29008. }
  29009. }
  29010. if (numRunning <= (q.concurrency - q.buffer) ) {
  29011. trigger('unsaturated');
  29012. }
  29013. if (q.idle()) {
  29014. trigger('drain');
  29015. }
  29016. q.process();
  29017. };
  29018. }
  29019. function _maybeDrain(data) {
  29020. if (data.length === 0 && q.idle()) {
  29021. // call drain immediately if there are no tasks
  29022. setImmediate$1(() => trigger('drain'));
  29023. return true
  29024. }
  29025. return false
  29026. }
  29027. const eventMethod = (name) => (handler) => {
  29028. if (!handler) {
  29029. return new Promise((resolve, reject) => {
  29030. once(name, (err, data) => {
  29031. if (err) return reject(err)
  29032. resolve(data);
  29033. });
  29034. })
  29035. }
  29036. off(name);
  29037. on(name, handler);
  29038. };
  29039. var isProcessing = false;
  29040. var q = {
  29041. _tasks: new DLL(),
  29042. *[Symbol.iterator] () {
  29043. yield* q._tasks[Symbol.iterator]();
  29044. },
  29045. concurrency,
  29046. payload,
  29047. buffer: concurrency / 4,
  29048. started: false,
  29049. paused: false,
  29050. push (data, callback) {
  29051. if (Array.isArray(data)) {
  29052. if (_maybeDrain(data)) return
  29053. return data.map(datum => _insert(datum, false, false, callback))
  29054. }
  29055. return _insert(data, false, false, callback);
  29056. },
  29057. pushAsync (data, callback) {
  29058. if (Array.isArray(data)) {
  29059. if (_maybeDrain(data)) return
  29060. return data.map(datum => _insert(datum, false, true, callback))
  29061. }
  29062. return _insert(data, false, true, callback);
  29063. },
  29064. kill () {
  29065. off();
  29066. q._tasks.empty();
  29067. },
  29068. unshift (data, callback) {
  29069. if (Array.isArray(data)) {
  29070. if (_maybeDrain(data)) return
  29071. return data.map(datum => _insert(datum, true, false, callback))
  29072. }
  29073. return _insert(data, true, false, callback);
  29074. },
  29075. unshiftAsync (data, callback) {
  29076. if (Array.isArray(data)) {
  29077. if (_maybeDrain(data)) return
  29078. return data.map(datum => _insert(datum, true, true, callback))
  29079. }
  29080. return _insert(data, true, true, callback);
  29081. },
  29082. remove (testFn) {
  29083. q._tasks.remove(testFn);
  29084. },
  29085. process () {
  29086. // Avoid trying to start too many processing operations. This can occur
  29087. // when callbacks resolve synchronously (#1267).
  29088. if (isProcessing) {
  29089. return;
  29090. }
  29091. isProcessing = true;
  29092. while(!q.paused && numRunning < q.concurrency && q._tasks.length){
  29093. var tasks = [], data = [];
  29094. var l = q._tasks.length;
  29095. if (q.payload) l = Math.min(l, q.payload);
  29096. for (var i = 0; i < l; i++) {
  29097. var node = q._tasks.shift();
  29098. tasks.push(node);
  29099. workersList.push(node);
  29100. data.push(node.data);
  29101. }
  29102. numRunning += 1;
  29103. if (q._tasks.length === 0) {
  29104. trigger('empty');
  29105. }
  29106. if (numRunning === q.concurrency) {
  29107. trigger('saturated');
  29108. }
  29109. var cb = onlyOnce(_createCB(tasks));
  29110. _worker(data, cb);
  29111. }
  29112. isProcessing = false;
  29113. },
  29114. length () {
  29115. return q._tasks.length;
  29116. },
  29117. running () {
  29118. return numRunning;
  29119. },
  29120. workersList () {
  29121. return workersList;
  29122. },
  29123. idle() {
  29124. return q._tasks.length + numRunning === 0;
  29125. },
  29126. pause () {
  29127. q.paused = true;
  29128. },
  29129. resume () {
  29130. if (q.paused === false) { return; }
  29131. q.paused = false;
  29132. setImmediate$1(q.process);
  29133. }
  29134. };
  29135. // define these as fixed properties, so people get useful errors when updating
  29136. Object.defineProperties(q, {
  29137. saturated: {
  29138. writable: false,
  29139. value: eventMethod('saturated')
  29140. },
  29141. unsaturated: {
  29142. writable: false,
  29143. value: eventMethod('unsaturated')
  29144. },
  29145. empty: {
  29146. writable: false,
  29147. value: eventMethod('empty')
  29148. },
  29149. drain: {
  29150. writable: false,
  29151. value: eventMethod('drain')
  29152. },
  29153. error: {
  29154. writable: false,
  29155. value: eventMethod('error')
  29156. },
  29157. });
  29158. return q;
  29159. }
  29160. /**
  29161. * Creates a `cargo` object with the specified payload. Tasks added to the
  29162. * cargo will be processed altogether (up to the `payload` limit). If the
  29163. * `worker` is in progress, the task is queued until it becomes available. Once
  29164. * the `worker` has completed some tasks, each callback of those tasks is
  29165. * called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966)
  29166. * for how `cargo` and `queue` work.
  29167. *
  29168. * While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers
  29169. * at a time, cargo passes an array of tasks to a single worker, repeating
  29170. * when the worker is finished.
  29171. *
  29172. * @name cargo
  29173. * @static
  29174. * @memberOf module:ControlFlow
  29175. * @method
  29176. * @see [async.queue]{@link module:ControlFlow.queue}
  29177. * @category Control Flow
  29178. * @param {AsyncFunction} worker - An asynchronous function for processing an array
  29179. * of queued tasks. Invoked with `(tasks, callback)`.
  29180. * @param {number} [payload=Infinity] - An optional `integer` for determining
  29181. * how many tasks should be processed per round; if omitted, the default is
  29182. * unlimited.
  29183. * @returns {module:ControlFlow.QueueObject} A cargo object to manage the tasks. Callbacks can
  29184. * attached as certain properties to listen for specific events during the
  29185. * lifecycle of the cargo and inner queue.
  29186. * @example
  29187. *
  29188. * // create a cargo object with payload 2
  29189. * var cargo = async.cargo(function(tasks, callback) {
  29190. * for (var i=0; i<tasks.length; i++) {
  29191. * console.log('hello ' + tasks[i].name);
  29192. * }
  29193. * callback();
  29194. * }, 2);
  29195. *
  29196. * // add some items
  29197. * cargo.push({name: 'foo'}, function(err) {
  29198. * console.log('finished processing foo');
  29199. * });
  29200. * cargo.push({name: 'bar'}, function(err) {
  29201. * console.log('finished processing bar');
  29202. * });
  29203. * await cargo.push({name: 'baz'});
  29204. * console.log('finished processing baz');
  29205. */
  29206. function cargo(worker, payload) {
  29207. return queue(worker, 1, payload);
  29208. }
  29209. /**
  29210. * Creates a `cargoQueue` object with the specified payload. Tasks added to the
  29211. * cargoQueue will be processed together (up to the `payload` limit) in `concurrency` parallel workers.
  29212. * If the all `workers` are in progress, the task is queued until one becomes available. Once
  29213. * a `worker` has completed some tasks, each callback of those tasks is
  29214. * called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966)
  29215. * for how `cargo` and `queue` work.
  29216. *
  29217. * While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers
  29218. * at a time, and [`cargo`]{@link module:ControlFlow.cargo} passes an array of tasks to a single worker,
  29219. * the cargoQueue passes an array of tasks to multiple parallel workers.
  29220. *
  29221. * @name cargoQueue
  29222. * @static
  29223. * @memberOf module:ControlFlow
  29224. * @method
  29225. * @see [async.queue]{@link module:ControlFlow.queue}
  29226. * @see [async.cargo]{@link module:ControlFLow.cargo}
  29227. * @category Control Flow
  29228. * @param {AsyncFunction} worker - An asynchronous function for processing an array
  29229. * of queued tasks. Invoked with `(tasks, callback)`.
  29230. * @param {number} [concurrency=1] - An `integer` for determining how many
  29231. * `worker` functions should be run in parallel. If omitted, the concurrency
  29232. * defaults to `1`. If the concurrency is `0`, an error is thrown.
  29233. * @param {number} [payload=Infinity] - An optional `integer` for determining
  29234. * how many tasks should be processed per round; if omitted, the default is
  29235. * unlimited.
  29236. * @returns {module:ControlFlow.QueueObject} A cargoQueue object to manage the tasks. Callbacks can
  29237. * attached as certain properties to listen for specific events during the
  29238. * lifecycle of the cargoQueue and inner queue.
  29239. * @example
  29240. *
  29241. * // create a cargoQueue object with payload 2 and concurrency 2
  29242. * var cargoQueue = async.cargoQueue(function(tasks, callback) {
  29243. * for (var i=0; i<tasks.length; i++) {
  29244. * console.log('hello ' + tasks[i].name);
  29245. * }
  29246. * callback();
  29247. * }, 2, 2);
  29248. *
  29249. * // add some items
  29250. * cargoQueue.push({name: 'foo'}, function(err) {
  29251. * console.log('finished processing foo');
  29252. * });
  29253. * cargoQueue.push({name: 'bar'}, function(err) {
  29254. * console.log('finished processing bar');
  29255. * });
  29256. * cargoQueue.push({name: 'baz'}, function(err) {
  29257. * console.log('finished processing baz');
  29258. * });
  29259. * cargoQueue.push({name: 'boo'}, function(err) {
  29260. * console.log('finished processing boo');
  29261. * });
  29262. */
  29263. function cargo$1(worker, concurrency, payload) {
  29264. return queue(worker, concurrency, payload);
  29265. }
  29266. /**
  29267. * Reduces `coll` into a single value using an async `iteratee` to return each
  29268. * successive step. `memo` is the initial state of the reduction. This function
  29269. * only operates in series.
  29270. *
  29271. * For performance reasons, it may make sense to split a call to this function
  29272. * into a parallel map, and then use the normal `Array.prototype.reduce` on the
  29273. * results. This function is for situations where each step in the reduction
  29274. * needs to be async; if you can get the data before reducing it, then it's
  29275. * probably a good idea to do so.
  29276. *
  29277. * @name reduce
  29278. * @static
  29279. * @memberOf module:Collections
  29280. * @method
  29281. * @alias inject
  29282. * @alias foldl
  29283. * @category Collection
  29284. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  29285. * @param {*} memo - The initial state of the reduction.
  29286. * @param {AsyncFunction} iteratee - A function applied to each item in the
  29287. * array to produce the next step in the reduction.
  29288. * The `iteratee` should complete with the next state of the reduction.
  29289. * If the iteratee completes with an error, the reduction is stopped and the
  29290. * main `callback` is immediately called with the error.
  29291. * Invoked with (memo, item, callback).
  29292. * @param {Function} [callback] - A callback which is called after all the
  29293. * `iteratee` functions have finished. Result is the reduced value. Invoked with
  29294. * (err, result).
  29295. * @returns {Promise} a promise, if no callback is passed
  29296. * @example
  29297. *
  29298. * // file1.txt is a file that is 1000 bytes in size
  29299. * // file2.txt is a file that is 2000 bytes in size
  29300. * // file3.txt is a file that is 3000 bytes in size
  29301. * // file4.txt does not exist
  29302. *
  29303. * const fileList = ['file1.txt','file2.txt','file3.txt'];
  29304. * const withMissingFileList = ['file1.txt','file2.txt','file3.txt', 'file4.txt'];
  29305. *
  29306. * // asynchronous function that computes the file size in bytes
  29307. * // file size is added to the memoized value, then returned
  29308. * function getFileSizeInBytes(memo, file, callback) {
  29309. * fs.stat(file, function(err, stat) {
  29310. * if (err) {
  29311. * return callback(err);
  29312. * }
  29313. * callback(null, memo + stat.size);
  29314. * });
  29315. * }
  29316. *
  29317. * // Using callbacks
  29318. * async.reduce(fileList, 0, getFileSizeInBytes, function(err, result) {
  29319. * if (err) {
  29320. * console.log(err);
  29321. * } else {
  29322. * console.log(result);
  29323. * // 6000
  29324. * // which is the sum of the file sizes of the three files
  29325. * }
  29326. * });
  29327. *
  29328. * // Error Handling
  29329. * async.reduce(withMissingFileList, 0, getFileSizeInBytes, function(err, result) {
  29330. * if (err) {
  29331. * console.log(err);
  29332. * // [ Error: ENOENT: no such file or directory ]
  29333. * } else {
  29334. * console.log(result);
  29335. * }
  29336. * });
  29337. *
  29338. * // Using Promises
  29339. * async.reduce(fileList, 0, getFileSizeInBytes)
  29340. * .then( result => {
  29341. * console.log(result);
  29342. * // 6000
  29343. * // which is the sum of the file sizes of the three files
  29344. * }).catch( err => {
  29345. * console.log(err);
  29346. * });
  29347. *
  29348. * // Error Handling
  29349. * async.reduce(withMissingFileList, 0, getFileSizeInBytes)
  29350. * .then( result => {
  29351. * console.log(result);
  29352. * }).catch( err => {
  29353. * console.log(err);
  29354. * // [ Error: ENOENT: no such file or directory ]
  29355. * });
  29356. *
  29357. * // Using async/await
  29358. * async () => {
  29359. * try {
  29360. * let result = await async.reduce(fileList, 0, getFileSizeInBytes);
  29361. * console.log(result);
  29362. * // 6000
  29363. * // which is the sum of the file sizes of the three files
  29364. * }
  29365. * catch (err) {
  29366. * console.log(err);
  29367. * }
  29368. * }
  29369. *
  29370. * // Error Handling
  29371. * async () => {
  29372. * try {
  29373. * let result = await async.reduce(withMissingFileList, 0, getFileSizeInBytes);
  29374. * console.log(result);
  29375. * }
  29376. * catch (err) {
  29377. * console.log(err);
  29378. * // [ Error: ENOENT: no such file or directory ]
  29379. * }
  29380. * }
  29381. *
  29382. */
  29383. function reduce(coll, memo, iteratee, callback) {
  29384. callback = once(callback);
  29385. var _iteratee = wrapAsync(iteratee);
  29386. return eachOfSeries$1(coll, (x, i, iterCb) => {
  29387. _iteratee(memo, x, (err, v) => {
  29388. memo = v;
  29389. iterCb(err);
  29390. });
  29391. }, err => callback(err, memo));
  29392. }
  29393. var reduce$1 = awaitify(reduce, 4);
  29394. /**
  29395. * Version of the compose function that is more natural to read. Each function
  29396. * consumes the return value of the previous function. It is the equivalent of
  29397. * [compose]{@link module:ControlFlow.compose} with the arguments reversed.
  29398. *
  29399. * Each function is executed with the `this` binding of the composed function.
  29400. *
  29401. * @name seq
  29402. * @static
  29403. * @memberOf module:ControlFlow
  29404. * @method
  29405. * @see [async.compose]{@link module:ControlFlow.compose}
  29406. * @category Control Flow
  29407. * @param {...AsyncFunction} functions - the asynchronous functions to compose
  29408. * @returns {Function} a function that composes the `functions` in order
  29409. * @example
  29410. *
  29411. * // Requires lodash (or underscore), express3 and dresende's orm2.
  29412. * // Part of an app, that fetches cats of the logged user.
  29413. * // This example uses `seq` function to avoid overnesting and error
  29414. * // handling clutter.
  29415. * app.get('/cats', function(request, response) {
  29416. * var User = request.models.User;
  29417. * async.seq(
  29418. * _.bind(User.get, User), // 'User.get' has signature (id, callback(err, data))
  29419. * function(user, fn) {
  29420. * user.getCats(fn); // 'getCats' has signature (callback(err, data))
  29421. * }
  29422. * )(req.session.user_id, function (err, cats) {
  29423. * if (err) {
  29424. * console.error(err);
  29425. * response.json({ status: 'error', message: err.message });
  29426. * } else {
  29427. * response.json({ status: 'ok', message: 'Cats found', data: cats });
  29428. * }
  29429. * });
  29430. * });
  29431. */
  29432. function seq(...functions) {
  29433. var _functions = functions.map(wrapAsync);
  29434. return function (...args) {
  29435. var that = this;
  29436. var cb = args[args.length - 1];
  29437. if (typeof cb == 'function') {
  29438. args.pop();
  29439. } else {
  29440. cb = promiseCallback();
  29441. }
  29442. reduce$1(_functions, args, (newargs, fn, iterCb) => {
  29443. fn.apply(that, newargs.concat((err, ...nextargs) => {
  29444. iterCb(err, nextargs);
  29445. }));
  29446. },
  29447. (err, results) => cb(err, ...results));
  29448. return cb[PROMISE_SYMBOL]
  29449. };
  29450. }
  29451. /**
  29452. * Creates a function which is a composition of the passed asynchronous
  29453. * functions. Each function consumes the return value of the function that
  29454. * follows. Composing functions `f()`, `g()`, and `h()` would produce the result
  29455. * of `f(g(h()))`, only this version uses callbacks to obtain the return values.
  29456. *
  29457. * If the last argument to the composed function is not a function, a promise
  29458. * is returned when you call it.
  29459. *
  29460. * Each function is executed with the `this` binding of the composed function.
  29461. *
  29462. * @name compose
  29463. * @static
  29464. * @memberOf module:ControlFlow
  29465. * @method
  29466. * @category Control Flow
  29467. * @param {...AsyncFunction} functions - the asynchronous functions to compose
  29468. * @returns {Function} an asynchronous function that is the composed
  29469. * asynchronous `functions`
  29470. * @example
  29471. *
  29472. * function add1(n, callback) {
  29473. * setTimeout(function () {
  29474. * callback(null, n + 1);
  29475. * }, 10);
  29476. * }
  29477. *
  29478. * function mul3(n, callback) {
  29479. * setTimeout(function () {
  29480. * callback(null, n * 3);
  29481. * }, 10);
  29482. * }
  29483. *
  29484. * var add1mul3 = async.compose(mul3, add1);
  29485. * add1mul3(4, function (err, result) {
  29486. * // result now equals 15
  29487. * });
  29488. */
  29489. function compose(...args) {
  29490. return seq(...args.reverse());
  29491. }
  29492. /**
  29493. * The same as [`map`]{@link module:Collections.map} but runs a maximum of `limit` async operations at a time.
  29494. *
  29495. * @name mapLimit
  29496. * @static
  29497. * @memberOf module:Collections
  29498. * @method
  29499. * @see [async.map]{@link module:Collections.map}
  29500. * @category Collection
  29501. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  29502. * @param {number} limit - The maximum number of async operations at a time.
  29503. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  29504. * `coll`.
  29505. * The iteratee should complete with the transformed item.
  29506. * Invoked with (item, callback).
  29507. * @param {Function} [callback] - A callback which is called when all `iteratee`
  29508. * functions have finished, or an error occurs. Results is an array of the
  29509. * transformed items from the `coll`. Invoked with (err, results).
  29510. * @returns {Promise} a promise, if no callback is passed
  29511. */
  29512. function mapLimit (coll, limit, iteratee, callback) {
  29513. return _asyncMap(eachOfLimit(limit), coll, iteratee, callback)
  29514. }
  29515. var mapLimit$1 = awaitify(mapLimit, 4);
  29516. /**
  29517. * The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time.
  29518. *
  29519. * @name concatLimit
  29520. * @static
  29521. * @memberOf module:Collections
  29522. * @method
  29523. * @see [async.concat]{@link module:Collections.concat}
  29524. * @category Collection
  29525. * @alias flatMapLimit
  29526. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  29527. * @param {number} limit - The maximum number of async operations at a time.
  29528. * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,
  29529. * which should use an array as its result. Invoked with (item, callback).
  29530. * @param {Function} [callback] - A callback which is called after all the
  29531. * `iteratee` functions have finished, or an error occurs. Results is an array
  29532. * containing the concatenated results of the `iteratee` function. Invoked with
  29533. * (err, results).
  29534. * @returns A Promise, if no callback is passed
  29535. */
  29536. function concatLimit(coll, limit, iteratee, callback) {
  29537. var _iteratee = wrapAsync(iteratee);
  29538. return mapLimit$1(coll, limit, (val, iterCb) => {
  29539. _iteratee(val, (err, ...args) => {
  29540. if (err) return iterCb(err);
  29541. return iterCb(err, args);
  29542. });
  29543. }, (err, mapResults) => {
  29544. var result = [];
  29545. for (var i = 0; i < mapResults.length; i++) {
  29546. if (mapResults[i]) {
  29547. result = result.concat(...mapResults[i]);
  29548. }
  29549. }
  29550. return callback(err, result);
  29551. });
  29552. }
  29553. var concatLimit$1 = awaitify(concatLimit, 4);
  29554. /**
  29555. * Applies `iteratee` to each item in `coll`, concatenating the results. Returns
  29556. * the concatenated list. The `iteratee`s are called in parallel, and the
  29557. * results are concatenated as they return. The results array will be returned in
  29558. * the original order of `coll` passed to the `iteratee` function.
  29559. *
  29560. * @name concat
  29561. * @static
  29562. * @memberOf module:Collections
  29563. * @method
  29564. * @category Collection
  29565. * @alias flatMap
  29566. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  29567. * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,
  29568. * which should use an array as its result. Invoked with (item, callback).
  29569. * @param {Function} [callback] - A callback which is called after all the
  29570. * `iteratee` functions have finished, or an error occurs. Results is an array
  29571. * containing the concatenated results of the `iteratee` function. Invoked with
  29572. * (err, results).
  29573. * @returns A Promise, if no callback is passed
  29574. * @example
  29575. *
  29576. * // dir1 is a directory that contains file1.txt, file2.txt
  29577. * // dir2 is a directory that contains file3.txt, file4.txt
  29578. * // dir3 is a directory that contains file5.txt
  29579. * // dir4 does not exist
  29580. *
  29581. * let directoryList = ['dir1','dir2','dir3'];
  29582. * let withMissingDirectoryList = ['dir1','dir2','dir3', 'dir4'];
  29583. *
  29584. * // Using callbacks
  29585. * async.concat(directoryList, fs.readdir, function(err, results) {
  29586. * if (err) {
  29587. * console.log(err);
  29588. * } else {
  29589. * console.log(results);
  29590. * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]
  29591. * }
  29592. * });
  29593. *
  29594. * // Error Handling
  29595. * async.concat(withMissingDirectoryList, fs.readdir, function(err, results) {
  29596. * if (err) {
  29597. * console.log(err);
  29598. * // [ Error: ENOENT: no such file or directory ]
  29599. * // since dir4 does not exist
  29600. * } else {
  29601. * console.log(results);
  29602. * }
  29603. * });
  29604. *
  29605. * // Using Promises
  29606. * async.concat(directoryList, fs.readdir)
  29607. * .then(results => {
  29608. * console.log(results);
  29609. * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]
  29610. * }).catch(err => {
  29611. * console.log(err);
  29612. * });
  29613. *
  29614. * // Error Handling
  29615. * async.concat(withMissingDirectoryList, fs.readdir)
  29616. * .then(results => {
  29617. * console.log(results);
  29618. * }).catch(err => {
  29619. * console.log(err);
  29620. * // [ Error: ENOENT: no such file or directory ]
  29621. * // since dir4 does not exist
  29622. * });
  29623. *
  29624. * // Using async/await
  29625. * async () => {
  29626. * try {
  29627. * let results = await async.concat(directoryList, fs.readdir);
  29628. * console.log(results);
  29629. * // [ 'file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', file5.txt ]
  29630. * } catch (err) {
  29631. * console.log(err);
  29632. * }
  29633. * }
  29634. *
  29635. * // Error Handling
  29636. * async () => {
  29637. * try {
  29638. * let results = await async.concat(withMissingDirectoryList, fs.readdir);
  29639. * console.log(results);
  29640. * } catch (err) {
  29641. * console.log(err);
  29642. * // [ Error: ENOENT: no such file or directory ]
  29643. * // since dir4 does not exist
  29644. * }
  29645. * }
  29646. *
  29647. */
  29648. function concat(coll, iteratee, callback) {
  29649. return concatLimit$1(coll, Infinity, iteratee, callback)
  29650. }
  29651. var concat$1 = awaitify(concat, 3);
  29652. /**
  29653. * The same as [`concat`]{@link module:Collections.concat} but runs only a single async operation at a time.
  29654. *
  29655. * @name concatSeries
  29656. * @static
  29657. * @memberOf module:Collections
  29658. * @method
  29659. * @see [async.concat]{@link module:Collections.concat}
  29660. * @category Collection
  29661. * @alias flatMapSeries
  29662. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  29663. * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`.
  29664. * The iteratee should complete with an array an array of results.
  29665. * Invoked with (item, callback).
  29666. * @param {Function} [callback] - A callback which is called after all the
  29667. * `iteratee` functions have finished, or an error occurs. Results is an array
  29668. * containing the concatenated results of the `iteratee` function. Invoked with
  29669. * (err, results).
  29670. * @returns A Promise, if no callback is passed
  29671. */
  29672. function concatSeries(coll, iteratee, callback) {
  29673. return concatLimit$1(coll, 1, iteratee, callback)
  29674. }
  29675. var concatSeries$1 = awaitify(concatSeries, 3);
  29676. /**
  29677. * Returns a function that when called, calls-back with the values provided.
  29678. * Useful as the first function in a [`waterfall`]{@link module:ControlFlow.waterfall}, or for plugging values in to
  29679. * [`auto`]{@link module:ControlFlow.auto}.
  29680. *
  29681. * @name constant
  29682. * @static
  29683. * @memberOf module:Utils
  29684. * @method
  29685. * @category Util
  29686. * @param {...*} arguments... - Any number of arguments to automatically invoke
  29687. * callback with.
  29688. * @returns {AsyncFunction} Returns a function that when invoked, automatically
  29689. * invokes the callback with the previous given arguments.
  29690. * @example
  29691. *
  29692. * async.waterfall([
  29693. * async.constant(42),
  29694. * function (value, next) {
  29695. * // value === 42
  29696. * },
  29697. * //...
  29698. * ], callback);
  29699. *
  29700. * async.waterfall([
  29701. * async.constant(filename, "utf8"),
  29702. * fs.readFile,
  29703. * function (fileData, next) {
  29704. * //...
  29705. * }
  29706. * //...
  29707. * ], callback);
  29708. *
  29709. * async.auto({
  29710. * hostname: async.constant("https://server.net/"),
  29711. * port: findFreePort,
  29712. * launchServer: ["hostname", "port", function (options, cb) {
  29713. * startServer(options, cb);
  29714. * }],
  29715. * //...
  29716. * }, callback);
  29717. */
  29718. function constant(...args) {
  29719. return function (...ignoredArgs/*, callback*/) {
  29720. var callback = ignoredArgs.pop();
  29721. return callback(null, ...args);
  29722. };
  29723. }
  29724. function _createTester(check, getResult) {
  29725. return (eachfn, arr, _iteratee, cb) => {
  29726. var testPassed = false;
  29727. var testResult;
  29728. const iteratee = wrapAsync(_iteratee);
  29729. eachfn(arr, (value, _, callback) => {
  29730. iteratee(value, (err, result) => {
  29731. if (err || err === false) return callback(err);
  29732. if (check(result) && !testResult) {
  29733. testPassed = true;
  29734. testResult = getResult(true, value);
  29735. return callback(null, breakLoop);
  29736. }
  29737. callback();
  29738. });
  29739. }, err => {
  29740. if (err) return cb(err);
  29741. cb(null, testPassed ? testResult : getResult(false));
  29742. });
  29743. };
  29744. }
  29745. /**
  29746. * Returns the first value in `coll` that passes an async truth test. The
  29747. * `iteratee` is applied in parallel, meaning the first iteratee to return
  29748. * `true` will fire the detect `callback` with that result. That means the
  29749. * result might not be the first item in the original `coll` (in terms of order)
  29750. * that passes the test.
  29751. * If order within the original `coll` is important, then look at
  29752. * [`detectSeries`]{@link module:Collections.detectSeries}.
  29753. *
  29754. * @name detect
  29755. * @static
  29756. * @memberOf module:Collections
  29757. * @method
  29758. * @alias find
  29759. * @category Collections
  29760. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  29761. * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
  29762. * The iteratee must complete with a boolean value as its result.
  29763. * Invoked with (item, callback).
  29764. * @param {Function} [callback] - A callback which is called as soon as any
  29765. * iteratee returns `true`, or after all the `iteratee` functions have finished.
  29766. * Result will be the first item in the array that passes the truth test
  29767. * (iteratee) or the value `undefined` if none passed. Invoked with
  29768. * (err, result).
  29769. * @returns A Promise, if no callback is passed
  29770. * @example
  29771. *
  29772. * // dir1 is a directory that contains file1.txt, file2.txt
  29773. * // dir2 is a directory that contains file3.txt, file4.txt
  29774. * // dir3 is a directory that contains file5.txt
  29775. *
  29776. * // asynchronous function that checks if a file exists
  29777. * function fileExists(file, callback) {
  29778. * fs.access(file, fs.constants.F_OK, (err) => {
  29779. * callback(null, !err);
  29780. * });
  29781. * }
  29782. *
  29783. * async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists,
  29784. * function(err, result) {
  29785. * console.log(result);
  29786. * // dir1/file1.txt
  29787. * // result now equals the first file in the list that exists
  29788. * }
  29789. *);
  29790. *
  29791. * // Using Promises
  29792. * async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists)
  29793. * .then(result => {
  29794. * console.log(result);
  29795. * // dir1/file1.txt
  29796. * // result now equals the first file in the list that exists
  29797. * }).catch(err => {
  29798. * console.log(err);
  29799. * });
  29800. *
  29801. * // Using async/await
  29802. * async () => {
  29803. * try {
  29804. * let result = await async.detect(['file3.txt','file2.txt','dir1/file1.txt'], fileExists);
  29805. * console.log(result);
  29806. * // dir1/file1.txt
  29807. * // result now equals the file in the list that exists
  29808. * }
  29809. * catch (err) {
  29810. * console.log(err);
  29811. * }
  29812. * }
  29813. *
  29814. */
  29815. function detect(coll, iteratee, callback) {
  29816. return _createTester(bool => bool, (res, item) => item)(eachOf$1, coll, iteratee, callback)
  29817. }
  29818. var detect$1 = awaitify(detect, 3);
  29819. /**
  29820. * The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a
  29821. * time.
  29822. *
  29823. * @name detectLimit
  29824. * @static
  29825. * @memberOf module:Collections
  29826. * @method
  29827. * @see [async.detect]{@link module:Collections.detect}
  29828. * @alias findLimit
  29829. * @category Collections
  29830. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  29831. * @param {number} limit - The maximum number of async operations at a time.
  29832. * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
  29833. * The iteratee must complete with a boolean value as its result.
  29834. * Invoked with (item, callback).
  29835. * @param {Function} [callback] - A callback which is called as soon as any
  29836. * iteratee returns `true`, or after all the `iteratee` functions have finished.
  29837. * Result will be the first item in the array that passes the truth test
  29838. * (iteratee) or the value `undefined` if none passed. Invoked with
  29839. * (err, result).
  29840. * @returns a Promise if no callback is passed
  29841. */
  29842. function detectLimit(coll, limit, iteratee, callback) {
  29843. return _createTester(bool => bool, (res, item) => item)(eachOfLimit(limit), coll, iteratee, callback)
  29844. }
  29845. var detectLimit$1 = awaitify(detectLimit, 4);
  29846. /**
  29847. * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time.
  29848. *
  29849. * @name detectSeries
  29850. * @static
  29851. * @memberOf module:Collections
  29852. * @method
  29853. * @see [async.detect]{@link module:Collections.detect}
  29854. * @alias findSeries
  29855. * @category Collections
  29856. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  29857. * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`.
  29858. * The iteratee must complete with a boolean value as its result.
  29859. * Invoked with (item, callback).
  29860. * @param {Function} [callback] - A callback which is called as soon as any
  29861. * iteratee returns `true`, or after all the `iteratee` functions have finished.
  29862. * Result will be the first item in the array that passes the truth test
  29863. * (iteratee) or the value `undefined` if none passed. Invoked with
  29864. * (err, result).
  29865. * @returns a Promise if no callback is passed
  29866. */
  29867. function detectSeries(coll, iteratee, callback) {
  29868. return _createTester(bool => bool, (res, item) => item)(eachOfLimit(1), coll, iteratee, callback)
  29869. }
  29870. var detectSeries$1 = awaitify(detectSeries, 3);
  29871. function consoleFunc(name) {
  29872. return (fn, ...args) => wrapAsync(fn)(...args, (err, ...resultArgs) => {
  29873. /* istanbul ignore else */
  29874. if (typeof console === 'object') {
  29875. /* istanbul ignore else */
  29876. if (err) {
  29877. /* istanbul ignore else */
  29878. if (console.error) {
  29879. console.error(err);
  29880. }
  29881. } else if (console[name]) { /* istanbul ignore else */
  29882. resultArgs.forEach(x => console[name](x));
  29883. }
  29884. }
  29885. })
  29886. }
  29887. /**
  29888. * Logs the result of an [`async` function]{@link AsyncFunction} to the
  29889. * `console` using `console.dir` to display the properties of the resulting object.
  29890. * Only works in Node.js or in browsers that support `console.dir` and
  29891. * `console.error` (such as FF and Chrome).
  29892. * If multiple arguments are returned from the async function,
  29893. * `console.dir` is called on each argument in order.
  29894. *
  29895. * @name dir
  29896. * @static
  29897. * @memberOf module:Utils
  29898. * @method
  29899. * @category Util
  29900. * @param {AsyncFunction} function - The function you want to eventually apply
  29901. * all arguments to.
  29902. * @param {...*} arguments... - Any number of arguments to apply to the function.
  29903. * @example
  29904. *
  29905. * // in a module
  29906. * var hello = function(name, callback) {
  29907. * setTimeout(function() {
  29908. * callback(null, {hello: name});
  29909. * }, 1000);
  29910. * };
  29911. *
  29912. * // in the node repl
  29913. * node> async.dir(hello, 'world');
  29914. * {hello: 'world'}
  29915. */
  29916. var dir = consoleFunc('dir');
  29917. /**
  29918. * The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in
  29919. * the order of operations, the arguments `test` and `iteratee` are switched.
  29920. *
  29921. * `doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.
  29922. *
  29923. * @name doWhilst
  29924. * @static
  29925. * @memberOf module:ControlFlow
  29926. * @method
  29927. * @see [async.whilst]{@link module:ControlFlow.whilst}
  29928. * @category Control Flow
  29929. * @param {AsyncFunction} iteratee - A function which is called each time `test`
  29930. * passes. Invoked with (callback).
  29931. * @param {AsyncFunction} test - asynchronous truth test to perform after each
  29932. * execution of `iteratee`. Invoked with (...args, callback), where `...args` are the
  29933. * non-error args from the previous callback of `iteratee`.
  29934. * @param {Function} [callback] - A callback which is called after the test
  29935. * function has failed and repeated execution of `iteratee` has stopped.
  29936. * `callback` will be passed an error and any arguments passed to the final
  29937. * `iteratee`'s callback. Invoked with (err, [results]);
  29938. * @returns {Promise} a promise, if no callback is passed
  29939. */
  29940. function doWhilst(iteratee, test, callback) {
  29941. callback = onlyOnce(callback);
  29942. var _fn = wrapAsync(iteratee);
  29943. var _test = wrapAsync(test);
  29944. var results;
  29945. function next(err, ...args) {
  29946. if (err) return callback(err);
  29947. if (err === false) return;
  29948. results = args;
  29949. _test(...args, check);
  29950. }
  29951. function check(err, truth) {
  29952. if (err) return callback(err);
  29953. if (err === false) return;
  29954. if (!truth) return callback(null, ...results);
  29955. _fn(next);
  29956. }
  29957. return check(null, true);
  29958. }
  29959. var doWhilst$1 = awaitify(doWhilst, 3);
  29960. /**
  29961. * Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the
  29962. * argument ordering differs from `until`.
  29963. *
  29964. * @name doUntil
  29965. * @static
  29966. * @memberOf module:ControlFlow
  29967. * @method
  29968. * @see [async.doWhilst]{@link module:ControlFlow.doWhilst}
  29969. * @category Control Flow
  29970. * @param {AsyncFunction} iteratee - An async function which is called each time
  29971. * `test` fails. Invoked with (callback).
  29972. * @param {AsyncFunction} test - asynchronous truth test to perform after each
  29973. * execution of `iteratee`. Invoked with (...args, callback), where `...args` are the
  29974. * non-error args from the previous callback of `iteratee`
  29975. * @param {Function} [callback] - A callback which is called after the test
  29976. * function has passed and repeated execution of `iteratee` has stopped. `callback`
  29977. * will be passed an error and any arguments passed to the final `iteratee`'s
  29978. * callback. Invoked with (err, [results]);
  29979. * @returns {Promise} a promise, if no callback is passed
  29980. */
  29981. function doUntil(iteratee, test, callback) {
  29982. const _test = wrapAsync(test);
  29983. return doWhilst$1(iteratee, (...args) => {
  29984. const cb = args.pop();
  29985. _test(...args, (err, truth) => cb (err, !truth));
  29986. }, callback);
  29987. }
  29988. function _withoutIndex(iteratee) {
  29989. return (value, index, callback) => iteratee(value, callback);
  29990. }
  29991. /**
  29992. * Applies the function `iteratee` to each item in `coll`, in parallel.
  29993. * The `iteratee` is called with an item from the list, and a callback for when
  29994. * it has finished. If the `iteratee` passes an error to its `callback`, the
  29995. * main `callback` (for the `each` function) is immediately called with the
  29996. * error.
  29997. *
  29998. * Note, that since this function applies `iteratee` to each item in parallel,
  29999. * there is no guarantee that the iteratee functions will complete in order.
  30000. *
  30001. * @name each
  30002. * @static
  30003. * @memberOf module:Collections
  30004. * @method
  30005. * @alias forEach
  30006. * @category Collection
  30007. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30008. * @param {AsyncFunction} iteratee - An async function to apply to
  30009. * each item in `coll`. Invoked with (item, callback).
  30010. * The array index is not passed to the iteratee.
  30011. * If you need the index, use `eachOf`.
  30012. * @param {Function} [callback] - A callback which is called when all
  30013. * `iteratee` functions have finished, or an error occurs. Invoked with (err).
  30014. * @returns {Promise} a promise, if a callback is omitted
  30015. * @example
  30016. *
  30017. * // dir1 is a directory that contains file1.txt, file2.txt
  30018. * // dir2 is a directory that contains file3.txt, file4.txt
  30019. * // dir3 is a directory that contains file5.txt
  30020. * // dir4 does not exist
  30021. *
  30022. * const fileList = [ 'dir1/file2.txt', 'dir2/file3.txt', 'dir/file5.txt'];
  30023. * const withMissingFileList = ['dir1/file1.txt', 'dir4/file2.txt'];
  30024. *
  30025. * // asynchronous function that deletes a file
  30026. * const deleteFile = function(file, callback) {
  30027. * fs.unlink(file, callback);
  30028. * };
  30029. *
  30030. * // Using callbacks
  30031. * async.each(fileList, deleteFile, function(err) {
  30032. * if( err ) {
  30033. * console.log(err);
  30034. * } else {
  30035. * console.log('All files have been deleted successfully');
  30036. * }
  30037. * });
  30038. *
  30039. * // Error Handling
  30040. * async.each(withMissingFileList, deleteFile, function(err){
  30041. * console.log(err);
  30042. * // [ Error: ENOENT: no such file or directory ]
  30043. * // since dir4/file2.txt does not exist
  30044. * // dir1/file1.txt could have been deleted
  30045. * });
  30046. *
  30047. * // Using Promises
  30048. * async.each(fileList, deleteFile)
  30049. * .then( () => {
  30050. * console.log('All files have been deleted successfully');
  30051. * }).catch( err => {
  30052. * console.log(err);
  30053. * });
  30054. *
  30055. * // Error Handling
  30056. * async.each(fileList, deleteFile)
  30057. * .then( () => {
  30058. * console.log('All files have been deleted successfully');
  30059. * }).catch( err => {
  30060. * console.log(err);
  30061. * // [ Error: ENOENT: no such file or directory ]
  30062. * // since dir4/file2.txt does not exist
  30063. * // dir1/file1.txt could have been deleted
  30064. * });
  30065. *
  30066. * // Using async/await
  30067. * async () => {
  30068. * try {
  30069. * await async.each(files, deleteFile);
  30070. * }
  30071. * catch (err) {
  30072. * console.log(err);
  30073. * }
  30074. * }
  30075. *
  30076. * // Error Handling
  30077. * async () => {
  30078. * try {
  30079. * await async.each(withMissingFileList, deleteFile);
  30080. * }
  30081. * catch (err) {
  30082. * console.log(err);
  30083. * // [ Error: ENOENT: no such file or directory ]
  30084. * // since dir4/file2.txt does not exist
  30085. * // dir1/file1.txt could have been deleted
  30086. * }
  30087. * }
  30088. *
  30089. */
  30090. function eachLimit(coll, iteratee, callback) {
  30091. return eachOf$1(coll, _withoutIndex(wrapAsync(iteratee)), callback);
  30092. }
  30093. var each = awaitify(eachLimit, 3);
  30094. /**
  30095. * The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time.
  30096. *
  30097. * @name eachLimit
  30098. * @static
  30099. * @memberOf module:Collections
  30100. * @method
  30101. * @see [async.each]{@link module:Collections.each}
  30102. * @alias forEachLimit
  30103. * @category Collection
  30104. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30105. * @param {number} limit - The maximum number of async operations at a time.
  30106. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  30107. * `coll`.
  30108. * The array index is not passed to the iteratee.
  30109. * If you need the index, use `eachOfLimit`.
  30110. * Invoked with (item, callback).
  30111. * @param {Function} [callback] - A callback which is called when all
  30112. * `iteratee` functions have finished, or an error occurs. Invoked with (err).
  30113. * @returns {Promise} a promise, if a callback is omitted
  30114. */
  30115. function eachLimit$1(coll, limit, iteratee, callback) {
  30116. return eachOfLimit(limit)(coll, _withoutIndex(wrapAsync(iteratee)), callback);
  30117. }
  30118. var eachLimit$2 = awaitify(eachLimit$1, 4);
  30119. /**
  30120. * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time.
  30121. *
  30122. * Note, that unlike [`each`]{@link module:Collections.each}, this function applies iteratee to each item
  30123. * in series and therefore the iteratee functions will complete in order.
  30124. * @name eachSeries
  30125. * @static
  30126. * @memberOf module:Collections
  30127. * @method
  30128. * @see [async.each]{@link module:Collections.each}
  30129. * @alias forEachSeries
  30130. * @category Collection
  30131. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30132. * @param {AsyncFunction} iteratee - An async function to apply to each
  30133. * item in `coll`.
  30134. * The array index is not passed to the iteratee.
  30135. * If you need the index, use `eachOfSeries`.
  30136. * Invoked with (item, callback).
  30137. * @param {Function} [callback] - A callback which is called when all
  30138. * `iteratee` functions have finished, or an error occurs. Invoked with (err).
  30139. * @returns {Promise} a promise, if a callback is omitted
  30140. */
  30141. function eachSeries(coll, iteratee, callback) {
  30142. return eachLimit$2(coll, 1, iteratee, callback)
  30143. }
  30144. var eachSeries$1 = awaitify(eachSeries, 3);
  30145. /**
  30146. * Wrap an async function and ensure it calls its callback on a later tick of
  30147. * the event loop. If the function already calls its callback on a next tick,
  30148. * no extra deferral is added. This is useful for preventing stack overflows
  30149. * (`RangeError: Maximum call stack size exceeded`) and generally keeping
  30150. * [Zalgo](http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony)
  30151. * contained. ES2017 `async` functions are returned as-is -- they are immune
  30152. * to Zalgo's corrupting influences, as they always resolve on a later tick.
  30153. *
  30154. * @name ensureAsync
  30155. * @static
  30156. * @memberOf module:Utils
  30157. * @method
  30158. * @category Util
  30159. * @param {AsyncFunction} fn - an async function, one that expects a node-style
  30160. * callback as its last argument.
  30161. * @returns {AsyncFunction} Returns a wrapped function with the exact same call
  30162. * signature as the function passed in.
  30163. * @example
  30164. *
  30165. * function sometimesAsync(arg, callback) {
  30166. * if (cache[arg]) {
  30167. * return callback(null, cache[arg]); // this would be synchronous!!
  30168. * } else {
  30169. * doSomeIO(arg, callback); // this IO would be asynchronous
  30170. * }
  30171. * }
  30172. *
  30173. * // this has a risk of stack overflows if many results are cached in a row
  30174. * async.mapSeries(args, sometimesAsync, done);
  30175. *
  30176. * // this will defer sometimesAsync's callback if necessary,
  30177. * // preventing stack overflows
  30178. * async.mapSeries(args, async.ensureAsync(sometimesAsync), done);
  30179. */
  30180. function ensureAsync(fn) {
  30181. if (isAsync(fn)) return fn;
  30182. return function (...args/*, callback*/) {
  30183. var callback = args.pop();
  30184. var sync = true;
  30185. args.push((...innerArgs) => {
  30186. if (sync) {
  30187. setImmediate$1(() => callback(...innerArgs));
  30188. } else {
  30189. callback(...innerArgs);
  30190. }
  30191. });
  30192. fn.apply(this, args);
  30193. sync = false;
  30194. };
  30195. }
  30196. /**
  30197. * Returns `true` if every element in `coll` satisfies an async test. If any
  30198. * iteratee call returns `false`, the main `callback` is immediately called.
  30199. *
  30200. * @name every
  30201. * @static
  30202. * @memberOf module:Collections
  30203. * @method
  30204. * @alias all
  30205. * @category Collection
  30206. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30207. * @param {AsyncFunction} iteratee - An async truth test to apply to each item
  30208. * in the collection in parallel.
  30209. * The iteratee must complete with a boolean result value.
  30210. * Invoked with (item, callback).
  30211. * @param {Function} [callback] - A callback which is called after all the
  30212. * `iteratee` functions have finished. Result will be either `true` or `false`
  30213. * depending on the values of the async tests. Invoked with (err, result).
  30214. * @returns {Promise} a promise, if no callback provided
  30215. * @example
  30216. *
  30217. * // dir1 is a directory that contains file1.txt, file2.txt
  30218. * // dir2 is a directory that contains file3.txt, file4.txt
  30219. * // dir3 is a directory that contains file5.txt
  30220. * // dir4 does not exist
  30221. *
  30222. * const fileList = ['dir1/file1.txt','dir2/file3.txt','dir3/file5.txt'];
  30223. * const withMissingFileList = ['file1.txt','file2.txt','file4.txt'];
  30224. *
  30225. * // asynchronous function that checks if a file exists
  30226. * function fileExists(file, callback) {
  30227. * fs.access(file, fs.constants.F_OK, (err) => {
  30228. * callback(null, !err);
  30229. * });
  30230. * }
  30231. *
  30232. * // Using callbacks
  30233. * async.every(fileList, fileExists, function(err, result) {
  30234. * console.log(result);
  30235. * // true
  30236. * // result is true since every file exists
  30237. * });
  30238. *
  30239. * async.every(withMissingFileList, fileExists, function(err, result) {
  30240. * console.log(result);
  30241. * // false
  30242. * // result is false since NOT every file exists
  30243. * });
  30244. *
  30245. * // Using Promises
  30246. * async.every(fileList, fileExists)
  30247. * .then( result => {
  30248. * console.log(result);
  30249. * // true
  30250. * // result is true since every file exists
  30251. * }).catch( err => {
  30252. * console.log(err);
  30253. * });
  30254. *
  30255. * async.every(withMissingFileList, fileExists)
  30256. * .then( result => {
  30257. * console.log(result);
  30258. * // false
  30259. * // result is false since NOT every file exists
  30260. * }).catch( err => {
  30261. * console.log(err);
  30262. * });
  30263. *
  30264. * // Using async/await
  30265. * async () => {
  30266. * try {
  30267. * let result = await async.every(fileList, fileExists);
  30268. * console.log(result);
  30269. * // true
  30270. * // result is true since every file exists
  30271. * }
  30272. * catch (err) {
  30273. * console.log(err);
  30274. * }
  30275. * }
  30276. *
  30277. * async () => {
  30278. * try {
  30279. * let result = await async.every(withMissingFileList, fileExists);
  30280. * console.log(result);
  30281. * // false
  30282. * // result is false since NOT every file exists
  30283. * }
  30284. * catch (err) {
  30285. * console.log(err);
  30286. * }
  30287. * }
  30288. *
  30289. */
  30290. function every(coll, iteratee, callback) {
  30291. return _createTester(bool => !bool, res => !res)(eachOf$1, coll, iteratee, callback)
  30292. }
  30293. var every$1 = awaitify(every, 3);
  30294. /**
  30295. * The same as [`every`]{@link module:Collections.every} but runs a maximum of `limit` async operations at a time.
  30296. *
  30297. * @name everyLimit
  30298. * @static
  30299. * @memberOf module:Collections
  30300. * @method
  30301. * @see [async.every]{@link module:Collections.every}
  30302. * @alias allLimit
  30303. * @category Collection
  30304. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30305. * @param {number} limit - The maximum number of async operations at a time.
  30306. * @param {AsyncFunction} iteratee - An async truth test to apply to each item
  30307. * in the collection in parallel.
  30308. * The iteratee must complete with a boolean result value.
  30309. * Invoked with (item, callback).
  30310. * @param {Function} [callback] - A callback which is called after all the
  30311. * `iteratee` functions have finished. Result will be either `true` or `false`
  30312. * depending on the values of the async tests. Invoked with (err, result).
  30313. * @returns {Promise} a promise, if no callback provided
  30314. */
  30315. function everyLimit(coll, limit, iteratee, callback) {
  30316. return _createTester(bool => !bool, res => !res)(eachOfLimit(limit), coll, iteratee, callback)
  30317. }
  30318. var everyLimit$1 = awaitify(everyLimit, 4);
  30319. /**
  30320. * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.
  30321. *
  30322. * @name everySeries
  30323. * @static
  30324. * @memberOf module:Collections
  30325. * @method
  30326. * @see [async.every]{@link module:Collections.every}
  30327. * @alias allSeries
  30328. * @category Collection
  30329. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30330. * @param {AsyncFunction} iteratee - An async truth test to apply to each item
  30331. * in the collection in series.
  30332. * The iteratee must complete with a boolean result value.
  30333. * Invoked with (item, callback).
  30334. * @param {Function} [callback] - A callback which is called after all the
  30335. * `iteratee` functions have finished. Result will be either `true` or `false`
  30336. * depending on the values of the async tests. Invoked with (err, result).
  30337. * @returns {Promise} a promise, if no callback provided
  30338. */
  30339. function everySeries(coll, iteratee, callback) {
  30340. return _createTester(bool => !bool, res => !res)(eachOfSeries$1, coll, iteratee, callback)
  30341. }
  30342. var everySeries$1 = awaitify(everySeries, 3);
  30343. function filterArray(eachfn, arr, iteratee, callback) {
  30344. var truthValues = new Array(arr.length);
  30345. eachfn(arr, (x, index, iterCb) => {
  30346. iteratee(x, (err, v) => {
  30347. truthValues[index] = !!v;
  30348. iterCb(err);
  30349. });
  30350. }, err => {
  30351. if (err) return callback(err);
  30352. var results = [];
  30353. for (var i = 0; i < arr.length; i++) {
  30354. if (truthValues[i]) results.push(arr[i]);
  30355. }
  30356. callback(null, results);
  30357. });
  30358. }
  30359. function filterGeneric(eachfn, coll, iteratee, callback) {
  30360. var results = [];
  30361. eachfn(coll, (x, index, iterCb) => {
  30362. iteratee(x, (err, v) => {
  30363. if (err) return iterCb(err);
  30364. if (v) {
  30365. results.push({index, value: x});
  30366. }
  30367. iterCb(err);
  30368. });
  30369. }, err => {
  30370. if (err) return callback(err);
  30371. callback(null, results
  30372. .sort((a, b) => a.index - b.index)
  30373. .map(v => v.value));
  30374. });
  30375. }
  30376. function _filter(eachfn, coll, iteratee, callback) {
  30377. var filter = isArrayLike(coll) ? filterArray : filterGeneric;
  30378. return filter(eachfn, coll, wrapAsync(iteratee), callback);
  30379. }
  30380. /**
  30381. * Returns a new array of all the values in `coll` which pass an async truth
  30382. * test. This operation is performed in parallel, but the results array will be
  30383. * in the same order as the original.
  30384. *
  30385. * @name filter
  30386. * @static
  30387. * @memberOf module:Collections
  30388. * @method
  30389. * @alias select
  30390. * @category Collection
  30391. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30392. * @param {Function} iteratee - A truth test to apply to each item in `coll`.
  30393. * The `iteratee` is passed a `callback(err, truthValue)`, which must be called
  30394. * with a boolean argument once it has completed. Invoked with (item, callback).
  30395. * @param {Function} [callback] - A callback which is called after all the
  30396. * `iteratee` functions have finished. Invoked with (err, results).
  30397. * @returns {Promise} a promise, if no callback provided
  30398. * @example
  30399. *
  30400. * // dir1 is a directory that contains file1.txt, file2.txt
  30401. * // dir2 is a directory that contains file3.txt, file4.txt
  30402. * // dir3 is a directory that contains file5.txt
  30403. *
  30404. * const files = ['dir1/file1.txt','dir2/file3.txt','dir3/file6.txt'];
  30405. *
  30406. * // asynchronous function that checks if a file exists
  30407. * function fileExists(file, callback) {
  30408. * fs.access(file, fs.constants.F_OK, (err) => {
  30409. * callback(null, !err);
  30410. * });
  30411. * }
  30412. *
  30413. * // Using callbacks
  30414. * async.filter(files, fileExists, function(err, results) {
  30415. * if(err) {
  30416. * console.log(err);
  30417. * } else {
  30418. * console.log(results);
  30419. * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]
  30420. * // results is now an array of the existing files
  30421. * }
  30422. * });
  30423. *
  30424. * // Using Promises
  30425. * async.filter(files, fileExists)
  30426. * .then(results => {
  30427. * console.log(results);
  30428. * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]
  30429. * // results is now an array of the existing files
  30430. * }).catch(err => {
  30431. * console.log(err);
  30432. * });
  30433. *
  30434. * // Using async/await
  30435. * async () => {
  30436. * try {
  30437. * let results = await async.filter(files, fileExists);
  30438. * console.log(results);
  30439. * // [ 'dir1/file1.txt', 'dir2/file3.txt' ]
  30440. * // results is now an array of the existing files
  30441. * }
  30442. * catch (err) {
  30443. * console.log(err);
  30444. * }
  30445. * }
  30446. *
  30447. */
  30448. function filter (coll, iteratee, callback) {
  30449. return _filter(eachOf$1, coll, iteratee, callback)
  30450. }
  30451. var filter$1 = awaitify(filter, 3);
  30452. /**
  30453. * The same as [`filter`]{@link module:Collections.filter} but runs a maximum of `limit` async operations at a
  30454. * time.
  30455. *
  30456. * @name filterLimit
  30457. * @static
  30458. * @memberOf module:Collections
  30459. * @method
  30460. * @see [async.filter]{@link module:Collections.filter}
  30461. * @alias selectLimit
  30462. * @category Collection
  30463. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30464. * @param {number} limit - The maximum number of async operations at a time.
  30465. * @param {Function} iteratee - A truth test to apply to each item in `coll`.
  30466. * The `iteratee` is passed a `callback(err, truthValue)`, which must be called
  30467. * with a boolean argument once it has completed. Invoked with (item, callback).
  30468. * @param {Function} [callback] - A callback which is called after all the
  30469. * `iteratee` functions have finished. Invoked with (err, results).
  30470. * @returns {Promise} a promise, if no callback provided
  30471. */
  30472. function filterLimit (coll, limit, iteratee, callback) {
  30473. return _filter(eachOfLimit(limit), coll, iteratee, callback)
  30474. }
  30475. var filterLimit$1 = awaitify(filterLimit, 4);
  30476. /**
  30477. * The same as [`filter`]{@link module:Collections.filter} but runs only a single async operation at a time.
  30478. *
  30479. * @name filterSeries
  30480. * @static
  30481. * @memberOf module:Collections
  30482. * @method
  30483. * @see [async.filter]{@link module:Collections.filter}
  30484. * @alias selectSeries
  30485. * @category Collection
  30486. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30487. * @param {Function} iteratee - A truth test to apply to each item in `coll`.
  30488. * The `iteratee` is passed a `callback(err, truthValue)`, which must be called
  30489. * with a boolean argument once it has completed. Invoked with (item, callback).
  30490. * @param {Function} [callback] - A callback which is called after all the
  30491. * `iteratee` functions have finished. Invoked with (err, results)
  30492. * @returns {Promise} a promise, if no callback provided
  30493. */
  30494. function filterSeries (coll, iteratee, callback) {
  30495. return _filter(eachOfSeries$1, coll, iteratee, callback)
  30496. }
  30497. var filterSeries$1 = awaitify(filterSeries, 3);
  30498. /**
  30499. * Calls the asynchronous function `fn` with a callback parameter that allows it
  30500. * to call itself again, in series, indefinitely.
  30501. * If an error is passed to the callback then `errback` is called with the
  30502. * error, and execution stops, otherwise it will never be called.
  30503. *
  30504. * @name forever
  30505. * @static
  30506. * @memberOf module:ControlFlow
  30507. * @method
  30508. * @category Control Flow
  30509. * @param {AsyncFunction} fn - an async function to call repeatedly.
  30510. * Invoked with (next).
  30511. * @param {Function} [errback] - when `fn` passes an error to it's callback,
  30512. * this function will be called, and execution stops. Invoked with (err).
  30513. * @returns {Promise} a promise that rejects if an error occurs and an errback
  30514. * is not passed
  30515. * @example
  30516. *
  30517. * async.forever(
  30518. * function(next) {
  30519. * // next is suitable for passing to things that need a callback(err [, whatever]);
  30520. * // it will result in this function being called again.
  30521. * },
  30522. * function(err) {
  30523. * // if next is called with a value in its first parameter, it will appear
  30524. * // in here as 'err', and execution will stop.
  30525. * }
  30526. * );
  30527. */
  30528. function forever(fn, errback) {
  30529. var done = onlyOnce(errback);
  30530. var task = wrapAsync(ensureAsync(fn));
  30531. function next(err) {
  30532. if (err) return done(err);
  30533. if (err === false) return;
  30534. task(next);
  30535. }
  30536. return next();
  30537. }
  30538. var forever$1 = awaitify(forever, 2);
  30539. /**
  30540. * The same as [`groupBy`]{@link module:Collections.groupBy} but runs a maximum of `limit` async operations at a time.
  30541. *
  30542. * @name groupByLimit
  30543. * @static
  30544. * @memberOf module:Collections
  30545. * @method
  30546. * @see [async.groupBy]{@link module:Collections.groupBy}
  30547. * @category Collection
  30548. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30549. * @param {number} limit - The maximum number of async operations at a time.
  30550. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  30551. * `coll`.
  30552. * The iteratee should complete with a `key` to group the value under.
  30553. * Invoked with (value, callback).
  30554. * @param {Function} [callback] - A callback which is called when all `iteratee`
  30555. * functions have finished, or an error occurs. Result is an `Object` whoses
  30556. * properties are arrays of values which returned the corresponding key.
  30557. * @returns {Promise} a promise, if no callback is passed
  30558. */
  30559. function groupByLimit(coll, limit, iteratee, callback) {
  30560. var _iteratee = wrapAsync(iteratee);
  30561. return mapLimit$1(coll, limit, (val, iterCb) => {
  30562. _iteratee(val, (err, key) => {
  30563. if (err) return iterCb(err);
  30564. return iterCb(err, {key, val});
  30565. });
  30566. }, (err, mapResults) => {
  30567. var result = {};
  30568. // from MDN, handle object having an `hasOwnProperty` prop
  30569. var {hasOwnProperty} = Object.prototype;
  30570. for (var i = 0; i < mapResults.length; i++) {
  30571. if (mapResults[i]) {
  30572. var {key} = mapResults[i];
  30573. var {val} = mapResults[i];
  30574. if (hasOwnProperty.call(result, key)) {
  30575. result[key].push(val);
  30576. } else {
  30577. result[key] = [val];
  30578. }
  30579. }
  30580. }
  30581. return callback(err, result);
  30582. });
  30583. }
  30584. var groupByLimit$1 = awaitify(groupByLimit, 4);
  30585. /**
  30586. * Returns a new object, where each value corresponds to an array of items, from
  30587. * `coll`, that returned the corresponding key. That is, the keys of the object
  30588. * correspond to the values passed to the `iteratee` callback.
  30589. *
  30590. * Note: Since this function applies the `iteratee` to each item in parallel,
  30591. * there is no guarantee that the `iteratee` functions will complete in order.
  30592. * However, the values for each key in the `result` will be in the same order as
  30593. * the original `coll`. For Objects, the values will roughly be in the order of
  30594. * the original Objects' keys (but this can vary across JavaScript engines).
  30595. *
  30596. * @name groupBy
  30597. * @static
  30598. * @memberOf module:Collections
  30599. * @method
  30600. * @category Collection
  30601. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30602. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  30603. * `coll`.
  30604. * The iteratee should complete with a `key` to group the value under.
  30605. * Invoked with (value, callback).
  30606. * @param {Function} [callback] - A callback which is called when all `iteratee`
  30607. * functions have finished, or an error occurs. Result is an `Object` whoses
  30608. * properties are arrays of values which returned the corresponding key.
  30609. * @returns {Promise} a promise, if no callback is passed
  30610. * @example
  30611. *
  30612. * // dir1 is a directory that contains file1.txt, file2.txt
  30613. * // dir2 is a directory that contains file3.txt, file4.txt
  30614. * // dir3 is a directory that contains file5.txt
  30615. * // dir4 does not exist
  30616. *
  30617. * const files = ['dir1/file1.txt','dir2','dir4']
  30618. *
  30619. * // asynchronous function that detects file type as none, file, or directory
  30620. * function detectFile(file, callback) {
  30621. * fs.stat(file, function(err, stat) {
  30622. * if (err) {
  30623. * return callback(null, 'none');
  30624. * }
  30625. * callback(null, stat.isDirectory() ? 'directory' : 'file');
  30626. * });
  30627. * }
  30628. *
  30629. * //Using callbacks
  30630. * async.groupBy(files, detectFile, function(err, result) {
  30631. * if(err) {
  30632. * console.log(err);
  30633. * } else {
  30634. * console.log(result);
  30635. * // {
  30636. * // file: [ 'dir1/file1.txt' ],
  30637. * // none: [ 'dir4' ],
  30638. * // directory: [ 'dir2']
  30639. * // }
  30640. * // result is object containing the files grouped by type
  30641. * }
  30642. * });
  30643. *
  30644. * // Using Promises
  30645. * async.groupBy(files, detectFile)
  30646. * .then( result => {
  30647. * console.log(result);
  30648. * // {
  30649. * // file: [ 'dir1/file1.txt' ],
  30650. * // none: [ 'dir4' ],
  30651. * // directory: [ 'dir2']
  30652. * // }
  30653. * // result is object containing the files grouped by type
  30654. * }).catch( err => {
  30655. * console.log(err);
  30656. * });
  30657. *
  30658. * // Using async/await
  30659. * async () => {
  30660. * try {
  30661. * let result = await async.groupBy(files, detectFile);
  30662. * console.log(result);
  30663. * // {
  30664. * // file: [ 'dir1/file1.txt' ],
  30665. * // none: [ 'dir4' ],
  30666. * // directory: [ 'dir2']
  30667. * // }
  30668. * // result is object containing the files grouped by type
  30669. * }
  30670. * catch (err) {
  30671. * console.log(err);
  30672. * }
  30673. * }
  30674. *
  30675. */
  30676. function groupBy (coll, iteratee, callback) {
  30677. return groupByLimit$1(coll, Infinity, iteratee, callback)
  30678. }
  30679. /**
  30680. * The same as [`groupBy`]{@link module:Collections.groupBy} but runs only a single async operation at a time.
  30681. *
  30682. * @name groupBySeries
  30683. * @static
  30684. * @memberOf module:Collections
  30685. * @method
  30686. * @see [async.groupBy]{@link module:Collections.groupBy}
  30687. * @category Collection
  30688. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  30689. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  30690. * `coll`.
  30691. * The iteratee should complete with a `key` to group the value under.
  30692. * Invoked with (value, callback).
  30693. * @param {Function} [callback] - A callback which is called when all `iteratee`
  30694. * functions have finished, or an error occurs. Result is an `Object` whose
  30695. * properties are arrays of values which returned the corresponding key.
  30696. * @returns {Promise} a promise, if no callback is passed
  30697. */
  30698. function groupBySeries (coll, iteratee, callback) {
  30699. return groupByLimit$1(coll, 1, iteratee, callback)
  30700. }
  30701. /**
  30702. * Logs the result of an `async` function to the `console`. Only works in
  30703. * Node.js or in browsers that support `console.log` and `console.error` (such
  30704. * as FF and Chrome). If multiple arguments are returned from the async
  30705. * function, `console.log` is called on each argument in order.
  30706. *
  30707. * @name log
  30708. * @static
  30709. * @memberOf module:Utils
  30710. * @method
  30711. * @category Util
  30712. * @param {AsyncFunction} function - The function you want to eventually apply
  30713. * all arguments to.
  30714. * @param {...*} arguments... - Any number of arguments to apply to the function.
  30715. * @example
  30716. *
  30717. * // in a module
  30718. * var hello = function(name, callback) {
  30719. * setTimeout(function() {
  30720. * callback(null, 'hello ' + name);
  30721. * }, 1000);
  30722. * };
  30723. *
  30724. * // in the node repl
  30725. * node> async.log(hello, 'world');
  30726. * 'hello world'
  30727. */
  30728. var log = consoleFunc('log');
  30729. /**
  30730. * The same as [`mapValues`]{@link module:Collections.mapValues} but runs a maximum of `limit` async operations at a
  30731. * time.
  30732. *
  30733. * @name mapValuesLimit
  30734. * @static
  30735. * @memberOf module:Collections
  30736. * @method
  30737. * @see [async.mapValues]{@link module:Collections.mapValues}
  30738. * @category Collection
  30739. * @param {Object} obj - A collection to iterate over.
  30740. * @param {number} limit - The maximum number of async operations at a time.
  30741. * @param {AsyncFunction} iteratee - A function to apply to each value and key
  30742. * in `coll`.
  30743. * The iteratee should complete with the transformed value as its result.
  30744. * Invoked with (value, key, callback).
  30745. * @param {Function} [callback] - A callback which is called when all `iteratee`
  30746. * functions have finished, or an error occurs. `result` is a new object consisting
  30747. * of each key from `obj`, with each transformed value on the right-hand side.
  30748. * Invoked with (err, result).
  30749. * @returns {Promise} a promise, if no callback is passed
  30750. */
  30751. function mapValuesLimit(obj, limit, iteratee, callback) {
  30752. callback = once(callback);
  30753. var newObj = {};
  30754. var _iteratee = wrapAsync(iteratee);
  30755. return eachOfLimit(limit)(obj, (val, key, next) => {
  30756. _iteratee(val, key, (err, result) => {
  30757. if (err) return next(err);
  30758. newObj[key] = result;
  30759. next(err);
  30760. });
  30761. }, err => callback(err, newObj));
  30762. }
  30763. var mapValuesLimit$1 = awaitify(mapValuesLimit, 4);
  30764. /**
  30765. * A relative of [`map`]{@link module:Collections.map}, designed for use with objects.
  30766. *
  30767. * Produces a new Object by mapping each value of `obj` through the `iteratee`
  30768. * function. The `iteratee` is called each `value` and `key` from `obj` and a
  30769. * callback for when it has finished processing. Each of these callbacks takes
  30770. * two arguments: an `error`, and the transformed item from `obj`. If `iteratee`
  30771. * passes an error to its callback, the main `callback` (for the `mapValues`
  30772. * function) is immediately called with the error.
  30773. *
  30774. * Note, the order of the keys in the result is not guaranteed. The keys will
  30775. * be roughly in the order they complete, (but this is very engine-specific)
  30776. *
  30777. * @name mapValues
  30778. * @static
  30779. * @memberOf module:Collections
  30780. * @method
  30781. * @category Collection
  30782. * @param {Object} obj - A collection to iterate over.
  30783. * @param {AsyncFunction} iteratee - A function to apply to each value and key
  30784. * in `coll`.
  30785. * The iteratee should complete with the transformed value as its result.
  30786. * Invoked with (value, key, callback).
  30787. * @param {Function} [callback] - A callback which is called when all `iteratee`
  30788. * functions have finished, or an error occurs. `result` is a new object consisting
  30789. * of each key from `obj`, with each transformed value on the right-hand side.
  30790. * Invoked with (err, result).
  30791. * @returns {Promise} a promise, if no callback is passed
  30792. * @example
  30793. *
  30794. * // file1.txt is a file that is 1000 bytes in size
  30795. * // file2.txt is a file that is 2000 bytes in size
  30796. * // file3.txt is a file that is 3000 bytes in size
  30797. * // file4.txt does not exist
  30798. *
  30799. * const fileMap = {
  30800. * f1: 'file1.txt',
  30801. * f2: 'file2.txt',
  30802. * f3: 'file3.txt'
  30803. * };
  30804. *
  30805. * const withMissingFileMap = {
  30806. * f1: 'file1.txt',
  30807. * f2: 'file2.txt',
  30808. * f3: 'file4.txt'
  30809. * };
  30810. *
  30811. * // asynchronous function that returns the file size in bytes
  30812. * function getFileSizeInBytes(file, key, callback) {
  30813. * fs.stat(file, function(err, stat) {
  30814. * if (err) {
  30815. * return callback(err);
  30816. * }
  30817. * callback(null, stat.size);
  30818. * });
  30819. * }
  30820. *
  30821. * // Using callbacks
  30822. * async.mapValues(fileMap, getFileSizeInBytes, function(err, result) {
  30823. * if (err) {
  30824. * console.log(err);
  30825. * } else {
  30826. * console.log(result);
  30827. * // result is now a map of file size in bytes for each file, e.g.
  30828. * // {
  30829. * // f1: 1000,
  30830. * // f2: 2000,
  30831. * // f3: 3000
  30832. * // }
  30833. * }
  30834. * });
  30835. *
  30836. * // Error handling
  30837. * async.mapValues(withMissingFileMap, getFileSizeInBytes, function(err, result) {
  30838. * if (err) {
  30839. * console.log(err);
  30840. * // [ Error: ENOENT: no such file or directory ]
  30841. * } else {
  30842. * console.log(result);
  30843. * }
  30844. * });
  30845. *
  30846. * // Using Promises
  30847. * async.mapValues(fileMap, getFileSizeInBytes)
  30848. * .then( result => {
  30849. * console.log(result);
  30850. * // result is now a map of file size in bytes for each file, e.g.
  30851. * // {
  30852. * // f1: 1000,
  30853. * // f2: 2000,
  30854. * // f3: 3000
  30855. * // }
  30856. * }).catch (err => {
  30857. * console.log(err);
  30858. * });
  30859. *
  30860. * // Error Handling
  30861. * async.mapValues(withMissingFileMap, getFileSizeInBytes)
  30862. * .then( result => {
  30863. * console.log(result);
  30864. * }).catch (err => {
  30865. * console.log(err);
  30866. * // [ Error: ENOENT: no such file or directory ]
  30867. * });
  30868. *
  30869. * // Using async/await
  30870. * async () => {
  30871. * try {
  30872. * let result = await async.mapValues(fileMap, getFileSizeInBytes);
  30873. * console.log(result);
  30874. * // result is now a map of file size in bytes for each file, e.g.
  30875. * // {
  30876. * // f1: 1000,
  30877. * // f2: 2000,
  30878. * // f3: 3000
  30879. * // }
  30880. * }
  30881. * catch (err) {
  30882. * console.log(err);
  30883. * }
  30884. * }
  30885. *
  30886. * // Error Handling
  30887. * async () => {
  30888. * try {
  30889. * let result = await async.mapValues(withMissingFileMap, getFileSizeInBytes);
  30890. * console.log(result);
  30891. * }
  30892. * catch (err) {
  30893. * console.log(err);
  30894. * // [ Error: ENOENT: no such file or directory ]
  30895. * }
  30896. * }
  30897. *
  30898. */
  30899. function mapValues(obj, iteratee, callback) {
  30900. return mapValuesLimit$1(obj, Infinity, iteratee, callback)
  30901. }
  30902. /**
  30903. * The same as [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time.
  30904. *
  30905. * @name mapValuesSeries
  30906. * @static
  30907. * @memberOf module:Collections
  30908. * @method
  30909. * @see [async.mapValues]{@link module:Collections.mapValues}
  30910. * @category Collection
  30911. * @param {Object} obj - A collection to iterate over.
  30912. * @param {AsyncFunction} iteratee - A function to apply to each value and key
  30913. * in `coll`.
  30914. * The iteratee should complete with the transformed value as its result.
  30915. * Invoked with (value, key, callback).
  30916. * @param {Function} [callback] - A callback which is called when all `iteratee`
  30917. * functions have finished, or an error occurs. `result` is a new object consisting
  30918. * of each key from `obj`, with each transformed value on the right-hand side.
  30919. * Invoked with (err, result).
  30920. * @returns {Promise} a promise, if no callback is passed
  30921. */
  30922. function mapValuesSeries(obj, iteratee, callback) {
  30923. return mapValuesLimit$1(obj, 1, iteratee, callback)
  30924. }
  30925. /**
  30926. * Caches the results of an async function. When creating a hash to store
  30927. * function results against, the callback is omitted from the hash and an
  30928. * optional hash function can be used.
  30929. *
  30930. * **Note: if the async function errs, the result will not be cached and
  30931. * subsequent calls will call the wrapped function.**
  30932. *
  30933. * If no hash function is specified, the first argument is used as a hash key,
  30934. * which may work reasonably if it is a string or a data type that converts to a
  30935. * distinct string. Note that objects and arrays will not behave reasonably.
  30936. * Neither will cases where the other arguments are significant. In such cases,
  30937. * specify your own hash function.
  30938. *
  30939. * The cache of results is exposed as the `memo` property of the function
  30940. * returned by `memoize`.
  30941. *
  30942. * @name memoize
  30943. * @static
  30944. * @memberOf module:Utils
  30945. * @method
  30946. * @category Util
  30947. * @param {AsyncFunction} fn - The async function to proxy and cache results from.
  30948. * @param {Function} hasher - An optional function for generating a custom hash
  30949. * for storing results. It has all the arguments applied to it apart from the
  30950. * callback, and must be synchronous.
  30951. * @returns {AsyncFunction} a memoized version of `fn`
  30952. * @example
  30953. *
  30954. * var slow_fn = function(name, callback) {
  30955. * // do something
  30956. * callback(null, result);
  30957. * };
  30958. * var fn = async.memoize(slow_fn);
  30959. *
  30960. * // fn can now be used as if it were slow_fn
  30961. * fn('some name', function() {
  30962. * // callback
  30963. * });
  30964. */
  30965. function memoize(fn, hasher = v => v) {
  30966. var memo = Object.create(null);
  30967. var queues = Object.create(null);
  30968. var _fn = wrapAsync(fn);
  30969. var memoized = initialParams((args, callback) => {
  30970. var key = hasher(...args);
  30971. if (key in memo) {
  30972. setImmediate$1(() => callback(null, ...memo[key]));
  30973. } else if (key in queues) {
  30974. queues[key].push(callback);
  30975. } else {
  30976. queues[key] = [callback];
  30977. _fn(...args, (err, ...resultArgs) => {
  30978. // #1465 don't memoize if an error occurred
  30979. if (!err) {
  30980. memo[key] = resultArgs;
  30981. }
  30982. var q = queues[key];
  30983. delete queues[key];
  30984. for (var i = 0, l = q.length; i < l; i++) {
  30985. q[i](err, ...resultArgs);
  30986. }
  30987. });
  30988. }
  30989. });
  30990. memoized.memo = memo;
  30991. memoized.unmemoized = fn;
  30992. return memoized;
  30993. }
  30994. /**
  30995. * Calls `callback` on a later loop around the event loop. In Node.js this just
  30996. * calls `process.nextTick`. In the browser it will use `setImmediate` if
  30997. * available, otherwise `setTimeout(callback, 0)`, which means other higher
  30998. * priority events may precede the execution of `callback`.
  30999. *
  31000. * This is used internally for browser-compatibility purposes.
  31001. *
  31002. * @name nextTick
  31003. * @static
  31004. * @memberOf module:Utils
  31005. * @method
  31006. * @see [async.setImmediate]{@link module:Utils.setImmediate}
  31007. * @category Util
  31008. * @param {Function} callback - The function to call on a later loop around
  31009. * the event loop. Invoked with (args...).
  31010. * @param {...*} args... - any number of additional arguments to pass to the
  31011. * callback on the next tick.
  31012. * @example
  31013. *
  31014. * var call_order = [];
  31015. * async.nextTick(function() {
  31016. * call_order.push('two');
  31017. * // call_order now equals ['one','two']
  31018. * });
  31019. * call_order.push('one');
  31020. *
  31021. * async.setImmediate(function (a, b, c) {
  31022. * // a, b, and c equal 1, 2, and 3
  31023. * }, 1, 2, 3);
  31024. */
  31025. var _defer$1;
  31026. if (hasNextTick) {
  31027. _defer$1 = process.nextTick;
  31028. } else if (hasSetImmediate) {
  31029. _defer$1 = setImmediate;
  31030. } else {
  31031. _defer$1 = fallback;
  31032. }
  31033. var nextTick = wrap(_defer$1);
  31034. var _parallel = awaitify((eachfn, tasks, callback) => {
  31035. var results = isArrayLike(tasks) ? [] : {};
  31036. eachfn(tasks, (task, key, taskCb) => {
  31037. wrapAsync(task)((err, ...result) => {
  31038. if (result.length < 2) {
  31039. [result] = result;
  31040. }
  31041. results[key] = result;
  31042. taskCb(err);
  31043. });
  31044. }, err => callback(err, results));
  31045. }, 3);
  31046. /**
  31047. * Run the `tasks` collection of functions in parallel, without waiting until
  31048. * the previous function has completed. If any of the functions pass an error to
  31049. * its callback, the main `callback` is immediately called with the value of the
  31050. * error. Once the `tasks` have completed, the results are passed to the final
  31051. * `callback` as an array.
  31052. *
  31053. * **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about
  31054. * parallel execution of code. If your tasks do not use any timers or perform
  31055. * any I/O, they will actually be executed in series. Any synchronous setup
  31056. * sections for each task will happen one after the other. JavaScript remains
  31057. * single-threaded.
  31058. *
  31059. * **Hint:** Use [`reflect`]{@link module:Utils.reflect} to continue the
  31060. * execution of other tasks when a task fails.
  31061. *
  31062. * It is also possible to use an object instead of an array. Each property will
  31063. * be run as a function and the results will be passed to the final `callback`
  31064. * as an object instead of an array. This can be a more readable way of handling
  31065. * results from {@link async.parallel}.
  31066. *
  31067. * @name parallel
  31068. * @static
  31069. * @memberOf module:ControlFlow
  31070. * @method
  31071. * @category Control Flow
  31072. * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection of
  31073. * [async functions]{@link AsyncFunction} to run.
  31074. * Each async function can complete with any number of optional `result` values.
  31075. * @param {Function} [callback] - An optional callback to run once all the
  31076. * functions have completed successfully. This function gets a results array
  31077. * (or object) containing all the result arguments passed to the task callbacks.
  31078. * Invoked with (err, results).
  31079. * @returns {Promise} a promise, if a callback is not passed
  31080. *
  31081. * @example
  31082. *
  31083. * //Using Callbacks
  31084. * async.parallel([
  31085. * function(callback) {
  31086. * setTimeout(function() {
  31087. * callback(null, 'one');
  31088. * }, 200);
  31089. * },
  31090. * function(callback) {
  31091. * setTimeout(function() {
  31092. * callback(null, 'two');
  31093. * }, 100);
  31094. * }
  31095. * ], function(err, results) {
  31096. * console.log(results);
  31097. * // results is equal to ['one','two'] even though
  31098. * // the second function had a shorter timeout.
  31099. * });
  31100. *
  31101. * // an example using an object instead of an array
  31102. * async.parallel({
  31103. * one: function(callback) {
  31104. * setTimeout(function() {
  31105. * callback(null, 1);
  31106. * }, 200);
  31107. * },
  31108. * two: function(callback) {
  31109. * setTimeout(function() {
  31110. * callback(null, 2);
  31111. * }, 100);
  31112. * }
  31113. * }, function(err, results) {
  31114. * console.log(results);
  31115. * // results is equal to: { one: 1, two: 2 }
  31116. * });
  31117. *
  31118. * //Using Promises
  31119. * async.parallel([
  31120. * function(callback) {
  31121. * setTimeout(function() {
  31122. * callback(null, 'one');
  31123. * }, 200);
  31124. * },
  31125. * function(callback) {
  31126. * setTimeout(function() {
  31127. * callback(null, 'two');
  31128. * }, 100);
  31129. * }
  31130. * ]).then(results => {
  31131. * console.log(results);
  31132. * // results is equal to ['one','two'] even though
  31133. * // the second function had a shorter timeout.
  31134. * }).catch(err => {
  31135. * console.log(err);
  31136. * });
  31137. *
  31138. * // an example using an object instead of an array
  31139. * async.parallel({
  31140. * one: function(callback) {
  31141. * setTimeout(function() {
  31142. * callback(null, 1);
  31143. * }, 200);
  31144. * },
  31145. * two: function(callback) {
  31146. * setTimeout(function() {
  31147. * callback(null, 2);
  31148. * }, 100);
  31149. * }
  31150. * }).then(results => {
  31151. * console.log(results);
  31152. * // results is equal to: { one: 1, two: 2 }
  31153. * }).catch(err => {
  31154. * console.log(err);
  31155. * });
  31156. *
  31157. * //Using async/await
  31158. * async () => {
  31159. * try {
  31160. * let results = await async.parallel([
  31161. * function(callback) {
  31162. * setTimeout(function() {
  31163. * callback(null, 'one');
  31164. * }, 200);
  31165. * },
  31166. * function(callback) {
  31167. * setTimeout(function() {
  31168. * callback(null, 'two');
  31169. * }, 100);
  31170. * }
  31171. * ]);
  31172. * console.log(results);
  31173. * // results is equal to ['one','two'] even though
  31174. * // the second function had a shorter timeout.
  31175. * }
  31176. * catch (err) {
  31177. * console.log(err);
  31178. * }
  31179. * }
  31180. *
  31181. * // an example using an object instead of an array
  31182. * async () => {
  31183. * try {
  31184. * let results = await async.parallel({
  31185. * one: function(callback) {
  31186. * setTimeout(function() {
  31187. * callback(null, 1);
  31188. * }, 200);
  31189. * },
  31190. * two: function(callback) {
  31191. * setTimeout(function() {
  31192. * callback(null, 2);
  31193. * }, 100);
  31194. * }
  31195. * });
  31196. * console.log(results);
  31197. * // results is equal to: { one: 1, two: 2 }
  31198. * }
  31199. * catch (err) {
  31200. * console.log(err);
  31201. * }
  31202. * }
  31203. *
  31204. */
  31205. function parallel(tasks, callback) {
  31206. return _parallel(eachOf$1, tasks, callback);
  31207. }
  31208. /**
  31209. * The same as [`parallel`]{@link module:ControlFlow.parallel} but runs a maximum of `limit` async operations at a
  31210. * time.
  31211. *
  31212. * @name parallelLimit
  31213. * @static
  31214. * @memberOf module:ControlFlow
  31215. * @method
  31216. * @see [async.parallel]{@link module:ControlFlow.parallel}
  31217. * @category Control Flow
  31218. * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection of
  31219. * [async functions]{@link AsyncFunction} to run.
  31220. * Each async function can complete with any number of optional `result` values.
  31221. * @param {number} limit - The maximum number of async operations at a time.
  31222. * @param {Function} [callback] - An optional callback to run once all the
  31223. * functions have completed successfully. This function gets a results array
  31224. * (or object) containing all the result arguments passed to the task callbacks.
  31225. * Invoked with (err, results).
  31226. * @returns {Promise} a promise, if a callback is not passed
  31227. */
  31228. function parallelLimit(tasks, limit, callback) {
  31229. return _parallel(eachOfLimit(limit), tasks, callback);
  31230. }
  31231. /**
  31232. * A queue of tasks for the worker function to complete.
  31233. * @typedef {Iterable} QueueObject
  31234. * @memberOf module:ControlFlow
  31235. * @property {Function} length - a function returning the number of items
  31236. * waiting to be processed. Invoke with `queue.length()`.
  31237. * @property {boolean} started - a boolean indicating whether or not any
  31238. * items have been pushed and processed by the queue.
  31239. * @property {Function} running - a function returning the number of items
  31240. * currently being processed. Invoke with `queue.running()`.
  31241. * @property {Function} workersList - a function returning the array of items
  31242. * currently being processed. Invoke with `queue.workersList()`.
  31243. * @property {Function} idle - a function returning false if there are items
  31244. * waiting or being processed, or true if not. Invoke with `queue.idle()`.
  31245. * @property {number} concurrency - an integer for determining how many `worker`
  31246. * functions should be run in parallel. This property can be changed after a
  31247. * `queue` is created to alter the concurrency on-the-fly.
  31248. * @property {number} payload - an integer that specifies how many items are
  31249. * passed to the worker function at a time. only applies if this is a
  31250. * [cargo]{@link module:ControlFlow.cargo} object
  31251. * @property {AsyncFunction} push - add a new task to the `queue`. Calls `callback`
  31252. * once the `worker` has finished processing the task. Instead of a single task,
  31253. * a `tasks` array can be submitted. The respective callback is used for every
  31254. * task in the list. Invoke with `queue.push(task, [callback])`,
  31255. * @property {AsyncFunction} unshift - add a new task to the front of the `queue`.
  31256. * Invoke with `queue.unshift(task, [callback])`.
  31257. * @property {AsyncFunction} pushAsync - the same as `q.push`, except this returns
  31258. * a promise that rejects if an error occurs.
  31259. * @property {AsyncFunction} unshiftAsync - the same as `q.unshift`, except this returns
  31260. * a promise that rejects if an error occurs.
  31261. * @property {Function} remove - remove items from the queue that match a test
  31262. * function. The test function will be passed an object with a `data` property,
  31263. * and a `priority` property, if this is a
  31264. * [priorityQueue]{@link module:ControlFlow.priorityQueue} object.
  31265. * Invoked with `queue.remove(testFn)`, where `testFn` is of the form
  31266. * `function ({data, priority}) {}` and returns a Boolean.
  31267. * @property {Function} saturated - a function that sets a callback that is
  31268. * called when the number of running workers hits the `concurrency` limit, and
  31269. * further tasks will be queued. If the callback is omitted, `q.saturated()`
  31270. * returns a promise for the next occurrence.
  31271. * @property {Function} unsaturated - a function that sets a callback that is
  31272. * called when the number of running workers is less than the `concurrency` &
  31273. * `buffer` limits, and further tasks will not be queued. If the callback is
  31274. * omitted, `q.unsaturated()` returns a promise for the next occurrence.
  31275. * @property {number} buffer - A minimum threshold buffer in order to say that
  31276. * the `queue` is `unsaturated`.
  31277. * @property {Function} empty - a function that sets a callback that is called
  31278. * when the last item from the `queue` is given to a `worker`. If the callback
  31279. * is omitted, `q.empty()` returns a promise for the next occurrence.
  31280. * @property {Function} drain - a function that sets a callback that is called
  31281. * when the last item from the `queue` has returned from the `worker`. If the
  31282. * callback is omitted, `q.drain()` returns a promise for the next occurrence.
  31283. * @property {Function} error - a function that sets a callback that is called
  31284. * when a task errors. Has the signature `function(error, task)`. If the
  31285. * callback is omitted, `error()` returns a promise that rejects on the next
  31286. * error.
  31287. * @property {boolean} paused - a boolean for determining whether the queue is
  31288. * in a paused state.
  31289. * @property {Function} pause - a function that pauses the processing of tasks
  31290. * until `resume()` is called. Invoke with `queue.pause()`.
  31291. * @property {Function} resume - a function that resumes the processing of
  31292. * queued tasks when the queue is paused. Invoke with `queue.resume()`.
  31293. * @property {Function} kill - a function that removes the `drain` callback and
  31294. * empties remaining tasks from the queue forcing it to go idle. No more tasks
  31295. * should be pushed to the queue after calling this function. Invoke with `queue.kill()`.
  31296. *
  31297. * @example
  31298. * const q = async.queue(worker, 2)
  31299. * q.push(item1)
  31300. * q.push(item2)
  31301. * q.push(item3)
  31302. * // queues are iterable, spread into an array to inspect
  31303. * const items = [...q] // [item1, item2, item3]
  31304. * // or use for of
  31305. * for (let item of q) {
  31306. * console.log(item)
  31307. * }
  31308. *
  31309. * q.drain(() => {
  31310. * console.log('all done')
  31311. * })
  31312. * // or
  31313. * await q.drain()
  31314. */
  31315. /**
  31316. * Creates a `queue` object with the specified `concurrency`. Tasks added to the
  31317. * `queue` are processed in parallel (up to the `concurrency` limit). If all
  31318. * `worker`s are in progress, the task is queued until one becomes available.
  31319. * Once a `worker` completes a `task`, that `task`'s callback is called.
  31320. *
  31321. * @name queue
  31322. * @static
  31323. * @memberOf module:ControlFlow
  31324. * @method
  31325. * @category Control Flow
  31326. * @param {AsyncFunction} worker - An async function for processing a queued task.
  31327. * If you want to handle errors from an individual task, pass a callback to
  31328. * `q.push()`. Invoked with (task, callback).
  31329. * @param {number} [concurrency=1] - An `integer` for determining how many
  31330. * `worker` functions should be run in parallel. If omitted, the concurrency
  31331. * defaults to `1`. If the concurrency is `0`, an error is thrown.
  31332. * @returns {module:ControlFlow.QueueObject} A queue object to manage the tasks. Callbacks can be
  31333. * attached as certain properties to listen for specific events during the
  31334. * lifecycle of the queue.
  31335. * @example
  31336. *
  31337. * // create a queue object with concurrency 2
  31338. * var q = async.queue(function(task, callback) {
  31339. * console.log('hello ' + task.name);
  31340. * callback();
  31341. * }, 2);
  31342. *
  31343. * // assign a callback
  31344. * q.drain(function() {
  31345. * console.log('all items have been processed');
  31346. * });
  31347. * // or await the end
  31348. * await q.drain()
  31349. *
  31350. * // assign an error callback
  31351. * q.error(function(err, task) {
  31352. * console.error('task experienced an error');
  31353. * });
  31354. *
  31355. * // add some items to the queue
  31356. * q.push({name: 'foo'}, function(err) {
  31357. * console.log('finished processing foo');
  31358. * });
  31359. * // callback is optional
  31360. * q.push({name: 'bar'});
  31361. *
  31362. * // add some items to the queue (batch-wise)
  31363. * q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) {
  31364. * console.log('finished processing item');
  31365. * });
  31366. *
  31367. * // add some items to the front of the queue
  31368. * q.unshift({name: 'bar'}, function (err) {
  31369. * console.log('finished processing bar');
  31370. * });
  31371. */
  31372. function queue$1 (worker, concurrency) {
  31373. var _worker = wrapAsync(worker);
  31374. return queue((items, cb) => {
  31375. _worker(items[0], cb);
  31376. }, concurrency, 1);
  31377. }
  31378. // Binary min-heap implementation used for priority queue.
  31379. // Implementation is stable, i.e. push time is considered for equal priorities
  31380. class Heap {
  31381. constructor() {
  31382. this.heap = [];
  31383. this.pushCount = Number.MIN_SAFE_INTEGER;
  31384. }
  31385. get length() {
  31386. return this.heap.length;
  31387. }
  31388. empty () {
  31389. this.heap = [];
  31390. return this;
  31391. }
  31392. percUp(index) {
  31393. let p;
  31394. while (index > 0 && smaller(this.heap[index], this.heap[p=parent(index)])) {
  31395. let t = this.heap[index];
  31396. this.heap[index] = this.heap[p];
  31397. this.heap[p] = t;
  31398. index = p;
  31399. }
  31400. }
  31401. percDown(index) {
  31402. let l;
  31403. while ((l=leftChi(index)) < this.heap.length) {
  31404. if (l+1 < this.heap.length && smaller(this.heap[l+1], this.heap[l])) {
  31405. l = l+1;
  31406. }
  31407. if (smaller(this.heap[index], this.heap[l])) {
  31408. break;
  31409. }
  31410. let t = this.heap[index];
  31411. this.heap[index] = this.heap[l];
  31412. this.heap[l] = t;
  31413. index = l;
  31414. }
  31415. }
  31416. push(node) {
  31417. node.pushCount = ++this.pushCount;
  31418. this.heap.push(node);
  31419. this.percUp(this.heap.length-1);
  31420. }
  31421. unshift(node) {
  31422. return this.heap.push(node);
  31423. }
  31424. shift() {
  31425. let [top] = this.heap;
  31426. this.heap[0] = this.heap[this.heap.length-1];
  31427. this.heap.pop();
  31428. this.percDown(0);
  31429. return top;
  31430. }
  31431. toArray() {
  31432. return [...this];
  31433. }
  31434. *[Symbol.iterator] () {
  31435. for (let i = 0; i < this.heap.length; i++) {
  31436. yield this.heap[i].data;
  31437. }
  31438. }
  31439. remove (testFn) {
  31440. let j = 0;
  31441. for (let i = 0; i < this.heap.length; i++) {
  31442. if (!testFn(this.heap[i])) {
  31443. this.heap[j] = this.heap[i];
  31444. j++;
  31445. }
  31446. }
  31447. this.heap.splice(j);
  31448. for (let i = parent(this.heap.length-1); i >= 0; i--) {
  31449. this.percDown(i);
  31450. }
  31451. return this;
  31452. }
  31453. }
  31454. function leftChi(i) {
  31455. return (i<<1)+1;
  31456. }
  31457. function parent(i) {
  31458. return ((i+1)>>1)-1;
  31459. }
  31460. function smaller(x, y) {
  31461. if (x.priority !== y.priority) {
  31462. return x.priority < y.priority;
  31463. }
  31464. else {
  31465. return x.pushCount < y.pushCount;
  31466. }
  31467. }
  31468. /**
  31469. * The same as [async.queue]{@link module:ControlFlow.queue} only tasks are assigned a priority and
  31470. * completed in ascending priority order.
  31471. *
  31472. * @name priorityQueue
  31473. * @static
  31474. * @memberOf module:ControlFlow
  31475. * @method
  31476. * @see [async.queue]{@link module:ControlFlow.queue}
  31477. * @category Control Flow
  31478. * @param {AsyncFunction} worker - An async function for processing a queued task.
  31479. * If you want to handle errors from an individual task, pass a callback to
  31480. * `q.push()`.
  31481. * Invoked with (task, callback).
  31482. * @param {number} concurrency - An `integer` for determining how many `worker`
  31483. * functions should be run in parallel. If omitted, the concurrency defaults to
  31484. * `1`. If the concurrency is `0`, an error is thrown.
  31485. * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are two
  31486. * differences between `queue` and `priorityQueue` objects:
  31487. * * `push(task, priority, [callback])` - `priority` should be a number. If an
  31488. * array of `tasks` is given, all tasks will be assigned the same priority.
  31489. * * The `unshift` method was removed.
  31490. */
  31491. function priorityQueue(worker, concurrency) {
  31492. // Start with a normal queue
  31493. var q = queue$1(worker, concurrency);
  31494. var processingScheduled = false;
  31495. q._tasks = new Heap();
  31496. // Override push to accept second parameter representing priority
  31497. q.push = function(data, priority = 0, callback = () => {}) {
  31498. if (typeof callback !== 'function') {
  31499. throw new Error('task callback must be a function');
  31500. }
  31501. q.started = true;
  31502. if (!Array.isArray(data)) {
  31503. data = [data];
  31504. }
  31505. if (data.length === 0 && q.idle()) {
  31506. // call drain immediately if there are no tasks
  31507. return setImmediate$1(() => q.drain());
  31508. }
  31509. for (var i = 0, l = data.length; i < l; i++) {
  31510. var item = {
  31511. data: data[i],
  31512. priority,
  31513. callback
  31514. };
  31515. q._tasks.push(item);
  31516. }
  31517. if (!processingScheduled) {
  31518. processingScheduled = true;
  31519. setImmediate$1(() => {
  31520. processingScheduled = false;
  31521. q.process();
  31522. });
  31523. }
  31524. };
  31525. // Remove unshift function
  31526. delete q.unshift;
  31527. return q;
  31528. }
  31529. /**
  31530. * Runs the `tasks` array of functions in parallel, without waiting until the
  31531. * previous function has completed. Once any of the `tasks` complete or pass an
  31532. * error to its callback, the main `callback` is immediately called. It's
  31533. * equivalent to `Promise.race()`.
  31534. *
  31535. * @name race
  31536. * @static
  31537. * @memberOf module:ControlFlow
  31538. * @method
  31539. * @category Control Flow
  31540. * @param {Array} tasks - An array containing [async functions]{@link AsyncFunction}
  31541. * to run. Each function can complete with an optional `result` value.
  31542. * @param {Function} callback - A callback to run once any of the functions have
  31543. * completed. This function gets an error or result from the first function that
  31544. * completed. Invoked with (err, result).
  31545. * @returns undefined
  31546. * @example
  31547. *
  31548. * async.race([
  31549. * function(callback) {
  31550. * setTimeout(function() {
  31551. * callback(null, 'one');
  31552. * }, 200);
  31553. * },
  31554. * function(callback) {
  31555. * setTimeout(function() {
  31556. * callback(null, 'two');
  31557. * }, 100);
  31558. * }
  31559. * ],
  31560. * // main callback
  31561. * function(err, result) {
  31562. * // the result will be equal to 'two' as it finishes earlier
  31563. * });
  31564. */
  31565. function race(tasks, callback) {
  31566. callback = once(callback);
  31567. if (!Array.isArray(tasks)) return callback(new TypeError('First argument to race must be an array of functions'));
  31568. if (!tasks.length) return callback();
  31569. for (var i = 0, l = tasks.length; i < l; i++) {
  31570. wrapAsync(tasks[i])(callback);
  31571. }
  31572. }
  31573. var race$1 = awaitify(race, 2);
  31574. /**
  31575. * Same as [`reduce`]{@link module:Collections.reduce}, only operates on `array` in reverse order.
  31576. *
  31577. * @name reduceRight
  31578. * @static
  31579. * @memberOf module:Collections
  31580. * @method
  31581. * @see [async.reduce]{@link module:Collections.reduce}
  31582. * @alias foldr
  31583. * @category Collection
  31584. * @param {Array} array - A collection to iterate over.
  31585. * @param {*} memo - The initial state of the reduction.
  31586. * @param {AsyncFunction} iteratee - A function applied to each item in the
  31587. * array to produce the next step in the reduction.
  31588. * The `iteratee` should complete with the next state of the reduction.
  31589. * If the iteratee completes with an error, the reduction is stopped and the
  31590. * main `callback` is immediately called with the error.
  31591. * Invoked with (memo, item, callback).
  31592. * @param {Function} [callback] - A callback which is called after all the
  31593. * `iteratee` functions have finished. Result is the reduced value. Invoked with
  31594. * (err, result).
  31595. * @returns {Promise} a promise, if no callback is passed
  31596. */
  31597. function reduceRight (array, memo, iteratee, callback) {
  31598. var reversed = [...array].reverse();
  31599. return reduce$1(reversed, memo, iteratee, callback);
  31600. }
  31601. /**
  31602. * Wraps the async function in another function that always completes with a
  31603. * result object, even when it errors.
  31604. *
  31605. * The result object has either the property `error` or `value`.
  31606. *
  31607. * @name reflect
  31608. * @static
  31609. * @memberOf module:Utils
  31610. * @method
  31611. * @category Util
  31612. * @param {AsyncFunction} fn - The async function you want to wrap
  31613. * @returns {Function} - A function that always passes null to it's callback as
  31614. * the error. The second argument to the callback will be an `object` with
  31615. * either an `error` or a `value` property.
  31616. * @example
  31617. *
  31618. * async.parallel([
  31619. * async.reflect(function(callback) {
  31620. * // do some stuff ...
  31621. * callback(null, 'one');
  31622. * }),
  31623. * async.reflect(function(callback) {
  31624. * // do some more stuff but error ...
  31625. * callback('bad stuff happened');
  31626. * }),
  31627. * async.reflect(function(callback) {
  31628. * // do some more stuff ...
  31629. * callback(null, 'two');
  31630. * })
  31631. * ],
  31632. * // optional callback
  31633. * function(err, results) {
  31634. * // values
  31635. * // results[0].value = 'one'
  31636. * // results[1].error = 'bad stuff happened'
  31637. * // results[2].value = 'two'
  31638. * });
  31639. */
  31640. function reflect(fn) {
  31641. var _fn = wrapAsync(fn);
  31642. return initialParams(function reflectOn(args, reflectCallback) {
  31643. args.push((error, ...cbArgs) => {
  31644. let retVal = {};
  31645. if (error) {
  31646. retVal.error = error;
  31647. }
  31648. if (cbArgs.length > 0){
  31649. var value = cbArgs;
  31650. if (cbArgs.length <= 1) {
  31651. [value] = cbArgs;
  31652. }
  31653. retVal.value = value;
  31654. }
  31655. reflectCallback(null, retVal);
  31656. });
  31657. return _fn.apply(this, args);
  31658. });
  31659. }
  31660. /**
  31661. * A helper function that wraps an array or an object of functions with `reflect`.
  31662. *
  31663. * @name reflectAll
  31664. * @static
  31665. * @memberOf module:Utils
  31666. * @method
  31667. * @see [async.reflect]{@link module:Utils.reflect}
  31668. * @category Util
  31669. * @param {Array|Object|Iterable} tasks - The collection of
  31670. * [async functions]{@link AsyncFunction} to wrap in `async.reflect`.
  31671. * @returns {Array} Returns an array of async functions, each wrapped in
  31672. * `async.reflect`
  31673. * @example
  31674. *
  31675. * let tasks = [
  31676. * function(callback) {
  31677. * setTimeout(function() {
  31678. * callback(null, 'one');
  31679. * }, 200);
  31680. * },
  31681. * function(callback) {
  31682. * // do some more stuff but error ...
  31683. * callback(new Error('bad stuff happened'));
  31684. * },
  31685. * function(callback) {
  31686. * setTimeout(function() {
  31687. * callback(null, 'two');
  31688. * }, 100);
  31689. * }
  31690. * ];
  31691. *
  31692. * async.parallel(async.reflectAll(tasks),
  31693. * // optional callback
  31694. * function(err, results) {
  31695. * // values
  31696. * // results[0].value = 'one'
  31697. * // results[1].error = Error('bad stuff happened')
  31698. * // results[2].value = 'two'
  31699. * });
  31700. *
  31701. * // an example using an object instead of an array
  31702. * let tasks = {
  31703. * one: function(callback) {
  31704. * setTimeout(function() {
  31705. * callback(null, 'one');
  31706. * }, 200);
  31707. * },
  31708. * two: function(callback) {
  31709. * callback('two');
  31710. * },
  31711. * three: function(callback) {
  31712. * setTimeout(function() {
  31713. * callback(null, 'three');
  31714. * }, 100);
  31715. * }
  31716. * };
  31717. *
  31718. * async.parallel(async.reflectAll(tasks),
  31719. * // optional callback
  31720. * function(err, results) {
  31721. * // values
  31722. * // results.one.value = 'one'
  31723. * // results.two.error = 'two'
  31724. * // results.three.value = 'three'
  31725. * });
  31726. */
  31727. function reflectAll(tasks) {
  31728. var results;
  31729. if (Array.isArray(tasks)) {
  31730. results = tasks.map(reflect);
  31731. } else {
  31732. results = {};
  31733. Object.keys(tasks).forEach(key => {
  31734. results[key] = reflect.call(this, tasks[key]);
  31735. });
  31736. }
  31737. return results;
  31738. }
  31739. function reject(eachfn, arr, _iteratee, callback) {
  31740. const iteratee = wrapAsync(_iteratee);
  31741. return _filter(eachfn, arr, (value, cb) => {
  31742. iteratee(value, (err, v) => {
  31743. cb(err, !v);
  31744. });
  31745. }, callback);
  31746. }
  31747. /**
  31748. * The opposite of [`filter`]{@link module:Collections.filter}. Removes values that pass an `async` truth test.
  31749. *
  31750. * @name reject
  31751. * @static
  31752. * @memberOf module:Collections
  31753. * @method
  31754. * @see [async.filter]{@link module:Collections.filter}
  31755. * @category Collection
  31756. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  31757. * @param {Function} iteratee - An async truth test to apply to each item in
  31758. * `coll`.
  31759. * The should complete with a boolean value as its `result`.
  31760. * Invoked with (item, callback).
  31761. * @param {Function} [callback] - A callback which is called after all the
  31762. * `iteratee` functions have finished. Invoked with (err, results).
  31763. * @returns {Promise} a promise, if no callback is passed
  31764. * @example
  31765. *
  31766. * // dir1 is a directory that contains file1.txt, file2.txt
  31767. * // dir2 is a directory that contains file3.txt, file4.txt
  31768. * // dir3 is a directory that contains file5.txt
  31769. *
  31770. * const fileList = ['dir1/file1.txt','dir2/file3.txt','dir3/file6.txt'];
  31771. *
  31772. * // asynchronous function that checks if a file exists
  31773. * function fileExists(file, callback) {
  31774. * fs.access(file, fs.constants.F_OK, (err) => {
  31775. * callback(null, !err);
  31776. * });
  31777. * }
  31778. *
  31779. * // Using callbacks
  31780. * async.reject(fileList, fileExists, function(err, results) {
  31781. * // [ 'dir3/file6.txt' ]
  31782. * // results now equals an array of the non-existing files
  31783. * });
  31784. *
  31785. * // Using Promises
  31786. * async.reject(fileList, fileExists)
  31787. * .then( results => {
  31788. * console.log(results);
  31789. * // [ 'dir3/file6.txt' ]
  31790. * // results now equals an array of the non-existing files
  31791. * }).catch( err => {
  31792. * console.log(err);
  31793. * });
  31794. *
  31795. * // Using async/await
  31796. * async () => {
  31797. * try {
  31798. * let results = await async.reject(fileList, fileExists);
  31799. * console.log(results);
  31800. * // [ 'dir3/file6.txt' ]
  31801. * // results now equals an array of the non-existing files
  31802. * }
  31803. * catch (err) {
  31804. * console.log(err);
  31805. * }
  31806. * }
  31807. *
  31808. */
  31809. function reject$1 (coll, iteratee, callback) {
  31810. return reject(eachOf$1, coll, iteratee, callback)
  31811. }
  31812. var reject$2 = awaitify(reject$1, 3);
  31813. /**
  31814. * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a
  31815. * time.
  31816. *
  31817. * @name rejectLimit
  31818. * @static
  31819. * @memberOf module:Collections
  31820. * @method
  31821. * @see [async.reject]{@link module:Collections.reject}
  31822. * @category Collection
  31823. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  31824. * @param {number} limit - The maximum number of async operations at a time.
  31825. * @param {Function} iteratee - An async truth test to apply to each item in
  31826. * `coll`.
  31827. * The should complete with a boolean value as its `result`.
  31828. * Invoked with (item, callback).
  31829. * @param {Function} [callback] - A callback which is called after all the
  31830. * `iteratee` functions have finished. Invoked with (err, results).
  31831. * @returns {Promise} a promise, if no callback is passed
  31832. */
  31833. function rejectLimit (coll, limit, iteratee, callback) {
  31834. return reject(eachOfLimit(limit), coll, iteratee, callback)
  31835. }
  31836. var rejectLimit$1 = awaitify(rejectLimit, 4);
  31837. /**
  31838. * The same as [`reject`]{@link module:Collections.reject} but runs only a single async operation at a time.
  31839. *
  31840. * @name rejectSeries
  31841. * @static
  31842. * @memberOf module:Collections
  31843. * @method
  31844. * @see [async.reject]{@link module:Collections.reject}
  31845. * @category Collection
  31846. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  31847. * @param {Function} iteratee - An async truth test to apply to each item in
  31848. * `coll`.
  31849. * The should complete with a boolean value as its `result`.
  31850. * Invoked with (item, callback).
  31851. * @param {Function} [callback] - A callback which is called after all the
  31852. * `iteratee` functions have finished. Invoked with (err, results).
  31853. * @returns {Promise} a promise, if no callback is passed
  31854. */
  31855. function rejectSeries (coll, iteratee, callback) {
  31856. return reject(eachOfSeries$1, coll, iteratee, callback)
  31857. }
  31858. var rejectSeries$1 = awaitify(rejectSeries, 3);
  31859. function constant$1(value) {
  31860. return function () {
  31861. return value;
  31862. }
  31863. }
  31864. /**
  31865. * Attempts to get a successful response from `task` no more than `times` times
  31866. * before returning an error. If the task is successful, the `callback` will be
  31867. * passed the result of the successful task. If all attempts fail, the callback
  31868. * will be passed the error and result (if any) of the final attempt.
  31869. *
  31870. * @name retry
  31871. * @static
  31872. * @memberOf module:ControlFlow
  31873. * @method
  31874. * @category Control Flow
  31875. * @see [async.retryable]{@link module:ControlFlow.retryable}
  31876. * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - Can be either an
  31877. * object with `times` and `interval` or a number.
  31878. * * `times` - The number of attempts to make before giving up. The default
  31879. * is `5`.
  31880. * * `interval` - The time to wait between retries, in milliseconds. The
  31881. * default is `0`. The interval may also be specified as a function of the
  31882. * retry count (see example).
  31883. * * `errorFilter` - An optional synchronous function that is invoked on
  31884. * erroneous result. If it returns `true` the retry attempts will continue;
  31885. * if the function returns `false` the retry flow is aborted with the current
  31886. * attempt's error and result being returned to the final callback.
  31887. * Invoked with (err).
  31888. * * If `opts` is a number, the number specifies the number of times to retry,
  31889. * with the default interval of `0`.
  31890. * @param {AsyncFunction} task - An async function to retry.
  31891. * Invoked with (callback).
  31892. * @param {Function} [callback] - An optional callback which is called when the
  31893. * task has succeeded, or after the final failed attempt. It receives the `err`
  31894. * and `result` arguments of the last attempt at completing the `task`. Invoked
  31895. * with (err, results).
  31896. * @returns {Promise} a promise if no callback provided
  31897. *
  31898. * @example
  31899. *
  31900. * // The `retry` function can be used as a stand-alone control flow by passing
  31901. * // a callback, as shown below:
  31902. *
  31903. * // try calling apiMethod 3 times
  31904. * async.retry(3, apiMethod, function(err, result) {
  31905. * // do something with the result
  31906. * });
  31907. *
  31908. * // try calling apiMethod 3 times, waiting 200 ms between each retry
  31909. * async.retry({times: 3, interval: 200}, apiMethod, function(err, result) {
  31910. * // do something with the result
  31911. * });
  31912. *
  31913. * // try calling apiMethod 10 times with exponential backoff
  31914. * // (i.e. intervals of 100, 200, 400, 800, 1600, ... milliseconds)
  31915. * async.retry({
  31916. * times: 10,
  31917. * interval: function(retryCount) {
  31918. * return 50 * Math.pow(2, retryCount);
  31919. * }
  31920. * }, apiMethod, function(err, result) {
  31921. * // do something with the result
  31922. * });
  31923. *
  31924. * // try calling apiMethod the default 5 times no delay between each retry
  31925. * async.retry(apiMethod, function(err, result) {
  31926. * // do something with the result
  31927. * });
  31928. *
  31929. * // try calling apiMethod only when error condition satisfies, all other
  31930. * // errors will abort the retry control flow and return to final callback
  31931. * async.retry({
  31932. * errorFilter: function(err) {
  31933. * return err.message === 'Temporary error'; // only retry on a specific error
  31934. * }
  31935. * }, apiMethod, function(err, result) {
  31936. * // do something with the result
  31937. * });
  31938. *
  31939. * // to retry individual methods that are not as reliable within other
  31940. * // control flow functions, use the `retryable` wrapper:
  31941. * async.auto({
  31942. * users: api.getUsers.bind(api),
  31943. * payments: async.retryable(3, api.getPayments.bind(api))
  31944. * }, function(err, results) {
  31945. * // do something with the results
  31946. * });
  31947. *
  31948. */
  31949. const DEFAULT_TIMES = 5;
  31950. const DEFAULT_INTERVAL = 0;
  31951. function retry(opts, task, callback) {
  31952. var options = {
  31953. times: DEFAULT_TIMES,
  31954. intervalFunc: constant$1(DEFAULT_INTERVAL)
  31955. };
  31956. if (arguments.length < 3 && typeof opts === 'function') {
  31957. callback = task || promiseCallback();
  31958. task = opts;
  31959. } else {
  31960. parseTimes(options, opts);
  31961. callback = callback || promiseCallback();
  31962. }
  31963. if (typeof task !== 'function') {
  31964. throw new Error("Invalid arguments for async.retry");
  31965. }
  31966. var _task = wrapAsync(task);
  31967. var attempt = 1;
  31968. function retryAttempt() {
  31969. _task((err, ...args) => {
  31970. if (err === false) return
  31971. if (err && attempt++ < options.times &&
  31972. (typeof options.errorFilter != 'function' ||
  31973. options.errorFilter(err))) {
  31974. setTimeout(retryAttempt, options.intervalFunc(attempt - 1));
  31975. } else {
  31976. callback(err, ...args);
  31977. }
  31978. });
  31979. }
  31980. retryAttempt();
  31981. return callback[PROMISE_SYMBOL]
  31982. }
  31983. function parseTimes(acc, t) {
  31984. if (typeof t === 'object') {
  31985. acc.times = +t.times || DEFAULT_TIMES;
  31986. acc.intervalFunc = typeof t.interval === 'function' ?
  31987. t.interval :
  31988. constant$1(+t.interval || DEFAULT_INTERVAL);
  31989. acc.errorFilter = t.errorFilter;
  31990. } else if (typeof t === 'number' || typeof t === 'string') {
  31991. acc.times = +t || DEFAULT_TIMES;
  31992. } else {
  31993. throw new Error("Invalid arguments for async.retry");
  31994. }
  31995. }
  31996. /**
  31997. * A close relative of [`retry`]{@link module:ControlFlow.retry}. This method
  31998. * wraps a task and makes it retryable, rather than immediately calling it
  31999. * with retries.
  32000. *
  32001. * @name retryable
  32002. * @static
  32003. * @memberOf module:ControlFlow
  32004. * @method
  32005. * @see [async.retry]{@link module:ControlFlow.retry}
  32006. * @category Control Flow
  32007. * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - optional
  32008. * options, exactly the same as from `retry`, except for a `opts.arity` that
  32009. * is the arity of the `task` function, defaulting to `task.length`
  32010. * @param {AsyncFunction} task - the asynchronous function to wrap.
  32011. * This function will be passed any arguments passed to the returned wrapper.
  32012. * Invoked with (...args, callback).
  32013. * @returns {AsyncFunction} The wrapped function, which when invoked, will
  32014. * retry on an error, based on the parameters specified in `opts`.
  32015. * This function will accept the same parameters as `task`.
  32016. * @example
  32017. *
  32018. * async.auto({
  32019. * dep1: async.retryable(3, getFromFlakyService),
  32020. * process: ["dep1", async.retryable(3, function (results, cb) {
  32021. * maybeProcessData(results.dep1, cb);
  32022. * })]
  32023. * }, callback);
  32024. */
  32025. function retryable (opts, task) {
  32026. if (!task) {
  32027. task = opts;
  32028. opts = null;
  32029. }
  32030. let arity = (opts && opts.arity) || task.length;
  32031. if (isAsync(task)) {
  32032. arity += 1;
  32033. }
  32034. var _task = wrapAsync(task);
  32035. return initialParams((args, callback) => {
  32036. if (args.length < arity - 1 || callback == null) {
  32037. args.push(callback);
  32038. callback = promiseCallback();
  32039. }
  32040. function taskFn(cb) {
  32041. _task(...args, cb);
  32042. }
  32043. if (opts) retry(opts, taskFn, callback);
  32044. else retry(taskFn, callback);
  32045. return callback[PROMISE_SYMBOL]
  32046. });
  32047. }
  32048. /**
  32049. * Run the functions in the `tasks` collection in series, each one running once
  32050. * the previous function has completed. If any functions in the series pass an
  32051. * error to its callback, no more functions are run, and `callback` is
  32052. * immediately called with the value of the error. Otherwise, `callback`
  32053. * receives an array of results when `tasks` have completed.
  32054. *
  32055. * It is also possible to use an object instead of an array. Each property will
  32056. * be run as a function, and the results will be passed to the final `callback`
  32057. * as an object instead of an array. This can be a more readable way of handling
  32058. * results from {@link async.series}.
  32059. *
  32060. * **Note** that while many implementations preserve the order of object
  32061. * properties, the [ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6)
  32062. * explicitly states that
  32063. *
  32064. * > The mechanics and order of enumerating the properties is not specified.
  32065. *
  32066. * So if you rely on the order in which your series of functions are executed,
  32067. * and want this to work on all platforms, consider using an array.
  32068. *
  32069. * @name series
  32070. * @static
  32071. * @memberOf module:ControlFlow
  32072. * @method
  32073. * @category Control Flow
  32074. * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection containing
  32075. * [async functions]{@link AsyncFunction} to run in series.
  32076. * Each function can complete with any number of optional `result` values.
  32077. * @param {Function} [callback] - An optional callback to run once all the
  32078. * functions have completed. This function gets a results array (or object)
  32079. * containing all the result arguments passed to the `task` callbacks. Invoked
  32080. * with (err, result).
  32081. * @return {Promise} a promise, if no callback is passed
  32082. * @example
  32083. *
  32084. * //Using Callbacks
  32085. * async.series([
  32086. * function(callback) {
  32087. * setTimeout(function() {
  32088. * // do some async task
  32089. * callback(null, 'one');
  32090. * }, 200);
  32091. * },
  32092. * function(callback) {
  32093. * setTimeout(function() {
  32094. * // then do another async task
  32095. * callback(null, 'two');
  32096. * }, 100);
  32097. * }
  32098. * ], function(err, results) {
  32099. * console.log(results);
  32100. * // results is equal to ['one','two']
  32101. * });
  32102. *
  32103. * // an example using objects instead of arrays
  32104. * async.series({
  32105. * one: function(callback) {
  32106. * setTimeout(function() {
  32107. * // do some async task
  32108. * callback(null, 1);
  32109. * }, 200);
  32110. * },
  32111. * two: function(callback) {
  32112. * setTimeout(function() {
  32113. * // then do another async task
  32114. * callback(null, 2);
  32115. * }, 100);
  32116. * }
  32117. * }, function(err, results) {
  32118. * console.log(results);
  32119. * // results is equal to: { one: 1, two: 2 }
  32120. * });
  32121. *
  32122. * //Using Promises
  32123. * async.series([
  32124. * function(callback) {
  32125. * setTimeout(function() {
  32126. * callback(null, 'one');
  32127. * }, 200);
  32128. * },
  32129. * function(callback) {
  32130. * setTimeout(function() {
  32131. * callback(null, 'two');
  32132. * }, 100);
  32133. * }
  32134. * ]).then(results => {
  32135. * console.log(results);
  32136. * // results is equal to ['one','two']
  32137. * }).catch(err => {
  32138. * console.log(err);
  32139. * });
  32140. *
  32141. * // an example using an object instead of an array
  32142. * async.series({
  32143. * one: function(callback) {
  32144. * setTimeout(function() {
  32145. * // do some async task
  32146. * callback(null, 1);
  32147. * }, 200);
  32148. * },
  32149. * two: function(callback) {
  32150. * setTimeout(function() {
  32151. * // then do another async task
  32152. * callback(null, 2);
  32153. * }, 100);
  32154. * }
  32155. * }).then(results => {
  32156. * console.log(results);
  32157. * // results is equal to: { one: 1, two: 2 }
  32158. * }).catch(err => {
  32159. * console.log(err);
  32160. * });
  32161. *
  32162. * //Using async/await
  32163. * async () => {
  32164. * try {
  32165. * let results = await async.series([
  32166. * function(callback) {
  32167. * setTimeout(function() {
  32168. * // do some async task
  32169. * callback(null, 'one');
  32170. * }, 200);
  32171. * },
  32172. * function(callback) {
  32173. * setTimeout(function() {
  32174. * // then do another async task
  32175. * callback(null, 'two');
  32176. * }, 100);
  32177. * }
  32178. * ]);
  32179. * console.log(results);
  32180. * // results is equal to ['one','two']
  32181. * }
  32182. * catch (err) {
  32183. * console.log(err);
  32184. * }
  32185. * }
  32186. *
  32187. * // an example using an object instead of an array
  32188. * async () => {
  32189. * try {
  32190. * let results = await async.parallel({
  32191. * one: function(callback) {
  32192. * setTimeout(function() {
  32193. * // do some async task
  32194. * callback(null, 1);
  32195. * }, 200);
  32196. * },
  32197. * two: function(callback) {
  32198. * setTimeout(function() {
  32199. * // then do another async task
  32200. * callback(null, 2);
  32201. * }, 100);
  32202. * }
  32203. * });
  32204. * console.log(results);
  32205. * // results is equal to: { one: 1, two: 2 }
  32206. * }
  32207. * catch (err) {
  32208. * console.log(err);
  32209. * }
  32210. * }
  32211. *
  32212. */
  32213. function series(tasks, callback) {
  32214. return _parallel(eachOfSeries$1, tasks, callback);
  32215. }
  32216. /**
  32217. * Returns `true` if at least one element in the `coll` satisfies an async test.
  32218. * If any iteratee call returns `true`, the main `callback` is immediately
  32219. * called.
  32220. *
  32221. * @name some
  32222. * @static
  32223. * @memberOf module:Collections
  32224. * @method
  32225. * @alias any
  32226. * @category Collection
  32227. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  32228. * @param {AsyncFunction} iteratee - An async truth test to apply to each item
  32229. * in the collections in parallel.
  32230. * The iteratee should complete with a boolean `result` value.
  32231. * Invoked with (item, callback).
  32232. * @param {Function} [callback] - A callback which is called as soon as any
  32233. * iteratee returns `true`, or after all the iteratee functions have finished.
  32234. * Result will be either `true` or `false` depending on the values of the async
  32235. * tests. Invoked with (err, result).
  32236. * @returns {Promise} a promise, if no callback provided
  32237. * @example
  32238. *
  32239. * // dir1 is a directory that contains file1.txt, file2.txt
  32240. * // dir2 is a directory that contains file3.txt, file4.txt
  32241. * // dir3 is a directory that contains file5.txt
  32242. * // dir4 does not exist
  32243. *
  32244. * // asynchronous function that checks if a file exists
  32245. * function fileExists(file, callback) {
  32246. * fs.access(file, fs.constants.F_OK, (err) => {
  32247. * callback(null, !err);
  32248. * });
  32249. * }
  32250. *
  32251. * // Using callbacks
  32252. * async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists,
  32253. * function(err, result) {
  32254. * console.log(result);
  32255. * // true
  32256. * // result is true since some file in the list exists
  32257. * }
  32258. *);
  32259. *
  32260. * async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists,
  32261. * function(err, result) {
  32262. * console.log(result);
  32263. * // false
  32264. * // result is false since none of the files exists
  32265. * }
  32266. *);
  32267. *
  32268. * // Using Promises
  32269. * async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists)
  32270. * .then( result => {
  32271. * console.log(result);
  32272. * // true
  32273. * // result is true since some file in the list exists
  32274. * }).catch( err => {
  32275. * console.log(err);
  32276. * });
  32277. *
  32278. * async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists)
  32279. * .then( result => {
  32280. * console.log(result);
  32281. * // false
  32282. * // result is false since none of the files exists
  32283. * }).catch( err => {
  32284. * console.log(err);
  32285. * });
  32286. *
  32287. * // Using async/await
  32288. * async () => {
  32289. * try {
  32290. * let result = await async.some(['dir1/missing.txt','dir2/missing.txt','dir3/file5.txt'], fileExists);
  32291. * console.log(result);
  32292. * // true
  32293. * // result is true since some file in the list exists
  32294. * }
  32295. * catch (err) {
  32296. * console.log(err);
  32297. * }
  32298. * }
  32299. *
  32300. * async () => {
  32301. * try {
  32302. * let result = await async.some(['dir1/missing.txt','dir2/missing.txt','dir4/missing.txt'], fileExists);
  32303. * console.log(result);
  32304. * // false
  32305. * // result is false since none of the files exists
  32306. * }
  32307. * catch (err) {
  32308. * console.log(err);
  32309. * }
  32310. * }
  32311. *
  32312. */
  32313. function some(coll, iteratee, callback) {
  32314. return _createTester(Boolean, res => res)(eachOf$1, coll, iteratee, callback)
  32315. }
  32316. var some$1 = awaitify(some, 3);
  32317. /**
  32318. * The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time.
  32319. *
  32320. * @name someLimit
  32321. * @static
  32322. * @memberOf module:Collections
  32323. * @method
  32324. * @see [async.some]{@link module:Collections.some}
  32325. * @alias anyLimit
  32326. * @category Collection
  32327. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  32328. * @param {number} limit - The maximum number of async operations at a time.
  32329. * @param {AsyncFunction} iteratee - An async truth test to apply to each item
  32330. * in the collections in parallel.
  32331. * The iteratee should complete with a boolean `result` value.
  32332. * Invoked with (item, callback).
  32333. * @param {Function} [callback] - A callback which is called as soon as any
  32334. * iteratee returns `true`, or after all the iteratee functions have finished.
  32335. * Result will be either `true` or `false` depending on the values of the async
  32336. * tests. Invoked with (err, result).
  32337. * @returns {Promise} a promise, if no callback provided
  32338. */
  32339. function someLimit(coll, limit, iteratee, callback) {
  32340. return _createTester(Boolean, res => res)(eachOfLimit(limit), coll, iteratee, callback)
  32341. }
  32342. var someLimit$1 = awaitify(someLimit, 4);
  32343. /**
  32344. * The same as [`some`]{@link module:Collections.some} but runs only a single async operation at a time.
  32345. *
  32346. * @name someSeries
  32347. * @static
  32348. * @memberOf module:Collections
  32349. * @method
  32350. * @see [async.some]{@link module:Collections.some}
  32351. * @alias anySeries
  32352. * @category Collection
  32353. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  32354. * @param {AsyncFunction} iteratee - An async truth test to apply to each item
  32355. * in the collections in series.
  32356. * The iteratee should complete with a boolean `result` value.
  32357. * Invoked with (item, callback).
  32358. * @param {Function} [callback] - A callback which is called as soon as any
  32359. * iteratee returns `true`, or after all the iteratee functions have finished.
  32360. * Result will be either `true` or `false` depending on the values of the async
  32361. * tests. Invoked with (err, result).
  32362. * @returns {Promise} a promise, if no callback provided
  32363. */
  32364. function someSeries(coll, iteratee, callback) {
  32365. return _createTester(Boolean, res => res)(eachOfSeries$1, coll, iteratee, callback)
  32366. }
  32367. var someSeries$1 = awaitify(someSeries, 3);
  32368. /**
  32369. * Sorts a list by the results of running each `coll` value through an async
  32370. * `iteratee`.
  32371. *
  32372. * @name sortBy
  32373. * @static
  32374. * @memberOf module:Collections
  32375. * @method
  32376. * @category Collection
  32377. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  32378. * @param {AsyncFunction} iteratee - An async function to apply to each item in
  32379. * `coll`.
  32380. * The iteratee should complete with a value to use as the sort criteria as
  32381. * its `result`.
  32382. * Invoked with (item, callback).
  32383. * @param {Function} callback - A callback which is called after all the
  32384. * `iteratee` functions have finished, or an error occurs. Results is the items
  32385. * from the original `coll` sorted by the values returned by the `iteratee`
  32386. * calls. Invoked with (err, results).
  32387. * @returns {Promise} a promise, if no callback passed
  32388. * @example
  32389. *
  32390. * // bigfile.txt is a file that is 251100 bytes in size
  32391. * // mediumfile.txt is a file that is 11000 bytes in size
  32392. * // smallfile.txt is a file that is 121 bytes in size
  32393. *
  32394. * // asynchronous function that returns the file size in bytes
  32395. * function getFileSizeInBytes(file, callback) {
  32396. * fs.stat(file, function(err, stat) {
  32397. * if (err) {
  32398. * return callback(err);
  32399. * }
  32400. * callback(null, stat.size);
  32401. * });
  32402. * }
  32403. *
  32404. * // Using callbacks
  32405. * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], getFileSizeInBytes,
  32406. * function(err, results) {
  32407. * if (err) {
  32408. * console.log(err);
  32409. * } else {
  32410. * console.log(results);
  32411. * // results is now the original array of files sorted by
  32412. * // file size (ascending by default), e.g.
  32413. * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']
  32414. * }
  32415. * }
  32416. * );
  32417. *
  32418. * // By modifying the callback parameter the
  32419. * // sorting order can be influenced:
  32420. *
  32421. * // ascending order
  32422. * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], function(file, callback) {
  32423. * getFileSizeInBytes(file, function(getFileSizeErr, fileSize) {
  32424. * if (getFileSizeErr) return callback(getFileSizeErr);
  32425. * callback(null, fileSize);
  32426. * });
  32427. * }, function(err, results) {
  32428. * if (err) {
  32429. * console.log(err);
  32430. * } else {
  32431. * console.log(results);
  32432. * // results is now the original array of files sorted by
  32433. * // file size (ascending by default), e.g.
  32434. * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']
  32435. * }
  32436. * }
  32437. * );
  32438. *
  32439. * // descending order
  32440. * async.sortBy(['bigfile.txt','mediumfile.txt','smallfile.txt'], function(file, callback) {
  32441. * getFileSizeInBytes(file, function(getFileSizeErr, fileSize) {
  32442. * if (getFileSizeErr) {
  32443. * return callback(getFileSizeErr);
  32444. * }
  32445. * callback(null, fileSize * -1);
  32446. * });
  32447. * }, function(err, results) {
  32448. * if (err) {
  32449. * console.log(err);
  32450. * } else {
  32451. * console.log(results);
  32452. * // results is now the original array of files sorted by
  32453. * // file size (ascending by default), e.g.
  32454. * // [ 'bigfile.txt', 'mediumfile.txt', 'smallfile.txt']
  32455. * }
  32456. * }
  32457. * );
  32458. *
  32459. * // Error handling
  32460. * async.sortBy(['mediumfile.txt','smallfile.txt','missingfile.txt'], getFileSizeInBytes,
  32461. * function(err, results) {
  32462. * if (err) {
  32463. * console.log(err);
  32464. * // [ Error: ENOENT: no such file or directory ]
  32465. * } else {
  32466. * console.log(results);
  32467. * }
  32468. * }
  32469. * );
  32470. *
  32471. * // Using Promises
  32472. * async.sortBy(['mediumfile.txt','smallfile.txt','bigfile.txt'], getFileSizeInBytes)
  32473. * .then( results => {
  32474. * console.log(results);
  32475. * // results is now the original array of files sorted by
  32476. * // file size (ascending by default), e.g.
  32477. * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']
  32478. * }).catch( err => {
  32479. * console.log(err);
  32480. * });
  32481. *
  32482. * // Error handling
  32483. * async.sortBy(['mediumfile.txt','smallfile.txt','missingfile.txt'], getFileSizeInBytes)
  32484. * .then( results => {
  32485. * console.log(results);
  32486. * }).catch( err => {
  32487. * console.log(err);
  32488. * // [ Error: ENOENT: no such file or directory ]
  32489. * });
  32490. *
  32491. * // Using async/await
  32492. * (async () => {
  32493. * try {
  32494. * let results = await async.sortBy(['bigfile.txt','mediumfile.txt','smallfile.txt'], getFileSizeInBytes);
  32495. * console.log(results);
  32496. * // results is now the original array of files sorted by
  32497. * // file size (ascending by default), e.g.
  32498. * // [ 'smallfile.txt', 'mediumfile.txt', 'bigfile.txt']
  32499. * }
  32500. * catch (err) {
  32501. * console.log(err);
  32502. * }
  32503. * })();
  32504. *
  32505. * // Error handling
  32506. * async () => {
  32507. * try {
  32508. * let results = await async.sortBy(['missingfile.txt','mediumfile.txt','smallfile.txt'], getFileSizeInBytes);
  32509. * console.log(results);
  32510. * }
  32511. * catch (err) {
  32512. * console.log(err);
  32513. * // [ Error: ENOENT: no such file or directory ]
  32514. * }
  32515. * }
  32516. *
  32517. */
  32518. function sortBy (coll, iteratee, callback) {
  32519. var _iteratee = wrapAsync(iteratee);
  32520. return map$1(coll, (x, iterCb) => {
  32521. _iteratee(x, (err, criteria) => {
  32522. if (err) return iterCb(err);
  32523. iterCb(err, {value: x, criteria});
  32524. });
  32525. }, (err, results) => {
  32526. if (err) return callback(err);
  32527. callback(null, results.sort(comparator).map(v => v.value));
  32528. });
  32529. function comparator(left, right) {
  32530. var a = left.criteria, b = right.criteria;
  32531. return a < b ? -1 : a > b ? 1 : 0;
  32532. }
  32533. }
  32534. var sortBy$1 = awaitify(sortBy, 3);
  32535. /**
  32536. * Sets a time limit on an asynchronous function. If the function does not call
  32537. * its callback within the specified milliseconds, it will be called with a
  32538. * timeout error. The code property for the error object will be `'ETIMEDOUT'`.
  32539. *
  32540. * @name timeout
  32541. * @static
  32542. * @memberOf module:Utils
  32543. * @method
  32544. * @category Util
  32545. * @param {AsyncFunction} asyncFn - The async function to limit in time.
  32546. * @param {number} milliseconds - The specified time limit.
  32547. * @param {*} [info] - Any variable you want attached (`string`, `object`, etc)
  32548. * to timeout Error for more information..
  32549. * @returns {AsyncFunction} Returns a wrapped function that can be used with any
  32550. * of the control flow functions.
  32551. * Invoke this function with the same parameters as you would `asyncFunc`.
  32552. * @example
  32553. *
  32554. * function myFunction(foo, callback) {
  32555. * doAsyncTask(foo, function(err, data) {
  32556. * // handle errors
  32557. * if (err) return callback(err);
  32558. *
  32559. * // do some stuff ...
  32560. *
  32561. * // return processed data
  32562. * return callback(null, data);
  32563. * });
  32564. * }
  32565. *
  32566. * var wrapped = async.timeout(myFunction, 1000);
  32567. *
  32568. * // call `wrapped` as you would `myFunction`
  32569. * wrapped({ bar: 'bar' }, function(err, data) {
  32570. * // if `myFunction` takes < 1000 ms to execute, `err`
  32571. * // and `data` will have their expected values
  32572. *
  32573. * // else `err` will be an Error with the code 'ETIMEDOUT'
  32574. * });
  32575. */
  32576. function timeout(asyncFn, milliseconds, info) {
  32577. var fn = wrapAsync(asyncFn);
  32578. return initialParams((args, callback) => {
  32579. var timedOut = false;
  32580. var timer;
  32581. function timeoutCallback() {
  32582. var name = asyncFn.name || 'anonymous';
  32583. var error = new Error('Callback function "' + name + '" timed out.');
  32584. error.code = 'ETIMEDOUT';
  32585. if (info) {
  32586. error.info = info;
  32587. }
  32588. timedOut = true;
  32589. callback(error);
  32590. }
  32591. args.push((...cbArgs) => {
  32592. if (!timedOut) {
  32593. callback(...cbArgs);
  32594. clearTimeout(timer);
  32595. }
  32596. });
  32597. // setup timer and call original function
  32598. timer = setTimeout(timeoutCallback, milliseconds);
  32599. fn(...args);
  32600. });
  32601. }
  32602. function range(size) {
  32603. var result = Array(size);
  32604. while (size--) {
  32605. result[size] = size;
  32606. }
  32607. return result;
  32608. }
  32609. /**
  32610. * The same as [times]{@link module:ControlFlow.times} but runs a maximum of `limit` async operations at a
  32611. * time.
  32612. *
  32613. * @name timesLimit
  32614. * @static
  32615. * @memberOf module:ControlFlow
  32616. * @method
  32617. * @see [async.times]{@link module:ControlFlow.times}
  32618. * @category Control Flow
  32619. * @param {number} count - The number of times to run the function.
  32620. * @param {number} limit - The maximum number of async operations at a time.
  32621. * @param {AsyncFunction} iteratee - The async function to call `n` times.
  32622. * Invoked with the iteration index and a callback: (n, next).
  32623. * @param {Function} callback - see [async.map]{@link module:Collections.map}.
  32624. * @returns {Promise} a promise, if no callback is provided
  32625. */
  32626. function timesLimit(count, limit, iteratee, callback) {
  32627. var _iteratee = wrapAsync(iteratee);
  32628. return mapLimit$1(range(count), limit, _iteratee, callback);
  32629. }
  32630. /**
  32631. * Calls the `iteratee` function `n` times, and accumulates results in the same
  32632. * manner you would use with [map]{@link module:Collections.map}.
  32633. *
  32634. * @name times
  32635. * @static
  32636. * @memberOf module:ControlFlow
  32637. * @method
  32638. * @see [async.map]{@link module:Collections.map}
  32639. * @category Control Flow
  32640. * @param {number} n - The number of times to run the function.
  32641. * @param {AsyncFunction} iteratee - The async function to call `n` times.
  32642. * Invoked with the iteration index and a callback: (n, next).
  32643. * @param {Function} callback - see {@link module:Collections.map}.
  32644. * @returns {Promise} a promise, if no callback is provided
  32645. * @example
  32646. *
  32647. * // Pretend this is some complicated async factory
  32648. * var createUser = function(id, callback) {
  32649. * callback(null, {
  32650. * id: 'user' + id
  32651. * });
  32652. * };
  32653. *
  32654. * // generate 5 users
  32655. * async.times(5, function(n, next) {
  32656. * createUser(n, function(err, user) {
  32657. * next(err, user);
  32658. * });
  32659. * }, function(err, users) {
  32660. * // we should now have 5 users
  32661. * });
  32662. */
  32663. function times (n, iteratee, callback) {
  32664. return timesLimit(n, Infinity, iteratee, callback)
  32665. }
  32666. /**
  32667. * The same as [times]{@link module:ControlFlow.times} but runs only a single async operation at a time.
  32668. *
  32669. * @name timesSeries
  32670. * @static
  32671. * @memberOf module:ControlFlow
  32672. * @method
  32673. * @see [async.times]{@link module:ControlFlow.times}
  32674. * @category Control Flow
  32675. * @param {number} n - The number of times to run the function.
  32676. * @param {AsyncFunction} iteratee - The async function to call `n` times.
  32677. * Invoked with the iteration index and a callback: (n, next).
  32678. * @param {Function} callback - see {@link module:Collections.map}.
  32679. * @returns {Promise} a promise, if no callback is provided
  32680. */
  32681. function timesSeries (n, iteratee, callback) {
  32682. return timesLimit(n, 1, iteratee, callback)
  32683. }
  32684. /**
  32685. * A relative of `reduce`. Takes an Object or Array, and iterates over each
  32686. * element in parallel, each step potentially mutating an `accumulator` value.
  32687. * The type of the accumulator defaults to the type of collection passed in.
  32688. *
  32689. * @name transform
  32690. * @static
  32691. * @memberOf module:Collections
  32692. * @method
  32693. * @category Collection
  32694. * @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.
  32695. * @param {*} [accumulator] - The initial state of the transform. If omitted,
  32696. * it will default to an empty Object or Array, depending on the type of `coll`
  32697. * @param {AsyncFunction} iteratee - A function applied to each item in the
  32698. * collection that potentially modifies the accumulator.
  32699. * Invoked with (accumulator, item, key, callback).
  32700. * @param {Function} [callback] - A callback which is called after all the
  32701. * `iteratee` functions have finished. Result is the transformed accumulator.
  32702. * Invoked with (err, result).
  32703. * @returns {Promise} a promise, if no callback provided
  32704. * @example
  32705. *
  32706. * // file1.txt is a file that is 1000 bytes in size
  32707. * // file2.txt is a file that is 2000 bytes in size
  32708. * // file3.txt is a file that is 3000 bytes in size
  32709. *
  32710. * // helper function that returns human-readable size format from bytes
  32711. * function formatBytes(bytes, decimals = 2) {
  32712. * // implementation not included for brevity
  32713. * return humanReadbleFilesize;
  32714. * }
  32715. *
  32716. * const fileList = ['file1.txt','file2.txt','file3.txt'];
  32717. *
  32718. * // asynchronous function that returns the file size, transformed to human-readable format
  32719. * // e.g. 1024 bytes = 1KB, 1234 bytes = 1.21 KB, 1048576 bytes = 1MB, etc.
  32720. * function transformFileSize(acc, value, key, callback) {
  32721. * fs.stat(value, function(err, stat) {
  32722. * if (err) {
  32723. * return callback(err);
  32724. * }
  32725. * acc[key] = formatBytes(stat.size);
  32726. * callback(null);
  32727. * });
  32728. * }
  32729. *
  32730. * // Using callbacks
  32731. * async.transform(fileList, transformFileSize, function(err, result) {
  32732. * if(err) {
  32733. * console.log(err);
  32734. * } else {
  32735. * console.log(result);
  32736. * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]
  32737. * }
  32738. * });
  32739. *
  32740. * // Using Promises
  32741. * async.transform(fileList, transformFileSize)
  32742. * .then(result => {
  32743. * console.log(result);
  32744. * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]
  32745. * }).catch(err => {
  32746. * console.log(err);
  32747. * });
  32748. *
  32749. * // Using async/await
  32750. * (async () => {
  32751. * try {
  32752. * let result = await async.transform(fileList, transformFileSize);
  32753. * console.log(result);
  32754. * // [ '1000 Bytes', '1.95 KB', '2.93 KB' ]
  32755. * }
  32756. * catch (err) {
  32757. * console.log(err);
  32758. * }
  32759. * })();
  32760. *
  32761. * @example
  32762. *
  32763. * // file1.txt is a file that is 1000 bytes in size
  32764. * // file2.txt is a file that is 2000 bytes in size
  32765. * // file3.txt is a file that is 3000 bytes in size
  32766. *
  32767. * // helper function that returns human-readable size format from bytes
  32768. * function formatBytes(bytes, decimals = 2) {
  32769. * // implementation not included for brevity
  32770. * return humanReadbleFilesize;
  32771. * }
  32772. *
  32773. * const fileMap = { f1: 'file1.txt', f2: 'file2.txt', f3: 'file3.txt' };
  32774. *
  32775. * // asynchronous function that returns the file size, transformed to human-readable format
  32776. * // e.g. 1024 bytes = 1KB, 1234 bytes = 1.21 KB, 1048576 bytes = 1MB, etc.
  32777. * function transformFileSize(acc, value, key, callback) {
  32778. * fs.stat(value, function(err, stat) {
  32779. * if (err) {
  32780. * return callback(err);
  32781. * }
  32782. * acc[key] = formatBytes(stat.size);
  32783. * callback(null);
  32784. * });
  32785. * }
  32786. *
  32787. * // Using callbacks
  32788. * async.transform(fileMap, transformFileSize, function(err, result) {
  32789. * if(err) {
  32790. * console.log(err);
  32791. * } else {
  32792. * console.log(result);
  32793. * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }
  32794. * }
  32795. * });
  32796. *
  32797. * // Using Promises
  32798. * async.transform(fileMap, transformFileSize)
  32799. * .then(result => {
  32800. * console.log(result);
  32801. * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }
  32802. * }).catch(err => {
  32803. * console.log(err);
  32804. * });
  32805. *
  32806. * // Using async/await
  32807. * async () => {
  32808. * try {
  32809. * let result = await async.transform(fileMap, transformFileSize);
  32810. * console.log(result);
  32811. * // { f1: '1000 Bytes', f2: '1.95 KB', f3: '2.93 KB' }
  32812. * }
  32813. * catch (err) {
  32814. * console.log(err);
  32815. * }
  32816. * }
  32817. *
  32818. */
  32819. function transform (coll, accumulator, iteratee, callback) {
  32820. if (arguments.length <= 3 && typeof accumulator === 'function') {
  32821. callback = iteratee;
  32822. iteratee = accumulator;
  32823. accumulator = Array.isArray(coll) ? [] : {};
  32824. }
  32825. callback = once(callback || promiseCallback());
  32826. var _iteratee = wrapAsync(iteratee);
  32827. eachOf$1(coll, (v, k, cb) => {
  32828. _iteratee(accumulator, v, k, cb);
  32829. }, err => callback(err, accumulator));
  32830. return callback[PROMISE_SYMBOL]
  32831. }
  32832. /**
  32833. * It runs each task in series but stops whenever any of the functions were
  32834. * successful. If one of the tasks were successful, the `callback` will be
  32835. * passed the result of the successful task. If all tasks fail, the callback
  32836. * will be passed the error and result (if any) of the final attempt.
  32837. *
  32838. * @name tryEach
  32839. * @static
  32840. * @memberOf module:ControlFlow
  32841. * @method
  32842. * @category Control Flow
  32843. * @param {Array|Iterable|AsyncIterable|Object} tasks - A collection containing functions to
  32844. * run, each function is passed a `callback(err, result)` it must call on
  32845. * completion with an error `err` (which can be `null`) and an optional `result`
  32846. * value.
  32847. * @param {Function} [callback] - An optional callback which is called when one
  32848. * of the tasks has succeeded, or all have failed. It receives the `err` and
  32849. * `result` arguments of the last attempt at completing the `task`. Invoked with
  32850. * (err, results).
  32851. * @returns {Promise} a promise, if no callback is passed
  32852. * @example
  32853. * async.tryEach([
  32854. * function getDataFromFirstWebsite(callback) {
  32855. * // Try getting the data from the first website
  32856. * callback(err, data);
  32857. * },
  32858. * function getDataFromSecondWebsite(callback) {
  32859. * // First website failed,
  32860. * // Try getting the data from the backup website
  32861. * callback(err, data);
  32862. * }
  32863. * ],
  32864. * // optional callback
  32865. * function(err, results) {
  32866. * Now do something with the data.
  32867. * });
  32868. *
  32869. */
  32870. function tryEach(tasks, callback) {
  32871. var error = null;
  32872. var result;
  32873. return eachSeries$1(tasks, (task, taskCb) => {
  32874. wrapAsync(task)((err, ...args) => {
  32875. if (err === false) return taskCb(err);
  32876. if (args.length < 2) {
  32877. [result] = args;
  32878. } else {
  32879. result = args;
  32880. }
  32881. error = err;
  32882. taskCb(err ? null : {});
  32883. });
  32884. }, () => callback(error, result));
  32885. }
  32886. var tryEach$1 = awaitify(tryEach);
  32887. /**
  32888. * Undoes a [memoize]{@link module:Utils.memoize}d function, reverting it to the original,
  32889. * unmemoized form. Handy for testing.
  32890. *
  32891. * @name unmemoize
  32892. * @static
  32893. * @memberOf module:Utils
  32894. * @method
  32895. * @see [async.memoize]{@link module:Utils.memoize}
  32896. * @category Util
  32897. * @param {AsyncFunction} fn - the memoized function
  32898. * @returns {AsyncFunction} a function that calls the original unmemoized function
  32899. */
  32900. function unmemoize(fn) {
  32901. return (...args) => {
  32902. return (fn.unmemoized || fn)(...args);
  32903. };
  32904. }
  32905. /**
  32906. * Repeatedly call `iteratee`, while `test` returns `true`. Calls `callback` when
  32907. * stopped, or an error occurs.
  32908. *
  32909. * @name whilst
  32910. * @static
  32911. * @memberOf module:ControlFlow
  32912. * @method
  32913. * @category Control Flow
  32914. * @param {AsyncFunction} test - asynchronous truth test to perform before each
  32915. * execution of `iteratee`. Invoked with ().
  32916. * @param {AsyncFunction} iteratee - An async function which is called each time
  32917. * `test` passes. Invoked with (callback).
  32918. * @param {Function} [callback] - A callback which is called after the test
  32919. * function has failed and repeated execution of `iteratee` has stopped. `callback`
  32920. * will be passed an error and any arguments passed to the final `iteratee`'s
  32921. * callback. Invoked with (err, [results]);
  32922. * @returns {Promise} a promise, if no callback is passed
  32923. * @example
  32924. *
  32925. * var count = 0;
  32926. * async.whilst(
  32927. * function test(cb) { cb(null, count < 5); },
  32928. * function iter(callback) {
  32929. * count++;
  32930. * setTimeout(function() {
  32931. * callback(null, count);
  32932. * }, 1000);
  32933. * },
  32934. * function (err, n) {
  32935. * // 5 seconds have passed, n = 5
  32936. * }
  32937. * );
  32938. */
  32939. function whilst(test, iteratee, callback) {
  32940. callback = onlyOnce(callback);
  32941. var _fn = wrapAsync(iteratee);
  32942. var _test = wrapAsync(test);
  32943. var results = [];
  32944. function next(err, ...rest) {
  32945. if (err) return callback(err);
  32946. results = rest;
  32947. if (err === false) return;
  32948. _test(check);
  32949. }
  32950. function check(err, truth) {
  32951. if (err) return callback(err);
  32952. if (err === false) return;
  32953. if (!truth) return callback(null, ...results);
  32954. _fn(next);
  32955. }
  32956. return _test(check);
  32957. }
  32958. var whilst$1 = awaitify(whilst, 3);
  32959. /**
  32960. * Repeatedly call `iteratee` until `test` returns `true`. Calls `callback` when
  32961. * stopped, or an error occurs. `callback` will be passed an error and any
  32962. * arguments passed to the final `iteratee`'s callback.
  32963. *
  32964. * The inverse of [whilst]{@link module:ControlFlow.whilst}.
  32965. *
  32966. * @name until
  32967. * @static
  32968. * @memberOf module:ControlFlow
  32969. * @method
  32970. * @see [async.whilst]{@link module:ControlFlow.whilst}
  32971. * @category Control Flow
  32972. * @param {AsyncFunction} test - asynchronous truth test to perform before each
  32973. * execution of `iteratee`. Invoked with (callback).
  32974. * @param {AsyncFunction} iteratee - An async function which is called each time
  32975. * `test` fails. Invoked with (callback).
  32976. * @param {Function} [callback] - A callback which is called after the test
  32977. * function has passed and repeated execution of `iteratee` has stopped. `callback`
  32978. * will be passed an error and any arguments passed to the final `iteratee`'s
  32979. * callback. Invoked with (err, [results]);
  32980. * @returns {Promise} a promise, if a callback is not passed
  32981. *
  32982. * @example
  32983. * const results = []
  32984. * let finished = false
  32985. * async.until(function test(cb) {
  32986. * cb(null, finished)
  32987. * }, function iter(next) {
  32988. * fetchPage(url, (err, body) => {
  32989. * if (err) return next(err)
  32990. * results = results.concat(body.objects)
  32991. * finished = !!body.next
  32992. * next(err)
  32993. * })
  32994. * }, function done (err) {
  32995. * // all pages have been fetched
  32996. * })
  32997. */
  32998. function until(test, iteratee, callback) {
  32999. const _test = wrapAsync(test);
  33000. return whilst$1((cb) => _test((err, truth) => cb (err, !truth)), iteratee, callback);
  33001. }
  33002. /**
  33003. * Runs the `tasks` array of functions in series, each passing their results to
  33004. * the next in the array. However, if any of the `tasks` pass an error to their
  33005. * own callback, the next function is not executed, and the main `callback` is
  33006. * immediately called with the error.
  33007. *
  33008. * @name waterfall
  33009. * @static
  33010. * @memberOf module:ControlFlow
  33011. * @method
  33012. * @category Control Flow
  33013. * @param {Array} tasks - An array of [async functions]{@link AsyncFunction}
  33014. * to run.
  33015. * Each function should complete with any number of `result` values.
  33016. * The `result` values will be passed as arguments, in order, to the next task.
  33017. * @param {Function} [callback] - An optional callback to run once all the
  33018. * functions have completed. This will be passed the results of the last task's
  33019. * callback. Invoked with (err, [results]).
  33020. * @returns undefined
  33021. * @example
  33022. *
  33023. * async.waterfall([
  33024. * function(callback) {
  33025. * callback(null, 'one', 'two');
  33026. * },
  33027. * function(arg1, arg2, callback) {
  33028. * // arg1 now equals 'one' and arg2 now equals 'two'
  33029. * callback(null, 'three');
  33030. * },
  33031. * function(arg1, callback) {
  33032. * // arg1 now equals 'three'
  33033. * callback(null, 'done');
  33034. * }
  33035. * ], function (err, result) {
  33036. * // result now equals 'done'
  33037. * });
  33038. *
  33039. * // Or, with named functions:
  33040. * async.waterfall([
  33041. * myFirstFunction,
  33042. * mySecondFunction,
  33043. * myLastFunction,
  33044. * ], function (err, result) {
  33045. * // result now equals 'done'
  33046. * });
  33047. * function myFirstFunction(callback) {
  33048. * callback(null, 'one', 'two');
  33049. * }
  33050. * function mySecondFunction(arg1, arg2, callback) {
  33051. * // arg1 now equals 'one' and arg2 now equals 'two'
  33052. * callback(null, 'three');
  33053. * }
  33054. * function myLastFunction(arg1, callback) {
  33055. * // arg1 now equals 'three'
  33056. * callback(null, 'done');
  33057. * }
  33058. */
  33059. function waterfall (tasks, callback) {
  33060. callback = once(callback);
  33061. if (!Array.isArray(tasks)) return callback(new Error('First argument to waterfall must be an array of functions'));
  33062. if (!tasks.length) return callback();
  33063. var taskIndex = 0;
  33064. function nextTask(args) {
  33065. var task = wrapAsync(tasks[taskIndex++]);
  33066. task(...args, onlyOnce(next));
  33067. }
  33068. function next(err, ...args) {
  33069. if (err === false) return
  33070. if (err || taskIndex === tasks.length) {
  33071. return callback(err, ...args);
  33072. }
  33073. nextTask(args);
  33074. }
  33075. nextTask([]);
  33076. }
  33077. var waterfall$1 = awaitify(waterfall);
  33078. /**
  33079. * An "async function" in the context of Async is an asynchronous function with
  33080. * a variable number of parameters, with the final parameter being a callback.
  33081. * (`function (arg1, arg2, ..., callback) {}`)
  33082. * The final callback is of the form `callback(err, results...)`, which must be
  33083. * called once the function is completed. The callback should be called with a
  33084. * Error as its first argument to signal that an error occurred.
  33085. * Otherwise, if no error occurred, it should be called with `null` as the first
  33086. * argument, and any additional `result` arguments that may apply, to signal
  33087. * successful completion.
  33088. * The callback must be called exactly once, ideally on a later tick of the
  33089. * JavaScript event loop.
  33090. *
  33091. * This type of function is also referred to as a "Node-style async function",
  33092. * or a "continuation passing-style function" (CPS). Most of the methods of this
  33093. * library are themselves CPS/Node-style async functions, or functions that
  33094. * return CPS/Node-style async functions.
  33095. *
  33096. * Wherever we accept a Node-style async function, we also directly accept an
  33097. * [ES2017 `async` function]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function}.
  33098. * In this case, the `async` function will not be passed a final callback
  33099. * argument, and any thrown error will be used as the `err` argument of the
  33100. * implicit callback, and the return value will be used as the `result` value.
  33101. * (i.e. a `rejected` of the returned Promise becomes the `err` callback
  33102. * argument, and a `resolved` value becomes the `result`.)
  33103. *
  33104. * Note, due to JavaScript limitations, we can only detect native `async`
  33105. * functions and not transpilied implementations.
  33106. * Your environment must have `async`/`await` support for this to work.
  33107. * (e.g. Node > v7.6, or a recent version of a modern browser).
  33108. * If you are using `async` functions through a transpiler (e.g. Babel), you
  33109. * must still wrap the function with [asyncify]{@link module:Utils.asyncify},
  33110. * because the `async function` will be compiled to an ordinary function that
  33111. * returns a promise.
  33112. *
  33113. * @typedef {Function} AsyncFunction
  33114. * @static
  33115. */
  33116. var index = {
  33117. apply,
  33118. applyEach: applyEach$1,
  33119. applyEachSeries,
  33120. asyncify,
  33121. auto,
  33122. autoInject,
  33123. cargo,
  33124. cargoQueue: cargo$1,
  33125. compose,
  33126. concat: concat$1,
  33127. concatLimit: concatLimit$1,
  33128. concatSeries: concatSeries$1,
  33129. constant,
  33130. detect: detect$1,
  33131. detectLimit: detectLimit$1,
  33132. detectSeries: detectSeries$1,
  33133. dir,
  33134. doUntil,
  33135. doWhilst: doWhilst$1,
  33136. each,
  33137. eachLimit: eachLimit$2,
  33138. eachOf: eachOf$1,
  33139. eachOfLimit: eachOfLimit$2,
  33140. eachOfSeries: eachOfSeries$1,
  33141. eachSeries: eachSeries$1,
  33142. ensureAsync,
  33143. every: every$1,
  33144. everyLimit: everyLimit$1,
  33145. everySeries: everySeries$1,
  33146. filter: filter$1,
  33147. filterLimit: filterLimit$1,
  33148. filterSeries: filterSeries$1,
  33149. forever: forever$1,
  33150. groupBy,
  33151. groupByLimit: groupByLimit$1,
  33152. groupBySeries,
  33153. log,
  33154. map: map$1,
  33155. mapLimit: mapLimit$1,
  33156. mapSeries: mapSeries$1,
  33157. mapValues,
  33158. mapValuesLimit: mapValuesLimit$1,
  33159. mapValuesSeries,
  33160. memoize,
  33161. nextTick,
  33162. parallel,
  33163. parallelLimit,
  33164. priorityQueue,
  33165. queue: queue$1,
  33166. race: race$1,
  33167. reduce: reduce$1,
  33168. reduceRight,
  33169. reflect,
  33170. reflectAll,
  33171. reject: reject$2,
  33172. rejectLimit: rejectLimit$1,
  33173. rejectSeries: rejectSeries$1,
  33174. retry,
  33175. retryable,
  33176. seq,
  33177. series,
  33178. setImmediate: setImmediate$1,
  33179. some: some$1,
  33180. someLimit: someLimit$1,
  33181. someSeries: someSeries$1,
  33182. sortBy: sortBy$1,
  33183. timeout,
  33184. times,
  33185. timesLimit,
  33186. timesSeries,
  33187. transform,
  33188. tryEach: tryEach$1,
  33189. unmemoize,
  33190. until,
  33191. waterfall: waterfall$1,
  33192. whilst: whilst$1,
  33193. // aliases
  33194. all: every$1,
  33195. allLimit: everyLimit$1,
  33196. allSeries: everySeries$1,
  33197. any: some$1,
  33198. anyLimit: someLimit$1,
  33199. anySeries: someSeries$1,
  33200. find: detect$1,
  33201. findLimit: detectLimit$1,
  33202. findSeries: detectSeries$1,
  33203. flatMap: concat$1,
  33204. flatMapLimit: concatLimit$1,
  33205. flatMapSeries: concatSeries$1,
  33206. forEach: each,
  33207. forEachSeries: eachSeries$1,
  33208. forEachLimit: eachLimit$2,
  33209. forEachOf: eachOf$1,
  33210. forEachOfSeries: eachOfSeries$1,
  33211. forEachOfLimit: eachOfLimit$2,
  33212. inject: reduce$1,
  33213. foldl: reduce$1,
  33214. foldr: reduceRight,
  33215. select: filter$1,
  33216. selectLimit: filterLimit$1,
  33217. selectSeries: filterSeries$1,
  33218. wrapSync: asyncify,
  33219. during: whilst$1,
  33220. doDuring: doWhilst$1
  33221. };
  33222. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (index);
  33223. /***/ }),
  33224. /***/ 63480:
  33225. /***/ ((module) => {
  33226. "use strict";
  33227. module.exports = JSON.parse('[["8740","䏰䰲䘃䖦䕸𧉧䵷䖳𧲱䳢𧳅㮕䜶䝄䱇䱀𤊿𣘗𧍒𦺋𧃒䱗𪍑䝏䗚䲅𧱬䴇䪤䚡𦬣爥𥩔𡩣𣸆𣽡晍囻"],["8767","綕夝𨮹㷴霴𧯯寛𡵞媤㘥𩺰嫑宷峼杮薓𩥅瑡璝㡵𡵓𣚞𦀡㻬"],["87a1","𥣞㫵竼龗𤅡𨤍𣇪𠪊𣉞䌊蒄龖鐯䤰蘓墖靊鈘秐稲晠権袝瑌篅枂稬剏遆㓦珄𥶹瓆鿇垳䤯呌䄱𣚎堘穲𧭥讏䚮𦺈䆁𥶙箮𢒼鿈𢓁𢓉𢓌鿉蔄𣖻䂴鿊䓡𪷿拁灮鿋"],["8840","㇀",4,"𠄌㇅𠃑𠃍㇆㇇𠃋𡿨㇈𠃊㇉㇊㇋㇌𠄎㇍㇎ĀÁǍÀĒÉĚÈŌÓǑÒ࿿Ê̄Ế࿿Ê̌ỀÊāáǎàɑēéěèīíǐìōóǒòūúǔùǖǘǚ"],["88a1","ǜü࿿ê̄ế࿿ê̌ềêɡ⏚⏛"],["8940","𪎩𡅅"],["8943","攊"],["8946","丽滝鵎釟"],["894c","𧜵撑会伨侨兖兴农凤务动医华发变团声处备夲头学实実岚庆总斉柾栄桥济炼电纤纬纺织经统缆缷艺苏药视设询车轧轮"],["89a1","琑糼緍楆竉刧"],["89ab","醌碸酞肼"],["89b0","贋胶𠧧"],["89b5","肟黇䳍鷉鸌䰾𩷶𧀎鸊𪄳㗁"],["89c1","溚舾甙"],["89c5","䤑马骏龙禇𨑬𡷊𠗐𢫦两亁亀亇亿仫伷㑌侽㹈倃傈㑽㒓㒥円夅凛凼刅争剹劐匧㗇厩㕑厰㕓参吣㕭㕲㚁咓咣咴咹哐哯唘唣唨㖘唿㖥㖿嗗㗅"],["8a40","𧶄唥"],["8a43","𠱂𠴕𥄫喐𢳆㧬𠍁蹆𤶸𩓥䁓𨂾睺𢰸㨴䟕𨅝𦧲𤷪擝𠵼𠾴𠳕𡃴撍蹾𠺖𠰋𠽤𢲩𨉖𤓓"],["8a64","𠵆𩩍𨃩䟴𤺧𢳂骲㩧𩗴㿭㔆𥋇𩟔𧣈𢵄鵮頕"],["8a76","䏙𦂥撴哣𢵌𢯊𡁷㧻𡁯"],["8aa1","𦛚𦜖𧦠擪𥁒𠱃蹨𢆡𨭌𠜱"],["8aac","䠋𠆩㿺塳𢶍"],["8ab2","𤗈𠓼𦂗𠽌𠶖啹䂻䎺"],["8abb","䪴𢩦𡂝膪飵𠶜捹㧾𢝵跀嚡摼㹃"],["8ac9","𪘁𠸉𢫏𢳉"],["8ace","𡃈𣧂㦒㨆𨊛㕸𥹉𢃇噒𠼱𢲲𩜠㒼氽𤸻"],["8adf","𧕴𢺋𢈈𪙛𨳍𠹺𠰴𦠜羓𡃏𢠃𢤹㗻𥇣𠺌𠾍𠺪㾓𠼰𠵇𡅏𠹌"],["8af6","𠺫𠮩𠵈𡃀𡄽㿹𢚖搲𠾭"],["8b40","𣏴𧘹𢯎𠵾𠵿𢱑𢱕㨘𠺘𡃇𠼮𪘲𦭐𨳒𨶙𨳊閪哌苄喹"],["8b55","𩻃鰦骶𧝞𢷮煀腭胬尜𦕲脴㞗卟𨂽醶𠻺𠸏𠹷𠻻㗝𤷫㘉𠳖嚯𢞵𡃉𠸐𠹸𡁸𡅈𨈇𡑕𠹹𤹐𢶤婔𡀝𡀞𡃵𡃶垜𠸑"],["8ba1","𧚔𨋍𠾵𠹻𥅾㜃𠾶𡆀𥋘𪊽𤧚𡠺𤅷𨉼墙剨㘚𥜽箲孨䠀䬬鼧䧧鰟鮍𥭴𣄽嗻㗲嚉丨夂𡯁屮靑𠂆乛亻㔾尣彑忄㣺扌攵歺氵氺灬爫丬犭𤣩罒礻糹罓𦉪㓁"],["8bde","𦍋耂肀𦘒𦥑卝衤见𧢲讠贝钅镸长门𨸏韦页风飞饣𩠐鱼鸟黄歯龜丷𠂇阝户钢"],["8c40","倻淾𩱳龦㷉袏𤅎灷峵䬠𥇍㕙𥴰愢𨨲辧釶熑朙玺𣊁𪄇㲋𡦀䬐磤琂冮𨜏䀉橣𪊺䈣蘏𠩯稪𩥇𨫪靕灍匤𢁾鏴盙𨧣龧矝亣俰傼丯众龨吴綋墒壐𡶶庒庙忂𢜒斋"],["8ca1","𣏹椙橃𣱣泿"],["8ca7","爀𤔅玌㻛𤨓嬕璹讃𥲤𥚕窓篬糃繬苸薗龩袐龪躹龫迏蕟駠鈡龬𨶹𡐿䁱䊢娚"],["8cc9","顨杫䉶圽"],["8cce","藖𤥻芿𧄍䲁𦵴嵻𦬕𦾾龭龮宖龯曧繛湗秊㶈䓃𣉖𢞖䎚䔶"],["8ce6","峕𣬚諹屸㴒𣕑嵸龲煗䕘𤃬𡸣䱷㥸㑊𠆤𦱁諌侴𠈹妿腬顖𩣺弻"],["8d40","𠮟"],["8d42","𢇁𨥭䄂䚻𩁹㼇龳𪆵䃸㟖䛷𦱆䅼𨚲𧏿䕭㣔𥒚䕡䔛䶉䱻䵶䗪㿈𤬏㙡䓞䒽䇭崾嵈嵖㷼㠏嶤嶹㠠㠸幂庽弥徃㤈㤔㤿㥍惗愽峥㦉憷憹懏㦸戬抐拥挘㧸嚱"],["8da1","㨃揢揻搇摚㩋擀崕嘡龟㪗斆㪽旿晓㫲暒㬢朖㭂枤栀㭘桊梄㭲㭱㭻椉楃牜楤榟榅㮼槖㯝橥橴橱檂㯬檙㯲檫檵櫔櫶殁毁毪汵沪㳋洂洆洦涁㳯涤涱渕渘温溆𨧀溻滢滚齿滨滩漤漴㵆𣽁澁澾㵪㵵熷岙㶊瀬㶑灐灔灯灿炉𠌥䏁㗱𠻘"],["8e40","𣻗垾𦻓焾𥟠㙎榢𨯩孴穉𥣡𩓙穥穽𥦬窻窰竂竃燑𦒍䇊竚竝竪䇯咲𥰁笋筕笩𥌎𥳾箢筯莜𥮴𦱿篐萡箒箸𥴠㶭𥱥蒒篺簆簵𥳁籄粃𤢂粦晽𤕸糉糇糦籴糳糵糎"],["8ea1","繧䔝𦹄絝𦻖璍綉綫焵綳緒𤁗𦀩緤㴓緵𡟹緥𨍭縝𦄡𦅚繮纒䌫鑬縧罀罁罇礶𦋐駡羗𦍑羣𡙡𠁨䕜𣝦䔃𨌺翺𦒉者耈耝耨耯𪂇𦳃耻耼聡𢜔䦉𦘦𣷣𦛨朥肧𨩈脇脚墰𢛶汿𦒘𤾸擧𡒊舘𡡞橓𤩥𤪕䑺舩𠬍𦩒𣵾俹𡓽蓢荢𦬊𤦧𣔰𡝳𣷸芪椛芳䇛"],["8f40","蕋苐茚𠸖𡞴㛁𣅽𣕚艻苢茘𣺋𦶣𦬅𦮗𣗎㶿茝嗬莅䔋𦶥莬菁菓㑾𦻔橗蕚㒖𦹂𢻯葘𥯤葱㷓䓤檧葊𣲵祘蒨𦮖𦹷𦹃蓞萏莑䒠蒓蓤𥲑䉀𥳀䕃蔴嫲𦺙䔧蕳䔖枿蘖"],["8fa1","𨘥𨘻藁𧂈蘂𡖂𧃍䕫䕪蘨㙈𡢢号𧎚虾蝱𪃸蟮𢰧螱蟚蠏噡虬桖䘏衅衆𧗠𣶹𧗤衞袜䙛袴袵揁装睷𧜏覇覊覦覩覧覼𨨥觧𧤤𧪽誜瞓釾誐𧩙竩𧬺𣾏䜓𧬸煼謌謟𥐰𥕥謿譌譍誩𤩺讐讛誯𡛟䘕衏貛𧵔𧶏貫㜥𧵓賖𧶘𧶽贒贃𡤐賛灜贑𤳉㻐起"],["9040","趩𨀂𡀔𤦊㭼𨆼𧄌竧躭躶軃鋔輙輭𨍥𨐒辥錃𪊟𠩐辳䤪𨧞𨔽𣶻廸𣉢迹𪀔𨚼𨔁𢌥㦀𦻗逷𨔼𧪾遡𨕬𨘋邨𨜓郄𨛦邮都酧㫰醩釄粬𨤳𡺉鈎沟鉁鉢𥖹銹𨫆𣲛𨬌𥗛"],["90a1","𠴱錬鍫𨫡𨯫炏嫃𨫢𨫥䥥鉄𨯬𨰹𨯿鍳鑛躼閅閦鐦閠濶䊹𢙺𨛘𡉼𣸮䧟氜陻隖䅬隣𦻕懚隶磵𨫠隽双䦡𦲸𠉴𦐐𩂯𩃥𤫑𡤕𣌊霱虂霶䨏䔽䖅𤫩灵孁霛靜𩇕靗孊𩇫靟鐥僐𣂷𣂼鞉鞟鞱鞾韀韒韠𥑬韮琜𩐳響韵𩐝𧥺䫑頴頳顋顦㬎𧅵㵑𠘰𤅜"],["9140","𥜆飊颷飈飇䫿𦴧𡛓喰飡飦飬鍸餹𤨩䭲𩡗𩤅駵騌騻騐驘𥜥㛄𩂱𩯕髠髢𩬅髴䰎鬔鬭𨘀倴鬴𦦨㣃𣁽魐魀𩴾婅𡡣鮎𤉋鰂鯿鰌𩹨鷔𩾷𪆒𪆫𪃡𪄣𪇟鵾鶃𪄴鸎梈"],["91a1","鷄𢅛𪆓𪈠𡤻𪈳鴹𪂹𪊴麐麕麞麢䴴麪麯𤍤黁㭠㧥㴝伲㞾𨰫鼂鼈䮖鐤𦶢鼗鼖鼹嚟嚊齅馸𩂋韲葿齢齩竜龎爖䮾𤥵𤦻煷𤧸𤍈𤩑玞𨯚𡣺禟𨥾𨸶鍩鏳𨩄鋬鎁鏋𨥬𤒹爗㻫睲穃烐𤑳𤏸煾𡟯炣𡢾𣖙㻇𡢅𥐯𡟸㜢𡛻𡠹㛡𡝴𡣑𥽋㜣𡛀坛𤨥𡏾𡊨"],["9240","𡏆𡒶蔃𣚦蔃葕𤦔𧅥𣸱𥕜𣻻𧁒䓴𣛮𩦝𦼦柹㜳㰕㷧塬𡤢栐䁗𣜿𤃡𤂋𤄏𦰡哋嚞𦚱嚒𠿟𠮨𠸍鏆𨬓鎜仸儫㠙𤐶亼𠑥𠍿佋侊𥙑婨𠆫𠏋㦙𠌊𠐔㐵伩𠋀𨺳𠉵諚𠈌亘"],["92a1","働儍侢伃𤨎𣺊佂倮偬傁俌俥偘僼兙兛兝兞湶𣖕𣸹𣺿浲𡢄𣺉冨凃𠗠䓝𠒣𠒒𠒑赺𨪜𠜎剙劤𠡳勡鍮䙺熌𤎌𠰠𤦬𡃤槑𠸝瑹㻞璙琔瑖玘䮎𤪼𤂍叐㖄爏𤃉喴𠍅响𠯆圝鉝雴鍦埝垍坿㘾壋媙𨩆𡛺𡝯𡜐娬妸銏婾嫏娒𥥆𡧳𡡡𤊕㛵洅瑃娡𥺃"],["9340","媁𨯗𠐓鏠璌𡌃焅䥲鐈𨧻鎽㞠尞岞幞幈𡦖𡥼𣫮廍孏𡤃𡤄㜁𡢠㛝𡛾㛓脪𨩇𡶺𣑲𨦨弌弎𡤧𡞫婫𡜻孄蘔𧗽衠恾𢡠𢘫忛㺸𢖯𢖾𩂈𦽳懀𠀾𠁆𢘛憙憘恵𢲛𢴇𤛔𩅍"],["93a1","摱𤙥𢭪㨩𢬢𣑐𩣪𢹸挷𪑛撶挱揑𤧣𢵧护𢲡搻敫楲㯴𣂎𣊭𤦉𣊫唍𣋠𡣙𩐿曎𣊉𣆳㫠䆐𥖄𨬢𥖏𡛼𥕛𥐥磮𣄃𡠪𣈴㑤𣈏𣆂𤋉暎𦴤晫䮓昰𧡰𡷫晣𣋒𣋡昞𥡲㣑𣠺𣞼㮙𣞢𣏾瓐㮖枏𤘪梶栞㯄檾㡣𣟕𤒇樳橒櫉欅𡤒攑梘橌㯗橺歗𣿀𣲚鎠鋲𨯪𨫋"],["9440","銉𨀞𨧜鑧涥漋𤧬浧𣽿㶏渄𤀼娽渊塇洤硂焻𤌚𤉶烱牐犇犔𤞏𤜥兹𤪤𠗫瑺𣻸𣙟𤩊𤤗𥿡㼆㺱𤫟𨰣𣼵悧㻳瓌琼鎇琷䒟𦷪䕑疃㽣𤳙𤴆㽘畕癳𪗆㬙瑨𨫌𤦫𤦎㫻"],["94a1","㷍𤩎㻿𤧅𤣳釺圲鍂𨫣𡡤僟𥈡𥇧睸𣈲眎眏睻𤚗𣞁㩞𤣰琸璛㺿𤪺𤫇䃈𤪖𦆮錇𥖁砞碍碈磒珐祙𧝁𥛣䄎禛蒖禥樭𣻺稺秴䅮𡛦䄲鈵秱𠵌𤦌𠊙𣶺𡝮㖗啫㕰㚪𠇔𠰍竢婙𢛵𥪯𥪜娍𠉛磰娪𥯆竾䇹籝籭䈑𥮳𥺼𥺦糍𤧹𡞰粎籼粮檲緜縇緓罎𦉡"],["9540","𦅜𧭈綗𥺂䉪𦭵𠤖柖𠁎𣗏埄𦐒𦏸𤥢翝笧𠠬𥫩𥵃笌𥸎駦虅驣樜𣐿㧢𤧷𦖭騟𦖠蒀𧄧𦳑䓪脷䐂胆脉腂𦞴飃𦩂艢艥𦩑葓𦶧蘐𧈛媆䅿𡡀嬫𡢡嫤𡣘蚠蜨𣶏蠭𧐢娂"],["95a1","衮佅袇袿裦襥襍𥚃襔𧞅𧞄𨯵𨯙𨮜𨧹㺭蒣䛵䛏㟲訽訜𩑈彍鈫𤊄旔焩烄𡡅鵭貟賩𧷜妚矃姰䍮㛔踪躧𤰉輰轊䋴汘澻𢌡䢛潹溋𡟚鯩㚵𤤯邻邗啱䤆醻鐄𨩋䁢𨫼鐧𨰝𨰻蓥訫閙閧閗閖𨴴瑅㻂𤣿𤩂𤏪㻧𣈥随𨻧𨹦𨹥㻌𤧭𤩸𣿮琒瑫㻼靁𩂰"],["9640","桇䨝𩂓𥟟靝鍨𨦉𨰦𨬯𦎾銺嬑譩䤼珹𤈛鞛靱餸𠼦巁𨯅𤪲頟𩓚鋶𩗗釥䓀𨭐𤩧𨭤飜𨩅㼀鈪䤥萔餻饍𧬆㷽馛䭯馪驜𨭥𥣈檏騡嫾騯𩣱䮐𩥈馼䮽䮗鍽塲𡌂堢𤦸"],["96a1","𡓨硄𢜟𣶸棅㵽鑘㤧慐𢞁𢥫愇鱏鱓鱻鰵鰐魿鯏𩸭鮟𪇵𪃾鴡䲮𤄄鸘䲰鴌𪆴𪃭𪃳𩤯鶥蒽𦸒𦿟𦮂藼䔳𦶤𦺄𦷰萠藮𦸀𣟗𦁤秢𣖜𣙀䤭𤧞㵢鏛銾鍈𠊿碹鉷鑍俤㑀遤𥕝砽硔碶硋𡝗𣇉𤥁㚚佲濚濙瀞瀞吔𤆵垻壳垊鴖埗焴㒯𤆬燫𦱀𤾗嬨𡞵𨩉"],["9740","愌嫎娋䊼𤒈㜬䭻𨧼鎻鎸𡣖𠼝葲𦳀𡐓𤋺𢰦𤏁妔𣶷𦝁綨𦅛𦂤𤦹𤦋𨧺鋥珢㻩璴𨭣𡢟㻡𤪳櫘珳珻㻖𤨾𤪔𡟙𤩦𠎧𡐤𤧥瑈𤤖炥𤥶銄珦鍟𠓾錱𨫎𨨖鎆𨯧𥗕䤵𨪂煫"],["97a1","𤥃𠳿嚤𠘚𠯫𠲸唂秄𡟺緾𡛂𤩐𡡒䔮鐁㜊𨫀𤦭妰𡢿𡢃𧒄媡㛢𣵛㚰鉟婹𨪁𡡢鍴㳍𠪴䪖㦊僴㵩㵌𡎜煵䋻𨈘渏𩃤䓫浗𧹏灧沯㳖𣿭𣸭渂漌㵯𠏵畑㚼㓈䚀㻚䡱姄鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"],["9840","𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"],["98a1","咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"],["9940","䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜䊌粸䊔糭输烀𠳏総緔緐緽羮羴犟䎗耠耥笹耮耱联㷌垴炠肷胩䏭脌猪脎脒畠脔䐁㬹腖腙腚"],["99a1","䐓堺腼膄䐥膓䐭膥埯臁臤艔䒏芦艶苊苘苿䒰荗险榊萅烵葤惣蒈䔄蒾蓡蓸蔐蔸蕒䔻蕯蕰藠䕷虲蚒蚲蛯际螋䘆䘗袮裿褤襇覑𧥧訩訸誔誴豑賔賲贜䞘塟跃䟭仮踺嗘坔蹱嗵躰䠷軎転軤軭軲辷迁迊迌逳駄䢭飠鈓䤞鈨鉘鉫銱銮銿"],["9a40","鋣鋫鋳鋴鋽鍃鎄鎭䥅䥑麿鐗匁鐝鐭鐾䥪鑔鑹锭関䦧间阳䧥枠䨤靀䨵鞲韂噔䫤惨颹䬙飱塄餎餙冴餜餷饂饝饢䭰駅䮝騼鬏窃魩鮁鯝鯱鯴䱭鰠㝯𡯂鵉鰺"],["9aa1","黾噐鶓鶽鷀鷼银辶鹻麬麱麽黆铜黢黱黸竈齄𠂔𠊷𠎠椚铃妬𠓗塀铁㞹𠗕𠘕𠙶𡚺块煳𠫂𠫍𠮿呪吆𠯋咞𠯻𠰻𠱓𠱥𠱼惧𠲍噺𠲵𠳝𠳭𠵯𠶲𠷈楕鰯螥𠸄𠸎𠻗𠾐𠼭𠹳尠𠾼帋𡁜𡁏𡁶朞𡁻𡂈𡂖㙇𡂿𡃓𡄯𡄻卤蒭𡋣𡍵𡌶讁𡕷𡘙𡟃𡟇乸炻𡠭𡥪"],["9b40","𡨭𡩅𡰪𡱰𡲬𡻈拃𡻕𡼕熘桕𢁅槩㛈𢉼𢏗𢏺𢜪𢡱𢥏苽𢥧𢦓𢫕覥𢫨辠𢬎鞸𢬿顇骽𢱌"],["9b62","𢲈𢲷𥯨𢴈𢴒𢶷𢶕𢹂𢽴𢿌𣀳𣁦𣌟𣏞徱晈暿𧩹𣕧𣗳爁𤦺矗𣘚𣜖纇𠍆墵朎"],["9ba1","椘𣪧𧙗𥿢𣸑𣺹𧗾𢂚䣐䪸𤄙𨪚𤋮𤌍𤀻𤌴𤎖𤩅𠗊凒𠘑妟𡺨㮾𣳿𤐄𤓖垈𤙴㦛𤜯𨗨𩧉㝢𢇃譞𨭎駖𤠒𤣻𤨕爉𤫀𠱸奥𤺥𤾆𠝹軚𥀬劏圿煱𥊙𥐙𣽊𤪧喼𥑆𥑮𦭒釔㑳𥔿𧘲𥕞䜘𥕢𥕦𥟇𤤿𥡝偦㓻𣏌惞𥤃䝼𨥈𥪮𥮉𥰆𡶐垡煑澶𦄂𧰒遖𦆲𤾚譢𦐂𦑊"],["9c40","嵛𦯷輶𦒄𡤜諪𤧶𦒈𣿯𦔒䯀𦖿𦚵𢜛鑥𥟡憕娧晉侻嚹𤔡𦛼乪𤤴陖涏𦲽㘘襷𦞙𦡮𦐑𦡞營𦣇筂𩃀𠨑𦤦鄄𦤹穅鷰𦧺騦𦨭㙟𦑩𠀡禃𦨴𦭛崬𣔙菏𦮝䛐𦲤画补𦶮墶"],["9ca1","㜜𢖍𧁋𧇍㱔𧊀𧊅銁𢅺𧊋錰𧋦𤧐氹钟𧑐𠻸蠧裵𢤦𨑳𡞱溸𤨪𡠠㦤㚹尐秣䔿暶𩲭𩢤襃𧟌𧡘囖䃟𡘊㦡𣜯𨃨𡏅熭荦𧧝𩆨婧䲷𧂯𨦫𧧽𧨊𧬋𧵦𤅺筃祾𨀉澵𪋟樃𨌘厢𦸇鎿栶靝𨅯𨀣𦦵𡏭𣈯𨁈嶅𨰰𨂃圕頣𨥉嶫𤦈斾槕叒𤪥𣾁㰑朶𨂐𨃴𨄮𡾡𨅏"],["9d40","𨆉𨆯𨈚𨌆𨌯𨎊㗊𨑨𨚪䣺揦𨥖砈鉕𨦸䏲𨧧䏟𨧨𨭆𨯔姸𨰉輋𨿅𩃬筑𩄐𩄼㷷𩅞𤫊运犏嚋𩓧𩗩𩖰𩖸𩜲𩣑𩥉𩥪𩧃𩨨𩬎𩵚𩶛纟𩻸𩼣䲤镇𪊓熢𪋿䶑递𪗋䶜𠲜达嗁"],["9da1","辺𢒰边𤪓䔉繿潖檱仪㓤𨬬𧢝㜺躀𡟵𨀤𨭬𨮙𧨾𦚯㷫𧙕𣲷𥘵𥥖亚𥺁𦉘嚿𠹭踎孭𣺈𤲞揞拐𡟶𡡻攰嘭𥱊吚𥌑㷆𩶘䱽嘢嘞罉𥻘奵𣵀蝰东𠿪𠵉𣚺脗鵞贘瘻鱅癎瞹鍅吲腈苷嘥脲萘肽嗪祢噃吖𠺝㗎嘅嗱曱𨋢㘭甴嗰喺咗啲𠱁𠲖廐𥅈𠹶𢱢"],["9e40","𠺢麫絚嗞𡁵抝靭咔賍燶酶揼掹揾啩𢭃鱲𢺳冚㓟𠶧冧呍唞唓癦踭𦢊疱肶蠄螆裇膶萜𡃁䓬猄𤜆宐茋𦢓噻𢛴𧴯𤆣𧵳𦻐𧊶酰𡇙鈈𣳼𪚩𠺬𠻹牦𡲢䝎𤿂𧿹𠿫䃺"],["9ea1","鱝攟𢶠䣳𤟠𩵼𠿬𠸊恢𧖣𠿭"],["9ead","𦁈𡆇熣纎鵐业丄㕷嬍沲卧㚬㧜卽㚥𤘘墚𤭮舭呋垪𥪕𠥹"],["9ec5","㩒𢑥獴𩺬䴉鯭𣳾𩼰䱛𤾩𩖞𩿞葜𣶶𧊲𦞳𣜠挮紥𣻷𣸬㨪逈勌㹴㙺䗩𠒎癀嫰𠺶硺𧼮墧䂿噼鮋嵴癔𪐴麅䳡痹㟻愙𣃚𤏲"],["9ef5","噝𡊩垧𤥣𩸆刴𧂮㖭汊鵼"],["9f40","籖鬹埞𡝬屓擓𩓐𦌵𧅤蚭𠴨𦴢𤫢𠵱"],["9f4f","凾𡼏嶎霃𡷑麁遌笟鬂峑箣扨挵髿篏鬪籾鬮籂粆鰕篼鬉鼗鰛𤤾齚啳寃俽麘俲剠㸆勑坧偖妷帒韈鶫轜呩鞴饀鞺匬愰"],["9fa1","椬叚鰊鴂䰻陁榀傦畆𡝭駚剳"],["9fae","酙隁酜"],["9fb2","酑𨺗捿𦴣櫊嘑醎畺抅𠏼獏籰𥰡𣳽"],["9fc1","𤤙盖鮝个𠳔莾衂"],["9fc9","届槀僭坺刟巵从氱𠇲伹咜哚劚趂㗾弌㗳"],["9fdb","歒酼龥鮗頮颴骺麨麄煺笔"],["9fe7","毺蠘罸"],["9feb","嘠𪙊蹷齓"],["9ff0","跔蹏鸜踁抂𨍽踨蹵竓𤩷稾磘泪詧瘇"],["a040","𨩚鼦泎蟖痃𪊲硓咢贌狢獱謭猂瓱賫𤪻蘯徺袠䒷"],["a055","𡠻𦸅"],["a058","詾𢔛"],["a05b","惽癧髗鵄鍮鮏蟵"],["a063","蠏賷猬霡鮰㗖犲䰇籑饊𦅙慙䰄麖慽"],["a073","坟慯抦戹拎㩜懢厪𣏵捤栂㗒"],["a0a1","嵗𨯂迚𨸹"],["a0a6","僙𡵆礆匲阸𠼻䁥"],["a0ae","矾"],["a0b0","糂𥼚糚稭聦聣絍甅瓲覔舚朌聢𧒆聛瓰脃眤覉𦟌畓𦻑螩蟎臈螌詉貭譃眫瓸蓚㘵榲趦"],["a0d4","覩瑨涹蟁𤀑瓧㷛煶悤憜㳑煢恷"],["a0e2","罱𨬭牐惩䭾删㰘𣳇𥻗𧙖𥔱𡥄𡋾𩤃𦷜𧂭峁𦆭𨨏𣙷𠃮𦡆𤼎䕢嬟𦍌齐麦𦉫"],["a3c0","␀",31,"␡"],["c6a1","①",9,"⑴",9,"ⅰ",9,"丶丿亅亠冂冖冫勹匸卩厶夊宀巛⼳广廴彐彡攴无疒癶辵隶¨ˆヽヾゝゞ〃仝々〆〇ー[]✽ぁ",23],["c740","す",58,"ァアィイ"],["c7a1","ゥ",81,"А",5,"ЁЖ",4],["c840","Л",26,"ёж",25,"⇧↸↹㇏𠃌乚𠂊刂䒑"],["c8a1","龰冈龱𧘇"],["c8cd","¬¦'"㈱№℡゛゜⺀⺄⺆⺇⺈⺊⺌⺍⺕⺜⺝⺥⺧⺪⺬⺮⺶⺼⺾⻆⻊⻌⻍⻏⻖⻗⻞⻣"],["c8f5","ʃɐɛɔɵœøŋʊɪ"],["f9fe","■"],["fa40","𠕇鋛𠗟𣿅蕌䊵珯况㙉𤥂𨧤鍄𡧛苮𣳈砼杄拟𤤳𨦪𠊠𦮳𡌅侫𢓭倈𦴩𧪄𣘀𤪱𢔓倩𠍾徤𠎀𠍇滛𠐟偽儁㑺儎顬㝃萖𤦤𠒇兠𣎴兪𠯿𢃼𠋥𢔰𠖎𣈳𡦃宂蝽𠖳𣲙冲冸"],["faa1","鴴凉减凑㳜凓𤪦决凢卂凭菍椾𣜭彻刋刦刼劵剗劔効勅簕蕂勠蘍𦬓包𨫞啉滙𣾀𠥔𣿬匳卄𠯢泋𡜦栛珕恊㺪㣌𡛨燝䒢卭却𨚫卾卿𡖖𡘓矦厓𨪛厠厫厮玧𥝲㽙玜叁叅汉义埾叙㪫𠮏叠𣿫𢶣叶𠱷吓灹唫晗浛呭𦭓𠵴啝咏咤䞦𡜍𠻝㶴𠵍"],["fb40","𨦼𢚘啇䳭启琗喆喩嘅𡣗𤀺䕒𤐵暳𡂴嘷曍𣊊暤暭噍噏磱囱鞇叾圀囯园𨭦㘣𡉏坆𤆥汮炋坂㚱𦱾埦𡐖堃𡑔𤍣堦𤯵塜墪㕡壠壜𡈼壻寿坃𪅐𤉸鏓㖡够梦㛃湙"],["fba1","𡘾娤啓𡚒蔅姉𠵎𦲁𦴪𡟜姙𡟻𡞲𦶦浱𡠨𡛕姹𦹅媫婣㛦𤦩婷㜈媖瑥嫓𦾡𢕔㶅𡤑㜲𡚸広勐孶斈孼𧨎䀄䡝𠈄寕慠𡨴𥧌𠖥寳宝䴐尅𡭄尓珎尔𡲥𦬨屉䣝岅峩峯嶋𡷹𡸷崐崘嵆𡺤岺巗苼㠭𤤁𢁉𢅳芇㠶㯂帮檊幵幺𤒼𠳓厦亷廐厨𡝱帉廴𨒂"],["fc40","廹廻㢠廼栾鐛弍𠇁弢㫞䢮𡌺强𦢈𢏐彘𢑱彣鞽𦹮彲鍀𨨶徧嶶㵟𥉐𡽪𧃸𢙨釖𠊞𨨩怱暅𡡷㥣㷇㘹垐𢞴祱㹀悞悤悳𤦂𤦏𧩓璤僡媠慤萤慂慈𦻒憁凴𠙖憇宪𣾷"],["fca1","𢡟懓𨮝𩥝懐㤲𢦀𢣁怣慜攞掋𠄘担𡝰拕𢸍捬𤧟㨗搸揸𡎎𡟼撐澊𢸶頔𤂌𥜝擡擥鑻㩦携㩗敍漖𤨨𤨣斅敭敟𣁾斵𤥀䬷旑䃘𡠩无旣忟𣐀昘𣇷𣇸晄𣆤𣆥晋𠹵晧𥇦晳晴𡸽𣈱𨗴𣇈𥌓矅𢣷馤朂𤎜𤨡㬫槺𣟂杞杧杢𤇍𩃭柗䓩栢湐鈼栁𣏦𦶠桝"],["fd40","𣑯槡樋𨫟楳棃𣗍椁椀㴲㨁𣘼㮀枬楡𨩊䋼椶榘㮡𠏉荣傐槹𣙙𢄪橅𣜃檝㯳枱櫈𩆜㰍欝𠤣惞欵歴𢟍溵𣫛𠎵𡥘㝀吡𣭚毡𣻼毜氷𢒋𤣱𦭑汚舦汹𣶼䓅𣶽𤆤𤤌𤤀"],["fda1","𣳉㛥㳫𠴲鮃𣇹𢒑羏样𦴥𦶡𦷫涖浜湼漄𤥿𤂅𦹲蔳𦽴凇沜渝萮𨬡港𣸯瑓𣾂秌湏媑𣁋濸㜍澝𣸰滺𡒗𤀽䕕鏰潄潜㵎潴𩅰㴻澟𤅄濓𤂑𤅕𤀹𣿰𣾴𤄿凟𤅖𤅗𤅀𦇝灋灾炧炁烌烕烖烟䄄㷨熴熖𤉷焫煅媈煊煮岜𤍥煏鍢𤋁焬𤑚𤨧𤨢熺𨯨炽爎"],["fe40","鑂爕夑鑃爤鍁𥘅爮牀𤥴梽牕牗㹕𣁄栍漽犂猪猫𤠣𨠫䣭𨠄猨献珏玪𠰺𦨮珉瑉𤇢𡛧𤨤昣㛅𤦷𤦍𤧻珷琕椃𤨦琹𠗃㻗瑜𢢭瑠𨺲瑇珤瑶莹瑬㜰瑴鏱樬璂䥓𤪌"],["fea1","𤅟𤩹𨮏孆𨰃𡢞瓈𡦈甎瓩甞𨻙𡩋寗𨺬鎅畍畊畧畮𤾂㼄𤴓疎瑝疞疴瘂瘬癑癏癯癶𦏵皐臯㟸𦤑𦤎皡皥皷盌𦾟葢𥂝𥅽𡸜眞眦着撯𥈠睘𣊬瞯𨥤𨥨𡛁矴砉𡍶𤨒棊碯磇磓隥礮𥗠磗礴碱𧘌辸袄𨬫𦂃𢘜禆褀椂禀𥡗禝𧬹礼禩渪𧄦㺨秆𩄍秔"]]');
  33228. /***/ }),
  33229. /***/ 13336:
  33230. /***/ ((module) => {
  33231. "use strict";
  33232. module.exports = JSON.parse('[["0","\\u0000",127,"€"],["8140","丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪",5,"乲乴",9,"乿",6,"亇亊"],["8180","亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂",6,"伋伌伒",4,"伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾",4,"佄佅佇",5,"佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢"],["8240","侤侫侭侰",4,"侶",8,"俀俁係俆俇俈俉俋俌俍俒",4,"俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿",11],["8280","個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯",10,"倻倽倿偀偁偂偄偅偆偉偊偋偍偐",4,"偖偗偘偙偛偝",7,"偦",5,"偭",8,"偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎",20,"傤傦傪傫傭",4,"傳",6,"傼"],["8340","傽",17,"僐",5,"僗僘僙僛",10,"僨僩僪僫僯僰僱僲僴僶",4,"僼",9,"儈"],["8380","儉儊儌",5,"儓",13,"儢",28,"兂兇兊兌兎兏児兒兓兗兘兙兛兝",4,"兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦",4,"冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒",5],["8440","凘凙凚凜凞凟凢凣凥",5,"凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄",5,"剋剎剏剒剓剕剗剘"],["8480","剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳",9,"剾劀劃",4,"劉",6,"劑劒劔",6,"劜劤劥劦劧劮劯劰労",9,"勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務",5,"勠勡勢勣勥",10,"勱",7,"勻勼勽匁匂匃匄匇匉匊匋匌匎"],["8540","匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯",9,"匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏"],["8580","厐",4,"厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯",6,"厷厸厹厺厼厽厾叀參",4,"収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝",4,"呣呥呧呩",7,"呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡"],["8640","咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠",4,"哫哬哯哰哱哴",5,"哻哾唀唂唃唄唅唈唊",4,"唒唓唕",5,"唜唝唞唟唡唥唦"],["8680","唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋",4,"啑啒啓啔啗",4,"啝啞啟啠啢啣啨啩啫啯",5,"啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠",6,"喨",8,"喲喴営喸喺喼喿",4,"嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗",4,"嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸",4,"嗿嘂嘃嘄嘅"],["8740","嘆嘇嘊嘋嘍嘐",7,"嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀",11,"噏",4,"噕噖噚噛噝",4],["8780","噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽",7,"嚇",6,"嚐嚑嚒嚔",14,"嚤",10,"嚰",6,"嚸嚹嚺嚻嚽",12,"囋",8,"囕囖囘囙囜団囥",5,"囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國",6],["8840","園",9,"圝圞圠圡圢圤圥圦圧圫圱圲圴",4,"圼圽圿坁坃坄坅坆坈坉坋坒",4,"坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀"],["8880","垁垇垈垉垊垍",4,"垔",6,"垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹",8,"埄",6,"埌埍埐埑埓埖埗埛埜埞埡埢埣埥",7,"埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥",4,"堫",4,"報堲堳場堶",7],["8940","堾",5,"塅",6,"塎塏塐塒塓塕塖塗塙",4,"塟",5,"塦",4,"塭",16,"塿墂墄墆墇墈墊墋墌"],["8980","墍",4,"墔",4,"墛墜墝墠",7,"墪",17,"墽墾墿壀壂壃壄壆",10,"壒壓壔壖",13,"壥",5,"壭壯壱売壴壵壷壸壺",7,"夃夅夆夈",4,"夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻"],["8a40","夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛",4,"奡奣奤奦",12,"奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦"],["8a80","妧妬妭妰妱妳",5,"妺妼妽妿",6,"姇姈姉姌姍姎姏姕姖姙姛姞",4,"姤姦姧姩姪姫姭",11,"姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪",6,"娳娵娷",4,"娽娾娿婁",4,"婇婈婋",9,"婖婗婘婙婛",5],["8b40","婡婣婤婥婦婨婩婫",8,"婸婹婻婼婽婾媀",17,"媓",6,"媜",13,"媫媬"],["8b80","媭",4,"媴媶媷媹",4,"媿嫀嫃",5,"嫊嫋嫍",4,"嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬",4,"嫲",22,"嬊",11,"嬘",25,"嬳嬵嬶嬸",7,"孁",6],["8c40","孈",7,"孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏"],["8c80","寑寔",8,"寠寢寣實寧審",4,"寯寱",6,"寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧",6,"屰屲",6,"屻屼屽屾岀岃",4,"岉岊岋岎岏岒岓岕岝",4,"岤",4],["8d40","岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅",5,"峌",5,"峓",5,"峚",6,"峢峣峧峩峫峬峮峯峱",9,"峼",4],["8d80","崁崄崅崈",5,"崏",4,"崕崗崘崙崚崜崝崟",4,"崥崨崪崫崬崯",4,"崵",7,"崿",7,"嵈嵉嵍",10,"嵙嵚嵜嵞",10,"嵪嵭嵮嵰嵱嵲嵳嵵",12,"嶃",21,"嶚嶛嶜嶞嶟嶠"],["8e40","嶡",21,"嶸",12,"巆",6,"巎",12,"巜巟巠巣巤巪巬巭"],["8e80","巰巵巶巸",4,"巿帀帄帇帉帊帋帍帎帒帓帗帞",7,"帨",4,"帯帰帲",4,"帹帺帾帿幀幁幃幆",5,"幍",6,"幖",4,"幜幝幟幠幣",14,"幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨",4,"庮",4,"庴庺庻庼庽庿",6],["8f40","廆廇廈廋",5,"廔廕廗廘廙廚廜",11,"廩廫",8,"廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤"],["8f80","弨弫弬弮弰弲",6,"弻弽弾弿彁",14,"彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢",5,"復徫徬徯",5,"徶徸徹徺徻徾",4,"忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇"],["9040","怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰",4,"怶",4,"怽怾恀恄",6,"恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀"],["9080","悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽",7,"惇惈惉惌",4,"惒惓惔惖惗惙惛惞惡",4,"惪惱惲惵惷惸惻",4,"愂愃愄愅愇愊愋愌愐",4,"愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬",18,"慀",6],["9140","慇慉態慍慏慐慒慓慔慖",6,"慞慟慠慡慣慤慥慦慩",6,"慱慲慳慴慶慸",18,"憌憍憏",4,"憕"],["9180","憖",6,"憞",8,"憪憫憭",9,"憸",5,"憿懀懁懃",4,"應懌",4,"懓懕",16,"懧",13,"懶",8,"戀",5,"戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸",4,"扂扄扅扆扊"],["9240","扏扐払扖扗扙扚扜",6,"扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋",5,"抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁"],["9280","拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳",5,"挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖",7,"捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙",6,"採掤掦掫掯掱掲掵掶掹掻掽掿揀"],["9340","揁揂揃揅揇揈揊揋揌揑揓揔揕揗",6,"揟揢揤",4,"揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆",4,"損搎搑搒搕",5,"搝搟搢搣搤"],["9380","搥搧搨搩搫搮",5,"搵",4,"搻搼搾摀摂摃摉摋",6,"摓摕摖摗摙",4,"摟",7,"摨摪摫摬摮",9,"摻",6,"撃撆撈",8,"撓撔撗撘撚撛撜撝撟",4,"撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆",6,"擏擑擓擔擕擖擙據"],["9440","擛擜擝擟擠擡擣擥擧",24,"攁",7,"攊",7,"攓",4,"攙",8],["9480","攢攣攤攦",4,"攬攭攰攱攲攳攷攺攼攽敀",4,"敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數",14,"斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱",7,"斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘",7,"旡旣旤旪旫"],["9540","旲旳旴旵旸旹旻",4,"昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷",4,"昽昿晀時晄",6,"晍晎晐晑晘"],["9580","晙晛晜晝晞晠晢晣晥晧晩",4,"晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘",4,"暞",8,"暩",4,"暯",4,"暵暶暷暸暺暻暼暽暿",25,"曚曞",7,"曧曨曪",5,"曱曵曶書曺曻曽朁朂會"],["9640","朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠",5,"朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗",4,"杝杢杣杤杦杧杫杬杮東杴杶"],["9680","杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹",7,"柂柅",9,"柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵",7,"柾栁栂栃栄栆栍栐栒栔栕栘",4,"栞栟栠栢",6,"栫",6,"栴栵栶栺栻栿桇桋桍桏桒桖",5],["9740","桜桝桞桟桪桬",7,"桵桸",8,"梂梄梇",7,"梐梑梒梔梕梖梘",9,"梣梤梥梩梪梫梬梮梱梲梴梶梷梸"],["9780","梹",6,"棁棃",5,"棊棌棎棏棐棑棓棔棖棗棙棛",4,"棡棢棤",9,"棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆",4,"椌椏椑椓",11,"椡椢椣椥",7,"椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃",16,"楕楖楘楙楛楜楟"],["9840","楡楢楤楥楧楨楩楪楬業楯楰楲",4,"楺楻楽楾楿榁榃榅榊榋榌榎",5,"榖榗榙榚榝",9,"榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽"],["9880","榾榿槀槂",7,"構槍槏槑槒槓槕",5,"槜槝槞槡",11,"槮槯槰槱槳",9,"槾樀",9,"樋",11,"標",5,"樠樢",5,"権樫樬樭樮樰樲樳樴樶",6,"樿",4,"橅橆橈",7,"橑",6,"橚"],["9940","橜",4,"橢橣橤橦",10,"橲",6,"橺橻橽橾橿檁檂檃檅",8,"檏檒",4,"檘",7,"檡",5],["9980","檧檨檪檭",114,"欥欦欨",6],["9a40","欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍",11,"歚",7,"歨歩歫",13,"歺歽歾歿殀殅殈"],["9a80","殌殎殏殐殑殔殕殗殘殙殜",4,"殢",7,"殫",7,"殶殸",6,"毀毃毄毆",4,"毌毎毐毑毘毚毜",4,"毢",7,"毬毭毮毰毱毲毴毶毷毸毺毻毼毾",6,"氈",4,"氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋",4,"汑汒汓汖汘"],["9b40","汙汚汢汣汥汦汧汫",4,"汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘"],["9b80","泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟",5,"洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽",4,"涃涄涆涇涊涋涍涏涐涒涖",4,"涜涢涥涬涭涰涱涳涴涶涷涹",5,"淁淂淃淈淉淊"],["9c40","淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽",7,"渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵"],["9c80","渶渷渹渻",7,"湅",7,"湏湐湑湒湕湗湙湚湜湝湞湠",10,"湬湭湯",14,"満溁溂溄溇溈溊",4,"溑",6,"溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪",5],["9d40","滰滱滲滳滵滶滷滸滺",7,"漃漄漅漇漈漊",4,"漐漑漒漖",9,"漡漢漣漥漦漧漨漬漮漰漲漴漵漷",6,"漿潀潁潂"],["9d80","潃潄潅潈潉潊潌潎",9,"潙潚潛潝潟潠潡潣潤潥潧",5,"潯潰潱潳潵潶潷潹潻潽",6,"澅澆澇澊澋澏",12,"澝澞澟澠澢",4,"澨",10,"澴澵澷澸澺",5,"濁濃",5,"濊",6,"濓",10,"濟濢濣濤濥"],["9e40","濦",7,"濰",32,"瀒",7,"瀜",6,"瀤",6],["9e80","瀫",9,"瀶瀷瀸瀺",17,"灍灎灐",13,"灟",11,"灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞",12,"炰炲炴炵炶為炾炿烄烅烆烇烉烋",12,"烚"],["9f40","烜烝烞烠烡烢烣烥烪烮烰",6,"烸烺烻烼烾",10,"焋",4,"焑焒焔焗焛",10,"焧",7,"焲焳焴"],["9f80","焵焷",13,"煆煇煈煉煋煍煏",12,"煝煟",4,"煥煩",4,"煯煰煱煴煵煶煷煹煻煼煾",5,"熅",4,"熋熌熍熎熐熑熒熓熕熖熗熚",4,"熡",6,"熩熪熫熭",5,"熴熶熷熸熺",8,"燄",9,"燏",4],["a040","燖",9,"燡燢燣燤燦燨",5,"燯",9,"燺",11,"爇",19],["a080","爛爜爞",9,"爩爫爭爮爯爲爳爴爺爼爾牀",6,"牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅",4,"犌犎犐犑犓",11,"犠",11,"犮犱犲犳犵犺",6,"狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛"],["a1a1"," 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈",7,"〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓"],["a2a1","ⅰ",9],["a2b1","⒈",19,"⑴",19,"①",9],["a2e5","㈠",9],["a2f1","Ⅰ",11],["a3a1","!"#¥%",88," ̄"],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a6e0","︵︶︹︺︿﹀︽︾﹁﹂﹃﹄"],["a6ee","︻︼︷︸︱"],["a6f4","︳︴"],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a840","ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═",35,"▁",6],["a880","█",7,"▓▔▕▼▽◢◣◤◥☉⊕〒〝〞"],["a8a1","āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ"],["a8bd","ńň"],["a8c0","ɡ"],["a8c5","ㄅ",36],["a940","〡",8,"㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦"],["a959","℡㈱"],["a95c","‐"],["a960","ー゛゜ヽヾ〆ゝゞ﹉",9,"﹔﹕﹖﹗﹙",8],["a980","﹢",4,"﹨﹩﹪﹫"],["a996","〇"],["a9a4","─",75],["aa40","狜狝狟狢",5,"狪狫狵狶狹狽狾狿猀猂猄",5,"猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀",8],["aa80","獉獊獋獌獎獏獑獓獔獕獖獘",7,"獡",10,"獮獰獱"],["ab40","獲",11,"獿",4,"玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣",5,"玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃",4],["ab80","珋珌珎珒",6,"珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳",4],["ac40","珸",10,"琄琇琈琋琌琍琎琑",8,"琜",5,"琣琤琧琩琫琭琯琱琲琷",4,"琽琾琿瑀瑂",11],["ac80","瑎",6,"瑖瑘瑝瑠",12,"瑮瑯瑱",4,"瑸瑹瑺"],["ad40","瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑",10,"璝璟",7,"璪",15,"璻",12],["ad80","瓈",9,"瓓",8,"瓝瓟瓡瓥瓧",6,"瓰瓱瓲"],["ae40","瓳瓵瓸",6,"甀甁甂甃甅",7,"甎甐甒甔甕甖甗甛甝甞甠",4,"甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘"],["ae80","畝",7,"畧畨畩畫",6,"畳畵當畷畺",4,"疀疁疂疄疅疇"],["af40","疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦",4,"疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇"],["af80","瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄"],["b040","癅",6,"癎",5,"癕癗",4,"癝癟癠癡癢癤",6,"癬癭癮癰",7,"癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛"],["b080","皜",7,"皥",8,"皯皰皳皵",9,"盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥"],["b140","盄盇盉盋盌盓盕盙盚盜盝盞盠",4,"盦",7,"盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎",10,"眛眜眝眞眡眣眤眥眧眪眫"],["b180","眬眮眰",4,"眹眻眽眾眿睂睄睅睆睈",7,"睒",7,"睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳"],["b240","睝睞睟睠睤睧睩睪睭",11,"睺睻睼瞁瞂瞃瞆",5,"瞏瞐瞓",11,"瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶",4],["b280","瞼瞾矀",12,"矎",8,"矘矙矚矝",4,"矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖"],["b340","矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃",5,"砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚"],["b380","硛硜硞",11,"硯",7,"硸硹硺硻硽",6,"场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚"],["b440","碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨",7,"碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚",9],["b480","磤磥磦磧磩磪磫磭",4,"磳磵磶磸磹磻",5,"礂礃礄礆",6,"础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮"],["b540","礍",5,"礔",9,"礟",4,"礥",14,"礵",4,"礽礿祂祃祄祅祇祊",8,"祔祕祘祙祡祣"],["b580","祤祦祩祪祫祬祮祰",6,"祹祻",4,"禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠"],["b640","禓",6,"禛",11,"禨",10,"禴",4,"禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙",5,"秠秡秢秥秨秪"],["b680","秬秮秱",6,"秹秺秼秾秿稁稄稅稇稈稉稊稌稏",4,"稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二"],["b740","稝稟稡稢稤",14,"稴稵稶稸稺稾穀",5,"穇",9,"穒",4,"穘",16],["b780","穩",6,"穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服"],["b840","窣窤窧窩窪窫窮",4,"窴",10,"竀",10,"竌",9,"竗竘竚竛竜竝竡竢竤竧",5,"竮竰竱竲竳"],["b880","竴",4,"竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹"],["b940","笯笰笲笴笵笶笷笹笻笽笿",5,"筆筈筊筍筎筓筕筗筙筜筞筟筡筣",10,"筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆",6,"箎箏"],["b980","箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹",7,"篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈"],["ba40","篅篈築篊篋篍篎篏篐篒篔",4,"篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲",4,"篸篹篺篻篽篿",7,"簈簉簊簍簎簐",5,"簗簘簙"],["ba80","簚",4,"簠",5,"簨簩簫",12,"簹",5,"籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖"],["bb40","籃",9,"籎",36,"籵",5,"籾",9],["bb80","粈粊",6,"粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴",4,"粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕"],["bc40","粿糀糂糃糄糆糉糋糎",6,"糘糚糛糝糞糡",6,"糩",5,"糰",7,"糹糺糼",13,"紋",5],["bc80","紑",14,"紡紣紤紥紦紨紩紪紬紭紮細",6,"肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件"],["bd40","紷",54,"絯",7],["bd80","絸",32,"健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸"],["be40","継",12,"綧",6,"綯",42],["be80","線",32,"尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻"],["bf40","緻",62],["bf80","縺縼",4,"繂",4,"繈",21,"俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀"],["c040","繞",35,"纃",23,"纜纝纞"],["c080","纮纴纻纼绖绤绬绹缊缐缞缷缹缻",6,"罃罆",9,"罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐"],["c140","罖罙罛罜罝罞罠罣",4,"罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂",7,"羋羍羏",4,"羕",4,"羛羜羠羢羣羥羦羨",6,"羱"],["c180","羳",4,"羺羻羾翀翂翃翄翆翇翈翉翋翍翏",4,"翖翗翙",5,"翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿"],["c240","翤翧翨翪翫翬翭翯翲翴",6,"翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫",5,"耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗"],["c280","聙聛",13,"聫",5,"聲",11,"隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫"],["c340","聾肁肂肅肈肊肍",5,"肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇",4,"胏",6,"胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋"],["c380","脌脕脗脙脛脜脝脟",12,"脭脮脰脳脴脵脷脹",4,"脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸"],["c440","腀",5,"腇腉腍腎腏腒腖腗腘腛",4,"腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃",4,"膉膋膌膍膎膐膒",5,"膙膚膞",4,"膤膥"],["c480","膧膩膫",7,"膴",5,"膼膽膾膿臄臅臇臈臉臋臍",6,"摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁"],["c540","臔",14,"臤臥臦臨臩臫臮",4,"臵",5,"臽臿舃與",4,"舎舏舑舓舕",5,"舝舠舤舥舦舧舩舮舲舺舼舽舿"],["c580","艀艁艂艃艅艆艈艊艌艍艎艐",7,"艙艛艜艝艞艠",7,"艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗"],["c640","艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸"],["c680","苺苼",4,"茊茋茍茐茒茓茖茘茙茝",9,"茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐"],["c740","茾茿荁荂荄荅荈荊",4,"荓荕",4,"荝荢荰",6,"荹荺荾",6,"莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡",6,"莬莭莮"],["c780","莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠"],["c840","菮華菳",4,"菺菻菼菾菿萀萂萅萇萈萉萊萐萒",5,"萙萚萛萞",5,"萩",7,"萲",5,"萹萺萻萾",7,"葇葈葉"],["c880","葊",6,"葒",4,"葘葝葞葟葠葢葤",4,"葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁"],["c940","葽",4,"蒃蒄蒅蒆蒊蒍蒏",7,"蒘蒚蒛蒝蒞蒟蒠蒢",12,"蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗"],["c980","蓘",4,"蓞蓡蓢蓤蓧",4,"蓭蓮蓯蓱",10,"蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳"],["ca40","蔃",8,"蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢",8,"蔭",9,"蔾",4,"蕄蕅蕆蕇蕋",10],["ca80","蕗蕘蕚蕛蕜蕝蕟",4,"蕥蕦蕧蕩",8,"蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱"],["cb40","薂薃薆薈",6,"薐",10,"薝",6,"薥薦薧薩薫薬薭薱",5,"薸薺",6,"藂",6,"藊",4,"藑藒"],["cb80","藔藖",5,"藝",6,"藥藦藧藨藪",14,"恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔"],["cc40","藹藺藼藽藾蘀",4,"蘆",10,"蘒蘓蘔蘕蘗",15,"蘨蘪",13,"蘹蘺蘻蘽蘾蘿虀"],["cc80","虁",11,"虒虓處",4,"虛虜虝號虠虡虣",7,"獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃"],["cd40","虭虯虰虲",6,"蚃",6,"蚎",4,"蚔蚖",5,"蚞",4,"蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻",4,"蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜"],["cd80","蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威"],["ce40","蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀",6,"蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚",5,"蝡蝢蝦",7,"蝯蝱蝲蝳蝵"],["ce80","蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎",4,"螔螕螖螘",6,"螠",4,"巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺"],["cf40","螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁",4,"蟇蟈蟉蟌",4,"蟔",6,"蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯",9],["cf80","蟺蟻蟼蟽蟿蠀蠁蠂蠄",5,"蠋",7,"蠔蠗蠘蠙蠚蠜",4,"蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓"],["d040","蠤",13,"蠳",5,"蠺蠻蠽蠾蠿衁衂衃衆",5,"衎",5,"衕衖衘衚",6,"衦衧衪衭衯衱衳衴衵衶衸衹衺"],["d080","衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗",4,"袝",4,"袣袥",5,"小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄"],["d140","袬袮袯袰袲",4,"袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚",4,"裠裡裦裧裩",6,"裲裵裶裷裺裻製裿褀褁褃",5],["d180","褉褋",4,"褑褔",4,"褜",4,"褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶"],["d240","褸",8,"襂襃襅",24,"襠",5,"襧",19,"襼"],["d280","襽襾覀覂覄覅覇",26,"摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐"],["d340","覢",30,"觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴",6],["d380","觻",4,"訁",5,"計",21,"印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉"],["d440","訞",31,"訿",8,"詉",21],["d480","詟",25,"詺",6,"浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧"],["d540","誁",7,"誋",7,"誔",46],["d580","諃",32,"铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政"],["d640","諤",34,"謈",27],["d680","謤謥謧",30,"帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑"],["d740","譆",31,"譧",4,"譭",25],["d780","讇",24,"讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"],["d840","谸",8,"豂豃豄豅豈豊豋豍",7,"豖豗豘豙豛",5,"豣",6,"豬",6,"豴豵豶豷豻",6,"貃貄貆貇"],["d880","貈貋貍",6,"貕貖貗貙",20,"亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝"],["d940","貮",62],["d980","賭",32,"佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼"],["da40","贎",14,"贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸",8,"趂趃趆趇趈趉趌",4,"趒趓趕",9,"趠趡"],["da80","趢趤",12,"趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺"],["db40","跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾",6,"踆踇踈踋踍踎踐踑踒踓踕",7,"踠踡踤",4,"踫踭踰踲踳踴踶踷踸踻踼踾"],["db80","踿蹃蹅蹆蹌",4,"蹓",5,"蹚",11,"蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝"],["dc40","蹳蹵蹷",4,"蹽蹾躀躂躃躄躆躈",6,"躑躒躓躕",6,"躝躟",11,"躭躮躰躱躳",6,"躻",7],["dc80","軃",10,"軏",21,"堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥"],["dd40","軥",62],["dd80","輤",32,"荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺"],["de40","轅",32,"轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆"],["de80","迉",4,"迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖"],["df40","這逜連逤逥逧",5,"逰",4,"逷逹逺逽逿遀遃遅遆遈",4,"過達違遖遙遚遜",5,"遤遦遧適遪遫遬遯",4,"遶",6,"遾邁"],["df80","還邅邆邇邉邊邌",4,"邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼"],["e040","郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅",19,"鄚鄛鄜"],["e080","鄝鄟鄠鄡鄤",10,"鄰鄲",6,"鄺",8,"酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼"],["e140","酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀",4,"醆醈醊醎醏醓",6,"醜",5,"醤",5,"醫醬醰醱醲醳醶醷醸醹醻"],["e180","醼",10,"釈釋釐釒",9,"針",8,"帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺"],["e240","釦",62],["e280","鈥",32,"狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧",5,"饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂"],["e340","鉆",45,"鉵",16],["e380","銆",7,"銏",24,"恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾"],["e440","銨",5,"銯",24,"鋉",31],["e480","鋩",32,"洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑"],["e540","錊",51,"錿",10],["e580","鍊",31,"鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣"],["e640","鍬",34,"鎐",27],["e680","鎬",29,"鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩"],["e740","鏎",7,"鏗",54],["e780","鐎",32,"纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡",6,"缪缫缬缭缯",4,"缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬"],["e840","鐯",14,"鐿",43,"鑬鑭鑮鑯"],["e880","鑰",20,"钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹"],["e940","锧锳锽镃镈镋镕镚镠镮镴镵長",7,"門",42],["e980","閫",32,"椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋"],["ea40","闌",27,"闬闿阇阓阘阛阞阠阣",6,"阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗"],["ea80","陘陙陚陜陝陞陠陣陥陦陫陭",4,"陳陸",12,"隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰"],["eb40","隌階隑隒隓隕隖隚際隝",9,"隨",7,"隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖",9,"雡",6,"雫"],["eb80","雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗",4,"霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻"],["ec40","霡",8,"霫霬霮霯霱霳",4,"霺霻霼霽霿",18,"靔靕靗靘靚靜靝靟靣靤靦靧靨靪",7],["ec80","靲靵靷",4,"靽",7,"鞆",4,"鞌鞎鞏鞐鞓鞕鞖鞗鞙",4,"臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐"],["ed40","鞞鞟鞡鞢鞤",6,"鞬鞮鞰鞱鞳鞵",46],["ed80","韤韥韨韮",4,"韴韷",23,"怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨"],["ee40","頏",62],["ee80","顎",32,"睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶",4,"钼钽钿铄铈",6,"铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪"],["ef40","顯",5,"颋颎颒颕颙颣風",37,"飏飐飔飖飗飛飜飝飠",4],["ef80","飥飦飩",30,"铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒",4,"锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤",8,"镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔"],["f040","餈",4,"餎餏餑",28,"餯",26],["f080","饊",9,"饖",12,"饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨",4,"鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦",6,"鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙"],["f140","馌馎馚",10,"馦馧馩",47],["f180","駙",32,"瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃"],["f240","駺",62],["f280","騹",32,"颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒"],["f340","驚",17,"驲骃骉骍骎骔骕骙骦骩",6,"骲骳骴骵骹骻骽骾骿髃髄髆",4,"髍髎髏髐髒體髕髖髗髙髚髛髜"],["f380","髝髞髠髢髣髤髥髧髨髩髪髬髮髰",8,"髺髼",6,"鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋"],["f440","鬇鬉",5,"鬐鬑鬒鬔",10,"鬠鬡鬢鬤",10,"鬰鬱鬳",7,"鬽鬾鬿魀魆魊魋魌魎魐魒魓魕",5],["f480","魛",32,"簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤"],["f540","魼",62],["f580","鮻",32,"酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜"],["f640","鯜",62],["f680","鰛",32,"觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅",5,"龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞",5,"鲥",4,"鲫鲭鲮鲰",7,"鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋"],["f740","鰼",62],["f780","鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾",4,"鳈鳉鳑鳒鳚鳛鳠鳡鳌",4,"鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄"],["f840","鳣",62],["f880","鴢",32],["f940","鵃",62],["f980","鶂",32],["fa40","鶣",62],["fa80","鷢",32],["fb40","鸃",27,"鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴",9,"麀"],["fb80","麁麃麄麅麆麉麊麌",5,"麔",8,"麞麠",5,"麧麨麩麪"],["fc40","麫",8,"麵麶麷麹麺麼麿",4,"黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰",8,"黺黽黿",6],["fc80","鼆",4,"鼌鼏鼑鼒鼔鼕鼖鼘鼚",5,"鼡鼣",8,"鼭鼮鼰鼱"],["fd40","鼲",4,"鼸鼺鼼鼿",4,"齅",10,"齒",38],["fd80","齹",5,"龁龂龍",11,"龜龝龞龡",4,"郎凉秊裏隣"],["fe40","兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩"]]');
  33233. /***/ }),
  33234. /***/ 77348:
  33235. /***/ ((module) => {
  33236. "use strict";
  33237. module.exports = JSON.parse('[["0","\\u0000",127],["8141","갂갃갅갆갋",4,"갘갞갟갡갢갣갥",6,"갮갲갳갴"],["8161","갵갶갷갺갻갽갾갿걁",9,"걌걎",5,"걕"],["8181","걖걗걙걚걛걝",18,"걲걳걵걶걹걻",4,"겂겇겈겍겎겏겑겒겓겕",6,"겞겢",5,"겫겭겮겱",6,"겺겾겿곀곂곃곅곆곇곉곊곋곍",7,"곖곘",7,"곢곣곥곦곩곫곭곮곲곴곷",4,"곾곿괁괂괃괅괇",4,"괎괐괒괓"],["8241","괔괕괖괗괙괚괛괝괞괟괡",7,"괪괫괮",5],["8261","괶괷괹괺괻괽",6,"굆굈굊",5,"굑굒굓굕굖굗"],["8281","굙",7,"굢굤",7,"굮굯굱굲굷굸굹굺굾궀궃",4,"궊궋궍궎궏궑",10,"궞",5,"궥",17,"궸",7,"귂귃귅귆귇귉",6,"귒귔",7,"귝귞귟귡귢귣귥",18],["8341","귺귻귽귾긂",5,"긊긌긎",5,"긕",7],["8361","긝",18,"긲긳긵긶긹긻긼"],["8381","긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗",4,"깞깢깣깤깦깧깪깫깭깮깯깱",6,"깺깾",5,"꺆",5,"꺍",46,"꺿껁껂껃껅",6,"껎껒",5,"껚껛껝",8],["8441","껦껧껩껪껬껮",5,"껵껶껷껹껺껻껽",8],["8461","꼆꼉꼊꼋꼌꼎꼏꼑",18],["8481","꼤",7,"꼮꼯꼱꼳꼵",6,"꼾꽀꽄꽅꽆꽇꽊",5,"꽑",10,"꽞",5,"꽦",18,"꽺",5,"꾁꾂꾃꾅꾆꾇꾉",6,"꾒꾓꾔꾖",5,"꾝",26,"꾺꾻꾽꾾"],["8541","꾿꿁",5,"꿊꿌꿏",4,"꿕",6,"꿝",4],["8561","꿢",5,"꿪",5,"꿲꿳꿵꿶꿷꿹",6,"뀂뀃"],["8581","뀅",6,"뀍뀎뀏뀑뀒뀓뀕",6,"뀞",9,"뀩",26,"끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞",29,"끾끿낁낂낃낅",6,"낎낐낒",5,"낛낝낞낣낤"],["8641","낥낦낧낪낰낲낶낷낹낺낻낽",6,"냆냊",5,"냒"],["8661","냓냕냖냗냙",6,"냡냢냣냤냦",10],["8681","냱",22,"넊넍넎넏넑넔넕넖넗넚넞",4,"넦넧넩넪넫넭",6,"넶넺",5,"녂녃녅녆녇녉",6,"녒녓녖녗녙녚녛녝녞녟녡",22,"녺녻녽녾녿놁놃",4,"놊놌놎놏놐놑놕놖놗놙놚놛놝"],["8741","놞",9,"놩",15],["8761","놹",18,"뇍뇎뇏뇑뇒뇓뇕"],["8781","뇖",5,"뇞뇠",7,"뇪뇫뇭뇮뇯뇱",7,"뇺뇼뇾",5,"눆눇눉눊눍",6,"눖눘눚",5,"눡",18,"눵",6,"눽",26,"뉙뉚뉛뉝뉞뉟뉡",6,"뉪",4],["8841","뉯",4,"뉶",5,"뉽",6,"늆늇늈늊",4],["8861","늏늒늓늕늖늗늛",4,"늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷"],["8881","늸",15,"닊닋닍닎닏닑닓",4,"닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉",6,"댒댖",5,"댝",54,"덗덙덚덝덠덡덢덣"],["8941","덦덨덪덬덭덯덲덳덵덶덷덹",6,"뎂뎆",5,"뎍"],["8961","뎎뎏뎑뎒뎓뎕",10,"뎢",5,"뎩뎪뎫뎭"],["8981","뎮",21,"돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩",18,"돽",18,"됑",6,"됙됚됛됝됞됟됡",6,"됪됬",7,"됵",15],["8a41","둅",10,"둒둓둕둖둗둙",6,"둢둤둦"],["8a61","둧",4,"둭",18,"뒁뒂"],["8a81","뒃",4,"뒉",19,"뒞",5,"뒥뒦뒧뒩뒪뒫뒭",7,"뒶뒸뒺",5,"듁듂듃듅듆듇듉",6,"듑듒듓듔듖",5,"듞듟듡듢듥듧",4,"듮듰듲",5,"듹",26,"딖딗딙딚딝"],["8b41","딞",5,"딦딫",4,"딲딳딵딶딷딹",6,"땂땆"],["8b61","땇땈땉땊땎땏땑땒땓땕",6,"땞땢",8],["8b81","땫",52,"떢떣떥떦떧떩떬떭떮떯떲떶",4,"떾떿뗁뗂뗃뗅",6,"뗎뗒",5,"뗙",18,"뗭",18],["8c41","똀",15,"똒똓똕똖똗똙",4],["8c61","똞",6,"똦",5,"똭",6,"똵",5],["8c81","똻",12,"뙉",26,"뙥뙦뙧뙩",50,"뚞뚟뚡뚢뚣뚥",5,"뚭뚮뚯뚰뚲",16],["8d41","뛃",16,"뛕",8],["8d61","뛞",17,"뛱뛲뛳뛵뛶뛷뛹뛺"],["8d81","뛻",4,"뜂뜃뜄뜆",33,"뜪뜫뜭뜮뜱",6,"뜺뜼",7,"띅띆띇띉띊띋띍",6,"띖",9,"띡띢띣띥띦띧띩",6,"띲띴띶",5,"띾띿랁랂랃랅",6,"랎랓랔랕랚랛랝랞"],["8e41","랟랡",6,"랪랮",5,"랶랷랹",8],["8e61","럂",4,"럈럊",19],["8e81","럞",13,"럮럯럱럲럳럵",6,"럾렂",4,"렊렋렍렎렏렑",6,"렚렜렞",5,"렦렧렩렪렫렭",6,"렶렺",5,"롁롂롃롅",11,"롒롔",7,"롞롟롡롢롣롥",6,"롮롰롲",5,"롹롺롻롽",7],["8f41","뢅",7,"뢎",17],["8f61","뢠",7,"뢩",6,"뢱뢲뢳뢵뢶뢷뢹",4],["8f81","뢾뢿룂룄룆",5,"룍룎룏룑룒룓룕",7,"룞룠룢",5,"룪룫룭룮룯룱",6,"룺룼룾",5,"뤅",18,"뤙",6,"뤡",26,"뤾뤿륁륂륃륅",6,"륍륎륐륒",5],["9041","륚륛륝륞륟륡",6,"륪륬륮",5,"륶륷륹륺륻륽"],["9061","륾",5,"릆릈릋릌릏",15],["9081","릟",12,"릮릯릱릲릳릵",6,"릾맀맂",5,"맊맋맍맓",4,"맚맜맟맠맢맦맧맩맪맫맭",6,"맶맻",4,"먂",5,"먉",11,"먖",33,"먺먻먽먾먿멁멃멄멅멆"],["9141","멇멊멌멏멐멑멒멖멗멙멚멛멝",6,"멦멪",5],["9161","멲멳멵멶멷멹",9,"몆몈몉몊몋몍",5],["9181","몓",20,"몪몭몮몯몱몳",4,"몺몼몾",5,"뫅뫆뫇뫉",14,"뫚",33,"뫽뫾뫿묁묂묃묅",7,"묎묐묒",5,"묙묚묛묝묞묟묡",6],["9241","묨묪묬",7,"묷묹묺묿",4,"뭆뭈뭊뭋뭌뭎뭑뭒"],["9261","뭓뭕뭖뭗뭙",7,"뭢뭤",7,"뭭",4],["9281","뭲",21,"뮉뮊뮋뮍뮎뮏뮑",18,"뮥뮦뮧뮩뮪뮫뮭",6,"뮵뮶뮸",7,"믁믂믃믅믆믇믉",6,"믑믒믔",35,"믺믻믽믾밁"],["9341","밃",4,"밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵"],["9361","밶밷밹",6,"뱂뱆뱇뱈뱊뱋뱎뱏뱑",8],["9381","뱚뱛뱜뱞",37,"벆벇벉벊벍벏",4,"벖벘벛",4,"벢벣벥벦벩",6,"벲벶",5,"벾벿볁볂볃볅",7,"볎볒볓볔볖볗볙볚볛볝",22,"볷볹볺볻볽"],["9441","볾",5,"봆봈봊",5,"봑봒봓봕",8],["9461","봞",5,"봥",6,"봭",12],["9481","봺",5,"뵁",6,"뵊뵋뵍뵎뵏뵑",6,"뵚",9,"뵥뵦뵧뵩",22,"붂붃붅붆붋",4,"붒붔붖붗붘붛붝",6,"붥",10,"붱",6,"붹",24],["9541","뷒뷓뷖뷗뷙뷚뷛뷝",11,"뷪",5,"뷱"],["9561","뷲뷳뷵뷶뷷뷹",6,"븁븂븄븆",5,"븎븏븑븒븓"],["9581","븕",6,"븞븠",35,"빆빇빉빊빋빍빏",4,"빖빘빜빝빞빟빢빣빥빦빧빩빫",4,"빲빶",4,"빾빿뺁뺂뺃뺅",6,"뺎뺒",5,"뺚",13,"뺩",14],["9641","뺸",23,"뻒뻓"],["9661","뻕뻖뻙",6,"뻡뻢뻦",5,"뻭",8],["9681","뻶",10,"뼂",5,"뼊",13,"뼚뼞",33,"뽂뽃뽅뽆뽇뽉",6,"뽒뽓뽔뽖",44],["9741","뾃",16,"뾕",8],["9761","뾞",17,"뾱",7],["9781","뾹",11,"뿆",5,"뿎뿏뿑뿒뿓뿕",6,"뿝뿞뿠뿢",89,"쀽쀾쀿"],["9841","쁀",16,"쁒",5,"쁙쁚쁛"],["9861","쁝쁞쁟쁡",6,"쁪",15],["9881","쁺",21,"삒삓삕삖삗삙",6,"삢삤삦",5,"삮삱삲삷",4,"삾샂샃샄샆샇샊샋샍샎샏샑",6,"샚샞",5,"샦샧샩샪샫샭",6,"샶샸샺",5,"섁섂섃섅섆섇섉",6,"섑섒섓섔섖",5,"섡섢섥섨섩섪섫섮"],["9941","섲섳섴섵섷섺섻섽섾섿셁",6,"셊셎",5,"셖셗"],["9961","셙셚셛셝",6,"셦셪",5,"셱셲셳셵셶셷셹셺셻"],["9981","셼",8,"솆",5,"솏솑솒솓솕솗",4,"솞솠솢솣솤솦솧솪솫솭솮솯솱",11,"솾",5,"쇅쇆쇇쇉쇊쇋쇍",6,"쇕쇖쇙",6,"쇡쇢쇣쇥쇦쇧쇩",6,"쇲쇴",7,"쇾쇿숁숂숃숅",6,"숎숐숒",5,"숚숛숝숞숡숢숣"],["9a41","숤숥숦숧숪숬숮숰숳숵",16],["9a61","쉆쉇쉉",6,"쉒쉓쉕쉖쉗쉙",6,"쉡쉢쉣쉤쉦"],["9a81","쉧",4,"쉮쉯쉱쉲쉳쉵",6,"쉾슀슂",5,"슊",5,"슑",6,"슙슚슜슞",5,"슦슧슩슪슫슮",5,"슶슸슺",33,"싞싟싡싢싥",5,"싮싰싲싳싴싵싷싺싽싾싿쌁",6,"쌊쌋쌎쌏"],["9b41","쌐쌑쌒쌖쌗쌙쌚쌛쌝",6,"쌦쌧쌪",8],["9b61","쌳",17,"썆",7],["9b81","썎",25,"썪썫썭썮썯썱썳",4,"썺썻썾",5,"쎅쎆쎇쎉쎊쎋쎍",50,"쏁",22,"쏚"],["9c41","쏛쏝쏞쏡쏣",4,"쏪쏫쏬쏮",5,"쏶쏷쏹",5],["9c61","쏿",8,"쐉",6,"쐑",9],["9c81","쐛",8,"쐥",6,"쐭쐮쐯쐱쐲쐳쐵",6,"쐾",9,"쑉",26,"쑦쑧쑩쑪쑫쑭",6,"쑶쑷쑸쑺",5,"쒁",18,"쒕",6,"쒝",12],["9d41","쒪",13,"쒹쒺쒻쒽",8],["9d61","쓆",25],["9d81","쓠",8,"쓪",5,"쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂",9,"씍씎씏씑씒씓씕",6,"씝",10,"씪씫씭씮씯씱",6,"씺씼씾",5,"앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩",6,"앲앶",5,"앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔"],["9e41","얖얙얚얛얝얞얟얡",7,"얪",9,"얶"],["9e61","얷얺얿",4,"엋엍엏엒엓엕엖엗엙",6,"엢엤엦엧"],["9e81","엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑",6,"옚옝",6,"옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉",6,"왒왖",5,"왞왟왡",10,"왭왮왰왲",5,"왺왻왽왾왿욁",6,"욊욌욎",5,"욖욗욙욚욛욝",6,"욦"],["9f41","욨욪",5,"욲욳욵욶욷욻",4,"웂웄웆",5,"웎"],["9f61","웏웑웒웓웕",6,"웞웟웢",5,"웪웫웭웮웯웱웲"],["9f81","웳",4,"웺웻웼웾",5,"윆윇윉윊윋윍",6,"윖윘윚",5,"윢윣윥윦윧윩",6,"윲윴윶윸윹윺윻윾윿읁읂읃읅",4,"읋읎읐읙읚읛읝읞읟읡",6,"읩읪읬",7,"읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛",4,"잢잧",4,"잮잯잱잲잳잵잶잷"],["a041","잸잹잺잻잾쟂",5,"쟊쟋쟍쟏쟑",6,"쟙쟚쟛쟜"],["a061","쟞",5,"쟥쟦쟧쟩쟪쟫쟭",13],["a081","쟻",4,"젂젃젅젆젇젉젋",4,"젒젔젗",4,"젞젟젡젢젣젥",6,"젮젰젲",5,"젹젺젻젽젾젿졁",6,"졊졋졎",5,"졕",26,"졲졳졵졶졷졹졻",4,"좂좄좈좉좊좎",5,"좕",7,"좞좠좢좣좤"],["a141","좥좦좧좩",18,"좾좿죀죁"],["a161","죂죃죅죆죇죉죊죋죍",6,"죖죘죚",5,"죢죣죥"],["a181","죦",14,"죶",5,"죾죿줁줂줃줇",4,"줎 、。·‥…¨〃­―∥\∼‘’“”〔〕〈",9,"±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬"],["a241","줐줒",5,"줙",18],["a261","줭",6,"줵",18],["a281","쥈",7,"쥒쥓쥕쥖쥗쥙",6,"쥢쥤",7,"쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®"],["a341","쥱쥲쥳쥵",6,"쥽",10,"즊즋즍즎즏"],["a361","즑",6,"즚즜즞",16],["a381","즯",16,"짂짃짅짆짉짋",4,"짒짔짗짘짛!",58,"₩]",32," ̄"],["a441","짞짟짡짣짥짦짨짩짪짫짮짲",5,"짺짻짽짾짿쨁쨂쨃쨄"],["a461","쨅쨆쨇쨊쨎",5,"쨕쨖쨗쨙",12],["a481","쨦쨧쨨쨪",28,"ㄱ",93],["a541","쩇",4,"쩎쩏쩑쩒쩓쩕",6,"쩞쩢",5,"쩩쩪"],["a561","쩫",17,"쩾",5,"쪅쪆"],["a581","쪇",16,"쪙",14,"ⅰ",9],["a5b0","Ⅰ",9],["a5c1","Α",16,"Σ",6],["a5e1","α",16,"σ",6],["a641","쪨",19,"쪾쪿쫁쫂쫃쫅"],["a661","쫆",5,"쫎쫐쫒쫔쫕쫖쫗쫚",5,"쫡",6],["a681","쫨쫩쫪쫫쫭",6,"쫵",18,"쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃",7],["a741","쬋",4,"쬑쬒쬓쬕쬖쬗쬙",6,"쬢",7],["a761","쬪",22,"쭂쭃쭄"],["a781","쭅쭆쭇쭊쭋쭍쭎쭏쭑",6,"쭚쭛쭜쭞",5,"쭥",7,"㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙",9,"㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰",9,"㎀",4,"㎺",5,"㎐",4,"Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆"],["a841","쭭",10,"쭺",14],["a861","쮉",18,"쮝",6],["a881","쮤",19,"쮹",11,"ÆÐªĦ"],["a8a6","IJ"],["a8a8","ĿŁØŒºÞŦŊ"],["a8b1","㉠",27,"ⓐ",25,"①",14,"½⅓⅔¼¾⅛⅜⅝⅞"],["a941","쯅",14,"쯕",10],["a961","쯠쯡쯢쯣쯥쯦쯨쯪",18],["a981","쯽",14,"찎찏찑찒찓찕",6,"찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀",27,"⒜",25,"⑴",14,"¹²³⁴ⁿ₁₂₃₄"],["aa41","찥찦찪찫찭찯찱",6,"찺찿",4,"챆챇챉챊챋챍챎"],["aa61","챏",4,"챖챚",5,"챡챢챣챥챧챩",6,"챱챲"],["aa81","챳챴챶",29,"ぁ",82],["ab41","첔첕첖첗첚첛첝첞첟첡",6,"첪첮",5,"첶첷첹"],["ab61","첺첻첽",6,"쳆쳈쳊",5,"쳑쳒쳓쳕",5],["ab81","쳛",8,"쳥",6,"쳭쳮쳯쳱",12,"ァ",85],["ac41","쳾쳿촀촂",5,"촊촋촍촎촏촑",6,"촚촜촞촟촠"],["ac61","촡촢촣촥촦촧촩촪촫촭",11,"촺",4],["ac81","촿",28,"쵝쵞쵟А",5,"ЁЖ",25],["acd1","а",5,"ёж",25],["ad41","쵡쵢쵣쵥",6,"쵮쵰쵲",5,"쵹",7],["ad61","춁",6,"춉",10,"춖춗춙춚춛춝춞춟"],["ad81","춠춡춢춣춦춨춪",5,"춱",18,"췅"],["ae41","췆",5,"췍췎췏췑",16],["ae61","췢",5,"췩췪췫췭췮췯췱",6,"췺췼췾",4],["ae81","츃츅츆츇츉츊츋츍",6,"츕츖츗츘츚",5,"츢츣츥츦츧츩츪츫"],["af41","츬츭츮츯츲츴츶",19],["af61","칊",13,"칚칛칝칞칢",5,"칪칬"],["af81","칮",5,"칶칷칹칺칻칽",6,"캆캈캊",5,"캒캓캕캖캗캙"],["b041","캚",5,"캢캦",5,"캮",12],["b061","캻",5,"컂",19],["b081","컖",13,"컦컧컩컪컭",6,"컶컺",5,"가각간갇갈갉갊감",7,"같",4,"갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆"],["b141","켂켃켅켆켇켉",6,"켒켔켖",5,"켝켞켟켡켢켣"],["b161","켥",6,"켮켲",5,"켹",11],["b181","콅",14,"콖콗콙콚콛콝",6,"콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸"],["b241","콭콮콯콲콳콵콶콷콹",6,"쾁쾂쾃쾄쾆",5,"쾍"],["b261","쾎",18,"쾢",5,"쾩"],["b281","쾪",5,"쾱",18,"쿅",6,"깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙"],["b341","쿌",19,"쿢쿣쿥쿦쿧쿩"],["b361","쿪",5,"쿲쿴쿶",5,"쿽쿾쿿퀁퀂퀃퀅",5],["b381","퀋",5,"퀒",5,"퀙",19,"끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫",4,"낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝"],["b441","퀮",5,"퀶퀷퀹퀺퀻퀽",6,"큆큈큊",5],["b461","큑큒큓큕큖큗큙",6,"큡",10,"큮큯"],["b481","큱큲큳큵",6,"큾큿킀킂",18,"뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫",4,"닳담답닷",4,"닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥"],["b541","킕",14,"킦킧킩킪킫킭",5],["b561","킳킶킸킺",5,"탂탃탅탆탇탊",5,"탒탖",4],["b581","탛탞탟탡탢탣탥",6,"탮탲",5,"탹",11,"덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸"],["b641","턅",7,"턎",17],["b661","턠",15,"턲턳턵턶턷턹턻턼턽턾"],["b681","턿텂텆",5,"텎텏텑텒텓텕",6,"텞텠텢",5,"텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗"],["b741","텮",13,"텽",6,"톅톆톇톉톊"],["b761","톋",20,"톢톣톥톦톧"],["b781","톩",6,"톲톴톶톷톸톹톻톽톾톿퇁",14,"래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩"],["b841","퇐",7,"퇙",17],["b861","퇫",8,"퇵퇶퇷퇹",13],["b881","툈툊",5,"툑",24,"륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많",4,"맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼"],["b941","툪툫툮툯툱툲툳툵",6,"툾퉀퉂",5,"퉉퉊퉋퉌"],["b961","퉍",14,"퉝",6,"퉥퉦퉧퉨"],["b981","퉩",22,"튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바",4,"받",4,"밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗"],["ba41","튍튎튏튒튓튔튖",5,"튝튞튟튡튢튣튥",6,"튭"],["ba61","튮튯튰튲",5,"튺튻튽튾틁틃",4,"틊틌",5],["ba81","틒틓틕틖틗틙틚틛틝",6,"틦",9,"틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤"],["bb41","틻",4,"팂팄팆",5,"팏팑팒팓팕팗",4,"팞팢팣"],["bb61","팤팦팧팪팫팭팮팯팱",6,"팺팾",5,"퍆퍇퍈퍉"],["bb81","퍊",31,"빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤"],["bc41","퍪",17,"퍾퍿펁펂펃펅펆펇"],["bc61","펈펉펊펋펎펒",5,"펚펛펝펞펟펡",6,"펪펬펮"],["bc81","펯",4,"펵펶펷펹펺펻펽",6,"폆폇폊",5,"폑",5,"샥샨샬샴샵샷샹섀섄섈섐섕서",4,"섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭"],["bd41","폗폙",7,"폢폤",7,"폮폯폱폲폳폵폶폷"],["bd61","폸폹폺폻폾퐀퐂",5,"퐉",13],["bd81","퐗",5,"퐞",25,"숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰"],["be41","퐸",7,"푁푂푃푅",14],["be61","푔",7,"푝푞푟푡푢푣푥",7,"푮푰푱푲"],["be81","푳",4,"푺푻푽푾풁풃",4,"풊풌풎",5,"풕",8,"쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄",6,"엌엎"],["bf41","풞",10,"풪",14],["bf61","풹",18,"퓍퓎퓏퓑퓒퓓퓕"],["bf81","퓖",5,"퓝퓞퓠",7,"퓩퓪퓫퓭퓮퓯퓱",6,"퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염",5,"옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨"],["c041","퓾",5,"픅픆픇픉픊픋픍",6,"픖픘",5],["c061","픞",25],["c081","픸픹픺픻픾픿핁핂핃핅",6,"핎핐핒",5,"핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응",7,"읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊"],["c141","핤핦핧핪핬핮",5,"핶핷핹핺핻핽",6,"햆햊햋"],["c161","햌햍햎햏햑",19,"햦햧"],["c181","햨",31,"점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓"],["c241","헊헋헍헎헏헑헓",4,"헚헜헞",5,"헦헧헩헪헫헭헮"],["c261","헯",4,"헶헸헺",5,"혂혃혅혆혇혉",6,"혒"],["c281","혖",5,"혝혞혟혡혢혣혥",7,"혮",9,"혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻"],["c341","혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝",4],["c361","홢",4,"홨홪",5,"홲홳홵",11],["c381","횁횂횄횆",5,"횎횏횑횒횓횕",7,"횞횠횢",5,"횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층"],["c441","횫횭횮횯횱",7,"횺횼",7,"훆훇훉훊훋"],["c461","훍훎훏훐훒훓훕훖훘훚",5,"훡훢훣훥훦훧훩",4],["c481","훮훯훱훲훳훴훶",5,"훾훿휁휂휃휅",11,"휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼"],["c541","휕휖휗휚휛휝휞휟휡",6,"휪휬휮",5,"휶휷휹"],["c561","휺휻휽",6,"흅흆흈흊",5,"흒흓흕흚",4],["c581","흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵",6,"흾흿힀힂",5,"힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜"],["c641","힍힎힏힑",6,"힚힜힞",5],["c6a1","퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁"],["c7a1","퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠"],["c8a1","혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝"],["caa1","伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕"],["cba1","匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢"],["cca1","瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械"],["cda1","棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜"],["cea1","科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾"],["cfa1","區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴"],["d0a1","鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣"],["d1a1","朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩",5,"那樂",4,"諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉"],["d2a1","納臘蠟衲囊娘廊",4,"乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧",5,"駑魯",10,"濃籠聾膿農惱牢磊腦賂雷尿壘",7,"嫩訥杻紐勒",5,"能菱陵尼泥匿溺多茶"],["d3a1","丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃"],["d4a1","棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅"],["d5a1","蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣"],["d6a1","煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼"],["d7a1","遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬"],["d8a1","立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅"],["d9a1","蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文"],["daa1","汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑"],["dba1","發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖"],["dca1","碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦"],["dda1","孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥"],["dea1","脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索"],["dfa1","傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署"],["e0a1","胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬"],["e1a1","聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁"],["e2a1","戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧"],["e3a1","嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁"],["e4a1","沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額"],["e5a1","櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬"],["e6a1","旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒"],["e7a1","簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳"],["e8a1","烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療"],["e9a1","窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓"],["eaa1","運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜"],["eba1","濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼"],["eca1","議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄"],["eda1","立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長"],["eea1","障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱"],["efa1","煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖"],["f0a1","靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫"],["f1a1","踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只"],["f2a1","咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯"],["f3a1","鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策"],["f4a1","責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢"],["f5a1","椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃"],["f6a1","贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託"],["f7a1","鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑"],["f8a1","阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃"],["f9a1","品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航"],["faa1","行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型"],["fba1","形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵"],["fca1","禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆"],["fda1","爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰"]]');
  33238. /***/ }),
  33239. /***/ 74284:
  33240. /***/ ((module) => {
  33241. "use strict";
  33242. module.exports = JSON.parse('[["0","\\u0000",127],["a140"," ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚"],["a1a1","﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢",4,"~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/"],["a240","\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁",7,"▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭"],["a2a1","╮╰╯═╞╪╡◢◣◥◤╱╲╳0",9,"Ⅰ",9,"〡",8,"十卄卅A",25,"a",21],["a340","wxyzΑ",16,"Σ",6,"α",16,"σ",6,"ㄅ",10],["a3a1","ㄐ",25,"˙ˉˊˇˋ"],["a3e1","€"],["a440","一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才"],["a4a1","丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙"],["a540","世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外"],["a5a1","央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全"],["a640","共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年"],["a6a1","式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣"],["a740","作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍"],["a7a1","均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠"],["a840","杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒"],["a8a1","芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵"],["a940","咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居"],["a9a1","屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊"],["aa40","昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠"],["aaa1","炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附"],["ab40","陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品"],["aba1","哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷"],["ac40","拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗"],["aca1","活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄"],["ad40","耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥"],["ada1","迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪"],["ae40","哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙"],["aea1","恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓"],["af40","浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷"],["afa1","砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃"],["b040","虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡"],["b0a1","陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀"],["b140","娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽"],["b1a1","情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺"],["b240","毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶"],["b2a1","瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼"],["b340","莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途"],["b3a1","部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠"],["b440","婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍"],["b4a1","插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋"],["b540","溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘"],["b5a1","窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁"],["b640","詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑"],["b6a1","間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼"],["b740","媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業"],["b7a1","楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督"],["b840","睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫"],["b8a1","腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊"],["b940","辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴"],["b9a1","飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇"],["ba40","愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢"],["baa1","滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬"],["bb40","罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤"],["bba1","說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜"],["bc40","劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂"],["bca1","慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃"],["bd40","瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯"],["bda1","翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞"],["be40","輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉"],["bea1","鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡"],["bf40","濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊"],["bfa1","縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚"],["c040","錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇"],["c0a1","嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬"],["c140","瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪"],["c1a1","薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁"],["c240","駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘"],["c2a1","癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦"],["c340","鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸"],["c3a1","獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類"],["c440","願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼"],["c4a1","纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴"],["c540","護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬"],["c5a1","禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒"],["c640","讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲"],["c940","乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕"],["c9a1","氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋"],["ca40","汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘"],["caa1","吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇"],["cb40","杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓"],["cba1","芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢"],["cc40","坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋"],["cca1","怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲"],["cd40","泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺"],["cda1","矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏"],["ce40","哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛"],["cea1","峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺"],["cf40","柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂"],["cfa1","洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀"],["d040","穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪"],["d0a1","苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱"],["d140","唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧"],["d1a1","恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤"],["d240","毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸"],["d2a1","牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐"],["d340","笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢"],["d3a1","荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐"],["d440","酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅"],["d4a1","唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏"],["d540","崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟"],["d5a1","捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉"],["d640","淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏"],["d6a1","痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟"],["d740","耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷"],["d7a1","蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪"],["d840","釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷"],["d8a1","堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔"],["d940","惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒"],["d9a1","晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞"],["da40","湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖"],["daa1","琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥"],["db40","罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳"],["dba1","菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺"],["dc40","軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈"],["dca1","隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆"],["dd40","媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤"],["dda1","搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼"],["de40","毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓"],["dea1","煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓"],["df40","稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯"],["dfa1","腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤"],["e040","觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿"],["e0a1","遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠"],["e140","凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠"],["e1a1","寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉"],["e240","榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊"],["e2a1","漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓"],["e340","禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞"],["e3a1","耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻"],["e440","裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍"],["e4a1","銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘"],["e540","噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉"],["e5a1","憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒"],["e640","澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙"],["e6a1","獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟"],["e740","膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢"],["e7a1","蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧"],["e840","踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓"],["e8a1","銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮"],["e940","噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺"],["e9a1","憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸"],["ea40","澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙"],["eaa1","瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘"],["eb40","蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠"],["eba1","諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌"],["ec40","錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕"],["eca1","魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎"],["ed40","檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶"],["eda1","瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞"],["ee40","蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞"],["eea1","謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜"],["ef40","鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰"],["efa1","鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶"],["f040","璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒"],["f0a1","臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧"],["f140","蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪"],["f1a1","鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰"],["f240","徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛"],["f2a1","礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕"],["f340","譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦"],["f3a1","鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲"],["f440","嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩"],["f4a1","禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿"],["f540","鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛"],["f5a1","鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥"],["f640","蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺"],["f6a1","騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚"],["f740","糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊"],["f7a1","驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾"],["f840","讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏"],["f8a1","齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚"],["f940","纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊"],["f9a1","龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓"]]');
  33243. /***/ }),
  33244. /***/ 31532:
  33245. /***/ ((module) => {
  33246. "use strict";
  33247. module.exports = JSON.parse('[["0","\\u0000",127],["8ea1","。",62],["a1a1"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇"],["a2a1","◆□■△▲▽▼※〒→←↑↓〓"],["a2ba","∈∋⊆⊇⊂⊃∪∩"],["a2ca","∧∨¬⇒⇔∀∃"],["a2dc","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["a2f2","ʼn♯♭♪†‡¶"],["a2fe","◯"],["a3b0","0",9],["a3c1","A",25],["a3e1","a",25],["a4a1","ぁ",82],["a5a1","ァ",85],["a6a1","Α",16,"Σ",6],["a6c1","α",16,"σ",6],["a7a1","А",5,"ЁЖ",25],["a7d1","а",5,"ёж",25],["a8a1","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["ada1","①",19,"Ⅰ",9],["adc0","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["addf","㍻〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["b0a1","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["b1a1","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応"],["b2a1","押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["b3a1","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱"],["b4a1","粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["b5a1","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京"],["b6a1","供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["b7a1","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲"],["b8a1","検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["b9a1","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込"],["baa1","此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["bba1","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時"],["bca1","次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["bda1","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償"],["bea1","勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["bfa1","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾"],["c0a1","澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["c1a1","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎"],["c2a1","臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["c3a1","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵"],["c4a1","帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["c5a1","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到"],["c6a1","董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["c7a1","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦"],["c8a1","函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["c9a1","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服"],["caa1","福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["cba1","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満"],["cca1","漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["cda1","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃"],["cea1","痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["cfa1","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["d0a1","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["d1a1","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨"],["d2a1","辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["d3a1","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉"],["d4a1","圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["d5a1","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓"],["d6a1","屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["d7a1","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚"],["d8a1","悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["d9a1","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼"],["daa1","據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["dba1","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍"],["dca1","棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["dda1","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾"],["dea1","沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["dfa1","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼"],["e0a1","燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e1a1","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰"],["e2a1","癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e3a1","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐"],["e4a1","筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e5a1","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺"],["e6a1","罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e7a1","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙"],["e8a1","茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e9a1","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙"],["eaa1","蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["eba1","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫"],["eca1","譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["eda1","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸"],["eea1","遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["efa1","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞"],["f0a1","陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["f1a1","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷"],["f2a1","髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["f3a1","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠"],["f4a1","堯槇遙瑤凜熙"],["f9a1","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德"],["faa1","忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["fba1","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚"],["fca1","釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["fcf1","ⅰ",9,"¬¦'""],["8fa2af","˘ˇ¸˙˝¯˛˚~΄΅"],["8fa2c2","¡¦¿"],["8fa2eb","ºª©®™¤№"],["8fa6e1","ΆΈΉΊΪ"],["8fa6e7","Ό"],["8fa6e9","ΎΫ"],["8fa6ec","Ώ"],["8fa6f1","άέήίϊΐόςύϋΰώ"],["8fa7c2","Ђ",10,"ЎЏ"],["8fa7f2","ђ",10,"ўџ"],["8fa9a1","ÆĐ"],["8fa9a4","Ħ"],["8fa9a6","IJ"],["8fa9a8","ŁĿ"],["8fa9ab","ŊØŒ"],["8fa9af","ŦÞ"],["8fa9c1","æđðħıijĸłŀʼnŋøœßŧþ"],["8faaa1","ÁÀÄÂĂǍĀĄÅÃĆĈČÇĊĎÉÈËÊĚĖĒĘ"],["8faaba","ĜĞĢĠĤÍÌÏÎǏİĪĮĨĴĶĹĽĻŃŇŅÑÓÒÖÔǑŐŌÕŔŘŖŚŜŠŞŤŢÚÙÜÛŬǓŰŪŲŮŨǗǛǙǕŴÝŸŶŹŽŻ"],["8faba1","áàäâăǎāąåãćĉčçċďéèëêěėēęǵĝğ"],["8fabbd","ġĥíìïîǐ"],["8fabc5","īįĩĵķĺľļńňņñóòöôǒőōõŕřŗśŝšşťţúùüûŭǔűūųůũǘǜǚǖŵýÿŷźžż"],["8fb0a1","丂丄丅丌丒丟丣两丨丫丮丯丰丵乀乁乄乇乑乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘佟佣佪佬佮佱佷佸佹佺佽佾侁侂侄"],["8fb1a1","侅侉侊侌侎侐侒侓侔侗侙侚侞侟侲侷侹侻侼侽侾俀俁俅俆俈俉俋俌俍俏俒俜俠俢俰俲俼俽俿倀倁倄倇倊倌倎倐倓倗倘倛倜倝倞倢倧倮倰倲倳倵偀偁偂偅偆偊偌偎偑偒偓偗偙偟偠偢偣偦偧偪偭偰偱倻傁傃傄傆傊傎傏傐"],["8fb2a1","傒傓傔傖傛傜傞",4,"傪傯傰傹傺傽僀僃僄僇僌僎僐僓僔僘僜僝僟僢僤僦僨僩僯僱僶僺僾儃儆儇儈儋儌儍儎僲儐儗儙儛儜儝儞儣儧儨儬儭儯儱儳儴儵儸儹兂兊兏兓兕兗兘兟兤兦兾冃冄冋冎冘冝冡冣冭冸冺冼冾冿凂"],["8fb3a1","凈减凑凒凓凕凘凞凢凥凮凲凳凴凷刁刂刅划刓刕刖刘刢刨刱刲刵刼剅剉剕剗剘剚剜剟剠剡剦剮剷剸剹劀劂劅劊劌劓劕劖劗劘劚劜劤劥劦劧劯劰劶劷劸劺劻劽勀勄勆勈勌勏勑勔勖勛勜勡勥勨勩勪勬勰勱勴勶勷匀匃匊匋"],["8fb4a1","匌匑匓匘匛匜匞匟匥匧匨匩匫匬匭匰匲匵匼匽匾卂卌卋卙卛卡卣卥卬卭卲卹卾厃厇厈厎厓厔厙厝厡厤厪厫厯厲厴厵厷厸厺厽叀叅叏叒叓叕叚叝叞叠另叧叵吂吓吚吡吧吨吪启吱吴吵呃呄呇呍呏呞呢呤呦呧呩呫呭呮呴呿"],["8fb5a1","咁咃咅咈咉咍咑咕咖咜咟咡咦咧咩咪咭咮咱咷咹咺咻咿哆哊响哎哠哪哬哯哶哼哾哿唀唁唅唈唉唌唍唎唕唪唫唲唵唶唻唼唽啁啇啉啊啍啐啑啘啚啛啞啠啡啤啦啿喁喂喆喈喎喏喑喒喓喔喗喣喤喭喲喿嗁嗃嗆嗉嗋嗌嗎嗑嗒"],["8fb6a1","嗓嗗嗘嗛嗞嗢嗩嗶嗿嘅嘈嘊嘍",5,"嘙嘬嘰嘳嘵嘷嘹嘻嘼嘽嘿噀噁噃噄噆噉噋噍噏噔噞噠噡噢噣噦噩噭噯噱噲噵嚄嚅嚈嚋嚌嚕嚙嚚嚝嚞嚟嚦嚧嚨嚩嚫嚬嚭嚱嚳嚷嚾囅囉囊囋囏囐囌囍囙囜囝囟囡囤",4,"囱囫园"],["8fb7a1","囶囷圁圂圇圊圌圑圕圚圛圝圠圢圣圤圥圩圪圬圮圯圳圴圽圾圿坅坆坌坍坒坢坥坧坨坫坭",4,"坳坴坵坷坹坺坻坼坾垁垃垌垔垗垙垚垜垝垞垟垡垕垧垨垩垬垸垽埇埈埌埏埕埝埞埤埦埧埩埭埰埵埶埸埽埾埿堃堄堈堉埡"],["8fb8a1","堌堍堛堞堟堠堦堧堭堲堹堿塉塌塍塏塐塕塟塡塤塧塨塸塼塿墀墁墇墈墉墊墌墍墏墐墔墖墝墠墡墢墦墩墱墲壄墼壂壈壍壎壐壒壔壖壚壝壡壢壩壳夅夆夋夌夒夓夔虁夝夡夣夤夨夯夰夳夵夶夿奃奆奒奓奙奛奝奞奟奡奣奫奭"],["8fb9a1","奯奲奵奶她奻奼妋妌妎妒妕妗妟妤妧妭妮妯妰妳妷妺妼姁姃姄姈姊姍姒姝姞姟姣姤姧姮姯姱姲姴姷娀娄娌娍娎娒娓娞娣娤娧娨娪娭娰婄婅婇婈婌婐婕婞婣婥婧婭婷婺婻婾媋媐媓媖媙媜媞媟媠媢媧媬媱媲媳媵媸媺媻媿"],["8fbaa1","嫄嫆嫈嫏嫚嫜嫠嫥嫪嫮嫵嫶嫽嬀嬁嬈嬗嬴嬙嬛嬝嬡嬥嬭嬸孁孋孌孒孖孞孨孮孯孼孽孾孿宁宄宆宊宎宐宑宓宔宖宨宩宬宭宯宱宲宷宺宼寀寁寍寏寖",4,"寠寯寱寴寽尌尗尞尟尣尦尩尫尬尮尰尲尵尶屙屚屜屢屣屧屨屩"],["8fbba1","屭屰屴屵屺屻屼屽岇岈岊岏岒岝岟岠岢岣岦岪岲岴岵岺峉峋峒峝峗峮峱峲峴崁崆崍崒崫崣崤崦崧崱崴崹崽崿嵂嵃嵆嵈嵕嵑嵙嵊嵟嵠嵡嵢嵤嵪嵭嵰嵹嵺嵾嵿嶁嶃嶈嶊嶒嶓嶔嶕嶙嶛嶟嶠嶧嶫嶰嶴嶸嶹巃巇巋巐巎巘巙巠巤"],["8fbca1","巩巸巹帀帇帍帒帔帕帘帟帠帮帨帲帵帾幋幐幉幑幖幘幛幜幞幨幪",4,"幰庀庋庎庢庤庥庨庪庬庱庳庽庾庿廆廌廋廎廑廒廔廕廜廞廥廫异弆弇弈弎弙弜弝弡弢弣弤弨弫弬弮弰弴弶弻弽弿彀彄彅彇彍彐彔彘彛彠彣彤彧"],["8fbda1","彯彲彴彵彸彺彽彾徉徍徏徖徜徝徢徧徫徤徬徯徰徱徸忄忇忈忉忋忐",4,"忞忡忢忨忩忪忬忭忮忯忲忳忶忺忼怇怊怍怓怔怗怘怚怟怤怭怳怵恀恇恈恉恌恑恔恖恗恝恡恧恱恾恿悂悆悈悊悎悑悓悕悘悝悞悢悤悥您悰悱悷"],["8fbea1","悻悾惂惄惈惉惊惋惎惏惔惕惙惛惝惞惢惥惲惵惸惼惽愂愇愊愌愐",4,"愖愗愙愜愞愢愪愫愰愱愵愶愷愹慁慅慆慉慞慠慬慲慸慻慼慿憀憁憃憄憋憍憒憓憗憘憜憝憟憠憥憨憪憭憸憹憼懀懁懂懎懏懕懜懝懞懟懡懢懧懩懥"],["8fbfa1","懬懭懯戁戃戄戇戓戕戜戠戢戣戧戩戫戹戽扂扃扄扆扌扐扑扒扔扖扚扜扤扭扯扳扺扽抍抎抏抐抦抨抳抶抷抺抾抿拄拎拕拖拚拪拲拴拼拽挃挄挊挋挍挐挓挖挘挩挪挭挵挶挹挼捁捂捃捄捆捊捋捎捒捓捔捘捛捥捦捬捭捱捴捵"],["8fc0a1","捸捼捽捿掂掄掇掊掐掔掕掙掚掞掤掦掭掮掯掽揁揅揈揎揑揓揔揕揜揠揥揪揬揲揳揵揸揹搉搊搐搒搔搘搞搠搢搤搥搩搪搯搰搵搽搿摋摏摑摒摓摔摚摛摜摝摟摠摡摣摭摳摴摻摽撅撇撏撐撑撘撙撛撝撟撡撣撦撨撬撳撽撾撿"],["8fc1a1","擄擉擊擋擌擎擐擑擕擗擤擥擩擪擭擰擵擷擻擿攁攄攈攉攊攏攓攔攖攙攛攞攟攢攦攩攮攱攺攼攽敃敇敉敐敒敔敟敠敧敫敺敽斁斅斊斒斕斘斝斠斣斦斮斲斳斴斿旂旈旉旎旐旔旖旘旟旰旲旴旵旹旾旿昀昄昈昉昍昑昒昕昖昝"],["8fc2a1","昞昡昢昣昤昦昩昪昫昬昮昰昱昳昹昷晀晅晆晊晌晑晎晗晘晙晛晜晠晡曻晪晫晬晾晳晵晿晷晸晹晻暀晼暋暌暍暐暒暙暚暛暜暟暠暤暭暱暲暵暻暿曀曂曃曈曌曎曏曔曛曟曨曫曬曮曺朅朇朎朓朙朜朠朢朳朾杅杇杈杌杔杕杝"],["8fc3a1","杦杬杮杴杶杻极构枎枏枑枓枖枘枙枛枰枱枲枵枻枼枽柹柀柂柃柅柈柉柒柗柙柜柡柦柰柲柶柷桒栔栙栝栟栨栧栬栭栯栰栱栳栻栿桄桅桊桌桕桗桘桛桫桮",4,"桵桹桺桻桼梂梄梆梈梖梘梚梜梡梣梥梩梪梮梲梻棅棈棌棏"],["8fc4a1","棐棑棓棖棙棜棝棥棨棪棫棬棭棰棱棵棶棻棼棽椆椉椊椐椑椓椖椗椱椳椵椸椻楂楅楉楎楗楛楣楤楥楦楨楩楬楰楱楲楺楻楿榀榍榒榖榘榡榥榦榨榫榭榯榷榸榺榼槅槈槑槖槗槢槥槮槯槱槳槵槾樀樁樃樏樑樕樚樝樠樤樨樰樲"],["8fc5a1","樴樷樻樾樿橅橆橉橊橎橐橑橒橕橖橛橤橧橪橱橳橾檁檃檆檇檉檋檑檛檝檞檟檥檫檯檰檱檴檽檾檿櫆櫉櫈櫌櫐櫔櫕櫖櫜櫝櫤櫧櫬櫰櫱櫲櫼櫽欂欃欆欇欉欏欐欑欗欛欞欤欨欫欬欯欵欶欻欿歆歊歍歒歖歘歝歠歧歫歮歰歵歽"],["8fc6a1","歾殂殅殗殛殟殠殢殣殨殩殬殭殮殰殸殹殽殾毃毄毉毌毖毚毡毣毦毧毮毱毷毹毿氂氄氅氉氍氎氐氒氙氟氦氧氨氬氮氳氵氶氺氻氿汊汋汍汏汒汔汙汛汜汫汭汯汴汶汸汹汻沅沆沇沉沔沕沗沘沜沟沰沲沴泂泆泍泏泐泑泒泔泖"],["8fc7a1","泚泜泠泧泩泫泬泮泲泴洄洇洊洎洏洑洓洚洦洧洨汧洮洯洱洹洼洿浗浞浟浡浥浧浯浰浼涂涇涑涒涔涖涗涘涪涬涴涷涹涽涿淄淈淊淎淏淖淛淝淟淠淢淥淩淯淰淴淶淼渀渄渞渢渧渲渶渹渻渼湄湅湈湉湋湏湑湒湓湔湗湜湝湞"],["8fc8a1","湢湣湨湳湻湽溍溓溙溠溧溭溮溱溳溻溿滀滁滃滇滈滊滍滎滏滫滭滮滹滻滽漄漈漊漌漍漖漘漚漛漦漩漪漯漰漳漶漻漼漭潏潑潒潓潗潙潚潝潞潡潢潨潬潽潾澃澇澈澋澌澍澐澒澓澔澖澚澟澠澥澦澧澨澮澯澰澵澶澼濅濇濈濊"],["8fc9a1","濚濞濨濩濰濵濹濼濽瀀瀅瀆瀇瀍瀗瀠瀣瀯瀴瀷瀹瀼灃灄灈灉灊灋灔灕灝灞灎灤灥灬灮灵灶灾炁炅炆炔",4,"炛炤炫炰炱炴炷烊烑烓烔烕烖烘烜烤烺焃",4,"焋焌焏焞焠焫焭焯焰焱焸煁煅煆煇煊煋煐煒煗煚煜煞煠"],["8fcaa1","煨煹熀熅熇熌熒熚熛熠熢熯熰熲熳熺熿燀燁燄燋燌燓燖燙燚燜燸燾爀爇爈爉爓爗爚爝爟爤爫爯爴爸爹牁牂牃牅牎牏牐牓牕牖牚牜牞牠牣牨牫牮牯牱牷牸牻牼牿犄犉犍犎犓犛犨犭犮犱犴犾狁狇狉狌狕狖狘狟狥狳狴狺狻"],["8fcba1","狾猂猄猅猇猋猍猒猓猘猙猞猢猤猧猨猬猱猲猵猺猻猽獃獍獐獒獖獘獝獞獟獠獦獧獩獫獬獮獯獱獷獹獼玀玁玃玅玆玎玐玓玕玗玘玜玞玟玠玢玥玦玪玫玭玵玷玹玼玽玿珅珆珉珋珌珏珒珓珖珙珝珡珣珦珧珩珴珵珷珹珺珻珽"],["8fcca1","珿琀琁琄琇琊琑琚琛琤琦琨",9,"琹瑀瑃瑄瑆瑇瑋瑍瑑瑒瑗瑝瑢瑦瑧瑨瑫瑭瑮瑱瑲璀璁璅璆璇璉璏璐璑璒璘璙璚璜璟璠璡璣璦璨璩璪璫璮璯璱璲璵璹璻璿瓈瓉瓌瓐瓓瓘瓚瓛瓞瓟瓤瓨瓪瓫瓯瓴瓺瓻瓼瓿甆"],["8fcda1","甒甖甗甠甡甤甧甩甪甯甶甹甽甾甿畀畃畇畈畎畐畒畗畞畟畡畯畱畹",5,"疁疅疐疒疓疕疙疜疢疤疴疺疿痀痁痄痆痌痎痏痗痜痟痠痡痤痧痬痮痯痱痹瘀瘂瘃瘄瘇瘈瘊瘌瘏瘒瘓瘕瘖瘙瘛瘜瘝瘞瘣瘥瘦瘩瘭瘲瘳瘵瘸瘹"],["8fcea1","瘺瘼癊癀癁癃癄癅癉癋癕癙癟癤癥癭癮癯癱癴皁皅皌皍皕皛皜皝皟皠皢",6,"皪皭皽盁盅盉盋盌盎盔盙盠盦盨盬盰盱盶盹盼眀眆眊眎眒眔眕眗眙眚眜眢眨眭眮眯眴眵眶眹眽眾睂睅睆睊睍睎睏睒睖睗睜睞睟睠睢"],["8fcfa1","睤睧睪睬睰睲睳睴睺睽瞀瞄瞌瞍瞔瞕瞖瞚瞟瞢瞧瞪瞮瞯瞱瞵瞾矃矉矑矒矕矙矞矟矠矤矦矪矬矰矱矴矸矻砅砆砉砍砎砑砝砡砢砣砭砮砰砵砷硃硄硇硈硌硎硒硜硞硠硡硣硤硨硪确硺硾碊碏碔碘碡碝碞碟碤碨碬碭碰碱碲碳"],["8fd0a1","碻碽碿磇磈磉磌磎磒磓磕磖磤磛磟磠磡磦磪磲磳礀磶磷磺磻磿礆礌礐礚礜礞礟礠礥礧礩礭礱礴礵礻礽礿祄祅祆祊祋祏祑祔祘祛祜祧祩祫祲祹祻祼祾禋禌禑禓禔禕禖禘禛禜禡禨禩禫禯禱禴禸离秂秄秇秈秊秏秔秖秚秝秞"],["8fd1a1","秠秢秥秪秫秭秱秸秼稂稃稇稉稊稌稑稕稛稞稡稧稫稭稯稰稴稵稸稹稺穄穅穇穈穌穕穖穙穜穝穟穠穥穧穪穭穵穸穾窀窂窅窆窊窋窐窑窔窞窠窣窬窳窵窹窻窼竆竉竌竎竑竛竨竩竫竬竱竴竻竽竾笇笔笟笣笧笩笪笫笭笮笯笰"],["8fd2a1","笱笴笽笿筀筁筇筎筕筠筤筦筩筪筭筯筲筳筷箄箉箎箐箑箖箛箞箠箥箬箯箰箲箵箶箺箻箼箽篂篅篈篊篔篖篗篙篚篛篨篪篲篴篵篸篹篺篼篾簁簂簃簄簆簉簋簌簎簏簙簛簠簥簦簨簬簱簳簴簶簹簺籆籊籕籑籒籓籙",5],["8fd3a1","籡籣籧籩籭籮籰籲籹籼籽粆粇粏粔粞粠粦粰粶粷粺粻粼粿糄糇糈糉糍糏糓糔糕糗糙糚糝糦糩糫糵紃紇紈紉紏紑紒紓紖紝紞紣紦紪紭紱紼紽紾絀絁絇絈絍絑絓絗絙絚絜絝絥絧絪絰絸絺絻絿綁綂綃綅綆綈綋綌綍綑綖綗綝"],["8fd4a1","綞綦綧綪綳綶綷綹緂",4,"緌緍緎緗緙縀緢緥緦緪緫緭緱緵緶緹緺縈縐縑縕縗縜縝縠縧縨縬縭縯縳縶縿繄繅繇繎繐繒繘繟繡繢繥繫繮繯繳繸繾纁纆纇纊纍纑纕纘纚纝纞缼缻缽缾缿罃罄罇罏罒罓罛罜罝罡罣罤罥罦罭"],["8fd5a1","罱罽罾罿羀羋羍羏羐羑羖羗羜羡羢羦羪羭羴羼羿翀翃翈翎翏翛翟翣翥翨翬翮翯翲翺翽翾翿耇耈耊耍耎耏耑耓耔耖耝耞耟耠耤耦耬耮耰耴耵耷耹耺耼耾聀聄聠聤聦聭聱聵肁肈肎肜肞肦肧肫肸肹胈胍胏胒胔胕胗胘胠胭胮"],["8fd6a1","胰胲胳胶胹胺胾脃脋脖脗脘脜脞脠脤脧脬脰脵脺脼腅腇腊腌腒腗腠腡腧腨腩腭腯腷膁膐膄膅膆膋膎膖膘膛膞膢膮膲膴膻臋臃臅臊臎臏臕臗臛臝臞臡臤臫臬臰臱臲臵臶臸臹臽臿舀舃舏舓舔舙舚舝舡舢舨舲舴舺艃艄艅艆"],["8fd7a1","艋艎艏艑艖艜艠艣艧艭艴艻艽艿芀芁芃芄芇芉芊芎芑芔芖芘芚芛芠芡芣芤芧芨芩芪芮芰芲芴芷芺芼芾芿苆苐苕苚苠苢苤苨苪苭苯苶苷苽苾茀茁茇茈茊茋荔茛茝茞茟茡茢茬茭茮茰茳茷茺茼茽荂荃荄荇荍荎荑荕荖荗荰荸"],["8fd8a1","荽荿莀莂莄莆莍莒莔莕莘莙莛莜莝莦莧莩莬莾莿菀菇菉菏菐菑菔菝荓菨菪菶菸菹菼萁萆萊萏萑萕萙莭萯萹葅葇葈葊葍葏葑葒葖葘葙葚葜葠葤葥葧葪葰葳葴葶葸葼葽蒁蒅蒒蒓蒕蒞蒦蒨蒩蒪蒯蒱蒴蒺蒽蒾蓀蓂蓇蓈蓌蓏蓓"],["8fd9a1","蓜蓧蓪蓯蓰蓱蓲蓷蔲蓺蓻蓽蔂蔃蔇蔌蔎蔐蔜蔞蔢蔣蔤蔥蔧蔪蔫蔯蔳蔴蔶蔿蕆蕏",4,"蕖蕙蕜",6,"蕤蕫蕯蕹蕺蕻蕽蕿薁薅薆薉薋薌薏薓薘薝薟薠薢薥薧薴薶薷薸薼薽薾薿藂藇藊藋藎薭藘藚藟藠藦藨藭藳藶藼"],["8fdaa1","藿蘀蘄蘅蘍蘎蘐蘑蘒蘘蘙蘛蘞蘡蘧蘩蘶蘸蘺蘼蘽虀虂虆虒虓虖虗虘虙虝虠",4,"虩虬虯虵虶虷虺蚍蚑蚖蚘蚚蚜蚡蚦蚧蚨蚭蚱蚳蚴蚵蚷蚸蚹蚿蛀蛁蛃蛅蛑蛒蛕蛗蛚蛜蛠蛣蛥蛧蚈蛺蛼蛽蜄蜅蜇蜋蜎蜏蜐蜓蜔蜙蜞蜟蜡蜣"],["8fdba1","蜨蜮蜯蜱蜲蜹蜺蜼蜽蜾蝀蝃蝅蝍蝘蝝蝡蝤蝥蝯蝱蝲蝻螃",6,"螋螌螐螓螕螗螘螙螞螠螣螧螬螭螮螱螵螾螿蟁蟈蟉蟊蟎蟕蟖蟙蟚蟜蟟蟢蟣蟤蟪蟫蟭蟱蟳蟸蟺蟿蠁蠃蠆蠉蠊蠋蠐蠙蠒蠓蠔蠘蠚蠛蠜蠞蠟蠨蠭蠮蠰蠲蠵"],["8fdca1","蠺蠼衁衃衅衈衉衊衋衎衑衕衖衘衚衜衟衠衤衩衱衹衻袀袘袚袛袜袟袠袨袪袺袽袾裀裊",4,"裑裒裓裛裞裧裯裰裱裵裷褁褆褍褎褏褕褖褘褙褚褜褠褦褧褨褰褱褲褵褹褺褾襀襂襅襆襉襏襒襗襚襛襜襡襢襣襫襮襰襳襵襺"],["8fdda1","襻襼襽覉覍覐覔覕覛覜覟覠覥覰覴覵覶覷覼觔",4,"觥觩觫觭觱觳觶觹觽觿訄訅訇訏訑訒訔訕訞訠訢訤訦訫訬訯訵訷訽訾詀詃詅詇詉詍詎詓詖詗詘詜詝詡詥詧詵詶詷詹詺詻詾詿誀誃誆誋誏誐誒誖誗誙誟誧誩誮誯誳"],["8fdea1","誶誷誻誾諃諆諈諉諊諑諓諔諕諗諝諟諬諰諴諵諶諼諿謅謆謋謑謜謞謟謊謭謰謷謼譂",4,"譈譒譓譔譙譍譞譣譭譶譸譹譼譾讁讄讅讋讍讏讔讕讜讞讟谸谹谽谾豅豇豉豋豏豑豓豔豗豘豛豝豙豣豤豦豨豩豭豳豵豶豻豾貆"],["8fdfa1","貇貋貐貒貓貙貛貜貤貹貺賅賆賉賋賏賖賕賙賝賡賨賬賯賰賲賵賷賸賾賿贁贃贉贒贗贛赥赩赬赮赿趂趄趈趍趐趑趕趞趟趠趦趫趬趯趲趵趷趹趻跀跅跆跇跈跊跎跑跔跕跗跙跤跥跧跬跰趼跱跲跴跽踁踄踅踆踋踑踔踖踠踡踢"],["8fe0a1","踣踦踧踱踳踶踷踸踹踽蹀蹁蹋蹍蹎蹏蹔蹛蹜蹝蹞蹡蹢蹩蹬蹭蹯蹰蹱蹹蹺蹻躂躃躉躐躒躕躚躛躝躞躢躧躩躭躮躳躵躺躻軀軁軃軄軇軏軑軔軜軨軮軰軱軷軹軺軭輀輂輇輈輏輐輖輗輘輞輠輡輣輥輧輨輬輭輮輴輵輶輷輺轀轁"],["8fe1a1","轃轇轏轑",4,"轘轝轞轥辝辠辡辤辥辦辵辶辸达迀迁迆迊迋迍运迒迓迕迠迣迤迨迮迱迵迶迻迾适逄逈逌逘逛逨逩逯逪逬逭逳逴逷逿遃遄遌遛遝遢遦遧遬遰遴遹邅邈邋邌邎邐邕邗邘邙邛邠邡邢邥邰邲邳邴邶邽郌邾郃"],["8fe2a1","郄郅郇郈郕郗郘郙郜郝郟郥郒郶郫郯郰郴郾郿鄀鄄鄅鄆鄈鄍鄐鄔鄖鄗鄘鄚鄜鄞鄠鄥鄢鄣鄧鄩鄮鄯鄱鄴鄶鄷鄹鄺鄼鄽酃酇酈酏酓酗酙酚酛酡酤酧酭酴酹酺酻醁醃醅醆醊醎醑醓醔醕醘醞醡醦醨醬醭醮醰醱醲醳醶醻醼醽醿"],["8fe3a1","釂釃釅釓釔釗釙釚釞釤釥釩釪釬",5,"釷釹釻釽鈀鈁鈄鈅鈆鈇鈉鈊鈌鈐鈒鈓鈖鈘鈜鈝鈣鈤鈥鈦鈨鈮鈯鈰鈳鈵鈶鈸鈹鈺鈼鈾鉀鉂鉃鉆鉇鉊鉍鉎鉏鉑鉘鉙鉜鉝鉠鉡鉥鉧鉨鉩鉮鉯鉰鉵",4,"鉻鉼鉽鉿銈銉銊銍銎銒銗"],["8fe4a1","銙銟銠銤銥銧銨銫銯銲銶銸銺銻銼銽銿",4,"鋅鋆鋇鋈鋋鋌鋍鋎鋐鋓鋕鋗鋘鋙鋜鋝鋟鋠鋡鋣鋥鋧鋨鋬鋮鋰鋹鋻鋿錀錂錈錍錑錔錕錜錝錞錟錡錤錥錧錩錪錳錴錶錷鍇鍈鍉鍐鍑鍒鍕鍗鍘鍚鍞鍤鍥鍧鍩鍪鍭鍯鍰鍱鍳鍴鍶"],["8fe5a1","鍺鍽鍿鎀鎁鎂鎈鎊鎋鎍鎏鎒鎕鎘鎛鎞鎡鎣鎤鎦鎨鎫鎴鎵鎶鎺鎩鏁鏄鏅鏆鏇鏉",4,"鏓鏙鏜鏞鏟鏢鏦鏧鏹鏷鏸鏺鏻鏽鐁鐂鐄鐈鐉鐍鐎鐏鐕鐖鐗鐟鐮鐯鐱鐲鐳鐴鐻鐿鐽鑃鑅鑈鑊鑌鑕鑙鑜鑟鑡鑣鑨鑫鑭鑮鑯鑱鑲钄钃镸镹"],["8fe6a1","镾閄閈閌閍閎閝閞閟閡閦閩閫閬閴閶閺閽閿闆闈闉闋闐闑闒闓闙闚闝闞闟闠闤闦阝阞阢阤阥阦阬阱阳阷阸阹阺阼阽陁陒陔陖陗陘陡陮陴陻陼陾陿隁隂隃隄隉隑隖隚隝隟隤隥隦隩隮隯隳隺雊雒嶲雘雚雝雞雟雩雯雱雺霂"],["8fe7a1","霃霅霉霚霛霝霡霢霣霨霱霳靁靃靊靎靏靕靗靘靚靛靣靧靪靮靳靶靷靸靻靽靿鞀鞉鞕鞖鞗鞙鞚鞞鞟鞢鞬鞮鞱鞲鞵鞶鞸鞹鞺鞼鞾鞿韁韄韅韇韉韊韌韍韎韐韑韔韗韘韙韝韞韠韛韡韤韯韱韴韷韸韺頇頊頙頍頎頔頖頜頞頠頣頦"],["8fe8a1","頫頮頯頰頲頳頵頥頾顄顇顊顑顒顓顖顗顙顚顢顣顥顦顪顬颫颭颮颰颴颷颸颺颻颿飂飅飈飌飡飣飥飦飧飪飳飶餂餇餈餑餕餖餗餚餛餜餟餢餦餧餫餱",4,"餹餺餻餼饀饁饆饇饈饍饎饔饘饙饛饜饞饟饠馛馝馟馦馰馱馲馵"],["8fe9a1","馹馺馽馿駃駉駓駔駙駚駜駞駧駪駫駬駰駴駵駹駽駾騂騃騄騋騌騐騑騖騞騠騢騣騤騧騭騮騳騵騶騸驇驁驄驊驋驌驎驑驔驖驝骪骬骮骯骲骴骵骶骹骻骾骿髁髃髆髈髎髐髒髕髖髗髛髜髠髤髥髧髩髬髲髳髵髹髺髽髿",4],["8feaa1","鬄鬅鬈鬉鬋鬌鬍鬎鬐鬒鬖鬙鬛鬜鬠鬦鬫鬭鬳鬴鬵鬷鬹鬺鬽魈魋魌魕魖魗魛魞魡魣魥魦魨魪",4,"魳魵魷魸魹魿鮀鮄鮅鮆鮇鮉鮊鮋鮍鮏鮐鮔鮚鮝鮞鮦鮧鮩鮬鮰鮱鮲鮷鮸鮻鮼鮾鮿鯁鯇鯈鯎鯐鯗鯘鯝鯟鯥鯧鯪鯫鯯鯳鯷鯸"],["8feba1","鯹鯺鯽鯿鰀鰂鰋鰏鰑鰖鰘鰙鰚鰜鰞鰢鰣鰦",4,"鰱鰵鰶鰷鰽鱁鱃鱄鱅鱉鱊鱎鱏鱐鱓鱔鱖鱘鱛鱝鱞鱟鱣鱩鱪鱜鱫鱨鱮鱰鱲鱵鱷鱻鳦鳲鳷鳹鴋鴂鴑鴗鴘鴜鴝鴞鴯鴰鴲鴳鴴鴺鴼鵅鴽鵂鵃鵇鵊鵓鵔鵟鵣鵢鵥鵩鵪鵫鵰鵶鵷鵻"],["8feca1","鵼鵾鶃鶄鶆鶊鶍鶎鶒鶓鶕鶖鶗鶘鶡鶪鶬鶮鶱鶵鶹鶼鶿鷃鷇鷉鷊鷔鷕鷖鷗鷚鷞鷟鷠鷥鷧鷩鷫鷮鷰鷳鷴鷾鸊鸂鸇鸎鸐鸑鸒鸕鸖鸙鸜鸝鹺鹻鹼麀麂麃麄麅麇麎麏麖麘麛麞麤麨麬麮麯麰麳麴麵黆黈黋黕黟黤黧黬黭黮黰黱黲黵"],["8feda1","黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃",4,"齓齕齖齗齘齚齝齞齨齩齭",4,"齳齵齺齽龏龐龑龒龔龖龗龞龡龢龣龥"]]');
  33248. /***/ }),
  33249. /***/ 36258:
  33250. /***/ ((module) => {
  33251. "use strict";
  33252. module.exports = JSON.parse('{"uChars":[128,165,169,178,184,216,226,235,238,244,248,251,253,258,276,284,300,325,329,334,364,463,465,467,469,471,473,475,477,506,594,610,712,716,730,930,938,962,970,1026,1104,1106,8209,8215,8218,8222,8231,8241,8244,8246,8252,8365,8452,8454,8458,8471,8482,8556,8570,8596,8602,8713,8720,8722,8726,8731,8737,8740,8742,8748,8751,8760,8766,8777,8781,8787,8802,8808,8816,8854,8858,8870,8896,8979,9322,9372,9548,9588,9616,9622,9634,9652,9662,9672,9676,9680,9702,9735,9738,9793,9795,11906,11909,11913,11917,11928,11944,11947,11951,11956,11960,11964,11979,12284,12292,12312,12319,12330,12351,12436,12447,12535,12543,12586,12842,12850,12964,13200,13215,13218,13253,13263,13267,13270,13384,13428,13727,13839,13851,14617,14703,14801,14816,14964,15183,15471,15585,16471,16736,17208,17325,17330,17374,17623,17997,18018,18212,18218,18301,18318,18760,18811,18814,18820,18823,18844,18848,18872,19576,19620,19738,19887,40870,59244,59336,59367,59413,59417,59423,59431,59437,59443,59452,59460,59478,59493,63789,63866,63894,63976,63986,64016,64018,64021,64025,64034,64037,64042,65074,65093,65107,65112,65127,65132,65375,65510,65536],"gbChars":[0,36,38,45,50,81,89,95,96,100,103,104,105,109,126,133,148,172,175,179,208,306,307,308,309,310,311,312,313,341,428,443,544,545,558,741,742,749,750,805,819,820,7922,7924,7925,7927,7934,7943,7944,7945,7950,8062,8148,8149,8152,8164,8174,8236,8240,8262,8264,8374,8380,8381,8384,8388,8390,8392,8393,8394,8396,8401,8406,8416,8419,8424,8437,8439,8445,8482,8485,8496,8521,8603,8936,8946,9046,9050,9063,9066,9076,9092,9100,9108,9111,9113,9131,9162,9164,9218,9219,11329,11331,11334,11336,11346,11361,11363,11366,11370,11372,11375,11389,11682,11686,11687,11692,11694,11714,11716,11723,11725,11730,11736,11982,11989,12102,12336,12348,12350,12384,12393,12395,12397,12510,12553,12851,12962,12973,13738,13823,13919,13933,14080,14298,14585,14698,15583,15847,16318,16434,16438,16481,16729,17102,17122,17315,17320,17402,17418,17859,17909,17911,17915,17916,17936,17939,17961,18664,18703,18814,18962,19043,33469,33470,33471,33484,33485,33490,33497,33501,33505,33513,33520,33536,33550,37845,37921,37948,38029,38038,38064,38065,38066,38069,38075,38076,38078,39108,39109,39113,39114,39115,39116,39265,39394,189000]}');
  33253. /***/ }),
  33254. /***/ 44346:
  33255. /***/ ((module) => {
  33256. "use strict";
  33257. module.exports = JSON.parse('[["a140","",62],["a180","",32],["a240","",62],["a280","",32],["a2ab","",5],["a2e3","€"],["a2ef",""],["a2fd",""],["a340","",62],["a380","",31," "],["a440","",62],["a480","",32],["a4f4","",10],["a540","",62],["a580","",32],["a5f7","",7],["a640","",62],["a680","",32],["a6b9","",7],["a6d9","",6],["a6ec",""],["a6f3",""],["a6f6","",8],["a740","",62],["a780","",32],["a7c2","",14],["a7f2","",12],["a896","",10],["a8bc",""],["a8bf","ǹ"],["a8c1",""],["a8ea","",20],["a958",""],["a95b",""],["a95d",""],["a989","〾⿰",11],["a997","",12],["a9f0","",14],["aaa1","",93],["aba1","",93],["aca1","",93],["ada1","",93],["aea1","",93],["afa1","",93],["d7fa","",4],["f8a1","",93],["f9a1","",93],["faa1","",93],["fba1","",93],["fca1","",93],["fda1","",93],["fe50","⺁⺄㑳㑇⺈⺋㖞㘚㘎⺌⺗㥮㤘㧏㧟㩳㧐㭎㱮㳠⺧⺪䁖䅟⺮䌷⺳⺶⺷䎱䎬⺻䏝䓖䙡䙌"],["fe80","䜣䜩䝼䞍⻊䥇䥺䥽䦂䦃䦅䦆䦟䦛䦷䦶䲣䲟䲠䲡䱷䲢䴓",6,"䶮",93]]');
  33258. /***/ }),
  33259. /***/ 27014:
  33260. /***/ ((module) => {
  33261. "use strict";
  33262. module.exports = JSON.parse('[["0","\\u0000",128],["a1","。",62],["8140"," 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈",9,"+-±×"],["8180","÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓"],["81b8","∈∋⊆⊇⊂⊃∪∩"],["81c8","∧∨¬⇒⇔∀∃"],["81da","∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬"],["81f0","ʼn♯♭♪†‡¶"],["81fc","◯"],["824f","0",9],["8260","A",25],["8281","a",25],["829f","ぁ",82],["8340","ァ",62],["8380","ム",22],["839f","Α",16,"Σ",6],["83bf","α",16,"σ",6],["8440","А",5,"ЁЖ",25],["8470","а",5,"ёж",7],["8480","о",17],["849f","─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂"],["8740","①",19,"Ⅰ",9],["875f","㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡"],["877e","㍻"],["8780","〝〟№㏍℡㊤",4,"㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪"],["889f","亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭"],["8940","院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円"],["8980","園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改"],["8a40","魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫"],["8a80","橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄"],["8b40","機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救"],["8b80","朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈"],["8c40","掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨"],["8c80","劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向"],["8d40","后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降"],["8d80","項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷"],["8e40","察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止"],["8e80","死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周"],["8f40","宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳"],["8f80","準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾"],["9040","拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨"],["9080","逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線"],["9140","繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻"],["9180","操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只"],["9240","叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄"],["9280","逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓"],["9340","邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬"],["9380","凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入"],["9440","如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅"],["9480","楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美"],["9540","鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷"],["9580","斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋"],["9640","法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆"],["9680","摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒"],["9740","諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲"],["9780","沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯"],["9840","蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕"],["989f","弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲"],["9940","僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭"],["9980","凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨"],["9a40","咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸"],["9a80","噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩"],["9b40","奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀"],["9b80","它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏"],["9c40","廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠"],["9c80","怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛"],["9d40","戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫"],["9d80","捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼"],["9e40","曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎"],["9e80","梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣"],["9f40","檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯"],["9f80","麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌"],["e040","漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝"],["e080","烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱"],["e140","瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿"],["e180","痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬"],["e240","磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰"],["e280","窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆"],["e340","紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷"],["e380","縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋"],["e440","隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤"],["e480","艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈"],["e540","蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬"],["e580","蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞"],["e640","襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧"],["e680","諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊"],["e740","蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜"],["e780","轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮"],["e840","錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙"],["e880","閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰"],["e940","顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃"],["e980","騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈"],["ea40","鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯"],["ea80","黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙"],["ed40","纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏"],["ed80","塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱"],["ee40","犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙"],["ee80","蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"],["eeef","ⅰ",9,"¬¦'""],["f040","",62],["f080","",124],["f140","",62],["f180","",124],["f240","",62],["f280","",124],["f340","",62],["f380","",124],["f440","",62],["f480","",124],["f540","",62],["f580","",124],["f640","",62],["f680","",124],["f740","",62],["f780","",124],["f840","",62],["f880","",124],["f940",""],["fa40","ⅰ",9,"Ⅰ",9,"¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊"],["fa80","兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯"],["fb40","涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神"],["fb80","祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙"],["fc40","髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑"]]');
  33263. /***/ }),
  33264. /***/ 666:
  33265. /***/ ((module) => {
  33266. "use strict";
  33267. module.exports = {"i8":"2.6.0"};
  33268. /***/ }),
  33269. /***/ 98799:
  33270. /***/ ((module) => {
  33271. "use strict";
  33272. module.exports = JSON.parse('{"author":{"email":"gajus@gajus.com","name":"Gajus Kuizinas","url":"http://gajus.com"},"ava":{"babel":{"compileAsTests":["test/helpers/**/*"]},"files":["test/roarr/**/*"],"require":["@babel/register"]},"dependencies":{"boolean":"^3.0.1","detect-node":"^2.0.4","globalthis":"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},"description":"JSON logger for Node.js and browser.","devDependencies":{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5","ava":"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4","coveralls":"^3.1.0","domain-parent":"^1.0.0","eslint":"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9","gitdown":"^3.1.3","husky":"^4.3.0","nyc":"^15.1.0","semantic-release":"^17.1.1"},"engines":{"node":">=8.0"},"husky":{"hooks":{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},"keywords":["log","logger","json"],"main":"./dist/log.js","name":"roarr","nyc":{"include":["src/**/*.js"],"instrument":false,"reporter":["text-lcov"],"require":["@babel/register"],"sourceMap":false},"license":"BSD-3-Clause","repository":{"type":"git","url":"git@github.com:gajus/roarr.git"},"scripts":{"build":"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md","dev":"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch","lint":"eslint ./src ./test && flow","test":"NODE_ENV=test ava --serial --verbose"},"version":"2.15.4"}');
  33273. /***/ })
  33274. /******/ });
  33275. /************************************************************************/
  33276. /******/ // The module cache
  33277. /******/ var __webpack_module_cache__ = {};
  33278. /******/
  33279. /******/ // The require function
  33280. /******/ function __webpack_require__(moduleId) {
  33281. /******/ // Check if module is in cache
  33282. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  33283. /******/ if (cachedModule !== undefined) {
  33284. /******/ return cachedModule.exports;
  33285. /******/ }
  33286. /******/ // Create a new module (and put it into the cache)
  33287. /******/ var module = __webpack_module_cache__[moduleId] = {
  33288. /******/ id: moduleId,
  33289. /******/ loaded: false,
  33290. /******/ exports: {}
  33291. /******/ };
  33292. /******/
  33293. /******/ // Execute the module function
  33294. /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  33295. /******/
  33296. /******/ // Flag the module as loaded
  33297. /******/ module.loaded = true;
  33298. /******/
  33299. /******/ // Return the exports of the module
  33300. /******/ return module.exports;
  33301. /******/ }
  33302. /******/
  33303. /******/ // expose the modules object (__webpack_modules__)
  33304. /******/ __webpack_require__.m = __webpack_modules__;
  33305. /******/
  33306. /******/ // expose the module cache
  33307. /******/ __webpack_require__.c = __webpack_module_cache__;
  33308. /******/
  33309. /************************************************************************/
  33310. /******/ /* webpack/runtime/compat get default export */
  33311. /******/ (() => {
  33312. /******/ // getDefaultExport function for compatibility with non-harmony modules
  33313. /******/ __webpack_require__.n = (module) => {
  33314. /******/ var getter = module && module.__esModule ?
  33315. /******/ () => (module['default']) :
  33316. /******/ () => (module);
  33317. /******/ __webpack_require__.d(getter, { a: getter });
  33318. /******/ return getter;
  33319. /******/ };
  33320. /******/ })();
  33321. /******/
  33322. /******/ /* webpack/runtime/define property getters */
  33323. /******/ (() => {
  33324. /******/ // define getter functions for harmony exports
  33325. /******/ __webpack_require__.d = (exports, definition) => {
  33326. /******/ for(var key in definition) {
  33327. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  33328. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  33329. /******/ }
  33330. /******/ }
  33331. /******/ };
  33332. /******/ })();
  33333. /******/
  33334. /******/ /* webpack/runtime/ensure chunk */
  33335. /******/ (() => {
  33336. /******/ __webpack_require__.f = {};
  33337. /******/ // This file contains only the entry chunk.
  33338. /******/ // The chunk loading function for additional chunks
  33339. /******/ __webpack_require__.e = (chunkId) => {
  33340. /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
  33341. /******/ __webpack_require__.f[key](chunkId, promises);
  33342. /******/ return promises;
  33343. /******/ }, []));
  33344. /******/ };
  33345. /******/ })();
  33346. /******/
  33347. /******/ /* webpack/runtime/get javascript chunk filename */
  33348. /******/ (() => {
  33349. /******/ // This function allow to reference async chunks
  33350. /******/ __webpack_require__.u = (chunkId) => {
  33351. /******/ // return url for filenames based on template
  33352. /******/ return "" + chunkId + ".index.js";
  33353. /******/ };
  33354. /******/ })();
  33355. /******/
  33356. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  33357. /******/ (() => {
  33358. /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
  33359. /******/ })();
  33360. /******/
  33361. /******/ /* webpack/runtime/make namespace object */
  33362. /******/ (() => {
  33363. /******/ // define __esModule on exports
  33364. /******/ __webpack_require__.r = (exports) => {
  33365. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  33366. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  33367. /******/ }
  33368. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  33369. /******/ };
  33370. /******/ })();
  33371. /******/
  33372. /******/ /* webpack/runtime/node module decorator */
  33373. /******/ (() => {
  33374. /******/ __webpack_require__.nmd = (module) => {
  33375. /******/ module.paths = [];
  33376. /******/ if (!module.children) module.children = [];
  33377. /******/ return module;
  33378. /******/ };
  33379. /******/ })();
  33380. /******/
  33381. /******/ /* webpack/runtime/publicPath */
  33382. /******/ (() => {
  33383. /******/ __webpack_require__.p = "";
  33384. /******/ })();
  33385. /******/
  33386. /******/ /* webpack/runtime/require chunk loading */
  33387. /******/ (() => {
  33388. /******/ // no baseURI
  33389. /******/
  33390. /******/ // object to store loaded chunks
  33391. /******/ // "1" means "loaded", otherwise not loaded yet
  33392. /******/ var installedChunks = {
  33393. /******/ 179: 1
  33394. /******/ };
  33395. /******/
  33396. /******/ // no on chunks loaded
  33397. /******/
  33398. /******/ var installChunk = (chunk) => {
  33399. /******/ var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;
  33400. /******/ for(var moduleId in moreModules) {
  33401. /******/ if(__webpack_require__.o(moreModules, moduleId)) {
  33402. /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
  33403. /******/ }
  33404. /******/ }
  33405. /******/ if(runtime) runtime(__webpack_require__);
  33406. /******/ for(var i = 0; i < chunkIds.length; i++)
  33407. /******/ installedChunks[chunkIds[i]] = 1;
  33408. /******/
  33409. /******/ };
  33410. /******/
  33411. /******/ // require() chunk loading for javascript
  33412. /******/ __webpack_require__.f.require = (chunkId, promises) => {
  33413. /******/ // "1" is the signal for "already loaded"
  33414. /******/ if(!installedChunks[chunkId]) {
  33415. /******/ if(true) { // all chunks have JS
  33416. /******/ installChunk(require("./" + __webpack_require__.u(chunkId)));
  33417. /******/ } else installedChunks[chunkId] = 1;
  33418. /******/ }
  33419. /******/ };
  33420. /******/
  33421. /******/ // no external install chunk
  33422. /******/
  33423. /******/ // no HMR
  33424. /******/
  33425. /******/ // no HMR manifest
  33426. /******/ })();
  33427. /******/
  33428. /************************************************************************/
  33429. /******/
  33430. /******/ // module cache are used so entry inlining is disabled
  33431. /******/ // startup
  33432. /******/ // Load entry module and return exports
  33433. /******/ var __webpack_exports__ = __webpack_require__(33402);
  33434. /******/ module.exports.snyk = __webpack_exports__;
  33435. /******/
  33436. /******/ })()
  33437. ;
  33438. //# sourceMappingURL=index.js.map