moralis.solanaapi.js 263 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332
  1. /**
  2. * Moralis JavaScript SDK v1.5.9
  3. *
  4. * The source tree of this library can be found at
  5. * https://github.com/MoralisWeb3/Moralis-JS-SDK
  6. */
  7. (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.SolanaApi = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){
  8. "use strict";
  9. var _Object$keys2 = _dereq_("@babel/runtime-corejs3/core-js-stable/object/keys");
  10. var _Object$getOwnPropertySymbols = _dereq_("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
  11. var _filterInstanceProperty2 = _dereq_("@babel/runtime-corejs3/core-js-stable/instance/filter");
  12. var _Object$getOwnPropertyDescriptor = _dereq_("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
  13. var _forEachInstanceProperty2 = _dereq_("@babel/runtime-corejs3/core-js-stable/instance/for-each");
  14. var _Object$getOwnPropertyDescriptors = _dereq_("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
  15. var _Object$defineProperties = _dereq_("@babel/runtime-corejs3/core-js-stable/object/define-properties");
  16. var _Object$defineProperty = _dereq_("@babel/runtime-corejs3/core-js-stable/object/define-property");
  17. var _interopRequireDefault = _dereq_("@babel/runtime-corejs3/helpers/interopRequireDefault");
  18. _Object$defineProperty(exports, "__esModule", {
  19. value: true
  20. });
  21. exports.default = void 0;
  22. var _regenerator = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/regenerator"));
  23. var _forEach = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
  24. var _keys = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/object/keys"));
  25. var _filter = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/filter"));
  26. var _includes = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/instance/includes"));
  27. var _stringify = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/json/stringify"));
  28. var _asyncToGenerator2 = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/helpers/asyncToGenerator"));
  29. var _classCallCheck2 = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/helpers/classCallCheck"));
  30. var _createClass2 = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/helpers/createClass"));
  31. var _defineProperty2 = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/helpers/defineProperty"));
  32. function ownKeys(object, enumerableOnly) {
  33. var keys = _Object$keys2(object);
  34. if (_Object$getOwnPropertySymbols) {
  35. var symbols = _Object$getOwnPropertySymbols(object);
  36. enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) {
  37. return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
  38. })), keys.push.apply(keys, symbols);
  39. }
  40. return keys;
  41. }
  42. function _objectSpread(target) {
  43. for (var i = 1; i < arguments.length; i++) {
  44. var _context10, _context11;
  45. var source = null != arguments[i] ? arguments[i] : {};
  46. i % 2 ? _forEachInstanceProperty2(_context10 = ownKeys(Object(source), !0)).call(_context10, function (key) {
  47. (0, _defineProperty2.default)(target, key, source[key]);
  48. }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty2(_context11 = ownKeys(Object(source))).call(_context11, function (key) {
  49. _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
  50. });
  51. }
  52. return target;
  53. }
  54. /**
  55. * Automatically generated code, via genSolanaAPI.js
  56. * Do not modify manually
  57. */
  58. var axios = _dereq_('axios');
  59. var SolanaApi = /*#__PURE__*/function () {
  60. function SolanaApi() {
  61. (0, _classCallCheck2.default)(this, SolanaApi);
  62. }
  63. (0, _createClass2.default)(SolanaApi, null, [{
  64. key: "initialize",
  65. value: // URL will be changed when api is deployed
  66. function (_ref) {
  67. var apiKey = _ref.apiKey,
  68. serverUrl = _ref.serverUrl,
  69. _ref$Moralis = _ref.Moralis,
  70. Moralis = _ref$Moralis === void 0 ? null : _ref$Moralis;
  71. if (!serverUrl && !apiKey) {
  72. throw new Error('SolanaApi.initialize failed: initialize with apiKey or serverUrl');
  73. }
  74. if (apiKey) this.apiKey = apiKey;
  75. if (serverUrl) this.serverUrl = serverUrl;
  76. this.Moralis = Moralis;
  77. }
  78. }, {
  79. key: "getBody",
  80. value: function (params, bodyParams) {
  81. var _this = this;
  82. if (!params || !bodyParams || !bodyParams.length) {
  83. return undefined;
  84. }
  85. var body = {};
  86. (0, _forEach.default)(bodyParams).call(bodyParams, function (_ref2) {
  87. var key = _ref2.key,
  88. type = _ref2.type,
  89. required = _ref2.required;
  90. if (params[key] === undefined) {
  91. if (required) throw new Error("param ".concat(key, " is required!"));
  92. } else if (type === _this.BodyParamTypes.setBody) {
  93. body = params[key];
  94. } else {
  95. body[key] = params[key];
  96. } // remove the param so it doesn't also get added as a query param
  97. delete params[key];
  98. });
  99. return body;
  100. }
  101. }, {
  102. key: "getParameterizedUrl",
  103. value: function (url, params) {
  104. var _context;
  105. if (!(0, _keys.default)(params).length) return url; // find url params, they start with :
  106. var requiredParams = (0, _filter.default)(_context = url.split('/')).call(_context, function (s) {
  107. return s && (0, _includes.default)(s).call(s, ':');
  108. });
  109. if (!requiredParams.length) return url;
  110. var parameterizedUrl = url;
  111. (0, _forEach.default)(requiredParams).call(requiredParams, function (p) {
  112. // strip the : and replace with param value
  113. var key = p.substr(1);
  114. var value = params[key];
  115. if (!value) {
  116. throw new Error("required param ".concat(key, " not provided"));
  117. }
  118. parameterizedUrl = parameterizedUrl.replace(p, value); // remove required param from param list
  119. // so it doesn't become part of the query params
  120. delete params[key];
  121. });
  122. return parameterizedUrl;
  123. }
  124. }, {
  125. key: "getApiRateLimitInfo",
  126. value: function (headers) {
  127. return {
  128. 'x-rate-limit-limit': headers['x-rate-limit-limit'],
  129. 'x-rate-limit-remaining-ttl': headers['x-rate-limit-remaining-ttl'],
  130. 'x-rate-limit-used': headers['x-rate-limit-used'],
  131. 'x-rate-limit-remaining-ip-ttl': headers['x-rate-limit-remaining-ip-ttl'],
  132. 'x-rate-limit-ip-used': headers['x-rate-limit-ip-used']
  133. };
  134. }
  135. }, {
  136. key: "getErrorMessage",
  137. value: function (error, url) {
  138. var _error$response, _error$response$data;
  139. return (error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.message) || (error === null || error === void 0 ? void 0 : error.message) || (error === null || error === void 0 ? void 0 : error.toString()) || "Solana API error while calling ".concat(url);
  140. }
  141. }, {
  142. key: "fetch",
  143. value: function () {
  144. var _fetch = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref3) {
  145. var endpoint, providedParams, params, User, user;
  146. return _regenerator.default.wrap(function (_context2) {
  147. while (1) {
  148. switch (_context2.prev = _context2.next) {
  149. case 0:
  150. endpoint = _ref3.endpoint, providedParams = _ref3.params; // Make a shallow copy to prevent modification of original params
  151. params = _objectSpread({}, providedParams);
  152. if (this.Moralis) {
  153. User = this.Moralis.User;
  154. user = User.current();
  155. if (!params.address) {
  156. if (user) {
  157. params.address = user.get('solAddress');
  158. }
  159. }
  160. }
  161. if (!params.network) params.network = 'mainnet';
  162. if (!params.responseType) params.responseType = 'native';
  163. if (this.apiKey) {
  164. _context2.next = 7;
  165. break;
  166. }
  167. return _context2.abrupt("return", this.fetchFromServer(endpoint.name, params));
  168. case 7:
  169. return _context2.abrupt("return", this.fetchFromApi(endpoint, params));
  170. case 8:
  171. case "end":
  172. return _context2.stop();
  173. }
  174. }
  175. }, _callee, this);
  176. }));
  177. return function () {
  178. return _fetch.apply(this, arguments);
  179. };
  180. }()
  181. }, {
  182. key: "fetchFromApi",
  183. value: function () {
  184. var _fetchFromApi = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(endpoint, params) {
  185. var _endpoint$method, method, url, bodyParams, parameterizedUrl, body, response, _error$response2, status, headers, data, msg;
  186. return _regenerator.default.wrap(function (_context3) {
  187. while (1) {
  188. switch (_context3.prev = _context3.next) {
  189. case 0:
  190. _endpoint$method = endpoint.method, method = _endpoint$method === void 0 ? 'GET' : _endpoint$method, url = endpoint.url, bodyParams = endpoint.bodyParams;
  191. _context3.prev = 1;
  192. parameterizedUrl = this.getParameterizedUrl(url, params);
  193. body = this.getBody(params, bodyParams);
  194. _context3.next = 6;
  195. return axios(this.baseURL + parameterizedUrl, {
  196. params: params,
  197. method: method,
  198. body: body,
  199. headers: {
  200. Accept: 'application/json',
  201. 'Content-Type': 'application/json',
  202. 'x-api-key': this.apiKey
  203. }
  204. });
  205. case 6:
  206. response = _context3.sent;
  207. return _context3.abrupt("return", response.data);
  208. case 10:
  209. _context3.prev = 10;
  210. _context3.t0 = _context3["catch"](1);
  211. _error$response2 = _context3.t0.response, status = _error$response2.status, headers = _error$response2.headers, data = _error$response2.data;
  212. if (status === 429) {
  213. msg = "This Moralis Server is rate-limited because of the plan restrictions. See the details about the current rate and throttle limits: ".concat((0, _stringify.default)(this.getApiRateLimitInfo(headers)));
  214. } else {
  215. msg = this.getApiErrorMessage(_context3.t0, url);
  216. }
  217. throw new Error(msg);
  218. case 15:
  219. case "end":
  220. return _context3.stop();
  221. }
  222. }
  223. }, _callee2, this, [[1, 10]]);
  224. }));
  225. return function () {
  226. return _fetchFromApi.apply(this, arguments);
  227. };
  228. }()
  229. }, {
  230. key: "fetchFromServer",
  231. value: function () {
  232. var _fetchFromServer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(name, options) {
  233. var http, user, response, _error$response3, _error$response3$data;
  234. return _regenerator.default.wrap(function (_context4) {
  235. while (1) {
  236. switch (_context4.prev = _context4.next) {
  237. case 0:
  238. if (this.serverUrl) {
  239. _context4.next = 2;
  240. break;
  241. }
  242. throw new Error('SolanaAPI not initialized, run Moralis.start() first');
  243. case 2:
  244. _context4.prev = 2;
  245. http = axios.create({
  246. baseURL: this.serverUrl
  247. });
  248. user = this.Moralis.User.current();
  249. if (user) {
  250. options._SessionToken = user.attributes.sessionToken;
  251. options._ApplicationId = this.Moralis.applicationId;
  252. }
  253. _context4.next = 8;
  254. return http.post("/functions/sol-".concat(name), options, {
  255. headers: {
  256. Accept: 'application/json',
  257. 'Content-Type': 'application/json'
  258. }
  259. });
  260. case 8:
  261. response = _context4.sent;
  262. return _context4.abrupt("return", response.data.result);
  263. case 12:
  264. _context4.prev = 12;
  265. _context4.t0 = _context4["catch"](2);
  266. if (!((_error$response3 = _context4.t0.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && _error$response3$data.error)) {
  267. _context4.next = 16;
  268. break;
  269. }
  270. throw new Error(_context4.t0.response.data.error);
  271. case 16:
  272. throw _context4.t0;
  273. case 17:
  274. case "end":
  275. return _context4.stop();
  276. }
  277. }
  278. }, _callee3, this, [[2, 12]]);
  279. }));
  280. return function () {
  281. return _fetchFromServer.apply(this, arguments);
  282. };
  283. }()
  284. }]);
  285. return SolanaApi;
  286. }();
  287. (0, _defineProperty2.default)(SolanaApi, "baseURL", 'https://solana-gateway.moralis.io');
  288. (0, _defineProperty2.default)(SolanaApi, "BodyParamTypes", {
  289. setBody: 'set body',
  290. property: 'property'
  291. });
  292. (0, _defineProperty2.default)(SolanaApi, "account", {
  293. balance: function () {
  294. var _balance = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
  295. var options,
  296. _args4 = arguments;
  297. return _regenerator.default.wrap(function (_context5) {
  298. while (1) {
  299. switch (_context5.prev = _context5.next) {
  300. case 0:
  301. options = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
  302. return _context5.abrupt("return", SolanaApi.fetch({
  303. endpoint: {
  304. "method": "GET",
  305. "group": "account",
  306. "name": "balance",
  307. "url": "/account/:network/:address/balance"
  308. },
  309. params: options
  310. }));
  311. case 2:
  312. case "end":
  313. return _context5.stop();
  314. }
  315. }
  316. }, _callee4);
  317. }));
  318. return function () {
  319. return _balance.apply(this, arguments);
  320. };
  321. }(),
  322. getSPL: function () {
  323. var _getSPL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
  324. var options,
  325. _args5 = arguments;
  326. return _regenerator.default.wrap(function (_context6) {
  327. while (1) {
  328. switch (_context6.prev = _context6.next) {
  329. case 0:
  330. options = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
  331. return _context6.abrupt("return", SolanaApi.fetch({
  332. endpoint: {
  333. "method": "GET",
  334. "group": "account",
  335. "name": "getSPL",
  336. "url": "/account/:network/:address/tokens"
  337. },
  338. params: options
  339. }));
  340. case 2:
  341. case "end":
  342. return _context6.stop();
  343. }
  344. }
  345. }, _callee5);
  346. }));
  347. return function () {
  348. return _getSPL.apply(this, arguments);
  349. };
  350. }(),
  351. getNFTs: function () {
  352. var _getNFTs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
  353. var options,
  354. _args6 = arguments;
  355. return _regenerator.default.wrap(function (_context7) {
  356. while (1) {
  357. switch (_context7.prev = _context7.next) {
  358. case 0:
  359. options = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
  360. return _context7.abrupt("return", SolanaApi.fetch({
  361. endpoint: {
  362. "method": "GET",
  363. "group": "account",
  364. "name": "getNFTs",
  365. "url": "/account/:network/:address/nft"
  366. },
  367. params: options
  368. }));
  369. case 2:
  370. case "end":
  371. return _context7.stop();
  372. }
  373. }
  374. }, _callee6);
  375. }));
  376. return function () {
  377. return _getNFTs.apply(this, arguments);
  378. };
  379. }(),
  380. getPortfolio: function () {
  381. var _getPortfolio = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  382. var options,
  383. _args7 = arguments;
  384. return _regenerator.default.wrap(function (_context8) {
  385. while (1) {
  386. switch (_context8.prev = _context8.next) {
  387. case 0:
  388. options = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
  389. return _context8.abrupt("return", SolanaApi.fetch({
  390. endpoint: {
  391. "method": "GET",
  392. "group": "account",
  393. "name": "getPortfolio",
  394. "url": "/account/:network/:address/portfolio"
  395. },
  396. params: options
  397. }));
  398. case 2:
  399. case "end":
  400. return _context8.stop();
  401. }
  402. }
  403. }, _callee7);
  404. }));
  405. return function () {
  406. return _getPortfolio.apply(this, arguments);
  407. };
  408. }()
  409. });
  410. (0, _defineProperty2.default)(SolanaApi, "nft", {
  411. getNFTMetadata: function () {
  412. var _getNFTMetadata = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  413. var options,
  414. _args8 = arguments;
  415. return _regenerator.default.wrap(function (_context9) {
  416. while (1) {
  417. switch (_context9.prev = _context9.next) {
  418. case 0:
  419. options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
  420. return _context9.abrupt("return", SolanaApi.fetch({
  421. endpoint: {
  422. "method": "GET",
  423. "group": "nft",
  424. "name": "getNFTMetadata",
  425. "url": "/nft/:network/:address/metadata"
  426. },
  427. params: options
  428. }));
  429. case 2:
  430. case "end":
  431. return _context9.stop();
  432. }
  433. }
  434. }, _callee8);
  435. }));
  436. return function () {
  437. return _getNFTMetadata.apply(this, arguments);
  438. };
  439. }()
  440. });
  441. var _default = SolanaApi;
  442. exports.default = _default;
  443. },{"@babel/runtime-corejs3/core-js-stable/instance/filter":2,"@babel/runtime-corejs3/core-js-stable/instance/for-each":3,"@babel/runtime-corejs3/core-js-stable/instance/includes":4,"@babel/runtime-corejs3/core-js-stable/json/stringify":5,"@babel/runtime-corejs3/core-js-stable/object/define-properties":6,"@babel/runtime-corejs3/core-js-stable/object/define-property":7,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor":8,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors":9,"@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols":10,"@babel/runtime-corejs3/core-js-stable/object/keys":11,"@babel/runtime-corejs3/helpers/asyncToGenerator":14,"@babel/runtime-corejs3/helpers/classCallCheck":15,"@babel/runtime-corejs3/helpers/createClass":16,"@babel/runtime-corejs3/helpers/defineProperty":17,"@babel/runtime-corejs3/helpers/interopRequireDefault":18,"@babel/runtime-corejs3/regenerator":19,"axios":20}],2:[function(_dereq_,module,exports){
  444. module.exports = _dereq_("core-js-pure/stable/instance/filter");
  445. },{"core-js-pure/stable/instance/filter":225}],3:[function(_dereq_,module,exports){
  446. module.exports = _dereq_("core-js-pure/stable/instance/for-each");
  447. },{"core-js-pure/stable/instance/for-each":226}],4:[function(_dereq_,module,exports){
  448. module.exports = _dereq_("core-js-pure/stable/instance/includes");
  449. },{"core-js-pure/stable/instance/includes":227}],5:[function(_dereq_,module,exports){
  450. module.exports = _dereq_("core-js-pure/stable/json/stringify");
  451. },{"core-js-pure/stable/json/stringify":228}],6:[function(_dereq_,module,exports){
  452. module.exports = _dereq_("core-js-pure/stable/object/define-properties");
  453. },{"core-js-pure/stable/object/define-properties":229}],7:[function(_dereq_,module,exports){
  454. module.exports = _dereq_("core-js-pure/stable/object/define-property");
  455. },{"core-js-pure/stable/object/define-property":230}],8:[function(_dereq_,module,exports){
  456. module.exports = _dereq_("core-js-pure/stable/object/get-own-property-descriptor");
  457. },{"core-js-pure/stable/object/get-own-property-descriptor":231}],9:[function(_dereq_,module,exports){
  458. module.exports = _dereq_("core-js-pure/stable/object/get-own-property-descriptors");
  459. },{"core-js-pure/stable/object/get-own-property-descriptors":232}],10:[function(_dereq_,module,exports){
  460. module.exports = _dereq_("core-js-pure/stable/object/get-own-property-symbols");
  461. },{"core-js-pure/stable/object/get-own-property-symbols":233}],11:[function(_dereq_,module,exports){
  462. module.exports = _dereq_("core-js-pure/stable/object/keys");
  463. },{"core-js-pure/stable/object/keys":234}],12:[function(_dereq_,module,exports){
  464. module.exports = _dereq_("core-js-pure/features/object/define-property");
  465. },{"core-js-pure/features/object/define-property":67}],13:[function(_dereq_,module,exports){
  466. module.exports = _dereq_("core-js-pure/features/promise");
  467. },{"core-js-pure/features/promise":68}],14:[function(_dereq_,module,exports){
  468. var _Promise = _dereq_("@babel/runtime-corejs3/core-js/promise");
  469. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  470. try {
  471. var info = gen[key](arg);
  472. var value = info.value;
  473. } catch (error) {
  474. reject(error);
  475. return;
  476. }
  477. if (info.done) {
  478. resolve(value);
  479. } else {
  480. _Promise.resolve(value).then(_next, _throw);
  481. }
  482. }
  483. function _asyncToGenerator(fn) {
  484. return function () {
  485. var self = this,
  486. args = arguments;
  487. return new _Promise(function (resolve, reject) {
  488. var gen = fn.apply(self, args);
  489. function _next(value) {
  490. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  491. }
  492. function _throw(err) {
  493. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  494. }
  495. _next(undefined);
  496. });
  497. };
  498. }
  499. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  500. },{"@babel/runtime-corejs3/core-js/promise":13}],15:[function(_dereq_,module,exports){
  501. function _classCallCheck(instance, Constructor) {
  502. if (!(instance instanceof Constructor)) {
  503. throw new TypeError("Cannot call a class as a function");
  504. }
  505. }
  506. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  507. },{}],16:[function(_dereq_,module,exports){
  508. var _Object$defineProperty = _dereq_("@babel/runtime-corejs3/core-js/object/define-property");
  509. function _defineProperties(target, props) {
  510. for (var i = 0; i < props.length; i++) {
  511. var descriptor = props[i];
  512. descriptor.enumerable = descriptor.enumerable || false;
  513. descriptor.configurable = true;
  514. if ("value" in descriptor) descriptor.writable = true;
  515. _Object$defineProperty(target, descriptor.key, descriptor);
  516. }
  517. }
  518. function _createClass(Constructor, protoProps, staticProps) {
  519. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  520. if (staticProps) _defineProperties(Constructor, staticProps);
  521. _Object$defineProperty(Constructor, "prototype", {
  522. writable: false
  523. });
  524. return Constructor;
  525. }
  526. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  527. },{"@babel/runtime-corejs3/core-js/object/define-property":12}],17:[function(_dereq_,module,exports){
  528. var _Object$defineProperty = _dereq_("@babel/runtime-corejs3/core-js/object/define-property");
  529. function _defineProperty(obj, key, value) {
  530. if (key in obj) {
  531. _Object$defineProperty(obj, key, {
  532. value: value,
  533. enumerable: true,
  534. configurable: true,
  535. writable: true
  536. });
  537. } else {
  538. obj[key] = value;
  539. }
  540. return obj;
  541. }
  542. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  543. },{"@babel/runtime-corejs3/core-js/object/define-property":12}],18:[function(_dereq_,module,exports){
  544. function _interopRequireDefault(obj) {
  545. return obj && obj.__esModule ? obj : {
  546. "default": obj
  547. };
  548. }
  549. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  550. },{}],19:[function(_dereq_,module,exports){
  551. module.exports = _dereq_("regenerator-runtime");
  552. },{"regenerator-runtime":236}],20:[function(_dereq_,module,exports){
  553. module.exports = _dereq_('./lib/axios');
  554. },{"./lib/axios":22}],21:[function(_dereq_,module,exports){
  555. 'use strict';
  556. var utils = _dereq_('./../utils');
  557. var settle = _dereq_('./../core/settle');
  558. var cookies = _dereq_('./../helpers/cookies');
  559. var buildURL = _dereq_('./../helpers/buildURL');
  560. var buildFullPath = _dereq_('../core/buildFullPath');
  561. var parseHeaders = _dereq_('./../helpers/parseHeaders');
  562. var isURLSameOrigin = _dereq_('./../helpers/isURLSameOrigin');
  563. var createError = _dereq_('../core/createError');
  564. var transitionalDefaults = _dereq_('../defaults/transitional');
  565. var Cancel = _dereq_('../cancel/Cancel');
  566. module.exports = function xhrAdapter(config) {
  567. return new Promise(function dispatchXhrRequest(resolve, reject) {
  568. var requestData = config.data;
  569. var requestHeaders = config.headers;
  570. var responseType = config.responseType;
  571. var onCanceled;
  572. function done() {
  573. if (config.cancelToken) {
  574. config.cancelToken.unsubscribe(onCanceled);
  575. }
  576. if (config.signal) {
  577. config.signal.removeEventListener('abort', onCanceled);
  578. }
  579. }
  580. if (utils.isFormData(requestData)) {
  581. delete requestHeaders['Content-Type']; // Let the browser set it
  582. }
  583. var request = new XMLHttpRequest();
  584. // HTTP basic authentication
  585. if (config.auth) {
  586. var username = config.auth.username || '';
  587. var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
  588. requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
  589. }
  590. var fullPath = buildFullPath(config.baseURL, config.url);
  591. request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
  592. // Set the request timeout in MS
  593. request.timeout = config.timeout;
  594. function onloadend() {
  595. if (!request) {
  596. return;
  597. }
  598. // Prepare the response
  599. var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
  600. var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
  601. request.responseText : request.response;
  602. var response = {
  603. data: responseData,
  604. status: request.status,
  605. statusText: request.statusText,
  606. headers: responseHeaders,
  607. config: config,
  608. request: request
  609. };
  610. settle(function _resolve(value) {
  611. resolve(value);
  612. done();
  613. }, function _reject(err) {
  614. reject(err);
  615. done();
  616. }, response);
  617. // Clean up request
  618. request = null;
  619. }
  620. if ('onloadend' in request) {
  621. // Use onloadend if available
  622. request.onloadend = onloadend;
  623. } else {
  624. // Listen for ready state to emulate onloadend
  625. request.onreadystatechange = function handleLoad() {
  626. if (!request || request.readyState !== 4) {
  627. return;
  628. }
  629. // The request errored out and we didn't get a response, this will be
  630. // handled by onerror instead
  631. // With one exception: request that using file: protocol, most browsers
  632. // will return status as 0 even though it's a successful request
  633. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
  634. return;
  635. }
  636. // readystate handler is calling before onerror or ontimeout handlers,
  637. // so we should call onloadend on the next 'tick'
  638. setTimeout(onloadend);
  639. };
  640. }
  641. // Handle browser request cancellation (as opposed to a manual cancellation)
  642. request.onabort = function handleAbort() {
  643. if (!request) {
  644. return;
  645. }
  646. reject(createError('Request aborted', config, 'ECONNABORTED', request));
  647. // Clean up request
  648. request = null;
  649. };
  650. // Handle low level network errors
  651. request.onerror = function handleError() {
  652. // Real errors are hidden from us by the browser
  653. // onerror should only fire if it's a network error
  654. reject(createError('Network Error', config, null, request));
  655. // Clean up request
  656. request = null;
  657. };
  658. // Handle timeout
  659. request.ontimeout = function handleTimeout() {
  660. var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
  661. var transitional = config.transitional || transitionalDefaults;
  662. if (config.timeoutErrorMessage) {
  663. timeoutErrorMessage = config.timeoutErrorMessage;
  664. }
  665. reject(createError(
  666. timeoutErrorMessage,
  667. config,
  668. transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
  669. request));
  670. // Clean up request
  671. request = null;
  672. };
  673. // Add xsrf header
  674. // This is only done if running in a standard browser environment.
  675. // Specifically not if we're in a web worker, or react-native.
  676. if (utils.isStandardBrowserEnv()) {
  677. // Add xsrf header
  678. var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
  679. cookies.read(config.xsrfCookieName) :
  680. undefined;
  681. if (xsrfValue) {
  682. requestHeaders[config.xsrfHeaderName] = xsrfValue;
  683. }
  684. }
  685. // Add headers to the request
  686. if ('setRequestHeader' in request) {
  687. utils.forEach(requestHeaders, function setRequestHeader(val, key) {
  688. if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
  689. // Remove Content-Type if data is undefined
  690. delete requestHeaders[key];
  691. } else {
  692. // Otherwise add header to the request
  693. request.setRequestHeader(key, val);
  694. }
  695. });
  696. }
  697. // Add withCredentials to request if needed
  698. if (!utils.isUndefined(config.withCredentials)) {
  699. request.withCredentials = !!config.withCredentials;
  700. }
  701. // Add responseType to request if needed
  702. if (responseType && responseType !== 'json') {
  703. request.responseType = config.responseType;
  704. }
  705. // Handle progress if needed
  706. if (typeof config.onDownloadProgress === 'function') {
  707. request.addEventListener('progress', config.onDownloadProgress);
  708. }
  709. // Not all browsers support upload events
  710. if (typeof config.onUploadProgress === 'function' && request.upload) {
  711. request.upload.addEventListener('progress', config.onUploadProgress);
  712. }
  713. if (config.cancelToken || config.signal) {
  714. // Handle cancellation
  715. // eslint-disable-next-line func-names
  716. onCanceled = function(cancel) {
  717. if (!request) {
  718. return;
  719. }
  720. reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
  721. request.abort();
  722. request = null;
  723. };
  724. config.cancelToken && config.cancelToken.subscribe(onCanceled);
  725. if (config.signal) {
  726. config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
  727. }
  728. }
  729. if (!requestData) {
  730. requestData = null;
  731. }
  732. // Send the request
  733. request.send(requestData);
  734. });
  735. };
  736. },{"../cancel/Cancel":23,"../core/buildFullPath":28,"../core/createError":29,"../defaults/transitional":36,"./../core/settle":33,"./../helpers/buildURL":39,"./../helpers/cookies":41,"./../helpers/isURLSameOrigin":44,"./../helpers/parseHeaders":46,"./../utils":49}],22:[function(_dereq_,module,exports){
  737. 'use strict';
  738. var utils = _dereq_('./utils');
  739. var bind = _dereq_('./helpers/bind');
  740. var Axios = _dereq_('./core/Axios');
  741. var mergeConfig = _dereq_('./core/mergeConfig');
  742. var defaults = _dereq_('./defaults');
  743. /**
  744. * Create an instance of Axios
  745. *
  746. * @param {Object} defaultConfig The default config for the instance
  747. * @return {Axios} A new instance of Axios
  748. */
  749. function createInstance(defaultConfig) {
  750. var context = new Axios(defaultConfig);
  751. var instance = bind(Axios.prototype.request, context);
  752. // Copy axios.prototype to instance
  753. utils.extend(instance, Axios.prototype, context);
  754. // Copy context to instance
  755. utils.extend(instance, context);
  756. // Factory for creating new instances
  757. instance.create = function create(instanceConfig) {
  758. return createInstance(mergeConfig(defaultConfig, instanceConfig));
  759. };
  760. return instance;
  761. }
  762. // Create the default instance to be exported
  763. var axios = createInstance(defaults);
  764. // Expose Axios class to allow class inheritance
  765. axios.Axios = Axios;
  766. // Expose Cancel & CancelToken
  767. axios.Cancel = _dereq_('./cancel/Cancel');
  768. axios.CancelToken = _dereq_('./cancel/CancelToken');
  769. axios.isCancel = _dereq_('./cancel/isCancel');
  770. axios.VERSION = _dereq_('./env/data').version;
  771. // Expose all/spread
  772. axios.all = function all(promises) {
  773. return Promise.all(promises);
  774. };
  775. axios.spread = _dereq_('./helpers/spread');
  776. // Expose isAxiosError
  777. axios.isAxiosError = _dereq_('./helpers/isAxiosError');
  778. module.exports = axios;
  779. // Allow use of default import syntax in TypeScript
  780. module.exports.default = axios;
  781. },{"./cancel/Cancel":23,"./cancel/CancelToken":24,"./cancel/isCancel":25,"./core/Axios":26,"./core/mergeConfig":32,"./defaults":35,"./env/data":37,"./helpers/bind":38,"./helpers/isAxiosError":43,"./helpers/spread":47,"./utils":49}],23:[function(_dereq_,module,exports){
  782. 'use strict';
  783. /**
  784. * A `Cancel` is an object that is thrown when an operation is canceled.
  785. *
  786. * @class
  787. * @param {string=} message The message.
  788. */
  789. function Cancel(message) {
  790. this.message = message;
  791. }
  792. Cancel.prototype.toString = function toString() {
  793. return 'Cancel' + (this.message ? ': ' + this.message : '');
  794. };
  795. Cancel.prototype.__CANCEL__ = true;
  796. module.exports = Cancel;
  797. },{}],24:[function(_dereq_,module,exports){
  798. 'use strict';
  799. var Cancel = _dereq_('./Cancel');
  800. /**
  801. * A `CancelToken` is an object that can be used to request cancellation of an operation.
  802. *
  803. * @class
  804. * @param {Function} executor The executor function.
  805. */
  806. function CancelToken(executor) {
  807. if (typeof executor !== 'function') {
  808. throw new TypeError('executor must be a function.');
  809. }
  810. var resolvePromise;
  811. this.promise = new Promise(function promiseExecutor(resolve) {
  812. resolvePromise = resolve;
  813. });
  814. var token = this;
  815. // eslint-disable-next-line func-names
  816. this.promise.then(function(cancel) {
  817. if (!token._listeners) return;
  818. var i;
  819. var l = token._listeners.length;
  820. for (i = 0; i < l; i++) {
  821. token._listeners[i](cancel);
  822. }
  823. token._listeners = null;
  824. });
  825. // eslint-disable-next-line func-names
  826. this.promise.then = function(onfulfilled) {
  827. var _resolve;
  828. // eslint-disable-next-line func-names
  829. var promise = new Promise(function(resolve) {
  830. token.subscribe(resolve);
  831. _resolve = resolve;
  832. }).then(onfulfilled);
  833. promise.cancel = function reject() {
  834. token.unsubscribe(_resolve);
  835. };
  836. return promise;
  837. };
  838. executor(function cancel(message) {
  839. if (token.reason) {
  840. // Cancellation has already been requested
  841. return;
  842. }
  843. token.reason = new Cancel(message);
  844. resolvePromise(token.reason);
  845. });
  846. }
  847. /**
  848. * Throws a `Cancel` if cancellation has been requested.
  849. */
  850. CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  851. if (this.reason) {
  852. throw this.reason;
  853. }
  854. };
  855. /**
  856. * Subscribe to the cancel signal
  857. */
  858. CancelToken.prototype.subscribe = function subscribe(listener) {
  859. if (this.reason) {
  860. listener(this.reason);
  861. return;
  862. }
  863. if (this._listeners) {
  864. this._listeners.push(listener);
  865. } else {
  866. this._listeners = [listener];
  867. }
  868. };
  869. /**
  870. * Unsubscribe from the cancel signal
  871. */
  872. CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
  873. if (!this._listeners) {
  874. return;
  875. }
  876. var index = this._listeners.indexOf(listener);
  877. if (index !== -1) {
  878. this._listeners.splice(index, 1);
  879. }
  880. };
  881. /**
  882. * Returns an object that contains a new `CancelToken` and a function that, when called,
  883. * cancels the `CancelToken`.
  884. */
  885. CancelToken.source = function source() {
  886. var cancel;
  887. var token = new CancelToken(function executor(c) {
  888. cancel = c;
  889. });
  890. return {
  891. token: token,
  892. cancel: cancel
  893. };
  894. };
  895. module.exports = CancelToken;
  896. },{"./Cancel":23}],25:[function(_dereq_,module,exports){
  897. 'use strict';
  898. module.exports = function isCancel(value) {
  899. return !!(value && value.__CANCEL__);
  900. };
  901. },{}],26:[function(_dereq_,module,exports){
  902. 'use strict';
  903. var utils = _dereq_('./../utils');
  904. var buildURL = _dereq_('../helpers/buildURL');
  905. var InterceptorManager = _dereq_('./InterceptorManager');
  906. var dispatchRequest = _dereq_('./dispatchRequest');
  907. var mergeConfig = _dereq_('./mergeConfig');
  908. var validator = _dereq_('../helpers/validator');
  909. var validators = validator.validators;
  910. /**
  911. * Create a new instance of Axios
  912. *
  913. * @param {Object} instanceConfig The default config for the instance
  914. */
  915. function Axios(instanceConfig) {
  916. this.defaults = instanceConfig;
  917. this.interceptors = {
  918. request: new InterceptorManager(),
  919. response: new InterceptorManager()
  920. };
  921. }
  922. /**
  923. * Dispatch a request
  924. *
  925. * @param {Object} config The config specific for this request (merged with this.defaults)
  926. */
  927. Axios.prototype.request = function request(configOrUrl, config) {
  928. /*eslint no-param-reassign:0*/
  929. // Allow for axios('example/url'[, config]) a la fetch API
  930. if (typeof configOrUrl === 'string') {
  931. config = config || {};
  932. config.url = configOrUrl;
  933. } else {
  934. config = configOrUrl || {};
  935. }
  936. config = mergeConfig(this.defaults, config);
  937. // Set config.method
  938. if (config.method) {
  939. config.method = config.method.toLowerCase();
  940. } else if (this.defaults.method) {
  941. config.method = this.defaults.method.toLowerCase();
  942. } else {
  943. config.method = 'get';
  944. }
  945. var transitional = config.transitional;
  946. if (transitional !== undefined) {
  947. validator.assertOptions(transitional, {
  948. silentJSONParsing: validators.transitional(validators.boolean),
  949. forcedJSONParsing: validators.transitional(validators.boolean),
  950. clarifyTimeoutError: validators.transitional(validators.boolean)
  951. }, false);
  952. }
  953. // filter out skipped interceptors
  954. var requestInterceptorChain = [];
  955. var synchronousRequestInterceptors = true;
  956. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  957. if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
  958. return;
  959. }
  960. synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
  961. requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  962. });
  963. var responseInterceptorChain = [];
  964. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  965. responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  966. });
  967. var promise;
  968. if (!synchronousRequestInterceptors) {
  969. var chain = [dispatchRequest, undefined];
  970. Array.prototype.unshift.apply(chain, requestInterceptorChain);
  971. chain = chain.concat(responseInterceptorChain);
  972. promise = Promise.resolve(config);
  973. while (chain.length) {
  974. promise = promise.then(chain.shift(), chain.shift());
  975. }
  976. return promise;
  977. }
  978. var newConfig = config;
  979. while (requestInterceptorChain.length) {
  980. var onFulfilled = requestInterceptorChain.shift();
  981. var onRejected = requestInterceptorChain.shift();
  982. try {
  983. newConfig = onFulfilled(newConfig);
  984. } catch (error) {
  985. onRejected(error);
  986. break;
  987. }
  988. }
  989. try {
  990. promise = dispatchRequest(newConfig);
  991. } catch (error) {
  992. return Promise.reject(error);
  993. }
  994. while (responseInterceptorChain.length) {
  995. promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
  996. }
  997. return promise;
  998. };
  999. Axios.prototype.getUri = function getUri(config) {
  1000. config = mergeConfig(this.defaults, config);
  1001. return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
  1002. };
  1003. // Provide aliases for supported request methods
  1004. utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  1005. /*eslint func-names:0*/
  1006. Axios.prototype[method] = function(url, config) {
  1007. return this.request(mergeConfig(config || {}, {
  1008. method: method,
  1009. url: url,
  1010. data: (config || {}).data
  1011. }));
  1012. };
  1013. });
  1014. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  1015. /*eslint func-names:0*/
  1016. Axios.prototype[method] = function(url, data, config) {
  1017. return this.request(mergeConfig(config || {}, {
  1018. method: method,
  1019. url: url,
  1020. data: data
  1021. }));
  1022. };
  1023. });
  1024. module.exports = Axios;
  1025. },{"../helpers/buildURL":39,"../helpers/validator":48,"./../utils":49,"./InterceptorManager":27,"./dispatchRequest":30,"./mergeConfig":32}],27:[function(_dereq_,module,exports){
  1026. 'use strict';
  1027. var utils = _dereq_('./../utils');
  1028. function InterceptorManager() {
  1029. this.handlers = [];
  1030. }
  1031. /**
  1032. * Add a new interceptor to the stack
  1033. *
  1034. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  1035. * @param {Function} rejected The function to handle `reject` for a `Promise`
  1036. *
  1037. * @return {Number} An ID used to remove interceptor later
  1038. */
  1039. InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
  1040. this.handlers.push({
  1041. fulfilled: fulfilled,
  1042. rejected: rejected,
  1043. synchronous: options ? options.synchronous : false,
  1044. runWhen: options ? options.runWhen : null
  1045. });
  1046. return this.handlers.length - 1;
  1047. };
  1048. /**
  1049. * Remove an interceptor from the stack
  1050. *
  1051. * @param {Number} id The ID that was returned by `use`
  1052. */
  1053. InterceptorManager.prototype.eject = function eject(id) {
  1054. if (this.handlers[id]) {
  1055. this.handlers[id] = null;
  1056. }
  1057. };
  1058. /**
  1059. * Iterate over all the registered interceptors
  1060. *
  1061. * This method is particularly useful for skipping over any
  1062. * interceptors that may have become `null` calling `eject`.
  1063. *
  1064. * @param {Function} fn The function to call for each interceptor
  1065. */
  1066. InterceptorManager.prototype.forEach = function forEach(fn) {
  1067. utils.forEach(this.handlers, function forEachHandler(h) {
  1068. if (h !== null) {
  1069. fn(h);
  1070. }
  1071. });
  1072. };
  1073. module.exports = InterceptorManager;
  1074. },{"./../utils":49}],28:[function(_dereq_,module,exports){
  1075. 'use strict';
  1076. var isAbsoluteURL = _dereq_('../helpers/isAbsoluteURL');
  1077. var combineURLs = _dereq_('../helpers/combineURLs');
  1078. /**
  1079. * Creates a new URL by combining the baseURL with the requestedURL,
  1080. * only when the requestedURL is not already an absolute URL.
  1081. * If the requestURL is absolute, this function returns the requestedURL untouched.
  1082. *
  1083. * @param {string} baseURL The base URL
  1084. * @param {string} requestedURL Absolute or relative URL to combine
  1085. * @returns {string} The combined full path
  1086. */
  1087. module.exports = function buildFullPath(baseURL, requestedURL) {
  1088. if (baseURL && !isAbsoluteURL(requestedURL)) {
  1089. return combineURLs(baseURL, requestedURL);
  1090. }
  1091. return requestedURL;
  1092. };
  1093. },{"../helpers/combineURLs":40,"../helpers/isAbsoluteURL":42}],29:[function(_dereq_,module,exports){
  1094. 'use strict';
  1095. var enhanceError = _dereq_('./enhanceError');
  1096. /**
  1097. * Create an Error with the specified message, config, error code, request and response.
  1098. *
  1099. * @param {string} message The error message.
  1100. * @param {Object} config The config.
  1101. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  1102. * @param {Object} [request] The request.
  1103. * @param {Object} [response] The response.
  1104. * @returns {Error} The created error.
  1105. */
  1106. module.exports = function createError(message, config, code, request, response) {
  1107. var error = new Error(message);
  1108. return enhanceError(error, config, code, request, response);
  1109. };
  1110. },{"./enhanceError":31}],30:[function(_dereq_,module,exports){
  1111. 'use strict';
  1112. var utils = _dereq_('./../utils');
  1113. var transformData = _dereq_('./transformData');
  1114. var isCancel = _dereq_('../cancel/isCancel');
  1115. var defaults = _dereq_('../defaults');
  1116. var Cancel = _dereq_('../cancel/Cancel');
  1117. /**
  1118. * Throws a `Cancel` if cancellation has been requested.
  1119. */
  1120. function throwIfCancellationRequested(config) {
  1121. if (config.cancelToken) {
  1122. config.cancelToken.throwIfRequested();
  1123. }
  1124. if (config.signal && config.signal.aborted) {
  1125. throw new Cancel('canceled');
  1126. }
  1127. }
  1128. /**
  1129. * Dispatch a request to the server using the configured adapter.
  1130. *
  1131. * @param {object} config The config that is to be used for the request
  1132. * @returns {Promise} The Promise to be fulfilled
  1133. */
  1134. module.exports = function dispatchRequest(config) {
  1135. throwIfCancellationRequested(config);
  1136. // Ensure headers exist
  1137. config.headers = config.headers || {};
  1138. // Transform request data
  1139. config.data = transformData.call(
  1140. config,
  1141. config.data,
  1142. config.headers,
  1143. config.transformRequest
  1144. );
  1145. // Flatten headers
  1146. config.headers = utils.merge(
  1147. config.headers.common || {},
  1148. config.headers[config.method] || {},
  1149. config.headers
  1150. );
  1151. utils.forEach(
  1152. ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
  1153. function cleanHeaderConfig(method) {
  1154. delete config.headers[method];
  1155. }
  1156. );
  1157. var adapter = config.adapter || defaults.adapter;
  1158. return adapter(config).then(function onAdapterResolution(response) {
  1159. throwIfCancellationRequested(config);
  1160. // Transform response data
  1161. response.data = transformData.call(
  1162. config,
  1163. response.data,
  1164. response.headers,
  1165. config.transformResponse
  1166. );
  1167. return response;
  1168. }, function onAdapterRejection(reason) {
  1169. if (!isCancel(reason)) {
  1170. throwIfCancellationRequested(config);
  1171. // Transform response data
  1172. if (reason && reason.response) {
  1173. reason.response.data = transformData.call(
  1174. config,
  1175. reason.response.data,
  1176. reason.response.headers,
  1177. config.transformResponse
  1178. );
  1179. }
  1180. }
  1181. return Promise.reject(reason);
  1182. });
  1183. };
  1184. },{"../cancel/Cancel":23,"../cancel/isCancel":25,"../defaults":35,"./../utils":49,"./transformData":34}],31:[function(_dereq_,module,exports){
  1185. 'use strict';
  1186. /**
  1187. * Update an Error with the specified config, error code, and response.
  1188. *
  1189. * @param {Error} error The error to update.
  1190. * @param {Object} config The config.
  1191. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  1192. * @param {Object} [request] The request.
  1193. * @param {Object} [response] The response.
  1194. * @returns {Error} The error.
  1195. */
  1196. module.exports = function enhanceError(error, config, code, request, response) {
  1197. error.config = config;
  1198. if (code) {
  1199. error.code = code;
  1200. }
  1201. error.request = request;
  1202. error.response = response;
  1203. error.isAxiosError = true;
  1204. error.toJSON = function toJSON() {
  1205. return {
  1206. // Standard
  1207. message: this.message,
  1208. name: this.name,
  1209. // Microsoft
  1210. description: this.description,
  1211. number: this.number,
  1212. // Mozilla
  1213. fileName: this.fileName,
  1214. lineNumber: this.lineNumber,
  1215. columnNumber: this.columnNumber,
  1216. stack: this.stack,
  1217. // Axios
  1218. config: this.config,
  1219. code: this.code,
  1220. status: this.response && this.response.status ? this.response.status : null
  1221. };
  1222. };
  1223. return error;
  1224. };
  1225. },{}],32:[function(_dereq_,module,exports){
  1226. 'use strict';
  1227. var utils = _dereq_('../utils');
  1228. /**
  1229. * Config-specific merge-function which creates a new config-object
  1230. * by merging two configuration objects together.
  1231. *
  1232. * @param {Object} config1
  1233. * @param {Object} config2
  1234. * @returns {Object} New object resulting from merging config2 to config1
  1235. */
  1236. module.exports = function mergeConfig(config1, config2) {
  1237. // eslint-disable-next-line no-param-reassign
  1238. config2 = config2 || {};
  1239. var config = {};
  1240. function getMergedValue(target, source) {
  1241. if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
  1242. return utils.merge(target, source);
  1243. } else if (utils.isPlainObject(source)) {
  1244. return utils.merge({}, source);
  1245. } else if (utils.isArray(source)) {
  1246. return source.slice();
  1247. }
  1248. return source;
  1249. }
  1250. // eslint-disable-next-line consistent-return
  1251. function mergeDeepProperties(prop) {
  1252. if (!utils.isUndefined(config2[prop])) {
  1253. return getMergedValue(config1[prop], config2[prop]);
  1254. } else if (!utils.isUndefined(config1[prop])) {
  1255. return getMergedValue(undefined, config1[prop]);
  1256. }
  1257. }
  1258. // eslint-disable-next-line consistent-return
  1259. function valueFromConfig2(prop) {
  1260. if (!utils.isUndefined(config2[prop])) {
  1261. return getMergedValue(undefined, config2[prop]);
  1262. }
  1263. }
  1264. // eslint-disable-next-line consistent-return
  1265. function defaultToConfig2(prop) {
  1266. if (!utils.isUndefined(config2[prop])) {
  1267. return getMergedValue(undefined, config2[prop]);
  1268. } else if (!utils.isUndefined(config1[prop])) {
  1269. return getMergedValue(undefined, config1[prop]);
  1270. }
  1271. }
  1272. // eslint-disable-next-line consistent-return
  1273. function mergeDirectKeys(prop) {
  1274. if (prop in config2) {
  1275. return getMergedValue(config1[prop], config2[prop]);
  1276. } else if (prop in config1) {
  1277. return getMergedValue(undefined, config1[prop]);
  1278. }
  1279. }
  1280. var mergeMap = {
  1281. 'url': valueFromConfig2,
  1282. 'method': valueFromConfig2,
  1283. 'data': valueFromConfig2,
  1284. 'baseURL': defaultToConfig2,
  1285. 'transformRequest': defaultToConfig2,
  1286. 'transformResponse': defaultToConfig2,
  1287. 'paramsSerializer': defaultToConfig2,
  1288. 'timeout': defaultToConfig2,
  1289. 'timeoutMessage': defaultToConfig2,
  1290. 'withCredentials': defaultToConfig2,
  1291. 'adapter': defaultToConfig2,
  1292. 'responseType': defaultToConfig2,
  1293. 'xsrfCookieName': defaultToConfig2,
  1294. 'xsrfHeaderName': defaultToConfig2,
  1295. 'onUploadProgress': defaultToConfig2,
  1296. 'onDownloadProgress': defaultToConfig2,
  1297. 'decompress': defaultToConfig2,
  1298. 'maxContentLength': defaultToConfig2,
  1299. 'maxBodyLength': defaultToConfig2,
  1300. 'transport': defaultToConfig2,
  1301. 'httpAgent': defaultToConfig2,
  1302. 'httpsAgent': defaultToConfig2,
  1303. 'cancelToken': defaultToConfig2,
  1304. 'socketPath': defaultToConfig2,
  1305. 'responseEncoding': defaultToConfig2,
  1306. 'validateStatus': mergeDirectKeys
  1307. };
  1308. utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
  1309. var merge = mergeMap[prop] || mergeDeepProperties;
  1310. var configValue = merge(prop);
  1311. (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
  1312. });
  1313. return config;
  1314. };
  1315. },{"../utils":49}],33:[function(_dereq_,module,exports){
  1316. 'use strict';
  1317. var createError = _dereq_('./createError');
  1318. /**
  1319. * Resolve or reject a Promise based on response status.
  1320. *
  1321. * @param {Function} resolve A function that resolves the promise.
  1322. * @param {Function} reject A function that rejects the promise.
  1323. * @param {object} response The response.
  1324. */
  1325. module.exports = function settle(resolve, reject, response) {
  1326. var validateStatus = response.config.validateStatus;
  1327. if (!response.status || !validateStatus || validateStatus(response.status)) {
  1328. resolve(response);
  1329. } else {
  1330. reject(createError(
  1331. 'Request failed with status code ' + response.status,
  1332. response.config,
  1333. null,
  1334. response.request,
  1335. response
  1336. ));
  1337. }
  1338. };
  1339. },{"./createError":29}],34:[function(_dereq_,module,exports){
  1340. 'use strict';
  1341. var utils = _dereq_('./../utils');
  1342. var defaults = _dereq_('../defaults');
  1343. /**
  1344. * Transform the data for a request or a response
  1345. *
  1346. * @param {Object|String} data The data to be transformed
  1347. * @param {Array} headers The headers for the request or response
  1348. * @param {Array|Function} fns A single function or Array of functions
  1349. * @returns {*} The resulting transformed data
  1350. */
  1351. module.exports = function transformData(data, headers, fns) {
  1352. var context = this || defaults;
  1353. /*eslint no-param-reassign:0*/
  1354. utils.forEach(fns, function transform(fn) {
  1355. data = fn.call(context, data, headers);
  1356. });
  1357. return data;
  1358. };
  1359. },{"../defaults":35,"./../utils":49}],35:[function(_dereq_,module,exports){
  1360. (function (process){(function (){
  1361. 'use strict';
  1362. var utils = _dereq_('../utils');
  1363. var normalizeHeaderName = _dereq_('../helpers/normalizeHeaderName');
  1364. var enhanceError = _dereq_('../core/enhanceError');
  1365. var transitionalDefaults = _dereq_('./transitional');
  1366. var DEFAULT_CONTENT_TYPE = {
  1367. 'Content-Type': 'application/x-www-form-urlencoded'
  1368. };
  1369. function setContentTypeIfUnset(headers, value) {
  1370. if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
  1371. headers['Content-Type'] = value;
  1372. }
  1373. }
  1374. function getDefaultAdapter() {
  1375. var adapter;
  1376. if (typeof XMLHttpRequest !== 'undefined') {
  1377. // For browsers use XHR adapter
  1378. adapter = _dereq_('../adapters/xhr');
  1379. } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
  1380. // For node use HTTP adapter
  1381. adapter = _dereq_('../adapters/http');
  1382. }
  1383. return adapter;
  1384. }
  1385. function stringifySafely(rawValue, parser, encoder) {
  1386. if (utils.isString(rawValue)) {
  1387. try {
  1388. (parser || JSON.parse)(rawValue);
  1389. return utils.trim(rawValue);
  1390. } catch (e) {
  1391. if (e.name !== 'SyntaxError') {
  1392. throw e;
  1393. }
  1394. }
  1395. }
  1396. return (encoder || JSON.stringify)(rawValue);
  1397. }
  1398. var defaults = {
  1399. transitional: transitionalDefaults,
  1400. adapter: getDefaultAdapter(),
  1401. transformRequest: [function transformRequest(data, headers) {
  1402. normalizeHeaderName(headers, 'Accept');
  1403. normalizeHeaderName(headers, 'Content-Type');
  1404. if (utils.isFormData(data) ||
  1405. utils.isArrayBuffer(data) ||
  1406. utils.isBuffer(data) ||
  1407. utils.isStream(data) ||
  1408. utils.isFile(data) ||
  1409. utils.isBlob(data)
  1410. ) {
  1411. return data;
  1412. }
  1413. if (utils.isArrayBufferView(data)) {
  1414. return data.buffer;
  1415. }
  1416. if (utils.isURLSearchParams(data)) {
  1417. setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
  1418. return data.toString();
  1419. }
  1420. if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
  1421. setContentTypeIfUnset(headers, 'application/json');
  1422. return stringifySafely(data);
  1423. }
  1424. return data;
  1425. }],
  1426. transformResponse: [function transformResponse(data) {
  1427. var transitional = this.transitional || defaults.transitional;
  1428. var silentJSONParsing = transitional && transitional.silentJSONParsing;
  1429. var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
  1430. var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
  1431. if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
  1432. try {
  1433. return JSON.parse(data);
  1434. } catch (e) {
  1435. if (strictJSONParsing) {
  1436. if (e.name === 'SyntaxError') {
  1437. throw enhanceError(e, this, 'E_JSON_PARSE');
  1438. }
  1439. throw e;
  1440. }
  1441. }
  1442. }
  1443. return data;
  1444. }],
  1445. /**
  1446. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  1447. * timeout is not created.
  1448. */
  1449. timeout: 0,
  1450. xsrfCookieName: 'XSRF-TOKEN',
  1451. xsrfHeaderName: 'X-XSRF-TOKEN',
  1452. maxContentLength: -1,
  1453. maxBodyLength: -1,
  1454. validateStatus: function validateStatus(status) {
  1455. return status >= 200 && status < 300;
  1456. },
  1457. headers: {
  1458. common: {
  1459. 'Accept': 'application/json, text/plain, */*'
  1460. }
  1461. }
  1462. };
  1463. utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  1464. defaults.headers[method] = {};
  1465. });
  1466. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  1467. defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  1468. });
  1469. module.exports = defaults;
  1470. }).call(this)}).call(this,_dereq_('_process'))
  1471. },{"../adapters/http":21,"../adapters/xhr":21,"../core/enhanceError":31,"../helpers/normalizeHeaderName":45,"../utils":49,"./transitional":36,"_process":50}],36:[function(_dereq_,module,exports){
  1472. 'use strict';
  1473. module.exports = {
  1474. silentJSONParsing: true,
  1475. forcedJSONParsing: true,
  1476. clarifyTimeoutError: false
  1477. };
  1478. },{}],37:[function(_dereq_,module,exports){
  1479. module.exports = {
  1480. "version": "0.26.1"
  1481. };
  1482. },{}],38:[function(_dereq_,module,exports){
  1483. 'use strict';
  1484. module.exports = function bind(fn, thisArg) {
  1485. return function wrap() {
  1486. var args = new Array(arguments.length);
  1487. for (var i = 0; i < args.length; i++) {
  1488. args[i] = arguments[i];
  1489. }
  1490. return fn.apply(thisArg, args);
  1491. };
  1492. };
  1493. },{}],39:[function(_dereq_,module,exports){
  1494. 'use strict';
  1495. var utils = _dereq_('./../utils');
  1496. function encode(val) {
  1497. return encodeURIComponent(val).
  1498. replace(/%3A/gi, ':').
  1499. replace(/%24/g, '$').
  1500. replace(/%2C/gi, ',').
  1501. replace(/%20/g, '+').
  1502. replace(/%5B/gi, '[').
  1503. replace(/%5D/gi, ']');
  1504. }
  1505. /**
  1506. * Build a URL by appending params to the end
  1507. *
  1508. * @param {string} url The base of the url (e.g., http://www.google.com)
  1509. * @param {object} [params] The params to be appended
  1510. * @returns {string} The formatted url
  1511. */
  1512. module.exports = function buildURL(url, params, paramsSerializer) {
  1513. /*eslint no-param-reassign:0*/
  1514. if (!params) {
  1515. return url;
  1516. }
  1517. var serializedParams;
  1518. if (paramsSerializer) {
  1519. serializedParams = paramsSerializer(params);
  1520. } else if (utils.isURLSearchParams(params)) {
  1521. serializedParams = params.toString();
  1522. } else {
  1523. var parts = [];
  1524. utils.forEach(params, function serialize(val, key) {
  1525. if (val === null || typeof val === 'undefined') {
  1526. return;
  1527. }
  1528. if (utils.isArray(val)) {
  1529. key = key + '[]';
  1530. } else {
  1531. val = [val];
  1532. }
  1533. utils.forEach(val, function parseValue(v) {
  1534. if (utils.isDate(v)) {
  1535. v = v.toISOString();
  1536. } else if (utils.isObject(v)) {
  1537. v = JSON.stringify(v);
  1538. }
  1539. parts.push(encode(key) + '=' + encode(v));
  1540. });
  1541. });
  1542. serializedParams = parts.join('&');
  1543. }
  1544. if (serializedParams) {
  1545. var hashmarkIndex = url.indexOf('#');
  1546. if (hashmarkIndex !== -1) {
  1547. url = url.slice(0, hashmarkIndex);
  1548. }
  1549. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  1550. }
  1551. return url;
  1552. };
  1553. },{"./../utils":49}],40:[function(_dereq_,module,exports){
  1554. 'use strict';
  1555. /**
  1556. * Creates a new URL by combining the specified URLs
  1557. *
  1558. * @param {string} baseURL The base URL
  1559. * @param {string} relativeURL The relative URL
  1560. * @returns {string} The combined URL
  1561. */
  1562. module.exports = function combineURLs(baseURL, relativeURL) {
  1563. return relativeURL
  1564. ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
  1565. : baseURL;
  1566. };
  1567. },{}],41:[function(_dereq_,module,exports){
  1568. 'use strict';
  1569. var utils = _dereq_('./../utils');
  1570. module.exports = (
  1571. utils.isStandardBrowserEnv() ?
  1572. // Standard browser envs support document.cookie
  1573. (function standardBrowserEnv() {
  1574. return {
  1575. write: function write(name, value, expires, path, domain, secure) {
  1576. var cookie = [];
  1577. cookie.push(name + '=' + encodeURIComponent(value));
  1578. if (utils.isNumber(expires)) {
  1579. cookie.push('expires=' + new Date(expires).toGMTString());
  1580. }
  1581. if (utils.isString(path)) {
  1582. cookie.push('path=' + path);
  1583. }
  1584. if (utils.isString(domain)) {
  1585. cookie.push('domain=' + domain);
  1586. }
  1587. if (secure === true) {
  1588. cookie.push('secure');
  1589. }
  1590. document.cookie = cookie.join('; ');
  1591. },
  1592. read: function read(name) {
  1593. var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
  1594. return (match ? decodeURIComponent(match[3]) : null);
  1595. },
  1596. remove: function remove(name) {
  1597. this.write(name, '', Date.now() - 86400000);
  1598. }
  1599. };
  1600. })() :
  1601. // Non standard browser env (web workers, react-native) lack needed support.
  1602. (function nonStandardBrowserEnv() {
  1603. return {
  1604. write: function write() {},
  1605. read: function read() { return null; },
  1606. remove: function remove() {}
  1607. };
  1608. })()
  1609. );
  1610. },{"./../utils":49}],42:[function(_dereq_,module,exports){
  1611. 'use strict';
  1612. /**
  1613. * Determines whether the specified URL is absolute
  1614. *
  1615. * @param {string} url The URL to test
  1616. * @returns {boolean} True if the specified URL is absolute, otherwise false
  1617. */
  1618. module.exports = function isAbsoluteURL(url) {
  1619. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  1620. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  1621. // by any combination of letters, digits, plus, period, or hyphen.
  1622. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  1623. };
  1624. },{}],43:[function(_dereq_,module,exports){
  1625. 'use strict';
  1626. var utils = _dereq_('./../utils');
  1627. /**
  1628. * Determines whether the payload is an error thrown by Axios
  1629. *
  1630. * @param {*} payload The value to test
  1631. * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
  1632. */
  1633. module.exports = function isAxiosError(payload) {
  1634. return utils.isObject(payload) && (payload.isAxiosError === true);
  1635. };
  1636. },{"./../utils":49}],44:[function(_dereq_,module,exports){
  1637. 'use strict';
  1638. var utils = _dereq_('./../utils');
  1639. module.exports = (
  1640. utils.isStandardBrowserEnv() ?
  1641. // Standard browser envs have full support of the APIs needed to test
  1642. // whether the request URL is of the same origin as current location.
  1643. (function standardBrowserEnv() {
  1644. var msie = /(msie|trident)/i.test(navigator.userAgent);
  1645. var urlParsingNode = document.createElement('a');
  1646. var originURL;
  1647. /**
  1648. * Parse a URL to discover it's components
  1649. *
  1650. * @param {String} url The URL to be parsed
  1651. * @returns {Object}
  1652. */
  1653. function resolveURL(url) {
  1654. var href = url;
  1655. if (msie) {
  1656. // IE needs attribute set twice to normalize properties
  1657. urlParsingNode.setAttribute('href', href);
  1658. href = urlParsingNode.href;
  1659. }
  1660. urlParsingNode.setAttribute('href', href);
  1661. // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
  1662. return {
  1663. href: urlParsingNode.href,
  1664. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
  1665. host: urlParsingNode.host,
  1666. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
  1667. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
  1668. hostname: urlParsingNode.hostname,
  1669. port: urlParsingNode.port,
  1670. pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
  1671. urlParsingNode.pathname :
  1672. '/' + urlParsingNode.pathname
  1673. };
  1674. }
  1675. originURL = resolveURL(window.location.href);
  1676. /**
  1677. * Determine if a URL shares the same origin as the current location
  1678. *
  1679. * @param {String} requestURL The URL to test
  1680. * @returns {boolean} True if URL shares the same origin, otherwise false
  1681. */
  1682. return function isURLSameOrigin(requestURL) {
  1683. var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
  1684. return (parsed.protocol === originURL.protocol &&
  1685. parsed.host === originURL.host);
  1686. };
  1687. })() :
  1688. // Non standard browser envs (web workers, react-native) lack needed support.
  1689. (function nonStandardBrowserEnv() {
  1690. return function isURLSameOrigin() {
  1691. return true;
  1692. };
  1693. })()
  1694. );
  1695. },{"./../utils":49}],45:[function(_dereq_,module,exports){
  1696. 'use strict';
  1697. var utils = _dereq_('../utils');
  1698. module.exports = function normalizeHeaderName(headers, normalizedName) {
  1699. utils.forEach(headers, function processHeader(value, name) {
  1700. if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
  1701. headers[normalizedName] = value;
  1702. delete headers[name];
  1703. }
  1704. });
  1705. };
  1706. },{"../utils":49}],46:[function(_dereq_,module,exports){
  1707. 'use strict';
  1708. var utils = _dereq_('./../utils');
  1709. // Headers whose duplicates are ignored by node
  1710. // c.f. https://nodejs.org/api/http.html#http_message_headers
  1711. var ignoreDuplicateOf = [
  1712. 'age', 'authorization', 'content-length', 'content-type', 'etag',
  1713. 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
  1714. 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
  1715. 'referer', 'retry-after', 'user-agent'
  1716. ];
  1717. /**
  1718. * Parse headers into an object
  1719. *
  1720. * ```
  1721. * Date: Wed, 27 Aug 2014 08:58:49 GMT
  1722. * Content-Type: application/json
  1723. * Connection: keep-alive
  1724. * Transfer-Encoding: chunked
  1725. * ```
  1726. *
  1727. * @param {String} headers Headers needing to be parsed
  1728. * @returns {Object} Headers parsed into an object
  1729. */
  1730. module.exports = function parseHeaders(headers) {
  1731. var parsed = {};
  1732. var key;
  1733. var val;
  1734. var i;
  1735. if (!headers) { return parsed; }
  1736. utils.forEach(headers.split('\n'), function parser(line) {
  1737. i = line.indexOf(':');
  1738. key = utils.trim(line.substr(0, i)).toLowerCase();
  1739. val = utils.trim(line.substr(i + 1));
  1740. if (key) {
  1741. if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
  1742. return;
  1743. }
  1744. if (key === 'set-cookie') {
  1745. parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
  1746. } else {
  1747. parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
  1748. }
  1749. }
  1750. });
  1751. return parsed;
  1752. };
  1753. },{"./../utils":49}],47:[function(_dereq_,module,exports){
  1754. 'use strict';
  1755. /**
  1756. * Syntactic sugar for invoking a function and expanding an array for arguments.
  1757. *
  1758. * Common use case would be to use `Function.prototype.apply`.
  1759. *
  1760. * ```js
  1761. * function f(x, y, z) {}
  1762. * var args = [1, 2, 3];
  1763. * f.apply(null, args);
  1764. * ```
  1765. *
  1766. * With `spread` this example can be re-written.
  1767. *
  1768. * ```js
  1769. * spread(function(x, y, z) {})([1, 2, 3]);
  1770. * ```
  1771. *
  1772. * @param {Function} callback
  1773. * @returns {Function}
  1774. */
  1775. module.exports = function spread(callback) {
  1776. return function wrap(arr) {
  1777. return callback.apply(null, arr);
  1778. };
  1779. };
  1780. },{}],48:[function(_dereq_,module,exports){
  1781. 'use strict';
  1782. var VERSION = _dereq_('../env/data').version;
  1783. var validators = {};
  1784. // eslint-disable-next-line func-names
  1785. ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
  1786. validators[type] = function validator(thing) {
  1787. return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
  1788. };
  1789. });
  1790. var deprecatedWarnings = {};
  1791. /**
  1792. * Transitional option validator
  1793. * @param {function|boolean?} validator - set to false if the transitional option has been removed
  1794. * @param {string?} version - deprecated version / removed since version
  1795. * @param {string?} message - some message with additional info
  1796. * @returns {function}
  1797. */
  1798. validators.transitional = function transitional(validator, version, message) {
  1799. function formatMessage(opt, desc) {
  1800. return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
  1801. }
  1802. // eslint-disable-next-line func-names
  1803. return function(value, opt, opts) {
  1804. if (validator === false) {
  1805. throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
  1806. }
  1807. if (version && !deprecatedWarnings[opt]) {
  1808. deprecatedWarnings[opt] = true;
  1809. // eslint-disable-next-line no-console
  1810. console.warn(
  1811. formatMessage(
  1812. opt,
  1813. ' has been deprecated since v' + version + ' and will be removed in the near future'
  1814. )
  1815. );
  1816. }
  1817. return validator ? validator(value, opt, opts) : true;
  1818. };
  1819. };
  1820. /**
  1821. * Assert object's properties type
  1822. * @param {object} options
  1823. * @param {object} schema
  1824. * @param {boolean?} allowUnknown
  1825. */
  1826. function assertOptions(options, schema, allowUnknown) {
  1827. if (typeof options !== 'object') {
  1828. throw new TypeError('options must be an object');
  1829. }
  1830. var keys = Object.keys(options);
  1831. var i = keys.length;
  1832. while (i-- > 0) {
  1833. var opt = keys[i];
  1834. var validator = schema[opt];
  1835. if (validator) {
  1836. var value = options[opt];
  1837. var result = value === undefined || validator(value, opt, options);
  1838. if (result !== true) {
  1839. throw new TypeError('option ' + opt + ' must be ' + result);
  1840. }
  1841. continue;
  1842. }
  1843. if (allowUnknown !== true) {
  1844. throw Error('Unknown option ' + opt);
  1845. }
  1846. }
  1847. }
  1848. module.exports = {
  1849. assertOptions: assertOptions,
  1850. validators: validators
  1851. };
  1852. },{"../env/data":37}],49:[function(_dereq_,module,exports){
  1853. 'use strict';
  1854. var bind = _dereq_('./helpers/bind');
  1855. // utils is a library of generic helper functions non-specific to axios
  1856. var toString = Object.prototype.toString;
  1857. /**
  1858. * Determine if a value is an Array
  1859. *
  1860. * @param {Object} val The value to test
  1861. * @returns {boolean} True if value is an Array, otherwise false
  1862. */
  1863. function isArray(val) {
  1864. return Array.isArray(val);
  1865. }
  1866. /**
  1867. * Determine if a value is undefined
  1868. *
  1869. * @param {Object} val The value to test
  1870. * @returns {boolean} True if the value is undefined, otherwise false
  1871. */
  1872. function isUndefined(val) {
  1873. return typeof val === 'undefined';
  1874. }
  1875. /**
  1876. * Determine if a value is a Buffer
  1877. *
  1878. * @param {Object} val The value to test
  1879. * @returns {boolean} True if value is a Buffer, otherwise false
  1880. */
  1881. function isBuffer(val) {
  1882. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
  1883. && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
  1884. }
  1885. /**
  1886. * Determine if a value is an ArrayBuffer
  1887. *
  1888. * @param {Object} val The value to test
  1889. * @returns {boolean} True if value is an ArrayBuffer, otherwise false
  1890. */
  1891. function isArrayBuffer(val) {
  1892. return toString.call(val) === '[object ArrayBuffer]';
  1893. }
  1894. /**
  1895. * Determine if a value is a FormData
  1896. *
  1897. * @param {Object} val The value to test
  1898. * @returns {boolean} True if value is an FormData, otherwise false
  1899. */
  1900. function isFormData(val) {
  1901. return toString.call(val) === '[object FormData]';
  1902. }
  1903. /**
  1904. * Determine if a value is a view on an ArrayBuffer
  1905. *
  1906. * @param {Object} val The value to test
  1907. * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
  1908. */
  1909. function isArrayBufferView(val) {
  1910. var result;
  1911. if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
  1912. result = ArrayBuffer.isView(val);
  1913. } else {
  1914. result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
  1915. }
  1916. return result;
  1917. }
  1918. /**
  1919. * Determine if a value is a String
  1920. *
  1921. * @param {Object} val The value to test
  1922. * @returns {boolean} True if value is a String, otherwise false
  1923. */
  1924. function isString(val) {
  1925. return typeof val === 'string';
  1926. }
  1927. /**
  1928. * Determine if a value is a Number
  1929. *
  1930. * @param {Object} val The value to test
  1931. * @returns {boolean} True if value is a Number, otherwise false
  1932. */
  1933. function isNumber(val) {
  1934. return typeof val === 'number';
  1935. }
  1936. /**
  1937. * Determine if a value is an Object
  1938. *
  1939. * @param {Object} val The value to test
  1940. * @returns {boolean} True if value is an Object, otherwise false
  1941. */
  1942. function isObject(val) {
  1943. return val !== null && typeof val === 'object';
  1944. }
  1945. /**
  1946. * Determine if a value is a plain Object
  1947. *
  1948. * @param {Object} val The value to test
  1949. * @return {boolean} True if value is a plain Object, otherwise false
  1950. */
  1951. function isPlainObject(val) {
  1952. if (toString.call(val) !== '[object Object]') {
  1953. return false;
  1954. }
  1955. var prototype = Object.getPrototypeOf(val);
  1956. return prototype === null || prototype === Object.prototype;
  1957. }
  1958. /**
  1959. * Determine if a value is a Date
  1960. *
  1961. * @param {Object} val The value to test
  1962. * @returns {boolean} True if value is a Date, otherwise false
  1963. */
  1964. function isDate(val) {
  1965. return toString.call(val) === '[object Date]';
  1966. }
  1967. /**
  1968. * Determine if a value is a File
  1969. *
  1970. * @param {Object} val The value to test
  1971. * @returns {boolean} True if value is a File, otherwise false
  1972. */
  1973. function isFile(val) {
  1974. return toString.call(val) === '[object File]';
  1975. }
  1976. /**
  1977. * Determine if a value is a Blob
  1978. *
  1979. * @param {Object} val The value to test
  1980. * @returns {boolean} True if value is a Blob, otherwise false
  1981. */
  1982. function isBlob(val) {
  1983. return toString.call(val) === '[object Blob]';
  1984. }
  1985. /**
  1986. * Determine if a value is a Function
  1987. *
  1988. * @param {Object} val The value to test
  1989. * @returns {boolean} True if value is a Function, otherwise false
  1990. */
  1991. function isFunction(val) {
  1992. return toString.call(val) === '[object Function]';
  1993. }
  1994. /**
  1995. * Determine if a value is a Stream
  1996. *
  1997. * @param {Object} val The value to test
  1998. * @returns {boolean} True if value is a Stream, otherwise false
  1999. */
  2000. function isStream(val) {
  2001. return isObject(val) && isFunction(val.pipe);
  2002. }
  2003. /**
  2004. * Determine if a value is a URLSearchParams object
  2005. *
  2006. * @param {Object} val The value to test
  2007. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  2008. */
  2009. function isURLSearchParams(val) {
  2010. return toString.call(val) === '[object URLSearchParams]';
  2011. }
  2012. /**
  2013. * Trim excess whitespace off the beginning and end of a string
  2014. *
  2015. * @param {String} str The String to trim
  2016. * @returns {String} The String freed of excess whitespace
  2017. */
  2018. function trim(str) {
  2019. return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
  2020. }
  2021. /**
  2022. * Determine if we're running in a standard browser environment
  2023. *
  2024. * This allows axios to run in a web worker, and react-native.
  2025. * Both environments support XMLHttpRequest, but not fully standard globals.
  2026. *
  2027. * web workers:
  2028. * typeof window -> undefined
  2029. * typeof document -> undefined
  2030. *
  2031. * react-native:
  2032. * navigator.product -> 'ReactNative'
  2033. * nativescript
  2034. * navigator.product -> 'NativeScript' or 'NS'
  2035. */
  2036. function isStandardBrowserEnv() {
  2037. if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
  2038. navigator.product === 'NativeScript' ||
  2039. navigator.product === 'NS')) {
  2040. return false;
  2041. }
  2042. return (
  2043. typeof window !== 'undefined' &&
  2044. typeof document !== 'undefined'
  2045. );
  2046. }
  2047. /**
  2048. * Iterate over an Array or an Object invoking a function for each item.
  2049. *
  2050. * If `obj` is an Array callback will be called passing
  2051. * the value, index, and complete array for each item.
  2052. *
  2053. * If 'obj' is an Object callback will be called passing
  2054. * the value, key, and complete object for each property.
  2055. *
  2056. * @param {Object|Array} obj The object to iterate
  2057. * @param {Function} fn The callback to invoke for each item
  2058. */
  2059. function forEach(obj, fn) {
  2060. // Don't bother if no value provided
  2061. if (obj === null || typeof obj === 'undefined') {
  2062. return;
  2063. }
  2064. // Force an array if not already something iterable
  2065. if (typeof obj !== 'object') {
  2066. /*eslint no-param-reassign:0*/
  2067. obj = [obj];
  2068. }
  2069. if (isArray(obj)) {
  2070. // Iterate over array values
  2071. for (var i = 0, l = obj.length; i < l; i++) {
  2072. fn.call(null, obj[i], i, obj);
  2073. }
  2074. } else {
  2075. // Iterate over object keys
  2076. for (var key in obj) {
  2077. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  2078. fn.call(null, obj[key], key, obj);
  2079. }
  2080. }
  2081. }
  2082. }
  2083. /**
  2084. * Accepts varargs expecting each argument to be an object, then
  2085. * immutably merges the properties of each object and returns result.
  2086. *
  2087. * When multiple objects contain the same key the later object in
  2088. * the arguments list will take precedence.
  2089. *
  2090. * Example:
  2091. *
  2092. * ```js
  2093. * var result = merge({foo: 123}, {foo: 456});
  2094. * console.log(result.foo); // outputs 456
  2095. * ```
  2096. *
  2097. * @param {Object} obj1 Object to merge
  2098. * @returns {Object} Result of all merge properties
  2099. */
  2100. function merge(/* obj1, obj2, obj3, ... */) {
  2101. var result = {};
  2102. function assignValue(val, key) {
  2103. if (isPlainObject(result[key]) && isPlainObject(val)) {
  2104. result[key] = merge(result[key], val);
  2105. } else if (isPlainObject(val)) {
  2106. result[key] = merge({}, val);
  2107. } else if (isArray(val)) {
  2108. result[key] = val.slice();
  2109. } else {
  2110. result[key] = val;
  2111. }
  2112. }
  2113. for (var i = 0, l = arguments.length; i < l; i++) {
  2114. forEach(arguments[i], assignValue);
  2115. }
  2116. return result;
  2117. }
  2118. /**
  2119. * Extends object a by mutably adding to it the properties of object b.
  2120. *
  2121. * @param {Object} a The object to be extended
  2122. * @param {Object} b The object to copy properties from
  2123. * @param {Object} thisArg The object to bind function to
  2124. * @return {Object} The resulting value of object a
  2125. */
  2126. function extend(a, b, thisArg) {
  2127. forEach(b, function assignValue(val, key) {
  2128. if (thisArg && typeof val === 'function') {
  2129. a[key] = bind(val, thisArg);
  2130. } else {
  2131. a[key] = val;
  2132. }
  2133. });
  2134. return a;
  2135. }
  2136. /**
  2137. * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
  2138. *
  2139. * @param {string} content with BOM
  2140. * @return {string} content value without BOM
  2141. */
  2142. function stripBOM(content) {
  2143. if (content.charCodeAt(0) === 0xFEFF) {
  2144. content = content.slice(1);
  2145. }
  2146. return content;
  2147. }
  2148. module.exports = {
  2149. isArray: isArray,
  2150. isArrayBuffer: isArrayBuffer,
  2151. isBuffer: isBuffer,
  2152. isFormData: isFormData,
  2153. isArrayBufferView: isArrayBufferView,
  2154. isString: isString,
  2155. isNumber: isNumber,
  2156. isObject: isObject,
  2157. isPlainObject: isPlainObject,
  2158. isUndefined: isUndefined,
  2159. isDate: isDate,
  2160. isFile: isFile,
  2161. isBlob: isBlob,
  2162. isFunction: isFunction,
  2163. isStream: isStream,
  2164. isURLSearchParams: isURLSearchParams,
  2165. isStandardBrowserEnv: isStandardBrowserEnv,
  2166. forEach: forEach,
  2167. merge: merge,
  2168. extend: extend,
  2169. trim: trim,
  2170. stripBOM: stripBOM
  2171. };
  2172. },{"./helpers/bind":38}],50:[function(_dereq_,module,exports){
  2173. },{}],51:[function(_dereq_,module,exports){
  2174. var parent = _dereq_('../../stable/object/define-property');
  2175. module.exports = parent;
  2176. },{"../../stable/object/define-property":230}],52:[function(_dereq_,module,exports){
  2177. var parent = _dereq_('../../stable/promise');
  2178. module.exports = parent;
  2179. },{"../../stable/promise":235}],53:[function(_dereq_,module,exports){
  2180. _dereq_('../../../modules/es.array.filter');
  2181. var entryVirtual = _dereq_('../../../internals/entry-virtual');
  2182. module.exports = entryVirtual('Array').filter;
  2183. },{"../../../internals/entry-virtual":107,"../../../modules/es.array.filter":201}],54:[function(_dereq_,module,exports){
  2184. _dereq_('../../../modules/es.array.for-each');
  2185. var entryVirtual = _dereq_('../../../internals/entry-virtual');
  2186. module.exports = entryVirtual('Array').forEach;
  2187. },{"../../../internals/entry-virtual":107,"../../../modules/es.array.for-each":202}],55:[function(_dereq_,module,exports){
  2188. _dereq_('../../../modules/es.array.includes');
  2189. var entryVirtual = _dereq_('../../../internals/entry-virtual');
  2190. module.exports = entryVirtual('Array').includes;
  2191. },{"../../../internals/entry-virtual":107,"../../../modules/es.array.includes":203}],56:[function(_dereq_,module,exports){
  2192. var isPrototypeOf = _dereq_('../../internals/object-is-prototype-of');
  2193. var method = _dereq_('../array/virtual/filter');
  2194. var ArrayPrototype = Array.prototype;
  2195. module.exports = function (it) {
  2196. var own = it.filter;
  2197. return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.filter) ? method : own;
  2198. };
  2199. },{"../../internals/object-is-prototype-of":161,"../array/virtual/filter":53}],57:[function(_dereq_,module,exports){
  2200. var isPrototypeOf = _dereq_('../../internals/object-is-prototype-of');
  2201. var arrayMethod = _dereq_('../array/virtual/includes');
  2202. var stringMethod = _dereq_('../string/virtual/includes');
  2203. var ArrayPrototype = Array.prototype;
  2204. var StringPrototype = String.prototype;
  2205. module.exports = function (it) {
  2206. var own = it.includes;
  2207. if (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.includes)) return arrayMethod;
  2208. if (typeof it == 'string' || it === StringPrototype || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.includes)) {
  2209. return stringMethod;
  2210. } return own;
  2211. };
  2212. },{"../../internals/object-is-prototype-of":161,"../array/virtual/includes":55,"../string/virtual/includes":66}],58:[function(_dereq_,module,exports){
  2213. _dereq_('../../modules/es.json.stringify');
  2214. var path = _dereq_('../../internals/path');
  2215. var apply = _dereq_('../../internals/function-apply');
  2216. // eslint-disable-next-line es/no-json -- safe
  2217. if (!path.JSON) path.JSON = { stringify: JSON.stringify };
  2218. // eslint-disable-next-line no-unused-vars -- required for `.length`
  2219. module.exports = function stringify(it, replacer, space) {
  2220. return apply(path.JSON.stringify, null, arguments);
  2221. };
  2222. },{"../../internals/function-apply":112,"../../internals/path":169,"../../modules/es.json.stringify":205}],59:[function(_dereq_,module,exports){
  2223. _dereq_('../../modules/es.object.define-properties');
  2224. var path = _dereq_('../../internals/path');
  2225. var Object = path.Object;
  2226. var defineProperties = module.exports = function defineProperties(T, D) {
  2227. return Object.defineProperties(T, D);
  2228. };
  2229. if (Object.defineProperties.sham) defineProperties.sham = true;
  2230. },{"../../internals/path":169,"../../modules/es.object.define-properties":206}],60:[function(_dereq_,module,exports){
  2231. _dereq_('../../modules/es.object.define-property');
  2232. var path = _dereq_('../../internals/path');
  2233. var Object = path.Object;
  2234. var defineProperty = module.exports = function defineProperty(it, key, desc) {
  2235. return Object.defineProperty(it, key, desc);
  2236. };
  2237. if (Object.defineProperty.sham) defineProperty.sham = true;
  2238. },{"../../internals/path":169,"../../modules/es.object.define-property":207}],61:[function(_dereq_,module,exports){
  2239. _dereq_('../../modules/es.object.get-own-property-descriptor');
  2240. var path = _dereq_('../../internals/path');
  2241. var Object = path.Object;
  2242. var getOwnPropertyDescriptor = module.exports = function getOwnPropertyDescriptor(it, key) {
  2243. return Object.getOwnPropertyDescriptor(it, key);
  2244. };
  2245. if (Object.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor.sham = true;
  2246. },{"../../internals/path":169,"../../modules/es.object.get-own-property-descriptor":208}],62:[function(_dereq_,module,exports){
  2247. _dereq_('../../modules/es.object.get-own-property-descriptors');
  2248. var path = _dereq_('../../internals/path');
  2249. module.exports = path.Object.getOwnPropertyDescriptors;
  2250. },{"../../internals/path":169,"../../modules/es.object.get-own-property-descriptors":209}],63:[function(_dereq_,module,exports){
  2251. _dereq_('../../modules/es.symbol');
  2252. var path = _dereq_('../../internals/path');
  2253. module.exports = path.Object.getOwnPropertySymbols;
  2254. },{"../../internals/path":169,"../../modules/es.symbol":218}],64:[function(_dereq_,module,exports){
  2255. _dereq_('../../modules/es.object.keys');
  2256. var path = _dereq_('../../internals/path');
  2257. module.exports = path.Object.keys;
  2258. },{"../../internals/path":169,"../../modules/es.object.keys":210}],65:[function(_dereq_,module,exports){
  2259. _dereq_('../../modules/es.aggregate-error');
  2260. _dereq_('../../modules/es.array.iterator');
  2261. _dereq_('../../modules/es.object.to-string');
  2262. _dereq_('../../modules/es.promise');
  2263. _dereq_('../../modules/es.promise.all-settled');
  2264. _dereq_('../../modules/es.promise.any');
  2265. _dereq_('../../modules/es.promise.finally');
  2266. _dereq_('../../modules/es.string.iterator');
  2267. var path = _dereq_('../../internals/path');
  2268. module.exports = path.Promise;
  2269. },{"../../internals/path":169,"../../modules/es.aggregate-error":200,"../../modules/es.array.iterator":204,"../../modules/es.object.to-string":211,"../../modules/es.promise":215,"../../modules/es.promise.all-settled":212,"../../modules/es.promise.any":213,"../../modules/es.promise.finally":214,"../../modules/es.string.iterator":217}],66:[function(_dereq_,module,exports){
  2270. _dereq_('../../../modules/es.string.includes');
  2271. var entryVirtual = _dereq_('../../../internals/entry-virtual');
  2272. module.exports = entryVirtual('String').includes;
  2273. },{"../../../internals/entry-virtual":107,"../../../modules/es.string.includes":216}],67:[function(_dereq_,module,exports){
  2274. var parent = _dereq_('../../actual/object/define-property');
  2275. module.exports = parent;
  2276. },{"../../actual/object/define-property":51}],68:[function(_dereq_,module,exports){
  2277. var parent = _dereq_('../../actual/promise');
  2278. _dereq_('../../modules/esnext.aggregate-error');
  2279. // TODO: Remove from `core-js@4`
  2280. _dereq_('../../modules/esnext.promise.all-settled');
  2281. _dereq_('../../modules/esnext.promise.try');
  2282. _dereq_('../../modules/esnext.promise.any');
  2283. module.exports = parent;
  2284. },{"../../actual/promise":52,"../../modules/esnext.aggregate-error":219,"../../modules/esnext.promise.all-settled":220,"../../modules/esnext.promise.any":221,"../../modules/esnext.promise.try":222}],69:[function(_dereq_,module,exports){
  2285. var global = _dereq_('../internals/global');
  2286. var isCallable = _dereq_('../internals/is-callable');
  2287. var tryToString = _dereq_('../internals/try-to-string');
  2288. var TypeError = global.TypeError;
  2289. // `Assert: IsCallable(argument) is true`
  2290. module.exports = function (argument) {
  2291. if (isCallable(argument)) return argument;
  2292. throw TypeError(tryToString(argument) + ' is not a function');
  2293. };
  2294. },{"../internals/global":122,"../internals/is-callable":134,"../internals/try-to-string":194}],70:[function(_dereq_,module,exports){
  2295. var global = _dereq_('../internals/global');
  2296. var isConstructor = _dereq_('../internals/is-constructor');
  2297. var tryToString = _dereq_('../internals/try-to-string');
  2298. var TypeError = global.TypeError;
  2299. // `Assert: IsConstructor(argument) is true`
  2300. module.exports = function (argument) {
  2301. if (isConstructor(argument)) return argument;
  2302. throw TypeError(tryToString(argument) + ' is not a constructor');
  2303. };
  2304. },{"../internals/global":122,"../internals/is-constructor":135,"../internals/try-to-string":194}],71:[function(_dereq_,module,exports){
  2305. var global = _dereq_('../internals/global');
  2306. var isCallable = _dereq_('../internals/is-callable');
  2307. var String = global.String;
  2308. var TypeError = global.TypeError;
  2309. module.exports = function (argument) {
  2310. if (typeof argument == 'object' || isCallable(argument)) return argument;
  2311. throw TypeError("Can't set " + String(argument) + ' as a prototype');
  2312. };
  2313. },{"../internals/global":122,"../internals/is-callable":134}],72:[function(_dereq_,module,exports){
  2314. module.exports = function () { /* empty */ };
  2315. },{}],73:[function(_dereq_,module,exports){
  2316. var global = _dereq_('../internals/global');
  2317. var isPrototypeOf = _dereq_('../internals/object-is-prototype-of');
  2318. var TypeError = global.TypeError;
  2319. module.exports = function (it, Prototype) {
  2320. if (isPrototypeOf(Prototype, it)) return it;
  2321. throw TypeError('Incorrect invocation');
  2322. };
  2323. },{"../internals/global":122,"../internals/object-is-prototype-of":161}],74:[function(_dereq_,module,exports){
  2324. var global = _dereq_('../internals/global');
  2325. var isObject = _dereq_('../internals/is-object');
  2326. var String = global.String;
  2327. var TypeError = global.TypeError;
  2328. // `Assert: Type(argument) is Object`
  2329. module.exports = function (argument) {
  2330. if (isObject(argument)) return argument;
  2331. throw TypeError(String(argument) + ' is not an object');
  2332. };
  2333. },{"../internals/global":122,"../internals/is-object":137}],75:[function(_dereq_,module,exports){
  2334. 'use strict';
  2335. var $forEach = _dereq_('../internals/array-iteration').forEach;
  2336. var arrayMethodIsStrict = _dereq_('../internals/array-method-is-strict');
  2337. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  2338. // `Array.prototype.forEach` method implementation
  2339. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  2340. module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  2341. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  2342. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  2343. } : [].forEach;
  2344. },{"../internals/array-iteration":77,"../internals/array-method-is-strict":79}],76:[function(_dereq_,module,exports){
  2345. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  2346. var toAbsoluteIndex = _dereq_('../internals/to-absolute-index');
  2347. var lengthOfArrayLike = _dereq_('../internals/length-of-array-like');
  2348. // `Array.prototype.{ indexOf, includes }` methods implementation
  2349. var createMethod = function (IS_INCLUDES) {
  2350. return function ($this, el, fromIndex) {
  2351. var O = toIndexedObject($this);
  2352. var length = lengthOfArrayLike(O);
  2353. var index = toAbsoluteIndex(fromIndex, length);
  2354. var value;
  2355. // Array#includes uses SameValueZero equality algorithm
  2356. // eslint-disable-next-line no-self-compare -- NaN check
  2357. if (IS_INCLUDES && el != el) while (length > index) {
  2358. value = O[index++];
  2359. // eslint-disable-next-line no-self-compare -- NaN check
  2360. if (value != value) return true;
  2361. // Array#indexOf ignores holes, Array#includes - not
  2362. } else for (;length > index; index++) {
  2363. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  2364. } return !IS_INCLUDES && -1;
  2365. };
  2366. };
  2367. module.exports = {
  2368. // `Array.prototype.includes` method
  2369. // https://tc39.es/ecma262/#sec-array.prototype.includes
  2370. includes: createMethod(true),
  2371. // `Array.prototype.indexOf` method
  2372. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  2373. indexOf: createMethod(false)
  2374. };
  2375. },{"../internals/length-of-array-like":145,"../internals/to-absolute-index":185,"../internals/to-indexed-object":186}],77:[function(_dereq_,module,exports){
  2376. var bind = _dereq_('../internals/function-bind-context');
  2377. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  2378. var IndexedObject = _dereq_('../internals/indexed-object');
  2379. var toObject = _dereq_('../internals/to-object');
  2380. var lengthOfArrayLike = _dereq_('../internals/length-of-array-like');
  2381. var arraySpeciesCreate = _dereq_('../internals/array-species-create');
  2382. var push = uncurryThis([].push);
  2383. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  2384. var createMethod = function (TYPE) {
  2385. var IS_MAP = TYPE == 1;
  2386. var IS_FILTER = TYPE == 2;
  2387. var IS_SOME = TYPE == 3;
  2388. var IS_EVERY = TYPE == 4;
  2389. var IS_FIND_INDEX = TYPE == 6;
  2390. var IS_FILTER_REJECT = TYPE == 7;
  2391. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  2392. return function ($this, callbackfn, that, specificCreate) {
  2393. var O = toObject($this);
  2394. var self = IndexedObject(O);
  2395. var boundFunction = bind(callbackfn, that);
  2396. var length = lengthOfArrayLike(self);
  2397. var index = 0;
  2398. var create = specificCreate || arraySpeciesCreate;
  2399. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  2400. var value, result;
  2401. for (;length > index; index++) if (NO_HOLES || index in self) {
  2402. value = self[index];
  2403. result = boundFunction(value, index, O);
  2404. if (TYPE) {
  2405. if (IS_MAP) target[index] = result; // map
  2406. else if (result) switch (TYPE) {
  2407. case 3: return true; // some
  2408. case 5: return value; // find
  2409. case 6: return index; // findIndex
  2410. case 2: push(target, value); // filter
  2411. } else switch (TYPE) {
  2412. case 4: return false; // every
  2413. case 7: push(target, value); // filterReject
  2414. }
  2415. }
  2416. }
  2417. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  2418. };
  2419. };
  2420. module.exports = {
  2421. // `Array.prototype.forEach` method
  2422. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  2423. forEach: createMethod(0),
  2424. // `Array.prototype.map` method
  2425. // https://tc39.es/ecma262/#sec-array.prototype.map
  2426. map: createMethod(1),
  2427. // `Array.prototype.filter` method
  2428. // https://tc39.es/ecma262/#sec-array.prototype.filter
  2429. filter: createMethod(2),
  2430. // `Array.prototype.some` method
  2431. // https://tc39.es/ecma262/#sec-array.prototype.some
  2432. some: createMethod(3),
  2433. // `Array.prototype.every` method
  2434. // https://tc39.es/ecma262/#sec-array.prototype.every
  2435. every: createMethod(4),
  2436. // `Array.prototype.find` method
  2437. // https://tc39.es/ecma262/#sec-array.prototype.find
  2438. find: createMethod(5),
  2439. // `Array.prototype.findIndex` method
  2440. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  2441. findIndex: createMethod(6),
  2442. // `Array.prototype.filterReject` method
  2443. // https://github.com/tc39/proposal-array-filtering
  2444. filterReject: createMethod(7)
  2445. };
  2446. },{"../internals/array-species-create":83,"../internals/function-bind-context":113,"../internals/function-uncurry-this":117,"../internals/indexed-object":128,"../internals/length-of-array-like":145,"../internals/to-object":189}],78:[function(_dereq_,module,exports){
  2447. var fails = _dereq_('../internals/fails');
  2448. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  2449. var V8_VERSION = _dereq_('../internals/engine-v8-version');
  2450. var SPECIES = wellKnownSymbol('species');
  2451. module.exports = function (METHOD_NAME) {
  2452. // We can't use this feature detection in V8 since it causes
  2453. // deoptimization and serious performance degradation
  2454. // https://github.com/zloirock/core-js/issues/677
  2455. return V8_VERSION >= 51 || !fails(function () {
  2456. var array = [];
  2457. var constructor = array.constructor = {};
  2458. constructor[SPECIES] = function () {
  2459. return { foo: 1 };
  2460. };
  2461. return array[METHOD_NAME](Boolean).foo !== 1;
  2462. });
  2463. };
  2464. },{"../internals/engine-v8-version":106,"../internals/fails":111,"../internals/well-known-symbol":199}],79:[function(_dereq_,module,exports){
  2465. 'use strict';
  2466. var fails = _dereq_('../internals/fails');
  2467. module.exports = function (METHOD_NAME, argument) {
  2468. var method = [][METHOD_NAME];
  2469. return !!method && fails(function () {
  2470. // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
  2471. method.call(null, argument || function () { throw 1; }, 1);
  2472. });
  2473. };
  2474. },{"../internals/fails":111}],80:[function(_dereq_,module,exports){
  2475. var global = _dereq_('../internals/global');
  2476. var toAbsoluteIndex = _dereq_('../internals/to-absolute-index');
  2477. var lengthOfArrayLike = _dereq_('../internals/length-of-array-like');
  2478. var createProperty = _dereq_('../internals/create-property');
  2479. var Array = global.Array;
  2480. var max = Math.max;
  2481. module.exports = function (O, start, end) {
  2482. var length = lengthOfArrayLike(O);
  2483. var k = toAbsoluteIndex(start, length);
  2484. var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  2485. var result = Array(max(fin - k, 0));
  2486. for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
  2487. result.length = n;
  2488. return result;
  2489. };
  2490. },{"../internals/create-property":94,"../internals/global":122,"../internals/length-of-array-like":145,"../internals/to-absolute-index":185}],81:[function(_dereq_,module,exports){
  2491. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  2492. module.exports = uncurryThis([].slice);
  2493. },{"../internals/function-uncurry-this":117}],82:[function(_dereq_,module,exports){
  2494. var global = _dereq_('../internals/global');
  2495. var isArray = _dereq_('../internals/is-array');
  2496. var isConstructor = _dereq_('../internals/is-constructor');
  2497. var isObject = _dereq_('../internals/is-object');
  2498. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  2499. var SPECIES = wellKnownSymbol('species');
  2500. var Array = global.Array;
  2501. // a part of `ArraySpeciesCreate` abstract operation
  2502. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  2503. module.exports = function (originalArray) {
  2504. var C;
  2505. if (isArray(originalArray)) {
  2506. C = originalArray.constructor;
  2507. // cross-realm fallback
  2508. if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined;
  2509. else if (isObject(C)) {
  2510. C = C[SPECIES];
  2511. if (C === null) C = undefined;
  2512. }
  2513. } return C === undefined ? Array : C;
  2514. };
  2515. },{"../internals/global":122,"../internals/is-array":133,"../internals/is-constructor":135,"../internals/is-object":137,"../internals/well-known-symbol":199}],83:[function(_dereq_,module,exports){
  2516. var arraySpeciesConstructor = _dereq_('../internals/array-species-constructor');
  2517. // `ArraySpeciesCreate` abstract operation
  2518. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  2519. module.exports = function (originalArray, length) {
  2520. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  2521. };
  2522. },{"../internals/array-species-constructor":82}],84:[function(_dereq_,module,exports){
  2523. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  2524. var ITERATOR = wellKnownSymbol('iterator');
  2525. var SAFE_CLOSING = false;
  2526. try {
  2527. var called = 0;
  2528. var iteratorWithReturn = {
  2529. next: function () {
  2530. return { done: !!called++ };
  2531. },
  2532. 'return': function () {
  2533. SAFE_CLOSING = true;
  2534. }
  2535. };
  2536. iteratorWithReturn[ITERATOR] = function () {
  2537. return this;
  2538. };
  2539. // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
  2540. Array.from(iteratorWithReturn, function () { throw 2; });
  2541. } catch (error) { /* empty */ }
  2542. module.exports = function (exec, SKIP_CLOSING) {
  2543. if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
  2544. var ITERATION_SUPPORT = false;
  2545. try {
  2546. var object = {};
  2547. object[ITERATOR] = function () {
  2548. return {
  2549. next: function () {
  2550. return { done: ITERATION_SUPPORT = true };
  2551. }
  2552. };
  2553. };
  2554. exec(object);
  2555. } catch (error) { /* empty */ }
  2556. return ITERATION_SUPPORT;
  2557. };
  2558. },{"../internals/well-known-symbol":199}],85:[function(_dereq_,module,exports){
  2559. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  2560. var toString = uncurryThis({}.toString);
  2561. var stringSlice = uncurryThis(''.slice);
  2562. module.exports = function (it) {
  2563. return stringSlice(toString(it), 8, -1);
  2564. };
  2565. },{"../internals/function-uncurry-this":117}],86:[function(_dereq_,module,exports){
  2566. var global = _dereq_('../internals/global');
  2567. var TO_STRING_TAG_SUPPORT = _dereq_('../internals/to-string-tag-support');
  2568. var isCallable = _dereq_('../internals/is-callable');
  2569. var classofRaw = _dereq_('../internals/classof-raw');
  2570. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  2571. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  2572. var Object = global.Object;
  2573. // ES3 wrong here
  2574. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  2575. // fallback for IE11 Script Access Denied error
  2576. var tryGet = function (it, key) {
  2577. try {
  2578. return it[key];
  2579. } catch (error) { /* empty */ }
  2580. };
  2581. // getting tag from ES6+ `Object.prototype.toString`
  2582. module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  2583. var O, tag, result;
  2584. return it === undefined ? 'Undefined' : it === null ? 'Null'
  2585. // @@toStringTag case
  2586. : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
  2587. // builtinTag case
  2588. : CORRECT_ARGUMENTS ? classofRaw(O)
  2589. // ES3 arguments fallback
  2590. : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  2591. };
  2592. },{"../internals/classof-raw":85,"../internals/global":122,"../internals/is-callable":134,"../internals/to-string-tag-support":192,"../internals/well-known-symbol":199}],87:[function(_dereq_,module,exports){
  2593. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  2594. var replace = uncurryThis(''.replace);
  2595. var TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');
  2596. var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
  2597. var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
  2598. module.exports = function (stack, dropEntries) {
  2599. if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string') {
  2600. while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
  2601. } return stack;
  2602. };
  2603. },{"../internals/function-uncurry-this":117}],88:[function(_dereq_,module,exports){
  2604. var hasOwn = _dereq_('../internals/has-own-property');
  2605. var ownKeys = _dereq_('../internals/own-keys');
  2606. var getOwnPropertyDescriptorModule = _dereq_('../internals/object-get-own-property-descriptor');
  2607. var definePropertyModule = _dereq_('../internals/object-define-property');
  2608. module.exports = function (target, source, exceptions) {
  2609. var keys = ownKeys(source);
  2610. var defineProperty = definePropertyModule.f;
  2611. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  2612. for (var i = 0; i < keys.length; i++) {
  2613. var key = keys[i];
  2614. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  2615. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  2616. }
  2617. }
  2618. };
  2619. },{"../internals/has-own-property":123,"../internals/object-define-property":155,"../internals/object-get-own-property-descriptor":156,"../internals/own-keys":168}],89:[function(_dereq_,module,exports){
  2620. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  2621. var MATCH = wellKnownSymbol('match');
  2622. module.exports = function (METHOD_NAME) {
  2623. var regexp = /./;
  2624. try {
  2625. '/./'[METHOD_NAME](regexp);
  2626. } catch (error1) {
  2627. try {
  2628. regexp[MATCH] = false;
  2629. return '/./'[METHOD_NAME](regexp);
  2630. } catch (error2) { /* empty */ }
  2631. } return false;
  2632. };
  2633. },{"../internals/well-known-symbol":199}],90:[function(_dereq_,module,exports){
  2634. var fails = _dereq_('../internals/fails');
  2635. module.exports = !fails(function () {
  2636. function F() { /* empty */ }
  2637. F.prototype.constructor = null;
  2638. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  2639. return Object.getPrototypeOf(new F()) !== F.prototype;
  2640. });
  2641. },{"../internals/fails":111}],91:[function(_dereq_,module,exports){
  2642. 'use strict';
  2643. var IteratorPrototype = _dereq_('../internals/iterators-core').IteratorPrototype;
  2644. var create = _dereq_('../internals/object-create');
  2645. var createPropertyDescriptor = _dereq_('../internals/create-property-descriptor');
  2646. var setToStringTag = _dereq_('../internals/set-to-string-tag');
  2647. var Iterators = _dereq_('../internals/iterators');
  2648. var returnThis = function () { return this; };
  2649. module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
  2650. var TO_STRING_TAG = NAME + ' Iterator';
  2651. IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
  2652. setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
  2653. Iterators[TO_STRING_TAG] = returnThis;
  2654. return IteratorConstructor;
  2655. };
  2656. },{"../internals/create-property-descriptor":93,"../internals/iterators":144,"../internals/iterators-core":143,"../internals/object-create":153,"../internals/set-to-string-tag":178}],92:[function(_dereq_,module,exports){
  2657. var DESCRIPTORS = _dereq_('../internals/descriptors');
  2658. var definePropertyModule = _dereq_('../internals/object-define-property');
  2659. var createPropertyDescriptor = _dereq_('../internals/create-property-descriptor');
  2660. module.exports = DESCRIPTORS ? function (object, key, value) {
  2661. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  2662. } : function (object, key, value) {
  2663. object[key] = value;
  2664. return object;
  2665. };
  2666. },{"../internals/create-property-descriptor":93,"../internals/descriptors":97,"../internals/object-define-property":155}],93:[function(_dereq_,module,exports){
  2667. module.exports = function (bitmap, value) {
  2668. return {
  2669. enumerable: !(bitmap & 1),
  2670. configurable: !(bitmap & 2),
  2671. writable: !(bitmap & 4),
  2672. value: value
  2673. };
  2674. };
  2675. },{}],94:[function(_dereq_,module,exports){
  2676. 'use strict';
  2677. var toPropertyKey = _dereq_('../internals/to-property-key');
  2678. var definePropertyModule = _dereq_('../internals/object-define-property');
  2679. var createPropertyDescriptor = _dereq_('../internals/create-property-descriptor');
  2680. module.exports = function (object, key, value) {
  2681. var propertyKey = toPropertyKey(key);
  2682. if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
  2683. else object[propertyKey] = value;
  2684. };
  2685. },{"../internals/create-property-descriptor":93,"../internals/object-define-property":155,"../internals/to-property-key":191}],95:[function(_dereq_,module,exports){
  2686. 'use strict';
  2687. var $ = _dereq_('../internals/export');
  2688. var call = _dereq_('../internals/function-call');
  2689. var IS_PURE = _dereq_('../internals/is-pure');
  2690. var FunctionName = _dereq_('../internals/function-name');
  2691. var isCallable = _dereq_('../internals/is-callable');
  2692. var createIteratorConstructor = _dereq_('../internals/create-iterator-constructor');
  2693. var getPrototypeOf = _dereq_('../internals/object-get-prototype-of');
  2694. var setPrototypeOf = _dereq_('../internals/object-set-prototype-of');
  2695. var setToStringTag = _dereq_('../internals/set-to-string-tag');
  2696. var createNonEnumerableProperty = _dereq_('../internals/create-non-enumerable-property');
  2697. var redefine = _dereq_('../internals/redefine');
  2698. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  2699. var Iterators = _dereq_('../internals/iterators');
  2700. var IteratorsCore = _dereq_('../internals/iterators-core');
  2701. var PROPER_FUNCTION_NAME = FunctionName.PROPER;
  2702. var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
  2703. var IteratorPrototype = IteratorsCore.IteratorPrototype;
  2704. var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
  2705. var ITERATOR = wellKnownSymbol('iterator');
  2706. var KEYS = 'keys';
  2707. var VALUES = 'values';
  2708. var ENTRIES = 'entries';
  2709. var returnThis = function () { return this; };
  2710. module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
  2711. createIteratorConstructor(IteratorConstructor, NAME, next);
  2712. var getIterationMethod = function (KIND) {
  2713. if (KIND === DEFAULT && defaultIterator) return defaultIterator;
  2714. if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
  2715. switch (KIND) {
  2716. case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
  2717. case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
  2718. case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
  2719. } return function () { return new IteratorConstructor(this); };
  2720. };
  2721. var TO_STRING_TAG = NAME + ' Iterator';
  2722. var INCORRECT_VALUES_NAME = false;
  2723. var IterablePrototype = Iterable.prototype;
  2724. var nativeIterator = IterablePrototype[ITERATOR]
  2725. || IterablePrototype['@@iterator']
  2726. || DEFAULT && IterablePrototype[DEFAULT];
  2727. var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
  2728. var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
  2729. var CurrentIteratorPrototype, methods, KEY;
  2730. // fix native
  2731. if (anyNativeIterator) {
  2732. CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
  2733. if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
  2734. if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
  2735. if (setPrototypeOf) {
  2736. setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
  2737. } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
  2738. redefine(CurrentIteratorPrototype, ITERATOR, returnThis);
  2739. }
  2740. }
  2741. // Set @@toStringTag to native iterators
  2742. setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
  2743. if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
  2744. }
  2745. }
  2746. // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
  2747. if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  2748. if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
  2749. createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
  2750. } else {
  2751. INCORRECT_VALUES_NAME = true;
  2752. defaultIterator = function values() { return call(nativeIterator, this); };
  2753. }
  2754. }
  2755. // export additional methods
  2756. if (DEFAULT) {
  2757. methods = {
  2758. values: getIterationMethod(VALUES),
  2759. keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
  2760. entries: getIterationMethod(ENTRIES)
  2761. };
  2762. if (FORCED) for (KEY in methods) {
  2763. if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
  2764. redefine(IterablePrototype, KEY, methods[KEY]);
  2765. }
  2766. } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
  2767. }
  2768. // define iterator
  2769. if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
  2770. redefine(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
  2771. }
  2772. Iterators[NAME] = defaultIterator;
  2773. return methods;
  2774. };
  2775. },{"../internals/create-iterator-constructor":91,"../internals/create-non-enumerable-property":92,"../internals/export":110,"../internals/function-call":115,"../internals/function-name":116,"../internals/is-callable":134,"../internals/is-pure":138,"../internals/iterators":144,"../internals/iterators-core":143,"../internals/object-get-prototype-of":160,"../internals/object-set-prototype-of":165,"../internals/redefine":174,"../internals/set-to-string-tag":178,"../internals/well-known-symbol":199}],96:[function(_dereq_,module,exports){
  2776. var path = _dereq_('../internals/path');
  2777. var hasOwn = _dereq_('../internals/has-own-property');
  2778. var wrappedWellKnownSymbolModule = _dereq_('../internals/well-known-symbol-wrapped');
  2779. var defineProperty = _dereq_('../internals/object-define-property').f;
  2780. module.exports = function (NAME) {
  2781. var Symbol = path.Symbol || (path.Symbol = {});
  2782. if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {
  2783. value: wrappedWellKnownSymbolModule.f(NAME)
  2784. });
  2785. };
  2786. },{"../internals/has-own-property":123,"../internals/object-define-property":155,"../internals/path":169,"../internals/well-known-symbol-wrapped":198}],97:[function(_dereq_,module,exports){
  2787. var fails = _dereq_('../internals/fails');
  2788. // Detect IE8's incomplete defineProperty implementation
  2789. module.exports = !fails(function () {
  2790. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  2791. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  2792. });
  2793. },{"../internals/fails":111}],98:[function(_dereq_,module,exports){
  2794. var global = _dereq_('../internals/global');
  2795. var isObject = _dereq_('../internals/is-object');
  2796. var document = global.document;
  2797. // typeof document.createElement is 'object' in old IE
  2798. var EXISTS = isObject(document) && isObject(document.createElement);
  2799. module.exports = function (it) {
  2800. return EXISTS ? document.createElement(it) : {};
  2801. };
  2802. },{"../internals/global":122,"../internals/is-object":137}],99:[function(_dereq_,module,exports){
  2803. // iterable DOM collections
  2804. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  2805. module.exports = {
  2806. CSSRuleList: 0,
  2807. CSSStyleDeclaration: 0,
  2808. CSSValueList: 0,
  2809. ClientRectList: 0,
  2810. DOMRectList: 0,
  2811. DOMStringList: 0,
  2812. DOMTokenList: 1,
  2813. DataTransferItemList: 0,
  2814. FileList: 0,
  2815. HTMLAllCollection: 0,
  2816. HTMLCollection: 0,
  2817. HTMLFormElement: 0,
  2818. HTMLSelectElement: 0,
  2819. MediaList: 0,
  2820. MimeTypeArray: 0,
  2821. NamedNodeMap: 0,
  2822. NodeList: 1,
  2823. PaintRequestList: 0,
  2824. Plugin: 0,
  2825. PluginArray: 0,
  2826. SVGLengthList: 0,
  2827. SVGNumberList: 0,
  2828. SVGPathSegList: 0,
  2829. SVGPointList: 0,
  2830. SVGStringList: 0,
  2831. SVGTransformList: 0,
  2832. SourceBufferList: 0,
  2833. StyleSheetList: 0,
  2834. TextTrackCueList: 0,
  2835. TextTrackList: 0,
  2836. TouchList: 0
  2837. };
  2838. },{}],100:[function(_dereq_,module,exports){
  2839. module.exports = typeof window == 'object';
  2840. },{}],101:[function(_dereq_,module,exports){
  2841. var userAgent = _dereq_('../internals/engine-user-agent');
  2842. var global = _dereq_('../internals/global');
  2843. module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined;
  2844. },{"../internals/engine-user-agent":105,"../internals/global":122}],102:[function(_dereq_,module,exports){
  2845. var userAgent = _dereq_('../internals/engine-user-agent');
  2846. module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
  2847. },{"../internals/engine-user-agent":105}],103:[function(_dereq_,module,exports){
  2848. var classof = _dereq_('../internals/classof-raw');
  2849. var global = _dereq_('../internals/global');
  2850. module.exports = classof(global.process) == 'process';
  2851. },{"../internals/classof-raw":85,"../internals/global":122}],104:[function(_dereq_,module,exports){
  2852. var userAgent = _dereq_('../internals/engine-user-agent');
  2853. module.exports = /web0s(?!.*chrome)/i.test(userAgent);
  2854. },{"../internals/engine-user-agent":105}],105:[function(_dereq_,module,exports){
  2855. var getBuiltIn = _dereq_('../internals/get-built-in');
  2856. module.exports = getBuiltIn('navigator', 'userAgent') || '';
  2857. },{"../internals/get-built-in":118}],106:[function(_dereq_,module,exports){
  2858. var global = _dereq_('../internals/global');
  2859. var userAgent = _dereq_('../internals/engine-user-agent');
  2860. var process = global.process;
  2861. var Deno = global.Deno;
  2862. var versions = process && process.versions || Deno && Deno.version;
  2863. var v8 = versions && versions.v8;
  2864. var match, version;
  2865. if (v8) {
  2866. match = v8.split('.');
  2867. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  2868. // but their correct versions are not interesting for us
  2869. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  2870. }
  2871. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  2872. // so check `userAgent` even if `.v8` exists, but 0
  2873. if (!version && userAgent) {
  2874. match = userAgent.match(/Edge\/(\d+)/);
  2875. if (!match || match[1] >= 74) {
  2876. match = userAgent.match(/Chrome\/(\d+)/);
  2877. if (match) version = +match[1];
  2878. }
  2879. }
  2880. module.exports = version;
  2881. },{"../internals/engine-user-agent":105,"../internals/global":122}],107:[function(_dereq_,module,exports){
  2882. var path = _dereq_('../internals/path');
  2883. module.exports = function (CONSTRUCTOR) {
  2884. return path[CONSTRUCTOR + 'Prototype'];
  2885. };
  2886. },{"../internals/path":169}],108:[function(_dereq_,module,exports){
  2887. // IE8- don't enum bug keys
  2888. module.exports = [
  2889. 'constructor',
  2890. 'hasOwnProperty',
  2891. 'isPrototypeOf',
  2892. 'propertyIsEnumerable',
  2893. 'toLocaleString',
  2894. 'toString',
  2895. 'valueOf'
  2896. ];
  2897. },{}],109:[function(_dereq_,module,exports){
  2898. var fails = _dereq_('../internals/fails');
  2899. var createPropertyDescriptor = _dereq_('../internals/create-property-descriptor');
  2900. module.exports = !fails(function () {
  2901. var error = Error('a');
  2902. if (!('stack' in error)) return true;
  2903. // eslint-disable-next-line es/no-object-defineproperty -- safe
  2904. Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
  2905. return error.stack !== 7;
  2906. });
  2907. },{"../internals/create-property-descriptor":93,"../internals/fails":111}],110:[function(_dereq_,module,exports){
  2908. 'use strict';
  2909. var global = _dereq_('../internals/global');
  2910. var apply = _dereq_('../internals/function-apply');
  2911. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  2912. var isCallable = _dereq_('../internals/is-callable');
  2913. var getOwnPropertyDescriptor = _dereq_('../internals/object-get-own-property-descriptor').f;
  2914. var isForced = _dereq_('../internals/is-forced');
  2915. var path = _dereq_('../internals/path');
  2916. var bind = _dereq_('../internals/function-bind-context');
  2917. var createNonEnumerableProperty = _dereq_('../internals/create-non-enumerable-property');
  2918. var hasOwn = _dereq_('../internals/has-own-property');
  2919. var wrapConstructor = function (NativeConstructor) {
  2920. var Wrapper = function (a, b, c) {
  2921. if (this instanceof Wrapper) {
  2922. switch (arguments.length) {
  2923. case 0: return new NativeConstructor();
  2924. case 1: return new NativeConstructor(a);
  2925. case 2: return new NativeConstructor(a, b);
  2926. } return new NativeConstructor(a, b, c);
  2927. } return apply(NativeConstructor, this, arguments);
  2928. };
  2929. Wrapper.prototype = NativeConstructor.prototype;
  2930. return Wrapper;
  2931. };
  2932. /*
  2933. options.target - name of the target object
  2934. options.global - target is the global object
  2935. options.stat - export as static methods of target
  2936. options.proto - export as prototype methods of target
  2937. options.real - real prototype method for the `pure` version
  2938. options.forced - export even if the native feature is available
  2939. options.bind - bind methods to the target, required for the `pure` version
  2940. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  2941. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  2942. options.sham - add a flag to not completely full polyfills
  2943. options.enumerable - export as enumerable property
  2944. options.noTargetGet - prevent calling a getter on target
  2945. options.name - the .name of the function if it does not match the key
  2946. */
  2947. module.exports = function (options, source) {
  2948. var TARGET = options.target;
  2949. var GLOBAL = options.global;
  2950. var STATIC = options.stat;
  2951. var PROTO = options.proto;
  2952. var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;
  2953. var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];
  2954. var targetPrototype = target.prototype;
  2955. var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
  2956. var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
  2957. for (key in source) {
  2958. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  2959. // contains in native
  2960. USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key);
  2961. targetProperty = target[key];
  2962. if (USE_NATIVE) if (options.noTargetGet) {
  2963. descriptor = getOwnPropertyDescriptor(nativeSource, key);
  2964. nativeProperty = descriptor && descriptor.value;
  2965. } else nativeProperty = nativeSource[key];
  2966. // export native or implementation
  2967. sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];
  2968. if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;
  2969. // bind timers to global for call from export context
  2970. if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);
  2971. // wrap global constructors for prevent changs in this version
  2972. else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
  2973. // make static versions for prototype methods
  2974. else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty);
  2975. // default case
  2976. else resultProperty = sourceProperty;
  2977. // add a flag to not completely full polyfills
  2978. if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {
  2979. createNonEnumerableProperty(resultProperty, 'sham', true);
  2980. }
  2981. createNonEnumerableProperty(target, key, resultProperty);
  2982. if (PROTO) {
  2983. VIRTUAL_PROTOTYPE = TARGET + 'Prototype';
  2984. if (!hasOwn(path, VIRTUAL_PROTOTYPE)) {
  2985. createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});
  2986. }
  2987. // export virtual prototype methods
  2988. createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);
  2989. // export real prototype methods
  2990. if (options.real && targetPrototype && !targetPrototype[key]) {
  2991. createNonEnumerableProperty(targetPrototype, key, sourceProperty);
  2992. }
  2993. }
  2994. }
  2995. };
  2996. },{"../internals/create-non-enumerable-property":92,"../internals/function-apply":112,"../internals/function-bind-context":113,"../internals/function-uncurry-this":117,"../internals/global":122,"../internals/has-own-property":123,"../internals/is-callable":134,"../internals/is-forced":136,"../internals/object-get-own-property-descriptor":156,"../internals/path":169}],111:[function(_dereq_,module,exports){
  2997. module.exports = function (exec) {
  2998. try {
  2999. return !!exec();
  3000. } catch (error) {
  3001. return true;
  3002. }
  3003. };
  3004. },{}],112:[function(_dereq_,module,exports){
  3005. var NATIVE_BIND = _dereq_('../internals/function-bind-native');
  3006. var FunctionPrototype = Function.prototype;
  3007. var apply = FunctionPrototype.apply;
  3008. var call = FunctionPrototype.call;
  3009. // eslint-disable-next-line es/no-reflect -- safe
  3010. module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
  3011. return call.apply(apply, arguments);
  3012. });
  3013. },{"../internals/function-bind-native":114}],113:[function(_dereq_,module,exports){
  3014. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3015. var aCallable = _dereq_('../internals/a-callable');
  3016. var NATIVE_BIND = _dereq_('../internals/function-bind-native');
  3017. var bind = uncurryThis(uncurryThis.bind);
  3018. // optional / simple context binding
  3019. module.exports = function (fn, that) {
  3020. aCallable(fn);
  3021. return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
  3022. return fn.apply(that, arguments);
  3023. };
  3024. };
  3025. },{"../internals/a-callable":69,"../internals/function-bind-native":114,"../internals/function-uncurry-this":117}],114:[function(_dereq_,module,exports){
  3026. var fails = _dereq_('../internals/fails');
  3027. module.exports = !fails(function () {
  3028. var test = (function () { /* empty */ }).bind();
  3029. // eslint-disable-next-line no-prototype-builtins -- safe
  3030. return typeof test != 'function' || test.hasOwnProperty('prototype');
  3031. });
  3032. },{"../internals/fails":111}],115:[function(_dereq_,module,exports){
  3033. var NATIVE_BIND = _dereq_('../internals/function-bind-native');
  3034. var call = Function.prototype.call;
  3035. module.exports = NATIVE_BIND ? call.bind(call) : function () {
  3036. return call.apply(call, arguments);
  3037. };
  3038. },{"../internals/function-bind-native":114}],116:[function(_dereq_,module,exports){
  3039. var DESCRIPTORS = _dereq_('../internals/descriptors');
  3040. var hasOwn = _dereq_('../internals/has-own-property');
  3041. var FunctionPrototype = Function.prototype;
  3042. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  3043. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  3044. var EXISTS = hasOwn(FunctionPrototype, 'name');
  3045. // additional protection from minified / mangled / dropped function names
  3046. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  3047. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  3048. module.exports = {
  3049. EXISTS: EXISTS,
  3050. PROPER: PROPER,
  3051. CONFIGURABLE: CONFIGURABLE
  3052. };
  3053. },{"../internals/descriptors":97,"../internals/has-own-property":123}],117:[function(_dereq_,module,exports){
  3054. var NATIVE_BIND = _dereq_('../internals/function-bind-native');
  3055. var FunctionPrototype = Function.prototype;
  3056. var bind = FunctionPrototype.bind;
  3057. var call = FunctionPrototype.call;
  3058. var uncurryThis = NATIVE_BIND && bind.bind(call, call);
  3059. module.exports = NATIVE_BIND ? function (fn) {
  3060. return fn && uncurryThis(fn);
  3061. } : function (fn) {
  3062. return fn && function () {
  3063. return call.apply(fn, arguments);
  3064. };
  3065. };
  3066. },{"../internals/function-bind-native":114}],118:[function(_dereq_,module,exports){
  3067. var path = _dereq_('../internals/path');
  3068. var global = _dereq_('../internals/global');
  3069. var isCallable = _dereq_('../internals/is-callable');
  3070. var aFunction = function (variable) {
  3071. return isCallable(variable) ? variable : undefined;
  3072. };
  3073. module.exports = function (namespace, method) {
  3074. return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
  3075. : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
  3076. };
  3077. },{"../internals/global":122,"../internals/is-callable":134,"../internals/path":169}],119:[function(_dereq_,module,exports){
  3078. var classof = _dereq_('../internals/classof');
  3079. var getMethod = _dereq_('../internals/get-method');
  3080. var Iterators = _dereq_('../internals/iterators');
  3081. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  3082. var ITERATOR = wellKnownSymbol('iterator');
  3083. module.exports = function (it) {
  3084. if (it != undefined) return getMethod(it, ITERATOR)
  3085. || getMethod(it, '@@iterator')
  3086. || Iterators[classof(it)];
  3087. };
  3088. },{"../internals/classof":86,"../internals/get-method":121,"../internals/iterators":144,"../internals/well-known-symbol":199}],120:[function(_dereq_,module,exports){
  3089. var global = _dereq_('../internals/global');
  3090. var call = _dereq_('../internals/function-call');
  3091. var aCallable = _dereq_('../internals/a-callable');
  3092. var anObject = _dereq_('../internals/an-object');
  3093. var tryToString = _dereq_('../internals/try-to-string');
  3094. var getIteratorMethod = _dereq_('../internals/get-iterator-method');
  3095. var TypeError = global.TypeError;
  3096. module.exports = function (argument, usingIterator) {
  3097. var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
  3098. if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
  3099. throw TypeError(tryToString(argument) + ' is not iterable');
  3100. };
  3101. },{"../internals/a-callable":69,"../internals/an-object":74,"../internals/function-call":115,"../internals/get-iterator-method":119,"../internals/global":122,"../internals/try-to-string":194}],121:[function(_dereq_,module,exports){
  3102. var aCallable = _dereq_('../internals/a-callable');
  3103. // `GetMethod` abstract operation
  3104. // https://tc39.es/ecma262/#sec-getmethod
  3105. module.exports = function (V, P) {
  3106. var func = V[P];
  3107. return func == null ? undefined : aCallable(func);
  3108. };
  3109. },{"../internals/a-callable":69}],122:[function(_dereq_,module,exports){
  3110. (function (global){(function (){
  3111. var check = function (it) {
  3112. return it && it.Math == Math && it;
  3113. };
  3114. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  3115. module.exports =
  3116. // eslint-disable-next-line es/no-global-this -- safe
  3117. check(typeof globalThis == 'object' && globalThis) ||
  3118. check(typeof window == 'object' && window) ||
  3119. // eslint-disable-next-line no-restricted-globals -- safe
  3120. check(typeof self == 'object' && self) ||
  3121. check(typeof global == 'object' && global) ||
  3122. // eslint-disable-next-line no-new-func -- fallback
  3123. (function () { return this; })() || Function('return this')();
  3124. }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
  3125. },{}],123:[function(_dereq_,module,exports){
  3126. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3127. var toObject = _dereq_('../internals/to-object');
  3128. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  3129. // `HasOwnProperty` abstract operation
  3130. // https://tc39.es/ecma262/#sec-hasownproperty
  3131. module.exports = Object.hasOwn || function hasOwn(it, key) {
  3132. return hasOwnProperty(toObject(it), key);
  3133. };
  3134. },{"../internals/function-uncurry-this":117,"../internals/to-object":189}],124:[function(_dereq_,module,exports){
  3135. module.exports = {};
  3136. },{}],125:[function(_dereq_,module,exports){
  3137. var global = _dereq_('../internals/global');
  3138. module.exports = function (a, b) {
  3139. var console = global.console;
  3140. if (console && console.error) {
  3141. arguments.length == 1 ? console.error(a) : console.error(a, b);
  3142. }
  3143. };
  3144. },{"../internals/global":122}],126:[function(_dereq_,module,exports){
  3145. var getBuiltIn = _dereq_('../internals/get-built-in');
  3146. module.exports = getBuiltIn('document', 'documentElement');
  3147. },{"../internals/get-built-in":118}],127:[function(_dereq_,module,exports){
  3148. var DESCRIPTORS = _dereq_('../internals/descriptors');
  3149. var fails = _dereq_('../internals/fails');
  3150. var createElement = _dereq_('../internals/document-create-element');
  3151. // Thanks to IE8 for its funny defineProperty
  3152. module.exports = !DESCRIPTORS && !fails(function () {
  3153. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  3154. return Object.defineProperty(createElement('div'), 'a', {
  3155. get: function () { return 7; }
  3156. }).a != 7;
  3157. });
  3158. },{"../internals/descriptors":97,"../internals/document-create-element":98,"../internals/fails":111}],128:[function(_dereq_,module,exports){
  3159. var global = _dereq_('../internals/global');
  3160. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3161. var fails = _dereq_('../internals/fails');
  3162. var classof = _dereq_('../internals/classof-raw');
  3163. var Object = global.Object;
  3164. var split = uncurryThis(''.split);
  3165. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  3166. module.exports = fails(function () {
  3167. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  3168. // eslint-disable-next-line no-prototype-builtins -- safe
  3169. return !Object('z').propertyIsEnumerable(0);
  3170. }) ? function (it) {
  3171. return classof(it) == 'String' ? split(it, '') : Object(it);
  3172. } : Object;
  3173. },{"../internals/classof-raw":85,"../internals/fails":111,"../internals/function-uncurry-this":117,"../internals/global":122}],129:[function(_dereq_,module,exports){
  3174. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3175. var isCallable = _dereq_('../internals/is-callable');
  3176. var store = _dereq_('../internals/shared-store');
  3177. var functionToString = uncurryThis(Function.toString);
  3178. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  3179. if (!isCallable(store.inspectSource)) {
  3180. store.inspectSource = function (it) {
  3181. return functionToString(it);
  3182. };
  3183. }
  3184. module.exports = store.inspectSource;
  3185. },{"../internals/function-uncurry-this":117,"../internals/is-callable":134,"../internals/shared-store":180}],130:[function(_dereq_,module,exports){
  3186. var isObject = _dereq_('../internals/is-object');
  3187. var createNonEnumerableProperty = _dereq_('../internals/create-non-enumerable-property');
  3188. // `InstallErrorCause` abstract operation
  3189. // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
  3190. module.exports = function (O, options) {
  3191. if (isObject(options) && 'cause' in options) {
  3192. createNonEnumerableProperty(O, 'cause', options.cause);
  3193. }
  3194. };
  3195. },{"../internals/create-non-enumerable-property":92,"../internals/is-object":137}],131:[function(_dereq_,module,exports){
  3196. var NATIVE_WEAK_MAP = _dereq_('../internals/native-weak-map');
  3197. var global = _dereq_('../internals/global');
  3198. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3199. var isObject = _dereq_('../internals/is-object');
  3200. var createNonEnumerableProperty = _dereq_('../internals/create-non-enumerable-property');
  3201. var hasOwn = _dereq_('../internals/has-own-property');
  3202. var shared = _dereq_('../internals/shared-store');
  3203. var sharedKey = _dereq_('../internals/shared-key');
  3204. var hiddenKeys = _dereq_('../internals/hidden-keys');
  3205. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  3206. var TypeError = global.TypeError;
  3207. var WeakMap = global.WeakMap;
  3208. var set, get, has;
  3209. var enforce = function (it) {
  3210. return has(it) ? get(it) : set(it, {});
  3211. };
  3212. var getterFor = function (TYPE) {
  3213. return function (it) {
  3214. var state;
  3215. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  3216. throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  3217. } return state;
  3218. };
  3219. };
  3220. if (NATIVE_WEAK_MAP || shared.state) {
  3221. var store = shared.state || (shared.state = new WeakMap());
  3222. var wmget = uncurryThis(store.get);
  3223. var wmhas = uncurryThis(store.has);
  3224. var wmset = uncurryThis(store.set);
  3225. set = function (it, metadata) {
  3226. if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  3227. metadata.facade = it;
  3228. wmset(store, it, metadata);
  3229. return metadata;
  3230. };
  3231. get = function (it) {
  3232. return wmget(store, it) || {};
  3233. };
  3234. has = function (it) {
  3235. return wmhas(store, it);
  3236. };
  3237. } else {
  3238. var STATE = sharedKey('state');
  3239. hiddenKeys[STATE] = true;
  3240. set = function (it, metadata) {
  3241. if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  3242. metadata.facade = it;
  3243. createNonEnumerableProperty(it, STATE, metadata);
  3244. return metadata;
  3245. };
  3246. get = function (it) {
  3247. return hasOwn(it, STATE) ? it[STATE] : {};
  3248. };
  3249. has = function (it) {
  3250. return hasOwn(it, STATE);
  3251. };
  3252. }
  3253. module.exports = {
  3254. set: set,
  3255. get: get,
  3256. has: has,
  3257. enforce: enforce,
  3258. getterFor: getterFor
  3259. };
  3260. },{"../internals/create-non-enumerable-property":92,"../internals/function-uncurry-this":117,"../internals/global":122,"../internals/has-own-property":123,"../internals/hidden-keys":124,"../internals/is-object":137,"../internals/native-weak-map":149,"../internals/shared-key":179,"../internals/shared-store":180}],132:[function(_dereq_,module,exports){
  3261. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  3262. var Iterators = _dereq_('../internals/iterators');
  3263. var ITERATOR = wellKnownSymbol('iterator');
  3264. var ArrayPrototype = Array.prototype;
  3265. // check on default Array iterator
  3266. module.exports = function (it) {
  3267. return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
  3268. };
  3269. },{"../internals/iterators":144,"../internals/well-known-symbol":199}],133:[function(_dereq_,module,exports){
  3270. var classof = _dereq_('../internals/classof-raw');
  3271. // `IsArray` abstract operation
  3272. // https://tc39.es/ecma262/#sec-isarray
  3273. // eslint-disable-next-line es/no-array-isarray -- safe
  3274. module.exports = Array.isArray || function isArray(argument) {
  3275. return classof(argument) == 'Array';
  3276. };
  3277. },{"../internals/classof-raw":85}],134:[function(_dereq_,module,exports){
  3278. // `IsCallable` abstract operation
  3279. // https://tc39.es/ecma262/#sec-iscallable
  3280. module.exports = function (argument) {
  3281. return typeof argument == 'function';
  3282. };
  3283. },{}],135:[function(_dereq_,module,exports){
  3284. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3285. var fails = _dereq_('../internals/fails');
  3286. var isCallable = _dereq_('../internals/is-callable');
  3287. var classof = _dereq_('../internals/classof');
  3288. var getBuiltIn = _dereq_('../internals/get-built-in');
  3289. var inspectSource = _dereq_('../internals/inspect-source');
  3290. var noop = function () { /* empty */ };
  3291. var empty = [];
  3292. var construct = getBuiltIn('Reflect', 'construct');
  3293. var constructorRegExp = /^\s*(?:class|function)\b/;
  3294. var exec = uncurryThis(constructorRegExp.exec);
  3295. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  3296. var isConstructorModern = function isConstructor(argument) {
  3297. if (!isCallable(argument)) return false;
  3298. try {
  3299. construct(noop, empty, argument);
  3300. return true;
  3301. } catch (error) {
  3302. return false;
  3303. }
  3304. };
  3305. var isConstructorLegacy = function isConstructor(argument) {
  3306. if (!isCallable(argument)) return false;
  3307. switch (classof(argument)) {
  3308. case 'AsyncFunction':
  3309. case 'GeneratorFunction':
  3310. case 'AsyncGeneratorFunction': return false;
  3311. }
  3312. try {
  3313. // we can't check .prototype since constructors produced by .bind haven't it
  3314. // `Function#toString` throws on some built-it function in some legacy engines
  3315. // (for example, `DOMQuad` and similar in FF41-)
  3316. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  3317. } catch (error) {
  3318. return true;
  3319. }
  3320. };
  3321. isConstructorLegacy.sham = true;
  3322. // `IsConstructor` abstract operation
  3323. // https://tc39.es/ecma262/#sec-isconstructor
  3324. module.exports = !construct || fails(function () {
  3325. var called;
  3326. return isConstructorModern(isConstructorModern.call)
  3327. || !isConstructorModern(Object)
  3328. || !isConstructorModern(function () { called = true; })
  3329. || called;
  3330. }) ? isConstructorLegacy : isConstructorModern;
  3331. },{"../internals/classof":86,"../internals/fails":111,"../internals/function-uncurry-this":117,"../internals/get-built-in":118,"../internals/inspect-source":129,"../internals/is-callable":134}],136:[function(_dereq_,module,exports){
  3332. var fails = _dereq_('../internals/fails');
  3333. var isCallable = _dereq_('../internals/is-callable');
  3334. var replacement = /#|\.prototype\./;
  3335. var isForced = function (feature, detection) {
  3336. var value = data[normalize(feature)];
  3337. return value == POLYFILL ? true
  3338. : value == NATIVE ? false
  3339. : isCallable(detection) ? fails(detection)
  3340. : !!detection;
  3341. };
  3342. var normalize = isForced.normalize = function (string) {
  3343. return String(string).replace(replacement, '.').toLowerCase();
  3344. };
  3345. var data = isForced.data = {};
  3346. var NATIVE = isForced.NATIVE = 'N';
  3347. var POLYFILL = isForced.POLYFILL = 'P';
  3348. module.exports = isForced;
  3349. },{"../internals/fails":111,"../internals/is-callable":134}],137:[function(_dereq_,module,exports){
  3350. var isCallable = _dereq_('../internals/is-callable');
  3351. module.exports = function (it) {
  3352. return typeof it == 'object' ? it !== null : isCallable(it);
  3353. };
  3354. },{"../internals/is-callable":134}],138:[function(_dereq_,module,exports){
  3355. module.exports = true;
  3356. },{}],139:[function(_dereq_,module,exports){
  3357. var isObject = _dereq_('../internals/is-object');
  3358. var classof = _dereq_('../internals/classof-raw');
  3359. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  3360. var MATCH = wellKnownSymbol('match');
  3361. // `IsRegExp` abstract operation
  3362. // https://tc39.es/ecma262/#sec-isregexp
  3363. module.exports = function (it) {
  3364. var isRegExp;
  3365. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
  3366. };
  3367. },{"../internals/classof-raw":85,"../internals/is-object":137,"../internals/well-known-symbol":199}],140:[function(_dereq_,module,exports){
  3368. var global = _dereq_('../internals/global');
  3369. var getBuiltIn = _dereq_('../internals/get-built-in');
  3370. var isCallable = _dereq_('../internals/is-callable');
  3371. var isPrototypeOf = _dereq_('../internals/object-is-prototype-of');
  3372. var USE_SYMBOL_AS_UID = _dereq_('../internals/use-symbol-as-uid');
  3373. var Object = global.Object;
  3374. module.exports = USE_SYMBOL_AS_UID ? function (it) {
  3375. return typeof it == 'symbol';
  3376. } : function (it) {
  3377. var $Symbol = getBuiltIn('Symbol');
  3378. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it));
  3379. };
  3380. },{"../internals/get-built-in":118,"../internals/global":122,"../internals/is-callable":134,"../internals/object-is-prototype-of":161,"../internals/use-symbol-as-uid":196}],141:[function(_dereq_,module,exports){
  3381. var global = _dereq_('../internals/global');
  3382. var bind = _dereq_('../internals/function-bind-context');
  3383. var call = _dereq_('../internals/function-call');
  3384. var anObject = _dereq_('../internals/an-object');
  3385. var tryToString = _dereq_('../internals/try-to-string');
  3386. var isArrayIteratorMethod = _dereq_('../internals/is-array-iterator-method');
  3387. var lengthOfArrayLike = _dereq_('../internals/length-of-array-like');
  3388. var isPrototypeOf = _dereq_('../internals/object-is-prototype-of');
  3389. var getIterator = _dereq_('../internals/get-iterator');
  3390. var getIteratorMethod = _dereq_('../internals/get-iterator-method');
  3391. var iteratorClose = _dereq_('../internals/iterator-close');
  3392. var TypeError = global.TypeError;
  3393. var Result = function (stopped, result) {
  3394. this.stopped = stopped;
  3395. this.result = result;
  3396. };
  3397. var ResultPrototype = Result.prototype;
  3398. module.exports = function (iterable, unboundFunction, options) {
  3399. var that = options && options.that;
  3400. var AS_ENTRIES = !!(options && options.AS_ENTRIES);
  3401. var IS_ITERATOR = !!(options && options.IS_ITERATOR);
  3402. var INTERRUPTED = !!(options && options.INTERRUPTED);
  3403. var fn = bind(unboundFunction, that);
  3404. var iterator, iterFn, index, length, result, next, step;
  3405. var stop = function (condition) {
  3406. if (iterator) iteratorClose(iterator, 'normal', condition);
  3407. return new Result(true, condition);
  3408. };
  3409. var callFn = function (value) {
  3410. if (AS_ENTRIES) {
  3411. anObject(value);
  3412. return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
  3413. } return INTERRUPTED ? fn(value, stop) : fn(value);
  3414. };
  3415. if (IS_ITERATOR) {
  3416. iterator = iterable;
  3417. } else {
  3418. iterFn = getIteratorMethod(iterable);
  3419. if (!iterFn) throw TypeError(tryToString(iterable) + ' is not iterable');
  3420. // optimisation for array iterators
  3421. if (isArrayIteratorMethod(iterFn)) {
  3422. for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
  3423. result = callFn(iterable[index]);
  3424. if (result && isPrototypeOf(ResultPrototype, result)) return result;
  3425. } return new Result(false);
  3426. }
  3427. iterator = getIterator(iterable, iterFn);
  3428. }
  3429. next = iterator.next;
  3430. while (!(step = call(next, iterator)).done) {
  3431. try {
  3432. result = callFn(step.value);
  3433. } catch (error) {
  3434. iteratorClose(iterator, 'throw', error);
  3435. }
  3436. if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
  3437. } return new Result(false);
  3438. };
  3439. },{"../internals/an-object":74,"../internals/function-bind-context":113,"../internals/function-call":115,"../internals/get-iterator":120,"../internals/get-iterator-method":119,"../internals/global":122,"../internals/is-array-iterator-method":132,"../internals/iterator-close":142,"../internals/length-of-array-like":145,"../internals/object-is-prototype-of":161,"../internals/try-to-string":194}],142:[function(_dereq_,module,exports){
  3440. var call = _dereq_('../internals/function-call');
  3441. var anObject = _dereq_('../internals/an-object');
  3442. var getMethod = _dereq_('../internals/get-method');
  3443. module.exports = function (iterator, kind, value) {
  3444. var innerResult, innerError;
  3445. anObject(iterator);
  3446. try {
  3447. innerResult = getMethod(iterator, 'return');
  3448. if (!innerResult) {
  3449. if (kind === 'throw') throw value;
  3450. return value;
  3451. }
  3452. innerResult = call(innerResult, iterator);
  3453. } catch (error) {
  3454. innerError = true;
  3455. innerResult = error;
  3456. }
  3457. if (kind === 'throw') throw value;
  3458. if (innerError) throw innerResult;
  3459. anObject(innerResult);
  3460. return value;
  3461. };
  3462. },{"../internals/an-object":74,"../internals/function-call":115,"../internals/get-method":121}],143:[function(_dereq_,module,exports){
  3463. 'use strict';
  3464. var fails = _dereq_('../internals/fails');
  3465. var isCallable = _dereq_('../internals/is-callable');
  3466. var create = _dereq_('../internals/object-create');
  3467. var getPrototypeOf = _dereq_('../internals/object-get-prototype-of');
  3468. var redefine = _dereq_('../internals/redefine');
  3469. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  3470. var IS_PURE = _dereq_('../internals/is-pure');
  3471. var ITERATOR = wellKnownSymbol('iterator');
  3472. var BUGGY_SAFARI_ITERATORS = false;
  3473. // `%IteratorPrototype%` object
  3474. // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
  3475. var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
  3476. /* eslint-disable es/no-array-prototype-keys -- safe */
  3477. if ([].keys) {
  3478. arrayIterator = [].keys();
  3479. // Safari 8 has buggy iterators w/o `next`
  3480. if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
  3481. else {
  3482. PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
  3483. if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
  3484. }
  3485. }
  3486. var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
  3487. var test = {};
  3488. // FF44- legacy iterators case
  3489. return IteratorPrototype[ITERATOR].call(test) !== test;
  3490. });
  3491. if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
  3492. else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
  3493. // `%IteratorPrototype%[@@iterator]()` method
  3494. // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
  3495. if (!isCallable(IteratorPrototype[ITERATOR])) {
  3496. redefine(IteratorPrototype, ITERATOR, function () {
  3497. return this;
  3498. });
  3499. }
  3500. module.exports = {
  3501. IteratorPrototype: IteratorPrototype,
  3502. BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
  3503. };
  3504. },{"../internals/fails":111,"../internals/is-callable":134,"../internals/is-pure":138,"../internals/object-create":153,"../internals/object-get-prototype-of":160,"../internals/redefine":174,"../internals/well-known-symbol":199}],144:[function(_dereq_,module,exports){
  3505. arguments[4][124][0].apply(exports,arguments)
  3506. },{"dup":124}],145:[function(_dereq_,module,exports){
  3507. var toLength = _dereq_('../internals/to-length');
  3508. // `LengthOfArrayLike` abstract operation
  3509. // https://tc39.es/ecma262/#sec-lengthofarraylike
  3510. module.exports = function (obj) {
  3511. return toLength(obj.length);
  3512. };
  3513. },{"../internals/to-length":188}],146:[function(_dereq_,module,exports){
  3514. var global = _dereq_('../internals/global');
  3515. var bind = _dereq_('../internals/function-bind-context');
  3516. var getOwnPropertyDescriptor = _dereq_('../internals/object-get-own-property-descriptor').f;
  3517. var macrotask = _dereq_('../internals/task').set;
  3518. var IS_IOS = _dereq_('../internals/engine-is-ios');
  3519. var IS_IOS_PEBBLE = _dereq_('../internals/engine-is-ios-pebble');
  3520. var IS_WEBOS_WEBKIT = _dereq_('../internals/engine-is-webos-webkit');
  3521. var IS_NODE = _dereq_('../internals/engine-is-node');
  3522. var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
  3523. var document = global.document;
  3524. var process = global.process;
  3525. var Promise = global.Promise;
  3526. // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
  3527. var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
  3528. var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
  3529. var flush, head, last, notify, toggle, node, promise, then;
  3530. // modern engines have queueMicrotask method
  3531. if (!queueMicrotask) {
  3532. flush = function () {
  3533. var parent, fn;
  3534. if (IS_NODE && (parent = process.domain)) parent.exit();
  3535. while (head) {
  3536. fn = head.fn;
  3537. head = head.next;
  3538. try {
  3539. fn();
  3540. } catch (error) {
  3541. if (head) notify();
  3542. else last = undefined;
  3543. throw error;
  3544. }
  3545. } last = undefined;
  3546. if (parent) parent.enter();
  3547. };
  3548. // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
  3549. // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
  3550. if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
  3551. toggle = true;
  3552. node = document.createTextNode('');
  3553. new MutationObserver(flush).observe(node, { characterData: true });
  3554. notify = function () {
  3555. node.data = toggle = !toggle;
  3556. };
  3557. // environments with maybe non-completely correct, but existent Promise
  3558. } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {
  3559. // Promise.resolve without an argument throws an error in LG WebOS 2
  3560. promise = Promise.resolve(undefined);
  3561. // workaround of WebKit ~ iOS Safari 10.1 bug
  3562. promise.constructor = Promise;
  3563. then = bind(promise.then, promise);
  3564. notify = function () {
  3565. then(flush);
  3566. };
  3567. // Node.js without promises
  3568. } else if (IS_NODE) {
  3569. notify = function () {
  3570. process.nextTick(flush);
  3571. };
  3572. // for other environments - macrotask based on:
  3573. // - setImmediate
  3574. // - MessageChannel
  3575. // - window.postMessag
  3576. // - onreadystatechange
  3577. // - setTimeout
  3578. } else {
  3579. // strange IE + webpack dev server bug - use .bind(global)
  3580. macrotask = bind(macrotask, global);
  3581. notify = function () {
  3582. macrotask(flush);
  3583. };
  3584. }
  3585. }
  3586. module.exports = queueMicrotask || function (fn) {
  3587. var task = { fn: fn, next: undefined };
  3588. if (last) last.next = task;
  3589. if (!head) {
  3590. head = task;
  3591. notify();
  3592. } last = task;
  3593. };
  3594. },{"../internals/engine-is-ios":102,"../internals/engine-is-ios-pebble":101,"../internals/engine-is-node":103,"../internals/engine-is-webos-webkit":104,"../internals/function-bind-context":113,"../internals/global":122,"../internals/object-get-own-property-descriptor":156,"../internals/task":184}],147:[function(_dereq_,module,exports){
  3595. var global = _dereq_('../internals/global');
  3596. module.exports = global.Promise;
  3597. },{"../internals/global":122}],148:[function(_dereq_,module,exports){
  3598. /* eslint-disable es/no-symbol -- required for testing */
  3599. var V8_VERSION = _dereq_('../internals/engine-v8-version');
  3600. var fails = _dereq_('../internals/fails');
  3601. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  3602. module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
  3603. var symbol = Symbol();
  3604. // Chrome 38 Symbol has incorrect toString conversion
  3605. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  3606. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  3607. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  3608. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  3609. });
  3610. },{"../internals/engine-v8-version":106,"../internals/fails":111}],149:[function(_dereq_,module,exports){
  3611. var global = _dereq_('../internals/global');
  3612. var isCallable = _dereq_('../internals/is-callable');
  3613. var inspectSource = _dereq_('../internals/inspect-source');
  3614. var WeakMap = global.WeakMap;
  3615. module.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));
  3616. },{"../internals/global":122,"../internals/inspect-source":129,"../internals/is-callable":134}],150:[function(_dereq_,module,exports){
  3617. 'use strict';
  3618. var aCallable = _dereq_('../internals/a-callable');
  3619. var PromiseCapability = function (C) {
  3620. var resolve, reject;
  3621. this.promise = new C(function ($$resolve, $$reject) {
  3622. if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
  3623. resolve = $$resolve;
  3624. reject = $$reject;
  3625. });
  3626. this.resolve = aCallable(resolve);
  3627. this.reject = aCallable(reject);
  3628. };
  3629. // `NewPromiseCapability` abstract operation
  3630. // https://tc39.es/ecma262/#sec-newpromisecapability
  3631. module.exports.f = function (C) {
  3632. return new PromiseCapability(C);
  3633. };
  3634. },{"../internals/a-callable":69}],151:[function(_dereq_,module,exports){
  3635. var toString = _dereq_('../internals/to-string');
  3636. module.exports = function (argument, $default) {
  3637. return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
  3638. };
  3639. },{"../internals/to-string":193}],152:[function(_dereq_,module,exports){
  3640. var global = _dereq_('../internals/global');
  3641. var isRegExp = _dereq_('../internals/is-regexp');
  3642. var TypeError = global.TypeError;
  3643. module.exports = function (it) {
  3644. if (isRegExp(it)) {
  3645. throw TypeError("The method doesn't accept regular expressions");
  3646. } return it;
  3647. };
  3648. },{"../internals/global":122,"../internals/is-regexp":139}],153:[function(_dereq_,module,exports){
  3649. /* global ActiveXObject -- old IE, WSH */
  3650. var anObject = _dereq_('../internals/an-object');
  3651. var definePropertiesModule = _dereq_('../internals/object-define-properties');
  3652. var enumBugKeys = _dereq_('../internals/enum-bug-keys');
  3653. var hiddenKeys = _dereq_('../internals/hidden-keys');
  3654. var html = _dereq_('../internals/html');
  3655. var documentCreateElement = _dereq_('../internals/document-create-element');
  3656. var sharedKey = _dereq_('../internals/shared-key');
  3657. var GT = '>';
  3658. var LT = '<';
  3659. var PROTOTYPE = 'prototype';
  3660. var SCRIPT = 'script';
  3661. var IE_PROTO = sharedKey('IE_PROTO');
  3662. var EmptyConstructor = function () { /* empty */ };
  3663. var scriptTag = function (content) {
  3664. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  3665. };
  3666. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  3667. var NullProtoObjectViaActiveX = function (activeXDocument) {
  3668. activeXDocument.write(scriptTag(''));
  3669. activeXDocument.close();
  3670. var temp = activeXDocument.parentWindow.Object;
  3671. activeXDocument = null; // avoid memory leak
  3672. return temp;
  3673. };
  3674. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  3675. var NullProtoObjectViaIFrame = function () {
  3676. // Thrash, waste and sodomy: IE GC bug
  3677. var iframe = documentCreateElement('iframe');
  3678. var JS = 'java' + SCRIPT + ':';
  3679. var iframeDocument;
  3680. iframe.style.display = 'none';
  3681. html.appendChild(iframe);
  3682. // https://github.com/zloirock/core-js/issues/475
  3683. iframe.src = String(JS);
  3684. iframeDocument = iframe.contentWindow.document;
  3685. iframeDocument.open();
  3686. iframeDocument.write(scriptTag('document.F=Object'));
  3687. iframeDocument.close();
  3688. return iframeDocument.F;
  3689. };
  3690. // Check for document.domain and active x support
  3691. // No need to use active x approach when document.domain is not set
  3692. // see https://github.com/es-shims/es5-shim/issues/150
  3693. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  3694. // avoid IE GC bug
  3695. var activeXDocument;
  3696. var NullProtoObject = function () {
  3697. try {
  3698. activeXDocument = new ActiveXObject('htmlfile');
  3699. } catch (error) { /* ignore */ }
  3700. NullProtoObject = typeof document != 'undefined'
  3701. ? document.domain && activeXDocument
  3702. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  3703. : NullProtoObjectViaIFrame()
  3704. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  3705. var length = enumBugKeys.length;
  3706. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  3707. return NullProtoObject();
  3708. };
  3709. hiddenKeys[IE_PROTO] = true;
  3710. // `Object.create` method
  3711. // https://tc39.es/ecma262/#sec-object.create
  3712. module.exports = Object.create || function create(O, Properties) {
  3713. var result;
  3714. if (O !== null) {
  3715. EmptyConstructor[PROTOTYPE] = anObject(O);
  3716. result = new EmptyConstructor();
  3717. EmptyConstructor[PROTOTYPE] = null;
  3718. // add "__proto__" for Object.getPrototypeOf polyfill
  3719. result[IE_PROTO] = O;
  3720. } else result = NullProtoObject();
  3721. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  3722. };
  3723. },{"../internals/an-object":74,"../internals/document-create-element":98,"../internals/enum-bug-keys":108,"../internals/hidden-keys":124,"../internals/html":126,"../internals/object-define-properties":154,"../internals/shared-key":179}],154:[function(_dereq_,module,exports){
  3724. var DESCRIPTORS = _dereq_('../internals/descriptors');
  3725. var V8_PROTOTYPE_DEFINE_BUG = _dereq_('../internals/v8-prototype-define-bug');
  3726. var definePropertyModule = _dereq_('../internals/object-define-property');
  3727. var anObject = _dereq_('../internals/an-object');
  3728. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  3729. var objectKeys = _dereq_('../internals/object-keys');
  3730. // `Object.defineProperties` method
  3731. // https://tc39.es/ecma262/#sec-object.defineproperties
  3732. // eslint-disable-next-line es/no-object-defineproperties -- safe
  3733. exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  3734. anObject(O);
  3735. var props = toIndexedObject(Properties);
  3736. var keys = objectKeys(Properties);
  3737. var length = keys.length;
  3738. var index = 0;
  3739. var key;
  3740. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  3741. return O;
  3742. };
  3743. },{"../internals/an-object":74,"../internals/descriptors":97,"../internals/object-define-property":155,"../internals/object-keys":163,"../internals/to-indexed-object":186,"../internals/v8-prototype-define-bug":197}],155:[function(_dereq_,module,exports){
  3744. var global = _dereq_('../internals/global');
  3745. var DESCRIPTORS = _dereq_('../internals/descriptors');
  3746. var IE8_DOM_DEFINE = _dereq_('../internals/ie8-dom-define');
  3747. var V8_PROTOTYPE_DEFINE_BUG = _dereq_('../internals/v8-prototype-define-bug');
  3748. var anObject = _dereq_('../internals/an-object');
  3749. var toPropertyKey = _dereq_('../internals/to-property-key');
  3750. var TypeError = global.TypeError;
  3751. // eslint-disable-next-line es/no-object-defineproperty -- safe
  3752. var $defineProperty = Object.defineProperty;
  3753. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  3754. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  3755. var ENUMERABLE = 'enumerable';
  3756. var CONFIGURABLE = 'configurable';
  3757. var WRITABLE = 'writable';
  3758. // `Object.defineProperty` method
  3759. // https://tc39.es/ecma262/#sec-object.defineproperty
  3760. exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  3761. anObject(O);
  3762. P = toPropertyKey(P);
  3763. anObject(Attributes);
  3764. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  3765. var current = $getOwnPropertyDescriptor(O, P);
  3766. if (current && current[WRITABLE]) {
  3767. O[P] = Attributes.value;
  3768. Attributes = {
  3769. configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
  3770. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  3771. writable: false
  3772. };
  3773. }
  3774. } return $defineProperty(O, P, Attributes);
  3775. } : $defineProperty : function defineProperty(O, P, Attributes) {
  3776. anObject(O);
  3777. P = toPropertyKey(P);
  3778. anObject(Attributes);
  3779. if (IE8_DOM_DEFINE) try {
  3780. return $defineProperty(O, P, Attributes);
  3781. } catch (error) { /* empty */ }
  3782. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
  3783. if ('value' in Attributes) O[P] = Attributes.value;
  3784. return O;
  3785. };
  3786. },{"../internals/an-object":74,"../internals/descriptors":97,"../internals/global":122,"../internals/ie8-dom-define":127,"../internals/to-property-key":191,"../internals/v8-prototype-define-bug":197}],156:[function(_dereq_,module,exports){
  3787. var DESCRIPTORS = _dereq_('../internals/descriptors');
  3788. var call = _dereq_('../internals/function-call');
  3789. var propertyIsEnumerableModule = _dereq_('../internals/object-property-is-enumerable');
  3790. var createPropertyDescriptor = _dereq_('../internals/create-property-descriptor');
  3791. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  3792. var toPropertyKey = _dereq_('../internals/to-property-key');
  3793. var hasOwn = _dereq_('../internals/has-own-property');
  3794. var IE8_DOM_DEFINE = _dereq_('../internals/ie8-dom-define');
  3795. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  3796. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  3797. // `Object.getOwnPropertyDescriptor` method
  3798. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  3799. exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  3800. O = toIndexedObject(O);
  3801. P = toPropertyKey(P);
  3802. if (IE8_DOM_DEFINE) try {
  3803. return $getOwnPropertyDescriptor(O, P);
  3804. } catch (error) { /* empty */ }
  3805. if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  3806. };
  3807. },{"../internals/create-property-descriptor":93,"../internals/descriptors":97,"../internals/function-call":115,"../internals/has-own-property":123,"../internals/ie8-dom-define":127,"../internals/object-property-is-enumerable":164,"../internals/to-indexed-object":186,"../internals/to-property-key":191}],157:[function(_dereq_,module,exports){
  3808. /* eslint-disable es/no-object-getownpropertynames -- safe */
  3809. var classof = _dereq_('../internals/classof-raw');
  3810. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  3811. var $getOwnPropertyNames = _dereq_('../internals/object-get-own-property-names').f;
  3812. var arraySlice = _dereq_('../internals/array-slice-simple');
  3813. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  3814. ? Object.getOwnPropertyNames(window) : [];
  3815. var getWindowNames = function (it) {
  3816. try {
  3817. return $getOwnPropertyNames(it);
  3818. } catch (error) {
  3819. return arraySlice(windowNames);
  3820. }
  3821. };
  3822. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  3823. module.exports.f = function getOwnPropertyNames(it) {
  3824. return windowNames && classof(it) == 'Window'
  3825. ? getWindowNames(it)
  3826. : $getOwnPropertyNames(toIndexedObject(it));
  3827. };
  3828. },{"../internals/array-slice-simple":80,"../internals/classof-raw":85,"../internals/object-get-own-property-names":158,"../internals/to-indexed-object":186}],158:[function(_dereq_,module,exports){
  3829. var internalObjectKeys = _dereq_('../internals/object-keys-internal');
  3830. var enumBugKeys = _dereq_('../internals/enum-bug-keys');
  3831. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  3832. // `Object.getOwnPropertyNames` method
  3833. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  3834. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  3835. exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  3836. return internalObjectKeys(O, hiddenKeys);
  3837. };
  3838. },{"../internals/enum-bug-keys":108,"../internals/object-keys-internal":162}],159:[function(_dereq_,module,exports){
  3839. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  3840. exports.f = Object.getOwnPropertySymbols;
  3841. },{}],160:[function(_dereq_,module,exports){
  3842. var global = _dereq_('../internals/global');
  3843. var hasOwn = _dereq_('../internals/has-own-property');
  3844. var isCallable = _dereq_('../internals/is-callable');
  3845. var toObject = _dereq_('../internals/to-object');
  3846. var sharedKey = _dereq_('../internals/shared-key');
  3847. var CORRECT_PROTOTYPE_GETTER = _dereq_('../internals/correct-prototype-getter');
  3848. var IE_PROTO = sharedKey('IE_PROTO');
  3849. var Object = global.Object;
  3850. var ObjectPrototype = Object.prototype;
  3851. // `Object.getPrototypeOf` method
  3852. // https://tc39.es/ecma262/#sec-object.getprototypeof
  3853. module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
  3854. var object = toObject(O);
  3855. if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  3856. var constructor = object.constructor;
  3857. if (isCallable(constructor) && object instanceof constructor) {
  3858. return constructor.prototype;
  3859. } return object instanceof Object ? ObjectPrototype : null;
  3860. };
  3861. },{"../internals/correct-prototype-getter":90,"../internals/global":122,"../internals/has-own-property":123,"../internals/is-callable":134,"../internals/shared-key":179,"../internals/to-object":189}],161:[function(_dereq_,module,exports){
  3862. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3863. module.exports = uncurryThis({}.isPrototypeOf);
  3864. },{"../internals/function-uncurry-this":117}],162:[function(_dereq_,module,exports){
  3865. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3866. var hasOwn = _dereq_('../internals/has-own-property');
  3867. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  3868. var indexOf = _dereq_('../internals/array-includes').indexOf;
  3869. var hiddenKeys = _dereq_('../internals/hidden-keys');
  3870. var push = uncurryThis([].push);
  3871. module.exports = function (object, names) {
  3872. var O = toIndexedObject(object);
  3873. var i = 0;
  3874. var result = [];
  3875. var key;
  3876. for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
  3877. // Don't enum bug & hidden keys
  3878. while (names.length > i) if (hasOwn(O, key = names[i++])) {
  3879. ~indexOf(result, key) || push(result, key);
  3880. }
  3881. return result;
  3882. };
  3883. },{"../internals/array-includes":76,"../internals/function-uncurry-this":117,"../internals/has-own-property":123,"../internals/hidden-keys":124,"../internals/to-indexed-object":186}],163:[function(_dereq_,module,exports){
  3884. var internalObjectKeys = _dereq_('../internals/object-keys-internal');
  3885. var enumBugKeys = _dereq_('../internals/enum-bug-keys');
  3886. // `Object.keys` method
  3887. // https://tc39.es/ecma262/#sec-object.keys
  3888. // eslint-disable-next-line es/no-object-keys -- safe
  3889. module.exports = Object.keys || function keys(O) {
  3890. return internalObjectKeys(O, enumBugKeys);
  3891. };
  3892. },{"../internals/enum-bug-keys":108,"../internals/object-keys-internal":162}],164:[function(_dereq_,module,exports){
  3893. 'use strict';
  3894. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  3895. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  3896. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  3897. // Nashorn ~ JDK8 bug
  3898. var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  3899. // `Object.prototype.propertyIsEnumerable` method implementation
  3900. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  3901. exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  3902. var descriptor = getOwnPropertyDescriptor(this, V);
  3903. return !!descriptor && descriptor.enumerable;
  3904. } : $propertyIsEnumerable;
  3905. },{}],165:[function(_dereq_,module,exports){
  3906. /* eslint-disable no-proto -- safe */
  3907. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3908. var anObject = _dereq_('../internals/an-object');
  3909. var aPossiblePrototype = _dereq_('../internals/a-possible-prototype');
  3910. // `Object.setPrototypeOf` method
  3911. // https://tc39.es/ecma262/#sec-object.setprototypeof
  3912. // Works with __proto__ only. Old v8 can't work with null proto objects.
  3913. // eslint-disable-next-line es/no-object-setprototypeof -- safe
  3914. module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
  3915. var CORRECT_SETTER = false;
  3916. var test = {};
  3917. var setter;
  3918. try {
  3919. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  3920. setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
  3921. setter(test, []);
  3922. CORRECT_SETTER = test instanceof Array;
  3923. } catch (error) { /* empty */ }
  3924. return function setPrototypeOf(O, proto) {
  3925. anObject(O);
  3926. aPossiblePrototype(proto);
  3927. if (CORRECT_SETTER) setter(O, proto);
  3928. else O.__proto__ = proto;
  3929. return O;
  3930. };
  3931. }() : undefined);
  3932. },{"../internals/a-possible-prototype":71,"../internals/an-object":74,"../internals/function-uncurry-this":117}],166:[function(_dereq_,module,exports){
  3933. 'use strict';
  3934. var TO_STRING_TAG_SUPPORT = _dereq_('../internals/to-string-tag-support');
  3935. var classof = _dereq_('../internals/classof');
  3936. // `Object.prototype.toString` method implementation
  3937. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  3938. module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  3939. return '[object ' + classof(this) + ']';
  3940. };
  3941. },{"../internals/classof":86,"../internals/to-string-tag-support":192}],167:[function(_dereq_,module,exports){
  3942. var global = _dereq_('../internals/global');
  3943. var call = _dereq_('../internals/function-call');
  3944. var isCallable = _dereq_('../internals/is-callable');
  3945. var isObject = _dereq_('../internals/is-object');
  3946. var TypeError = global.TypeError;
  3947. // `OrdinaryToPrimitive` abstract operation
  3948. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  3949. module.exports = function (input, pref) {
  3950. var fn, val;
  3951. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  3952. if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  3953. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  3954. throw TypeError("Can't convert object to primitive value");
  3955. };
  3956. },{"../internals/function-call":115,"../internals/global":122,"../internals/is-callable":134,"../internals/is-object":137}],168:[function(_dereq_,module,exports){
  3957. var getBuiltIn = _dereq_('../internals/get-built-in');
  3958. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  3959. var getOwnPropertyNamesModule = _dereq_('../internals/object-get-own-property-names');
  3960. var getOwnPropertySymbolsModule = _dereq_('../internals/object-get-own-property-symbols');
  3961. var anObject = _dereq_('../internals/an-object');
  3962. var concat = uncurryThis([].concat);
  3963. // all object keys, includes non-enumerable and symbols
  3964. module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  3965. var keys = getOwnPropertyNamesModule.f(anObject(it));
  3966. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  3967. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  3968. };
  3969. },{"../internals/an-object":74,"../internals/function-uncurry-this":117,"../internals/get-built-in":118,"../internals/object-get-own-property-names":158,"../internals/object-get-own-property-symbols":159}],169:[function(_dereq_,module,exports){
  3970. arguments[4][124][0].apply(exports,arguments)
  3971. },{"dup":124}],170:[function(_dereq_,module,exports){
  3972. module.exports = function (exec) {
  3973. try {
  3974. return { error: false, value: exec() };
  3975. } catch (error) {
  3976. return { error: true, value: error };
  3977. }
  3978. };
  3979. },{}],171:[function(_dereq_,module,exports){
  3980. var anObject = _dereq_('../internals/an-object');
  3981. var isObject = _dereq_('../internals/is-object');
  3982. var newPromiseCapability = _dereq_('../internals/new-promise-capability');
  3983. module.exports = function (C, x) {
  3984. anObject(C);
  3985. if (isObject(x) && x.constructor === C) return x;
  3986. var promiseCapability = newPromiseCapability.f(C);
  3987. var resolve = promiseCapability.resolve;
  3988. resolve(x);
  3989. return promiseCapability.promise;
  3990. };
  3991. },{"../internals/an-object":74,"../internals/is-object":137,"../internals/new-promise-capability":150}],172:[function(_dereq_,module,exports){
  3992. var Queue = function () {
  3993. this.head = null;
  3994. this.tail = null;
  3995. };
  3996. Queue.prototype = {
  3997. add: function (item) {
  3998. var entry = { item: item, next: null };
  3999. if (this.head) this.tail.next = entry;
  4000. else this.head = entry;
  4001. this.tail = entry;
  4002. },
  4003. get: function () {
  4004. var entry = this.head;
  4005. if (entry) {
  4006. this.head = entry.next;
  4007. if (this.tail === entry) this.tail = null;
  4008. return entry.item;
  4009. }
  4010. }
  4011. };
  4012. module.exports = Queue;
  4013. },{}],173:[function(_dereq_,module,exports){
  4014. var redefine = _dereq_('../internals/redefine');
  4015. module.exports = function (target, src, options) {
  4016. for (var key in src) {
  4017. if (options && options.unsafe && target[key]) target[key] = src[key];
  4018. else redefine(target, key, src[key], options);
  4019. } return target;
  4020. };
  4021. },{"../internals/redefine":174}],174:[function(_dereq_,module,exports){
  4022. var createNonEnumerableProperty = _dereq_('../internals/create-non-enumerable-property');
  4023. module.exports = function (target, key, value, options) {
  4024. if (options && options.enumerable) target[key] = value;
  4025. else createNonEnumerableProperty(target, key, value);
  4026. };
  4027. },{"../internals/create-non-enumerable-property":92}],175:[function(_dereq_,module,exports){
  4028. var global = _dereq_('../internals/global');
  4029. var TypeError = global.TypeError;
  4030. // `RequireObjectCoercible` abstract operation
  4031. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  4032. module.exports = function (it) {
  4033. if (it == undefined) throw TypeError("Can't call method on " + it);
  4034. return it;
  4035. };
  4036. },{"../internals/global":122}],176:[function(_dereq_,module,exports){
  4037. var global = _dereq_('../internals/global');
  4038. // eslint-disable-next-line es/no-object-defineproperty -- safe
  4039. var defineProperty = Object.defineProperty;
  4040. module.exports = function (key, value) {
  4041. try {
  4042. defineProperty(global, key, { value: value, configurable: true, writable: true });
  4043. } catch (error) {
  4044. global[key] = value;
  4045. } return value;
  4046. };
  4047. },{"../internals/global":122}],177:[function(_dereq_,module,exports){
  4048. 'use strict';
  4049. var getBuiltIn = _dereq_('../internals/get-built-in');
  4050. var definePropertyModule = _dereq_('../internals/object-define-property');
  4051. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  4052. var DESCRIPTORS = _dereq_('../internals/descriptors');
  4053. var SPECIES = wellKnownSymbol('species');
  4054. module.exports = function (CONSTRUCTOR_NAME) {
  4055. var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
  4056. var defineProperty = definePropertyModule.f;
  4057. if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
  4058. defineProperty(Constructor, SPECIES, {
  4059. configurable: true,
  4060. get: function () { return this; }
  4061. });
  4062. }
  4063. };
  4064. },{"../internals/descriptors":97,"../internals/get-built-in":118,"../internals/object-define-property":155,"../internals/well-known-symbol":199}],178:[function(_dereq_,module,exports){
  4065. var TO_STRING_TAG_SUPPORT = _dereq_('../internals/to-string-tag-support');
  4066. var defineProperty = _dereq_('../internals/object-define-property').f;
  4067. var createNonEnumerableProperty = _dereq_('../internals/create-non-enumerable-property');
  4068. var hasOwn = _dereq_('../internals/has-own-property');
  4069. var toString = _dereq_('../internals/object-to-string');
  4070. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  4071. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  4072. module.exports = function (it, TAG, STATIC, SET_METHOD) {
  4073. if (it) {
  4074. var target = STATIC ? it : it.prototype;
  4075. if (!hasOwn(target, TO_STRING_TAG)) {
  4076. defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
  4077. }
  4078. if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {
  4079. createNonEnumerableProperty(target, 'toString', toString);
  4080. }
  4081. }
  4082. };
  4083. },{"../internals/create-non-enumerable-property":92,"../internals/has-own-property":123,"../internals/object-define-property":155,"../internals/object-to-string":166,"../internals/to-string-tag-support":192,"../internals/well-known-symbol":199}],179:[function(_dereq_,module,exports){
  4084. var shared = _dereq_('../internals/shared');
  4085. var uid = _dereq_('../internals/uid');
  4086. var keys = shared('keys');
  4087. module.exports = function (key) {
  4088. return keys[key] || (keys[key] = uid(key));
  4089. };
  4090. },{"../internals/shared":181,"../internals/uid":195}],180:[function(_dereq_,module,exports){
  4091. var global = _dereq_('../internals/global');
  4092. var setGlobal = _dereq_('../internals/set-global');
  4093. var SHARED = '__core-js_shared__';
  4094. var store = global[SHARED] || setGlobal(SHARED, {});
  4095. module.exports = store;
  4096. },{"../internals/global":122,"../internals/set-global":176}],181:[function(_dereq_,module,exports){
  4097. var IS_PURE = _dereq_('../internals/is-pure');
  4098. var store = _dereq_('../internals/shared-store');
  4099. (module.exports = function (key, value) {
  4100. return store[key] || (store[key] = value !== undefined ? value : {});
  4101. })('versions', []).push({
  4102. version: '3.20.3',
  4103. mode: IS_PURE ? 'pure' : 'global',
  4104. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  4105. license: 'https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE',
  4106. source: 'https://github.com/zloirock/core-js'
  4107. });
  4108. },{"../internals/is-pure":138,"../internals/shared-store":180}],182:[function(_dereq_,module,exports){
  4109. var anObject = _dereq_('../internals/an-object');
  4110. var aConstructor = _dereq_('../internals/a-constructor');
  4111. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  4112. var SPECIES = wellKnownSymbol('species');
  4113. // `SpeciesConstructor` abstract operation
  4114. // https://tc39.es/ecma262/#sec-speciesconstructor
  4115. module.exports = function (O, defaultConstructor) {
  4116. var C = anObject(O).constructor;
  4117. var S;
  4118. return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aConstructor(S);
  4119. };
  4120. },{"../internals/a-constructor":70,"../internals/an-object":74,"../internals/well-known-symbol":199}],183:[function(_dereq_,module,exports){
  4121. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  4122. var toIntegerOrInfinity = _dereq_('../internals/to-integer-or-infinity');
  4123. var toString = _dereq_('../internals/to-string');
  4124. var requireObjectCoercible = _dereq_('../internals/require-object-coercible');
  4125. var charAt = uncurryThis(''.charAt);
  4126. var charCodeAt = uncurryThis(''.charCodeAt);
  4127. var stringSlice = uncurryThis(''.slice);
  4128. var createMethod = function (CONVERT_TO_STRING) {
  4129. return function ($this, pos) {
  4130. var S = toString(requireObjectCoercible($this));
  4131. var position = toIntegerOrInfinity(pos);
  4132. var size = S.length;
  4133. var first, second;
  4134. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  4135. first = charCodeAt(S, position);
  4136. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  4137. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  4138. ? CONVERT_TO_STRING
  4139. ? charAt(S, position)
  4140. : first
  4141. : CONVERT_TO_STRING
  4142. ? stringSlice(S, position, position + 2)
  4143. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  4144. };
  4145. };
  4146. module.exports = {
  4147. // `String.prototype.codePointAt` method
  4148. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  4149. codeAt: createMethod(false),
  4150. // `String.prototype.at` method
  4151. // https://github.com/mathiasbynens/String.prototype.at
  4152. charAt: createMethod(true)
  4153. };
  4154. },{"../internals/function-uncurry-this":117,"../internals/require-object-coercible":175,"../internals/to-integer-or-infinity":187,"../internals/to-string":193}],184:[function(_dereq_,module,exports){
  4155. var global = _dereq_('../internals/global');
  4156. var apply = _dereq_('../internals/function-apply');
  4157. var bind = _dereq_('../internals/function-bind-context');
  4158. var isCallable = _dereq_('../internals/is-callable');
  4159. var hasOwn = _dereq_('../internals/has-own-property');
  4160. var fails = _dereq_('../internals/fails');
  4161. var html = _dereq_('../internals/html');
  4162. var arraySlice = _dereq_('../internals/array-slice');
  4163. var createElement = _dereq_('../internals/document-create-element');
  4164. var IS_IOS = _dereq_('../internals/engine-is-ios');
  4165. var IS_NODE = _dereq_('../internals/engine-is-node');
  4166. var set = global.setImmediate;
  4167. var clear = global.clearImmediate;
  4168. var process = global.process;
  4169. var Dispatch = global.Dispatch;
  4170. var Function = global.Function;
  4171. var MessageChannel = global.MessageChannel;
  4172. var String = global.String;
  4173. var counter = 0;
  4174. var queue = {};
  4175. var ONREADYSTATECHANGE = 'onreadystatechange';
  4176. var location, defer, channel, port;
  4177. try {
  4178. // Deno throws a ReferenceError on `location` access without `--location` flag
  4179. location = global.location;
  4180. } catch (error) { /* empty */ }
  4181. var run = function (id) {
  4182. if (hasOwn(queue, id)) {
  4183. var fn = queue[id];
  4184. delete queue[id];
  4185. fn();
  4186. }
  4187. };
  4188. var runner = function (id) {
  4189. return function () {
  4190. run(id);
  4191. };
  4192. };
  4193. var listener = function (event) {
  4194. run(event.data);
  4195. };
  4196. var post = function (id) {
  4197. // old engines have not location.origin
  4198. global.postMessage(String(id), location.protocol + '//' + location.host);
  4199. };
  4200. // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
  4201. if (!set || !clear) {
  4202. set = function setImmediate(fn) {
  4203. var args = arraySlice(arguments, 1);
  4204. queue[++counter] = function () {
  4205. apply(isCallable(fn) ? fn : Function(fn), undefined, args);
  4206. };
  4207. defer(counter);
  4208. return counter;
  4209. };
  4210. clear = function clearImmediate(id) {
  4211. delete queue[id];
  4212. };
  4213. // Node.js 0.8-
  4214. if (IS_NODE) {
  4215. defer = function (id) {
  4216. process.nextTick(runner(id));
  4217. };
  4218. // Sphere (JS game engine) Dispatch API
  4219. } else if (Dispatch && Dispatch.now) {
  4220. defer = function (id) {
  4221. Dispatch.now(runner(id));
  4222. };
  4223. // Browsers with MessageChannel, includes WebWorkers
  4224. // except iOS - https://github.com/zloirock/core-js/issues/624
  4225. } else if (MessageChannel && !IS_IOS) {
  4226. channel = new MessageChannel();
  4227. port = channel.port2;
  4228. channel.port1.onmessage = listener;
  4229. defer = bind(port.postMessage, port);
  4230. // Browsers with postMessage, skip WebWorkers
  4231. // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
  4232. } else if (
  4233. global.addEventListener &&
  4234. isCallable(global.postMessage) &&
  4235. !global.importScripts &&
  4236. location && location.protocol !== 'file:' &&
  4237. !fails(post)
  4238. ) {
  4239. defer = post;
  4240. global.addEventListener('message', listener, false);
  4241. // IE8-
  4242. } else if (ONREADYSTATECHANGE in createElement('script')) {
  4243. defer = function (id) {
  4244. html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
  4245. html.removeChild(this);
  4246. run(id);
  4247. };
  4248. };
  4249. // Rest old browsers
  4250. } else {
  4251. defer = function (id) {
  4252. setTimeout(runner(id), 0);
  4253. };
  4254. }
  4255. }
  4256. module.exports = {
  4257. set: set,
  4258. clear: clear
  4259. };
  4260. },{"../internals/array-slice":81,"../internals/document-create-element":98,"../internals/engine-is-ios":102,"../internals/engine-is-node":103,"../internals/fails":111,"../internals/function-apply":112,"../internals/function-bind-context":113,"../internals/global":122,"../internals/has-own-property":123,"../internals/html":126,"../internals/is-callable":134}],185:[function(_dereq_,module,exports){
  4261. var toIntegerOrInfinity = _dereq_('../internals/to-integer-or-infinity');
  4262. var max = Math.max;
  4263. var min = Math.min;
  4264. // Helper for a popular repeating case of the spec:
  4265. // Let integer be ? ToInteger(index).
  4266. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  4267. module.exports = function (index, length) {
  4268. var integer = toIntegerOrInfinity(index);
  4269. return integer < 0 ? max(integer + length, 0) : min(integer, length);
  4270. };
  4271. },{"../internals/to-integer-or-infinity":187}],186:[function(_dereq_,module,exports){
  4272. // toObject with fallback for non-array-like ES3 strings
  4273. var IndexedObject = _dereq_('../internals/indexed-object');
  4274. var requireObjectCoercible = _dereq_('../internals/require-object-coercible');
  4275. module.exports = function (it) {
  4276. return IndexedObject(requireObjectCoercible(it));
  4277. };
  4278. },{"../internals/indexed-object":128,"../internals/require-object-coercible":175}],187:[function(_dereq_,module,exports){
  4279. var ceil = Math.ceil;
  4280. var floor = Math.floor;
  4281. // `ToIntegerOrInfinity` abstract operation
  4282. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  4283. module.exports = function (argument) {
  4284. var number = +argument;
  4285. // eslint-disable-next-line no-self-compare -- safe
  4286. return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
  4287. };
  4288. },{}],188:[function(_dereq_,module,exports){
  4289. var toIntegerOrInfinity = _dereq_('../internals/to-integer-or-infinity');
  4290. var min = Math.min;
  4291. // `ToLength` abstract operation
  4292. // https://tc39.es/ecma262/#sec-tolength
  4293. module.exports = function (argument) {
  4294. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  4295. };
  4296. },{"../internals/to-integer-or-infinity":187}],189:[function(_dereq_,module,exports){
  4297. var global = _dereq_('../internals/global');
  4298. var requireObjectCoercible = _dereq_('../internals/require-object-coercible');
  4299. var Object = global.Object;
  4300. // `ToObject` abstract operation
  4301. // https://tc39.es/ecma262/#sec-toobject
  4302. module.exports = function (argument) {
  4303. return Object(requireObjectCoercible(argument));
  4304. };
  4305. },{"../internals/global":122,"../internals/require-object-coercible":175}],190:[function(_dereq_,module,exports){
  4306. var global = _dereq_('../internals/global');
  4307. var call = _dereq_('../internals/function-call');
  4308. var isObject = _dereq_('../internals/is-object');
  4309. var isSymbol = _dereq_('../internals/is-symbol');
  4310. var getMethod = _dereq_('../internals/get-method');
  4311. var ordinaryToPrimitive = _dereq_('../internals/ordinary-to-primitive');
  4312. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  4313. var TypeError = global.TypeError;
  4314. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  4315. // `ToPrimitive` abstract operation
  4316. // https://tc39.es/ecma262/#sec-toprimitive
  4317. module.exports = function (input, pref) {
  4318. if (!isObject(input) || isSymbol(input)) return input;
  4319. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  4320. var result;
  4321. if (exoticToPrim) {
  4322. if (pref === undefined) pref = 'default';
  4323. result = call(exoticToPrim, input, pref);
  4324. if (!isObject(result) || isSymbol(result)) return result;
  4325. throw TypeError("Can't convert object to primitive value");
  4326. }
  4327. if (pref === undefined) pref = 'number';
  4328. return ordinaryToPrimitive(input, pref);
  4329. };
  4330. },{"../internals/function-call":115,"../internals/get-method":121,"../internals/global":122,"../internals/is-object":137,"../internals/is-symbol":140,"../internals/ordinary-to-primitive":167,"../internals/well-known-symbol":199}],191:[function(_dereq_,module,exports){
  4331. var toPrimitive = _dereq_('../internals/to-primitive');
  4332. var isSymbol = _dereq_('../internals/is-symbol');
  4333. // `ToPropertyKey` abstract operation
  4334. // https://tc39.es/ecma262/#sec-topropertykey
  4335. module.exports = function (argument) {
  4336. var key = toPrimitive(argument, 'string');
  4337. return isSymbol(key) ? key : key + '';
  4338. };
  4339. },{"../internals/is-symbol":140,"../internals/to-primitive":190}],192:[function(_dereq_,module,exports){
  4340. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  4341. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  4342. var test = {};
  4343. test[TO_STRING_TAG] = 'z';
  4344. module.exports = String(test) === '[object z]';
  4345. },{"../internals/well-known-symbol":199}],193:[function(_dereq_,module,exports){
  4346. var global = _dereq_('../internals/global');
  4347. var classof = _dereq_('../internals/classof');
  4348. var String = global.String;
  4349. module.exports = function (argument) {
  4350. if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
  4351. return String(argument);
  4352. };
  4353. },{"../internals/classof":86,"../internals/global":122}],194:[function(_dereq_,module,exports){
  4354. var global = _dereq_('../internals/global');
  4355. var String = global.String;
  4356. module.exports = function (argument) {
  4357. try {
  4358. return String(argument);
  4359. } catch (error) {
  4360. return 'Object';
  4361. }
  4362. };
  4363. },{"../internals/global":122}],195:[function(_dereq_,module,exports){
  4364. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  4365. var id = 0;
  4366. var postfix = Math.random();
  4367. var toString = uncurryThis(1.0.toString);
  4368. module.exports = function (key) {
  4369. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  4370. };
  4371. },{"../internals/function-uncurry-this":117}],196:[function(_dereq_,module,exports){
  4372. /* eslint-disable es/no-symbol -- required for testing */
  4373. var NATIVE_SYMBOL = _dereq_('../internals/native-symbol');
  4374. module.exports = NATIVE_SYMBOL
  4375. && !Symbol.sham
  4376. && typeof Symbol.iterator == 'symbol';
  4377. },{"../internals/native-symbol":148}],197:[function(_dereq_,module,exports){
  4378. var DESCRIPTORS = _dereq_('../internals/descriptors');
  4379. var fails = _dereq_('../internals/fails');
  4380. // V8 ~ Chrome 36-
  4381. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  4382. module.exports = DESCRIPTORS && fails(function () {
  4383. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  4384. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  4385. value: 42,
  4386. writable: false
  4387. }).prototype != 42;
  4388. });
  4389. },{"../internals/descriptors":97,"../internals/fails":111}],198:[function(_dereq_,module,exports){
  4390. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  4391. exports.f = wellKnownSymbol;
  4392. },{"../internals/well-known-symbol":199}],199:[function(_dereq_,module,exports){
  4393. var global = _dereq_('../internals/global');
  4394. var shared = _dereq_('../internals/shared');
  4395. var hasOwn = _dereq_('../internals/has-own-property');
  4396. var uid = _dereq_('../internals/uid');
  4397. var NATIVE_SYMBOL = _dereq_('../internals/native-symbol');
  4398. var USE_SYMBOL_AS_UID = _dereq_('../internals/use-symbol-as-uid');
  4399. var WellKnownSymbolsStore = shared('wks');
  4400. var Symbol = global.Symbol;
  4401. var symbolFor = Symbol && Symbol['for'];
  4402. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
  4403. module.exports = function (name) {
  4404. if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
  4405. var description = 'Symbol.' + name;
  4406. if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {
  4407. WellKnownSymbolsStore[name] = Symbol[name];
  4408. } else if (USE_SYMBOL_AS_UID && symbolFor) {
  4409. WellKnownSymbolsStore[name] = symbolFor(description);
  4410. } else {
  4411. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  4412. }
  4413. } return WellKnownSymbolsStore[name];
  4414. };
  4415. },{"../internals/global":122,"../internals/has-own-property":123,"../internals/native-symbol":148,"../internals/shared":181,"../internals/uid":195,"../internals/use-symbol-as-uid":196}],200:[function(_dereq_,module,exports){
  4416. 'use strict';
  4417. var $ = _dereq_('../internals/export');
  4418. var global = _dereq_('../internals/global');
  4419. var isPrototypeOf = _dereq_('../internals/object-is-prototype-of');
  4420. var getPrototypeOf = _dereq_('../internals/object-get-prototype-of');
  4421. var setPrototypeOf = _dereq_('../internals/object-set-prototype-of');
  4422. var copyConstructorProperties = _dereq_('../internals/copy-constructor-properties');
  4423. var create = _dereq_('../internals/object-create');
  4424. var createNonEnumerableProperty = _dereq_('../internals/create-non-enumerable-property');
  4425. var createPropertyDescriptor = _dereq_('../internals/create-property-descriptor');
  4426. var clearErrorStack = _dereq_('../internals/clear-error-stack');
  4427. var installErrorCause = _dereq_('../internals/install-error-cause');
  4428. var iterate = _dereq_('../internals/iterate');
  4429. var normalizeStringArgument = _dereq_('../internals/normalize-string-argument');
  4430. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  4431. var ERROR_STACK_INSTALLABLE = _dereq_('../internals/error-stack-installable');
  4432. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  4433. var Error = global.Error;
  4434. var push = [].push;
  4435. var $AggregateError = function AggregateError(errors, message /* , options */) {
  4436. var options = arguments.length > 2 ? arguments[2] : undefined;
  4437. var isInstance = isPrototypeOf(AggregateErrorPrototype, this);
  4438. var that;
  4439. if (setPrototypeOf) {
  4440. that = setPrototypeOf(new Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);
  4441. } else {
  4442. that = isInstance ? this : create(AggregateErrorPrototype);
  4443. createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');
  4444. }
  4445. if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));
  4446. if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(that, 'stack', clearErrorStack(that.stack, 1));
  4447. installErrorCause(that, options);
  4448. var errorsArray = [];
  4449. iterate(errors, push, { that: errorsArray });
  4450. createNonEnumerableProperty(that, 'errors', errorsArray);
  4451. return that;
  4452. };
  4453. if (setPrototypeOf) setPrototypeOf($AggregateError, Error);
  4454. else copyConstructorProperties($AggregateError, Error, { name: true });
  4455. var AggregateErrorPrototype = $AggregateError.prototype = create(Error.prototype, {
  4456. constructor: createPropertyDescriptor(1, $AggregateError),
  4457. message: createPropertyDescriptor(1, ''),
  4458. name: createPropertyDescriptor(1, 'AggregateError')
  4459. });
  4460. // `AggregateError` constructor
  4461. // https://tc39.es/ecma262/#sec-aggregate-error-constructor
  4462. $({ global: true }, {
  4463. AggregateError: $AggregateError
  4464. });
  4465. },{"../internals/clear-error-stack":87,"../internals/copy-constructor-properties":88,"../internals/create-non-enumerable-property":92,"../internals/create-property-descriptor":93,"../internals/error-stack-installable":109,"../internals/export":110,"../internals/global":122,"../internals/install-error-cause":130,"../internals/iterate":141,"../internals/normalize-string-argument":151,"../internals/object-create":153,"../internals/object-get-prototype-of":160,"../internals/object-is-prototype-of":161,"../internals/object-set-prototype-of":165,"../internals/well-known-symbol":199}],201:[function(_dereq_,module,exports){
  4466. 'use strict';
  4467. var $ = _dereq_('../internals/export');
  4468. var $filter = _dereq_('../internals/array-iteration').filter;
  4469. var arrayMethodHasSpeciesSupport = _dereq_('../internals/array-method-has-species-support');
  4470. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  4471. // `Array.prototype.filter` method
  4472. // https://tc39.es/ecma262/#sec-array.prototype.filter
  4473. // with adding support of @@species
  4474. $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  4475. filter: function filter(callbackfn /* , thisArg */) {
  4476. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  4477. }
  4478. });
  4479. },{"../internals/array-iteration":77,"../internals/array-method-has-species-support":78,"../internals/export":110}],202:[function(_dereq_,module,exports){
  4480. 'use strict';
  4481. var $ = _dereq_('../internals/export');
  4482. var forEach = _dereq_('../internals/array-for-each');
  4483. // `Array.prototype.forEach` method
  4484. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  4485. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  4486. $({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
  4487. forEach: forEach
  4488. });
  4489. },{"../internals/array-for-each":75,"../internals/export":110}],203:[function(_dereq_,module,exports){
  4490. 'use strict';
  4491. var $ = _dereq_('../internals/export');
  4492. var $includes = _dereq_('../internals/array-includes').includes;
  4493. var addToUnscopables = _dereq_('../internals/add-to-unscopables');
  4494. // `Array.prototype.includes` method
  4495. // https://tc39.es/ecma262/#sec-array.prototype.includes
  4496. $({ target: 'Array', proto: true }, {
  4497. includes: function includes(el /* , fromIndex = 0 */) {
  4498. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  4499. }
  4500. });
  4501. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  4502. addToUnscopables('includes');
  4503. },{"../internals/add-to-unscopables":72,"../internals/array-includes":76,"../internals/export":110}],204:[function(_dereq_,module,exports){
  4504. 'use strict';
  4505. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  4506. var addToUnscopables = _dereq_('../internals/add-to-unscopables');
  4507. var Iterators = _dereq_('../internals/iterators');
  4508. var InternalStateModule = _dereq_('../internals/internal-state');
  4509. var defineProperty = _dereq_('../internals/object-define-property').f;
  4510. var defineIterator = _dereq_('../internals/define-iterator');
  4511. var IS_PURE = _dereq_('../internals/is-pure');
  4512. var DESCRIPTORS = _dereq_('../internals/descriptors');
  4513. var ARRAY_ITERATOR = 'Array Iterator';
  4514. var setInternalState = InternalStateModule.set;
  4515. var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
  4516. // `Array.prototype.entries` method
  4517. // https://tc39.es/ecma262/#sec-array.prototype.entries
  4518. // `Array.prototype.keys` method
  4519. // https://tc39.es/ecma262/#sec-array.prototype.keys
  4520. // `Array.prototype.values` method
  4521. // https://tc39.es/ecma262/#sec-array.prototype.values
  4522. // `Array.prototype[@@iterator]` method
  4523. // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
  4524. // `CreateArrayIterator` internal method
  4525. // https://tc39.es/ecma262/#sec-createarrayiterator
  4526. module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
  4527. setInternalState(this, {
  4528. type: ARRAY_ITERATOR,
  4529. target: toIndexedObject(iterated), // target
  4530. index: 0, // next index
  4531. kind: kind // kind
  4532. });
  4533. // `%ArrayIteratorPrototype%.next` method
  4534. // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
  4535. }, function () {
  4536. var state = getInternalState(this);
  4537. var target = state.target;
  4538. var kind = state.kind;
  4539. var index = state.index++;
  4540. if (!target || index >= target.length) {
  4541. state.target = undefined;
  4542. return { value: undefined, done: true };
  4543. }
  4544. if (kind == 'keys') return { value: index, done: false };
  4545. if (kind == 'values') return { value: target[index], done: false };
  4546. return { value: [index, target[index]], done: false };
  4547. }, 'values');
  4548. // argumentsList[@@iterator] is %ArrayProto_values%
  4549. // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
  4550. // https://tc39.es/ecma262/#sec-createmappedargumentsobject
  4551. var values = Iterators.Arguments = Iterators.Array;
  4552. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  4553. addToUnscopables('keys');
  4554. addToUnscopables('values');
  4555. addToUnscopables('entries');
  4556. // V8 ~ Chrome 45- bug
  4557. if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
  4558. defineProperty(values, 'name', { value: 'values' });
  4559. } catch (error) { /* empty */ }
  4560. },{"../internals/add-to-unscopables":72,"../internals/define-iterator":95,"../internals/descriptors":97,"../internals/internal-state":131,"../internals/is-pure":138,"../internals/iterators":144,"../internals/object-define-property":155,"../internals/to-indexed-object":186}],205:[function(_dereq_,module,exports){
  4561. var $ = _dereq_('../internals/export');
  4562. var global = _dereq_('../internals/global');
  4563. var getBuiltIn = _dereq_('../internals/get-built-in');
  4564. var apply = _dereq_('../internals/function-apply');
  4565. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  4566. var fails = _dereq_('../internals/fails');
  4567. var Array = global.Array;
  4568. var $stringify = getBuiltIn('JSON', 'stringify');
  4569. var exec = uncurryThis(/./.exec);
  4570. var charAt = uncurryThis(''.charAt);
  4571. var charCodeAt = uncurryThis(''.charCodeAt);
  4572. var replace = uncurryThis(''.replace);
  4573. var numberToString = uncurryThis(1.0.toString);
  4574. var tester = /[\uD800-\uDFFF]/g;
  4575. var low = /^[\uD800-\uDBFF]$/;
  4576. var hi = /^[\uDC00-\uDFFF]$/;
  4577. var fix = function (match, offset, string) {
  4578. var prev = charAt(string, offset - 1);
  4579. var next = charAt(string, offset + 1);
  4580. if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {
  4581. return '\\u' + numberToString(charCodeAt(match, 0), 16);
  4582. } return match;
  4583. };
  4584. var FORCED = fails(function () {
  4585. return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
  4586. || $stringify('\uDEAD') !== '"\\udead"';
  4587. });
  4588. if ($stringify) {
  4589. // `JSON.stringify` method
  4590. // https://tc39.es/ecma262/#sec-json.stringify
  4591. // https://github.com/tc39/proposal-well-formed-stringify
  4592. $({ target: 'JSON', stat: true, forced: FORCED }, {
  4593. // eslint-disable-next-line no-unused-vars -- required for `.length`
  4594. stringify: function stringify(it, replacer, space) {
  4595. for (var i = 0, l = arguments.length, args = Array(l); i < l; i++) args[i] = arguments[i];
  4596. var result = apply($stringify, null, args);
  4597. return typeof result == 'string' ? replace(result, tester, fix) : result;
  4598. }
  4599. });
  4600. }
  4601. },{"../internals/export":110,"../internals/fails":111,"../internals/function-apply":112,"../internals/function-uncurry-this":117,"../internals/get-built-in":118,"../internals/global":122}],206:[function(_dereq_,module,exports){
  4602. var $ = _dereq_('../internals/export');
  4603. var DESCRIPTORS = _dereq_('../internals/descriptors');
  4604. var defineProperties = _dereq_('../internals/object-define-properties').f;
  4605. // `Object.defineProperties` method
  4606. // https://tc39.es/ecma262/#sec-object.defineproperties
  4607. // eslint-disable-next-line es/no-object-defineproperties -- safe
  4608. $({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS }, {
  4609. defineProperties: defineProperties
  4610. });
  4611. },{"../internals/descriptors":97,"../internals/export":110,"../internals/object-define-properties":154}],207:[function(_dereq_,module,exports){
  4612. var $ = _dereq_('../internals/export');
  4613. var DESCRIPTORS = _dereq_('../internals/descriptors');
  4614. var defineProperty = _dereq_('../internals/object-define-property').f;
  4615. // `Object.defineProperty` method
  4616. // https://tc39.es/ecma262/#sec-object.defineproperty
  4617. // eslint-disable-next-line es/no-object-defineproperty -- safe
  4618. $({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, {
  4619. defineProperty: defineProperty
  4620. });
  4621. },{"../internals/descriptors":97,"../internals/export":110,"../internals/object-define-property":155}],208:[function(_dereq_,module,exports){
  4622. var $ = _dereq_('../internals/export');
  4623. var fails = _dereq_('../internals/fails');
  4624. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  4625. var nativeGetOwnPropertyDescriptor = _dereq_('../internals/object-get-own-property-descriptor').f;
  4626. var DESCRIPTORS = _dereq_('../internals/descriptors');
  4627. var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
  4628. var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
  4629. // `Object.getOwnPropertyDescriptor` method
  4630. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  4631. $({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
  4632. getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
  4633. return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
  4634. }
  4635. });
  4636. },{"../internals/descriptors":97,"../internals/export":110,"../internals/fails":111,"../internals/object-get-own-property-descriptor":156,"../internals/to-indexed-object":186}],209:[function(_dereq_,module,exports){
  4637. var $ = _dereq_('../internals/export');
  4638. var DESCRIPTORS = _dereq_('../internals/descriptors');
  4639. var ownKeys = _dereq_('../internals/own-keys');
  4640. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  4641. var getOwnPropertyDescriptorModule = _dereq_('../internals/object-get-own-property-descriptor');
  4642. var createProperty = _dereq_('../internals/create-property');
  4643. // `Object.getOwnPropertyDescriptors` method
  4644. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
  4645. $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
  4646. getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
  4647. var O = toIndexedObject(object);
  4648. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  4649. var keys = ownKeys(O);
  4650. var result = {};
  4651. var index = 0;
  4652. var key, descriptor;
  4653. while (keys.length > index) {
  4654. descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
  4655. if (descriptor !== undefined) createProperty(result, key, descriptor);
  4656. }
  4657. return result;
  4658. }
  4659. });
  4660. },{"../internals/create-property":94,"../internals/descriptors":97,"../internals/export":110,"../internals/object-get-own-property-descriptor":156,"../internals/own-keys":168,"../internals/to-indexed-object":186}],210:[function(_dereq_,module,exports){
  4661. var $ = _dereq_('../internals/export');
  4662. var toObject = _dereq_('../internals/to-object');
  4663. var nativeKeys = _dereq_('../internals/object-keys');
  4664. var fails = _dereq_('../internals/fails');
  4665. var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
  4666. // `Object.keys` method
  4667. // https://tc39.es/ecma262/#sec-object.keys
  4668. $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
  4669. keys: function keys(it) {
  4670. return nativeKeys(toObject(it));
  4671. }
  4672. });
  4673. },{"../internals/export":110,"../internals/fails":111,"../internals/object-keys":163,"../internals/to-object":189}],211:[function(_dereq_,module,exports){
  4674. // empty
  4675. },{}],212:[function(_dereq_,module,exports){
  4676. 'use strict';
  4677. var $ = _dereq_('../internals/export');
  4678. var call = _dereq_('../internals/function-call');
  4679. var aCallable = _dereq_('../internals/a-callable');
  4680. var newPromiseCapabilityModule = _dereq_('../internals/new-promise-capability');
  4681. var perform = _dereq_('../internals/perform');
  4682. var iterate = _dereq_('../internals/iterate');
  4683. // `Promise.allSettled` method
  4684. // https://tc39.es/ecma262/#sec-promise.allsettled
  4685. $({ target: 'Promise', stat: true }, {
  4686. allSettled: function allSettled(iterable) {
  4687. var C = this;
  4688. var capability = newPromiseCapabilityModule.f(C);
  4689. var resolve = capability.resolve;
  4690. var reject = capability.reject;
  4691. var result = perform(function () {
  4692. var promiseResolve = aCallable(C.resolve);
  4693. var values = [];
  4694. var counter = 0;
  4695. var remaining = 1;
  4696. iterate(iterable, function (promise) {
  4697. var index = counter++;
  4698. var alreadyCalled = false;
  4699. remaining++;
  4700. call(promiseResolve, C, promise).then(function (value) {
  4701. if (alreadyCalled) return;
  4702. alreadyCalled = true;
  4703. values[index] = { status: 'fulfilled', value: value };
  4704. --remaining || resolve(values);
  4705. }, function (error) {
  4706. if (alreadyCalled) return;
  4707. alreadyCalled = true;
  4708. values[index] = { status: 'rejected', reason: error };
  4709. --remaining || resolve(values);
  4710. });
  4711. });
  4712. --remaining || resolve(values);
  4713. });
  4714. if (result.error) reject(result.value);
  4715. return capability.promise;
  4716. }
  4717. });
  4718. },{"../internals/a-callable":69,"../internals/export":110,"../internals/function-call":115,"../internals/iterate":141,"../internals/new-promise-capability":150,"../internals/perform":170}],213:[function(_dereq_,module,exports){
  4719. 'use strict';
  4720. var $ = _dereq_('../internals/export');
  4721. var aCallable = _dereq_('../internals/a-callable');
  4722. var getBuiltIn = _dereq_('../internals/get-built-in');
  4723. var call = _dereq_('../internals/function-call');
  4724. var newPromiseCapabilityModule = _dereq_('../internals/new-promise-capability');
  4725. var perform = _dereq_('../internals/perform');
  4726. var iterate = _dereq_('../internals/iterate');
  4727. var PROMISE_ANY_ERROR = 'No one promise resolved';
  4728. // `Promise.any` method
  4729. // https://tc39.es/ecma262/#sec-promise.any
  4730. $({ target: 'Promise', stat: true }, {
  4731. any: function any(iterable) {
  4732. var C = this;
  4733. var AggregateError = getBuiltIn('AggregateError');
  4734. var capability = newPromiseCapabilityModule.f(C);
  4735. var resolve = capability.resolve;
  4736. var reject = capability.reject;
  4737. var result = perform(function () {
  4738. var promiseResolve = aCallable(C.resolve);
  4739. var errors = [];
  4740. var counter = 0;
  4741. var remaining = 1;
  4742. var alreadyResolved = false;
  4743. iterate(iterable, function (promise) {
  4744. var index = counter++;
  4745. var alreadyRejected = false;
  4746. remaining++;
  4747. call(promiseResolve, C, promise).then(function (value) {
  4748. if (alreadyRejected || alreadyResolved) return;
  4749. alreadyResolved = true;
  4750. resolve(value);
  4751. }, function (error) {
  4752. if (alreadyRejected || alreadyResolved) return;
  4753. alreadyRejected = true;
  4754. errors[index] = error;
  4755. --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));
  4756. });
  4757. });
  4758. --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));
  4759. });
  4760. if (result.error) reject(result.value);
  4761. return capability.promise;
  4762. }
  4763. });
  4764. },{"../internals/a-callable":69,"../internals/export":110,"../internals/function-call":115,"../internals/get-built-in":118,"../internals/iterate":141,"../internals/new-promise-capability":150,"../internals/perform":170}],214:[function(_dereq_,module,exports){
  4765. 'use strict';
  4766. var $ = _dereq_('../internals/export');
  4767. var IS_PURE = _dereq_('../internals/is-pure');
  4768. var NativePromise = _dereq_('../internals/native-promise-constructor');
  4769. var fails = _dereq_('../internals/fails');
  4770. var getBuiltIn = _dereq_('../internals/get-built-in');
  4771. var isCallable = _dereq_('../internals/is-callable');
  4772. var speciesConstructor = _dereq_('../internals/species-constructor');
  4773. var promiseResolve = _dereq_('../internals/promise-resolve');
  4774. var redefine = _dereq_('../internals/redefine');
  4775. // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
  4776. var NON_GENERIC = !!NativePromise && fails(function () {
  4777. // eslint-disable-next-line unicorn/no-thenable -- required for testing
  4778. NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
  4779. });
  4780. // `Promise.prototype.finally` method
  4781. // https://tc39.es/ecma262/#sec-promise.prototype.finally
  4782. $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
  4783. 'finally': function (onFinally) {
  4784. var C = speciesConstructor(this, getBuiltIn('Promise'));
  4785. var isFunction = isCallable(onFinally);
  4786. return this.then(
  4787. isFunction ? function (x) {
  4788. return promiseResolve(C, onFinally()).then(function () { return x; });
  4789. } : onFinally,
  4790. isFunction ? function (e) {
  4791. return promiseResolve(C, onFinally()).then(function () { throw e; });
  4792. } : onFinally
  4793. );
  4794. }
  4795. });
  4796. // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
  4797. if (!IS_PURE && isCallable(NativePromise)) {
  4798. var method = getBuiltIn('Promise').prototype['finally'];
  4799. if (NativePromise.prototype['finally'] !== method) {
  4800. redefine(NativePromise.prototype, 'finally', method, { unsafe: true });
  4801. }
  4802. }
  4803. },{"../internals/export":110,"../internals/fails":111,"../internals/get-built-in":118,"../internals/is-callable":134,"../internals/is-pure":138,"../internals/native-promise-constructor":147,"../internals/promise-resolve":171,"../internals/redefine":174,"../internals/species-constructor":182}],215:[function(_dereq_,module,exports){
  4804. 'use strict';
  4805. var $ = _dereq_('../internals/export');
  4806. var IS_PURE = _dereq_('../internals/is-pure');
  4807. var global = _dereq_('../internals/global');
  4808. var getBuiltIn = _dereq_('../internals/get-built-in');
  4809. var call = _dereq_('../internals/function-call');
  4810. var NativePromise = _dereq_('../internals/native-promise-constructor');
  4811. var redefine = _dereq_('../internals/redefine');
  4812. var redefineAll = _dereq_('../internals/redefine-all');
  4813. var setPrototypeOf = _dereq_('../internals/object-set-prototype-of');
  4814. var setToStringTag = _dereq_('../internals/set-to-string-tag');
  4815. var setSpecies = _dereq_('../internals/set-species');
  4816. var aCallable = _dereq_('../internals/a-callable');
  4817. var isCallable = _dereq_('../internals/is-callable');
  4818. var isObject = _dereq_('../internals/is-object');
  4819. var anInstance = _dereq_('../internals/an-instance');
  4820. var inspectSource = _dereq_('../internals/inspect-source');
  4821. var iterate = _dereq_('../internals/iterate');
  4822. var checkCorrectnessOfIteration = _dereq_('../internals/check-correctness-of-iteration');
  4823. var speciesConstructor = _dereq_('../internals/species-constructor');
  4824. var task = _dereq_('../internals/task').set;
  4825. var microtask = _dereq_('../internals/microtask');
  4826. var promiseResolve = _dereq_('../internals/promise-resolve');
  4827. var hostReportErrors = _dereq_('../internals/host-report-errors');
  4828. var newPromiseCapabilityModule = _dereq_('../internals/new-promise-capability');
  4829. var perform = _dereq_('../internals/perform');
  4830. var Queue = _dereq_('../internals/queue');
  4831. var InternalStateModule = _dereq_('../internals/internal-state');
  4832. var isForced = _dereq_('../internals/is-forced');
  4833. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  4834. var IS_BROWSER = _dereq_('../internals/engine-is-browser');
  4835. var IS_NODE = _dereq_('../internals/engine-is-node');
  4836. var V8_VERSION = _dereq_('../internals/engine-v8-version');
  4837. var SPECIES = wellKnownSymbol('species');
  4838. var PROMISE = 'Promise';
  4839. var getInternalState = InternalStateModule.getterFor(PROMISE);
  4840. var setInternalState = InternalStateModule.set;
  4841. var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
  4842. var NativePromisePrototype = NativePromise && NativePromise.prototype;
  4843. var PromiseConstructor = NativePromise;
  4844. var PromisePrototype = NativePromisePrototype;
  4845. var TypeError = global.TypeError;
  4846. var document = global.document;
  4847. var process = global.process;
  4848. var newPromiseCapability = newPromiseCapabilityModule.f;
  4849. var newGenericPromiseCapability = newPromiseCapability;
  4850. var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
  4851. var NATIVE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);
  4852. var UNHANDLED_REJECTION = 'unhandledrejection';
  4853. var REJECTION_HANDLED = 'rejectionhandled';
  4854. var PENDING = 0;
  4855. var FULFILLED = 1;
  4856. var REJECTED = 2;
  4857. var HANDLED = 1;
  4858. var UNHANDLED = 2;
  4859. var SUBCLASSING = false;
  4860. var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
  4861. var FORCED = isForced(PROMISE, function () {
  4862. var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
  4863. var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
  4864. // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
  4865. // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
  4866. // We can't detect it synchronously, so just check versions
  4867. if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
  4868. // We need Promise#finally in the pure version for preventing prototype pollution
  4869. if (IS_PURE && !PromisePrototype['finally']) return true;
  4870. // We can't use @@species feature detection in V8 since it causes
  4871. // deoptimization and performance degradation
  4872. // https://github.com/zloirock/core-js/issues/679
  4873. if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
  4874. // Detect correctness of subclassing with @@species support
  4875. var promise = new PromiseConstructor(function (resolve) { resolve(1); });
  4876. var FakePromise = function (exec) {
  4877. exec(function () { /* empty */ }, function () { /* empty */ });
  4878. };
  4879. var constructor = promise.constructor = {};
  4880. constructor[SPECIES] = FakePromise;
  4881. SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
  4882. if (!SUBCLASSING) return true;
  4883. // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
  4884. return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
  4885. });
  4886. var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
  4887. PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
  4888. });
  4889. // helpers
  4890. var isThenable = function (it) {
  4891. var then;
  4892. return isObject(it) && isCallable(then = it.then) ? then : false;
  4893. };
  4894. var callReaction = function (reaction, state) {
  4895. var value = state.value;
  4896. var ok = state.state == FULFILLED;
  4897. var handler = ok ? reaction.ok : reaction.fail;
  4898. var resolve = reaction.resolve;
  4899. var reject = reaction.reject;
  4900. var domain = reaction.domain;
  4901. var result, then, exited;
  4902. try {
  4903. if (handler) {
  4904. if (!ok) {
  4905. if (state.rejection === UNHANDLED) onHandleUnhandled(state);
  4906. state.rejection = HANDLED;
  4907. }
  4908. if (handler === true) result = value;
  4909. else {
  4910. if (domain) domain.enter();
  4911. result = handler(value); // can throw
  4912. if (domain) {
  4913. domain.exit();
  4914. exited = true;
  4915. }
  4916. }
  4917. if (result === reaction.promise) {
  4918. reject(TypeError('Promise-chain cycle'));
  4919. } else if (then = isThenable(result)) {
  4920. call(then, result, resolve, reject);
  4921. } else resolve(result);
  4922. } else reject(value);
  4923. } catch (error) {
  4924. if (domain && !exited) domain.exit();
  4925. reject(error);
  4926. }
  4927. };
  4928. var notify = function (state, isReject) {
  4929. if (state.notified) return;
  4930. state.notified = true;
  4931. microtask(function () {
  4932. var reactions = state.reactions;
  4933. var reaction;
  4934. while (reaction = reactions.get()) {
  4935. callReaction(reaction, state);
  4936. }
  4937. state.notified = false;
  4938. if (isReject && !state.rejection) onUnhandled(state);
  4939. });
  4940. };
  4941. var dispatchEvent = function (name, promise, reason) {
  4942. var event, handler;
  4943. if (DISPATCH_EVENT) {
  4944. event = document.createEvent('Event');
  4945. event.promise = promise;
  4946. event.reason = reason;
  4947. event.initEvent(name, false, true);
  4948. global.dispatchEvent(event);
  4949. } else event = { promise: promise, reason: reason };
  4950. if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
  4951. else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
  4952. };
  4953. var onUnhandled = function (state) {
  4954. call(task, global, function () {
  4955. var promise = state.facade;
  4956. var value = state.value;
  4957. var IS_UNHANDLED = isUnhandled(state);
  4958. var result;
  4959. if (IS_UNHANDLED) {
  4960. result = perform(function () {
  4961. if (IS_NODE) {
  4962. process.emit('unhandledRejection', value, promise);
  4963. } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
  4964. });
  4965. // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
  4966. state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
  4967. if (result.error) throw result.value;
  4968. }
  4969. });
  4970. };
  4971. var isUnhandled = function (state) {
  4972. return state.rejection !== HANDLED && !state.parent;
  4973. };
  4974. var onHandleUnhandled = function (state) {
  4975. call(task, global, function () {
  4976. var promise = state.facade;
  4977. if (IS_NODE) {
  4978. process.emit('rejectionHandled', promise);
  4979. } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
  4980. });
  4981. };
  4982. var bind = function (fn, state, unwrap) {
  4983. return function (value) {
  4984. fn(state, value, unwrap);
  4985. };
  4986. };
  4987. var internalReject = function (state, value, unwrap) {
  4988. if (state.done) return;
  4989. state.done = true;
  4990. if (unwrap) state = unwrap;
  4991. state.value = value;
  4992. state.state = REJECTED;
  4993. notify(state, true);
  4994. };
  4995. var internalResolve = function (state, value, unwrap) {
  4996. if (state.done) return;
  4997. state.done = true;
  4998. if (unwrap) state = unwrap;
  4999. try {
  5000. if (state.facade === value) throw TypeError("Promise can't be resolved itself");
  5001. var then = isThenable(value);
  5002. if (then) {
  5003. microtask(function () {
  5004. var wrapper = { done: false };
  5005. try {
  5006. call(then, value,
  5007. bind(internalResolve, wrapper, state),
  5008. bind(internalReject, wrapper, state)
  5009. );
  5010. } catch (error) {
  5011. internalReject(wrapper, error, state);
  5012. }
  5013. });
  5014. } else {
  5015. state.value = value;
  5016. state.state = FULFILLED;
  5017. notify(state, false);
  5018. }
  5019. } catch (error) {
  5020. internalReject({ done: false }, error, state);
  5021. }
  5022. };
  5023. // constructor polyfill
  5024. if (FORCED) {
  5025. // 25.4.3.1 Promise(executor)
  5026. PromiseConstructor = function Promise(executor) {
  5027. anInstance(this, PromisePrototype);
  5028. aCallable(executor);
  5029. call(Internal, this);
  5030. var state = getInternalState(this);
  5031. try {
  5032. executor(bind(internalResolve, state), bind(internalReject, state));
  5033. } catch (error) {
  5034. internalReject(state, error);
  5035. }
  5036. };
  5037. PromisePrototype = PromiseConstructor.prototype;
  5038. // eslint-disable-next-line no-unused-vars -- required for `.length`
  5039. Internal = function Promise(executor) {
  5040. setInternalState(this, {
  5041. type: PROMISE,
  5042. done: false,
  5043. notified: false,
  5044. parent: false,
  5045. reactions: new Queue(),
  5046. rejection: false,
  5047. state: PENDING,
  5048. value: undefined
  5049. });
  5050. };
  5051. Internal.prototype = redefineAll(PromisePrototype, {
  5052. // `Promise.prototype.then` method
  5053. // https://tc39.es/ecma262/#sec-promise.prototype.then
  5054. // eslint-disable-next-line unicorn/no-thenable -- safe
  5055. then: function then(onFulfilled, onRejected) {
  5056. var state = getInternalPromiseState(this);
  5057. var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
  5058. state.parent = true;
  5059. reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
  5060. reaction.fail = isCallable(onRejected) && onRejected;
  5061. reaction.domain = IS_NODE ? process.domain : undefined;
  5062. if (state.state == PENDING) state.reactions.add(reaction);
  5063. else microtask(function () {
  5064. callReaction(reaction, state);
  5065. });
  5066. return reaction.promise;
  5067. },
  5068. // `Promise.prototype.catch` method
  5069. // https://tc39.es/ecma262/#sec-promise.prototype.catch
  5070. 'catch': function (onRejected) {
  5071. return this.then(undefined, onRejected);
  5072. }
  5073. });
  5074. OwnPromiseCapability = function () {
  5075. var promise = new Internal();
  5076. var state = getInternalState(promise);
  5077. this.promise = promise;
  5078. this.resolve = bind(internalResolve, state);
  5079. this.reject = bind(internalReject, state);
  5080. };
  5081. newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
  5082. return C === PromiseConstructor || C === PromiseWrapper
  5083. ? new OwnPromiseCapability(C)
  5084. : newGenericPromiseCapability(C);
  5085. };
  5086. if (!IS_PURE && isCallable(NativePromise) && NativePromisePrototype !== Object.prototype) {
  5087. nativeThen = NativePromisePrototype.then;
  5088. if (!SUBCLASSING) {
  5089. // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
  5090. redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
  5091. var that = this;
  5092. return new PromiseConstructor(function (resolve, reject) {
  5093. call(nativeThen, that, resolve, reject);
  5094. }).then(onFulfilled, onRejected);
  5095. // https://github.com/zloirock/core-js/issues/640
  5096. }, { unsafe: true });
  5097. // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
  5098. redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
  5099. }
  5100. // make `.constructor === Promise` work for native promise-based APIs
  5101. try {
  5102. delete NativePromisePrototype.constructor;
  5103. } catch (error) { /* empty */ }
  5104. // make `instanceof Promise` work for native promise-based APIs
  5105. if (setPrototypeOf) {
  5106. setPrototypeOf(NativePromisePrototype, PromisePrototype);
  5107. }
  5108. }
  5109. }
  5110. $({ global: true, wrap: true, forced: FORCED }, {
  5111. Promise: PromiseConstructor
  5112. });
  5113. setToStringTag(PromiseConstructor, PROMISE, false, true);
  5114. setSpecies(PROMISE);
  5115. PromiseWrapper = getBuiltIn(PROMISE);
  5116. // statics
  5117. $({ target: PROMISE, stat: true, forced: FORCED }, {
  5118. // `Promise.reject` method
  5119. // https://tc39.es/ecma262/#sec-promise.reject
  5120. reject: function reject(r) {
  5121. var capability = newPromiseCapability(this);
  5122. call(capability.reject, undefined, r);
  5123. return capability.promise;
  5124. }
  5125. });
  5126. $({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
  5127. // `Promise.resolve` method
  5128. // https://tc39.es/ecma262/#sec-promise.resolve
  5129. resolve: function resolve(x) {
  5130. return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
  5131. }
  5132. });
  5133. $({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
  5134. // `Promise.all` method
  5135. // https://tc39.es/ecma262/#sec-promise.all
  5136. all: function all(iterable) {
  5137. var C = this;
  5138. var capability = newPromiseCapability(C);
  5139. var resolve = capability.resolve;
  5140. var reject = capability.reject;
  5141. var result = perform(function () {
  5142. var $promiseResolve = aCallable(C.resolve);
  5143. var values = [];
  5144. var counter = 0;
  5145. var remaining = 1;
  5146. iterate(iterable, function (promise) {
  5147. var index = counter++;
  5148. var alreadyCalled = false;
  5149. remaining++;
  5150. call($promiseResolve, C, promise).then(function (value) {
  5151. if (alreadyCalled) return;
  5152. alreadyCalled = true;
  5153. values[index] = value;
  5154. --remaining || resolve(values);
  5155. }, reject);
  5156. });
  5157. --remaining || resolve(values);
  5158. });
  5159. if (result.error) reject(result.value);
  5160. return capability.promise;
  5161. },
  5162. // `Promise.race` method
  5163. // https://tc39.es/ecma262/#sec-promise.race
  5164. race: function race(iterable) {
  5165. var C = this;
  5166. var capability = newPromiseCapability(C);
  5167. var reject = capability.reject;
  5168. var result = perform(function () {
  5169. var $promiseResolve = aCallable(C.resolve);
  5170. iterate(iterable, function (promise) {
  5171. call($promiseResolve, C, promise).then(capability.resolve, reject);
  5172. });
  5173. });
  5174. if (result.error) reject(result.value);
  5175. return capability.promise;
  5176. }
  5177. });
  5178. },{"../internals/a-callable":69,"../internals/an-instance":73,"../internals/check-correctness-of-iteration":84,"../internals/engine-is-browser":100,"../internals/engine-is-node":103,"../internals/engine-v8-version":106,"../internals/export":110,"../internals/function-call":115,"../internals/get-built-in":118,"../internals/global":122,"../internals/host-report-errors":125,"../internals/inspect-source":129,"../internals/internal-state":131,"../internals/is-callable":134,"../internals/is-forced":136,"../internals/is-object":137,"../internals/is-pure":138,"../internals/iterate":141,"../internals/microtask":146,"../internals/native-promise-constructor":147,"../internals/new-promise-capability":150,"../internals/object-set-prototype-of":165,"../internals/perform":170,"../internals/promise-resolve":171,"../internals/queue":172,"../internals/redefine":174,"../internals/redefine-all":173,"../internals/set-species":177,"../internals/set-to-string-tag":178,"../internals/species-constructor":182,"../internals/task":184,"../internals/well-known-symbol":199}],216:[function(_dereq_,module,exports){
  5179. 'use strict';
  5180. var $ = _dereq_('../internals/export');
  5181. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  5182. var notARegExp = _dereq_('../internals/not-a-regexp');
  5183. var requireObjectCoercible = _dereq_('../internals/require-object-coercible');
  5184. var toString = _dereq_('../internals/to-string');
  5185. var correctIsRegExpLogic = _dereq_('../internals/correct-is-regexp-logic');
  5186. var stringIndexOf = uncurryThis(''.indexOf);
  5187. // `String.prototype.includes` method
  5188. // https://tc39.es/ecma262/#sec-string.prototype.includes
  5189. $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  5190. includes: function includes(searchString /* , position = 0 */) {
  5191. return !!~stringIndexOf(
  5192. toString(requireObjectCoercible(this)),
  5193. toString(notARegExp(searchString)),
  5194. arguments.length > 1 ? arguments[1] : undefined
  5195. );
  5196. }
  5197. });
  5198. },{"../internals/correct-is-regexp-logic":89,"../internals/export":110,"../internals/function-uncurry-this":117,"../internals/not-a-regexp":152,"../internals/require-object-coercible":175,"../internals/to-string":193}],217:[function(_dereq_,module,exports){
  5199. 'use strict';
  5200. var charAt = _dereq_('../internals/string-multibyte').charAt;
  5201. var toString = _dereq_('../internals/to-string');
  5202. var InternalStateModule = _dereq_('../internals/internal-state');
  5203. var defineIterator = _dereq_('../internals/define-iterator');
  5204. var STRING_ITERATOR = 'String Iterator';
  5205. var setInternalState = InternalStateModule.set;
  5206. var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
  5207. // `String.prototype[@@iterator]` method
  5208. // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
  5209. defineIterator(String, 'String', function (iterated) {
  5210. setInternalState(this, {
  5211. type: STRING_ITERATOR,
  5212. string: toString(iterated),
  5213. index: 0
  5214. });
  5215. // `%StringIteratorPrototype%.next` method
  5216. // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
  5217. }, function next() {
  5218. var state = getInternalState(this);
  5219. var string = state.string;
  5220. var index = state.index;
  5221. var point;
  5222. if (index >= string.length) return { value: undefined, done: true };
  5223. point = charAt(string, index);
  5224. state.index += point.length;
  5225. return { value: point, done: false };
  5226. });
  5227. },{"../internals/define-iterator":95,"../internals/internal-state":131,"../internals/string-multibyte":183,"../internals/to-string":193}],218:[function(_dereq_,module,exports){
  5228. 'use strict';
  5229. var $ = _dereq_('../internals/export');
  5230. var global = _dereq_('../internals/global');
  5231. var getBuiltIn = _dereq_('../internals/get-built-in');
  5232. var apply = _dereq_('../internals/function-apply');
  5233. var call = _dereq_('../internals/function-call');
  5234. var uncurryThis = _dereq_('../internals/function-uncurry-this');
  5235. var IS_PURE = _dereq_('../internals/is-pure');
  5236. var DESCRIPTORS = _dereq_('../internals/descriptors');
  5237. var NATIVE_SYMBOL = _dereq_('../internals/native-symbol');
  5238. var fails = _dereq_('../internals/fails');
  5239. var hasOwn = _dereq_('../internals/has-own-property');
  5240. var isArray = _dereq_('../internals/is-array');
  5241. var isCallable = _dereq_('../internals/is-callable');
  5242. var isObject = _dereq_('../internals/is-object');
  5243. var isPrototypeOf = _dereq_('../internals/object-is-prototype-of');
  5244. var isSymbol = _dereq_('../internals/is-symbol');
  5245. var anObject = _dereq_('../internals/an-object');
  5246. var toObject = _dereq_('../internals/to-object');
  5247. var toIndexedObject = _dereq_('../internals/to-indexed-object');
  5248. var toPropertyKey = _dereq_('../internals/to-property-key');
  5249. var $toString = _dereq_('../internals/to-string');
  5250. var createPropertyDescriptor = _dereq_('../internals/create-property-descriptor');
  5251. var nativeObjectCreate = _dereq_('../internals/object-create');
  5252. var objectKeys = _dereq_('../internals/object-keys');
  5253. var getOwnPropertyNamesModule = _dereq_('../internals/object-get-own-property-names');
  5254. var getOwnPropertyNamesExternal = _dereq_('../internals/object-get-own-property-names-external');
  5255. var getOwnPropertySymbolsModule = _dereq_('../internals/object-get-own-property-symbols');
  5256. var getOwnPropertyDescriptorModule = _dereq_('../internals/object-get-own-property-descriptor');
  5257. var definePropertyModule = _dereq_('../internals/object-define-property');
  5258. var definePropertiesModule = _dereq_('../internals/object-define-properties');
  5259. var propertyIsEnumerableModule = _dereq_('../internals/object-property-is-enumerable');
  5260. var arraySlice = _dereq_('../internals/array-slice');
  5261. var redefine = _dereq_('../internals/redefine');
  5262. var shared = _dereq_('../internals/shared');
  5263. var sharedKey = _dereq_('../internals/shared-key');
  5264. var hiddenKeys = _dereq_('../internals/hidden-keys');
  5265. var uid = _dereq_('../internals/uid');
  5266. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  5267. var wrappedWellKnownSymbolModule = _dereq_('../internals/well-known-symbol-wrapped');
  5268. var defineWellKnownSymbol = _dereq_('../internals/define-well-known-symbol');
  5269. var setToStringTag = _dereq_('../internals/set-to-string-tag');
  5270. var InternalStateModule = _dereq_('../internals/internal-state');
  5271. var $forEach = _dereq_('../internals/array-iteration').forEach;
  5272. var HIDDEN = sharedKey('hidden');
  5273. var SYMBOL = 'Symbol';
  5274. var PROTOTYPE = 'prototype';
  5275. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  5276. var setInternalState = InternalStateModule.set;
  5277. var getInternalState = InternalStateModule.getterFor(SYMBOL);
  5278. var ObjectPrototype = Object[PROTOTYPE];
  5279. var $Symbol = global.Symbol;
  5280. var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
  5281. var TypeError = global.TypeError;
  5282. var QObject = global.QObject;
  5283. var $stringify = getBuiltIn('JSON', 'stringify');
  5284. var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  5285. var nativeDefineProperty = definePropertyModule.f;
  5286. var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
  5287. var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
  5288. var push = uncurryThis([].push);
  5289. var AllSymbols = shared('symbols');
  5290. var ObjectPrototypeSymbols = shared('op-symbols');
  5291. var StringToSymbolRegistry = shared('string-to-symbol-registry');
  5292. var SymbolToStringRegistry = shared('symbol-to-string-registry');
  5293. var WellKnownSymbolsStore = shared('wks');
  5294. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  5295. var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
  5296. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  5297. var setSymbolDescriptor = DESCRIPTORS && fails(function () {
  5298. return nativeObjectCreate(nativeDefineProperty({}, 'a', {
  5299. get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
  5300. })).a != 7;
  5301. }) ? function (O, P, Attributes) {
  5302. var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
  5303. if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
  5304. nativeDefineProperty(O, P, Attributes);
  5305. if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
  5306. nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
  5307. }
  5308. } : nativeDefineProperty;
  5309. var wrap = function (tag, description) {
  5310. var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);
  5311. setInternalState(symbol, {
  5312. type: SYMBOL,
  5313. tag: tag,
  5314. description: description
  5315. });
  5316. if (!DESCRIPTORS) symbol.description = description;
  5317. return symbol;
  5318. };
  5319. var $defineProperty = function defineProperty(O, P, Attributes) {
  5320. if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
  5321. anObject(O);
  5322. var key = toPropertyKey(P);
  5323. anObject(Attributes);
  5324. if (hasOwn(AllSymbols, key)) {
  5325. if (!Attributes.enumerable) {
  5326. if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
  5327. O[HIDDEN][key] = true;
  5328. } else {
  5329. if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
  5330. Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
  5331. } return setSymbolDescriptor(O, key, Attributes);
  5332. } return nativeDefineProperty(O, key, Attributes);
  5333. };
  5334. var $defineProperties = function defineProperties(O, Properties) {
  5335. anObject(O);
  5336. var properties = toIndexedObject(Properties);
  5337. var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
  5338. $forEach(keys, function (key) {
  5339. if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]);
  5340. });
  5341. return O;
  5342. };
  5343. var $create = function create(O, Properties) {
  5344. return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
  5345. };
  5346. var $propertyIsEnumerable = function propertyIsEnumerable(V) {
  5347. var P = toPropertyKey(V);
  5348. var enumerable = call(nativePropertyIsEnumerable, this, P);
  5349. if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false;
  5350. return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P]
  5351. ? enumerable : true;
  5352. };
  5353. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
  5354. var it = toIndexedObject(O);
  5355. var key = toPropertyKey(P);
  5356. if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return;
  5357. var descriptor = nativeGetOwnPropertyDescriptor(it, key);
  5358. if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {
  5359. descriptor.enumerable = true;
  5360. }
  5361. return descriptor;
  5362. };
  5363. var $getOwnPropertyNames = function getOwnPropertyNames(O) {
  5364. var names = nativeGetOwnPropertyNames(toIndexedObject(O));
  5365. var result = [];
  5366. $forEach(names, function (key) {
  5367. if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) push(result, key);
  5368. });
  5369. return result;
  5370. };
  5371. var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
  5372. var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
  5373. var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
  5374. var result = [];
  5375. $forEach(names, function (key) {
  5376. if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {
  5377. push(result, AllSymbols[key]);
  5378. }
  5379. });
  5380. return result;
  5381. };
  5382. // `Symbol` constructor
  5383. // https://tc39.es/ecma262/#sec-symbol-constructor
  5384. if (!NATIVE_SYMBOL) {
  5385. $Symbol = function Symbol() {
  5386. if (isPrototypeOf(SymbolPrototype, this)) throw TypeError('Symbol is not a constructor');
  5387. var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);
  5388. var tag = uid(description);
  5389. var setter = function (value) {
  5390. if (this === ObjectPrototype) call(setter, ObjectPrototypeSymbols, value);
  5391. if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  5392. setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
  5393. };
  5394. if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
  5395. return wrap(tag, description);
  5396. };
  5397. SymbolPrototype = $Symbol[PROTOTYPE];
  5398. redefine(SymbolPrototype, 'toString', function toString() {
  5399. return getInternalState(this).tag;
  5400. });
  5401. redefine($Symbol, 'withoutSetter', function (description) {
  5402. return wrap(uid(description), description);
  5403. });
  5404. propertyIsEnumerableModule.f = $propertyIsEnumerable;
  5405. definePropertyModule.f = $defineProperty;
  5406. definePropertiesModule.f = $defineProperties;
  5407. getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
  5408. getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
  5409. getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
  5410. wrappedWellKnownSymbolModule.f = function (name) {
  5411. return wrap(wellKnownSymbol(name), name);
  5412. };
  5413. if (DESCRIPTORS) {
  5414. // https://github.com/tc39/proposal-Symbol-description
  5415. nativeDefineProperty(SymbolPrototype, 'description', {
  5416. configurable: true,
  5417. get: function description() {
  5418. return getInternalState(this).description;
  5419. }
  5420. });
  5421. if (!IS_PURE) {
  5422. redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
  5423. }
  5424. }
  5425. }
  5426. $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
  5427. Symbol: $Symbol
  5428. });
  5429. $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
  5430. defineWellKnownSymbol(name);
  5431. });
  5432. $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
  5433. // `Symbol.for` method
  5434. // https://tc39.es/ecma262/#sec-symbol.for
  5435. 'for': function (key) {
  5436. var string = $toString(key);
  5437. if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
  5438. var symbol = $Symbol(string);
  5439. StringToSymbolRegistry[string] = symbol;
  5440. SymbolToStringRegistry[symbol] = string;
  5441. return symbol;
  5442. },
  5443. // `Symbol.keyFor` method
  5444. // https://tc39.es/ecma262/#sec-symbol.keyfor
  5445. keyFor: function keyFor(sym) {
  5446. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
  5447. if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
  5448. },
  5449. useSetter: function () { USE_SETTER = true; },
  5450. useSimple: function () { USE_SETTER = false; }
  5451. });
  5452. $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
  5453. // `Object.create` method
  5454. // https://tc39.es/ecma262/#sec-object.create
  5455. create: $create,
  5456. // `Object.defineProperty` method
  5457. // https://tc39.es/ecma262/#sec-object.defineproperty
  5458. defineProperty: $defineProperty,
  5459. // `Object.defineProperties` method
  5460. // https://tc39.es/ecma262/#sec-object.defineproperties
  5461. defineProperties: $defineProperties,
  5462. // `Object.getOwnPropertyDescriptor` method
  5463. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
  5464. getOwnPropertyDescriptor: $getOwnPropertyDescriptor
  5465. });
  5466. $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
  5467. // `Object.getOwnPropertyNames` method
  5468. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  5469. getOwnPropertyNames: $getOwnPropertyNames,
  5470. // `Object.getOwnPropertySymbols` method
  5471. // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
  5472. getOwnPropertySymbols: $getOwnPropertySymbols
  5473. });
  5474. // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
  5475. // https://bugs.chromium.org/p/v8/issues/detail?id=3443
  5476. $({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
  5477. getOwnPropertySymbols: function getOwnPropertySymbols(it) {
  5478. return getOwnPropertySymbolsModule.f(toObject(it));
  5479. }
  5480. });
  5481. // `JSON.stringify` method behavior with symbols
  5482. // https://tc39.es/ecma262/#sec-json.stringify
  5483. if ($stringify) {
  5484. var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
  5485. var symbol = $Symbol();
  5486. // MS Edge converts symbol values to JSON as {}
  5487. return $stringify([symbol]) != '[null]'
  5488. // WebKit converts symbol values to JSON as null
  5489. || $stringify({ a: symbol }) != '{}'
  5490. // V8 throws on boxed symbols
  5491. || $stringify(Object(symbol)) != '{}';
  5492. });
  5493. $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
  5494. // eslint-disable-next-line no-unused-vars -- required for `.length`
  5495. stringify: function stringify(it, replacer, space) {
  5496. var args = arraySlice(arguments);
  5497. var $replacer = replacer;
  5498. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  5499. if (!isArray(replacer)) replacer = function (key, value) {
  5500. if (isCallable($replacer)) value = call($replacer, this, key, value);
  5501. if (!isSymbol(value)) return value;
  5502. };
  5503. args[1] = replacer;
  5504. return apply($stringify, null, args);
  5505. }
  5506. });
  5507. }
  5508. // `Symbol.prototype[@@toPrimitive]` method
  5509. // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
  5510. if (!SymbolPrototype[TO_PRIMITIVE]) {
  5511. var valueOf = SymbolPrototype.valueOf;
  5512. // eslint-disable-next-line no-unused-vars -- required for .length
  5513. redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
  5514. // TODO: improve hint logic
  5515. return call(valueOf, this);
  5516. });
  5517. }
  5518. // `Symbol.prototype[@@toStringTag]` property
  5519. // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
  5520. setToStringTag($Symbol, SYMBOL);
  5521. hiddenKeys[HIDDEN] = true;
  5522. },{"../internals/an-object":74,"../internals/array-iteration":77,"../internals/array-slice":81,"../internals/create-property-descriptor":93,"../internals/define-well-known-symbol":96,"../internals/descriptors":97,"../internals/export":110,"../internals/fails":111,"../internals/function-apply":112,"../internals/function-call":115,"../internals/function-uncurry-this":117,"../internals/get-built-in":118,"../internals/global":122,"../internals/has-own-property":123,"../internals/hidden-keys":124,"../internals/internal-state":131,"../internals/is-array":133,"../internals/is-callable":134,"../internals/is-object":137,"../internals/is-pure":138,"../internals/is-symbol":140,"../internals/native-symbol":148,"../internals/object-create":153,"../internals/object-define-properties":154,"../internals/object-define-property":155,"../internals/object-get-own-property-descriptor":156,"../internals/object-get-own-property-names":158,"../internals/object-get-own-property-names-external":157,"../internals/object-get-own-property-symbols":159,"../internals/object-is-prototype-of":161,"../internals/object-keys":163,"../internals/object-property-is-enumerable":164,"../internals/redefine":174,"../internals/set-to-string-tag":178,"../internals/shared":181,"../internals/shared-key":179,"../internals/to-indexed-object":186,"../internals/to-object":189,"../internals/to-property-key":191,"../internals/to-string":193,"../internals/uid":195,"../internals/well-known-symbol":199,"../internals/well-known-symbol-wrapped":198}],219:[function(_dereq_,module,exports){
  5523. // TODO: Remove from `core-js@4`
  5524. _dereq_('../modules/es.aggregate-error');
  5525. },{"../modules/es.aggregate-error":200}],220:[function(_dereq_,module,exports){
  5526. // TODO: Remove from `core-js@4`
  5527. _dereq_('../modules/es.promise.all-settled.js');
  5528. },{"../modules/es.promise.all-settled.js":212}],221:[function(_dereq_,module,exports){
  5529. // TODO: Remove from `core-js@4`
  5530. _dereq_('../modules/es.promise.any');
  5531. },{"../modules/es.promise.any":213}],222:[function(_dereq_,module,exports){
  5532. 'use strict';
  5533. var $ = _dereq_('../internals/export');
  5534. var newPromiseCapabilityModule = _dereq_('../internals/new-promise-capability');
  5535. var perform = _dereq_('../internals/perform');
  5536. // `Promise.try` method
  5537. // https://github.com/tc39/proposal-promise-try
  5538. $({ target: 'Promise', stat: true }, {
  5539. 'try': function (callbackfn) {
  5540. var promiseCapability = newPromiseCapabilityModule.f(this);
  5541. var result = perform(callbackfn);
  5542. (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);
  5543. return promiseCapability.promise;
  5544. }
  5545. });
  5546. },{"../internals/export":110,"../internals/new-promise-capability":150,"../internals/perform":170}],223:[function(_dereq_,module,exports){
  5547. _dereq_('../modules/es.array.iterator');
  5548. var DOMIterables = _dereq_('../internals/dom-iterables');
  5549. var global = _dereq_('../internals/global');
  5550. var classof = _dereq_('../internals/classof');
  5551. var createNonEnumerableProperty = _dereq_('../internals/create-non-enumerable-property');
  5552. var Iterators = _dereq_('../internals/iterators');
  5553. var wellKnownSymbol = _dereq_('../internals/well-known-symbol');
  5554. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  5555. for (var COLLECTION_NAME in DOMIterables) {
  5556. var Collection = global[COLLECTION_NAME];
  5557. var CollectionPrototype = Collection && Collection.prototype;
  5558. if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {
  5559. createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
  5560. }
  5561. Iterators[COLLECTION_NAME] = Iterators.Array;
  5562. }
  5563. },{"../internals/classof":86,"../internals/create-non-enumerable-property":92,"../internals/dom-iterables":99,"../internals/global":122,"../internals/iterators":144,"../internals/well-known-symbol":199,"../modules/es.array.iterator":204}],224:[function(_dereq_,module,exports){
  5564. var parent = _dereq_('../../../es/array/virtual/for-each');
  5565. module.exports = parent;
  5566. },{"../../../es/array/virtual/for-each":54}],225:[function(_dereq_,module,exports){
  5567. var parent = _dereq_('../../es/instance/filter');
  5568. module.exports = parent;
  5569. },{"../../es/instance/filter":56}],226:[function(_dereq_,module,exports){
  5570. _dereq_('../../modules/web.dom-collections.iterator');
  5571. var classof = _dereq_('../../internals/classof');
  5572. var hasOwn = _dereq_('../../internals/has-own-property');
  5573. var isPrototypeOf = _dereq_('../../internals/object-is-prototype-of');
  5574. var method = _dereq_('../array/virtual/for-each');
  5575. var ArrayPrototype = Array.prototype;
  5576. var DOMIterables = {
  5577. DOMTokenList: true,
  5578. NodeList: true
  5579. };
  5580. module.exports = function (it) {
  5581. var own = it.forEach;
  5582. return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach)
  5583. || hasOwn(DOMIterables, classof(it)) ? method : own;
  5584. };
  5585. },{"../../internals/classof":86,"../../internals/has-own-property":123,"../../internals/object-is-prototype-of":161,"../../modules/web.dom-collections.iterator":223,"../array/virtual/for-each":224}],227:[function(_dereq_,module,exports){
  5586. var parent = _dereq_('../../es/instance/includes');
  5587. module.exports = parent;
  5588. },{"../../es/instance/includes":57}],228:[function(_dereq_,module,exports){
  5589. var parent = _dereq_('../../es/json/stringify');
  5590. module.exports = parent;
  5591. },{"../../es/json/stringify":58}],229:[function(_dereq_,module,exports){
  5592. var parent = _dereq_('../../es/object/define-properties');
  5593. module.exports = parent;
  5594. },{"../../es/object/define-properties":59}],230:[function(_dereq_,module,exports){
  5595. var parent = _dereq_('../../es/object/define-property');
  5596. module.exports = parent;
  5597. },{"../../es/object/define-property":60}],231:[function(_dereq_,module,exports){
  5598. var parent = _dereq_('../../es/object/get-own-property-descriptor');
  5599. module.exports = parent;
  5600. },{"../../es/object/get-own-property-descriptor":61}],232:[function(_dereq_,module,exports){
  5601. var parent = _dereq_('../../es/object/get-own-property-descriptors');
  5602. module.exports = parent;
  5603. },{"../../es/object/get-own-property-descriptors":62}],233:[function(_dereq_,module,exports){
  5604. var parent = _dereq_('../../es/object/get-own-property-symbols');
  5605. module.exports = parent;
  5606. },{"../../es/object/get-own-property-symbols":63}],234:[function(_dereq_,module,exports){
  5607. var parent = _dereq_('../../es/object/keys');
  5608. module.exports = parent;
  5609. },{"../../es/object/keys":64}],235:[function(_dereq_,module,exports){
  5610. var parent = _dereq_('../../es/promise');
  5611. _dereq_('../../modules/web.dom-collections.iterator');
  5612. module.exports = parent;
  5613. },{"../../es/promise":65,"../../modules/web.dom-collections.iterator":223}],236:[function(_dereq_,module,exports){
  5614. /**
  5615. * Copyright (c) 2014-present, Facebook, Inc.
  5616. *
  5617. * This source code is licensed under the MIT license found in the
  5618. * LICENSE file in the root directory of this source tree.
  5619. */
  5620. var runtime = (function (exports) {
  5621. "use strict";
  5622. var Op = Object.prototype;
  5623. var hasOwn = Op.hasOwnProperty;
  5624. var undefined; // More compressible than void 0.
  5625. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  5626. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  5627. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  5628. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  5629. function define(obj, key, value) {
  5630. Object.defineProperty(obj, key, {
  5631. value: value,
  5632. enumerable: true,
  5633. configurable: true,
  5634. writable: true
  5635. });
  5636. return obj[key];
  5637. }
  5638. try {
  5639. // IE 8 has a broken Object.defineProperty that only works on DOM objects.
  5640. define({}, "");
  5641. } catch (err) {
  5642. define = function(obj, key, value) {
  5643. return obj[key] = value;
  5644. };
  5645. }
  5646. function wrap(innerFn, outerFn, self, tryLocsList) {
  5647. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  5648. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  5649. var generator = Object.create(protoGenerator.prototype);
  5650. var context = new Context(tryLocsList || []);
  5651. // The ._invoke method unifies the implementations of the .next,
  5652. // .throw, and .return methods.
  5653. generator._invoke = makeInvokeMethod(innerFn, self, context);
  5654. return generator;
  5655. }
  5656. exports.wrap = wrap;
  5657. // Try/catch helper to minimize deoptimizations. Returns a completion
  5658. // record like context.tryEntries[i].completion. This interface could
  5659. // have been (and was previously) designed to take a closure to be
  5660. // invoked without arguments, but in all the cases we care about we
  5661. // already have an existing method we want to call, so there's no need
  5662. // to create a new function object. We can even get away with assuming
  5663. // the method takes exactly one argument, since that happens to be true
  5664. // in every case, so we don't have to touch the arguments object. The
  5665. // only additional allocation required is the completion record, which
  5666. // has a stable shape and so hopefully should be cheap to allocate.
  5667. function tryCatch(fn, obj, arg) {
  5668. try {
  5669. return { type: "normal", arg: fn.call(obj, arg) };
  5670. } catch (err) {
  5671. return { type: "throw", arg: err };
  5672. }
  5673. }
  5674. var GenStateSuspendedStart = "suspendedStart";
  5675. var GenStateSuspendedYield = "suspendedYield";
  5676. var GenStateExecuting = "executing";
  5677. var GenStateCompleted = "completed";
  5678. // Returning this object from the innerFn has the same effect as
  5679. // breaking out of the dispatch switch statement.
  5680. var ContinueSentinel = {};
  5681. // Dummy constructor functions that we use as the .constructor and
  5682. // .constructor.prototype properties for functions that return Generator
  5683. // objects. For full spec compliance, you may wish to configure your
  5684. // minifier not to mangle the names of these two functions.
  5685. function Generator() {}
  5686. function GeneratorFunction() {}
  5687. function GeneratorFunctionPrototype() {}
  5688. // This is a polyfill for %IteratorPrototype% for environments that
  5689. // don't natively support it.
  5690. var IteratorPrototype = {};
  5691. define(IteratorPrototype, iteratorSymbol, function () {
  5692. return this;
  5693. });
  5694. var getProto = Object.getPrototypeOf;
  5695. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  5696. if (NativeIteratorPrototype &&
  5697. NativeIteratorPrototype !== Op &&
  5698. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  5699. // This environment has a native %IteratorPrototype%; use it instead
  5700. // of the polyfill.
  5701. IteratorPrototype = NativeIteratorPrototype;
  5702. }
  5703. var Gp = GeneratorFunctionPrototype.prototype =
  5704. Generator.prototype = Object.create(IteratorPrototype);
  5705. GeneratorFunction.prototype = GeneratorFunctionPrototype;
  5706. define(Gp, "constructor", GeneratorFunctionPrototype);
  5707. define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
  5708. GeneratorFunction.displayName = define(
  5709. GeneratorFunctionPrototype,
  5710. toStringTagSymbol,
  5711. "GeneratorFunction"
  5712. );
  5713. // Helper for defining the .next, .throw, and .return methods of the
  5714. // Iterator interface in terms of a single ._invoke method.
  5715. function defineIteratorMethods(prototype) {
  5716. ["next", "throw", "return"].forEach(function(method) {
  5717. define(prototype, method, function(arg) {
  5718. return this._invoke(method, arg);
  5719. });
  5720. });
  5721. }
  5722. exports.isGeneratorFunction = function(genFun) {
  5723. var ctor = typeof genFun === "function" && genFun.constructor;
  5724. return ctor
  5725. ? ctor === GeneratorFunction ||
  5726. // For the native GeneratorFunction constructor, the best we can
  5727. // do is to check its .name property.
  5728. (ctor.displayName || ctor.name) === "GeneratorFunction"
  5729. : false;
  5730. };
  5731. exports.mark = function(genFun) {
  5732. if (Object.setPrototypeOf) {
  5733. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  5734. } else {
  5735. genFun.__proto__ = GeneratorFunctionPrototype;
  5736. define(genFun, toStringTagSymbol, "GeneratorFunction");
  5737. }
  5738. genFun.prototype = Object.create(Gp);
  5739. return genFun;
  5740. };
  5741. // Within the body of any async function, `await x` is transformed to
  5742. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  5743. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  5744. // meant to be awaited.
  5745. exports.awrap = function(arg) {
  5746. return { __await: arg };
  5747. };
  5748. function AsyncIterator(generator, PromiseImpl) {
  5749. function invoke(method, arg, resolve, reject) {
  5750. var record = tryCatch(generator[method], generator, arg);
  5751. if (record.type === "throw") {
  5752. reject(record.arg);
  5753. } else {
  5754. var result = record.arg;
  5755. var value = result.value;
  5756. if (value &&
  5757. typeof value === "object" &&
  5758. hasOwn.call(value, "__await")) {
  5759. return PromiseImpl.resolve(value.__await).then(function(value) {
  5760. invoke("next", value, resolve, reject);
  5761. }, function(err) {
  5762. invoke("throw", err, resolve, reject);
  5763. });
  5764. }
  5765. return PromiseImpl.resolve(value).then(function(unwrapped) {
  5766. // When a yielded Promise is resolved, its final value becomes
  5767. // the .value of the Promise<{value,done}> result for the
  5768. // current iteration.
  5769. result.value = unwrapped;
  5770. resolve(result);
  5771. }, function(error) {
  5772. // If a rejected Promise was yielded, throw the rejection back
  5773. // into the async generator function so it can be handled there.
  5774. return invoke("throw", error, resolve, reject);
  5775. });
  5776. }
  5777. }
  5778. var previousPromise;
  5779. function enqueue(method, arg) {
  5780. function callInvokeWithMethodAndArg() {
  5781. return new PromiseImpl(function(resolve, reject) {
  5782. invoke(method, arg, resolve, reject);
  5783. });
  5784. }
  5785. return previousPromise =
  5786. // If enqueue has been called before, then we want to wait until
  5787. // all previous Promises have been resolved before calling invoke,
  5788. // so that results are always delivered in the correct order. If
  5789. // enqueue has not been called before, then it is important to
  5790. // call invoke immediately, without waiting on a callback to fire,
  5791. // so that the async generator function has the opportunity to do
  5792. // any necessary setup in a predictable way. This predictability
  5793. // is why the Promise constructor synchronously invokes its
  5794. // executor callback, and why async functions synchronously
  5795. // execute code before the first await. Since we implement simple
  5796. // async functions in terms of async generators, it is especially
  5797. // important to get this right, even though it requires care.
  5798. previousPromise ? previousPromise.then(
  5799. callInvokeWithMethodAndArg,
  5800. // Avoid propagating failures to Promises returned by later
  5801. // invocations of the iterator.
  5802. callInvokeWithMethodAndArg
  5803. ) : callInvokeWithMethodAndArg();
  5804. }
  5805. // Define the unified helper method that is used to implement .next,
  5806. // .throw, and .return (see defineIteratorMethods).
  5807. this._invoke = enqueue;
  5808. }
  5809. defineIteratorMethods(AsyncIterator.prototype);
  5810. define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  5811. return this;
  5812. });
  5813. exports.AsyncIterator = AsyncIterator;
  5814. // Note that simple async functions are implemented on top of
  5815. // AsyncIterator objects; they just return a Promise for the value of
  5816. // the final result produced by the iterator.
  5817. exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  5818. if (PromiseImpl === void 0) PromiseImpl = Promise;
  5819. var iter = new AsyncIterator(
  5820. wrap(innerFn, outerFn, self, tryLocsList),
  5821. PromiseImpl
  5822. );
  5823. return exports.isGeneratorFunction(outerFn)
  5824. ? iter // If outerFn is a generator, return the full iterator.
  5825. : iter.next().then(function(result) {
  5826. return result.done ? result.value : iter.next();
  5827. });
  5828. };
  5829. function makeInvokeMethod(innerFn, self, context) {
  5830. var state = GenStateSuspendedStart;
  5831. return function invoke(method, arg) {
  5832. if (state === GenStateExecuting) {
  5833. throw new Error("Generator is already running");
  5834. }
  5835. if (state === GenStateCompleted) {
  5836. if (method === "throw") {
  5837. throw arg;
  5838. }
  5839. // Be forgiving, per 25.3.3.3.3 of the spec:
  5840. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  5841. return doneResult();
  5842. }
  5843. context.method = method;
  5844. context.arg = arg;
  5845. while (true) {
  5846. var delegate = context.delegate;
  5847. if (delegate) {
  5848. var delegateResult = maybeInvokeDelegate(delegate, context);
  5849. if (delegateResult) {
  5850. if (delegateResult === ContinueSentinel) continue;
  5851. return delegateResult;
  5852. }
  5853. }
  5854. if (context.method === "next") {
  5855. // Setting context._sent for legacy support of Babel's
  5856. // function.sent implementation.
  5857. context.sent = context._sent = context.arg;
  5858. } else if (context.method === "throw") {
  5859. if (state === GenStateSuspendedStart) {
  5860. state = GenStateCompleted;
  5861. throw context.arg;
  5862. }
  5863. context.dispatchException(context.arg);
  5864. } else if (context.method === "return") {
  5865. context.abrupt("return", context.arg);
  5866. }
  5867. state = GenStateExecuting;
  5868. var record = tryCatch(innerFn, self, context);
  5869. if (record.type === "normal") {
  5870. // If an exception is thrown from innerFn, we leave state ===
  5871. // GenStateExecuting and loop back for another invocation.
  5872. state = context.done
  5873. ? GenStateCompleted
  5874. : GenStateSuspendedYield;
  5875. if (record.arg === ContinueSentinel) {
  5876. continue;
  5877. }
  5878. return {
  5879. value: record.arg,
  5880. done: context.done
  5881. };
  5882. } else if (record.type === "throw") {
  5883. state = GenStateCompleted;
  5884. // Dispatch the exception by looping back around to the
  5885. // context.dispatchException(context.arg) call above.
  5886. context.method = "throw";
  5887. context.arg = record.arg;
  5888. }
  5889. }
  5890. };
  5891. }
  5892. // Call delegate.iterator[context.method](context.arg) and handle the
  5893. // result, either by returning a { value, done } result from the
  5894. // delegate iterator, or by modifying context.method and context.arg,
  5895. // setting context.delegate to null, and returning the ContinueSentinel.
  5896. function maybeInvokeDelegate(delegate, context) {
  5897. var method = delegate.iterator[context.method];
  5898. if (method === undefined) {
  5899. // A .throw or .return when the delegate iterator has no .throw
  5900. // method always terminates the yield* loop.
  5901. context.delegate = null;
  5902. if (context.method === "throw") {
  5903. // Note: ["return"] must be used for ES3 parsing compatibility.
  5904. if (delegate.iterator["return"]) {
  5905. // If the delegate iterator has a return method, give it a
  5906. // chance to clean up.
  5907. context.method = "return";
  5908. context.arg = undefined;
  5909. maybeInvokeDelegate(delegate, context);
  5910. if (context.method === "throw") {
  5911. // If maybeInvokeDelegate(context) changed context.method from
  5912. // "return" to "throw", let that override the TypeError below.
  5913. return ContinueSentinel;
  5914. }
  5915. }
  5916. context.method = "throw";
  5917. context.arg = new TypeError(
  5918. "The iterator does not provide a 'throw' method");
  5919. }
  5920. return ContinueSentinel;
  5921. }
  5922. var record = tryCatch(method, delegate.iterator, context.arg);
  5923. if (record.type === "throw") {
  5924. context.method = "throw";
  5925. context.arg = record.arg;
  5926. context.delegate = null;
  5927. return ContinueSentinel;
  5928. }
  5929. var info = record.arg;
  5930. if (! info) {
  5931. context.method = "throw";
  5932. context.arg = new TypeError("iterator result is not an object");
  5933. context.delegate = null;
  5934. return ContinueSentinel;
  5935. }
  5936. if (info.done) {
  5937. // Assign the result of the finished delegate to the temporary
  5938. // variable specified by delegate.resultName (see delegateYield).
  5939. context[delegate.resultName] = info.value;
  5940. // Resume execution at the desired location (see delegateYield).
  5941. context.next = delegate.nextLoc;
  5942. // If context.method was "throw" but the delegate handled the
  5943. // exception, let the outer generator proceed normally. If
  5944. // context.method was "next", forget context.arg since it has been
  5945. // "consumed" by the delegate iterator. If context.method was
  5946. // "return", allow the original .return call to continue in the
  5947. // outer generator.
  5948. if (context.method !== "return") {
  5949. context.method = "next";
  5950. context.arg = undefined;
  5951. }
  5952. } else {
  5953. // Re-yield the result returned by the delegate method.
  5954. return info;
  5955. }
  5956. // The delegate iterator is finished, so forget it and continue with
  5957. // the outer generator.
  5958. context.delegate = null;
  5959. return ContinueSentinel;
  5960. }
  5961. // Define Generator.prototype.{next,throw,return} in terms of the
  5962. // unified ._invoke helper method.
  5963. defineIteratorMethods(Gp);
  5964. define(Gp, toStringTagSymbol, "Generator");
  5965. // A Generator should always return itself as the iterator object when the
  5966. // @@iterator function is called on it. Some browsers' implementations of the
  5967. // iterator prototype chain incorrectly implement this, causing the Generator
  5968. // object to not be returned from this call. This ensures that doesn't happen.
  5969. // See https://github.com/facebook/regenerator/issues/274 for more details.
  5970. define(Gp, iteratorSymbol, function() {
  5971. return this;
  5972. });
  5973. define(Gp, "toString", function() {
  5974. return "[object Generator]";
  5975. });
  5976. function pushTryEntry(locs) {
  5977. var entry = { tryLoc: locs[0] };
  5978. if (1 in locs) {
  5979. entry.catchLoc = locs[1];
  5980. }
  5981. if (2 in locs) {
  5982. entry.finallyLoc = locs[2];
  5983. entry.afterLoc = locs[3];
  5984. }
  5985. this.tryEntries.push(entry);
  5986. }
  5987. function resetTryEntry(entry) {
  5988. var record = entry.completion || {};
  5989. record.type = "normal";
  5990. delete record.arg;
  5991. entry.completion = record;
  5992. }
  5993. function Context(tryLocsList) {
  5994. // The root entry object (effectively a try statement without a catch
  5995. // or a finally block) gives us a place to store values thrown from
  5996. // locations where there is no enclosing try statement.
  5997. this.tryEntries = [{ tryLoc: "root" }];
  5998. tryLocsList.forEach(pushTryEntry, this);
  5999. this.reset(true);
  6000. }
  6001. exports.keys = function(object) {
  6002. var keys = [];
  6003. for (var key in object) {
  6004. keys.push(key);
  6005. }
  6006. keys.reverse();
  6007. // Rather than returning an object with a next method, we keep
  6008. // things simple and return the next function itself.
  6009. return function next() {
  6010. while (keys.length) {
  6011. var key = keys.pop();
  6012. if (key in object) {
  6013. next.value = key;
  6014. next.done = false;
  6015. return next;
  6016. }
  6017. }
  6018. // To avoid creating an additional object, we just hang the .value
  6019. // and .done properties off the next function object itself. This
  6020. // also ensures that the minifier will not anonymize the function.
  6021. next.done = true;
  6022. return next;
  6023. };
  6024. };
  6025. function values(iterable) {
  6026. if (iterable) {
  6027. var iteratorMethod = iterable[iteratorSymbol];
  6028. if (iteratorMethod) {
  6029. return iteratorMethod.call(iterable);
  6030. }
  6031. if (typeof iterable.next === "function") {
  6032. return iterable;
  6033. }
  6034. if (!isNaN(iterable.length)) {
  6035. var i = -1, next = function next() {
  6036. while (++i < iterable.length) {
  6037. if (hasOwn.call(iterable, i)) {
  6038. next.value = iterable[i];
  6039. next.done = false;
  6040. return next;
  6041. }
  6042. }
  6043. next.value = undefined;
  6044. next.done = true;
  6045. return next;
  6046. };
  6047. return next.next = next;
  6048. }
  6049. }
  6050. // Return an iterator with no values.
  6051. return { next: doneResult };
  6052. }
  6053. exports.values = values;
  6054. function doneResult() {
  6055. return { value: undefined, done: true };
  6056. }
  6057. Context.prototype = {
  6058. constructor: Context,
  6059. reset: function(skipTempReset) {
  6060. this.prev = 0;
  6061. this.next = 0;
  6062. // Resetting context._sent for legacy support of Babel's
  6063. // function.sent implementation.
  6064. this.sent = this._sent = undefined;
  6065. this.done = false;
  6066. this.delegate = null;
  6067. this.method = "next";
  6068. this.arg = undefined;
  6069. this.tryEntries.forEach(resetTryEntry);
  6070. if (!skipTempReset) {
  6071. for (var name in this) {
  6072. // Not sure about the optimal order of these conditions:
  6073. if (name.charAt(0) === "t" &&
  6074. hasOwn.call(this, name) &&
  6075. !isNaN(+name.slice(1))) {
  6076. this[name] = undefined;
  6077. }
  6078. }
  6079. }
  6080. },
  6081. stop: function() {
  6082. this.done = true;
  6083. var rootEntry = this.tryEntries[0];
  6084. var rootRecord = rootEntry.completion;
  6085. if (rootRecord.type === "throw") {
  6086. throw rootRecord.arg;
  6087. }
  6088. return this.rval;
  6089. },
  6090. dispatchException: function(exception) {
  6091. if (this.done) {
  6092. throw exception;
  6093. }
  6094. var context = this;
  6095. function handle(loc, caught) {
  6096. record.type = "throw";
  6097. record.arg = exception;
  6098. context.next = loc;
  6099. if (caught) {
  6100. // If the dispatched exception was caught by a catch block,
  6101. // then let that catch block handle the exception normally.
  6102. context.method = "next";
  6103. context.arg = undefined;
  6104. }
  6105. return !! caught;
  6106. }
  6107. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  6108. var entry = this.tryEntries[i];
  6109. var record = entry.completion;
  6110. if (entry.tryLoc === "root") {
  6111. // Exception thrown outside of any try block that could handle
  6112. // it, so set the completion value of the entire function to
  6113. // throw the exception.
  6114. return handle("end");
  6115. }
  6116. if (entry.tryLoc <= this.prev) {
  6117. var hasCatch = hasOwn.call(entry, "catchLoc");
  6118. var hasFinally = hasOwn.call(entry, "finallyLoc");
  6119. if (hasCatch && hasFinally) {
  6120. if (this.prev < entry.catchLoc) {
  6121. return handle(entry.catchLoc, true);
  6122. } else if (this.prev < entry.finallyLoc) {
  6123. return handle(entry.finallyLoc);
  6124. }
  6125. } else if (hasCatch) {
  6126. if (this.prev < entry.catchLoc) {
  6127. return handle(entry.catchLoc, true);
  6128. }
  6129. } else if (hasFinally) {
  6130. if (this.prev < entry.finallyLoc) {
  6131. return handle(entry.finallyLoc);
  6132. }
  6133. } else {
  6134. throw new Error("try statement without catch or finally");
  6135. }
  6136. }
  6137. }
  6138. },
  6139. abrupt: function(type, arg) {
  6140. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  6141. var entry = this.tryEntries[i];
  6142. if (entry.tryLoc <= this.prev &&
  6143. hasOwn.call(entry, "finallyLoc") &&
  6144. this.prev < entry.finallyLoc) {
  6145. var finallyEntry = entry;
  6146. break;
  6147. }
  6148. }
  6149. if (finallyEntry &&
  6150. (type === "break" ||
  6151. type === "continue") &&
  6152. finallyEntry.tryLoc <= arg &&
  6153. arg <= finallyEntry.finallyLoc) {
  6154. // Ignore the finally entry if control is not jumping to a
  6155. // location outside the try/catch block.
  6156. finallyEntry = null;
  6157. }
  6158. var record = finallyEntry ? finallyEntry.completion : {};
  6159. record.type = type;
  6160. record.arg = arg;
  6161. if (finallyEntry) {
  6162. this.method = "next";
  6163. this.next = finallyEntry.finallyLoc;
  6164. return ContinueSentinel;
  6165. }
  6166. return this.complete(record);
  6167. },
  6168. complete: function(record, afterLoc) {
  6169. if (record.type === "throw") {
  6170. throw record.arg;
  6171. }
  6172. if (record.type === "break" ||
  6173. record.type === "continue") {
  6174. this.next = record.arg;
  6175. } else if (record.type === "return") {
  6176. this.rval = this.arg = record.arg;
  6177. this.method = "return";
  6178. this.next = "end";
  6179. } else if (record.type === "normal" && afterLoc) {
  6180. this.next = afterLoc;
  6181. }
  6182. return ContinueSentinel;
  6183. },
  6184. finish: function(finallyLoc) {
  6185. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  6186. var entry = this.tryEntries[i];
  6187. if (entry.finallyLoc === finallyLoc) {
  6188. this.complete(entry.completion, entry.afterLoc);
  6189. resetTryEntry(entry);
  6190. return ContinueSentinel;
  6191. }
  6192. }
  6193. },
  6194. "catch": function(tryLoc) {
  6195. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  6196. var entry = this.tryEntries[i];
  6197. if (entry.tryLoc === tryLoc) {
  6198. var record = entry.completion;
  6199. if (record.type === "throw") {
  6200. var thrown = record.arg;
  6201. resetTryEntry(entry);
  6202. }
  6203. return thrown;
  6204. }
  6205. }
  6206. // The context.catch method must only be called with a location
  6207. // argument that corresponds to a known catch block.
  6208. throw new Error("illegal catch attempt");
  6209. },
  6210. delegateYield: function(iterable, resultName, nextLoc) {
  6211. this.delegate = {
  6212. iterator: values(iterable),
  6213. resultName: resultName,
  6214. nextLoc: nextLoc
  6215. };
  6216. if (this.method === "next") {
  6217. // Deliberately forget the last sent value so that we don't
  6218. // accidentally pass it on to the delegate.
  6219. this.arg = undefined;
  6220. }
  6221. return ContinueSentinel;
  6222. }
  6223. };
  6224. // Regardless of whether this script is executing as a CommonJS module
  6225. // or not, return the runtime object so that we can declare the variable
  6226. // regeneratorRuntime in the outer scope, which allows this module to be
  6227. // injected easily by `bin/regenerator --include-runtime script.js`.
  6228. return exports;
  6229. }(
  6230. // If this script is executing as a CommonJS module, use module.exports
  6231. // as the regeneratorRuntime namespace. Otherwise create a new empty
  6232. // object. Either way, the resulting object will be used to initialize
  6233. // the regeneratorRuntime variable at the top of this file.
  6234. typeof module === "object" ? module.exports : {}
  6235. ));
  6236. try {
  6237. regeneratorRuntime = runtime;
  6238. } catch (accidentalStrictMode) {
  6239. // This module should not be running in strict mode, so the above
  6240. // assignment should always work unless something is misconfigured. Just
  6241. // in case runtime.js accidentally runs in strict mode, in modern engines
  6242. // we can explicitly access globalThis. In older engines we can escape
  6243. // strict mode using a global Function call. This could conceivably fail
  6244. // if a Content Security Policy forbids using Function, but in that case
  6245. // the proper solution is to fix the accidental strict mode problem. If
  6246. // you've misconfigured your bundler to force strict mode and applied a
  6247. // CSP to forbid Function, and you're not willing to fix either of those
  6248. // problems, please detail your unique predicament in a GitHub issue.
  6249. if (typeof globalThis === "object") {
  6250. globalThis.regeneratorRuntime = runtime;
  6251. } else {
  6252. Function("r", "regeneratorRuntime = r")(runtime);
  6253. }
  6254. }
  6255. },{}]},{},[1])(1)
  6256. });