index.js 1.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491
  1. module.exports =
  2. /******/ (function(modules, runtime) { // webpackBootstrap
  3. /******/ "use strict";
  4. /******/ // The module cache
  5. /******/ var installedModules = {};
  6. /******/
  7. /******/ // The require function
  8. /******/ function __webpack_require__(moduleId) {
  9. /******/
  10. /******/ // Check if module is in cache
  11. /******/ if(installedModules[moduleId]) {
  12. /******/ return installedModules[moduleId].exports;
  13. /******/ }
  14. /******/ // Create a new module (and put it into the cache)
  15. /******/ var module = installedModules[moduleId] = {
  16. /******/ i: moduleId,
  17. /******/ l: false,
  18. /******/ exports: {}
  19. /******/ };
  20. /******/
  21. /******/ // Execute the module function
  22. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  23. /******/
  24. /******/ // Flag the module as loaded
  25. /******/ module.l = true;
  26. /******/
  27. /******/ // Return the exports of the module
  28. /******/ return module.exports;
  29. /******/ }
  30. /******/
  31. /******/
  32. /******/ __webpack_require__.ab = __dirname + "/";
  33. /******/
  34. /******/ // the startup function
  35. /******/ function startup() {
  36. /******/ // Load entry module and return exports
  37. /******/ return __webpack_require__(198);
  38. /******/ };
  39. /******/
  40. /******/ // run startup
  41. /******/ return startup();
  42. /******/ })
  43. /************************************************************************/
  44. /******/ ({
  45. /***/ 0:
  46. /***/ (function(module, __unusedexports, __webpack_require__) {
  47. const { requestLog } = __webpack_require__(916);
  48. const {
  49. restEndpointMethods
  50. } = __webpack_require__(842);
  51. const Core = __webpack_require__(529);
  52. const CORE_PLUGINS = [
  53. __webpack_require__(190),
  54. __webpack_require__(19), // deprecated: remove in v17
  55. requestLog,
  56. __webpack_require__(148),
  57. restEndpointMethods,
  58. __webpack_require__(430),
  59. __webpack_require__(850) // deprecated: remove in v17
  60. ];
  61. const OctokitRest = Core.plugin(CORE_PLUGINS);
  62. function DeprecatedOctokit(options) {
  63. const warn =
  64. options && options.log && options.log.warn
  65. ? options.log.warn
  66. : console.warn;
  67. warn(
  68. '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'
  69. );
  70. return new OctokitRest(options);
  71. }
  72. const Octokit = Object.assign(DeprecatedOctokit, {
  73. Octokit: OctokitRest
  74. });
  75. Object.keys(OctokitRest).forEach(key => {
  76. /* istanbul ignore else */
  77. if (OctokitRest.hasOwnProperty(key)) {
  78. Octokit[key] = OctokitRest[key];
  79. }
  80. });
  81. module.exports = Octokit;
  82. /***/ }),
  83. /***/ 1:
  84. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  85. "use strict";
  86. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  87. if (k2 === undefined) k2 = k;
  88. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  89. }) : (function(o, m, k, k2) {
  90. if (k2 === undefined) k2 = k;
  91. o[k2] = m[k];
  92. }));
  93. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  94. Object.defineProperty(o, "default", { enumerable: true, value: v });
  95. }) : function(o, v) {
  96. o["default"] = v;
  97. });
  98. var __importStar = (this && this.__importStar) || function (mod) {
  99. if (mod && mod.__esModule) return mod;
  100. var result = {};
  101. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  102. __setModuleDefault(result, mod);
  103. return result;
  104. };
  105. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  106. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  107. return new (P || (P = Promise))(function (resolve, reject) {
  108. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  109. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  110. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  111. step((generator = generator.apply(thisArg, _arguments || [])).next());
  112. });
  113. };
  114. Object.defineProperty(exports, "__esModule", { value: true });
  115. exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0;
  116. const assert_1 = __webpack_require__(357);
  117. const childProcess = __importStar(__webpack_require__(129));
  118. const path = __importStar(__webpack_require__(622));
  119. const util_1 = __webpack_require__(669);
  120. const ioUtil = __importStar(__webpack_require__(672));
  121. const exec = util_1.promisify(childProcess.exec);
  122. const execFile = util_1.promisify(childProcess.execFile);
  123. /**
  124. * Copies a file or folder.
  125. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
  126. *
  127. * @param source source path
  128. * @param dest destination path
  129. * @param options optional. See CopyOptions.
  130. */
  131. function cp(source, dest, options = {}) {
  132. return __awaiter(this, void 0, void 0, function* () {
  133. const { force, recursive, copySourceDirectory } = readCopyOptions(options);
  134. const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
  135. // Dest is an existing file, but not forcing
  136. if (destStat && destStat.isFile() && !force) {
  137. return;
  138. }
  139. // If dest is an existing directory, should copy inside.
  140. const newDest = destStat && destStat.isDirectory() && copySourceDirectory
  141. ? path.join(dest, path.basename(source))
  142. : dest;
  143. if (!(yield ioUtil.exists(source))) {
  144. throw new Error(`no such file or directory: ${source}`);
  145. }
  146. const sourceStat = yield ioUtil.stat(source);
  147. if (sourceStat.isDirectory()) {
  148. if (!recursive) {
  149. throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);
  150. }
  151. else {
  152. yield cpDirRecursive(source, newDest, 0, force);
  153. }
  154. }
  155. else {
  156. if (path.relative(source, newDest) === '') {
  157. // a file cannot be copied to itself
  158. throw new Error(`'${newDest}' and '${source}' are the same file`);
  159. }
  160. yield copyFile(source, newDest, force);
  161. }
  162. });
  163. }
  164. exports.cp = cp;
  165. /**
  166. * Moves a path.
  167. *
  168. * @param source source path
  169. * @param dest destination path
  170. * @param options optional. See MoveOptions.
  171. */
  172. function mv(source, dest, options = {}) {
  173. return __awaiter(this, void 0, void 0, function* () {
  174. if (yield ioUtil.exists(dest)) {
  175. let destExists = true;
  176. if (yield ioUtil.isDirectory(dest)) {
  177. // If dest is directory copy src into dest
  178. dest = path.join(dest, path.basename(source));
  179. destExists = yield ioUtil.exists(dest);
  180. }
  181. if (destExists) {
  182. if (options.force == null || options.force) {
  183. yield rmRF(dest);
  184. }
  185. else {
  186. throw new Error('Destination already exists');
  187. }
  188. }
  189. }
  190. yield mkdirP(path.dirname(dest));
  191. yield ioUtil.rename(source, dest);
  192. });
  193. }
  194. exports.mv = mv;
  195. /**
  196. * Remove a path recursively with force
  197. *
  198. * @param inputPath path to remove
  199. */
  200. function rmRF(inputPath) {
  201. return __awaiter(this, void 0, void 0, function* () {
  202. if (ioUtil.IS_WINDOWS) {
  203. // Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another
  204. // program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del.
  205. // Check for invalid characters
  206. // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
  207. if (/[*"<>|]/.test(inputPath)) {
  208. throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');
  209. }
  210. try {
  211. const cmdPath = ioUtil.getCmdPath();
  212. if (yield ioUtil.isDirectory(inputPath, true)) {
  213. yield exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
  214. env: { inputPath }
  215. });
  216. }
  217. else {
  218. yield exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
  219. env: { inputPath }
  220. });
  221. }
  222. }
  223. catch (err) {
  224. // if you try to delete a file that doesn't exist, desired result is achieved
  225. // other errors are valid
  226. if (err.code !== 'ENOENT')
  227. throw err;
  228. }
  229. // Shelling out fails to remove a symlink folder with missing source, this unlink catches that
  230. try {
  231. yield ioUtil.unlink(inputPath);
  232. }
  233. catch (err) {
  234. // if you try to delete a file that doesn't exist, desired result is achieved
  235. // other errors are valid
  236. if (err.code !== 'ENOENT')
  237. throw err;
  238. }
  239. }
  240. else {
  241. let isDir = false;
  242. try {
  243. isDir = yield ioUtil.isDirectory(inputPath);
  244. }
  245. catch (err) {
  246. // if you try to delete a file that doesn't exist, desired result is achieved
  247. // other errors are valid
  248. if (err.code !== 'ENOENT')
  249. throw err;
  250. return;
  251. }
  252. if (isDir) {
  253. yield execFile(`rm`, [`-rf`, `${inputPath}`]);
  254. }
  255. else {
  256. yield ioUtil.unlink(inputPath);
  257. }
  258. }
  259. });
  260. }
  261. exports.rmRF = rmRF;
  262. /**
  263. * Make a directory. Creates the full path with folders in between
  264. * Will throw if it fails
  265. *
  266. * @param fsPath path to create
  267. * @returns Promise<void>
  268. */
  269. function mkdirP(fsPath) {
  270. return __awaiter(this, void 0, void 0, function* () {
  271. assert_1.ok(fsPath, 'a path argument must be provided');
  272. yield ioUtil.mkdir(fsPath, { recursive: true });
  273. });
  274. }
  275. exports.mkdirP = mkdirP;
  276. /**
  277. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
  278. * If you check and the tool does not exist, it will throw.
  279. *
  280. * @param tool name of the tool
  281. * @param check whether to check if tool exists
  282. * @returns Promise<string> path to tool
  283. */
  284. function which(tool, check) {
  285. return __awaiter(this, void 0, void 0, function* () {
  286. if (!tool) {
  287. throw new Error("parameter 'tool' is required");
  288. }
  289. // recursive when check=true
  290. if (check) {
  291. const result = yield which(tool, false);
  292. if (!result) {
  293. if (ioUtil.IS_WINDOWS) {
  294. throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);
  295. }
  296. else {
  297. throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);
  298. }
  299. }
  300. return result;
  301. }
  302. const matches = yield findInPath(tool);
  303. if (matches && matches.length > 0) {
  304. return matches[0];
  305. }
  306. return '';
  307. });
  308. }
  309. exports.which = which;
  310. /**
  311. * Returns a list of all occurrences of the given tool on the system path.
  312. *
  313. * @returns Promise<string[]> the paths of the tool
  314. */
  315. function findInPath(tool) {
  316. return __awaiter(this, void 0, void 0, function* () {
  317. if (!tool) {
  318. throw new Error("parameter 'tool' is required");
  319. }
  320. // build the list of extensions to try
  321. const extensions = [];
  322. if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) {
  323. for (const extension of process.env['PATHEXT'].split(path.delimiter)) {
  324. if (extension) {
  325. extensions.push(extension);
  326. }
  327. }
  328. }
  329. // if it's rooted, return it if exists. otherwise return empty.
  330. if (ioUtil.isRooted(tool)) {
  331. const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
  332. if (filePath) {
  333. return [filePath];
  334. }
  335. return [];
  336. }
  337. // if any path separators, return empty
  338. if (tool.includes(path.sep)) {
  339. return [];
  340. }
  341. // build the list of directories
  342. //
  343. // Note, technically "where" checks the current directory on Windows. From a toolkit perspective,
  344. // it feels like we should not do this. Checking the current directory seems like more of a use
  345. // case of a shell, and the which() function exposed by the toolkit should strive for consistency
  346. // across platforms.
  347. const directories = [];
  348. if (process.env.PATH) {
  349. for (const p of process.env.PATH.split(path.delimiter)) {
  350. if (p) {
  351. directories.push(p);
  352. }
  353. }
  354. }
  355. // find all matches
  356. const matches = [];
  357. for (const directory of directories) {
  358. const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions);
  359. if (filePath) {
  360. matches.push(filePath);
  361. }
  362. }
  363. return matches;
  364. });
  365. }
  366. exports.findInPath = findInPath;
  367. function readCopyOptions(options) {
  368. const force = options.force == null ? true : options.force;
  369. const recursive = Boolean(options.recursive);
  370. const copySourceDirectory = options.copySourceDirectory == null
  371. ? true
  372. : Boolean(options.copySourceDirectory);
  373. return { force, recursive, copySourceDirectory };
  374. }
  375. function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
  376. return __awaiter(this, void 0, void 0, function* () {
  377. // Ensure there is not a run away recursive copy
  378. if (currentDepth >= 255)
  379. return;
  380. currentDepth++;
  381. yield mkdirP(destDir);
  382. const files = yield ioUtil.readdir(sourceDir);
  383. for (const fileName of files) {
  384. const srcFile = `${sourceDir}/${fileName}`;
  385. const destFile = `${destDir}/${fileName}`;
  386. const srcFileStat = yield ioUtil.lstat(srcFile);
  387. if (srcFileStat.isDirectory()) {
  388. // Recurse
  389. yield cpDirRecursive(srcFile, destFile, currentDepth, force);
  390. }
  391. else {
  392. yield copyFile(srcFile, destFile, force);
  393. }
  394. }
  395. // Change the mode for the newly created directory
  396. yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode);
  397. });
  398. }
  399. // Buffered file copy
  400. function copyFile(srcFile, destFile, force) {
  401. return __awaiter(this, void 0, void 0, function* () {
  402. if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
  403. // unlink/re-link it
  404. try {
  405. yield ioUtil.lstat(destFile);
  406. yield ioUtil.unlink(destFile);
  407. }
  408. catch (e) {
  409. // Try to override file permission
  410. if (e.code === 'EPERM') {
  411. yield ioUtil.chmod(destFile, '0666');
  412. yield ioUtil.unlink(destFile);
  413. }
  414. // other errors = it doesn't exist, no work to do
  415. }
  416. // Copy over symlink
  417. const symlinkFull = yield ioUtil.readlink(srcFile);
  418. yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null);
  419. }
  420. else if (!(yield ioUtil.exists(destFile)) || force) {
  421. yield ioUtil.copyFile(srcFile, destFile);
  422. }
  423. });
  424. }
  425. //# sourceMappingURL=io.js.map
  426. /***/ }),
  427. /***/ 2:
  428. /***/ (function(module, __unusedexports, __webpack_require__) {
  429. "use strict";
  430. const os = __webpack_require__(87);
  431. const macosRelease = __webpack_require__(118);
  432. const winRelease = __webpack_require__(49);
  433. const osName = (platform, release) => {
  434. if (!platform && release) {
  435. throw new Error('You can\'t specify a `release` without specifying `platform`');
  436. }
  437. platform = platform || os.platform();
  438. let id;
  439. if (platform === 'darwin') {
  440. if (!release && os.platform() === 'darwin') {
  441. release = os.release();
  442. }
  443. const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS';
  444. id = release ? macosRelease(release).name : '';
  445. return prefix + (id ? ' ' + id : '');
  446. }
  447. if (platform === 'linux') {
  448. if (!release && os.platform() === 'linux') {
  449. release = os.release();
  450. }
  451. id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : '';
  452. return 'Linux' + (id ? ' ' + id : '');
  453. }
  454. if (platform === 'win32') {
  455. if (!release && os.platform() === 'win32') {
  456. release = os.release();
  457. }
  458. id = release ? winRelease(release) : '';
  459. return 'Windows' + (id ? ' ' + id : '');
  460. }
  461. return platform;
  462. };
  463. module.exports = osName;
  464. /***/ }),
  465. /***/ 3:
  466. /***/ (function(module, __unusedexports, __webpack_require__) {
  467. var once = __webpack_require__(969);
  468. var noop = function() {};
  469. var isRequest = function(stream) {
  470. return stream.setHeader && typeof stream.abort === 'function';
  471. };
  472. var isChildProcess = function(stream) {
  473. return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3
  474. };
  475. var eos = function(stream, opts, callback) {
  476. if (typeof opts === 'function') return eos(stream, null, opts);
  477. if (!opts) opts = {};
  478. callback = once(callback || noop);
  479. var ws = stream._writableState;
  480. var rs = stream._readableState;
  481. var readable = opts.readable || (opts.readable !== false && stream.readable);
  482. var writable = opts.writable || (opts.writable !== false && stream.writable);
  483. var cancelled = false;
  484. var onlegacyfinish = function() {
  485. if (!stream.writable) onfinish();
  486. };
  487. var onfinish = function() {
  488. writable = false;
  489. if (!readable) callback.call(stream);
  490. };
  491. var onend = function() {
  492. readable = false;
  493. if (!writable) callback.call(stream);
  494. };
  495. var onexit = function(exitCode) {
  496. callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
  497. };
  498. var onerror = function(err) {
  499. callback.call(stream, err);
  500. };
  501. var onclose = function() {
  502. process.nextTick(onclosenexttick);
  503. };
  504. var onclosenexttick = function() {
  505. if (cancelled) return;
  506. if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));
  507. if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));
  508. };
  509. var onrequest = function() {
  510. stream.req.on('finish', onfinish);
  511. };
  512. if (isRequest(stream)) {
  513. stream.on('complete', onfinish);
  514. stream.on('abort', onclose);
  515. if (stream.req) onrequest();
  516. else stream.on('request', onrequest);
  517. } else if (writable && !ws) { // legacy streams
  518. stream.on('end', onlegacyfinish);
  519. stream.on('close', onlegacyfinish);
  520. }
  521. if (isChildProcess(stream)) stream.on('exit', onexit);
  522. stream.on('end', onend);
  523. stream.on('finish', onfinish);
  524. if (opts.error !== false) stream.on('error', onerror);
  525. stream.on('close', onclose);
  526. return function() {
  527. cancelled = true;
  528. stream.removeListener('complete', onfinish);
  529. stream.removeListener('abort', onclose);
  530. stream.removeListener('request', onrequest);
  531. if (stream.req) stream.req.removeListener('finish', onfinish);
  532. stream.removeListener('end', onlegacyfinish);
  533. stream.removeListener('close', onlegacyfinish);
  534. stream.removeListener('finish', onfinish);
  535. stream.removeListener('exit', onexit);
  536. stream.removeListener('end', onend);
  537. stream.removeListener('error', onerror);
  538. stream.removeListener('close', onclose);
  539. };
  540. };
  541. module.exports = eos;
  542. /***/ }),
  543. /***/ 4:
  544. /***/ (function(__unusedmodule, exports) {
  545. "use strict";
  546. Object.defineProperty(exports, "__esModule", {
  547. value: true
  548. });
  549. exports.default = void 0;
  550. var _default = '00000000-0000-0000-0000-000000000000';
  551. exports.default = _default;
  552. /***/ }),
  553. /***/ 9:
  554. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  555. "use strict";
  556. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  557. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  558. return new (P || (P = Promise))(function (resolve, reject) {
  559. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  560. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  561. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  562. step((generator = generator.apply(thisArg, _arguments || [])).next());
  563. });
  564. };
  565. Object.defineProperty(exports, "__esModule", { value: true });
  566. const os = __webpack_require__(87);
  567. const events = __webpack_require__(614);
  568. const child = __webpack_require__(129);
  569. /* eslint-disable @typescript-eslint/unbound-method */
  570. const IS_WINDOWS = process.platform === 'win32';
  571. /*
  572. * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way.
  573. */
  574. class ToolRunner extends events.EventEmitter {
  575. constructor(toolPath, args, options) {
  576. super();
  577. if (!toolPath) {
  578. throw new Error("Parameter 'toolPath' cannot be null or empty.");
  579. }
  580. this.toolPath = toolPath;
  581. this.args = args || [];
  582. this.options = options || {};
  583. }
  584. _debug(message) {
  585. if (this.options.listeners && this.options.listeners.debug) {
  586. this.options.listeners.debug(message);
  587. }
  588. }
  589. _getCommandString(options, noPrefix) {
  590. const toolPath = this._getSpawnFileName();
  591. const args = this._getSpawnArgs(options);
  592. let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool
  593. if (IS_WINDOWS) {
  594. // Windows + cmd file
  595. if (this._isCmdFile()) {
  596. cmd += toolPath;
  597. for (const a of args) {
  598. cmd += ` ${a}`;
  599. }
  600. }
  601. // Windows + verbatim
  602. else if (options.windowsVerbatimArguments) {
  603. cmd += `"${toolPath}"`;
  604. for (const a of args) {
  605. cmd += ` ${a}`;
  606. }
  607. }
  608. // Windows (regular)
  609. else {
  610. cmd += this._windowsQuoteCmdArg(toolPath);
  611. for (const a of args) {
  612. cmd += ` ${this._windowsQuoteCmdArg(a)}`;
  613. }
  614. }
  615. }
  616. else {
  617. // OSX/Linux - this can likely be improved with some form of quoting.
  618. // creating processes on Unix is fundamentally different than Windows.
  619. // on Unix, execvp() takes an arg array.
  620. cmd += toolPath;
  621. for (const a of args) {
  622. cmd += ` ${a}`;
  623. }
  624. }
  625. return cmd;
  626. }
  627. _processLineBuffer(data, strBuffer, onLine) {
  628. try {
  629. let s = strBuffer + data.toString();
  630. let n = s.indexOf(os.EOL);
  631. while (n > -1) {
  632. const line = s.substring(0, n);
  633. onLine(line);
  634. // the rest of the string ...
  635. s = s.substring(n + os.EOL.length);
  636. n = s.indexOf(os.EOL);
  637. }
  638. strBuffer = s;
  639. }
  640. catch (err) {
  641. // streaming lines to console is best effort. Don't fail a build.
  642. this._debug(`error processing line. Failed with error ${err}`);
  643. }
  644. }
  645. _getSpawnFileName() {
  646. if (IS_WINDOWS) {
  647. if (this._isCmdFile()) {
  648. return process.env['COMSPEC'] || 'cmd.exe';
  649. }
  650. }
  651. return this.toolPath;
  652. }
  653. _getSpawnArgs(options) {
  654. if (IS_WINDOWS) {
  655. if (this._isCmdFile()) {
  656. let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;
  657. for (const a of this.args) {
  658. argline += ' ';
  659. argline += options.windowsVerbatimArguments
  660. ? a
  661. : this._windowsQuoteCmdArg(a);
  662. }
  663. argline += '"';
  664. return [argline];
  665. }
  666. }
  667. return this.args;
  668. }
  669. _endsWith(str, end) {
  670. return str.endsWith(end);
  671. }
  672. _isCmdFile() {
  673. const upperToolPath = this.toolPath.toUpperCase();
  674. return (this._endsWith(upperToolPath, '.CMD') ||
  675. this._endsWith(upperToolPath, '.BAT'));
  676. }
  677. _windowsQuoteCmdArg(arg) {
  678. // for .exe, apply the normal quoting rules that libuv applies
  679. if (!this._isCmdFile()) {
  680. return this._uvQuoteCmdArg(arg);
  681. }
  682. // otherwise apply quoting rules specific to the cmd.exe command line parser.
  683. // the libuv rules are generic and are not designed specifically for cmd.exe
  684. // command line parser.
  685. //
  686. // for a detailed description of the cmd.exe command line parser, refer to
  687. // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912
  688. // need quotes for empty arg
  689. if (!arg) {
  690. return '""';
  691. }
  692. // determine whether the arg needs to be quoted
  693. const cmdSpecialChars = [
  694. ' ',
  695. '\t',
  696. '&',
  697. '(',
  698. ')',
  699. '[',
  700. ']',
  701. '{',
  702. '}',
  703. '^',
  704. '=',
  705. ';',
  706. '!',
  707. "'",
  708. '+',
  709. ',',
  710. '`',
  711. '~',
  712. '|',
  713. '<',
  714. '>',
  715. '"'
  716. ];
  717. let needsQuotes = false;
  718. for (const char of arg) {
  719. if (cmdSpecialChars.some(x => x === char)) {
  720. needsQuotes = true;
  721. break;
  722. }
  723. }
  724. // short-circuit if quotes not needed
  725. if (!needsQuotes) {
  726. return arg;
  727. }
  728. // the following quoting rules are very similar to the rules that by libuv applies.
  729. //
  730. // 1) wrap the string in quotes
  731. //
  732. // 2) double-up quotes - i.e. " => ""
  733. //
  734. // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately
  735. // doesn't work well with a cmd.exe command line.
  736. //
  737. // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app.
  738. // for example, the command line:
  739. // foo.exe "myarg:""my val"""
  740. // is parsed by a .NET console app into an arg array:
  741. // [ "myarg:\"my val\"" ]
  742. // which is the same end result when applying libuv quoting rules. although the actual
  743. // command line from libuv quoting rules would look like:
  744. // foo.exe "myarg:\"my val\""
  745. //
  746. // 3) double-up slashes that precede a quote,
  747. // e.g. hello \world => "hello \world"
  748. // hello\"world => "hello\\""world"
  749. // hello\\"world => "hello\\\\""world"
  750. // hello world\ => "hello world\\"
  751. //
  752. // technically this is not required for a cmd.exe command line, or the batch argument parser.
  753. // the reasons for including this as a .cmd quoting rule are:
  754. //
  755. // a) this is optimized for the scenario where the argument is passed from the .cmd file to an
  756. // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.
  757. //
  758. // b) it's what we've been doing previously (by deferring to node default behavior) and we
  759. // haven't heard any complaints about that aspect.
  760. //
  761. // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be
  762. // escaped when used on the command line directly - even though within a .cmd file % can be escaped
  763. // by using %%.
  764. //
  765. // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts
  766. // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.
  767. //
  768. // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would
  769. // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the
  770. // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args
  771. // to an external program.
  772. //
  773. // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.
  774. // % can be escaped within a .cmd file.
  775. let reverse = '"';
  776. let quoteHit = true;
  777. for (let i = arg.length; i > 0; i--) {
  778. // walk the string in reverse
  779. reverse += arg[i - 1];
  780. if (quoteHit && arg[i - 1] === '\\') {
  781. reverse += '\\'; // double the slash
  782. }
  783. else if (arg[i - 1] === '"') {
  784. quoteHit = true;
  785. reverse += '"'; // double the quote
  786. }
  787. else {
  788. quoteHit = false;
  789. }
  790. }
  791. reverse += '"';
  792. return reverse
  793. .split('')
  794. .reverse()
  795. .join('');
  796. }
  797. _uvQuoteCmdArg(arg) {
  798. // Tool runner wraps child_process.spawn() and needs to apply the same quoting as
  799. // Node in certain cases where the undocumented spawn option windowsVerbatimArguments
  800. // is used.
  801. //
  802. // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,
  803. // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),
  804. // pasting copyright notice from Node within this function:
  805. //
  806. // Copyright Joyent, Inc. and other Node contributors. All rights reserved.
  807. //
  808. // Permission is hereby granted, free of charge, to any person obtaining a copy
  809. // of this software and associated documentation files (the "Software"), to
  810. // deal in the Software without restriction, including without limitation the
  811. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  812. // sell copies of the Software, and to permit persons to whom the Software is
  813. // furnished to do so, subject to the following conditions:
  814. //
  815. // The above copyright notice and this permission notice shall be included in
  816. // all copies or substantial portions of the Software.
  817. //
  818. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  819. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  820. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  821. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  822. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  823. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  824. // IN THE SOFTWARE.
  825. if (!arg) {
  826. // Need double quotation for empty argument
  827. return '""';
  828. }
  829. if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) {
  830. // No quotation needed
  831. return arg;
  832. }
  833. if (!arg.includes('"') && !arg.includes('\\')) {
  834. // No embedded double quotes or backslashes, so I can just wrap
  835. // quote marks around the whole thing.
  836. return `"${arg}"`;
  837. }
  838. // Expected input/output:
  839. // input : hello"world
  840. // output: "hello\"world"
  841. // input : hello""world
  842. // output: "hello\"\"world"
  843. // input : hello\world
  844. // output: hello\world
  845. // input : hello\\world
  846. // output: hello\\world
  847. // input : hello\"world
  848. // output: "hello\\\"world"
  849. // input : hello\\"world
  850. // output: "hello\\\\\"world"
  851. // input : hello world\
  852. // output: "hello world\\" - note the comment in libuv actually reads "hello world\"
  853. // but it appears the comment is wrong, it should be "hello world\\"
  854. let reverse = '"';
  855. let quoteHit = true;
  856. for (let i = arg.length; i > 0; i--) {
  857. // walk the string in reverse
  858. reverse += arg[i - 1];
  859. if (quoteHit && arg[i - 1] === '\\') {
  860. reverse += '\\';
  861. }
  862. else if (arg[i - 1] === '"') {
  863. quoteHit = true;
  864. reverse += '\\';
  865. }
  866. else {
  867. quoteHit = false;
  868. }
  869. }
  870. reverse += '"';
  871. return reverse
  872. .split('')
  873. .reverse()
  874. .join('');
  875. }
  876. _cloneExecOptions(options) {
  877. options = options || {};
  878. const result = {
  879. cwd: options.cwd || process.cwd(),
  880. env: options.env || process.env,
  881. silent: options.silent || false,
  882. windowsVerbatimArguments: options.windowsVerbatimArguments || false,
  883. failOnStdErr: options.failOnStdErr || false,
  884. ignoreReturnCode: options.ignoreReturnCode || false,
  885. delay: options.delay || 10000
  886. };
  887. result.outStream = options.outStream || process.stdout;
  888. result.errStream = options.errStream || process.stderr;
  889. return result;
  890. }
  891. _getSpawnOptions(options, toolPath) {
  892. options = options || {};
  893. const result = {};
  894. result.cwd = options.cwd;
  895. result.env = options.env;
  896. result['windowsVerbatimArguments'] =
  897. options.windowsVerbatimArguments || this._isCmdFile();
  898. if (options.windowsVerbatimArguments) {
  899. result.argv0 = `"${toolPath}"`;
  900. }
  901. return result;
  902. }
  903. /**
  904. * Exec a tool.
  905. * Output will be streamed to the live console.
  906. * Returns promise with return code
  907. *
  908. * @param tool path to tool to exec
  909. * @param options optional exec options. See ExecOptions
  910. * @returns number
  911. */
  912. exec() {
  913. return __awaiter(this, void 0, void 0, function* () {
  914. return new Promise((resolve, reject) => {
  915. this._debug(`exec tool: ${this.toolPath}`);
  916. this._debug('arguments:');
  917. for (const arg of this.args) {
  918. this._debug(` ${arg}`);
  919. }
  920. const optionsNonNull = this._cloneExecOptions(this.options);
  921. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  922. optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL);
  923. }
  924. const state = new ExecState(optionsNonNull, this.toolPath);
  925. state.on('debug', (message) => {
  926. this._debug(message);
  927. });
  928. const fileName = this._getSpawnFileName();
  929. const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName));
  930. const stdbuffer = '';
  931. if (cp.stdout) {
  932. cp.stdout.on('data', (data) => {
  933. if (this.options.listeners && this.options.listeners.stdout) {
  934. this.options.listeners.stdout(data);
  935. }
  936. if (!optionsNonNull.silent && optionsNonNull.outStream) {
  937. optionsNonNull.outStream.write(data);
  938. }
  939. this._processLineBuffer(data, stdbuffer, (line) => {
  940. if (this.options.listeners && this.options.listeners.stdline) {
  941. this.options.listeners.stdline(line);
  942. }
  943. });
  944. });
  945. }
  946. const errbuffer = '';
  947. if (cp.stderr) {
  948. cp.stderr.on('data', (data) => {
  949. state.processStderr = true;
  950. if (this.options.listeners && this.options.listeners.stderr) {
  951. this.options.listeners.stderr(data);
  952. }
  953. if (!optionsNonNull.silent &&
  954. optionsNonNull.errStream &&
  955. optionsNonNull.outStream) {
  956. const s = optionsNonNull.failOnStdErr
  957. ? optionsNonNull.errStream
  958. : optionsNonNull.outStream;
  959. s.write(data);
  960. }
  961. this._processLineBuffer(data, errbuffer, (line) => {
  962. if (this.options.listeners && this.options.listeners.errline) {
  963. this.options.listeners.errline(line);
  964. }
  965. });
  966. });
  967. }
  968. cp.on('error', (err) => {
  969. state.processError = err.message;
  970. state.processExited = true;
  971. state.processClosed = true;
  972. state.CheckComplete();
  973. });
  974. cp.on('exit', (code) => {
  975. state.processExitCode = code;
  976. state.processExited = true;
  977. this._debug(`Exit code ${code} received from tool '${this.toolPath}'`);
  978. state.CheckComplete();
  979. });
  980. cp.on('close', (code) => {
  981. state.processExitCode = code;
  982. state.processExited = true;
  983. state.processClosed = true;
  984. this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);
  985. state.CheckComplete();
  986. });
  987. state.on('done', (error, exitCode) => {
  988. if (stdbuffer.length > 0) {
  989. this.emit('stdline', stdbuffer);
  990. }
  991. if (errbuffer.length > 0) {
  992. this.emit('errline', errbuffer);
  993. }
  994. cp.removeAllListeners();
  995. if (error) {
  996. reject(error);
  997. }
  998. else {
  999. resolve(exitCode);
  1000. }
  1001. });
  1002. });
  1003. });
  1004. }
  1005. }
  1006. exports.ToolRunner = ToolRunner;
  1007. /**
  1008. * Convert an arg string to an array of args. Handles escaping
  1009. *
  1010. * @param argString string of arguments
  1011. * @returns string[] array of arguments
  1012. */
  1013. function argStringToArray(argString) {
  1014. const args = [];
  1015. let inQuotes = false;
  1016. let escaped = false;
  1017. let arg = '';
  1018. function append(c) {
  1019. // we only escape double quotes.
  1020. if (escaped && c !== '"') {
  1021. arg += '\\';
  1022. }
  1023. arg += c;
  1024. escaped = false;
  1025. }
  1026. for (let i = 0; i < argString.length; i++) {
  1027. const c = argString.charAt(i);
  1028. if (c === '"') {
  1029. if (!escaped) {
  1030. inQuotes = !inQuotes;
  1031. }
  1032. else {
  1033. append(c);
  1034. }
  1035. continue;
  1036. }
  1037. if (c === '\\' && escaped) {
  1038. append(c);
  1039. continue;
  1040. }
  1041. if (c === '\\' && inQuotes) {
  1042. escaped = true;
  1043. continue;
  1044. }
  1045. if (c === ' ' && !inQuotes) {
  1046. if (arg.length > 0) {
  1047. args.push(arg);
  1048. arg = '';
  1049. }
  1050. continue;
  1051. }
  1052. append(c);
  1053. }
  1054. if (arg.length > 0) {
  1055. args.push(arg.trim());
  1056. }
  1057. return args;
  1058. }
  1059. exports.argStringToArray = argStringToArray;
  1060. class ExecState extends events.EventEmitter {
  1061. constructor(options, toolPath) {
  1062. super();
  1063. this.processClosed = false; // tracks whether the process has exited and stdio is closed
  1064. this.processError = '';
  1065. this.processExitCode = 0;
  1066. this.processExited = false; // tracks whether the process has exited
  1067. this.processStderr = false; // tracks whether stderr was written to
  1068. this.delay = 10000; // 10 seconds
  1069. this.done = false;
  1070. this.timeout = null;
  1071. if (!toolPath) {
  1072. throw new Error('toolPath must not be empty');
  1073. }
  1074. this.options = options;
  1075. this.toolPath = toolPath;
  1076. if (options.delay) {
  1077. this.delay = options.delay;
  1078. }
  1079. }
  1080. CheckComplete() {
  1081. if (this.done) {
  1082. return;
  1083. }
  1084. if (this.processClosed) {
  1085. this._setResult();
  1086. }
  1087. else if (this.processExited) {
  1088. this.timeout = setTimeout(ExecState.HandleTimeout, this.delay, this);
  1089. }
  1090. }
  1091. _debug(message) {
  1092. this.emit('debug', message);
  1093. }
  1094. _setResult() {
  1095. // determine whether there is an error
  1096. let error;
  1097. if (this.processExited) {
  1098. if (this.processError) {
  1099. error = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`);
  1100. }
  1101. else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) {
  1102. error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`);
  1103. }
  1104. else if (this.processStderr && this.options.failOnStdErr) {
  1105. error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`);
  1106. }
  1107. }
  1108. // clear the timeout
  1109. if (this.timeout) {
  1110. clearTimeout(this.timeout);
  1111. this.timeout = null;
  1112. }
  1113. this.done = true;
  1114. this.emit('done', error, this.processExitCode);
  1115. }
  1116. static HandleTimeout(state) {
  1117. if (state.done) {
  1118. return;
  1119. }
  1120. if (!state.processClosed && state.processExited) {
  1121. const message = `The STDIO streams did not close within ${state.delay /
  1122. 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;
  1123. state._debug(message);
  1124. }
  1125. state._setResult();
  1126. }
  1127. }
  1128. //# sourceMappingURL=toolrunner.js.map
  1129. /***/ }),
  1130. /***/ 11:
  1131. /***/ (function(module) {
  1132. // Returns a wrapper function that returns a wrapped callback
  1133. // The wrapper function should do some stuff, and return a
  1134. // presumably different callback function.
  1135. // This makes sure that own properties are retained, so that
  1136. // decorations and such are not lost along the way.
  1137. module.exports = wrappy
  1138. function wrappy (fn, cb) {
  1139. if (fn && cb) return wrappy(fn)(cb)
  1140. if (typeof fn !== 'function')
  1141. throw new TypeError('need wrapper function')
  1142. Object.keys(fn).forEach(function (k) {
  1143. wrapper[k] = fn[k]
  1144. })
  1145. return wrapper
  1146. function wrapper() {
  1147. var args = new Array(arguments.length)
  1148. for (var i = 0; i < args.length; i++) {
  1149. args[i] = arguments[i]
  1150. }
  1151. var ret = fn.apply(this, args)
  1152. var cb = args[args.length-1]
  1153. if (typeof ret === 'function' && ret !== cb) {
  1154. Object.keys(cb).forEach(function (k) {
  1155. ret[k] = cb[k]
  1156. })
  1157. }
  1158. return ret
  1159. }
  1160. }
  1161. /***/ }),
  1162. /***/ 13:
  1163. /***/ (function(module) {
  1164. "use strict";
  1165. var replace = String.prototype.replace;
  1166. var percentTwenties = /%20/g;
  1167. var Format = {
  1168. RFC1738: 'RFC1738',
  1169. RFC3986: 'RFC3986'
  1170. };
  1171. module.exports = {
  1172. 'default': Format.RFC3986,
  1173. formatters: {
  1174. RFC1738: function (value) {
  1175. return replace.call(value, percentTwenties, '+');
  1176. },
  1177. RFC3986: function (value) {
  1178. return String(value);
  1179. }
  1180. },
  1181. RFC1738: Format.RFC1738,
  1182. RFC3986: Format.RFC3986
  1183. };
  1184. /***/ }),
  1185. /***/ 16:
  1186. /***/ (function(module) {
  1187. module.exports = require("tls");
  1188. /***/ }),
  1189. /***/ 18:
  1190. /***/ (function() {
  1191. eval("require")("encoding");
  1192. /***/ }),
  1193. /***/ 19:
  1194. /***/ (function(module, __unusedexports, __webpack_require__) {
  1195. module.exports = authenticationPlugin;
  1196. const { Deprecation } = __webpack_require__(692);
  1197. const once = __webpack_require__(969);
  1198. const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
  1199. const authenticate = __webpack_require__(674);
  1200. const beforeRequest = __webpack_require__(471);
  1201. const requestError = __webpack_require__(349);
  1202. function authenticationPlugin(octokit, options) {
  1203. if (options.auth) {
  1204. octokit.authenticate = () => {
  1205. deprecateAuthenticate(
  1206. octokit.log,
  1207. new Deprecation(
  1208. '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'
  1209. )
  1210. );
  1211. };
  1212. return;
  1213. }
  1214. const state = {
  1215. octokit,
  1216. auth: false
  1217. };
  1218. octokit.authenticate = authenticate.bind(null, state);
  1219. octokit.hook.before("request", beforeRequest.bind(null, state));
  1220. octokit.hook.error("request", requestError.bind(null, state));
  1221. }
  1222. /***/ }),
  1223. /***/ 20:
  1224. /***/ (function(module, __unusedexports, __webpack_require__) {
  1225. "use strict";
  1226. const cp = __webpack_require__(129);
  1227. const parse = __webpack_require__(568);
  1228. const enoent = __webpack_require__(881);
  1229. function spawn(command, args, options) {
  1230. // Parse the arguments
  1231. const parsed = parse(command, args, options);
  1232. // Spawn the child process
  1233. const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
  1234. // Hook into child process "exit" event to emit an error if the command
  1235. // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1236. enoent.hookChildProcess(spawned, parsed);
  1237. return spawned;
  1238. }
  1239. function spawnSync(command, args, options) {
  1240. // Parse the arguments
  1241. const parsed = parse(command, args, options);
  1242. // Spawn the child process
  1243. const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
  1244. // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
  1245. result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
  1246. return result;
  1247. }
  1248. module.exports = spawn;
  1249. module.exports.spawn = spawn;
  1250. module.exports.sync = spawnSync;
  1251. module.exports._parse = parse;
  1252. module.exports._enoent = enoent;
  1253. /***/ }),
  1254. /***/ 25:
  1255. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1256. "use strict";
  1257. Object.defineProperty(exports, "__esModule", {
  1258. value: true
  1259. });
  1260. Object.defineProperty(exports, "v1", {
  1261. enumerable: true,
  1262. get: function () {
  1263. return _v.default;
  1264. }
  1265. });
  1266. Object.defineProperty(exports, "v3", {
  1267. enumerable: true,
  1268. get: function () {
  1269. return _v2.default;
  1270. }
  1271. });
  1272. Object.defineProperty(exports, "v4", {
  1273. enumerable: true,
  1274. get: function () {
  1275. return _v3.default;
  1276. }
  1277. });
  1278. Object.defineProperty(exports, "v5", {
  1279. enumerable: true,
  1280. get: function () {
  1281. return _v4.default;
  1282. }
  1283. });
  1284. Object.defineProperty(exports, "NIL", {
  1285. enumerable: true,
  1286. get: function () {
  1287. return _nil.default;
  1288. }
  1289. });
  1290. Object.defineProperty(exports, "version", {
  1291. enumerable: true,
  1292. get: function () {
  1293. return _version.default;
  1294. }
  1295. });
  1296. Object.defineProperty(exports, "validate", {
  1297. enumerable: true,
  1298. get: function () {
  1299. return _validate.default;
  1300. }
  1301. });
  1302. Object.defineProperty(exports, "stringify", {
  1303. enumerable: true,
  1304. get: function () {
  1305. return _stringify.default;
  1306. }
  1307. });
  1308. Object.defineProperty(exports, "parse", {
  1309. enumerable: true,
  1310. get: function () {
  1311. return _parse.default;
  1312. }
  1313. });
  1314. var _v = _interopRequireDefault(__webpack_require__(810));
  1315. var _v2 = _interopRequireDefault(__webpack_require__(572));
  1316. var _v3 = _interopRequireDefault(__webpack_require__(293));
  1317. var _v4 = _interopRequireDefault(__webpack_require__(638));
  1318. var _nil = _interopRequireDefault(__webpack_require__(4));
  1319. var _version = _interopRequireDefault(__webpack_require__(135));
  1320. var _validate = _interopRequireDefault(__webpack_require__(634));
  1321. var _stringify = _interopRequireDefault(__webpack_require__(960));
  1322. var _parse = _interopRequireDefault(__webpack_require__(204));
  1323. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  1324. /***/ }),
  1325. /***/ 26:
  1326. /***/ (function(module, __unusedexports, __webpack_require__) {
  1327. var hasMap = typeof Map === 'function' && Map.prototype;
  1328. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  1329. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  1330. var mapForEach = hasMap && Map.prototype.forEach;
  1331. var hasSet = typeof Set === 'function' && Set.prototype;
  1332. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  1333. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  1334. var setForEach = hasSet && Set.prototype.forEach;
  1335. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  1336. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  1337. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  1338. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  1339. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  1340. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  1341. var booleanValueOf = Boolean.prototype.valueOf;
  1342. var objectToString = Object.prototype.toString;
  1343. var functionToString = Function.prototype.toString;
  1344. var match = String.prototype.match;
  1345. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  1346. var gOPS = Object.getOwnPropertySymbols;
  1347. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  1348. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  1349. var isEnumerable = Object.prototype.propertyIsEnumerable;
  1350. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  1351. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  1352. ? function (O) {
  1353. return O.__proto__; // eslint-disable-line no-proto
  1354. }
  1355. : null
  1356. );
  1357. var inspectCustom = __webpack_require__(330).custom;
  1358. var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
  1359. var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
  1360. module.exports = function inspect_(obj, options, depth, seen) {
  1361. var opts = options || {};
  1362. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  1363. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  1364. }
  1365. if (
  1366. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  1367. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  1368. : opts.maxStringLength !== null
  1369. )
  1370. ) {
  1371. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  1372. }
  1373. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  1374. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  1375. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  1376. }
  1377. if (
  1378. has(opts, 'indent')
  1379. && opts.indent !== null
  1380. && opts.indent !== '\t'
  1381. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  1382. ) {
  1383. throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
  1384. }
  1385. if (typeof obj === 'undefined') {
  1386. return 'undefined';
  1387. }
  1388. if (obj === null) {
  1389. return 'null';
  1390. }
  1391. if (typeof obj === 'boolean') {
  1392. return obj ? 'true' : 'false';
  1393. }
  1394. if (typeof obj === 'string') {
  1395. return inspectString(obj, opts);
  1396. }
  1397. if (typeof obj === 'number') {
  1398. if (obj === 0) {
  1399. return Infinity / obj > 0 ? '0' : '-0';
  1400. }
  1401. return String(obj);
  1402. }
  1403. if (typeof obj === 'bigint') {
  1404. return String(obj) + 'n';
  1405. }
  1406. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  1407. if (typeof depth === 'undefined') { depth = 0; }
  1408. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  1409. return isArray(obj) ? '[Array]' : '[Object]';
  1410. }
  1411. var indent = getIndent(opts, depth);
  1412. if (typeof seen === 'undefined') {
  1413. seen = [];
  1414. } else if (indexOf(seen, obj) >= 0) {
  1415. return '[Circular]';
  1416. }
  1417. function inspect(value, from, noIndent) {
  1418. if (from) {
  1419. seen = seen.slice();
  1420. seen.push(from);
  1421. }
  1422. if (noIndent) {
  1423. var newOpts = {
  1424. depth: opts.depth
  1425. };
  1426. if (has(opts, 'quoteStyle')) {
  1427. newOpts.quoteStyle = opts.quoteStyle;
  1428. }
  1429. return inspect_(value, newOpts, depth + 1, seen);
  1430. }
  1431. return inspect_(value, opts, depth + 1, seen);
  1432. }
  1433. if (typeof obj === 'function') {
  1434. var name = nameOf(obj);
  1435. var keys = arrObjKeys(obj, inspect);
  1436. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
  1437. }
  1438. if (isSymbol(obj)) {
  1439. var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  1440. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  1441. }
  1442. if (isElement(obj)) {
  1443. var s = '<' + String(obj.nodeName).toLowerCase();
  1444. var attrs = obj.attributes || [];
  1445. for (var i = 0; i < attrs.length; i++) {
  1446. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  1447. }
  1448. s += '>';
  1449. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  1450. s += '</' + String(obj.nodeName).toLowerCase() + '>';
  1451. return s;
  1452. }
  1453. if (isArray(obj)) {
  1454. if (obj.length === 0) { return '[]'; }
  1455. var xs = arrObjKeys(obj, inspect);
  1456. if (indent && !singleLineValues(xs)) {
  1457. return '[' + indentedJoin(xs, indent) + ']';
  1458. }
  1459. return '[ ' + xs.join(', ') + ' ]';
  1460. }
  1461. if (isError(obj)) {
  1462. var parts = arrObjKeys(obj, inspect);
  1463. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  1464. return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
  1465. }
  1466. if (typeof obj === 'object' && customInspect) {
  1467. if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
  1468. return obj[inspectSymbol]();
  1469. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  1470. return obj.inspect();
  1471. }
  1472. }
  1473. if (isMap(obj)) {
  1474. var mapParts = [];
  1475. mapForEach.call(obj, function (value, key) {
  1476. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  1477. });
  1478. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  1479. }
  1480. if (isSet(obj)) {
  1481. var setParts = [];
  1482. setForEach.call(obj, function (value) {
  1483. setParts.push(inspect(value, obj));
  1484. });
  1485. return collectionOf('Set', setSize.call(obj), setParts, indent);
  1486. }
  1487. if (isWeakMap(obj)) {
  1488. return weakCollectionOf('WeakMap');
  1489. }
  1490. if (isWeakSet(obj)) {
  1491. return weakCollectionOf('WeakSet');
  1492. }
  1493. if (isWeakRef(obj)) {
  1494. return weakCollectionOf('WeakRef');
  1495. }
  1496. if (isNumber(obj)) {
  1497. return markBoxed(inspect(Number(obj)));
  1498. }
  1499. if (isBigInt(obj)) {
  1500. return markBoxed(inspect(bigIntValueOf.call(obj)));
  1501. }
  1502. if (isBoolean(obj)) {
  1503. return markBoxed(booleanValueOf.call(obj));
  1504. }
  1505. if (isString(obj)) {
  1506. return markBoxed(inspect(String(obj)));
  1507. }
  1508. if (!isDate(obj) && !isRegExp(obj)) {
  1509. var ys = arrObjKeys(obj, inspect);
  1510. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  1511. var protoTag = obj instanceof Object ? '' : 'null prototype';
  1512. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
  1513. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  1514. var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
  1515. if (ys.length === 0) { return tag + '{}'; }
  1516. if (indent) {
  1517. return tag + '{' + indentedJoin(ys, indent) + '}';
  1518. }
  1519. return tag + '{ ' + ys.join(', ') + ' }';
  1520. }
  1521. return String(obj);
  1522. };
  1523. function wrapQuotes(s, defaultStyle, opts) {
  1524. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  1525. return quoteChar + s + quoteChar;
  1526. }
  1527. function quote(s) {
  1528. return String(s).replace(/"/g, '&quot;');
  1529. }
  1530. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1531. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1532. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1533. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1534. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1535. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1536. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  1537. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  1538. function isSymbol(obj) {
  1539. if (hasShammedSymbols) {
  1540. return obj && typeof obj === 'object' && obj instanceof Symbol;
  1541. }
  1542. if (typeof obj === 'symbol') {
  1543. return true;
  1544. }
  1545. if (!obj || typeof obj !== 'object' || !symToString) {
  1546. return false;
  1547. }
  1548. try {
  1549. symToString.call(obj);
  1550. return true;
  1551. } catch (e) {}
  1552. return false;
  1553. }
  1554. function isBigInt(obj) {
  1555. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  1556. return false;
  1557. }
  1558. try {
  1559. bigIntValueOf.call(obj);
  1560. return true;
  1561. } catch (e) {}
  1562. return false;
  1563. }
  1564. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  1565. function has(obj, key) {
  1566. return hasOwn.call(obj, key);
  1567. }
  1568. function toStr(obj) {
  1569. return objectToString.call(obj);
  1570. }
  1571. function nameOf(f) {
  1572. if (f.name) { return f.name; }
  1573. var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  1574. if (m) { return m[1]; }
  1575. return null;
  1576. }
  1577. function indexOf(xs, x) {
  1578. if (xs.indexOf) { return xs.indexOf(x); }
  1579. for (var i = 0, l = xs.length; i < l; i++) {
  1580. if (xs[i] === x) { return i; }
  1581. }
  1582. return -1;
  1583. }
  1584. function isMap(x) {
  1585. if (!mapSize || !x || typeof x !== 'object') {
  1586. return false;
  1587. }
  1588. try {
  1589. mapSize.call(x);
  1590. try {
  1591. setSize.call(x);
  1592. } catch (s) {
  1593. return true;
  1594. }
  1595. return x instanceof Map; // core-js workaround, pre-v2.5.0
  1596. } catch (e) {}
  1597. return false;
  1598. }
  1599. function isWeakMap(x) {
  1600. if (!weakMapHas || !x || typeof x !== 'object') {
  1601. return false;
  1602. }
  1603. try {
  1604. weakMapHas.call(x, weakMapHas);
  1605. try {
  1606. weakSetHas.call(x, weakSetHas);
  1607. } catch (s) {
  1608. return true;
  1609. }
  1610. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  1611. } catch (e) {}
  1612. return false;
  1613. }
  1614. function isWeakRef(x) {
  1615. if (!weakRefDeref || !x || typeof x !== 'object') {
  1616. return false;
  1617. }
  1618. try {
  1619. weakRefDeref.call(x);
  1620. return true;
  1621. } catch (e) {}
  1622. return false;
  1623. }
  1624. function isSet(x) {
  1625. if (!setSize || !x || typeof x !== 'object') {
  1626. return false;
  1627. }
  1628. try {
  1629. setSize.call(x);
  1630. try {
  1631. mapSize.call(x);
  1632. } catch (m) {
  1633. return true;
  1634. }
  1635. return x instanceof Set; // core-js workaround, pre-v2.5.0
  1636. } catch (e) {}
  1637. return false;
  1638. }
  1639. function isWeakSet(x) {
  1640. if (!weakSetHas || !x || typeof x !== 'object') {
  1641. return false;
  1642. }
  1643. try {
  1644. weakSetHas.call(x, weakSetHas);
  1645. try {
  1646. weakMapHas.call(x, weakMapHas);
  1647. } catch (s) {
  1648. return true;
  1649. }
  1650. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  1651. } catch (e) {}
  1652. return false;
  1653. }
  1654. function isElement(x) {
  1655. if (!x || typeof x !== 'object') { return false; }
  1656. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  1657. return true;
  1658. }
  1659. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  1660. }
  1661. function inspectString(str, opts) {
  1662. if (str.length > opts.maxStringLength) {
  1663. var remaining = str.length - opts.maxStringLength;
  1664. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  1665. return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
  1666. }
  1667. // eslint-disable-next-line no-control-regex
  1668. var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
  1669. return wrapQuotes(s, 'single', opts);
  1670. }
  1671. function lowbyte(c) {
  1672. var n = c.charCodeAt(0);
  1673. var x = {
  1674. 8: 'b',
  1675. 9: 't',
  1676. 10: 'n',
  1677. 12: 'f',
  1678. 13: 'r'
  1679. }[n];
  1680. if (x) { return '\\' + x; }
  1681. return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
  1682. }
  1683. function markBoxed(str) {
  1684. return 'Object(' + str + ')';
  1685. }
  1686. function weakCollectionOf(type) {
  1687. return type + ' { ? }';
  1688. }
  1689. function collectionOf(type, size, entries, indent) {
  1690. var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
  1691. return type + ' (' + size + ') {' + joinedEntries + '}';
  1692. }
  1693. function singleLineValues(xs) {
  1694. for (var i = 0; i < xs.length; i++) {
  1695. if (indexOf(xs[i], '\n') >= 0) {
  1696. return false;
  1697. }
  1698. }
  1699. return true;
  1700. }
  1701. function getIndent(opts, depth) {
  1702. var baseIndent;
  1703. if (opts.indent === '\t') {
  1704. baseIndent = '\t';
  1705. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  1706. baseIndent = Array(opts.indent + 1).join(' ');
  1707. } else {
  1708. return null;
  1709. }
  1710. return {
  1711. base: baseIndent,
  1712. prev: Array(depth + 1).join(baseIndent)
  1713. };
  1714. }
  1715. function indentedJoin(xs, indent) {
  1716. if (xs.length === 0) { return ''; }
  1717. var lineJoiner = '\n' + indent.prev + indent.base;
  1718. return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
  1719. }
  1720. function arrObjKeys(obj, inspect) {
  1721. var isArr = isArray(obj);
  1722. var xs = [];
  1723. if (isArr) {
  1724. xs.length = obj.length;
  1725. for (var i = 0; i < obj.length; i++) {
  1726. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  1727. }
  1728. }
  1729. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  1730. var symMap;
  1731. if (hasShammedSymbols) {
  1732. symMap = {};
  1733. for (var k = 0; k < syms.length; k++) {
  1734. symMap['$' + syms[k]] = syms[k];
  1735. }
  1736. }
  1737. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  1738. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  1739. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  1740. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  1741. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  1742. continue; // eslint-disable-line no-restricted-syntax, no-continue
  1743. } else if ((/[^\w$]/).test(key)) {
  1744. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  1745. } else {
  1746. xs.push(key + ': ' + inspect(obj[key], obj));
  1747. }
  1748. }
  1749. if (typeof gOPS === 'function') {
  1750. for (var j = 0; j < syms.length; j++) {
  1751. if (isEnumerable.call(obj, syms[j])) {
  1752. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  1753. }
  1754. }
  1755. }
  1756. return xs;
  1757. }
  1758. /***/ }),
  1759. /***/ 30:
  1760. /***/ (function(module, __unusedexports, __webpack_require__) {
  1761. module.exports = getLastPage
  1762. const getPage = __webpack_require__(265)
  1763. function getLastPage (octokit, link, headers) {
  1764. return getPage(octokit, link, 'last', headers)
  1765. }
  1766. /***/ }),
  1767. /***/ 39:
  1768. /***/ (function(module) {
  1769. "use strict";
  1770. module.exports = opts => {
  1771. opts = opts || {};
  1772. const env = opts.env || process.env;
  1773. const platform = opts.platform || process.platform;
  1774. if (platform !== 'win32') {
  1775. return 'PATH';
  1776. }
  1777. return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
  1778. };
  1779. /***/ }),
  1780. /***/ 47:
  1781. /***/ (function(module, __unusedexports, __webpack_require__) {
  1782. module.exports = factory;
  1783. const Octokit = __webpack_require__(402);
  1784. const registerPlugin = __webpack_require__(855);
  1785. function factory(plugins) {
  1786. const Api = Octokit.bind(null, plugins || []);
  1787. Api.plugin = registerPlugin.bind(null, plugins || []);
  1788. return Api;
  1789. }
  1790. /***/ }),
  1791. /***/ 49:
  1792. /***/ (function(module, __unusedexports, __webpack_require__) {
  1793. "use strict";
  1794. const os = __webpack_require__(87);
  1795. const execa = __webpack_require__(955);
  1796. // Reference: https://www.gaijin.at/en/lstwinver.php
  1797. const names = new Map([
  1798. ['10.0', '10'],
  1799. ['6.3', '8.1'],
  1800. ['6.2', '8'],
  1801. ['6.1', '7'],
  1802. ['6.0', 'Vista'],
  1803. ['5.2', 'Server 2003'],
  1804. ['5.1', 'XP'],
  1805. ['5.0', '2000'],
  1806. ['4.9', 'ME'],
  1807. ['4.1', '98'],
  1808. ['4.0', '95']
  1809. ]);
  1810. const windowsRelease = release => {
  1811. const version = /\d+\.\d/.exec(release || os.release());
  1812. if (release && !version) {
  1813. throw new Error('`release` argument doesn\'t match `n.n`');
  1814. }
  1815. const ver = (version || [])[0];
  1816. // Server 2008, 2012, 2016, and 2019 versions are ambiguous with desktop versions and must be detected at runtime.
  1817. // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version
  1818. // then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx
  1819. // If `wmic` is obsoloete (later versions of Windows 10), use PowerShell instead.
  1820. // If the resulting caption contains the year 2008, 2012, 2016 or 2019, it is a server version, so return a server OS name.
  1821. if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) {
  1822. let stdout;
  1823. try {
  1824. stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
  1825. } catch (_) {
  1826. stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '';
  1827. }
  1828. const year = (stdout.match(/2008|2012|2016|2019/) || [])[0];
  1829. if (year) {
  1830. return `Server ${year}`;
  1831. }
  1832. }
  1833. return names.get(ver);
  1834. };
  1835. module.exports = windowsRelease;
  1836. /***/ }),
  1837. /***/ 68:
  1838. /***/ (function(__unusedmodule, exports) {
  1839. "use strict";
  1840. Object.defineProperty(exports, '__esModule', { value: true });
  1841. async function auth(token) {
  1842. const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
  1843. return {
  1844. type: "token",
  1845. token: token,
  1846. tokenType
  1847. };
  1848. }
  1849. /**
  1850. * Prefix token for usage in the Authorization header
  1851. *
  1852. * @param token OAuth token or JSON Web Token
  1853. */
  1854. function withAuthorizationPrefix(token) {
  1855. if (token.split(/\./).length === 3) {
  1856. return `bearer ${token}`;
  1857. }
  1858. return `token ${token}`;
  1859. }
  1860. async function hook(token, request, route, parameters) {
  1861. const endpoint = request.endpoint.merge(route, parameters);
  1862. endpoint.headers.authorization = withAuthorizationPrefix(token);
  1863. return request(endpoint);
  1864. }
  1865. const createTokenAuth = function createTokenAuth(token) {
  1866. if (!token) {
  1867. throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
  1868. }
  1869. if (typeof token !== "string") {
  1870. throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
  1871. }
  1872. token = token.replace(/^(token|bearer) +/i, "");
  1873. return Object.assign(auth.bind(null, token), {
  1874. hook: hook.bind(null, token)
  1875. });
  1876. };
  1877. exports.createTokenAuth = createTokenAuth;
  1878. //# sourceMappingURL=index.js.map
  1879. /***/ }),
  1880. /***/ 70:
  1881. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1882. "use strict";
  1883. exports.URL = __webpack_require__(782).interface;
  1884. exports.serializeURL = __webpack_require__(936).serializeURL;
  1885. exports.serializeURLOrigin = __webpack_require__(936).serializeURLOrigin;
  1886. exports.basicURLParse = __webpack_require__(936).basicURLParse;
  1887. exports.setTheUsername = __webpack_require__(936).setTheUsername;
  1888. exports.setThePassword = __webpack_require__(936).setThePassword;
  1889. exports.serializeHost = __webpack_require__(936).serializeHost;
  1890. exports.serializeInteger = __webpack_require__(936).serializeInteger;
  1891. exports.parseURL = __webpack_require__(936).parseURL;
  1892. /***/ }),
  1893. /***/ 81:
  1894. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  1895. "use strict";
  1896. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  1897. if (k2 === undefined) k2 = k;
  1898. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  1899. }) : (function(o, m, k, k2) {
  1900. if (k2 === undefined) k2 = k;
  1901. o[k2] = m[k];
  1902. }));
  1903. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  1904. Object.defineProperty(o, "default", { enumerable: true, value: v });
  1905. }) : function(o, v) {
  1906. o["default"] = v;
  1907. });
  1908. var __importStar = (this && this.__importStar) || function (mod) {
  1909. if (mod && mod.__esModule) return mod;
  1910. var result = {};
  1911. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  1912. __setModuleDefault(result, mod);
  1913. return result;
  1914. };
  1915. Object.defineProperty(exports, "__esModule", { value: true });
  1916. exports.getServerUrl = exports.getFetchUrl = void 0;
  1917. const assert = __importStar(__webpack_require__(357));
  1918. const url_1 = __webpack_require__(835);
  1919. function getFetchUrl(settings) {
  1920. assert.ok(settings.repositoryOwner, 'settings.repositoryOwner must be defined');
  1921. assert.ok(settings.repositoryName, 'settings.repositoryName must be defined');
  1922. const serviceUrl = getServerUrl();
  1923. const encodedOwner = encodeURIComponent(settings.repositoryOwner);
  1924. const encodedName = encodeURIComponent(settings.repositoryName);
  1925. if (settings.sshKey) {
  1926. return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
  1927. }
  1928. // "origin" is SCHEME://HOSTNAME[:PORT]
  1929. return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
  1930. }
  1931. exports.getFetchUrl = getFetchUrl;
  1932. function getServerUrl() {
  1933. // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
  1934. return new url_1.URL(process.env['GITHUB_SERVER_URL'] ||
  1935. process.env['GITHUB_URL'] ||
  1936. 'https://github.com');
  1937. }
  1938. exports.getServerUrl = getServerUrl;
  1939. /***/ }),
  1940. /***/ 82:
  1941. /***/ (function(__unusedmodule, exports) {
  1942. "use strict";
  1943. // We use any as a valid input type
  1944. /* eslint-disable @typescript-eslint/no-explicit-any */
  1945. Object.defineProperty(exports, "__esModule", { value: true });
  1946. exports.toCommandProperties = exports.toCommandValue = void 0;
  1947. /**
  1948. * Sanitizes an input into a string so it can be passed into issueCommand safely
  1949. * @param input input to sanitize into a string
  1950. */
  1951. function toCommandValue(input) {
  1952. if (input === null || input === undefined) {
  1953. return '';
  1954. }
  1955. else if (typeof input === 'string' || input instanceof String) {
  1956. return input;
  1957. }
  1958. return JSON.stringify(input);
  1959. }
  1960. exports.toCommandValue = toCommandValue;
  1961. /**
  1962. *
  1963. * @param annotationProperties
  1964. * @returns The command properties to send with the actual annotation command
  1965. * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
  1966. */
  1967. function toCommandProperties(annotationProperties) {
  1968. if (!Object.keys(annotationProperties).length) {
  1969. return {};
  1970. }
  1971. return {
  1972. title: annotationProperties.title,
  1973. file: annotationProperties.file,
  1974. line: annotationProperties.startLine,
  1975. endLine: annotationProperties.endLine,
  1976. col: annotationProperties.startColumn,
  1977. endColumn: annotationProperties.endColumn
  1978. };
  1979. }
  1980. exports.toCommandProperties = toCommandProperties;
  1981. //# sourceMappingURL=utils.js.map
  1982. /***/ }),
  1983. /***/ 87:
  1984. /***/ (function(module) {
  1985. module.exports = require("os");
  1986. /***/ }),
  1987. /***/ 95:
  1988. /***/ (function(__unusedmodule, exports) {
  1989. "use strict";
  1990. Object.defineProperty(exports, "__esModule", { value: true });
  1991. exports.checkBypass = exports.getProxyUrl = void 0;
  1992. function getProxyUrl(reqUrl) {
  1993. const usingSsl = reqUrl.protocol === 'https:';
  1994. if (checkBypass(reqUrl)) {
  1995. return undefined;
  1996. }
  1997. const proxyVar = (() => {
  1998. if (usingSsl) {
  1999. return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  2000. }
  2001. else {
  2002. return process.env['http_proxy'] || process.env['HTTP_PROXY'];
  2003. }
  2004. })();
  2005. if (proxyVar) {
  2006. return new URL(proxyVar);
  2007. }
  2008. else {
  2009. return undefined;
  2010. }
  2011. }
  2012. exports.getProxyUrl = getProxyUrl;
  2013. function checkBypass(reqUrl) {
  2014. if (!reqUrl.hostname) {
  2015. return false;
  2016. }
  2017. const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  2018. if (!noProxy) {
  2019. return false;
  2020. }
  2021. // Determine the request port
  2022. let reqPort;
  2023. if (reqUrl.port) {
  2024. reqPort = Number(reqUrl.port);
  2025. }
  2026. else if (reqUrl.protocol === 'http:') {
  2027. reqPort = 80;
  2028. }
  2029. else if (reqUrl.protocol === 'https:') {
  2030. reqPort = 443;
  2031. }
  2032. // Format the request hostname and hostname with port
  2033. const upperReqHosts = [reqUrl.hostname.toUpperCase()];
  2034. if (typeof reqPort === 'number') {
  2035. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  2036. }
  2037. // Compare request host against noproxy
  2038. for (const upperNoProxyItem of noProxy
  2039. .split(',')
  2040. .map(x => x.trim().toUpperCase())
  2041. .filter(x => x)) {
  2042. if (upperReqHosts.some(x => x === upperNoProxyItem)) {
  2043. return true;
  2044. }
  2045. }
  2046. return false;
  2047. }
  2048. exports.checkBypass = checkBypass;
  2049. //# sourceMappingURL=proxy.js.map
  2050. /***/ }),
  2051. /***/ 102:
  2052. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  2053. "use strict";
  2054. // For internal use, subject to change.
  2055. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  2056. if (k2 === undefined) k2 = k;
  2057. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  2058. }) : (function(o, m, k, k2) {
  2059. if (k2 === undefined) k2 = k;
  2060. o[k2] = m[k];
  2061. }));
  2062. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  2063. Object.defineProperty(o, "default", { enumerable: true, value: v });
  2064. }) : function(o, v) {
  2065. o["default"] = v;
  2066. });
  2067. var __importStar = (this && this.__importStar) || function (mod) {
  2068. if (mod && mod.__esModule) return mod;
  2069. var result = {};
  2070. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  2071. __setModuleDefault(result, mod);
  2072. return result;
  2073. };
  2074. Object.defineProperty(exports, "__esModule", { value: true });
  2075. exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
  2076. // We use any as a valid input type
  2077. /* eslint-disable @typescript-eslint/no-explicit-any */
  2078. const fs = __importStar(__webpack_require__(747));
  2079. const os = __importStar(__webpack_require__(87));
  2080. const uuid_1 = __webpack_require__(25);
  2081. const utils_1 = __webpack_require__(82);
  2082. function issueFileCommand(command, message) {
  2083. const filePath = process.env[`GITHUB_${command}`];
  2084. if (!filePath) {
  2085. throw new Error(`Unable to find environment variable for file command ${command}`);
  2086. }
  2087. if (!fs.existsSync(filePath)) {
  2088. throw new Error(`Missing file at path: ${filePath}`);
  2089. }
  2090. fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
  2091. encoding: 'utf8'
  2092. });
  2093. }
  2094. exports.issueFileCommand = issueFileCommand;
  2095. function prepareKeyValueMessage(key, value) {
  2096. const delimiter = `ghadelimiter_${uuid_1.v4()}`;
  2097. const convertedValue = utils_1.toCommandValue(value);
  2098. // These should realistically never happen, but just in case someone finds a
  2099. // way to exploit uuid generation let's not allow keys or values that contain
  2100. // the delimiter.
  2101. if (key.includes(delimiter)) {
  2102. throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
  2103. }
  2104. if (convertedValue.includes(delimiter)) {
  2105. throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
  2106. }
  2107. return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
  2108. }
  2109. exports.prepareKeyValueMessage = prepareKeyValueMessage;
  2110. //# sourceMappingURL=file-command.js.map
  2111. /***/ }),
  2112. /***/ 118:
  2113. /***/ (function(module, __unusedexports, __webpack_require__) {
  2114. "use strict";
  2115. const os = __webpack_require__(87);
  2116. const nameMap = new Map([
  2117. [19, 'Catalina'],
  2118. [18, 'Mojave'],
  2119. [17, 'High Sierra'],
  2120. [16, 'Sierra'],
  2121. [15, 'El Capitan'],
  2122. [14, 'Yosemite'],
  2123. [13, 'Mavericks'],
  2124. [12, 'Mountain Lion'],
  2125. [11, 'Lion'],
  2126. [10, 'Snow Leopard'],
  2127. [9, 'Leopard'],
  2128. [8, 'Tiger'],
  2129. [7, 'Panther'],
  2130. [6, 'Jaguar'],
  2131. [5, 'Puma']
  2132. ]);
  2133. const macosRelease = release => {
  2134. release = Number((release || os.release()).split('.')[0]);
  2135. return {
  2136. name: nameMap.get(release),
  2137. version: '10.' + (release - 4)
  2138. };
  2139. };
  2140. module.exports = macosRelease;
  2141. // TODO: remove this in the next major version
  2142. module.exports.default = macosRelease;
  2143. /***/ }),
  2144. /***/ 126:
  2145. /***/ (function(module) {
  2146. /**
  2147. * lodash (Custom Build) <https://lodash.com/>
  2148. * Build: `lodash modularize exports="npm" -o ./`
  2149. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  2150. * Released under MIT license <https://lodash.com/license>
  2151. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  2152. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  2153. */
  2154. /** Used as the size to enable large array optimizations. */
  2155. var LARGE_ARRAY_SIZE = 200;
  2156. /** Used to stand-in for `undefined` hash values. */
  2157. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  2158. /** Used as references for various `Number` constants. */
  2159. var INFINITY = 1 / 0;
  2160. /** `Object#toString` result references. */
  2161. var funcTag = '[object Function]',
  2162. genTag = '[object GeneratorFunction]';
  2163. /**
  2164. * Used to match `RegExp`
  2165. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  2166. */
  2167. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  2168. /** Used to detect host constructors (Safari). */
  2169. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  2170. /** Detect free variable `global` from Node.js. */
  2171. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  2172. /** Detect free variable `self`. */
  2173. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  2174. /** Used as a reference to the global object. */
  2175. var root = freeGlobal || freeSelf || Function('return this')();
  2176. /**
  2177. * A specialized version of `_.includes` for arrays without support for
  2178. * specifying an index to search from.
  2179. *
  2180. * @private
  2181. * @param {Array} [array] The array to inspect.
  2182. * @param {*} target The value to search for.
  2183. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  2184. */
  2185. function arrayIncludes(array, value) {
  2186. var length = array ? array.length : 0;
  2187. return !!length && baseIndexOf(array, value, 0) > -1;
  2188. }
  2189. /**
  2190. * This function is like `arrayIncludes` except that it accepts a comparator.
  2191. *
  2192. * @private
  2193. * @param {Array} [array] The array to inspect.
  2194. * @param {*} target The value to search for.
  2195. * @param {Function} comparator The comparator invoked per element.
  2196. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  2197. */
  2198. function arrayIncludesWith(array, value, comparator) {
  2199. var index = -1,
  2200. length = array ? array.length : 0;
  2201. while (++index < length) {
  2202. if (comparator(value, array[index])) {
  2203. return true;
  2204. }
  2205. }
  2206. return false;
  2207. }
  2208. /**
  2209. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  2210. * support for iteratee shorthands.
  2211. *
  2212. * @private
  2213. * @param {Array} array The array to inspect.
  2214. * @param {Function} predicate The function invoked per iteration.
  2215. * @param {number} fromIndex The index to search from.
  2216. * @param {boolean} [fromRight] Specify iterating from right to left.
  2217. * @returns {number} Returns the index of the matched value, else `-1`.
  2218. */
  2219. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  2220. var length = array.length,
  2221. index = fromIndex + (fromRight ? 1 : -1);
  2222. while ((fromRight ? index-- : ++index < length)) {
  2223. if (predicate(array[index], index, array)) {
  2224. return index;
  2225. }
  2226. }
  2227. return -1;
  2228. }
  2229. /**
  2230. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  2231. *
  2232. * @private
  2233. * @param {Array} array The array to inspect.
  2234. * @param {*} value The value to search for.
  2235. * @param {number} fromIndex The index to search from.
  2236. * @returns {number} Returns the index of the matched value, else `-1`.
  2237. */
  2238. function baseIndexOf(array, value, fromIndex) {
  2239. if (value !== value) {
  2240. return baseFindIndex(array, baseIsNaN, fromIndex);
  2241. }
  2242. var index = fromIndex - 1,
  2243. length = array.length;
  2244. while (++index < length) {
  2245. if (array[index] === value) {
  2246. return index;
  2247. }
  2248. }
  2249. return -1;
  2250. }
  2251. /**
  2252. * The base implementation of `_.isNaN` without support for number objects.
  2253. *
  2254. * @private
  2255. * @param {*} value The value to check.
  2256. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  2257. */
  2258. function baseIsNaN(value) {
  2259. return value !== value;
  2260. }
  2261. /**
  2262. * Checks if a cache value for `key` exists.
  2263. *
  2264. * @private
  2265. * @param {Object} cache The cache to query.
  2266. * @param {string} key The key of the entry to check.
  2267. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2268. */
  2269. function cacheHas(cache, key) {
  2270. return cache.has(key);
  2271. }
  2272. /**
  2273. * Gets the value at `key` of `object`.
  2274. *
  2275. * @private
  2276. * @param {Object} [object] The object to query.
  2277. * @param {string} key The key of the property to get.
  2278. * @returns {*} Returns the property value.
  2279. */
  2280. function getValue(object, key) {
  2281. return object == null ? undefined : object[key];
  2282. }
  2283. /**
  2284. * Checks if `value` is a host object in IE < 9.
  2285. *
  2286. * @private
  2287. * @param {*} value The value to check.
  2288. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  2289. */
  2290. function isHostObject(value) {
  2291. // Many host objects are `Object` objects that can coerce to strings
  2292. // despite having improperly defined `toString` methods.
  2293. var result = false;
  2294. if (value != null && typeof value.toString != 'function') {
  2295. try {
  2296. result = !!(value + '');
  2297. } catch (e) {}
  2298. }
  2299. return result;
  2300. }
  2301. /**
  2302. * Converts `set` to an array of its values.
  2303. *
  2304. * @private
  2305. * @param {Object} set The set to convert.
  2306. * @returns {Array} Returns the values.
  2307. */
  2308. function setToArray(set) {
  2309. var index = -1,
  2310. result = Array(set.size);
  2311. set.forEach(function(value) {
  2312. result[++index] = value;
  2313. });
  2314. return result;
  2315. }
  2316. /** Used for built-in method references. */
  2317. var arrayProto = Array.prototype,
  2318. funcProto = Function.prototype,
  2319. objectProto = Object.prototype;
  2320. /** Used to detect overreaching core-js shims. */
  2321. var coreJsData = root['__core-js_shared__'];
  2322. /** Used to detect methods masquerading as native. */
  2323. var maskSrcKey = (function() {
  2324. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  2325. return uid ? ('Symbol(src)_1.' + uid) : '';
  2326. }());
  2327. /** Used to resolve the decompiled source of functions. */
  2328. var funcToString = funcProto.toString;
  2329. /** Used to check objects for own properties. */
  2330. var hasOwnProperty = objectProto.hasOwnProperty;
  2331. /**
  2332. * Used to resolve the
  2333. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  2334. * of values.
  2335. */
  2336. var objectToString = objectProto.toString;
  2337. /** Used to detect if a method is native. */
  2338. var reIsNative = RegExp('^' +
  2339. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  2340. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  2341. );
  2342. /** Built-in value references. */
  2343. var splice = arrayProto.splice;
  2344. /* Built-in method references that are verified to be native. */
  2345. var Map = getNative(root, 'Map'),
  2346. Set = getNative(root, 'Set'),
  2347. nativeCreate = getNative(Object, 'create');
  2348. /**
  2349. * Creates a hash object.
  2350. *
  2351. * @private
  2352. * @constructor
  2353. * @param {Array} [entries] The key-value pairs to cache.
  2354. */
  2355. function Hash(entries) {
  2356. var index = -1,
  2357. length = entries ? entries.length : 0;
  2358. this.clear();
  2359. while (++index < length) {
  2360. var entry = entries[index];
  2361. this.set(entry[0], entry[1]);
  2362. }
  2363. }
  2364. /**
  2365. * Removes all key-value entries from the hash.
  2366. *
  2367. * @private
  2368. * @name clear
  2369. * @memberOf Hash
  2370. */
  2371. function hashClear() {
  2372. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  2373. }
  2374. /**
  2375. * Removes `key` and its value from the hash.
  2376. *
  2377. * @private
  2378. * @name delete
  2379. * @memberOf Hash
  2380. * @param {Object} hash The hash to modify.
  2381. * @param {string} key The key of the value to remove.
  2382. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2383. */
  2384. function hashDelete(key) {
  2385. return this.has(key) && delete this.__data__[key];
  2386. }
  2387. /**
  2388. * Gets the hash value for `key`.
  2389. *
  2390. * @private
  2391. * @name get
  2392. * @memberOf Hash
  2393. * @param {string} key The key of the value to get.
  2394. * @returns {*} Returns the entry value.
  2395. */
  2396. function hashGet(key) {
  2397. var data = this.__data__;
  2398. if (nativeCreate) {
  2399. var result = data[key];
  2400. return result === HASH_UNDEFINED ? undefined : result;
  2401. }
  2402. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  2403. }
  2404. /**
  2405. * Checks if a hash value for `key` exists.
  2406. *
  2407. * @private
  2408. * @name has
  2409. * @memberOf Hash
  2410. * @param {string} key The key of the entry to check.
  2411. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2412. */
  2413. function hashHas(key) {
  2414. var data = this.__data__;
  2415. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  2416. }
  2417. /**
  2418. * Sets the hash `key` to `value`.
  2419. *
  2420. * @private
  2421. * @name set
  2422. * @memberOf Hash
  2423. * @param {string} key The key of the value to set.
  2424. * @param {*} value The value to set.
  2425. * @returns {Object} Returns the hash instance.
  2426. */
  2427. function hashSet(key, value) {
  2428. var data = this.__data__;
  2429. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  2430. return this;
  2431. }
  2432. // Add methods to `Hash`.
  2433. Hash.prototype.clear = hashClear;
  2434. Hash.prototype['delete'] = hashDelete;
  2435. Hash.prototype.get = hashGet;
  2436. Hash.prototype.has = hashHas;
  2437. Hash.prototype.set = hashSet;
  2438. /**
  2439. * Creates an list cache object.
  2440. *
  2441. * @private
  2442. * @constructor
  2443. * @param {Array} [entries] The key-value pairs to cache.
  2444. */
  2445. function ListCache(entries) {
  2446. var index = -1,
  2447. length = entries ? entries.length : 0;
  2448. this.clear();
  2449. while (++index < length) {
  2450. var entry = entries[index];
  2451. this.set(entry[0], entry[1]);
  2452. }
  2453. }
  2454. /**
  2455. * Removes all key-value entries from the list cache.
  2456. *
  2457. * @private
  2458. * @name clear
  2459. * @memberOf ListCache
  2460. */
  2461. function listCacheClear() {
  2462. this.__data__ = [];
  2463. }
  2464. /**
  2465. * Removes `key` and its value from the list cache.
  2466. *
  2467. * @private
  2468. * @name delete
  2469. * @memberOf ListCache
  2470. * @param {string} key The key of the value to remove.
  2471. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2472. */
  2473. function listCacheDelete(key) {
  2474. var data = this.__data__,
  2475. index = assocIndexOf(data, key);
  2476. if (index < 0) {
  2477. return false;
  2478. }
  2479. var lastIndex = data.length - 1;
  2480. if (index == lastIndex) {
  2481. data.pop();
  2482. } else {
  2483. splice.call(data, index, 1);
  2484. }
  2485. return true;
  2486. }
  2487. /**
  2488. * Gets the list cache value for `key`.
  2489. *
  2490. * @private
  2491. * @name get
  2492. * @memberOf ListCache
  2493. * @param {string} key The key of the value to get.
  2494. * @returns {*} Returns the entry value.
  2495. */
  2496. function listCacheGet(key) {
  2497. var data = this.__data__,
  2498. index = assocIndexOf(data, key);
  2499. return index < 0 ? undefined : data[index][1];
  2500. }
  2501. /**
  2502. * Checks if a list cache value for `key` exists.
  2503. *
  2504. * @private
  2505. * @name has
  2506. * @memberOf ListCache
  2507. * @param {string} key The key of the entry to check.
  2508. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2509. */
  2510. function listCacheHas(key) {
  2511. return assocIndexOf(this.__data__, key) > -1;
  2512. }
  2513. /**
  2514. * Sets the list cache `key` to `value`.
  2515. *
  2516. * @private
  2517. * @name set
  2518. * @memberOf ListCache
  2519. * @param {string} key The key of the value to set.
  2520. * @param {*} value The value to set.
  2521. * @returns {Object} Returns the list cache instance.
  2522. */
  2523. function listCacheSet(key, value) {
  2524. var data = this.__data__,
  2525. index = assocIndexOf(data, key);
  2526. if (index < 0) {
  2527. data.push([key, value]);
  2528. } else {
  2529. data[index][1] = value;
  2530. }
  2531. return this;
  2532. }
  2533. // Add methods to `ListCache`.
  2534. ListCache.prototype.clear = listCacheClear;
  2535. ListCache.prototype['delete'] = listCacheDelete;
  2536. ListCache.prototype.get = listCacheGet;
  2537. ListCache.prototype.has = listCacheHas;
  2538. ListCache.prototype.set = listCacheSet;
  2539. /**
  2540. * Creates a map cache object to store key-value pairs.
  2541. *
  2542. * @private
  2543. * @constructor
  2544. * @param {Array} [entries] The key-value pairs to cache.
  2545. */
  2546. function MapCache(entries) {
  2547. var index = -1,
  2548. length = entries ? entries.length : 0;
  2549. this.clear();
  2550. while (++index < length) {
  2551. var entry = entries[index];
  2552. this.set(entry[0], entry[1]);
  2553. }
  2554. }
  2555. /**
  2556. * Removes all key-value entries from the map.
  2557. *
  2558. * @private
  2559. * @name clear
  2560. * @memberOf MapCache
  2561. */
  2562. function mapCacheClear() {
  2563. this.__data__ = {
  2564. 'hash': new Hash,
  2565. 'map': new (Map || ListCache),
  2566. 'string': new Hash
  2567. };
  2568. }
  2569. /**
  2570. * Removes `key` and its value from the map.
  2571. *
  2572. * @private
  2573. * @name delete
  2574. * @memberOf MapCache
  2575. * @param {string} key The key of the value to remove.
  2576. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  2577. */
  2578. function mapCacheDelete(key) {
  2579. return getMapData(this, key)['delete'](key);
  2580. }
  2581. /**
  2582. * Gets the map value for `key`.
  2583. *
  2584. * @private
  2585. * @name get
  2586. * @memberOf MapCache
  2587. * @param {string} key The key of the value to get.
  2588. * @returns {*} Returns the entry value.
  2589. */
  2590. function mapCacheGet(key) {
  2591. return getMapData(this, key).get(key);
  2592. }
  2593. /**
  2594. * Checks if a map value for `key` exists.
  2595. *
  2596. * @private
  2597. * @name has
  2598. * @memberOf MapCache
  2599. * @param {string} key The key of the entry to check.
  2600. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  2601. */
  2602. function mapCacheHas(key) {
  2603. return getMapData(this, key).has(key);
  2604. }
  2605. /**
  2606. * Sets the map `key` to `value`.
  2607. *
  2608. * @private
  2609. * @name set
  2610. * @memberOf MapCache
  2611. * @param {string} key The key of the value to set.
  2612. * @param {*} value The value to set.
  2613. * @returns {Object} Returns the map cache instance.
  2614. */
  2615. function mapCacheSet(key, value) {
  2616. getMapData(this, key).set(key, value);
  2617. return this;
  2618. }
  2619. // Add methods to `MapCache`.
  2620. MapCache.prototype.clear = mapCacheClear;
  2621. MapCache.prototype['delete'] = mapCacheDelete;
  2622. MapCache.prototype.get = mapCacheGet;
  2623. MapCache.prototype.has = mapCacheHas;
  2624. MapCache.prototype.set = mapCacheSet;
  2625. /**
  2626. *
  2627. * Creates an array cache object to store unique values.
  2628. *
  2629. * @private
  2630. * @constructor
  2631. * @param {Array} [values] The values to cache.
  2632. */
  2633. function SetCache(values) {
  2634. var index = -1,
  2635. length = values ? values.length : 0;
  2636. this.__data__ = new MapCache;
  2637. while (++index < length) {
  2638. this.add(values[index]);
  2639. }
  2640. }
  2641. /**
  2642. * Adds `value` to the array cache.
  2643. *
  2644. * @private
  2645. * @name add
  2646. * @memberOf SetCache
  2647. * @alias push
  2648. * @param {*} value The value to cache.
  2649. * @returns {Object} Returns the cache instance.
  2650. */
  2651. function setCacheAdd(value) {
  2652. this.__data__.set(value, HASH_UNDEFINED);
  2653. return this;
  2654. }
  2655. /**
  2656. * Checks if `value` is in the array cache.
  2657. *
  2658. * @private
  2659. * @name has
  2660. * @memberOf SetCache
  2661. * @param {*} value The value to search for.
  2662. * @returns {number} Returns `true` if `value` is found, else `false`.
  2663. */
  2664. function setCacheHas(value) {
  2665. return this.__data__.has(value);
  2666. }
  2667. // Add methods to `SetCache`.
  2668. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  2669. SetCache.prototype.has = setCacheHas;
  2670. /**
  2671. * Gets the index at which the `key` is found in `array` of key-value pairs.
  2672. *
  2673. * @private
  2674. * @param {Array} array The array to inspect.
  2675. * @param {*} key The key to search for.
  2676. * @returns {number} Returns the index of the matched value, else `-1`.
  2677. */
  2678. function assocIndexOf(array, key) {
  2679. var length = array.length;
  2680. while (length--) {
  2681. if (eq(array[length][0], key)) {
  2682. return length;
  2683. }
  2684. }
  2685. return -1;
  2686. }
  2687. /**
  2688. * The base implementation of `_.isNative` without bad shim checks.
  2689. *
  2690. * @private
  2691. * @param {*} value The value to check.
  2692. * @returns {boolean} Returns `true` if `value` is a native function,
  2693. * else `false`.
  2694. */
  2695. function baseIsNative(value) {
  2696. if (!isObject(value) || isMasked(value)) {
  2697. return false;
  2698. }
  2699. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  2700. return pattern.test(toSource(value));
  2701. }
  2702. /**
  2703. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  2704. *
  2705. * @private
  2706. * @param {Array} array The array to inspect.
  2707. * @param {Function} [iteratee] The iteratee invoked per element.
  2708. * @param {Function} [comparator] The comparator invoked per element.
  2709. * @returns {Array} Returns the new duplicate free array.
  2710. */
  2711. function baseUniq(array, iteratee, comparator) {
  2712. var index = -1,
  2713. includes = arrayIncludes,
  2714. length = array.length,
  2715. isCommon = true,
  2716. result = [],
  2717. seen = result;
  2718. if (comparator) {
  2719. isCommon = false;
  2720. includes = arrayIncludesWith;
  2721. }
  2722. else if (length >= LARGE_ARRAY_SIZE) {
  2723. var set = iteratee ? null : createSet(array);
  2724. if (set) {
  2725. return setToArray(set);
  2726. }
  2727. isCommon = false;
  2728. includes = cacheHas;
  2729. seen = new SetCache;
  2730. }
  2731. else {
  2732. seen = iteratee ? [] : result;
  2733. }
  2734. outer:
  2735. while (++index < length) {
  2736. var value = array[index],
  2737. computed = iteratee ? iteratee(value) : value;
  2738. value = (comparator || value !== 0) ? value : 0;
  2739. if (isCommon && computed === computed) {
  2740. var seenIndex = seen.length;
  2741. while (seenIndex--) {
  2742. if (seen[seenIndex] === computed) {
  2743. continue outer;
  2744. }
  2745. }
  2746. if (iteratee) {
  2747. seen.push(computed);
  2748. }
  2749. result.push(value);
  2750. }
  2751. else if (!includes(seen, computed, comparator)) {
  2752. if (seen !== result) {
  2753. seen.push(computed);
  2754. }
  2755. result.push(value);
  2756. }
  2757. }
  2758. return result;
  2759. }
  2760. /**
  2761. * Creates a set object of `values`.
  2762. *
  2763. * @private
  2764. * @param {Array} values The values to add to the set.
  2765. * @returns {Object} Returns the new set.
  2766. */
  2767. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  2768. return new Set(values);
  2769. };
  2770. /**
  2771. * Gets the data for `map`.
  2772. *
  2773. * @private
  2774. * @param {Object} map The map to query.
  2775. * @param {string} key The reference key.
  2776. * @returns {*} Returns the map data.
  2777. */
  2778. function getMapData(map, key) {
  2779. var data = map.__data__;
  2780. return isKeyable(key)
  2781. ? data[typeof key == 'string' ? 'string' : 'hash']
  2782. : data.map;
  2783. }
  2784. /**
  2785. * Gets the native function at `key` of `object`.
  2786. *
  2787. * @private
  2788. * @param {Object} object The object to query.
  2789. * @param {string} key The key of the method to get.
  2790. * @returns {*} Returns the function if it's native, else `undefined`.
  2791. */
  2792. function getNative(object, key) {
  2793. var value = getValue(object, key);
  2794. return baseIsNative(value) ? value : undefined;
  2795. }
  2796. /**
  2797. * Checks if `value` is suitable for use as unique object key.
  2798. *
  2799. * @private
  2800. * @param {*} value The value to check.
  2801. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  2802. */
  2803. function isKeyable(value) {
  2804. var type = typeof value;
  2805. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  2806. ? (value !== '__proto__')
  2807. : (value === null);
  2808. }
  2809. /**
  2810. * Checks if `func` has its source masked.
  2811. *
  2812. * @private
  2813. * @param {Function} func The function to check.
  2814. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  2815. */
  2816. function isMasked(func) {
  2817. return !!maskSrcKey && (maskSrcKey in func);
  2818. }
  2819. /**
  2820. * Converts `func` to its source code.
  2821. *
  2822. * @private
  2823. * @param {Function} func The function to process.
  2824. * @returns {string} Returns the source code.
  2825. */
  2826. function toSource(func) {
  2827. if (func != null) {
  2828. try {
  2829. return funcToString.call(func);
  2830. } catch (e) {}
  2831. try {
  2832. return (func + '');
  2833. } catch (e) {}
  2834. }
  2835. return '';
  2836. }
  2837. /**
  2838. * Creates a duplicate-free version of an array, using
  2839. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  2840. * for equality comparisons, in which only the first occurrence of each
  2841. * element is kept.
  2842. *
  2843. * @static
  2844. * @memberOf _
  2845. * @since 0.1.0
  2846. * @category Array
  2847. * @param {Array} array The array to inspect.
  2848. * @returns {Array} Returns the new duplicate free array.
  2849. * @example
  2850. *
  2851. * _.uniq([2, 1, 2]);
  2852. * // => [2, 1]
  2853. */
  2854. function uniq(array) {
  2855. return (array && array.length)
  2856. ? baseUniq(array)
  2857. : [];
  2858. }
  2859. /**
  2860. * Performs a
  2861. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  2862. * comparison between two values to determine if they are equivalent.
  2863. *
  2864. * @static
  2865. * @memberOf _
  2866. * @since 4.0.0
  2867. * @category Lang
  2868. * @param {*} value The value to compare.
  2869. * @param {*} other The other value to compare.
  2870. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  2871. * @example
  2872. *
  2873. * var object = { 'a': 1 };
  2874. * var other = { 'a': 1 };
  2875. *
  2876. * _.eq(object, object);
  2877. * // => true
  2878. *
  2879. * _.eq(object, other);
  2880. * // => false
  2881. *
  2882. * _.eq('a', 'a');
  2883. * // => true
  2884. *
  2885. * _.eq('a', Object('a'));
  2886. * // => false
  2887. *
  2888. * _.eq(NaN, NaN);
  2889. * // => true
  2890. */
  2891. function eq(value, other) {
  2892. return value === other || (value !== value && other !== other);
  2893. }
  2894. /**
  2895. * Checks if `value` is classified as a `Function` object.
  2896. *
  2897. * @static
  2898. * @memberOf _
  2899. * @since 0.1.0
  2900. * @category Lang
  2901. * @param {*} value The value to check.
  2902. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  2903. * @example
  2904. *
  2905. * _.isFunction(_);
  2906. * // => true
  2907. *
  2908. * _.isFunction(/abc/);
  2909. * // => false
  2910. */
  2911. function isFunction(value) {
  2912. // The use of `Object#toString` avoids issues with the `typeof` operator
  2913. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  2914. var tag = isObject(value) ? objectToString.call(value) : '';
  2915. return tag == funcTag || tag == genTag;
  2916. }
  2917. /**
  2918. * Checks if `value` is the
  2919. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  2920. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  2921. *
  2922. * @static
  2923. * @memberOf _
  2924. * @since 0.1.0
  2925. * @category Lang
  2926. * @param {*} value The value to check.
  2927. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  2928. * @example
  2929. *
  2930. * _.isObject({});
  2931. * // => true
  2932. *
  2933. * _.isObject([1, 2, 3]);
  2934. * // => true
  2935. *
  2936. * _.isObject(_.noop);
  2937. * // => true
  2938. *
  2939. * _.isObject(null);
  2940. * // => false
  2941. */
  2942. function isObject(value) {
  2943. var type = typeof value;
  2944. return !!value && (type == 'object' || type == 'function');
  2945. }
  2946. /**
  2947. * This method returns `undefined`.
  2948. *
  2949. * @static
  2950. * @memberOf _
  2951. * @since 2.3.0
  2952. * @category Util
  2953. * @example
  2954. *
  2955. * _.times(2, _.noop);
  2956. * // => [undefined, undefined]
  2957. */
  2958. function noop() {
  2959. // No operation performed.
  2960. }
  2961. module.exports = uniq;
  2962. /***/ }),
  2963. /***/ 129:
  2964. /***/ (function(module) {
  2965. module.exports = require("child_process");
  2966. /***/ }),
  2967. /***/ 135:
  2968. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  2969. "use strict";
  2970. Object.defineProperty(exports, "__esModule", {
  2971. value: true
  2972. });
  2973. exports.default = void 0;
  2974. var _validate = _interopRequireDefault(__webpack_require__(634));
  2975. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  2976. function version(uuid) {
  2977. if (!(0, _validate.default)(uuid)) {
  2978. throw TypeError('Invalid UUID');
  2979. }
  2980. return parseInt(uuid.substr(14, 1), 16);
  2981. }
  2982. var _default = version;
  2983. exports.default = _default;
  2984. /***/ }),
  2985. /***/ 136:
  2986. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  2987. "use strict";
  2988. Object.defineProperty(exports, "__esModule", {
  2989. value: true
  2990. });
  2991. exports.default = _default;
  2992. exports.URL = exports.DNS = void 0;
  2993. var _stringify = _interopRequireDefault(__webpack_require__(960));
  2994. var _parse = _interopRequireDefault(__webpack_require__(204));
  2995. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  2996. function stringToBytes(str) {
  2997. str = unescape(encodeURIComponent(str)); // UTF8 escape
  2998. const bytes = [];
  2999. for (let i = 0; i < str.length; ++i) {
  3000. bytes.push(str.charCodeAt(i));
  3001. }
  3002. return bytes;
  3003. }
  3004. const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
  3005. exports.DNS = DNS;
  3006. const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
  3007. exports.URL = URL;
  3008. function _default(name, version, hashfunc) {
  3009. function generateUUID(value, namespace, buf, offset) {
  3010. if (typeof value === 'string') {
  3011. value = stringToBytes(value);
  3012. }
  3013. if (typeof namespace === 'string') {
  3014. namespace = (0, _parse.default)(namespace);
  3015. }
  3016. if (namespace.length !== 16) {
  3017. throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
  3018. } // Compute hash of namespace and value, Per 4.3
  3019. // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
  3020. // hashfunc([...namespace, ... value])`
  3021. let bytes = new Uint8Array(16 + value.length);
  3022. bytes.set(namespace);
  3023. bytes.set(value, namespace.length);
  3024. bytes = hashfunc(bytes);
  3025. bytes[6] = bytes[6] & 0x0f | version;
  3026. bytes[8] = bytes[8] & 0x3f | 0x80;
  3027. if (buf) {
  3028. offset = offset || 0;
  3029. for (let i = 0; i < 16; ++i) {
  3030. buf[offset + i] = bytes[i];
  3031. }
  3032. return buf;
  3033. }
  3034. return (0, _stringify.default)(bytes);
  3035. } // Function#name is not settable on some platforms (#270)
  3036. try {
  3037. generateUUID.name = name; // eslint-disable-next-line no-empty
  3038. } catch (err) {} // For CommonJS default export support
  3039. generateUUID.DNS = DNS;
  3040. generateUUID.URL = URL;
  3041. return generateUUID;
  3042. }
  3043. /***/ }),
  3044. /***/ 139:
  3045. /***/ (function(module, __unusedexports, __webpack_require__) {
  3046. // Unique ID creation requires a high quality random # generator. In node.js
  3047. // this is pretty straight-forward - we use the crypto API.
  3048. var crypto = __webpack_require__(417);
  3049. module.exports = function nodeRNG() {
  3050. return crypto.randomBytes(16);
  3051. };
  3052. /***/ }),
  3053. /***/ 141:
  3054. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3055. "use strict";
  3056. var net = __webpack_require__(631);
  3057. var tls = __webpack_require__(16);
  3058. var http = __webpack_require__(605);
  3059. var https = __webpack_require__(211);
  3060. var events = __webpack_require__(614);
  3061. var assert = __webpack_require__(357);
  3062. var util = __webpack_require__(669);
  3063. exports.httpOverHttp = httpOverHttp;
  3064. exports.httpsOverHttp = httpsOverHttp;
  3065. exports.httpOverHttps = httpOverHttps;
  3066. exports.httpsOverHttps = httpsOverHttps;
  3067. function httpOverHttp(options) {
  3068. var agent = new TunnelingAgent(options);
  3069. agent.request = http.request;
  3070. return agent;
  3071. }
  3072. function httpsOverHttp(options) {
  3073. var agent = new TunnelingAgent(options);
  3074. agent.request = http.request;
  3075. agent.createSocket = createSecureSocket;
  3076. agent.defaultPort = 443;
  3077. return agent;
  3078. }
  3079. function httpOverHttps(options) {
  3080. var agent = new TunnelingAgent(options);
  3081. agent.request = https.request;
  3082. return agent;
  3083. }
  3084. function httpsOverHttps(options) {
  3085. var agent = new TunnelingAgent(options);
  3086. agent.request = https.request;
  3087. agent.createSocket = createSecureSocket;
  3088. agent.defaultPort = 443;
  3089. return agent;
  3090. }
  3091. function TunnelingAgent(options) {
  3092. var self = this;
  3093. self.options = options || {};
  3094. self.proxyOptions = self.options.proxy || {};
  3095. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  3096. self.requests = [];
  3097. self.sockets = [];
  3098. self.on('free', function onFree(socket, host, port, localAddress) {
  3099. var options = toOptions(host, port, localAddress);
  3100. for (var i = 0, len = self.requests.length; i < len; ++i) {
  3101. var pending = self.requests[i];
  3102. if (pending.host === options.host && pending.port === options.port) {
  3103. // Detect the request to connect same origin server,
  3104. // reuse the connection.
  3105. self.requests.splice(i, 1);
  3106. pending.request.onSocket(socket);
  3107. return;
  3108. }
  3109. }
  3110. socket.destroy();
  3111. self.removeSocket(socket);
  3112. });
  3113. }
  3114. util.inherits(TunnelingAgent, events.EventEmitter);
  3115. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  3116. var self = this;
  3117. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  3118. if (self.sockets.length >= this.maxSockets) {
  3119. // We are over limit so we'll add it to the queue.
  3120. self.requests.push(options);
  3121. return;
  3122. }
  3123. // If we are under maxSockets create a new one.
  3124. self.createSocket(options, function(socket) {
  3125. socket.on('free', onFree);
  3126. socket.on('close', onCloseOrRemove);
  3127. socket.on('agentRemove', onCloseOrRemove);
  3128. req.onSocket(socket);
  3129. function onFree() {
  3130. self.emit('free', socket, options);
  3131. }
  3132. function onCloseOrRemove(err) {
  3133. self.removeSocket(socket);
  3134. socket.removeListener('free', onFree);
  3135. socket.removeListener('close', onCloseOrRemove);
  3136. socket.removeListener('agentRemove', onCloseOrRemove);
  3137. }
  3138. });
  3139. };
  3140. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  3141. var self = this;
  3142. var placeholder = {};
  3143. self.sockets.push(placeholder);
  3144. var connectOptions = mergeOptions({}, self.proxyOptions, {
  3145. method: 'CONNECT',
  3146. path: options.host + ':' + options.port,
  3147. agent: false,
  3148. headers: {
  3149. host: options.host + ':' + options.port
  3150. }
  3151. });
  3152. if (options.localAddress) {
  3153. connectOptions.localAddress = options.localAddress;
  3154. }
  3155. if (connectOptions.proxyAuth) {
  3156. connectOptions.headers = connectOptions.headers || {};
  3157. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  3158. new Buffer(connectOptions.proxyAuth).toString('base64');
  3159. }
  3160. debug('making CONNECT request');
  3161. var connectReq = self.request(connectOptions);
  3162. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  3163. connectReq.once('response', onResponse); // for v0.6
  3164. connectReq.once('upgrade', onUpgrade); // for v0.6
  3165. connectReq.once('connect', onConnect); // for v0.7 or later
  3166. connectReq.once('error', onError);
  3167. connectReq.end();
  3168. function onResponse(res) {
  3169. // Very hacky. This is necessary to avoid http-parser leaks.
  3170. res.upgrade = true;
  3171. }
  3172. function onUpgrade(res, socket, head) {
  3173. // Hacky.
  3174. process.nextTick(function() {
  3175. onConnect(res, socket, head);
  3176. });
  3177. }
  3178. function onConnect(res, socket, head) {
  3179. connectReq.removeAllListeners();
  3180. socket.removeAllListeners();
  3181. if (res.statusCode !== 200) {
  3182. debug('tunneling socket could not be established, statusCode=%d',
  3183. res.statusCode);
  3184. socket.destroy();
  3185. var error = new Error('tunneling socket could not be established, ' +
  3186. 'statusCode=' + res.statusCode);
  3187. error.code = 'ECONNRESET';
  3188. options.request.emit('error', error);
  3189. self.removeSocket(placeholder);
  3190. return;
  3191. }
  3192. if (head.length > 0) {
  3193. debug('got illegal response body from proxy');
  3194. socket.destroy();
  3195. var error = new Error('got illegal response body from proxy');
  3196. error.code = 'ECONNRESET';
  3197. options.request.emit('error', error);
  3198. self.removeSocket(placeholder);
  3199. return;
  3200. }
  3201. debug('tunneling connection has established');
  3202. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  3203. return cb(socket);
  3204. }
  3205. function onError(cause) {
  3206. connectReq.removeAllListeners();
  3207. debug('tunneling socket could not be established, cause=%s\n',
  3208. cause.message, cause.stack);
  3209. var error = new Error('tunneling socket could not be established, ' +
  3210. 'cause=' + cause.message);
  3211. error.code = 'ECONNRESET';
  3212. options.request.emit('error', error);
  3213. self.removeSocket(placeholder);
  3214. }
  3215. };
  3216. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  3217. var pos = this.sockets.indexOf(socket)
  3218. if (pos === -1) {
  3219. return;
  3220. }
  3221. this.sockets.splice(pos, 1);
  3222. var pending = this.requests.shift();
  3223. if (pending) {
  3224. // If we have pending requests and a socket gets closed a new one
  3225. // needs to be created to take over in the pool for the one that closed.
  3226. this.createSocket(pending, function(socket) {
  3227. pending.request.onSocket(socket);
  3228. });
  3229. }
  3230. };
  3231. function createSecureSocket(options, cb) {
  3232. var self = this;
  3233. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  3234. var hostHeader = options.request.getHeader('host');
  3235. var tlsOptions = mergeOptions({}, self.options, {
  3236. socket: socket,
  3237. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  3238. });
  3239. // 0 is dummy port for v0.6
  3240. var secureSocket = tls.connect(0, tlsOptions);
  3241. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  3242. cb(secureSocket);
  3243. });
  3244. }
  3245. function toOptions(host, port, localAddress) {
  3246. if (typeof host === 'string') { // since v0.10
  3247. return {
  3248. host: host,
  3249. port: port,
  3250. localAddress: localAddress
  3251. };
  3252. }
  3253. return host; // for v0.11 or later
  3254. }
  3255. function mergeOptions(target) {
  3256. for (var i = 1, len = arguments.length; i < len; ++i) {
  3257. var overrides = arguments[i];
  3258. if (typeof overrides === 'object') {
  3259. var keys = Object.keys(overrides);
  3260. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  3261. var k = keys[j];
  3262. if (overrides[k] !== undefined) {
  3263. target[k] = overrides[k];
  3264. }
  3265. }
  3266. }
  3267. }
  3268. return target;
  3269. }
  3270. var debug;
  3271. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  3272. debug = function() {
  3273. var args = Array.prototype.slice.call(arguments);
  3274. if (typeof args[0] === 'string') {
  3275. args[0] = 'TUNNEL: ' + args[0];
  3276. } else {
  3277. args.unshift('TUNNEL:');
  3278. }
  3279. console.error.apply(console, args);
  3280. }
  3281. } else {
  3282. debug = function() {};
  3283. }
  3284. exports.debug = debug; // for test
  3285. /***/ }),
  3286. /***/ 143:
  3287. /***/ (function(module, __unusedexports, __webpack_require__) {
  3288. module.exports = withAuthorizationPrefix;
  3289. const atob = __webpack_require__(368);
  3290. const REGEX_IS_BASIC_AUTH = /^[\w-]+:/;
  3291. function withAuthorizationPrefix(authorization) {
  3292. if (/^(basic|bearer|token) /i.test(authorization)) {
  3293. return authorization;
  3294. }
  3295. try {
  3296. if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) {
  3297. return `basic ${authorization}`;
  3298. }
  3299. } catch (error) {}
  3300. if (authorization.split(/\./).length === 3) {
  3301. return `bearer ${authorization}`;
  3302. }
  3303. return `token ${authorization}`;
  3304. }
  3305. /***/ }),
  3306. /***/ 145:
  3307. /***/ (function(module, __unusedexports, __webpack_require__) {
  3308. "use strict";
  3309. const pump = __webpack_require__(453);
  3310. const bufferStream = __webpack_require__(966);
  3311. class MaxBufferError extends Error {
  3312. constructor() {
  3313. super('maxBuffer exceeded');
  3314. this.name = 'MaxBufferError';
  3315. }
  3316. }
  3317. function getStream(inputStream, options) {
  3318. if (!inputStream) {
  3319. return Promise.reject(new Error('Expected a stream'));
  3320. }
  3321. options = Object.assign({maxBuffer: Infinity}, options);
  3322. const {maxBuffer} = options;
  3323. let stream;
  3324. return new Promise((resolve, reject) => {
  3325. const rejectPromise = error => {
  3326. if (error) { // A null check
  3327. error.bufferedData = stream.getBufferedValue();
  3328. }
  3329. reject(error);
  3330. };
  3331. stream = pump(inputStream, bufferStream(options), error => {
  3332. if (error) {
  3333. rejectPromise(error);
  3334. return;
  3335. }
  3336. resolve();
  3337. });
  3338. stream.on('data', () => {
  3339. if (stream.getBufferedLength() > maxBuffer) {
  3340. rejectPromise(new MaxBufferError());
  3341. }
  3342. });
  3343. }).then(() => stream.getBufferedValue());
  3344. }
  3345. module.exports = getStream;
  3346. module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'}));
  3347. module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true}));
  3348. module.exports.MaxBufferError = MaxBufferError;
  3349. /***/ }),
  3350. /***/ 148:
  3351. /***/ (function(module, __unusedexports, __webpack_require__) {
  3352. module.exports = paginatePlugin;
  3353. const { paginateRest } = __webpack_require__(299);
  3354. function paginatePlugin(octokit) {
  3355. Object.assign(octokit, paginateRest(octokit));
  3356. }
  3357. /***/ }),
  3358. /***/ 149:
  3359. /***/ (function(module) {
  3360. "use strict";
  3361. var conversions = {};
  3362. module.exports = conversions;
  3363. function sign(x) {
  3364. return x < 0 ? -1 : 1;
  3365. }
  3366. function evenRound(x) {
  3367. // Round x to the nearest integer, choosing the even integer if it lies halfway between two.
  3368. if ((x % 1) === 0.5 && (x & 1) === 0) { // [even number].5; round down (i.e. floor)
  3369. return Math.floor(x);
  3370. } else {
  3371. return Math.round(x);
  3372. }
  3373. }
  3374. function createNumberConversion(bitLength, typeOpts) {
  3375. if (!typeOpts.unsigned) {
  3376. --bitLength;
  3377. }
  3378. const lowerBound = typeOpts.unsigned ? 0 : -Math.pow(2, bitLength);
  3379. const upperBound = Math.pow(2, bitLength) - 1;
  3380. const moduloVal = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength) : Math.pow(2, bitLength);
  3381. const moduloBound = typeOpts.moduloBitLength ? Math.pow(2, typeOpts.moduloBitLength - 1) : Math.pow(2, bitLength - 1);
  3382. return function(V, opts) {
  3383. if (!opts) opts = {};
  3384. let x = +V;
  3385. if (opts.enforceRange) {
  3386. if (!Number.isFinite(x)) {
  3387. throw new TypeError("Argument is not a finite number");
  3388. }
  3389. x = sign(x) * Math.floor(Math.abs(x));
  3390. if (x < lowerBound || x > upperBound) {
  3391. throw new TypeError("Argument is not in byte range");
  3392. }
  3393. return x;
  3394. }
  3395. if (!isNaN(x) && opts.clamp) {
  3396. x = evenRound(x);
  3397. if (x < lowerBound) x = lowerBound;
  3398. if (x > upperBound) x = upperBound;
  3399. return x;
  3400. }
  3401. if (!Number.isFinite(x) || x === 0) {
  3402. return 0;
  3403. }
  3404. x = sign(x) * Math.floor(Math.abs(x));
  3405. x = x % moduloVal;
  3406. if (!typeOpts.unsigned && x >= moduloBound) {
  3407. return x - moduloVal;
  3408. } else if (typeOpts.unsigned) {
  3409. if (x < 0) {
  3410. x += moduloVal;
  3411. } else if (x === -0) { // don't return negative zero
  3412. return 0;
  3413. }
  3414. }
  3415. return x;
  3416. }
  3417. }
  3418. conversions["void"] = function () {
  3419. return undefined;
  3420. };
  3421. conversions["boolean"] = function (val) {
  3422. return !!val;
  3423. };
  3424. conversions["byte"] = createNumberConversion(8, { unsigned: false });
  3425. conversions["octet"] = createNumberConversion(8, { unsigned: true });
  3426. conversions["short"] = createNumberConversion(16, { unsigned: false });
  3427. conversions["unsigned short"] = createNumberConversion(16, { unsigned: true });
  3428. conversions["long"] = createNumberConversion(32, { unsigned: false });
  3429. conversions["unsigned long"] = createNumberConversion(32, { unsigned: true });
  3430. conversions["long long"] = createNumberConversion(32, { unsigned: false, moduloBitLength: 64 });
  3431. conversions["unsigned long long"] = createNumberConversion(32, { unsigned: true, moduloBitLength: 64 });
  3432. conversions["double"] = function (V) {
  3433. const x = +V;
  3434. if (!Number.isFinite(x)) {
  3435. throw new TypeError("Argument is not a finite floating-point value");
  3436. }
  3437. return x;
  3438. };
  3439. conversions["unrestricted double"] = function (V) {
  3440. const x = +V;
  3441. if (isNaN(x)) {
  3442. throw new TypeError("Argument is NaN");
  3443. }
  3444. return x;
  3445. };
  3446. // not quite valid, but good enough for JS
  3447. conversions["float"] = conversions["double"];
  3448. conversions["unrestricted float"] = conversions["unrestricted double"];
  3449. conversions["DOMString"] = function (V, opts) {
  3450. if (!opts) opts = {};
  3451. if (opts.treatNullAsEmptyString && V === null) {
  3452. return "";
  3453. }
  3454. return String(V);
  3455. };
  3456. conversions["ByteString"] = function (V, opts) {
  3457. const x = String(V);
  3458. let c = undefined;
  3459. for (let i = 0; (c = x.codePointAt(i)) !== undefined; ++i) {
  3460. if (c > 255) {
  3461. throw new TypeError("Argument is not a valid bytestring");
  3462. }
  3463. }
  3464. return x;
  3465. };
  3466. conversions["USVString"] = function (V) {
  3467. const S = String(V);
  3468. const n = S.length;
  3469. const U = [];
  3470. for (let i = 0; i < n; ++i) {
  3471. const c = S.charCodeAt(i);
  3472. if (c < 0xD800 || c > 0xDFFF) {
  3473. U.push(String.fromCodePoint(c));
  3474. } else if (0xDC00 <= c && c <= 0xDFFF) {
  3475. U.push(String.fromCodePoint(0xFFFD));
  3476. } else {
  3477. if (i === n - 1) {
  3478. U.push(String.fromCodePoint(0xFFFD));
  3479. } else {
  3480. const d = S.charCodeAt(i + 1);
  3481. if (0xDC00 <= d && d <= 0xDFFF) {
  3482. const a = c & 0x3FF;
  3483. const b = d & 0x3FF;
  3484. U.push(String.fromCodePoint((2 << 15) + (2 << 9) * a + b));
  3485. ++i;
  3486. } else {
  3487. U.push(String.fromCodePoint(0xFFFD));
  3488. }
  3489. }
  3490. }
  3491. }
  3492. return U.join('');
  3493. };
  3494. conversions["Date"] = function (V, opts) {
  3495. if (!(V instanceof Date)) {
  3496. throw new TypeError("Argument is not a Date object");
  3497. }
  3498. if (isNaN(V)) {
  3499. return undefined;
  3500. }
  3501. return V;
  3502. };
  3503. conversions["RegExp"] = function (V, opts) {
  3504. if (!(V instanceof RegExp)) {
  3505. V = new RegExp(V);
  3506. }
  3507. return V;
  3508. };
  3509. /***/ }),
  3510. /***/ 153:
  3511. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3512. "use strict";
  3513. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3514. if (k2 === undefined) k2 = k;
  3515. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3516. }) : (function(o, m, k, k2) {
  3517. if (k2 === undefined) k2 = k;
  3518. o[k2] = m[k];
  3519. }));
  3520. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3521. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3522. }) : function(o, v) {
  3523. o["default"] = v;
  3524. });
  3525. var __importStar = (this && this.__importStar) || function (mod) {
  3526. if (mod && mod.__esModule) return mod;
  3527. var result = {};
  3528. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3529. __setModuleDefault(result, mod);
  3530. return result;
  3531. };
  3532. Object.defineProperty(exports, "__esModule", { value: true });
  3533. exports.setSafeDirectory = exports.setSshKnownHostsPath = exports.setSshKeyPath = exports.setRepositoryPath = exports.SshKnownHostsPath = exports.SshKeyPath = exports.PostSetSafeDirectory = exports.RepositoryPath = exports.IsPost = void 0;
  3534. const core = __importStar(__webpack_require__(470));
  3535. /**
  3536. * Indicates whether the POST action is running
  3537. */
  3538. exports.IsPost = !!core.getState('isPost');
  3539. /**
  3540. * The repository path for the POST action. The value is empty during the MAIN action.
  3541. */
  3542. exports.RepositoryPath = core.getState('repositoryPath');
  3543. /**
  3544. * The set-safe-directory for the POST action. The value is set if input: 'safe-directory' is set during the MAIN action.
  3545. */
  3546. exports.PostSetSafeDirectory = core.getState('setSafeDirectory') === 'true';
  3547. /**
  3548. * The SSH key path for the POST action. The value is empty during the MAIN action.
  3549. */
  3550. exports.SshKeyPath = core.getState('sshKeyPath');
  3551. /**
  3552. * The SSH known hosts path for the POST action. The value is empty during the MAIN action.
  3553. */
  3554. exports.SshKnownHostsPath = core.getState('sshKnownHostsPath');
  3555. /**
  3556. * Save the repository path so the POST action can retrieve the value.
  3557. */
  3558. function setRepositoryPath(repositoryPath) {
  3559. core.saveState('repositoryPath', repositoryPath);
  3560. }
  3561. exports.setRepositoryPath = setRepositoryPath;
  3562. /**
  3563. * Save the SSH key path so the POST action can retrieve the value.
  3564. */
  3565. function setSshKeyPath(sshKeyPath) {
  3566. core.saveState('sshKeyPath', sshKeyPath);
  3567. }
  3568. exports.setSshKeyPath = setSshKeyPath;
  3569. /**
  3570. * Save the SSH known hosts path so the POST action can retrieve the value.
  3571. */
  3572. function setSshKnownHostsPath(sshKnownHostsPath) {
  3573. core.saveState('sshKnownHostsPath', sshKnownHostsPath);
  3574. }
  3575. exports.setSshKnownHostsPath = setSshKnownHostsPath;
  3576. /**
  3577. * Save the sef-safe-directory input so the POST action can retrieve the value.
  3578. */
  3579. function setSafeDirectory() {
  3580. core.saveState('setSafeDirectory', 'true');
  3581. }
  3582. exports.setSafeDirectory = setSafeDirectory;
  3583. // Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
  3584. // This is necessary since we don't have a separate entry point.
  3585. if (!exports.IsPost) {
  3586. core.saveState('isPost', 'true');
  3587. }
  3588. /***/ }),
  3589. /***/ 168:
  3590. /***/ (function(module) {
  3591. "use strict";
  3592. const alias = ['stdin', 'stdout', 'stderr'];
  3593. const hasAlias = opts => alias.some(x => Boolean(opts[x]));
  3594. module.exports = opts => {
  3595. if (!opts) {
  3596. return null;
  3597. }
  3598. if (opts.stdio && hasAlias(opts)) {
  3599. throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`);
  3600. }
  3601. if (typeof opts.stdio === 'string') {
  3602. return opts.stdio;
  3603. }
  3604. const stdio = opts.stdio || [];
  3605. if (!Array.isArray(stdio)) {
  3606. throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
  3607. }
  3608. const result = [];
  3609. const len = Math.max(stdio.length, alias.length);
  3610. for (let i = 0; i < len; i++) {
  3611. let value = null;
  3612. if (stdio[i] !== undefined) {
  3613. value = stdio[i];
  3614. } else if (opts[alias[i]] !== undefined) {
  3615. value = opts[alias[i]];
  3616. }
  3617. result[i] = value;
  3618. }
  3619. return result;
  3620. };
  3621. /***/ }),
  3622. /***/ 174:
  3623. /***/ (function(module, __unusedexports, __webpack_require__) {
  3624. "use strict";
  3625. var bind = __webpack_require__(739);
  3626. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  3627. /***/ }),
  3628. /***/ 179:
  3629. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3630. "use strict";
  3631. var net = __webpack_require__(631);
  3632. var tls = __webpack_require__(16);
  3633. var http = __webpack_require__(605);
  3634. var https = __webpack_require__(211);
  3635. var events = __webpack_require__(614);
  3636. var assert = __webpack_require__(357);
  3637. var util = __webpack_require__(669);
  3638. exports.httpOverHttp = httpOverHttp;
  3639. exports.httpsOverHttp = httpsOverHttp;
  3640. exports.httpOverHttps = httpOverHttps;
  3641. exports.httpsOverHttps = httpsOverHttps;
  3642. function httpOverHttp(options) {
  3643. var agent = new TunnelingAgent(options);
  3644. agent.request = http.request;
  3645. return agent;
  3646. }
  3647. function httpsOverHttp(options) {
  3648. var agent = new TunnelingAgent(options);
  3649. agent.request = http.request;
  3650. agent.createSocket = createSecureSocket;
  3651. agent.defaultPort = 443;
  3652. return agent;
  3653. }
  3654. function httpOverHttps(options) {
  3655. var agent = new TunnelingAgent(options);
  3656. agent.request = https.request;
  3657. return agent;
  3658. }
  3659. function httpsOverHttps(options) {
  3660. var agent = new TunnelingAgent(options);
  3661. agent.request = https.request;
  3662. agent.createSocket = createSecureSocket;
  3663. agent.defaultPort = 443;
  3664. return agent;
  3665. }
  3666. function TunnelingAgent(options) {
  3667. var self = this;
  3668. self.options = options || {};
  3669. self.proxyOptions = self.options.proxy || {};
  3670. self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;
  3671. self.requests = [];
  3672. self.sockets = [];
  3673. self.on('free', function onFree(socket, host, port, localAddress) {
  3674. var options = toOptions(host, port, localAddress);
  3675. for (var i = 0, len = self.requests.length; i < len; ++i) {
  3676. var pending = self.requests[i];
  3677. if (pending.host === options.host && pending.port === options.port) {
  3678. // Detect the request to connect same origin server,
  3679. // reuse the connection.
  3680. self.requests.splice(i, 1);
  3681. pending.request.onSocket(socket);
  3682. return;
  3683. }
  3684. }
  3685. socket.destroy();
  3686. self.removeSocket(socket);
  3687. });
  3688. }
  3689. util.inherits(TunnelingAgent, events.EventEmitter);
  3690. TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {
  3691. var self = this;
  3692. var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));
  3693. if (self.sockets.length >= this.maxSockets) {
  3694. // We are over limit so we'll add it to the queue.
  3695. self.requests.push(options);
  3696. return;
  3697. }
  3698. // If we are under maxSockets create a new one.
  3699. self.createSocket(options, function(socket) {
  3700. socket.on('free', onFree);
  3701. socket.on('close', onCloseOrRemove);
  3702. socket.on('agentRemove', onCloseOrRemove);
  3703. req.onSocket(socket);
  3704. function onFree() {
  3705. self.emit('free', socket, options);
  3706. }
  3707. function onCloseOrRemove(err) {
  3708. self.removeSocket(socket);
  3709. socket.removeListener('free', onFree);
  3710. socket.removeListener('close', onCloseOrRemove);
  3711. socket.removeListener('agentRemove', onCloseOrRemove);
  3712. }
  3713. });
  3714. };
  3715. TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
  3716. var self = this;
  3717. var placeholder = {};
  3718. self.sockets.push(placeholder);
  3719. var connectOptions = mergeOptions({}, self.proxyOptions, {
  3720. method: 'CONNECT',
  3721. path: options.host + ':' + options.port,
  3722. agent: false,
  3723. headers: {
  3724. host: options.host + ':' + options.port
  3725. }
  3726. });
  3727. if (options.localAddress) {
  3728. connectOptions.localAddress = options.localAddress;
  3729. }
  3730. if (connectOptions.proxyAuth) {
  3731. connectOptions.headers = connectOptions.headers || {};
  3732. connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
  3733. new Buffer(connectOptions.proxyAuth).toString('base64');
  3734. }
  3735. debug('making CONNECT request');
  3736. var connectReq = self.request(connectOptions);
  3737. connectReq.useChunkedEncodingByDefault = false; // for v0.6
  3738. connectReq.once('response', onResponse); // for v0.6
  3739. connectReq.once('upgrade', onUpgrade); // for v0.6
  3740. connectReq.once('connect', onConnect); // for v0.7 or later
  3741. connectReq.once('error', onError);
  3742. connectReq.end();
  3743. function onResponse(res) {
  3744. // Very hacky. This is necessary to avoid http-parser leaks.
  3745. res.upgrade = true;
  3746. }
  3747. function onUpgrade(res, socket, head) {
  3748. // Hacky.
  3749. process.nextTick(function() {
  3750. onConnect(res, socket, head);
  3751. });
  3752. }
  3753. function onConnect(res, socket, head) {
  3754. connectReq.removeAllListeners();
  3755. socket.removeAllListeners();
  3756. if (res.statusCode !== 200) {
  3757. debug('tunneling socket could not be established, statusCode=%d',
  3758. res.statusCode);
  3759. socket.destroy();
  3760. var error = new Error('tunneling socket could not be established, ' +
  3761. 'statusCode=' + res.statusCode);
  3762. error.code = 'ECONNRESET';
  3763. options.request.emit('error', error);
  3764. self.removeSocket(placeholder);
  3765. return;
  3766. }
  3767. if (head.length > 0) {
  3768. debug('got illegal response body from proxy');
  3769. socket.destroy();
  3770. var error = new Error('got illegal response body from proxy');
  3771. error.code = 'ECONNRESET';
  3772. options.request.emit('error', error);
  3773. self.removeSocket(placeholder);
  3774. return;
  3775. }
  3776. debug('tunneling connection has established');
  3777. self.sockets[self.sockets.indexOf(placeholder)] = socket;
  3778. return cb(socket);
  3779. }
  3780. function onError(cause) {
  3781. connectReq.removeAllListeners();
  3782. debug('tunneling socket could not be established, cause=%s\n',
  3783. cause.message, cause.stack);
  3784. var error = new Error('tunneling socket could not be established, ' +
  3785. 'cause=' + cause.message);
  3786. error.code = 'ECONNRESET';
  3787. options.request.emit('error', error);
  3788. self.removeSocket(placeholder);
  3789. }
  3790. };
  3791. TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
  3792. var pos = this.sockets.indexOf(socket)
  3793. if (pos === -1) {
  3794. return;
  3795. }
  3796. this.sockets.splice(pos, 1);
  3797. var pending = this.requests.shift();
  3798. if (pending) {
  3799. // If we have pending requests and a socket gets closed a new one
  3800. // needs to be created to take over in the pool for the one that closed.
  3801. this.createSocket(pending, function(socket) {
  3802. pending.request.onSocket(socket);
  3803. });
  3804. }
  3805. };
  3806. function createSecureSocket(options, cb) {
  3807. var self = this;
  3808. TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
  3809. var hostHeader = options.request.getHeader('host');
  3810. var tlsOptions = mergeOptions({}, self.options, {
  3811. socket: socket,
  3812. servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host
  3813. });
  3814. // 0 is dummy port for v0.6
  3815. var secureSocket = tls.connect(0, tlsOptions);
  3816. self.sockets[self.sockets.indexOf(socket)] = secureSocket;
  3817. cb(secureSocket);
  3818. });
  3819. }
  3820. function toOptions(host, port, localAddress) {
  3821. if (typeof host === 'string') { // since v0.10
  3822. return {
  3823. host: host,
  3824. port: port,
  3825. localAddress: localAddress
  3826. };
  3827. }
  3828. return host; // for v0.11 or later
  3829. }
  3830. function mergeOptions(target) {
  3831. for (var i = 1, len = arguments.length; i < len; ++i) {
  3832. var overrides = arguments[i];
  3833. if (typeof overrides === 'object') {
  3834. var keys = Object.keys(overrides);
  3835. for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
  3836. var k = keys[j];
  3837. if (overrides[k] !== undefined) {
  3838. target[k] = overrides[k];
  3839. }
  3840. }
  3841. }
  3842. }
  3843. return target;
  3844. }
  3845. var debug;
  3846. if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
  3847. debug = function() {
  3848. var args = Array.prototype.slice.call(arguments);
  3849. if (typeof args[0] === 'string') {
  3850. args[0] = 'TUNNEL: ' + args[0];
  3851. } else {
  3852. args.unshift('TUNNEL:');
  3853. }
  3854. console.error.apply(console, args);
  3855. }
  3856. } else {
  3857. debug = function() {};
  3858. }
  3859. exports.debug = debug; // for test
  3860. /***/ }),
  3861. /***/ 190:
  3862. /***/ (function(module, __unusedexports, __webpack_require__) {
  3863. module.exports = authenticationPlugin;
  3864. const { createTokenAuth } = __webpack_require__(68);
  3865. const { Deprecation } = __webpack_require__(692);
  3866. const once = __webpack_require__(969);
  3867. const beforeRequest = __webpack_require__(863);
  3868. const requestError = __webpack_require__(991);
  3869. const validate = __webpack_require__(954);
  3870. const withAuthorizationPrefix = __webpack_require__(143);
  3871. const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation));
  3872. const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation));
  3873. function authenticationPlugin(octokit, options) {
  3874. // If `options.authStrategy` is set then use it and pass in `options.auth`
  3875. if (options.authStrategy) {
  3876. const auth = options.authStrategy(options.auth);
  3877. octokit.hook.wrap("request", auth.hook);
  3878. octokit.auth = auth;
  3879. return;
  3880. }
  3881. // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance
  3882. // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred.
  3883. if (!options.auth) {
  3884. octokit.auth = () =>
  3885. Promise.resolve({
  3886. type: "unauthenticated"
  3887. });
  3888. return;
  3889. }
  3890. const isBasicAuthString =
  3891. typeof options.auth === "string" &&
  3892. /^basic/.test(withAuthorizationPrefix(options.auth));
  3893. // If only `options.auth` is set to a string, use the default token authentication strategy.
  3894. if (typeof options.auth === "string" && !isBasicAuthString) {
  3895. const auth = createTokenAuth(options.auth);
  3896. octokit.hook.wrap("request", auth.hook);
  3897. octokit.auth = auth;
  3898. return;
  3899. }
  3900. // Otherwise log a deprecation message
  3901. const [deprecationMethod, deprecationMessapge] = isBasicAuthString
  3902. ? [
  3903. deprecateAuthBasic,
  3904. 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)'
  3905. ]
  3906. : [
  3907. deprecateAuthObject,
  3908. 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'
  3909. ];
  3910. deprecationMethod(
  3911. octokit.log,
  3912. new Deprecation("[@octokit/rest] " + deprecationMessapge)
  3913. );
  3914. octokit.auth = () =>
  3915. Promise.resolve({
  3916. type: "deprecated",
  3917. message: deprecationMessapge
  3918. });
  3919. validate(options.auth);
  3920. const state = {
  3921. octokit,
  3922. auth: options.auth
  3923. };
  3924. octokit.hook.before("request", beforeRequest.bind(null, state));
  3925. octokit.hook.error("request", requestError.bind(null, state));
  3926. }
  3927. /***/ }),
  3928. /***/ 197:
  3929. /***/ (function(module, __unusedexports, __webpack_require__) {
  3930. module.exports = isexe
  3931. isexe.sync = sync
  3932. var fs = __webpack_require__(747)
  3933. function isexe (path, options, cb) {
  3934. fs.stat(path, function (er, stat) {
  3935. cb(er, er ? false : checkStat(stat, options))
  3936. })
  3937. }
  3938. function sync (path, options) {
  3939. return checkStat(fs.statSync(path), options)
  3940. }
  3941. function checkStat (stat, options) {
  3942. return stat.isFile() && checkMode(stat, options)
  3943. }
  3944. function checkMode (stat, options) {
  3945. var mod = stat.mode
  3946. var uid = stat.uid
  3947. var gid = stat.gid
  3948. var myUid = options.uid !== undefined ?
  3949. options.uid : process.getuid && process.getuid()
  3950. var myGid = options.gid !== undefined ?
  3951. options.gid : process.getgid && process.getgid()
  3952. var u = parseInt('100', 8)
  3953. var g = parseInt('010', 8)
  3954. var o = parseInt('001', 8)
  3955. var ug = u | g
  3956. var ret = (mod & o) ||
  3957. (mod & g) && gid === myGid ||
  3958. (mod & u) && uid === myUid ||
  3959. (mod & ug) && myUid === 0
  3960. return ret
  3961. }
  3962. /***/ }),
  3963. /***/ 198:
  3964. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  3965. "use strict";
  3966. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3967. if (k2 === undefined) k2 = k;
  3968. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  3969. }) : (function(o, m, k, k2) {
  3970. if (k2 === undefined) k2 = k;
  3971. o[k2] = m[k];
  3972. }));
  3973. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  3974. Object.defineProperty(o, "default", { enumerable: true, value: v });
  3975. }) : function(o, v) {
  3976. o["default"] = v;
  3977. });
  3978. var __importStar = (this && this.__importStar) || function (mod) {
  3979. if (mod && mod.__esModule) return mod;
  3980. var result = {};
  3981. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  3982. __setModuleDefault(result, mod);
  3983. return result;
  3984. };
  3985. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  3986. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3987. return new (P || (P = Promise))(function (resolve, reject) {
  3988. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  3989. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  3990. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  3991. step((generator = generator.apply(thisArg, _arguments || [])).next());
  3992. });
  3993. };
  3994. Object.defineProperty(exports, "__esModule", { value: true });
  3995. const core = __importStar(__webpack_require__(470));
  3996. const coreCommand = __importStar(__webpack_require__(431));
  3997. const gitSourceProvider = __importStar(__webpack_require__(853));
  3998. const inputHelper = __importStar(__webpack_require__(821));
  3999. const path = __importStar(__webpack_require__(622));
  4000. const stateHelper = __importStar(__webpack_require__(153));
  4001. function run() {
  4002. var _a, _b;
  4003. return __awaiter(this, void 0, void 0, function* () {
  4004. try {
  4005. const sourceSettings = yield inputHelper.getInputs();
  4006. try {
  4007. // Register problem matcher
  4008. coreCommand.issueCommand('add-matcher', {}, path.join(__dirname, 'problem-matcher.json'));
  4009. // Get sources
  4010. yield gitSourceProvider.getSource(sourceSettings);
  4011. }
  4012. finally {
  4013. // Unregister problem matcher
  4014. coreCommand.issueCommand('remove-matcher', { owner: 'checkout-git' }, '');
  4015. }
  4016. }
  4017. catch (error) {
  4018. core.setFailed(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  4019. }
  4020. });
  4021. }
  4022. function cleanup() {
  4023. var _a, _b;
  4024. return __awaiter(this, void 0, void 0, function* () {
  4025. try {
  4026. yield gitSourceProvider.cleanup(stateHelper.RepositoryPath);
  4027. }
  4028. catch (error) {
  4029. core.warning(`${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  4030. }
  4031. });
  4032. }
  4033. // Main
  4034. if (!stateHelper.IsPost) {
  4035. run();
  4036. }
  4037. // Post
  4038. else {
  4039. cleanup();
  4040. }
  4041. /***/ }),
  4042. /***/ 204:
  4043. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4044. "use strict";
  4045. Object.defineProperty(exports, "__esModule", {
  4046. value: true
  4047. });
  4048. exports.default = void 0;
  4049. var _validate = _interopRequireDefault(__webpack_require__(634));
  4050. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  4051. function parse(uuid) {
  4052. if (!(0, _validate.default)(uuid)) {
  4053. throw TypeError('Invalid UUID');
  4054. }
  4055. let v;
  4056. const arr = new Uint8Array(16); // Parse ########-....-....-....-............
  4057. arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
  4058. arr[1] = v >>> 16 & 0xff;
  4059. arr[2] = v >>> 8 & 0xff;
  4060. arr[3] = v & 0xff; // Parse ........-####-....-....-............
  4061. arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
  4062. arr[5] = v & 0xff; // Parse ........-....-####-....-............
  4063. arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
  4064. arr[7] = v & 0xff; // Parse ........-....-....-####-............
  4065. arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
  4066. arr[9] = v & 0xff; // Parse ........-....-....-....-############
  4067. // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
  4068. arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
  4069. arr[11] = v / 0x100000000 & 0xff;
  4070. arr[12] = v >>> 24 & 0xff;
  4071. arr[13] = v >>> 16 & 0xff;
  4072. arr[14] = v >>> 8 & 0xff;
  4073. arr[15] = v & 0xff;
  4074. return arr;
  4075. }
  4076. var _default = parse;
  4077. exports.default = _default;
  4078. /***/ }),
  4079. /***/ 211:
  4080. /***/ (function(module) {
  4081. module.exports = require("https");
  4082. /***/ }),
  4083. /***/ 213:
  4084. /***/ (function(module) {
  4085. module.exports = require("punycode");
  4086. /***/ }),
  4087. /***/ 215:
  4088. /***/ (function(module) {
  4089. module.exports = {"name":"@octokit/rest","version":"16.43.1","publishConfig":{"access":"public"},"description":"GitHub REST API client for Node.js","keywords":["octokit","github","rest","api-client"],"author":"Gregor Martynus (https://github.com/gr2m)","contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"repository":"https://github.com/octokit/rest.js","dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"types":"index.d.ts","scripts":{"coverage":"nyc report --reporter=html && open coverage/index.html","lint":"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","pretest":"npm run -s lint","test":"nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"","test:browser":"cypress run --browser chrome","build":"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},"license":"MIT","files":["index.js","index.d.ts","lib","plugins"],"nyc":{"ignore":["test"]},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}],"_resolved":"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz","_integrity":"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==","_from":"@octokit/rest@16.43.1"};
  4090. /***/ }),
  4091. /***/ 227:
  4092. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4093. "use strict";
  4094. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4095. if (k2 === undefined) k2 = k;
  4096. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  4097. }) : (function(o, m, k, k2) {
  4098. if (k2 === undefined) k2 = k;
  4099. o[k2] = m[k];
  4100. }));
  4101. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  4102. Object.defineProperty(o, "default", { enumerable: true, value: v });
  4103. }) : function(o, v) {
  4104. o["default"] = v;
  4105. });
  4106. var __importStar = (this && this.__importStar) || function (mod) {
  4107. if (mod && mod.__esModule) return mod;
  4108. var result = {};
  4109. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  4110. __setModuleDefault(result, mod);
  4111. return result;
  4112. };
  4113. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  4114. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  4115. return new (P || (P = Promise))(function (resolve, reject) {
  4116. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  4117. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  4118. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  4119. step((generator = generator.apply(thisArg, _arguments || [])).next());
  4120. });
  4121. };
  4122. Object.defineProperty(exports, "__esModule", { value: true });
  4123. exports.fromPayload = exports.checkCommitInfo = exports.testRef = exports.getRefSpec = exports.getRefSpecForAllHistory = exports.getCheckoutInfo = exports.tagsRefSpec = void 0;
  4124. const url_1 = __webpack_require__(835);
  4125. const core = __importStar(__webpack_require__(470));
  4126. const github = __importStar(__webpack_require__(469));
  4127. exports.tagsRefSpec = '+refs/tags/*:refs/tags/*';
  4128. function getCheckoutInfo(git, ref, commit) {
  4129. return __awaiter(this, void 0, void 0, function* () {
  4130. if (!git) {
  4131. throw new Error('Arg git cannot be empty');
  4132. }
  4133. if (!ref && !commit) {
  4134. throw new Error('Args ref and commit cannot both be empty');
  4135. }
  4136. const result = {};
  4137. const upperRef = (ref || '').toUpperCase();
  4138. // SHA only
  4139. if (!ref) {
  4140. result.ref = commit;
  4141. }
  4142. // refs/heads/
  4143. else if (upperRef.startsWith('REFS/HEADS/')) {
  4144. const branch = ref.substring('refs/heads/'.length);
  4145. result.ref = branch;
  4146. result.startPoint = `refs/remotes/origin/${branch}`;
  4147. }
  4148. // refs/pull/
  4149. else if (upperRef.startsWith('REFS/PULL/')) {
  4150. const branch = ref.substring('refs/pull/'.length);
  4151. result.ref = `refs/remotes/pull/${branch}`;
  4152. }
  4153. // refs/tags/
  4154. else if (upperRef.startsWith('REFS/')) {
  4155. result.ref = ref;
  4156. }
  4157. // Unqualified ref, check for a matching branch or tag
  4158. else {
  4159. if (yield git.branchExists(true, `origin/${ref}`)) {
  4160. result.ref = ref;
  4161. result.startPoint = `refs/remotes/origin/${ref}`;
  4162. }
  4163. else if (yield git.tagExists(`${ref}`)) {
  4164. result.ref = `refs/tags/${ref}`;
  4165. }
  4166. else {
  4167. throw new Error(`A branch or tag with the name '${ref}' could not be found`);
  4168. }
  4169. }
  4170. return result;
  4171. });
  4172. }
  4173. exports.getCheckoutInfo = getCheckoutInfo;
  4174. function getRefSpecForAllHistory(ref, commit) {
  4175. const result = ['+refs/heads/*:refs/remotes/origin/*', exports.tagsRefSpec];
  4176. if (ref && ref.toUpperCase().startsWith('REFS/PULL/')) {
  4177. const branch = ref.substring('refs/pull/'.length);
  4178. result.push(`+${commit || ref}:refs/remotes/pull/${branch}`);
  4179. }
  4180. return result;
  4181. }
  4182. exports.getRefSpecForAllHistory = getRefSpecForAllHistory;
  4183. function getRefSpec(ref, commit) {
  4184. if (!ref && !commit) {
  4185. throw new Error('Args ref and commit cannot both be empty');
  4186. }
  4187. const upperRef = (ref || '').toUpperCase();
  4188. // SHA
  4189. if (commit) {
  4190. // refs/heads
  4191. if (upperRef.startsWith('REFS/HEADS/')) {
  4192. const branch = ref.substring('refs/heads/'.length);
  4193. return [`+${commit}:refs/remotes/origin/${branch}`];
  4194. }
  4195. // refs/pull/
  4196. else if (upperRef.startsWith('REFS/PULL/')) {
  4197. const branch = ref.substring('refs/pull/'.length);
  4198. return [`+${commit}:refs/remotes/pull/${branch}`];
  4199. }
  4200. // refs/tags/
  4201. else if (upperRef.startsWith('REFS/TAGS/')) {
  4202. return [`+${commit}:${ref}`];
  4203. }
  4204. // Otherwise no destination ref
  4205. else {
  4206. return [commit];
  4207. }
  4208. }
  4209. // Unqualified ref, check for a matching branch or tag
  4210. else if (!upperRef.startsWith('REFS/')) {
  4211. return [
  4212. `+refs/heads/${ref}*:refs/remotes/origin/${ref}*`,
  4213. `+refs/tags/${ref}*:refs/tags/${ref}*`
  4214. ];
  4215. }
  4216. // refs/heads/
  4217. else if (upperRef.startsWith('REFS/HEADS/')) {
  4218. const branch = ref.substring('refs/heads/'.length);
  4219. return [`+${ref}:refs/remotes/origin/${branch}`];
  4220. }
  4221. // refs/pull/
  4222. else if (upperRef.startsWith('REFS/PULL/')) {
  4223. const branch = ref.substring('refs/pull/'.length);
  4224. return [`+${ref}:refs/remotes/pull/${branch}`];
  4225. }
  4226. // refs/tags/
  4227. else {
  4228. return [`+${ref}:${ref}`];
  4229. }
  4230. }
  4231. exports.getRefSpec = getRefSpec;
  4232. /**
  4233. * Tests whether the initial fetch created the ref at the expected commit
  4234. */
  4235. function testRef(git, ref, commit) {
  4236. return __awaiter(this, void 0, void 0, function* () {
  4237. if (!git) {
  4238. throw new Error('Arg git cannot be empty');
  4239. }
  4240. if (!ref && !commit) {
  4241. throw new Error('Args ref and commit cannot both be empty');
  4242. }
  4243. // No SHA? Nothing to test
  4244. if (!commit) {
  4245. return true;
  4246. }
  4247. // SHA only?
  4248. else if (!ref) {
  4249. return yield git.shaExists(commit);
  4250. }
  4251. const upperRef = ref.toUpperCase();
  4252. // refs/heads/
  4253. if (upperRef.startsWith('REFS/HEADS/')) {
  4254. const branch = ref.substring('refs/heads/'.length);
  4255. return ((yield git.branchExists(true, `origin/${branch}`)) &&
  4256. commit === (yield git.revParse(`refs/remotes/origin/${branch}`)));
  4257. }
  4258. // refs/pull/
  4259. else if (upperRef.startsWith('REFS/PULL/')) {
  4260. // Assume matches because fetched using the commit
  4261. return true;
  4262. }
  4263. // refs/tags/
  4264. else if (upperRef.startsWith('REFS/TAGS/')) {
  4265. const tagName = ref.substring('refs/tags/'.length);
  4266. return ((yield git.tagExists(tagName)) && commit === (yield git.revParse(ref)));
  4267. }
  4268. // Unexpected
  4269. else {
  4270. core.debug(`Unexpected ref format '${ref}' when testing ref info`);
  4271. return true;
  4272. }
  4273. });
  4274. }
  4275. exports.testRef = testRef;
  4276. function checkCommitInfo(token, commitInfo, repositoryOwner, repositoryName, ref, commit) {
  4277. var _a, _b;
  4278. return __awaiter(this, void 0, void 0, function* () {
  4279. try {
  4280. // GHES?
  4281. if (isGhes()) {
  4282. return;
  4283. }
  4284. // Auth token?
  4285. if (!token) {
  4286. return;
  4287. }
  4288. // Public PR synchronize, for workflow repo?
  4289. if (fromPayload('repository.private') !== false ||
  4290. github.context.eventName !== 'pull_request' ||
  4291. fromPayload('action') !== 'synchronize' ||
  4292. repositoryOwner !== github.context.repo.owner ||
  4293. repositoryName !== github.context.repo.repo ||
  4294. ref !== github.context.ref ||
  4295. !ref.startsWith('refs/pull/') ||
  4296. commit !== github.context.sha) {
  4297. return;
  4298. }
  4299. // Head SHA
  4300. const expectedHeadSha = fromPayload('after');
  4301. if (!expectedHeadSha) {
  4302. core.debug('Unable to determine head sha');
  4303. return;
  4304. }
  4305. // Base SHA
  4306. const expectedBaseSha = fromPayload('pull_request.base.sha');
  4307. if (!expectedBaseSha) {
  4308. core.debug('Unable to determine base sha');
  4309. return;
  4310. }
  4311. // Expected message?
  4312. const expectedMessage = `Merge ${expectedHeadSha} into ${expectedBaseSha}`;
  4313. if (commitInfo.indexOf(expectedMessage) >= 0) {
  4314. return;
  4315. }
  4316. // Extract details from message
  4317. const match = commitInfo.match(/Merge ([0-9a-f]{40}) into ([0-9a-f]{40})/);
  4318. if (!match) {
  4319. core.debug('Unexpected message format');
  4320. return;
  4321. }
  4322. // Post telemetry
  4323. const actualHeadSha = match[1];
  4324. if (actualHeadSha !== expectedHeadSha) {
  4325. core.debug(`Expected head sha ${expectedHeadSha}; actual head sha ${actualHeadSha}`);
  4326. const octokit = new github.GitHub(token, {
  4327. userAgent: `actions-checkout-tracepoint/1.0 (code=STALE_MERGE;owner=${repositoryOwner};repo=${repositoryName};pr=${fromPayload('number')};run_id=${process.env['GITHUB_RUN_ID']};expected_head_sha=${expectedHeadSha};actual_head_sha=${actualHeadSha})`
  4328. });
  4329. yield octokit.repos.get({ owner: repositoryOwner, repo: repositoryName });
  4330. }
  4331. }
  4332. catch (err) {
  4333. core.debug(`Error when validating commit info: ${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.stack) !== null && _b !== void 0 ? _b : err}`);
  4334. }
  4335. });
  4336. }
  4337. exports.checkCommitInfo = checkCommitInfo;
  4338. function fromPayload(path) {
  4339. return select(github.context.payload, path);
  4340. }
  4341. exports.fromPayload = fromPayload;
  4342. function select(obj, path) {
  4343. if (!obj) {
  4344. return undefined;
  4345. }
  4346. const i = path.indexOf('.');
  4347. if (i < 0) {
  4348. return obj[path];
  4349. }
  4350. const key = path.substr(0, i);
  4351. return select(obj[key], path.substr(i + 1));
  4352. }
  4353. function isGhes() {
  4354. const ghUrl = new url_1.URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
  4355. return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
  4356. }
  4357. /***/ }),
  4358. /***/ 256:
  4359. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4360. "use strict";
  4361. const usm = __webpack_require__(936);
  4362. exports.implementation = class URLImpl {
  4363. constructor(constructorArgs) {
  4364. const url = constructorArgs[0];
  4365. const base = constructorArgs[1];
  4366. let parsedBase = null;
  4367. if (base !== undefined) {
  4368. parsedBase = usm.basicURLParse(base);
  4369. if (parsedBase === "failure") {
  4370. throw new TypeError("Invalid base URL");
  4371. }
  4372. }
  4373. const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
  4374. if (parsedURL === "failure") {
  4375. throw new TypeError("Invalid URL");
  4376. }
  4377. this._url = parsedURL;
  4378. // TODO: query stuff
  4379. }
  4380. get href() {
  4381. return usm.serializeURL(this._url);
  4382. }
  4383. set href(v) {
  4384. const parsedURL = usm.basicURLParse(v);
  4385. if (parsedURL === "failure") {
  4386. throw new TypeError("Invalid URL");
  4387. }
  4388. this._url = parsedURL;
  4389. }
  4390. get origin() {
  4391. return usm.serializeURLOrigin(this._url);
  4392. }
  4393. get protocol() {
  4394. return this._url.scheme + ":";
  4395. }
  4396. set protocol(v) {
  4397. usm.basicURLParse(v + ":", { url: this._url, stateOverride: "scheme start" });
  4398. }
  4399. get username() {
  4400. return this._url.username;
  4401. }
  4402. set username(v) {
  4403. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4404. return;
  4405. }
  4406. usm.setTheUsername(this._url, v);
  4407. }
  4408. get password() {
  4409. return this._url.password;
  4410. }
  4411. set password(v) {
  4412. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4413. return;
  4414. }
  4415. usm.setThePassword(this._url, v);
  4416. }
  4417. get host() {
  4418. const url = this._url;
  4419. if (url.host === null) {
  4420. return "";
  4421. }
  4422. if (url.port === null) {
  4423. return usm.serializeHost(url.host);
  4424. }
  4425. return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
  4426. }
  4427. set host(v) {
  4428. if (this._url.cannotBeABaseURL) {
  4429. return;
  4430. }
  4431. usm.basicURLParse(v, { url: this._url, stateOverride: "host" });
  4432. }
  4433. get hostname() {
  4434. if (this._url.host === null) {
  4435. return "";
  4436. }
  4437. return usm.serializeHost(this._url.host);
  4438. }
  4439. set hostname(v) {
  4440. if (this._url.cannotBeABaseURL) {
  4441. return;
  4442. }
  4443. usm.basicURLParse(v, { url: this._url, stateOverride: "hostname" });
  4444. }
  4445. get port() {
  4446. if (this._url.port === null) {
  4447. return "";
  4448. }
  4449. return usm.serializeInteger(this._url.port);
  4450. }
  4451. set port(v) {
  4452. if (usm.cannotHaveAUsernamePasswordPort(this._url)) {
  4453. return;
  4454. }
  4455. if (v === "") {
  4456. this._url.port = null;
  4457. } else {
  4458. usm.basicURLParse(v, { url: this._url, stateOverride: "port" });
  4459. }
  4460. }
  4461. get pathname() {
  4462. if (this._url.cannotBeABaseURL) {
  4463. return this._url.path[0];
  4464. }
  4465. if (this._url.path.length === 0) {
  4466. return "";
  4467. }
  4468. return "/" + this._url.path.join("/");
  4469. }
  4470. set pathname(v) {
  4471. if (this._url.cannotBeABaseURL) {
  4472. return;
  4473. }
  4474. this._url.path = [];
  4475. usm.basicURLParse(v, { url: this._url, stateOverride: "path start" });
  4476. }
  4477. get search() {
  4478. if (this._url.query === null || this._url.query === "") {
  4479. return "";
  4480. }
  4481. return "?" + this._url.query;
  4482. }
  4483. set search(v) {
  4484. // TODO: query stuff
  4485. const url = this._url;
  4486. if (v === "") {
  4487. url.query = null;
  4488. return;
  4489. }
  4490. const input = v[0] === "?" ? v.substring(1) : v;
  4491. url.query = "";
  4492. usm.basicURLParse(input, { url, stateOverride: "query" });
  4493. }
  4494. get hash() {
  4495. if (this._url.fragment === null || this._url.fragment === "") {
  4496. return "";
  4497. }
  4498. return "#" + this._url.fragment;
  4499. }
  4500. set hash(v) {
  4501. if (v === "") {
  4502. this._url.fragment = null;
  4503. return;
  4504. }
  4505. const input = v[0] === "#" ? v.substring(1) : v;
  4506. this._url.fragment = "";
  4507. usm.basicURLParse(input, { url: this._url, stateOverride: "fragment" });
  4508. }
  4509. toJSON() {
  4510. return this.href;
  4511. }
  4512. };
  4513. /***/ }),
  4514. /***/ 260:
  4515. /***/ (function(module, __unusedexports, __webpack_require__) {
  4516. // Note: since nyc uses this module to output coverage, any lines
  4517. // that are in the direct sync flow of nyc's outputCoverage are
  4518. // ignored, since we can never get coverage for them.
  4519. var assert = __webpack_require__(357)
  4520. var signals = __webpack_require__(654)
  4521. var EE = __webpack_require__(614)
  4522. /* istanbul ignore if */
  4523. if (typeof EE !== 'function') {
  4524. EE = EE.EventEmitter
  4525. }
  4526. var emitter
  4527. if (process.__signal_exit_emitter__) {
  4528. emitter = process.__signal_exit_emitter__
  4529. } else {
  4530. emitter = process.__signal_exit_emitter__ = new EE()
  4531. emitter.count = 0
  4532. emitter.emitted = {}
  4533. }
  4534. // Because this emitter is a global, we have to check to see if a
  4535. // previous version of this library failed to enable infinite listeners.
  4536. // I know what you're about to say. But literally everything about
  4537. // signal-exit is a compromise with evil. Get used to it.
  4538. if (!emitter.infinite) {
  4539. emitter.setMaxListeners(Infinity)
  4540. emitter.infinite = true
  4541. }
  4542. module.exports = function (cb, opts) {
  4543. assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
  4544. if (loaded === false) {
  4545. load()
  4546. }
  4547. var ev = 'exit'
  4548. if (opts && opts.alwaysLast) {
  4549. ev = 'afterexit'
  4550. }
  4551. var remove = function () {
  4552. emitter.removeListener(ev, cb)
  4553. if (emitter.listeners('exit').length === 0 &&
  4554. emitter.listeners('afterexit').length === 0) {
  4555. unload()
  4556. }
  4557. }
  4558. emitter.on(ev, cb)
  4559. return remove
  4560. }
  4561. module.exports.unload = unload
  4562. function unload () {
  4563. if (!loaded) {
  4564. return
  4565. }
  4566. loaded = false
  4567. signals.forEach(function (sig) {
  4568. try {
  4569. process.removeListener(sig, sigListeners[sig])
  4570. } catch (er) {}
  4571. })
  4572. process.emit = originalProcessEmit
  4573. process.reallyExit = originalProcessReallyExit
  4574. emitter.count -= 1
  4575. }
  4576. function emit (event, code, signal) {
  4577. if (emitter.emitted[event]) {
  4578. return
  4579. }
  4580. emitter.emitted[event] = true
  4581. emitter.emit(event, code, signal)
  4582. }
  4583. // { <signal>: <listener fn>, ... }
  4584. var sigListeners = {}
  4585. signals.forEach(function (sig) {
  4586. sigListeners[sig] = function listener () {
  4587. // If there are no other listeners, an exit is coming!
  4588. // Simplest way: remove us and then re-send the signal.
  4589. // We know that this will kill the process, so we can
  4590. // safely emit now.
  4591. var listeners = process.listeners(sig)
  4592. if (listeners.length === emitter.count) {
  4593. unload()
  4594. emit('exit', null, sig)
  4595. /* istanbul ignore next */
  4596. emit('afterexit', null, sig)
  4597. /* istanbul ignore next */
  4598. process.kill(process.pid, sig)
  4599. }
  4600. }
  4601. })
  4602. module.exports.signals = function () {
  4603. return signals
  4604. }
  4605. module.exports.load = load
  4606. var loaded = false
  4607. function load () {
  4608. if (loaded) {
  4609. return
  4610. }
  4611. loaded = true
  4612. // This is the number of onSignalExit's that are in play.
  4613. // It's important so that we can count the correct number of
  4614. // listeners on signals, and don't wait for the other one to
  4615. // handle it instead of us.
  4616. emitter.count += 1
  4617. signals = signals.filter(function (sig) {
  4618. try {
  4619. process.on(sig, sigListeners[sig])
  4620. return true
  4621. } catch (er) {
  4622. return false
  4623. }
  4624. })
  4625. process.emit = processEmit
  4626. process.reallyExit = processReallyExit
  4627. }
  4628. var originalProcessReallyExit = process.reallyExit
  4629. function processReallyExit (code) {
  4630. process.exitCode = code || 0
  4631. emit('exit', process.exitCode, null)
  4632. /* istanbul ignore next */
  4633. emit('afterexit', process.exitCode, null)
  4634. /* istanbul ignore next */
  4635. originalProcessReallyExit.call(process, process.exitCode)
  4636. }
  4637. var originalProcessEmit = process.emit
  4638. function processEmit (ev, arg) {
  4639. if (ev === 'exit') {
  4640. if (arg !== undefined) {
  4641. process.exitCode = arg
  4642. }
  4643. var ret = originalProcessEmit.apply(this, arguments)
  4644. emit('exit', process.exitCode, null)
  4645. /* istanbul ignore next */
  4646. emit('afterexit', process.exitCode, null)
  4647. return ret
  4648. } else {
  4649. return originalProcessEmit.apply(this, arguments)
  4650. }
  4651. }
  4652. /***/ }),
  4653. /***/ 262:
  4654. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  4655. "use strict";
  4656. Object.defineProperty(exports, "__esModule", { value: true });
  4657. const fs_1 = __webpack_require__(747);
  4658. const os_1 = __webpack_require__(87);
  4659. class Context {
  4660. /**
  4661. * Hydrate the context from the environment
  4662. */
  4663. constructor() {
  4664. this.payload = {};
  4665. if (process.env.GITHUB_EVENT_PATH) {
  4666. if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) {
  4667. this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
  4668. }
  4669. else {
  4670. const path = process.env.GITHUB_EVENT_PATH;
  4671. process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
  4672. }
  4673. }
  4674. this.eventName = process.env.GITHUB_EVENT_NAME;
  4675. this.sha = process.env.GITHUB_SHA;
  4676. this.ref = process.env.GITHUB_REF;
  4677. this.workflow = process.env.GITHUB_WORKFLOW;
  4678. this.action = process.env.GITHUB_ACTION;
  4679. this.actor = process.env.GITHUB_ACTOR;
  4680. }
  4681. get issue() {
  4682. const payload = this.payload;
  4683. return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
  4684. }
  4685. get repo() {
  4686. if (process.env.GITHUB_REPOSITORY) {
  4687. const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
  4688. return { owner, repo };
  4689. }
  4690. if (this.payload.repository) {
  4691. return {
  4692. owner: this.payload.repository.owner.login,
  4693. repo: this.payload.repository.name
  4694. };
  4695. }
  4696. throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
  4697. }
  4698. }
  4699. exports.Context = Context;
  4700. //# sourceMappingURL=context.js.map
  4701. /***/ }),
  4702. /***/ 265:
  4703. /***/ (function(module, __unusedexports, __webpack_require__) {
  4704. module.exports = getPage
  4705. const deprecate = __webpack_require__(370)
  4706. const getPageLinks = __webpack_require__(577)
  4707. const HttpError = __webpack_require__(297)
  4708. function getPage (octokit, link, which, headers) {
  4709. deprecate(`octokit.get${which.charAt(0).toUpperCase() + which.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  4710. const url = getPageLinks(link)[which]
  4711. if (!url) {
  4712. const urlError = new HttpError(`No ${which} page found`, 404)
  4713. return Promise.reject(urlError)
  4714. }
  4715. const requestOptions = {
  4716. url,
  4717. headers: applyAcceptHeader(link, headers)
  4718. }
  4719. const promise = octokit.request(requestOptions)
  4720. return promise
  4721. }
  4722. function applyAcceptHeader (res, headers) {
  4723. const previous = res.headers && res.headers['x-github-media-type']
  4724. if (!previous || (headers && headers.accept)) {
  4725. return headers
  4726. }
  4727. headers = headers || {}
  4728. headers.accept = 'application/vnd.' + previous
  4729. .replace('; param=', '.')
  4730. .replace('; format=', '+')
  4731. return headers
  4732. }
  4733. /***/ }),
  4734. /***/ 277:
  4735. /***/ (function(module, __unusedexports, __webpack_require__) {
  4736. "use strict";
  4737. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  4738. var hasSymbolSham = __webpack_require__(923);
  4739. module.exports = function hasNativeSymbols() {
  4740. if (typeof origSymbol !== 'function') { return false; }
  4741. if (typeof Symbol !== 'function') { return false; }
  4742. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  4743. if (typeof Symbol('bar') !== 'symbol') { return false; }
  4744. return hasSymbolSham();
  4745. };
  4746. /***/ }),
  4747. /***/ 280:
  4748. /***/ (function(module, exports) {
  4749. exports = module.exports = SemVer
  4750. var debug
  4751. /* istanbul ignore next */
  4752. if (typeof process === 'object' &&
  4753. process.env &&
  4754. process.env.NODE_DEBUG &&
  4755. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  4756. debug = function () {
  4757. var args = Array.prototype.slice.call(arguments, 0)
  4758. args.unshift('SEMVER')
  4759. console.log.apply(console, args)
  4760. }
  4761. } else {
  4762. debug = function () {}
  4763. }
  4764. // Note: this is the semver.org version of the spec that it implements
  4765. // Not necessarily the package version of this code.
  4766. exports.SEMVER_SPEC_VERSION = '2.0.0'
  4767. var MAX_LENGTH = 256
  4768. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  4769. /* istanbul ignore next */ 9007199254740991
  4770. // Max safe segment length for coercion.
  4771. var MAX_SAFE_COMPONENT_LENGTH = 16
  4772. // The actual regexps go on exports.re
  4773. var re = exports.re = []
  4774. var src = exports.src = []
  4775. var R = 0
  4776. // The following Regular Expressions can be used for tokenizing,
  4777. // validating, and parsing SemVer version strings.
  4778. // ## Numeric Identifier
  4779. // A single `0`, or a non-zero digit followed by zero or more digits.
  4780. var NUMERICIDENTIFIER = R++
  4781. src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  4782. var NUMERICIDENTIFIERLOOSE = R++
  4783. src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  4784. // ## Non-numeric Identifier
  4785. // Zero or more digits, followed by a letter or hyphen, and then zero or
  4786. // more letters, digits, or hyphens.
  4787. var NONNUMERICIDENTIFIER = R++
  4788. src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  4789. // ## Main Version
  4790. // Three dot-separated numeric identifiers.
  4791. var MAINVERSION = R++
  4792. src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  4793. '(' + src[NUMERICIDENTIFIER] + ')\\.' +
  4794. '(' + src[NUMERICIDENTIFIER] + ')'
  4795. var MAINVERSIONLOOSE = R++
  4796. src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  4797. '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
  4798. '(' + src[NUMERICIDENTIFIERLOOSE] + ')'
  4799. // ## Pre-release Version Identifier
  4800. // A numeric identifier, or a non-numeric identifier.
  4801. var PRERELEASEIDENTIFIER = R++
  4802. src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
  4803. '|' + src[NONNUMERICIDENTIFIER] + ')'
  4804. var PRERELEASEIDENTIFIERLOOSE = R++
  4805. src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
  4806. '|' + src[NONNUMERICIDENTIFIER] + ')'
  4807. // ## Pre-release Version
  4808. // Hyphen, followed by one or more dot-separated pre-release version
  4809. // identifiers.
  4810. var PRERELEASE = R++
  4811. src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
  4812. '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
  4813. var PRERELEASELOOSE = R++
  4814. src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
  4815. '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
  4816. // ## Build Metadata Identifier
  4817. // Any combination of digits, letters, or hyphens.
  4818. var BUILDIDENTIFIER = R++
  4819. src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  4820. // ## Build Metadata
  4821. // Plus sign, followed by one or more period-separated build metadata
  4822. // identifiers.
  4823. var BUILD = R++
  4824. src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
  4825. '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
  4826. // ## Full Version String
  4827. // A main version, followed optionally by a pre-release version and
  4828. // build metadata.
  4829. // Note that the only major, minor, patch, and pre-release sections of
  4830. // the version string are capturing groups. The build metadata is not a
  4831. // capturing group, because it should not ever be used in version
  4832. // comparison.
  4833. var FULL = R++
  4834. var FULLPLAIN = 'v?' + src[MAINVERSION] +
  4835. src[PRERELEASE] + '?' +
  4836. src[BUILD] + '?'
  4837. src[FULL] = '^' + FULLPLAIN + '$'
  4838. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  4839. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  4840. // common in the npm registry.
  4841. var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
  4842. src[PRERELEASELOOSE] + '?' +
  4843. src[BUILD] + '?'
  4844. var LOOSE = R++
  4845. src[LOOSE] = '^' + LOOSEPLAIN + '$'
  4846. var GTLT = R++
  4847. src[GTLT] = '((?:<|>)?=?)'
  4848. // Something like "2.*" or "1.2.x".
  4849. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  4850. // Only the first item is strictly required.
  4851. var XRANGEIDENTIFIERLOOSE = R++
  4852. src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  4853. var XRANGEIDENTIFIER = R++
  4854. src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
  4855. var XRANGEPLAIN = R++
  4856. src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
  4857. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  4858. '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
  4859. '(?:' + src[PRERELEASE] + ')?' +
  4860. src[BUILD] + '?' +
  4861. ')?)?'
  4862. var XRANGEPLAINLOOSE = R++
  4863. src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4864. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4865. '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
  4866. '(?:' + src[PRERELEASELOOSE] + ')?' +
  4867. src[BUILD] + '?' +
  4868. ')?)?'
  4869. var XRANGE = R++
  4870. src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
  4871. var XRANGELOOSE = R++
  4872. src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
  4873. // Coercion.
  4874. // Extract anything that could conceivably be a part of a valid semver
  4875. var COERCE = R++
  4876. src[COERCE] = '(?:^|[^\\d])' +
  4877. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  4878. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  4879. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  4880. '(?:$|[^\\d])'
  4881. // Tilde ranges.
  4882. // Meaning is "reasonably at or greater than"
  4883. var LONETILDE = R++
  4884. src[LONETILDE] = '(?:~>?)'
  4885. var TILDETRIM = R++
  4886. src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
  4887. re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
  4888. var tildeTrimReplace = '$1~'
  4889. var TILDE = R++
  4890. src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
  4891. var TILDELOOSE = R++
  4892. src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
  4893. // Caret ranges.
  4894. // Meaning is "at least and backwards compatible with"
  4895. var LONECARET = R++
  4896. src[LONECARET] = '(?:\\^)'
  4897. var CARETTRIM = R++
  4898. src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
  4899. re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
  4900. var caretTrimReplace = '$1^'
  4901. var CARET = R++
  4902. src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
  4903. var CARETLOOSE = R++
  4904. src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
  4905. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  4906. var COMPARATORLOOSE = R++
  4907. src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
  4908. var COMPARATOR = R++
  4909. src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
  4910. // An expression to strip any whitespace between the gtlt and the thing
  4911. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  4912. var COMPARATORTRIM = R++
  4913. src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
  4914. '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
  4915. // this one has to use the /g flag
  4916. re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
  4917. var comparatorTrimReplace = '$1$2$3'
  4918. // Something like `1.2.3 - 1.2.4`
  4919. // Note that these all use the loose form, because they'll be
  4920. // checked against either the strict or loose comparator form
  4921. // later.
  4922. var HYPHENRANGE = R++
  4923. src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
  4924. '\\s+-\\s+' +
  4925. '(' + src[XRANGEPLAIN] + ')' +
  4926. '\\s*$'
  4927. var HYPHENRANGELOOSE = R++
  4928. src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
  4929. '\\s+-\\s+' +
  4930. '(' + src[XRANGEPLAINLOOSE] + ')' +
  4931. '\\s*$'
  4932. // Star ranges basically just allow anything at all.
  4933. var STAR = R++
  4934. src[STAR] = '(<|>)?=?\\s*\\*'
  4935. // Compile to actual regexp objects.
  4936. // All are flag-free, unless they were created above with a flag.
  4937. for (var i = 0; i < R; i++) {
  4938. debug(i, src[i])
  4939. if (!re[i]) {
  4940. re[i] = new RegExp(src[i])
  4941. }
  4942. }
  4943. exports.parse = parse
  4944. function parse (version, options) {
  4945. if (!options || typeof options !== 'object') {
  4946. options = {
  4947. loose: !!options,
  4948. includePrerelease: false
  4949. }
  4950. }
  4951. if (version instanceof SemVer) {
  4952. return version
  4953. }
  4954. if (typeof version !== 'string') {
  4955. return null
  4956. }
  4957. if (version.length > MAX_LENGTH) {
  4958. return null
  4959. }
  4960. var r = options.loose ? re[LOOSE] : re[FULL]
  4961. if (!r.test(version)) {
  4962. return null
  4963. }
  4964. try {
  4965. return new SemVer(version, options)
  4966. } catch (er) {
  4967. return null
  4968. }
  4969. }
  4970. exports.valid = valid
  4971. function valid (version, options) {
  4972. var v = parse(version, options)
  4973. return v ? v.version : null
  4974. }
  4975. exports.clean = clean
  4976. function clean (version, options) {
  4977. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  4978. return s ? s.version : null
  4979. }
  4980. exports.SemVer = SemVer
  4981. function SemVer (version, options) {
  4982. if (!options || typeof options !== 'object') {
  4983. options = {
  4984. loose: !!options,
  4985. includePrerelease: false
  4986. }
  4987. }
  4988. if (version instanceof SemVer) {
  4989. if (version.loose === options.loose) {
  4990. return version
  4991. } else {
  4992. version = version.version
  4993. }
  4994. } else if (typeof version !== 'string') {
  4995. throw new TypeError('Invalid Version: ' + version)
  4996. }
  4997. if (version.length > MAX_LENGTH) {
  4998. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  4999. }
  5000. if (!(this instanceof SemVer)) {
  5001. return new SemVer(version, options)
  5002. }
  5003. debug('SemVer', version, options)
  5004. this.options = options
  5005. this.loose = !!options.loose
  5006. var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
  5007. if (!m) {
  5008. throw new TypeError('Invalid Version: ' + version)
  5009. }
  5010. this.raw = version
  5011. // these are actually numbers
  5012. this.major = +m[1]
  5013. this.minor = +m[2]
  5014. this.patch = +m[3]
  5015. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  5016. throw new TypeError('Invalid major version')
  5017. }
  5018. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  5019. throw new TypeError('Invalid minor version')
  5020. }
  5021. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  5022. throw new TypeError('Invalid patch version')
  5023. }
  5024. // numberify any prerelease numeric ids
  5025. if (!m[4]) {
  5026. this.prerelease = []
  5027. } else {
  5028. this.prerelease = m[4].split('.').map(function (id) {
  5029. if (/^[0-9]+$/.test(id)) {
  5030. var num = +id
  5031. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  5032. return num
  5033. }
  5034. }
  5035. return id
  5036. })
  5037. }
  5038. this.build = m[5] ? m[5].split('.') : []
  5039. this.format()
  5040. }
  5041. SemVer.prototype.format = function () {
  5042. this.version = this.major + '.' + this.minor + '.' + this.patch
  5043. if (this.prerelease.length) {
  5044. this.version += '-' + this.prerelease.join('.')
  5045. }
  5046. return this.version
  5047. }
  5048. SemVer.prototype.toString = function () {
  5049. return this.version
  5050. }
  5051. SemVer.prototype.compare = function (other) {
  5052. debug('SemVer.compare', this.version, this.options, other)
  5053. if (!(other instanceof SemVer)) {
  5054. other = new SemVer(other, this.options)
  5055. }
  5056. return this.compareMain(other) || this.comparePre(other)
  5057. }
  5058. SemVer.prototype.compareMain = function (other) {
  5059. if (!(other instanceof SemVer)) {
  5060. other = new SemVer(other, this.options)
  5061. }
  5062. return compareIdentifiers(this.major, other.major) ||
  5063. compareIdentifiers(this.minor, other.minor) ||
  5064. compareIdentifiers(this.patch, other.patch)
  5065. }
  5066. SemVer.prototype.comparePre = function (other) {
  5067. if (!(other instanceof SemVer)) {
  5068. other = new SemVer(other, this.options)
  5069. }
  5070. // NOT having a prerelease is > having one
  5071. if (this.prerelease.length && !other.prerelease.length) {
  5072. return -1
  5073. } else if (!this.prerelease.length && other.prerelease.length) {
  5074. return 1
  5075. } else if (!this.prerelease.length && !other.prerelease.length) {
  5076. return 0
  5077. }
  5078. var i = 0
  5079. do {
  5080. var a = this.prerelease[i]
  5081. var b = other.prerelease[i]
  5082. debug('prerelease compare', i, a, b)
  5083. if (a === undefined && b === undefined) {
  5084. return 0
  5085. } else if (b === undefined) {
  5086. return 1
  5087. } else if (a === undefined) {
  5088. return -1
  5089. } else if (a === b) {
  5090. continue
  5091. } else {
  5092. return compareIdentifiers(a, b)
  5093. }
  5094. } while (++i)
  5095. }
  5096. // preminor will bump the version up to the next minor release, and immediately
  5097. // down to pre-release. premajor and prepatch work the same way.
  5098. SemVer.prototype.inc = function (release, identifier) {
  5099. switch (release) {
  5100. case 'premajor':
  5101. this.prerelease.length = 0
  5102. this.patch = 0
  5103. this.minor = 0
  5104. this.major++
  5105. this.inc('pre', identifier)
  5106. break
  5107. case 'preminor':
  5108. this.prerelease.length = 0
  5109. this.patch = 0
  5110. this.minor++
  5111. this.inc('pre', identifier)
  5112. break
  5113. case 'prepatch':
  5114. // If this is already a prerelease, it will bump to the next version
  5115. // drop any prereleases that might already exist, since they are not
  5116. // relevant at this point.
  5117. this.prerelease.length = 0
  5118. this.inc('patch', identifier)
  5119. this.inc('pre', identifier)
  5120. break
  5121. // If the input is a non-prerelease version, this acts the same as
  5122. // prepatch.
  5123. case 'prerelease':
  5124. if (this.prerelease.length === 0) {
  5125. this.inc('patch', identifier)
  5126. }
  5127. this.inc('pre', identifier)
  5128. break
  5129. case 'major':
  5130. // If this is a pre-major version, bump up to the same major version.
  5131. // Otherwise increment major.
  5132. // 1.0.0-5 bumps to 1.0.0
  5133. // 1.1.0 bumps to 2.0.0
  5134. if (this.minor !== 0 ||
  5135. this.patch !== 0 ||
  5136. this.prerelease.length === 0) {
  5137. this.major++
  5138. }
  5139. this.minor = 0
  5140. this.patch = 0
  5141. this.prerelease = []
  5142. break
  5143. case 'minor':
  5144. // If this is a pre-minor version, bump up to the same minor version.
  5145. // Otherwise increment minor.
  5146. // 1.2.0-5 bumps to 1.2.0
  5147. // 1.2.1 bumps to 1.3.0
  5148. if (this.patch !== 0 || this.prerelease.length === 0) {
  5149. this.minor++
  5150. }
  5151. this.patch = 0
  5152. this.prerelease = []
  5153. break
  5154. case 'patch':
  5155. // If this is not a pre-release version, it will increment the patch.
  5156. // If it is a pre-release it will bump up to the same patch version.
  5157. // 1.2.0-5 patches to 1.2.0
  5158. // 1.2.0 patches to 1.2.1
  5159. if (this.prerelease.length === 0) {
  5160. this.patch++
  5161. }
  5162. this.prerelease = []
  5163. break
  5164. // This probably shouldn't be used publicly.
  5165. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  5166. case 'pre':
  5167. if (this.prerelease.length === 0) {
  5168. this.prerelease = [0]
  5169. } else {
  5170. var i = this.prerelease.length
  5171. while (--i >= 0) {
  5172. if (typeof this.prerelease[i] === 'number') {
  5173. this.prerelease[i]++
  5174. i = -2
  5175. }
  5176. }
  5177. if (i === -1) {
  5178. // didn't increment anything
  5179. this.prerelease.push(0)
  5180. }
  5181. }
  5182. if (identifier) {
  5183. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  5184. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  5185. if (this.prerelease[0] === identifier) {
  5186. if (isNaN(this.prerelease[1])) {
  5187. this.prerelease = [identifier, 0]
  5188. }
  5189. } else {
  5190. this.prerelease = [identifier, 0]
  5191. }
  5192. }
  5193. break
  5194. default:
  5195. throw new Error('invalid increment argument: ' + release)
  5196. }
  5197. this.format()
  5198. this.raw = this.version
  5199. return this
  5200. }
  5201. exports.inc = inc
  5202. function inc (version, release, loose, identifier) {
  5203. if (typeof (loose) === 'string') {
  5204. identifier = loose
  5205. loose = undefined
  5206. }
  5207. try {
  5208. return new SemVer(version, loose).inc(release, identifier).version
  5209. } catch (er) {
  5210. return null
  5211. }
  5212. }
  5213. exports.diff = diff
  5214. function diff (version1, version2) {
  5215. if (eq(version1, version2)) {
  5216. return null
  5217. } else {
  5218. var v1 = parse(version1)
  5219. var v2 = parse(version2)
  5220. var prefix = ''
  5221. if (v1.prerelease.length || v2.prerelease.length) {
  5222. prefix = 'pre'
  5223. var defaultResult = 'prerelease'
  5224. }
  5225. for (var key in v1) {
  5226. if (key === 'major' || key === 'minor' || key === 'patch') {
  5227. if (v1[key] !== v2[key]) {
  5228. return prefix + key
  5229. }
  5230. }
  5231. }
  5232. return defaultResult // may be undefined
  5233. }
  5234. }
  5235. exports.compareIdentifiers = compareIdentifiers
  5236. var numeric = /^[0-9]+$/
  5237. function compareIdentifiers (a, b) {
  5238. var anum = numeric.test(a)
  5239. var bnum = numeric.test(b)
  5240. if (anum && bnum) {
  5241. a = +a
  5242. b = +b
  5243. }
  5244. return a === b ? 0
  5245. : (anum && !bnum) ? -1
  5246. : (bnum && !anum) ? 1
  5247. : a < b ? -1
  5248. : 1
  5249. }
  5250. exports.rcompareIdentifiers = rcompareIdentifiers
  5251. function rcompareIdentifiers (a, b) {
  5252. return compareIdentifiers(b, a)
  5253. }
  5254. exports.major = major
  5255. function major (a, loose) {
  5256. return new SemVer(a, loose).major
  5257. }
  5258. exports.minor = minor
  5259. function minor (a, loose) {
  5260. return new SemVer(a, loose).minor
  5261. }
  5262. exports.patch = patch
  5263. function patch (a, loose) {
  5264. return new SemVer(a, loose).patch
  5265. }
  5266. exports.compare = compare
  5267. function compare (a, b, loose) {
  5268. return new SemVer(a, loose).compare(new SemVer(b, loose))
  5269. }
  5270. exports.compareLoose = compareLoose
  5271. function compareLoose (a, b) {
  5272. return compare(a, b, true)
  5273. }
  5274. exports.rcompare = rcompare
  5275. function rcompare (a, b, loose) {
  5276. return compare(b, a, loose)
  5277. }
  5278. exports.sort = sort
  5279. function sort (list, loose) {
  5280. return list.sort(function (a, b) {
  5281. return exports.compare(a, b, loose)
  5282. })
  5283. }
  5284. exports.rsort = rsort
  5285. function rsort (list, loose) {
  5286. return list.sort(function (a, b) {
  5287. return exports.rcompare(a, b, loose)
  5288. })
  5289. }
  5290. exports.gt = gt
  5291. function gt (a, b, loose) {
  5292. return compare(a, b, loose) > 0
  5293. }
  5294. exports.lt = lt
  5295. function lt (a, b, loose) {
  5296. return compare(a, b, loose) < 0
  5297. }
  5298. exports.eq = eq
  5299. function eq (a, b, loose) {
  5300. return compare(a, b, loose) === 0
  5301. }
  5302. exports.neq = neq
  5303. function neq (a, b, loose) {
  5304. return compare(a, b, loose) !== 0
  5305. }
  5306. exports.gte = gte
  5307. function gte (a, b, loose) {
  5308. return compare(a, b, loose) >= 0
  5309. }
  5310. exports.lte = lte
  5311. function lte (a, b, loose) {
  5312. return compare(a, b, loose) <= 0
  5313. }
  5314. exports.cmp = cmp
  5315. function cmp (a, op, b, loose) {
  5316. switch (op) {
  5317. case '===':
  5318. if (typeof a === 'object')
  5319. a = a.version
  5320. if (typeof b === 'object')
  5321. b = b.version
  5322. return a === b
  5323. case '!==':
  5324. if (typeof a === 'object')
  5325. a = a.version
  5326. if (typeof b === 'object')
  5327. b = b.version
  5328. return a !== b
  5329. case '':
  5330. case '=':
  5331. case '==':
  5332. return eq(a, b, loose)
  5333. case '!=':
  5334. return neq(a, b, loose)
  5335. case '>':
  5336. return gt(a, b, loose)
  5337. case '>=':
  5338. return gte(a, b, loose)
  5339. case '<':
  5340. return lt(a, b, loose)
  5341. case '<=':
  5342. return lte(a, b, loose)
  5343. default:
  5344. throw new TypeError('Invalid operator: ' + op)
  5345. }
  5346. }
  5347. exports.Comparator = Comparator
  5348. function Comparator (comp, options) {
  5349. if (!options || typeof options !== 'object') {
  5350. options = {
  5351. loose: !!options,
  5352. includePrerelease: false
  5353. }
  5354. }
  5355. if (comp instanceof Comparator) {
  5356. if (comp.loose === !!options.loose) {
  5357. return comp
  5358. } else {
  5359. comp = comp.value
  5360. }
  5361. }
  5362. if (!(this instanceof Comparator)) {
  5363. return new Comparator(comp, options)
  5364. }
  5365. debug('comparator', comp, options)
  5366. this.options = options
  5367. this.loose = !!options.loose
  5368. this.parse(comp)
  5369. if (this.semver === ANY) {
  5370. this.value = ''
  5371. } else {
  5372. this.value = this.operator + this.semver.version
  5373. }
  5374. debug('comp', this)
  5375. }
  5376. var ANY = {}
  5377. Comparator.prototype.parse = function (comp) {
  5378. var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  5379. var m = comp.match(r)
  5380. if (!m) {
  5381. throw new TypeError('Invalid comparator: ' + comp)
  5382. }
  5383. this.operator = m[1]
  5384. if (this.operator === '=') {
  5385. this.operator = ''
  5386. }
  5387. // if it literally is just '>' or '' then allow anything.
  5388. if (!m[2]) {
  5389. this.semver = ANY
  5390. } else {
  5391. this.semver = new SemVer(m[2], this.options.loose)
  5392. }
  5393. }
  5394. Comparator.prototype.toString = function () {
  5395. return this.value
  5396. }
  5397. Comparator.prototype.test = function (version) {
  5398. debug('Comparator.test', version, this.options.loose)
  5399. if (this.semver === ANY) {
  5400. return true
  5401. }
  5402. if (typeof version === 'string') {
  5403. version = new SemVer(version, this.options)
  5404. }
  5405. return cmp(version, this.operator, this.semver, this.options)
  5406. }
  5407. Comparator.prototype.intersects = function (comp, options) {
  5408. if (!(comp instanceof Comparator)) {
  5409. throw new TypeError('a Comparator is required')
  5410. }
  5411. if (!options || typeof options !== 'object') {
  5412. options = {
  5413. loose: !!options,
  5414. includePrerelease: false
  5415. }
  5416. }
  5417. var rangeTmp
  5418. if (this.operator === '') {
  5419. rangeTmp = new Range(comp.value, options)
  5420. return satisfies(this.value, rangeTmp, options)
  5421. } else if (comp.operator === '') {
  5422. rangeTmp = new Range(this.value, options)
  5423. return satisfies(comp.semver, rangeTmp, options)
  5424. }
  5425. var sameDirectionIncreasing =
  5426. (this.operator === '>=' || this.operator === '>') &&
  5427. (comp.operator === '>=' || comp.operator === '>')
  5428. var sameDirectionDecreasing =
  5429. (this.operator === '<=' || this.operator === '<') &&
  5430. (comp.operator === '<=' || comp.operator === '<')
  5431. var sameSemVer = this.semver.version === comp.semver.version
  5432. var differentDirectionsInclusive =
  5433. (this.operator === '>=' || this.operator === '<=') &&
  5434. (comp.operator === '>=' || comp.operator === '<=')
  5435. var oppositeDirectionsLessThan =
  5436. cmp(this.semver, '<', comp.semver, options) &&
  5437. ((this.operator === '>=' || this.operator === '>') &&
  5438. (comp.operator === '<=' || comp.operator === '<'))
  5439. var oppositeDirectionsGreaterThan =
  5440. cmp(this.semver, '>', comp.semver, options) &&
  5441. ((this.operator === '<=' || this.operator === '<') &&
  5442. (comp.operator === '>=' || comp.operator === '>'))
  5443. return sameDirectionIncreasing || sameDirectionDecreasing ||
  5444. (sameSemVer && differentDirectionsInclusive) ||
  5445. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  5446. }
  5447. exports.Range = Range
  5448. function Range (range, options) {
  5449. if (!options || typeof options !== 'object') {
  5450. options = {
  5451. loose: !!options,
  5452. includePrerelease: false
  5453. }
  5454. }
  5455. if (range instanceof Range) {
  5456. if (range.loose === !!options.loose &&
  5457. range.includePrerelease === !!options.includePrerelease) {
  5458. return range
  5459. } else {
  5460. return new Range(range.raw, options)
  5461. }
  5462. }
  5463. if (range instanceof Comparator) {
  5464. return new Range(range.value, options)
  5465. }
  5466. if (!(this instanceof Range)) {
  5467. return new Range(range, options)
  5468. }
  5469. this.options = options
  5470. this.loose = !!options.loose
  5471. this.includePrerelease = !!options.includePrerelease
  5472. // First, split based on boolean or ||
  5473. this.raw = range
  5474. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  5475. return this.parseRange(range.trim())
  5476. }, this).filter(function (c) {
  5477. // throw out any that are not relevant for whatever reason
  5478. return c.length
  5479. })
  5480. if (!this.set.length) {
  5481. throw new TypeError('Invalid SemVer Range: ' + range)
  5482. }
  5483. this.format()
  5484. }
  5485. Range.prototype.format = function () {
  5486. this.range = this.set.map(function (comps) {
  5487. return comps.join(' ').trim()
  5488. }).join('||').trim()
  5489. return this.range
  5490. }
  5491. Range.prototype.toString = function () {
  5492. return this.range
  5493. }
  5494. Range.prototype.parseRange = function (range) {
  5495. var loose = this.options.loose
  5496. range = range.trim()
  5497. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  5498. var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
  5499. range = range.replace(hr, hyphenReplace)
  5500. debug('hyphen replace', range)
  5501. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  5502. range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
  5503. debug('comparator trim', range, re[COMPARATORTRIM])
  5504. // `~ 1.2.3` => `~1.2.3`
  5505. range = range.replace(re[TILDETRIM], tildeTrimReplace)
  5506. // `^ 1.2.3` => `^1.2.3`
  5507. range = range.replace(re[CARETTRIM], caretTrimReplace)
  5508. // normalize spaces
  5509. range = range.split(/\s+/).join(' ')
  5510. // At this point, the range is completely trimmed and
  5511. // ready to be split into comparators.
  5512. var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
  5513. var set = range.split(' ').map(function (comp) {
  5514. return parseComparator(comp, this.options)
  5515. }, this).join(' ').split(/\s+/)
  5516. if (this.options.loose) {
  5517. // in loose mode, throw out any that are not valid comparators
  5518. set = set.filter(function (comp) {
  5519. return !!comp.match(compRe)
  5520. })
  5521. }
  5522. set = set.map(function (comp) {
  5523. return new Comparator(comp, this.options)
  5524. }, this)
  5525. return set
  5526. }
  5527. Range.prototype.intersects = function (range, options) {
  5528. if (!(range instanceof Range)) {
  5529. throw new TypeError('a Range is required')
  5530. }
  5531. return this.set.some(function (thisComparators) {
  5532. return thisComparators.every(function (thisComparator) {
  5533. return range.set.some(function (rangeComparators) {
  5534. return rangeComparators.every(function (rangeComparator) {
  5535. return thisComparator.intersects(rangeComparator, options)
  5536. })
  5537. })
  5538. })
  5539. })
  5540. }
  5541. // Mostly just for testing and legacy API reasons
  5542. exports.toComparators = toComparators
  5543. function toComparators (range, options) {
  5544. return new Range(range, options).set.map(function (comp) {
  5545. return comp.map(function (c) {
  5546. return c.value
  5547. }).join(' ').trim().split(' ')
  5548. })
  5549. }
  5550. // comprised of xranges, tildes, stars, and gtlt's at this point.
  5551. // already replaced the hyphen ranges
  5552. // turn into a set of JUST comparators.
  5553. function parseComparator (comp, options) {
  5554. debug('comp', comp, options)
  5555. comp = replaceCarets(comp, options)
  5556. debug('caret', comp)
  5557. comp = replaceTildes(comp, options)
  5558. debug('tildes', comp)
  5559. comp = replaceXRanges(comp, options)
  5560. debug('xrange', comp)
  5561. comp = replaceStars(comp, options)
  5562. debug('stars', comp)
  5563. return comp
  5564. }
  5565. function isX (id) {
  5566. return !id || id.toLowerCase() === 'x' || id === '*'
  5567. }
  5568. // ~, ~> --> * (any, kinda silly)
  5569. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  5570. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  5571. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  5572. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  5573. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  5574. function replaceTildes (comp, options) {
  5575. return comp.trim().split(/\s+/).map(function (comp) {
  5576. return replaceTilde(comp, options)
  5577. }).join(' ')
  5578. }
  5579. function replaceTilde (comp, options) {
  5580. var r = options.loose ? re[TILDELOOSE] : re[TILDE]
  5581. return comp.replace(r, function (_, M, m, p, pr) {
  5582. debug('tilde', comp, _, M, m, p, pr)
  5583. var ret
  5584. if (isX(M)) {
  5585. ret = ''
  5586. } else if (isX(m)) {
  5587. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5588. } else if (isX(p)) {
  5589. // ~1.2 == >=1.2.0 <1.3.0
  5590. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5591. } else if (pr) {
  5592. debug('replaceTilde pr', pr)
  5593. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5594. ' <' + M + '.' + (+m + 1) + '.0'
  5595. } else {
  5596. // ~1.2.3 == >=1.2.3 <1.3.0
  5597. ret = '>=' + M + '.' + m + '.' + p +
  5598. ' <' + M + '.' + (+m + 1) + '.0'
  5599. }
  5600. debug('tilde return', ret)
  5601. return ret
  5602. })
  5603. }
  5604. // ^ --> * (any, kinda silly)
  5605. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  5606. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  5607. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  5608. // ^1.2.3 --> >=1.2.3 <2.0.0
  5609. // ^1.2.0 --> >=1.2.0 <2.0.0
  5610. function replaceCarets (comp, options) {
  5611. return comp.trim().split(/\s+/).map(function (comp) {
  5612. return replaceCaret(comp, options)
  5613. }).join(' ')
  5614. }
  5615. function replaceCaret (comp, options) {
  5616. debug('caret', comp, options)
  5617. var r = options.loose ? re[CARETLOOSE] : re[CARET]
  5618. return comp.replace(r, function (_, M, m, p, pr) {
  5619. debug('caret', comp, _, M, m, p, pr)
  5620. var ret
  5621. if (isX(M)) {
  5622. ret = ''
  5623. } else if (isX(m)) {
  5624. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5625. } else if (isX(p)) {
  5626. if (M === '0') {
  5627. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5628. } else {
  5629. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  5630. }
  5631. } else if (pr) {
  5632. debug('replaceCaret pr', pr)
  5633. if (M === '0') {
  5634. if (m === '0') {
  5635. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5636. ' <' + M + '.' + m + '.' + (+p + 1)
  5637. } else {
  5638. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5639. ' <' + M + '.' + (+m + 1) + '.0'
  5640. }
  5641. } else {
  5642. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  5643. ' <' + (+M + 1) + '.0.0'
  5644. }
  5645. } else {
  5646. debug('no pr')
  5647. if (M === '0') {
  5648. if (m === '0') {
  5649. ret = '>=' + M + '.' + m + '.' + p +
  5650. ' <' + M + '.' + m + '.' + (+p + 1)
  5651. } else {
  5652. ret = '>=' + M + '.' + m + '.' + p +
  5653. ' <' + M + '.' + (+m + 1) + '.0'
  5654. }
  5655. } else {
  5656. ret = '>=' + M + '.' + m + '.' + p +
  5657. ' <' + (+M + 1) + '.0.0'
  5658. }
  5659. }
  5660. debug('caret return', ret)
  5661. return ret
  5662. })
  5663. }
  5664. function replaceXRanges (comp, options) {
  5665. debug('replaceXRanges', comp, options)
  5666. return comp.split(/\s+/).map(function (comp) {
  5667. return replaceXRange(comp, options)
  5668. }).join(' ')
  5669. }
  5670. function replaceXRange (comp, options) {
  5671. comp = comp.trim()
  5672. var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
  5673. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  5674. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  5675. var xM = isX(M)
  5676. var xm = xM || isX(m)
  5677. var xp = xm || isX(p)
  5678. var anyX = xp
  5679. if (gtlt === '=' && anyX) {
  5680. gtlt = ''
  5681. }
  5682. if (xM) {
  5683. if (gtlt === '>' || gtlt === '<') {
  5684. // nothing is allowed
  5685. ret = '<0.0.0'
  5686. } else {
  5687. // nothing is forbidden
  5688. ret = '*'
  5689. }
  5690. } else if (gtlt && anyX) {
  5691. // we know patch is an x, because we have any x at all.
  5692. // replace X with 0
  5693. if (xm) {
  5694. m = 0
  5695. }
  5696. p = 0
  5697. if (gtlt === '>') {
  5698. // >1 => >=2.0.0
  5699. // >1.2 => >=1.3.0
  5700. // >1.2.3 => >= 1.2.4
  5701. gtlt = '>='
  5702. if (xm) {
  5703. M = +M + 1
  5704. m = 0
  5705. p = 0
  5706. } else {
  5707. m = +m + 1
  5708. p = 0
  5709. }
  5710. } else if (gtlt === '<=') {
  5711. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  5712. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  5713. gtlt = '<'
  5714. if (xm) {
  5715. M = +M + 1
  5716. } else {
  5717. m = +m + 1
  5718. }
  5719. }
  5720. ret = gtlt + M + '.' + m + '.' + p
  5721. } else if (xm) {
  5722. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  5723. } else if (xp) {
  5724. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  5725. }
  5726. debug('xRange return', ret)
  5727. return ret
  5728. })
  5729. }
  5730. // Because * is AND-ed with everything else in the comparator,
  5731. // and '' means "any version", just remove the *s entirely.
  5732. function replaceStars (comp, options) {
  5733. debug('replaceStars', comp, options)
  5734. // Looseness is ignored here. star is always as loose as it gets!
  5735. return comp.trim().replace(re[STAR], '')
  5736. }
  5737. // This function is passed to string.replace(re[HYPHENRANGE])
  5738. // M, m, patch, prerelease, build
  5739. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  5740. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  5741. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  5742. function hyphenReplace ($0,
  5743. from, fM, fm, fp, fpr, fb,
  5744. to, tM, tm, tp, tpr, tb) {
  5745. if (isX(fM)) {
  5746. from = ''
  5747. } else if (isX(fm)) {
  5748. from = '>=' + fM + '.0.0'
  5749. } else if (isX(fp)) {
  5750. from = '>=' + fM + '.' + fm + '.0'
  5751. } else {
  5752. from = '>=' + from
  5753. }
  5754. if (isX(tM)) {
  5755. to = ''
  5756. } else if (isX(tm)) {
  5757. to = '<' + (+tM + 1) + '.0.0'
  5758. } else if (isX(tp)) {
  5759. to = '<' + tM + '.' + (+tm + 1) + '.0'
  5760. } else if (tpr) {
  5761. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  5762. } else {
  5763. to = '<=' + to
  5764. }
  5765. return (from + ' ' + to).trim()
  5766. }
  5767. // if ANY of the sets match ALL of its comparators, then pass
  5768. Range.prototype.test = function (version) {
  5769. if (!version) {
  5770. return false
  5771. }
  5772. if (typeof version === 'string') {
  5773. version = new SemVer(version, this.options)
  5774. }
  5775. for (var i = 0; i < this.set.length; i++) {
  5776. if (testSet(this.set[i], version, this.options)) {
  5777. return true
  5778. }
  5779. }
  5780. return false
  5781. }
  5782. function testSet (set, version, options) {
  5783. for (var i = 0; i < set.length; i++) {
  5784. if (!set[i].test(version)) {
  5785. return false
  5786. }
  5787. }
  5788. if (version.prerelease.length && !options.includePrerelease) {
  5789. // Find the set of versions that are allowed to have prereleases
  5790. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  5791. // That should allow `1.2.3-pr.2` to pass.
  5792. // However, `1.2.4-alpha.notready` should NOT be allowed,
  5793. // even though it's within the range set by the comparators.
  5794. for (i = 0; i < set.length; i++) {
  5795. debug(set[i].semver)
  5796. if (set[i].semver === ANY) {
  5797. continue
  5798. }
  5799. if (set[i].semver.prerelease.length > 0) {
  5800. var allowed = set[i].semver
  5801. if (allowed.major === version.major &&
  5802. allowed.minor === version.minor &&
  5803. allowed.patch === version.patch) {
  5804. return true
  5805. }
  5806. }
  5807. }
  5808. // Version has a -pre, but it's not one of the ones we like.
  5809. return false
  5810. }
  5811. return true
  5812. }
  5813. exports.satisfies = satisfies
  5814. function satisfies (version, range, options) {
  5815. try {
  5816. range = new Range(range, options)
  5817. } catch (er) {
  5818. return false
  5819. }
  5820. return range.test(version)
  5821. }
  5822. exports.maxSatisfying = maxSatisfying
  5823. function maxSatisfying (versions, range, options) {
  5824. var max = null
  5825. var maxSV = null
  5826. try {
  5827. var rangeObj = new Range(range, options)
  5828. } catch (er) {
  5829. return null
  5830. }
  5831. versions.forEach(function (v) {
  5832. if (rangeObj.test(v)) {
  5833. // satisfies(v, range, options)
  5834. if (!max || maxSV.compare(v) === -1) {
  5835. // compare(max, v, true)
  5836. max = v
  5837. maxSV = new SemVer(max, options)
  5838. }
  5839. }
  5840. })
  5841. return max
  5842. }
  5843. exports.minSatisfying = minSatisfying
  5844. function minSatisfying (versions, range, options) {
  5845. var min = null
  5846. var minSV = null
  5847. try {
  5848. var rangeObj = new Range(range, options)
  5849. } catch (er) {
  5850. return null
  5851. }
  5852. versions.forEach(function (v) {
  5853. if (rangeObj.test(v)) {
  5854. // satisfies(v, range, options)
  5855. if (!min || minSV.compare(v) === 1) {
  5856. // compare(min, v, true)
  5857. min = v
  5858. minSV = new SemVer(min, options)
  5859. }
  5860. }
  5861. })
  5862. return min
  5863. }
  5864. exports.minVersion = minVersion
  5865. function minVersion (range, loose) {
  5866. range = new Range(range, loose)
  5867. var minver = new SemVer('0.0.0')
  5868. if (range.test(minver)) {
  5869. return minver
  5870. }
  5871. minver = new SemVer('0.0.0-0')
  5872. if (range.test(minver)) {
  5873. return minver
  5874. }
  5875. minver = null
  5876. for (var i = 0; i < range.set.length; ++i) {
  5877. var comparators = range.set[i]
  5878. comparators.forEach(function (comparator) {
  5879. // Clone to avoid manipulating the comparator's semver object.
  5880. var compver = new SemVer(comparator.semver.version)
  5881. switch (comparator.operator) {
  5882. case '>':
  5883. if (compver.prerelease.length === 0) {
  5884. compver.patch++
  5885. } else {
  5886. compver.prerelease.push(0)
  5887. }
  5888. compver.raw = compver.format()
  5889. /* fallthrough */
  5890. case '':
  5891. case '>=':
  5892. if (!minver || gt(minver, compver)) {
  5893. minver = compver
  5894. }
  5895. break
  5896. case '<':
  5897. case '<=':
  5898. /* Ignore maximum versions */
  5899. break
  5900. /* istanbul ignore next */
  5901. default:
  5902. throw new Error('Unexpected operation: ' + comparator.operator)
  5903. }
  5904. })
  5905. }
  5906. if (minver && range.test(minver)) {
  5907. return minver
  5908. }
  5909. return null
  5910. }
  5911. exports.validRange = validRange
  5912. function validRange (range, options) {
  5913. try {
  5914. // Return '*' instead of '' so that truthiness works.
  5915. // This will throw if it's invalid anyway
  5916. return new Range(range, options).range || '*'
  5917. } catch (er) {
  5918. return null
  5919. }
  5920. }
  5921. // Determine if version is less than all the versions possible in the range
  5922. exports.ltr = ltr
  5923. function ltr (version, range, options) {
  5924. return outside(version, range, '<', options)
  5925. }
  5926. // Determine if version is greater than all the versions possible in the range.
  5927. exports.gtr = gtr
  5928. function gtr (version, range, options) {
  5929. return outside(version, range, '>', options)
  5930. }
  5931. exports.outside = outside
  5932. function outside (version, range, hilo, options) {
  5933. version = new SemVer(version, options)
  5934. range = new Range(range, options)
  5935. var gtfn, ltefn, ltfn, comp, ecomp
  5936. switch (hilo) {
  5937. case '>':
  5938. gtfn = gt
  5939. ltefn = lte
  5940. ltfn = lt
  5941. comp = '>'
  5942. ecomp = '>='
  5943. break
  5944. case '<':
  5945. gtfn = lt
  5946. ltefn = gte
  5947. ltfn = gt
  5948. comp = '<'
  5949. ecomp = '<='
  5950. break
  5951. default:
  5952. throw new TypeError('Must provide a hilo val of "<" or ">"')
  5953. }
  5954. // If it satisifes the range it is not outside
  5955. if (satisfies(version, range, options)) {
  5956. return false
  5957. }
  5958. // From now on, variable terms are as if we're in "gtr" mode.
  5959. // but note that everything is flipped for the "ltr" function.
  5960. for (var i = 0; i < range.set.length; ++i) {
  5961. var comparators = range.set[i]
  5962. var high = null
  5963. var low = null
  5964. comparators.forEach(function (comparator) {
  5965. if (comparator.semver === ANY) {
  5966. comparator = new Comparator('>=0.0.0')
  5967. }
  5968. high = high || comparator
  5969. low = low || comparator
  5970. if (gtfn(comparator.semver, high.semver, options)) {
  5971. high = comparator
  5972. } else if (ltfn(comparator.semver, low.semver, options)) {
  5973. low = comparator
  5974. }
  5975. })
  5976. // If the edge version comparator has a operator then our version
  5977. // isn't outside it
  5978. if (high.operator === comp || high.operator === ecomp) {
  5979. return false
  5980. }
  5981. // If the lowest version comparator has an operator and our version
  5982. // is less than it then it isn't higher than the range
  5983. if ((!low.operator || low.operator === comp) &&
  5984. ltefn(version, low.semver)) {
  5985. return false
  5986. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  5987. return false
  5988. }
  5989. }
  5990. return true
  5991. }
  5992. exports.prerelease = prerelease
  5993. function prerelease (version, options) {
  5994. var parsed = parse(version, options)
  5995. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  5996. }
  5997. exports.intersects = intersects
  5998. function intersects (r1, r2, options) {
  5999. r1 = new Range(r1, options)
  6000. r2 = new Range(r2, options)
  6001. return r1.intersects(r2)
  6002. }
  6003. exports.coerce = coerce
  6004. function coerce (version) {
  6005. if (version instanceof SemVer) {
  6006. return version
  6007. }
  6008. if (typeof version !== 'string') {
  6009. return null
  6010. }
  6011. var match = version.match(re[COERCE])
  6012. if (match == null) {
  6013. return null
  6014. }
  6015. return parse(match[1] +
  6016. '.' + (match[2] || '0') +
  6017. '.' + (match[3] || '0'))
  6018. }
  6019. /***/ }),
  6020. /***/ 287:
  6021. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  6022. "use strict";
  6023. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6024. if (k2 === undefined) k2 = k;
  6025. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6026. }) : (function(o, m, k, k2) {
  6027. if (k2 === undefined) k2 = k;
  6028. o[k2] = m[k];
  6029. }));
  6030. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6031. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6032. }) : function(o, v) {
  6033. o["default"] = v;
  6034. });
  6035. var __importStar = (this && this.__importStar) || function (mod) {
  6036. if (mod && mod.__esModule) return mod;
  6037. var result = {};
  6038. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6039. __setModuleDefault(result, mod);
  6040. return result;
  6041. };
  6042. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6043. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6044. return new (P || (P = Promise))(function (resolve, reject) {
  6045. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6046. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6047. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6048. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6049. });
  6050. };
  6051. var __importDefault = (this && this.__importDefault) || function (mod) {
  6052. return (mod && mod.__esModule) ? mod : { "default": mod };
  6053. };
  6054. Object.defineProperty(exports, "__esModule", { value: true });
  6055. exports.createAuthHelper = void 0;
  6056. const assert = __importStar(__webpack_require__(357));
  6057. const core = __importStar(__webpack_require__(470));
  6058. const exec = __importStar(__webpack_require__(986));
  6059. const fs = __importStar(__webpack_require__(747));
  6060. const io = __importStar(__webpack_require__(1));
  6061. const os = __importStar(__webpack_require__(87));
  6062. const path = __importStar(__webpack_require__(622));
  6063. const regexpHelper = __importStar(__webpack_require__(528));
  6064. const stateHelper = __importStar(__webpack_require__(153));
  6065. const urlHelper = __importStar(__webpack_require__(81));
  6066. const v4_1 = __importDefault(__webpack_require__(826));
  6067. const IS_WINDOWS = process.platform === 'win32';
  6068. const SSH_COMMAND_KEY = 'core.sshCommand';
  6069. function createAuthHelper(git, settings) {
  6070. return new GitAuthHelper(git, settings);
  6071. }
  6072. exports.createAuthHelper = createAuthHelper;
  6073. class GitAuthHelper {
  6074. constructor(gitCommandManager, gitSourceSettings) {
  6075. this.insteadOfValues = [];
  6076. this.sshCommand = '';
  6077. this.sshKeyPath = '';
  6078. this.sshKnownHostsPath = '';
  6079. this.temporaryHomePath = '';
  6080. this.git = gitCommandManager;
  6081. this.settings = gitSourceSettings || {};
  6082. // Token auth header
  6083. const serverUrl = urlHelper.getServerUrl();
  6084. this.tokenConfigKey = `http.${serverUrl.origin}/.extraheader`; // "origin" is SCHEME://HOSTNAME[:PORT]
  6085. const basicCredential = Buffer.from(`x-access-token:${this.settings.authToken}`, 'utf8').toString('base64');
  6086. core.setSecret(basicCredential);
  6087. this.tokenPlaceholderConfigValue = `AUTHORIZATION: basic ***`;
  6088. this.tokenConfigValue = `AUTHORIZATION: basic ${basicCredential}`;
  6089. // Instead of SSH URL
  6090. this.insteadOfKey = `url.${serverUrl.origin}/.insteadOf`; // "origin" is SCHEME://HOSTNAME[:PORT]
  6091. this.insteadOfValues.push(`git@${serverUrl.hostname}:`);
  6092. if (this.settings.workflowOrganizationId) {
  6093. this.insteadOfValues.push(`org-${this.settings.workflowOrganizationId}@github.com:`);
  6094. }
  6095. }
  6096. configureAuth() {
  6097. return __awaiter(this, void 0, void 0, function* () {
  6098. // Remove possible previous values
  6099. yield this.removeAuth();
  6100. // Configure new values
  6101. yield this.configureSsh();
  6102. yield this.configureToken();
  6103. });
  6104. }
  6105. configureTempGlobalConfig() {
  6106. var _a, _b;
  6107. return __awaiter(this, void 0, void 0, function* () {
  6108. // Already setup global config
  6109. if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
  6110. return path.join(this.temporaryHomePath, '.gitconfig');
  6111. }
  6112. // Create a temp home directory
  6113. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  6114. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  6115. const uniqueId = (0, v4_1.default)();
  6116. this.temporaryHomePath = path.join(runnerTemp, uniqueId);
  6117. yield fs.promises.mkdir(this.temporaryHomePath, { recursive: true });
  6118. // Copy the global git config
  6119. const gitConfigPath = path.join(process.env['HOME'] || os.homedir(), '.gitconfig');
  6120. const newGitConfigPath = path.join(this.temporaryHomePath, '.gitconfig');
  6121. let configExists = false;
  6122. try {
  6123. yield fs.promises.stat(gitConfigPath);
  6124. configExists = true;
  6125. }
  6126. catch (err) {
  6127. if (((_b = err) === null || _b === void 0 ? void 0 : _b.code) !== 'ENOENT') {
  6128. throw err;
  6129. }
  6130. }
  6131. if (configExists) {
  6132. core.info(`Copying '${gitConfigPath}' to '${newGitConfigPath}'`);
  6133. yield io.cp(gitConfigPath, newGitConfigPath);
  6134. }
  6135. else {
  6136. yield fs.promises.writeFile(newGitConfigPath, '');
  6137. }
  6138. // Override HOME
  6139. core.info(`Temporarily overriding HOME='${this.temporaryHomePath}' before making global git config changes`);
  6140. this.git.setEnvironmentVariable('HOME', this.temporaryHomePath);
  6141. return newGitConfigPath;
  6142. });
  6143. }
  6144. configureGlobalAuth() {
  6145. return __awaiter(this, void 0, void 0, function* () {
  6146. // 'configureTempGlobalConfig' noops if already set, just returns the path
  6147. const newGitConfigPath = yield this.configureTempGlobalConfig();
  6148. try {
  6149. // Configure the token
  6150. yield this.configureToken(newGitConfigPath, true);
  6151. // Configure HTTPS instead of SSH
  6152. yield this.git.tryConfigUnset(this.insteadOfKey, true);
  6153. if (!this.settings.sshKey) {
  6154. for (const insteadOfValue of this.insteadOfValues) {
  6155. yield this.git.config(this.insteadOfKey, insteadOfValue, true, true);
  6156. }
  6157. }
  6158. }
  6159. catch (err) {
  6160. // Unset in case somehow written to the real global config
  6161. core.info('Encountered an error when attempting to configure token. Attempting unconfigure.');
  6162. yield this.git.tryConfigUnset(this.tokenConfigKey, true);
  6163. throw err;
  6164. }
  6165. });
  6166. }
  6167. configureSubmoduleAuth() {
  6168. return __awaiter(this, void 0, void 0, function* () {
  6169. // Remove possible previous HTTPS instead of SSH
  6170. yield this.removeGitConfig(this.insteadOfKey, true);
  6171. if (this.settings.persistCredentials) {
  6172. // Configure a placeholder value. This approach avoids the credential being captured
  6173. // by process creation audit events, which are commonly logged. For more information,
  6174. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  6175. const output = yield this.git.submoduleForeach(
  6176. // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
  6177. `sh -c "git config --local '${this.tokenConfigKey}' '${this.tokenPlaceholderConfigValue}' && git config --local --show-origin --name-only --get-regexp remote.origin.url"`, this.settings.nestedSubmodules);
  6178. // Replace the placeholder
  6179. const configPaths = output.match(/(?<=(^|\n)file:)[^\t]+(?=\tremote\.origin\.url)/g) || [];
  6180. for (const configPath of configPaths) {
  6181. core.debug(`Replacing token placeholder in '${configPath}'`);
  6182. yield this.replaceTokenPlaceholder(configPath);
  6183. }
  6184. if (this.settings.sshKey) {
  6185. // Configure core.sshCommand
  6186. yield this.git.submoduleForeach(`git config --local '${SSH_COMMAND_KEY}' '${this.sshCommand}'`, this.settings.nestedSubmodules);
  6187. }
  6188. else {
  6189. // Configure HTTPS instead of SSH
  6190. for (const insteadOfValue of this.insteadOfValues) {
  6191. yield this.git.submoduleForeach(`git config --local --add '${this.insteadOfKey}' '${insteadOfValue}'`, this.settings.nestedSubmodules);
  6192. }
  6193. }
  6194. }
  6195. });
  6196. }
  6197. removeAuth() {
  6198. return __awaiter(this, void 0, void 0, function* () {
  6199. yield this.removeSsh();
  6200. yield this.removeToken();
  6201. });
  6202. }
  6203. removeGlobalConfig() {
  6204. var _a;
  6205. return __awaiter(this, void 0, void 0, function* () {
  6206. if (((_a = this.temporaryHomePath) === null || _a === void 0 ? void 0 : _a.length) > 0) {
  6207. core.debug(`Unsetting HOME override`);
  6208. this.git.removeEnvironmentVariable('HOME');
  6209. yield io.rmRF(this.temporaryHomePath);
  6210. }
  6211. });
  6212. }
  6213. configureSsh() {
  6214. var _a;
  6215. return __awaiter(this, void 0, void 0, function* () {
  6216. if (!this.settings.sshKey) {
  6217. return;
  6218. }
  6219. // Write key
  6220. const runnerTemp = process.env['RUNNER_TEMP'] || '';
  6221. assert.ok(runnerTemp, 'RUNNER_TEMP is not defined');
  6222. const uniqueId = (0, v4_1.default)();
  6223. this.sshKeyPath = path.join(runnerTemp, uniqueId);
  6224. stateHelper.setSshKeyPath(this.sshKeyPath);
  6225. yield fs.promises.mkdir(runnerTemp, { recursive: true });
  6226. yield fs.promises.writeFile(this.sshKeyPath, this.settings.sshKey.trim() + '\n', { mode: 0o600 });
  6227. // Remove inherited permissions on Windows
  6228. if (IS_WINDOWS) {
  6229. const icacls = yield io.which('icacls.exe');
  6230. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /grant:r "${process.env['USERDOMAIN']}\\${process.env['USERNAME']}:F"`);
  6231. yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /inheritance:r`);
  6232. }
  6233. // Write known hosts
  6234. const userKnownHostsPath = path.join(os.homedir(), '.ssh', 'known_hosts');
  6235. let userKnownHosts = '';
  6236. try {
  6237. userKnownHosts = (yield fs.promises.readFile(userKnownHostsPath)).toString();
  6238. }
  6239. catch (err) {
  6240. if (((_a = err) === null || _a === void 0 ? void 0 : _a.code) !== 'ENOENT') {
  6241. throw err;
  6242. }
  6243. }
  6244. let knownHosts = '';
  6245. if (userKnownHosts) {
  6246. knownHosts += `# Begin from ${userKnownHostsPath}\n${userKnownHosts}\n# End from ${userKnownHostsPath}\n`;
  6247. }
  6248. if (this.settings.sshKnownHosts) {
  6249. knownHosts += `# Begin from input known hosts\n${this.settings.sshKnownHosts}\n# end from input known hosts\n`;
  6250. }
  6251. knownHosts += `# Begin implicitly added github.com\ngithub.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=\n# End implicitly added github.com\n`;
  6252. this.sshKnownHostsPath = path.join(runnerTemp, `${uniqueId}_known_hosts`);
  6253. stateHelper.setSshKnownHostsPath(this.sshKnownHostsPath);
  6254. yield fs.promises.writeFile(this.sshKnownHostsPath, knownHosts);
  6255. // Configure GIT_SSH_COMMAND
  6256. const sshPath = yield io.which('ssh', true);
  6257. this.sshCommand = `"${sshPath}" -i "$RUNNER_TEMP/${path.basename(this.sshKeyPath)}"`;
  6258. if (this.settings.sshStrict) {
  6259. this.sshCommand += ' -o StrictHostKeyChecking=yes -o CheckHostIP=no';
  6260. }
  6261. this.sshCommand += ` -o "UserKnownHostsFile=$RUNNER_TEMP/${path.basename(this.sshKnownHostsPath)}"`;
  6262. core.info(`Temporarily overriding GIT_SSH_COMMAND=${this.sshCommand}`);
  6263. this.git.setEnvironmentVariable('GIT_SSH_COMMAND', this.sshCommand);
  6264. // Configure core.sshCommand
  6265. if (this.settings.persistCredentials) {
  6266. yield this.git.config(SSH_COMMAND_KEY, this.sshCommand);
  6267. }
  6268. });
  6269. }
  6270. configureToken(configPath, globalConfig) {
  6271. return __awaiter(this, void 0, void 0, function* () {
  6272. // Validate args
  6273. assert.ok((configPath && globalConfig) || (!configPath && !globalConfig), 'Unexpected configureToken parameter combinations');
  6274. // Default config path
  6275. if (!configPath && !globalConfig) {
  6276. configPath = path.join(this.git.getWorkingDirectory(), '.git', 'config');
  6277. }
  6278. // Configure a placeholder value. This approach avoids the credential being captured
  6279. // by process creation audit events, which are commonly logged. For more information,
  6280. // refer to https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/command-line-process-auditing
  6281. yield this.git.config(this.tokenConfigKey, this.tokenPlaceholderConfigValue, globalConfig);
  6282. // Replace the placeholder
  6283. yield this.replaceTokenPlaceholder(configPath || '');
  6284. });
  6285. }
  6286. replaceTokenPlaceholder(configPath) {
  6287. return __awaiter(this, void 0, void 0, function* () {
  6288. assert.ok(configPath, 'configPath is not defined');
  6289. let content = (yield fs.promises.readFile(configPath)).toString();
  6290. const placeholderIndex = content.indexOf(this.tokenPlaceholderConfigValue);
  6291. if (placeholderIndex < 0 ||
  6292. placeholderIndex != content.lastIndexOf(this.tokenPlaceholderConfigValue)) {
  6293. throw new Error(`Unable to replace auth placeholder in ${configPath}`);
  6294. }
  6295. assert.ok(this.tokenConfigValue, 'tokenConfigValue is not defined');
  6296. content = content.replace(this.tokenPlaceholderConfigValue, this.tokenConfigValue);
  6297. yield fs.promises.writeFile(configPath, content);
  6298. });
  6299. }
  6300. removeSsh() {
  6301. var _a, _b;
  6302. return __awaiter(this, void 0, void 0, function* () {
  6303. // SSH key
  6304. const keyPath = this.sshKeyPath || stateHelper.SshKeyPath;
  6305. if (keyPath) {
  6306. try {
  6307. yield io.rmRF(keyPath);
  6308. }
  6309. catch (err) {
  6310. core.debug(`${(_b = (_a = err) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : err}`);
  6311. core.warning(`Failed to remove SSH key '${keyPath}'`);
  6312. }
  6313. }
  6314. // SSH known hosts
  6315. const knownHostsPath = this.sshKnownHostsPath || stateHelper.SshKnownHostsPath;
  6316. if (knownHostsPath) {
  6317. try {
  6318. yield io.rmRF(knownHostsPath);
  6319. }
  6320. catch (_c) {
  6321. // Intentionally empty
  6322. }
  6323. }
  6324. // SSH command
  6325. yield this.removeGitConfig(SSH_COMMAND_KEY);
  6326. });
  6327. }
  6328. removeToken() {
  6329. return __awaiter(this, void 0, void 0, function* () {
  6330. // HTTP extra header
  6331. yield this.removeGitConfig(this.tokenConfigKey);
  6332. });
  6333. }
  6334. removeGitConfig(configKey, submoduleOnly = false) {
  6335. return __awaiter(this, void 0, void 0, function* () {
  6336. if (!submoduleOnly) {
  6337. if ((yield this.git.configExists(configKey)) &&
  6338. !(yield this.git.tryConfigUnset(configKey))) {
  6339. // Load the config contents
  6340. core.warning(`Failed to remove '${configKey}' from the git config`);
  6341. }
  6342. }
  6343. const pattern = regexpHelper.escape(configKey);
  6344. yield this.git.submoduleForeach(
  6345. // wrap the pipeline in quotes to make sure it's handled properly by submoduleForeach, rather than just the first part of the pipeline
  6346. `sh -c "git config --local --name-only --get-regexp '${pattern}' && git config --local --unset-all '${configKey}' || :"`, true);
  6347. });
  6348. }
  6349. }
  6350. /***/ }),
  6351. /***/ 289:
  6352. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  6353. "use strict";
  6354. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  6355. if (k2 === undefined) k2 = k;
  6356. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  6357. }) : (function(o, m, k, k2) {
  6358. if (k2 === undefined) k2 = k;
  6359. o[k2] = m[k];
  6360. }));
  6361. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  6362. Object.defineProperty(o, "default", { enumerable: true, value: v });
  6363. }) : function(o, v) {
  6364. o["default"] = v;
  6365. });
  6366. var __importStar = (this && this.__importStar) || function (mod) {
  6367. if (mod && mod.__esModule) return mod;
  6368. var result = {};
  6369. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  6370. __setModuleDefault(result, mod);
  6371. return result;
  6372. };
  6373. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  6374. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  6375. return new (P || (P = Promise))(function (resolve, reject) {
  6376. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  6377. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6378. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  6379. step((generator = generator.apply(thisArg, _arguments || [])).next());
  6380. });
  6381. };
  6382. Object.defineProperty(exports, "__esModule", { value: true });
  6383. exports.createCommandManager = exports.MinimumGitVersion = void 0;
  6384. const core = __importStar(__webpack_require__(470));
  6385. const exec = __importStar(__webpack_require__(986));
  6386. const fshelper = __importStar(__webpack_require__(618));
  6387. const io = __importStar(__webpack_require__(1));
  6388. const path = __importStar(__webpack_require__(622));
  6389. const refHelper = __importStar(__webpack_require__(227));
  6390. const regexpHelper = __importStar(__webpack_require__(528));
  6391. const retryHelper = __importStar(__webpack_require__(587));
  6392. const git_version_1 = __webpack_require__(559);
  6393. // Auth header not supported before 2.9
  6394. // Wire protocol v2 not supported before 2.18
  6395. exports.MinimumGitVersion = new git_version_1.GitVersion('2.18');
  6396. function createCommandManager(workingDirectory, lfs) {
  6397. return __awaiter(this, void 0, void 0, function* () {
  6398. return yield GitCommandManager.createCommandManager(workingDirectory, lfs);
  6399. });
  6400. }
  6401. exports.createCommandManager = createCommandManager;
  6402. class GitCommandManager {
  6403. // Private constructor; use createCommandManager()
  6404. constructor() {
  6405. this.gitEnv = {
  6406. GIT_TERMINAL_PROMPT: '0',
  6407. GCM_INTERACTIVE: 'Never' // Disable prompting for git credential manager
  6408. };
  6409. this.gitPath = '';
  6410. this.lfs = false;
  6411. this.workingDirectory = '';
  6412. }
  6413. branchDelete(remote, branch) {
  6414. return __awaiter(this, void 0, void 0, function* () {
  6415. const args = ['branch', '--delete', '--force'];
  6416. if (remote) {
  6417. args.push('--remote');
  6418. }
  6419. args.push(branch);
  6420. yield this.execGit(args);
  6421. });
  6422. }
  6423. branchExists(remote, pattern) {
  6424. return __awaiter(this, void 0, void 0, function* () {
  6425. const args = ['branch', '--list'];
  6426. if (remote) {
  6427. args.push('--remote');
  6428. }
  6429. args.push(pattern);
  6430. const output = yield this.execGit(args);
  6431. return !!output.stdout.trim();
  6432. });
  6433. }
  6434. branchList(remote) {
  6435. return __awaiter(this, void 0, void 0, function* () {
  6436. const result = [];
  6437. // Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
  6438. // "branch --list" is more difficult when in a detached HEAD state.
  6439. // Note, this implementation uses "rev-parse --symbolic-full-name" because there is a bug
  6440. // in Git 2.18 that causes "rev-parse --symbolic" to output symbolic full names.
  6441. const args = ['rev-parse', '--symbolic-full-name'];
  6442. if (remote) {
  6443. args.push('--remotes=origin');
  6444. }
  6445. else {
  6446. args.push('--branches');
  6447. }
  6448. const output = yield this.execGit(args);
  6449. for (let branch of output.stdout.trim().split('\n')) {
  6450. branch = branch.trim();
  6451. if (branch) {
  6452. if (branch.startsWith('refs/heads/')) {
  6453. branch = branch.substr('refs/heads/'.length);
  6454. }
  6455. else if (branch.startsWith('refs/remotes/')) {
  6456. branch = branch.substr('refs/remotes/'.length);
  6457. }
  6458. result.push(branch);
  6459. }
  6460. }
  6461. return result;
  6462. });
  6463. }
  6464. checkout(ref, startPoint) {
  6465. return __awaiter(this, void 0, void 0, function* () {
  6466. const args = ['checkout', '--progress', '--force'];
  6467. if (startPoint) {
  6468. args.push('-B', ref, startPoint);
  6469. }
  6470. else {
  6471. args.push(ref);
  6472. }
  6473. yield this.execGit(args);
  6474. });
  6475. }
  6476. checkoutDetach() {
  6477. return __awaiter(this, void 0, void 0, function* () {
  6478. const args = ['checkout', '--detach'];
  6479. yield this.execGit(args);
  6480. });
  6481. }
  6482. config(configKey, configValue, globalConfig, add) {
  6483. return __awaiter(this, void 0, void 0, function* () {
  6484. const args = ['config', globalConfig ? '--global' : '--local'];
  6485. if (add) {
  6486. args.push('--add');
  6487. }
  6488. args.push(...[configKey, configValue]);
  6489. yield this.execGit(args);
  6490. });
  6491. }
  6492. configExists(configKey, globalConfig) {
  6493. return __awaiter(this, void 0, void 0, function* () {
  6494. const pattern = regexpHelper.escape(configKey);
  6495. const output = yield this.execGit([
  6496. 'config',
  6497. globalConfig ? '--global' : '--local',
  6498. '--name-only',
  6499. '--get-regexp',
  6500. pattern
  6501. ], true);
  6502. return output.exitCode === 0;
  6503. });
  6504. }
  6505. fetch(refSpec, fetchDepth) {
  6506. return __awaiter(this, void 0, void 0, function* () {
  6507. const args = ['-c', 'protocol.version=2', 'fetch'];
  6508. if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
  6509. args.push('--no-tags');
  6510. }
  6511. args.push('--prune', '--progress', '--no-recurse-submodules');
  6512. if (fetchDepth && fetchDepth > 0) {
  6513. args.push(`--depth=${fetchDepth}`);
  6514. }
  6515. else if (fshelper.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))) {
  6516. args.push('--unshallow');
  6517. }
  6518. args.push('origin');
  6519. for (const arg of refSpec) {
  6520. args.push(arg);
  6521. }
  6522. const that = this;
  6523. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6524. yield that.execGit(args);
  6525. }));
  6526. });
  6527. }
  6528. getDefaultBranch(repositoryUrl) {
  6529. return __awaiter(this, void 0, void 0, function* () {
  6530. let output;
  6531. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6532. output = yield this.execGit([
  6533. 'ls-remote',
  6534. '--quiet',
  6535. '--exit-code',
  6536. '--symref',
  6537. repositoryUrl,
  6538. 'HEAD'
  6539. ]);
  6540. }));
  6541. if (output) {
  6542. // Satisfy compiler, will always be set
  6543. for (let line of output.stdout.trim().split('\n')) {
  6544. line = line.trim();
  6545. if (line.startsWith('ref:') || line.endsWith('HEAD')) {
  6546. return line
  6547. .substr('ref:'.length, line.length - 'ref:'.length - 'HEAD'.length)
  6548. .trim();
  6549. }
  6550. }
  6551. }
  6552. throw new Error('Unexpected output when retrieving default branch');
  6553. });
  6554. }
  6555. getWorkingDirectory() {
  6556. return this.workingDirectory;
  6557. }
  6558. init() {
  6559. return __awaiter(this, void 0, void 0, function* () {
  6560. yield this.execGit(['init', this.workingDirectory]);
  6561. });
  6562. }
  6563. isDetached() {
  6564. return __awaiter(this, void 0, void 0, function* () {
  6565. // Note, "branch --show-current" would be simpler but isn't available until Git 2.22
  6566. const output = yield this.execGit(['rev-parse', '--symbolic-full-name', '--verify', '--quiet', 'HEAD'], true);
  6567. return !output.stdout.trim().startsWith('refs/heads/');
  6568. });
  6569. }
  6570. lfsFetch(ref) {
  6571. return __awaiter(this, void 0, void 0, function* () {
  6572. const args = ['lfs', 'fetch', 'origin', ref];
  6573. const that = this;
  6574. yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  6575. yield that.execGit(args);
  6576. }));
  6577. });
  6578. }
  6579. lfsInstall() {
  6580. return __awaiter(this, void 0, void 0, function* () {
  6581. yield this.execGit(['lfs', 'install', '--local']);
  6582. });
  6583. }
  6584. log1(format) {
  6585. return __awaiter(this, void 0, void 0, function* () {
  6586. var args = format ? ['log', '-1', format] : ['log', '-1'];
  6587. var silent = format ? false : true;
  6588. const output = yield this.execGit(args, false, silent);
  6589. return output.stdout;
  6590. });
  6591. }
  6592. remoteAdd(remoteName, remoteUrl) {
  6593. return __awaiter(this, void 0, void 0, function* () {
  6594. yield this.execGit(['remote', 'add', remoteName, remoteUrl]);
  6595. });
  6596. }
  6597. removeEnvironmentVariable(name) {
  6598. delete this.gitEnv[name];
  6599. }
  6600. /**
  6601. * Resolves a ref to a SHA. For a branch or lightweight tag, the commit SHA is returned.
  6602. * For an annotated tag, the tag SHA is returned.
  6603. * @param {string} ref For example: 'refs/heads/main' or '/refs/tags/v1'
  6604. * @returns {Promise<string>}
  6605. */
  6606. revParse(ref) {
  6607. return __awaiter(this, void 0, void 0, function* () {
  6608. const output = yield this.execGit(['rev-parse', ref]);
  6609. return output.stdout.trim();
  6610. });
  6611. }
  6612. setEnvironmentVariable(name, value) {
  6613. this.gitEnv[name] = value;
  6614. }
  6615. shaExists(sha) {
  6616. return __awaiter(this, void 0, void 0, function* () {
  6617. const args = ['rev-parse', '--verify', '--quiet', `${sha}^{object}`];
  6618. const output = yield this.execGit(args, true);
  6619. return output.exitCode === 0;
  6620. });
  6621. }
  6622. submoduleForeach(command, recursive) {
  6623. return __awaiter(this, void 0, void 0, function* () {
  6624. const args = ['submodule', 'foreach'];
  6625. if (recursive) {
  6626. args.push('--recursive');
  6627. }
  6628. args.push(command);
  6629. const output = yield this.execGit(args);
  6630. return output.stdout;
  6631. });
  6632. }
  6633. submoduleSync(recursive) {
  6634. return __awaiter(this, void 0, void 0, function* () {
  6635. const args = ['submodule', 'sync'];
  6636. if (recursive) {
  6637. args.push('--recursive');
  6638. }
  6639. yield this.execGit(args);
  6640. });
  6641. }
  6642. submoduleUpdate(fetchDepth, recursive) {
  6643. return __awaiter(this, void 0, void 0, function* () {
  6644. const args = ['-c', 'protocol.version=2'];
  6645. args.push('submodule', 'update', '--init', '--force');
  6646. if (fetchDepth > 0) {
  6647. args.push(`--depth=${fetchDepth}`);
  6648. }
  6649. if (recursive) {
  6650. args.push('--recursive');
  6651. }
  6652. yield this.execGit(args);
  6653. });
  6654. }
  6655. tagExists(pattern) {
  6656. return __awaiter(this, void 0, void 0, function* () {
  6657. const output = yield this.execGit(['tag', '--list', pattern]);
  6658. return !!output.stdout.trim();
  6659. });
  6660. }
  6661. tryClean() {
  6662. return __awaiter(this, void 0, void 0, function* () {
  6663. const output = yield this.execGit(['clean', '-ffdx'], true);
  6664. return output.exitCode === 0;
  6665. });
  6666. }
  6667. tryConfigUnset(configKey, globalConfig) {
  6668. return __awaiter(this, void 0, void 0, function* () {
  6669. const output = yield this.execGit([
  6670. 'config',
  6671. globalConfig ? '--global' : '--local',
  6672. '--unset-all',
  6673. configKey
  6674. ], true);
  6675. return output.exitCode === 0;
  6676. });
  6677. }
  6678. tryDisableAutomaticGarbageCollection() {
  6679. return __awaiter(this, void 0, void 0, function* () {
  6680. const output = yield this.execGit(['config', '--local', 'gc.auto', '0'], true);
  6681. return output.exitCode === 0;
  6682. });
  6683. }
  6684. tryGetFetchUrl() {
  6685. return __awaiter(this, void 0, void 0, function* () {
  6686. const output = yield this.execGit(['config', '--local', '--get', 'remote.origin.url'], true);
  6687. if (output.exitCode !== 0) {
  6688. return '';
  6689. }
  6690. const stdout = output.stdout.trim();
  6691. if (stdout.includes('\n')) {
  6692. return '';
  6693. }
  6694. return stdout;
  6695. });
  6696. }
  6697. tryReset() {
  6698. return __awaiter(this, void 0, void 0, function* () {
  6699. const output = yield this.execGit(['reset', '--hard', 'HEAD'], true);
  6700. return output.exitCode === 0;
  6701. });
  6702. }
  6703. static createCommandManager(workingDirectory, lfs) {
  6704. return __awaiter(this, void 0, void 0, function* () {
  6705. const result = new GitCommandManager();
  6706. yield result.initializeCommandManager(workingDirectory, lfs);
  6707. return result;
  6708. });
  6709. }
  6710. execGit(args, allowAllExitCodes = false, silent = false) {
  6711. return __awaiter(this, void 0, void 0, function* () {
  6712. fshelper.directoryExistsSync(this.workingDirectory, true);
  6713. const result = new GitOutput();
  6714. const env = {};
  6715. for (const key of Object.keys(process.env)) {
  6716. env[key] = process.env[key];
  6717. }
  6718. for (const key of Object.keys(this.gitEnv)) {
  6719. env[key] = this.gitEnv[key];
  6720. }
  6721. const stdout = [];
  6722. const options = {
  6723. cwd: this.workingDirectory,
  6724. env,
  6725. silent,
  6726. ignoreReturnCode: allowAllExitCodes,
  6727. listeners: {
  6728. stdout: (data) => {
  6729. stdout.push(data.toString());
  6730. }
  6731. }
  6732. };
  6733. result.exitCode = yield exec.exec(`"${this.gitPath}"`, args, options);
  6734. result.stdout = stdout.join('');
  6735. return result;
  6736. });
  6737. }
  6738. initializeCommandManager(workingDirectory, lfs) {
  6739. return __awaiter(this, void 0, void 0, function* () {
  6740. this.workingDirectory = workingDirectory;
  6741. // Git-lfs will try to pull down assets if any of the local/user/system setting exist.
  6742. // If the user didn't enable `LFS` in their pipeline definition, disable LFS fetch/checkout.
  6743. this.lfs = lfs;
  6744. if (!this.lfs) {
  6745. this.gitEnv['GIT_LFS_SKIP_SMUDGE'] = '1';
  6746. }
  6747. this.gitPath = yield io.which('git', true);
  6748. // Git version
  6749. core.debug('Getting git version');
  6750. let gitVersion = new git_version_1.GitVersion();
  6751. let gitOutput = yield this.execGit(['version']);
  6752. let stdout = gitOutput.stdout.trim();
  6753. if (!stdout.includes('\n')) {
  6754. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  6755. if (match) {
  6756. gitVersion = new git_version_1.GitVersion(match[0]);
  6757. }
  6758. }
  6759. if (!gitVersion.isValid()) {
  6760. throw new Error('Unable to determine git version');
  6761. }
  6762. // Minimum git version
  6763. if (!gitVersion.checkMinimum(exports.MinimumGitVersion)) {
  6764. throw new Error(`Minimum required git version is ${exports.MinimumGitVersion}. Your git ('${this.gitPath}') is ${gitVersion}`);
  6765. }
  6766. if (this.lfs) {
  6767. // Git-lfs version
  6768. core.debug('Getting git-lfs version');
  6769. let gitLfsVersion = new git_version_1.GitVersion();
  6770. const gitLfsPath = yield io.which('git-lfs', true);
  6771. gitOutput = yield this.execGit(['lfs', 'version']);
  6772. stdout = gitOutput.stdout.trim();
  6773. if (!stdout.includes('\n')) {
  6774. const match = stdout.match(/\d+\.\d+(\.\d+)?/);
  6775. if (match) {
  6776. gitLfsVersion = new git_version_1.GitVersion(match[0]);
  6777. }
  6778. }
  6779. if (!gitLfsVersion.isValid()) {
  6780. throw new Error('Unable to determine git-lfs version');
  6781. }
  6782. // Minimum git-lfs version
  6783. // Note:
  6784. // - Auth header not supported before 2.1
  6785. const minimumGitLfsVersion = new git_version_1.GitVersion('2.1');
  6786. if (!gitLfsVersion.checkMinimum(minimumGitLfsVersion)) {
  6787. throw new Error(`Minimum required git-lfs version is ${minimumGitLfsVersion}. Your git-lfs ('${gitLfsPath}') is ${gitLfsVersion}`);
  6788. }
  6789. }
  6790. // Set the user agent
  6791. const gitHttpUserAgent = `git/${gitVersion} (github-actions-checkout)`;
  6792. core.debug(`Set git useragent to: ${gitHttpUserAgent}`);
  6793. this.gitEnv['GIT_HTTP_USER_AGENT'] = gitHttpUserAgent;
  6794. });
  6795. }
  6796. }
  6797. class GitOutput {
  6798. constructor() {
  6799. this.stdout = '';
  6800. this.exitCode = 0;
  6801. }
  6802. }
  6803. /***/ }),
  6804. /***/ 293:
  6805. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  6806. "use strict";
  6807. Object.defineProperty(exports, "__esModule", {
  6808. value: true
  6809. });
  6810. exports.default = void 0;
  6811. var _rng = _interopRequireDefault(__webpack_require__(506));
  6812. var _stringify = _interopRequireDefault(__webpack_require__(960));
  6813. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  6814. function v4(options, buf, offset) {
  6815. options = options || {};
  6816. const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  6817. rnds[6] = rnds[6] & 0x0f | 0x40;
  6818. rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
  6819. if (buf) {
  6820. offset = offset || 0;
  6821. for (let i = 0; i < 16; ++i) {
  6822. buf[offset + i] = rnds[i];
  6823. }
  6824. return buf;
  6825. }
  6826. return (0, _stringify.default)(rnds);
  6827. }
  6828. var _default = v4;
  6829. exports.default = _default;
  6830. /***/ }),
  6831. /***/ 294:
  6832. /***/ (function(module, __unusedexports, __webpack_require__) {
  6833. module.exports = parseOptions;
  6834. const { Deprecation } = __webpack_require__(692);
  6835. const { getUserAgent } = __webpack_require__(796);
  6836. const once = __webpack_require__(969);
  6837. const pkg = __webpack_require__(215);
  6838. const deprecateOptionsTimeout = once((log, deprecation) =>
  6839. log.warn(deprecation)
  6840. );
  6841. const deprecateOptionsAgent = once((log, deprecation) => log.warn(deprecation));
  6842. const deprecateOptionsHeaders = once((log, deprecation) =>
  6843. log.warn(deprecation)
  6844. );
  6845. function parseOptions(options, log, hook) {
  6846. if (options.headers) {
  6847. options.headers = Object.keys(options.headers).reduce((newObj, key) => {
  6848. newObj[key.toLowerCase()] = options.headers[key];
  6849. return newObj;
  6850. }, {});
  6851. }
  6852. const clientDefaults = {
  6853. headers: options.headers || {},
  6854. request: options.request || {},
  6855. mediaType: {
  6856. previews: [],
  6857. format: ""
  6858. }
  6859. };
  6860. if (options.baseUrl) {
  6861. clientDefaults.baseUrl = options.baseUrl;
  6862. }
  6863. if (options.userAgent) {
  6864. clientDefaults.headers["user-agent"] = options.userAgent;
  6865. }
  6866. if (options.previews) {
  6867. clientDefaults.mediaType.previews = options.previews;
  6868. }
  6869. if (options.timeZone) {
  6870. clientDefaults.headers["time-zone"] = options.timeZone;
  6871. }
  6872. if (options.timeout) {
  6873. deprecateOptionsTimeout(
  6874. log,
  6875. new Deprecation(
  6876. "[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"
  6877. )
  6878. );
  6879. clientDefaults.request.timeout = options.timeout;
  6880. }
  6881. if (options.agent) {
  6882. deprecateOptionsAgent(
  6883. log,
  6884. new Deprecation(
  6885. "[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"
  6886. )
  6887. );
  6888. clientDefaults.request.agent = options.agent;
  6889. }
  6890. if (options.headers) {
  6891. deprecateOptionsHeaders(
  6892. log,
  6893. new Deprecation(
  6894. "[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"
  6895. )
  6896. );
  6897. }
  6898. const userAgentOption = clientDefaults.headers["user-agent"];
  6899. const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`;
  6900. clientDefaults.headers["user-agent"] = [userAgentOption, defaultUserAgent]
  6901. .filter(Boolean)
  6902. .join(" ");
  6903. clientDefaults.request.hook = hook.bind(null, "request");
  6904. return clientDefaults;
  6905. }
  6906. /***/ }),
  6907. /***/ 297:
  6908. /***/ (function(module) {
  6909. module.exports = class HttpError extends Error {
  6910. constructor (message, code, headers) {
  6911. super(message)
  6912. // Maintains proper stack trace (only available on V8)
  6913. /* istanbul ignore next */
  6914. if (Error.captureStackTrace) {
  6915. Error.captureStackTrace(this, this.constructor)
  6916. }
  6917. this.name = 'HttpError'
  6918. this.code = code
  6919. this.headers = headers
  6920. }
  6921. }
  6922. /***/ }),
  6923. /***/ 299:
  6924. /***/ (function(__unusedmodule, exports) {
  6925. "use strict";
  6926. Object.defineProperty(exports, '__esModule', { value: true });
  6927. const VERSION = "1.1.2";
  6928. /**
  6929. * Some “list” response that can be paginated have a different response structure
  6930. *
  6931. * They have a `total_count` key in the response (search also has `incomplete_results`,
  6932. * /installation/repositories also has `repository_selection`), as well as a key with
  6933. * the list of the items which name varies from endpoint to endpoint:
  6934. *
  6935. * - https://developer.github.com/v3/search/#example (key `items`)
  6936. * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
  6937. * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
  6938. * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
  6939. * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
  6940. *
  6941. * Octokit normalizes these responses so that paginated results are always returned following
  6942. * the same structure. One challenge is that if the list response has only one page, no Link
  6943. * header is provided, so this header alone is not sufficient to check wether a response is
  6944. * paginated or not. For the exceptions with the namespace, a fallback check for the route
  6945. * paths has to be added in order to normalize the response. We cannot check for the total_count
  6946. * property because it also exists in the response of Get the combined status for a specific ref.
  6947. */
  6948. const REGEX = [/^\/search\//, /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, /^\/installation\/repositories([^/]|$)/, /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];
  6949. function normalizePaginatedListResponse(octokit, url, response) {
  6950. const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, "");
  6951. const responseNeedsNormalization = REGEX.find(regex => regex.test(path));
  6952. if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way
  6953. // to retrieve the same information.
  6954. const incompleteResults = response.data.incomplete_results;
  6955. const repositorySelection = response.data.repository_selection;
  6956. const totalCount = response.data.total_count;
  6957. delete response.data.incomplete_results;
  6958. delete response.data.repository_selection;
  6959. delete response.data.total_count;
  6960. const namespaceKey = Object.keys(response.data)[0];
  6961. const data = response.data[namespaceKey];
  6962. response.data = data;
  6963. if (typeof incompleteResults !== "undefined") {
  6964. response.data.incomplete_results = incompleteResults;
  6965. }
  6966. if (typeof repositorySelection !== "undefined") {
  6967. response.data.repository_selection = repositorySelection;
  6968. }
  6969. response.data.total_count = totalCount;
  6970. Object.defineProperty(response.data, namespaceKey, {
  6971. get() {
  6972. octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
  6973. return Array.from(data);
  6974. }
  6975. });
  6976. }
  6977. function iterator(octokit, route, parameters) {
  6978. const options = octokit.request.endpoint(route, parameters);
  6979. const method = options.method;
  6980. const headers = options.headers;
  6981. let url = options.url;
  6982. return {
  6983. [Symbol.asyncIterator]: () => ({
  6984. next() {
  6985. if (!url) {
  6986. return Promise.resolve({
  6987. done: true
  6988. });
  6989. }
  6990. return octokit.request({
  6991. method,
  6992. url,
  6993. headers
  6994. }).then(response => {
  6995. normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format:
  6996. // '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
  6997. // sets `url` to undefined if "next" URL is not present or `link` header is not set
  6998. url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
  6999. return {
  7000. value: response
  7001. };
  7002. });
  7003. }
  7004. })
  7005. };
  7006. }
  7007. function paginate(octokit, route, parameters, mapFn) {
  7008. if (typeof parameters === "function") {
  7009. mapFn = parameters;
  7010. parameters = undefined;
  7011. }
  7012. return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
  7013. }
  7014. function gather(octokit, results, iterator, mapFn) {
  7015. return iterator.next().then(result => {
  7016. if (result.done) {
  7017. return results;
  7018. }
  7019. let earlyExit = false;
  7020. function done() {
  7021. earlyExit = true;
  7022. }
  7023. results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
  7024. if (earlyExit) {
  7025. return results;
  7026. }
  7027. return gather(octokit, results, iterator, mapFn);
  7028. });
  7029. }
  7030. /**
  7031. * @param octokit Octokit instance
  7032. * @param options Options passed to Octokit constructor
  7033. */
  7034. function paginateRest(octokit) {
  7035. return {
  7036. paginate: Object.assign(paginate.bind(null, octokit), {
  7037. iterator: iterator.bind(null, octokit)
  7038. })
  7039. };
  7040. }
  7041. paginateRest.VERSION = VERSION;
  7042. exports.paginateRest = paginateRest;
  7043. //# sourceMappingURL=index.js.map
  7044. /***/ }),
  7045. /***/ 323:
  7046. /***/ (function(module) {
  7047. "use strict";
  7048. var isStream = module.exports = function (stream) {
  7049. return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';
  7050. };
  7051. isStream.writable = function (stream) {
  7052. return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object';
  7053. };
  7054. isStream.readable = function (stream) {
  7055. return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object';
  7056. };
  7057. isStream.duplex = function (stream) {
  7058. return isStream.writable(stream) && isStream.readable(stream);
  7059. };
  7060. isStream.transform = function (stream) {
  7061. return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object';
  7062. };
  7063. /***/ }),
  7064. /***/ 329:
  7065. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7066. "use strict";
  7067. Object.defineProperty(exports, "__esModule", {
  7068. value: true
  7069. });
  7070. exports.default = void 0;
  7071. var _crypto = _interopRequireDefault(__webpack_require__(417));
  7072. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  7073. function sha1(bytes) {
  7074. if (Array.isArray(bytes)) {
  7075. bytes = Buffer.from(bytes);
  7076. } else if (typeof bytes === 'string') {
  7077. bytes = Buffer.from(bytes, 'utf8');
  7078. }
  7079. return _crypto.default.createHash('sha1').update(bytes).digest();
  7080. }
  7081. var _default = sha1;
  7082. exports.default = _default;
  7083. /***/ }),
  7084. /***/ 330:
  7085. /***/ (function(module, __unusedexports, __webpack_require__) {
  7086. module.exports = __webpack_require__(669).inspect;
  7087. /***/ }),
  7088. /***/ 335:
  7089. /***/ (function(module, __unusedexports, __webpack_require__) {
  7090. module.exports = __webpack_require__(179);
  7091. /***/ }),
  7092. /***/ 336:
  7093. /***/ (function(module, __unusedexports, __webpack_require__) {
  7094. module.exports = hasLastPage
  7095. const deprecate = __webpack_require__(370)
  7096. const getPageLinks = __webpack_require__(577)
  7097. function hasLastPage (link) {
  7098. deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  7099. return getPageLinks(link).last
  7100. }
  7101. /***/ }),
  7102. /***/ 348:
  7103. /***/ (function(module, __unusedexports, __webpack_require__) {
  7104. "use strict";
  7105. module.exports = validate;
  7106. const { RequestError } = __webpack_require__(497);
  7107. const get = __webpack_require__(854);
  7108. const set = __webpack_require__(883);
  7109. function validate(octokit, options) {
  7110. if (!options.request.validate) {
  7111. return;
  7112. }
  7113. const { validate: params } = options.request;
  7114. Object.keys(params).forEach(parameterName => {
  7115. const parameter = get(params, parameterName);
  7116. const expectedType = parameter.type;
  7117. let parentParameterName;
  7118. let parentValue;
  7119. let parentParamIsPresent = true;
  7120. let parentParameterIsArray = false;
  7121. if (/\./.test(parameterName)) {
  7122. parentParameterName = parameterName.replace(/\.[^.]+$/, "");
  7123. parentParameterIsArray = parentParameterName.slice(-2) === "[]";
  7124. if (parentParameterIsArray) {
  7125. parentParameterName = parentParameterName.slice(0, -2);
  7126. }
  7127. parentValue = get(options, parentParameterName);
  7128. parentParamIsPresent =
  7129. parentParameterName === "headers" ||
  7130. (typeof parentValue === "object" && parentValue !== null);
  7131. }
  7132. const values = parentParameterIsArray
  7133. ? (get(options, parentParameterName) || []).map(
  7134. value => value[parameterName.split(/\./).pop()]
  7135. )
  7136. : [get(options, parameterName)];
  7137. values.forEach((value, i) => {
  7138. const valueIsPresent = typeof value !== "undefined";
  7139. const valueIsNull = value === null;
  7140. const currentParameterName = parentParameterIsArray
  7141. ? parameterName.replace(/\[\]/, `[${i}]`)
  7142. : parameterName;
  7143. if (!parameter.required && !valueIsPresent) {
  7144. return;
  7145. }
  7146. // if the parent parameter is of type object but allows null
  7147. // then the child parameters can be ignored
  7148. if (!parentParamIsPresent) {
  7149. return;
  7150. }
  7151. if (parameter.allowNull && valueIsNull) {
  7152. return;
  7153. }
  7154. if (!parameter.allowNull && valueIsNull) {
  7155. throw new RequestError(
  7156. `'${currentParameterName}' cannot be null`,
  7157. 400,
  7158. {
  7159. request: options
  7160. }
  7161. );
  7162. }
  7163. if (parameter.required && !valueIsPresent) {
  7164. throw new RequestError(
  7165. `Empty value for parameter '${currentParameterName}': ${JSON.stringify(
  7166. value
  7167. )}`,
  7168. 400,
  7169. {
  7170. request: options
  7171. }
  7172. );
  7173. }
  7174. // parse to integer before checking for enum
  7175. // so that string "1" will match enum with number 1
  7176. if (expectedType === "integer") {
  7177. const unparsedValue = value;
  7178. value = parseInt(value, 10);
  7179. if (isNaN(value)) {
  7180. throw new RequestError(
  7181. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  7182. unparsedValue
  7183. )} is NaN`,
  7184. 400,
  7185. {
  7186. request: options
  7187. }
  7188. );
  7189. }
  7190. }
  7191. if (parameter.enum && parameter.enum.indexOf(String(value)) === -1) {
  7192. throw new RequestError(
  7193. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  7194. value
  7195. )}`,
  7196. 400,
  7197. {
  7198. request: options
  7199. }
  7200. );
  7201. }
  7202. if (parameter.validation) {
  7203. const regex = new RegExp(parameter.validation);
  7204. if (!regex.test(value)) {
  7205. throw new RequestError(
  7206. `Invalid value for parameter '${currentParameterName}': ${JSON.stringify(
  7207. value
  7208. )}`,
  7209. 400,
  7210. {
  7211. request: options
  7212. }
  7213. );
  7214. }
  7215. }
  7216. if (expectedType === "object" && typeof value === "string") {
  7217. try {
  7218. value = JSON.parse(value);
  7219. } catch (exception) {
  7220. throw new RequestError(
  7221. `JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify(
  7222. value
  7223. )}`,
  7224. 400,
  7225. {
  7226. request: options
  7227. }
  7228. );
  7229. }
  7230. }
  7231. set(options, parameter.mapTo || currentParameterName, value);
  7232. });
  7233. });
  7234. return options;
  7235. }
  7236. /***/ }),
  7237. /***/ 349:
  7238. /***/ (function(module, __unusedexports, __webpack_require__) {
  7239. module.exports = authenticationRequestError;
  7240. const { RequestError } = __webpack_require__(497);
  7241. function authenticationRequestError(state, error, options) {
  7242. /* istanbul ignore next */
  7243. if (!error.headers) throw error;
  7244. const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
  7245. // handle "2FA required" error only
  7246. if (error.status !== 401 || !otpRequired) {
  7247. throw error;
  7248. }
  7249. if (
  7250. error.status === 401 &&
  7251. otpRequired &&
  7252. error.request &&
  7253. error.request.headers["x-github-otp"]
  7254. ) {
  7255. throw new RequestError(
  7256. "Invalid one-time password for two-factor authentication",
  7257. 401,
  7258. {
  7259. headers: error.headers,
  7260. request: options
  7261. }
  7262. );
  7263. }
  7264. if (typeof state.auth.on2fa !== "function") {
  7265. throw new RequestError(
  7266. "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
  7267. 401,
  7268. {
  7269. headers: error.headers,
  7270. request: options
  7271. }
  7272. );
  7273. }
  7274. return Promise.resolve()
  7275. .then(() => {
  7276. return state.auth.on2fa();
  7277. })
  7278. .then(oneTimePassword => {
  7279. const newOptions = Object.assign(options, {
  7280. headers: Object.assign(
  7281. { "x-github-otp": oneTimePassword },
  7282. options.headers
  7283. )
  7284. });
  7285. return state.octokit.request(newOptions);
  7286. });
  7287. }
  7288. /***/ }),
  7289. /***/ 353:
  7290. /***/ (function(module) {
  7291. "use strict";
  7292. /* eslint no-invalid-this: 1 */
  7293. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  7294. var slice = Array.prototype.slice;
  7295. var toStr = Object.prototype.toString;
  7296. var funcType = '[object Function]';
  7297. module.exports = function bind(that) {
  7298. var target = this;
  7299. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  7300. throw new TypeError(ERROR_MESSAGE + target);
  7301. }
  7302. var args = slice.call(arguments, 1);
  7303. var bound;
  7304. var binder = function () {
  7305. if (this instanceof bound) {
  7306. var result = target.apply(
  7307. this,
  7308. args.concat(slice.call(arguments))
  7309. );
  7310. if (Object(result) === result) {
  7311. return result;
  7312. }
  7313. return this;
  7314. } else {
  7315. return target.apply(
  7316. that,
  7317. args.concat(slice.call(arguments))
  7318. );
  7319. }
  7320. };
  7321. var boundLength = Math.max(0, target.length - args.length);
  7322. var boundArgs = [];
  7323. for (var i = 0; i < boundLength; i++) {
  7324. boundArgs.push('$' + i);
  7325. }
  7326. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  7327. if (target.prototype) {
  7328. var Empty = function Empty() {};
  7329. Empty.prototype = target.prototype;
  7330. bound.prototype = new Empty();
  7331. Empty.prototype = null;
  7332. }
  7333. return bound;
  7334. };
  7335. /***/ }),
  7336. /***/ 357:
  7337. /***/ (function(module) {
  7338. module.exports = require("assert");
  7339. /***/ }),
  7340. /***/ 363:
  7341. /***/ (function(__unusedmodule, exports) {
  7342. "use strict";
  7343. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  7344. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  7345. return new (P || (P = Promise))(function (resolve, reject) {
  7346. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  7347. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  7348. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7349. step((generator = generator.apply(thisArg, _arguments || [])).next());
  7350. });
  7351. };
  7352. Object.defineProperty(exports, "__esModule", { value: true });
  7353. exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0;
  7354. class BasicCredentialHandler {
  7355. constructor(username, password) {
  7356. this.username = username;
  7357. this.password = password;
  7358. }
  7359. prepareRequest(options) {
  7360. if (!options.headers) {
  7361. throw Error('The request has no headers');
  7362. }
  7363. options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`;
  7364. }
  7365. // This handler cannot handle 401
  7366. canHandleAuthentication() {
  7367. return false;
  7368. }
  7369. handleAuthentication() {
  7370. return __awaiter(this, void 0, void 0, function* () {
  7371. throw new Error('not implemented');
  7372. });
  7373. }
  7374. }
  7375. exports.BasicCredentialHandler = BasicCredentialHandler;
  7376. class BearerCredentialHandler {
  7377. constructor(token) {
  7378. this.token = token;
  7379. }
  7380. // currently implements pre-authorization
  7381. // TODO: support preAuth = false where it hooks on 401
  7382. prepareRequest(options) {
  7383. if (!options.headers) {
  7384. throw Error('The request has no headers');
  7385. }
  7386. options.headers['Authorization'] = `Bearer ${this.token}`;
  7387. }
  7388. // This handler cannot handle 401
  7389. canHandleAuthentication() {
  7390. return false;
  7391. }
  7392. handleAuthentication() {
  7393. return __awaiter(this, void 0, void 0, function* () {
  7394. throw new Error('not implemented');
  7395. });
  7396. }
  7397. }
  7398. exports.BearerCredentialHandler = BearerCredentialHandler;
  7399. class PersonalAccessTokenCredentialHandler {
  7400. constructor(token) {
  7401. this.token = token;
  7402. }
  7403. // currently implements pre-authorization
  7404. // TODO: support preAuth = false where it hooks on 401
  7405. prepareRequest(options) {
  7406. if (!options.headers) {
  7407. throw Error('The request has no headers');
  7408. }
  7409. options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`;
  7410. }
  7411. // This handler cannot handle 401
  7412. canHandleAuthentication() {
  7413. return false;
  7414. }
  7415. handleAuthentication() {
  7416. return __awaiter(this, void 0, void 0, function* () {
  7417. throw new Error('not implemented');
  7418. });
  7419. }
  7420. }
  7421. exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler;
  7422. //# sourceMappingURL=auth.js.map
  7423. /***/ }),
  7424. /***/ 368:
  7425. /***/ (function(module) {
  7426. module.exports = function atob(str) {
  7427. return Buffer.from(str, 'base64').toString('binary')
  7428. }
  7429. /***/ }),
  7430. /***/ 370:
  7431. /***/ (function(module) {
  7432. module.exports = deprecate
  7433. const loggedMessages = {}
  7434. function deprecate (message) {
  7435. if (loggedMessages[message]) {
  7436. return
  7437. }
  7438. console.warn(`DEPRECATED (@octokit/rest): ${message}`)
  7439. loggedMessages[message] = 1
  7440. }
  7441. /***/ }),
  7442. /***/ 385:
  7443. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7444. "use strict";
  7445. Object.defineProperty(exports, '__esModule', { value: true });
  7446. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  7447. var isPlainObject = _interopDefault(__webpack_require__(696));
  7448. var universalUserAgent = __webpack_require__(562);
  7449. function lowercaseKeys(object) {
  7450. if (!object) {
  7451. return {};
  7452. }
  7453. return Object.keys(object).reduce((newObj, key) => {
  7454. newObj[key.toLowerCase()] = object[key];
  7455. return newObj;
  7456. }, {});
  7457. }
  7458. function mergeDeep(defaults, options) {
  7459. const result = Object.assign({}, defaults);
  7460. Object.keys(options).forEach(key => {
  7461. if (isPlainObject(options[key])) {
  7462. if (!(key in defaults)) Object.assign(result, {
  7463. [key]: options[key]
  7464. });else result[key] = mergeDeep(defaults[key], options[key]);
  7465. } else {
  7466. Object.assign(result, {
  7467. [key]: options[key]
  7468. });
  7469. }
  7470. });
  7471. return result;
  7472. }
  7473. function merge(defaults, route, options) {
  7474. if (typeof route === "string") {
  7475. let [method, url] = route.split(" ");
  7476. options = Object.assign(url ? {
  7477. method,
  7478. url
  7479. } : {
  7480. url: method
  7481. }, options);
  7482. } else {
  7483. options = Object.assign({}, route);
  7484. } // lowercase header names before merging with defaults to avoid duplicates
  7485. options.headers = lowercaseKeys(options.headers);
  7486. const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten
  7487. if (defaults && defaults.mediaType.previews.length) {
  7488. mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
  7489. }
  7490. mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, ""));
  7491. return mergedOptions;
  7492. }
  7493. function addQueryParameters(url, parameters) {
  7494. const separator = /\?/.test(url) ? "&" : "?";
  7495. const names = Object.keys(parameters);
  7496. if (names.length === 0) {
  7497. return url;
  7498. }
  7499. return url + separator + names.map(name => {
  7500. if (name === "q") {
  7501. return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
  7502. }
  7503. return `${name}=${encodeURIComponent(parameters[name])}`;
  7504. }).join("&");
  7505. }
  7506. const urlVariableRegex = /\{[^}]+\}/g;
  7507. function removeNonChars(variableName) {
  7508. return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
  7509. }
  7510. function extractUrlVariableNames(url) {
  7511. const matches = url.match(urlVariableRegex);
  7512. if (!matches) {
  7513. return [];
  7514. }
  7515. return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
  7516. }
  7517. function omit(object, keysToOmit) {
  7518. return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {
  7519. obj[key] = object[key];
  7520. return obj;
  7521. }, {});
  7522. }
  7523. // Based on https://github.com/bramstein/url-template, licensed under BSD
  7524. // TODO: create separate package.
  7525. //
  7526. // Copyright (c) 2012-2014, Bram Stein
  7527. // All rights reserved.
  7528. // Redistribution and use in source and binary forms, with or without
  7529. // modification, are permitted provided that the following conditions
  7530. // are met:
  7531. // 1. Redistributions of source code must retain the above copyright
  7532. // notice, this list of conditions and the following disclaimer.
  7533. // 2. Redistributions in binary form must reproduce the above copyright
  7534. // notice, this list of conditions and the following disclaimer in the
  7535. // documentation and/or other materials provided with the distribution.
  7536. // 3. The name of the author may not be used to endorse or promote products
  7537. // derived from this software without specific prior written permission.
  7538. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
  7539. // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  7540. // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
  7541. // EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  7542. // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  7543. // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  7544. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  7545. // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  7546. // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  7547. // EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  7548. /* istanbul ignore file */
  7549. function encodeReserved(str) {
  7550. return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {
  7551. if (!/%[0-9A-Fa-f]/.test(part)) {
  7552. part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
  7553. }
  7554. return part;
  7555. }).join("");
  7556. }
  7557. function encodeUnreserved(str) {
  7558. return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
  7559. return "%" + c.charCodeAt(0).toString(16).toUpperCase();
  7560. });
  7561. }
  7562. function encodeValue(operator, value, key) {
  7563. value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
  7564. if (key) {
  7565. return encodeUnreserved(key) + "=" + value;
  7566. } else {
  7567. return value;
  7568. }
  7569. }
  7570. function isDefined(value) {
  7571. return value !== undefined && value !== null;
  7572. }
  7573. function isKeyOperator(operator) {
  7574. return operator === ";" || operator === "&" || operator === "?";
  7575. }
  7576. function getValues(context, operator, key, modifier) {
  7577. var value = context[key],
  7578. result = [];
  7579. if (isDefined(value) && value !== "") {
  7580. if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
  7581. value = value.toString();
  7582. if (modifier && modifier !== "*") {
  7583. value = value.substring(0, parseInt(modifier, 10));
  7584. }
  7585. result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
  7586. } else {
  7587. if (modifier === "*") {
  7588. if (Array.isArray(value)) {
  7589. value.filter(isDefined).forEach(function (value) {
  7590. result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
  7591. });
  7592. } else {
  7593. Object.keys(value).forEach(function (k) {
  7594. if (isDefined(value[k])) {
  7595. result.push(encodeValue(operator, value[k], k));
  7596. }
  7597. });
  7598. }
  7599. } else {
  7600. const tmp = [];
  7601. if (Array.isArray(value)) {
  7602. value.filter(isDefined).forEach(function (value) {
  7603. tmp.push(encodeValue(operator, value));
  7604. });
  7605. } else {
  7606. Object.keys(value).forEach(function (k) {
  7607. if (isDefined(value[k])) {
  7608. tmp.push(encodeUnreserved(k));
  7609. tmp.push(encodeValue(operator, value[k].toString()));
  7610. }
  7611. });
  7612. }
  7613. if (isKeyOperator(operator)) {
  7614. result.push(encodeUnreserved(key) + "=" + tmp.join(","));
  7615. } else if (tmp.length !== 0) {
  7616. result.push(tmp.join(","));
  7617. }
  7618. }
  7619. }
  7620. } else {
  7621. if (operator === ";") {
  7622. if (isDefined(value)) {
  7623. result.push(encodeUnreserved(key));
  7624. }
  7625. } else if (value === "" && (operator === "&" || operator === "?")) {
  7626. result.push(encodeUnreserved(key) + "=");
  7627. } else if (value === "") {
  7628. result.push("");
  7629. }
  7630. }
  7631. return result;
  7632. }
  7633. function parseUrl(template) {
  7634. return {
  7635. expand: expand.bind(null, template)
  7636. };
  7637. }
  7638. function expand(template, context) {
  7639. var operators = ["+", "#", ".", "/", ";", "?", "&"];
  7640. return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
  7641. if (expression) {
  7642. let operator = "";
  7643. const values = [];
  7644. if (operators.indexOf(expression.charAt(0)) !== -1) {
  7645. operator = expression.charAt(0);
  7646. expression = expression.substr(1);
  7647. }
  7648. expression.split(/,/g).forEach(function (variable) {
  7649. var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
  7650. values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
  7651. });
  7652. if (operator && operator !== "+") {
  7653. var separator = ",";
  7654. if (operator === "?") {
  7655. separator = "&";
  7656. } else if (operator !== "#") {
  7657. separator = operator;
  7658. }
  7659. return (values.length !== 0 ? operator : "") + values.join(separator);
  7660. } else {
  7661. return values.join(",");
  7662. }
  7663. } else {
  7664. return encodeReserved(literal);
  7665. }
  7666. });
  7667. }
  7668. function parse(options) {
  7669. // https://fetch.spec.whatwg.org/#methods
  7670. let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible
  7671. let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}");
  7672. let headers = Object.assign({}, options.headers);
  7673. let body;
  7674. let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later
  7675. const urlVariableNames = extractUrlVariableNames(url);
  7676. url = parseUrl(url).expand(parameters);
  7677. if (!/^http/.test(url)) {
  7678. url = options.baseUrl + url;
  7679. }
  7680. const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl");
  7681. const remainingParameters = omit(parameters, omittedParameters);
  7682. const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
  7683. if (!isBinaryRequset) {
  7684. if (options.mediaType.format) {
  7685. // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
  7686. headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(",");
  7687. }
  7688. if (options.mediaType.previews.length) {
  7689. const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
  7690. headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {
  7691. const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
  7692. return `application/vnd.github.${preview}-preview${format}`;
  7693. }).join(",");
  7694. }
  7695. } // for GET/HEAD requests, set URL query parameters from remaining parameters
  7696. // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
  7697. if (["GET", "HEAD"].includes(method)) {
  7698. url = addQueryParameters(url, remainingParameters);
  7699. } else {
  7700. if ("data" in remainingParameters) {
  7701. body = remainingParameters.data;
  7702. } else {
  7703. if (Object.keys(remainingParameters).length) {
  7704. body = remainingParameters;
  7705. } else {
  7706. headers["content-length"] = 0;
  7707. }
  7708. }
  7709. } // default content-type for JSON if body is set
  7710. if (!headers["content-type"] && typeof body !== "undefined") {
  7711. headers["content-type"] = "application/json; charset=utf-8";
  7712. } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
  7713. // fetch does not allow to set `content-length` header, but we can set body to an empty string
  7714. if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
  7715. body = "";
  7716. } // Only return body/request keys if present
  7717. return Object.assign({
  7718. method,
  7719. url,
  7720. headers
  7721. }, typeof body !== "undefined" ? {
  7722. body
  7723. } : null, options.request ? {
  7724. request: options.request
  7725. } : null);
  7726. }
  7727. function endpointWithDefaults(defaults, route, options) {
  7728. return parse(merge(defaults, route, options));
  7729. }
  7730. function withDefaults(oldDefaults, newDefaults) {
  7731. const DEFAULTS = merge(oldDefaults, newDefaults);
  7732. const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
  7733. return Object.assign(endpoint, {
  7734. DEFAULTS,
  7735. defaults: withDefaults.bind(null, DEFAULTS),
  7736. merge: merge.bind(null, DEFAULTS),
  7737. parse
  7738. });
  7739. }
  7740. const VERSION = "6.0.1";
  7741. const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
  7742. // So we use RequestParameters and add method as additional required property.
  7743. const DEFAULTS = {
  7744. method: "GET",
  7745. baseUrl: "https://api.github.com",
  7746. headers: {
  7747. accept: "application/vnd.github.v3+json",
  7748. "user-agent": userAgent
  7749. },
  7750. mediaType: {
  7751. format: "",
  7752. previews: []
  7753. }
  7754. };
  7755. const endpoint = withDefaults(null, DEFAULTS);
  7756. exports.endpoint = endpoint;
  7757. //# sourceMappingURL=index.js.map
  7758. /***/ }),
  7759. /***/ 386:
  7760. /***/ (function(module, __unusedexports, __webpack_require__) {
  7761. "use strict";
  7762. var stringify = __webpack_require__(897);
  7763. var parse = __webpack_require__(755);
  7764. var formats = __webpack_require__(13);
  7765. module.exports = {
  7766. formats: formats,
  7767. parse: parse,
  7768. stringify: stringify
  7769. };
  7770. /***/ }),
  7771. /***/ 389:
  7772. /***/ (function(module, __unusedexports, __webpack_require__) {
  7773. "use strict";
  7774. const fs = __webpack_require__(747);
  7775. const shebangCommand = __webpack_require__(866);
  7776. function readShebang(command) {
  7777. // Read the first 150 bytes from the file
  7778. const size = 150;
  7779. let buffer;
  7780. if (Buffer.alloc) {
  7781. // Node.js v4.5+ / v5.10+
  7782. buffer = Buffer.alloc(size);
  7783. } else {
  7784. // Old Node.js API
  7785. buffer = new Buffer(size);
  7786. buffer.fill(0); // zero-fill
  7787. }
  7788. let fd;
  7789. try {
  7790. fd = fs.openSync(command, 'r');
  7791. fs.readSync(fd, buffer, 0, size, 0);
  7792. fs.closeSync(fd);
  7793. } catch (e) { /* Empty */ }
  7794. // Attempt to extract shebang (null is returned if not a shebang)
  7795. return shebangCommand(buffer.toString());
  7796. }
  7797. module.exports = readShebang;
  7798. /***/ }),
  7799. /***/ 392:
  7800. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7801. "use strict";
  7802. Object.defineProperty(exports, '__esModule', { value: true });
  7803. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  7804. var osName = _interopDefault(__webpack_require__(2));
  7805. function getUserAgent() {
  7806. try {
  7807. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  7808. } catch (error) {
  7809. if (/wmic os get Caption/.test(error.message)) {
  7810. return "Windows <version undetectable>";
  7811. }
  7812. return "<environment undetectable>";
  7813. }
  7814. }
  7815. exports.getUserAgent = getUserAgent;
  7816. //# sourceMappingURL=index.js.map
  7817. /***/ }),
  7818. /***/ 402:
  7819. /***/ (function(module, __unusedexports, __webpack_require__) {
  7820. module.exports = Octokit;
  7821. const { request } = __webpack_require__(753);
  7822. const Hook = __webpack_require__(523);
  7823. const parseClientOptions = __webpack_require__(294);
  7824. function Octokit(plugins, options) {
  7825. options = options || {};
  7826. const hook = new Hook.Collection();
  7827. const log = Object.assign(
  7828. {
  7829. debug: () => {},
  7830. info: () => {},
  7831. warn: console.warn,
  7832. error: console.error
  7833. },
  7834. options && options.log
  7835. );
  7836. const api = {
  7837. hook,
  7838. log,
  7839. request: request.defaults(parseClientOptions(options, log, hook))
  7840. };
  7841. plugins.forEach(pluginFunction => pluginFunction(api, options));
  7842. return api;
  7843. }
  7844. /***/ }),
  7845. /***/ 413:
  7846. /***/ (function(module, __unusedexports, __webpack_require__) {
  7847. module.exports = __webpack_require__(141);
  7848. /***/ }),
  7849. /***/ 417:
  7850. /***/ (function(module) {
  7851. module.exports = require("crypto");
  7852. /***/ }),
  7853. /***/ 427:
  7854. /***/ (function(module, __unusedexports, __webpack_require__) {
  7855. "use strict";
  7856. // Older verions of Node.js might not have `util.getSystemErrorName()`.
  7857. // In that case, fall back to a deprecated internal.
  7858. const util = __webpack_require__(669);
  7859. let uv;
  7860. if (typeof util.getSystemErrorName === 'function') {
  7861. module.exports = util.getSystemErrorName;
  7862. } else {
  7863. try {
  7864. uv = process.binding('uv');
  7865. if (typeof uv.errname !== 'function') {
  7866. throw new TypeError('uv.errname is not a function');
  7867. }
  7868. } catch (err) {
  7869. console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err);
  7870. uv = null;
  7871. }
  7872. module.exports = code => errname(uv, code);
  7873. }
  7874. // Used for testing the fallback behavior
  7875. module.exports.__test__ = errname;
  7876. function errname(uv, code) {
  7877. if (uv) {
  7878. return uv.errname(code);
  7879. }
  7880. if (!(code < 0)) {
  7881. throw new Error('err >= 0');
  7882. }
  7883. return `Unknown system error ${code}`;
  7884. }
  7885. /***/ }),
  7886. /***/ 430:
  7887. /***/ (function(module, __unusedexports, __webpack_require__) {
  7888. module.exports = octokitValidate;
  7889. const validate = __webpack_require__(348);
  7890. function octokitValidate(octokit) {
  7891. octokit.hook.before("request", validate.bind(null, octokit));
  7892. }
  7893. /***/ }),
  7894. /***/ 431:
  7895. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7896. "use strict";
  7897. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  7898. if (k2 === undefined) k2 = k;
  7899. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  7900. }) : (function(o, m, k, k2) {
  7901. if (k2 === undefined) k2 = k;
  7902. o[k2] = m[k];
  7903. }));
  7904. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  7905. Object.defineProperty(o, "default", { enumerable: true, value: v });
  7906. }) : function(o, v) {
  7907. o["default"] = v;
  7908. });
  7909. var __importStar = (this && this.__importStar) || function (mod) {
  7910. if (mod && mod.__esModule) return mod;
  7911. var result = {};
  7912. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  7913. __setModuleDefault(result, mod);
  7914. return result;
  7915. };
  7916. Object.defineProperty(exports, "__esModule", { value: true });
  7917. exports.issue = exports.issueCommand = void 0;
  7918. const os = __importStar(__webpack_require__(87));
  7919. const utils_1 = __webpack_require__(82);
  7920. /**
  7921. * Commands
  7922. *
  7923. * Command Format:
  7924. * ::name key=value,key=value::message
  7925. *
  7926. * Examples:
  7927. * ::warning::This is the message
  7928. * ::set-env name=MY_VAR::some value
  7929. */
  7930. function issueCommand(command, properties, message) {
  7931. const cmd = new Command(command, properties, message);
  7932. process.stdout.write(cmd.toString() + os.EOL);
  7933. }
  7934. exports.issueCommand = issueCommand;
  7935. function issue(name, message = '') {
  7936. issueCommand(name, {}, message);
  7937. }
  7938. exports.issue = issue;
  7939. const CMD_STRING = '::';
  7940. class Command {
  7941. constructor(command, properties, message) {
  7942. if (!command) {
  7943. command = 'missing.command';
  7944. }
  7945. this.command = command;
  7946. this.properties = properties;
  7947. this.message = message;
  7948. }
  7949. toString() {
  7950. let cmdStr = CMD_STRING + this.command;
  7951. if (this.properties && Object.keys(this.properties).length > 0) {
  7952. cmdStr += ' ';
  7953. let first = true;
  7954. for (const key in this.properties) {
  7955. if (this.properties.hasOwnProperty(key)) {
  7956. const val = this.properties[key];
  7957. if (val) {
  7958. if (first) {
  7959. first = false;
  7960. }
  7961. else {
  7962. cmdStr += ',';
  7963. }
  7964. cmdStr += `${key}=${escapeProperty(val)}`;
  7965. }
  7966. }
  7967. }
  7968. }
  7969. cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
  7970. return cmdStr;
  7971. }
  7972. }
  7973. function escapeData(s) {
  7974. return utils_1.toCommandValue(s)
  7975. .replace(/%/g, '%25')
  7976. .replace(/\r/g, '%0D')
  7977. .replace(/\n/g, '%0A');
  7978. }
  7979. function escapeProperty(s) {
  7980. return utils_1.toCommandValue(s)
  7981. .replace(/%/g, '%25')
  7982. .replace(/\r/g, '%0D')
  7983. .replace(/\n/g, '%0A')
  7984. .replace(/:/g, '%3A')
  7985. .replace(/,/g, '%2C');
  7986. }
  7987. //# sourceMappingURL=command.js.map
  7988. /***/ }),
  7989. /***/ 438:
  7990. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  7991. "use strict";
  7992. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  7993. if (k2 === undefined) k2 = k;
  7994. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  7995. }) : (function(o, m, k, k2) {
  7996. if (k2 === undefined) k2 = k;
  7997. o[k2] = m[k];
  7998. }));
  7999. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  8000. Object.defineProperty(o, "default", { enumerable: true, value: v });
  8001. }) : function(o, v) {
  8002. o["default"] = v;
  8003. });
  8004. var __importStar = (this && this.__importStar) || function (mod) {
  8005. if (mod && mod.__esModule) return mod;
  8006. var result = {};
  8007. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  8008. __setModuleDefault(result, mod);
  8009. return result;
  8010. };
  8011. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  8012. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  8013. return new (P || (P = Promise))(function (resolve, reject) {
  8014. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  8015. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  8016. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  8017. step((generator = generator.apply(thisArg, _arguments || [])).next());
  8018. });
  8019. };
  8020. Object.defineProperty(exports, "__esModule", { value: true });
  8021. exports.prepareExistingDirectory = void 0;
  8022. const assert = __importStar(__webpack_require__(357));
  8023. const core = __importStar(__webpack_require__(470));
  8024. const fs = __importStar(__webpack_require__(747));
  8025. const fsHelper = __importStar(__webpack_require__(618));
  8026. const io = __importStar(__webpack_require__(1));
  8027. const path = __importStar(__webpack_require__(622));
  8028. function prepareExistingDirectory(git, repositoryPath, repositoryUrl, clean, ref) {
  8029. var _a, _b;
  8030. return __awaiter(this, void 0, void 0, function* () {
  8031. assert.ok(repositoryPath, 'Expected repositoryPath to be defined');
  8032. assert.ok(repositoryUrl, 'Expected repositoryUrl to be defined');
  8033. // Indicates whether to delete the directory contents
  8034. let remove = false;
  8035. // Check whether using git or REST API
  8036. if (!git) {
  8037. remove = true;
  8038. }
  8039. // Fetch URL does not match
  8040. else if (!fsHelper.directoryExistsSync(path.join(repositoryPath, '.git')) ||
  8041. repositoryUrl !== (yield git.tryGetFetchUrl())) {
  8042. remove = true;
  8043. }
  8044. else {
  8045. // Delete any index.lock and shallow.lock left by a previously canceled run or crashed git process
  8046. const lockPaths = [
  8047. path.join(repositoryPath, '.git', 'index.lock'),
  8048. path.join(repositoryPath, '.git', 'shallow.lock')
  8049. ];
  8050. for (const lockPath of lockPaths) {
  8051. try {
  8052. yield io.rmRF(lockPath);
  8053. }
  8054. catch (error) {
  8055. core.debug(`Unable to delete '${lockPath}'. ${(_b = (_a = error) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : error}`);
  8056. }
  8057. }
  8058. try {
  8059. core.startGroup('Removing previously created refs, to avoid conflicts');
  8060. // Checkout detached HEAD
  8061. if (!(yield git.isDetached())) {
  8062. yield git.checkoutDetach();
  8063. }
  8064. // Remove all refs/heads/*
  8065. let branches = yield git.branchList(false);
  8066. for (const branch of branches) {
  8067. yield git.branchDelete(false, branch);
  8068. }
  8069. // Remove any conflicting refs/remotes/origin/*
  8070. // Example 1: Consider ref is refs/heads/foo and previously fetched refs/remotes/origin/foo/bar
  8071. // Example 2: Consider ref is refs/heads/foo/bar and previously fetched refs/remotes/origin/foo
  8072. if (ref) {
  8073. ref = ref.startsWith('refs/') ? ref : `refs/heads/${ref}`;
  8074. if (ref.startsWith('refs/heads/')) {
  8075. const upperName1 = ref.toUpperCase().substr('REFS/HEADS/'.length);
  8076. const upperName1Slash = `${upperName1}/`;
  8077. branches = yield git.branchList(true);
  8078. for (const branch of branches) {
  8079. const upperName2 = branch.substr('origin/'.length).toUpperCase();
  8080. const upperName2Slash = `${upperName2}/`;
  8081. if (upperName1.startsWith(upperName2Slash) ||
  8082. upperName2.startsWith(upperName1Slash)) {
  8083. yield git.branchDelete(true, branch);
  8084. }
  8085. }
  8086. }
  8087. }
  8088. core.endGroup();
  8089. // Clean
  8090. if (clean) {
  8091. core.startGroup('Cleaning the repository');
  8092. if (!(yield git.tryClean())) {
  8093. core.debug(`The clean command failed. This might be caused by: 1) path too long, 2) permission issue, or 3) file in use. For futher investigation, manually run 'git clean -ffdx' on the directory '${repositoryPath}'.`);
  8094. remove = true;
  8095. }
  8096. else if (!(yield git.tryReset())) {
  8097. remove = true;
  8098. }
  8099. core.endGroup();
  8100. if (remove) {
  8101. core.warning(`Unable to clean or reset the repository. The repository will be recreated instead.`);
  8102. }
  8103. }
  8104. }
  8105. catch (error) {
  8106. core.warning(`Unable to prepare the existing repository. The repository will be recreated instead.`);
  8107. remove = true;
  8108. }
  8109. }
  8110. if (remove) {
  8111. // Delete the contents of the directory. Don't delete the directory itself
  8112. // since it might be the current working directory.
  8113. core.info(`Deleting the contents of '${repositoryPath}'`);
  8114. for (const file of yield fs.promises.readdir(repositoryPath)) {
  8115. yield io.rmRF(path.join(repositoryPath, file));
  8116. }
  8117. }
  8118. });
  8119. }
  8120. exports.prepareExistingDirectory = prepareExistingDirectory;
  8121. /***/ }),
  8122. /***/ 453:
  8123. /***/ (function(module, __unusedexports, __webpack_require__) {
  8124. var once = __webpack_require__(969)
  8125. var eos = __webpack_require__(3)
  8126. var fs = __webpack_require__(747) // we only need fs to get the ReadStream and WriteStream prototypes
  8127. var noop = function () {}
  8128. var ancient = /^v?\.0/.test(process.version)
  8129. var isFn = function (fn) {
  8130. return typeof fn === 'function'
  8131. }
  8132. var isFS = function (stream) {
  8133. if (!ancient) return false // newer node version do not need to care about fs is a special way
  8134. if (!fs) return false // browser
  8135. return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close)
  8136. }
  8137. var isRequest = function (stream) {
  8138. return stream.setHeader && isFn(stream.abort)
  8139. }
  8140. var destroyer = function (stream, reading, writing, callback) {
  8141. callback = once(callback)
  8142. var closed = false
  8143. stream.on('close', function () {
  8144. closed = true
  8145. })
  8146. eos(stream, {readable: reading, writable: writing}, function (err) {
  8147. if (err) return callback(err)
  8148. closed = true
  8149. callback()
  8150. })
  8151. var destroyed = false
  8152. return function (err) {
  8153. if (closed) return
  8154. if (destroyed) return
  8155. destroyed = true
  8156. if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks
  8157. if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want
  8158. if (isFn(stream.destroy)) return stream.destroy()
  8159. callback(err || new Error('stream was destroyed'))
  8160. }
  8161. }
  8162. var call = function (fn) {
  8163. fn()
  8164. }
  8165. var pipe = function (from, to) {
  8166. return from.pipe(to)
  8167. }
  8168. var pump = function () {
  8169. var streams = Array.prototype.slice.call(arguments)
  8170. var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop
  8171. if (Array.isArray(streams[0])) streams = streams[0]
  8172. if (streams.length < 2) throw new Error('pump requires two streams per minimum')
  8173. var error
  8174. var destroys = streams.map(function (stream, i) {
  8175. var reading = i < streams.length - 1
  8176. var writing = i > 0
  8177. return destroyer(stream, reading, writing, function (err) {
  8178. if (!error) error = err
  8179. if (err) destroys.forEach(call)
  8180. if (reading) return
  8181. destroys.forEach(call)
  8182. callback(error)
  8183. })
  8184. })
  8185. return streams.reduce(pipe)
  8186. }
  8187. module.exports = pump
  8188. /***/ }),
  8189. /***/ 454:
  8190. /***/ (function(module, exports, __webpack_require__) {
  8191. "use strict";
  8192. Object.defineProperty(exports, '__esModule', { value: true });
  8193. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  8194. var Stream = _interopDefault(__webpack_require__(794));
  8195. var http = _interopDefault(__webpack_require__(605));
  8196. var Url = _interopDefault(__webpack_require__(835));
  8197. var whatwgUrl = _interopDefault(__webpack_require__(70));
  8198. var https = _interopDefault(__webpack_require__(211));
  8199. var zlib = _interopDefault(__webpack_require__(761));
  8200. // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
  8201. // fix for "Readable" isn't a named export issue
  8202. const Readable = Stream.Readable;
  8203. const BUFFER = Symbol('buffer');
  8204. const TYPE = Symbol('type');
  8205. class Blob {
  8206. constructor() {
  8207. this[TYPE] = '';
  8208. const blobParts = arguments[0];
  8209. const options = arguments[1];
  8210. const buffers = [];
  8211. let size = 0;
  8212. if (blobParts) {
  8213. const a = blobParts;
  8214. const length = Number(a.length);
  8215. for (let i = 0; i < length; i++) {
  8216. const element = a[i];
  8217. let buffer;
  8218. if (element instanceof Buffer) {
  8219. buffer = element;
  8220. } else if (ArrayBuffer.isView(element)) {
  8221. buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
  8222. } else if (element instanceof ArrayBuffer) {
  8223. buffer = Buffer.from(element);
  8224. } else if (element instanceof Blob) {
  8225. buffer = element[BUFFER];
  8226. } else {
  8227. buffer = Buffer.from(typeof element === 'string' ? element : String(element));
  8228. }
  8229. size += buffer.length;
  8230. buffers.push(buffer);
  8231. }
  8232. }
  8233. this[BUFFER] = Buffer.concat(buffers);
  8234. let type = options && options.type !== undefined && String(options.type).toLowerCase();
  8235. if (type && !/[^\u0020-\u007E]/.test(type)) {
  8236. this[TYPE] = type;
  8237. }
  8238. }
  8239. get size() {
  8240. return this[BUFFER].length;
  8241. }
  8242. get type() {
  8243. return this[TYPE];
  8244. }
  8245. text() {
  8246. return Promise.resolve(this[BUFFER].toString());
  8247. }
  8248. arrayBuffer() {
  8249. const buf = this[BUFFER];
  8250. const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  8251. return Promise.resolve(ab);
  8252. }
  8253. stream() {
  8254. const readable = new Readable();
  8255. readable._read = function () {};
  8256. readable.push(this[BUFFER]);
  8257. readable.push(null);
  8258. return readable;
  8259. }
  8260. toString() {
  8261. return '[object Blob]';
  8262. }
  8263. slice() {
  8264. const size = this.size;
  8265. const start = arguments[0];
  8266. const end = arguments[1];
  8267. let relativeStart, relativeEnd;
  8268. if (start === undefined) {
  8269. relativeStart = 0;
  8270. } else if (start < 0) {
  8271. relativeStart = Math.max(size + start, 0);
  8272. } else {
  8273. relativeStart = Math.min(start, size);
  8274. }
  8275. if (end === undefined) {
  8276. relativeEnd = size;
  8277. } else if (end < 0) {
  8278. relativeEnd = Math.max(size + end, 0);
  8279. } else {
  8280. relativeEnd = Math.min(end, size);
  8281. }
  8282. const span = Math.max(relativeEnd - relativeStart, 0);
  8283. const buffer = this[BUFFER];
  8284. const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
  8285. const blob = new Blob([], { type: arguments[2] });
  8286. blob[BUFFER] = slicedBuffer;
  8287. return blob;
  8288. }
  8289. }
  8290. Object.defineProperties(Blob.prototype, {
  8291. size: { enumerable: true },
  8292. type: { enumerable: true },
  8293. slice: { enumerable: true }
  8294. });
  8295. Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
  8296. value: 'Blob',
  8297. writable: false,
  8298. enumerable: false,
  8299. configurable: true
  8300. });
  8301. /**
  8302. * fetch-error.js
  8303. *
  8304. * FetchError interface for operational errors
  8305. */
  8306. /**
  8307. * Create FetchError instance
  8308. *
  8309. * @param String message Error message for human
  8310. * @param String type Error type for machine
  8311. * @param String systemError For Node.js system error
  8312. * @return FetchError
  8313. */
  8314. function FetchError(message, type, systemError) {
  8315. Error.call(this, message);
  8316. this.message = message;
  8317. this.type = type;
  8318. // when err.type is `system`, err.code contains system error code
  8319. if (systemError) {
  8320. this.code = this.errno = systemError.code;
  8321. }
  8322. // hide custom error implementation details from end-users
  8323. Error.captureStackTrace(this, this.constructor);
  8324. }
  8325. FetchError.prototype = Object.create(Error.prototype);
  8326. FetchError.prototype.constructor = FetchError;
  8327. FetchError.prototype.name = 'FetchError';
  8328. let convert;
  8329. try {
  8330. convert = __webpack_require__(18).convert;
  8331. } catch (e) {}
  8332. const INTERNALS = Symbol('Body internals');
  8333. // fix an issue where "PassThrough" isn't a named export for node <10
  8334. const PassThrough = Stream.PassThrough;
  8335. /**
  8336. * Body mixin
  8337. *
  8338. * Ref: https://fetch.spec.whatwg.org/#body
  8339. *
  8340. * @param Stream body Readable stream
  8341. * @param Object opts Response options
  8342. * @return Void
  8343. */
  8344. function Body(body) {
  8345. var _this = this;
  8346. var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  8347. _ref$size = _ref.size;
  8348. let size = _ref$size === undefined ? 0 : _ref$size;
  8349. var _ref$timeout = _ref.timeout;
  8350. let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
  8351. if (body == null) {
  8352. // body is undefined or null
  8353. body = null;
  8354. } else if (isURLSearchParams(body)) {
  8355. // body is a URLSearchParams
  8356. body = Buffer.from(body.toString());
  8357. } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  8358. // body is ArrayBuffer
  8359. body = Buffer.from(body);
  8360. } else if (ArrayBuffer.isView(body)) {
  8361. // body is ArrayBufferView
  8362. body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
  8363. } else if (body instanceof Stream) ; else {
  8364. // none of the above
  8365. // coerce to string then buffer
  8366. body = Buffer.from(String(body));
  8367. }
  8368. this[INTERNALS] = {
  8369. body,
  8370. disturbed: false,
  8371. error: null
  8372. };
  8373. this.size = size;
  8374. this.timeout = timeout;
  8375. if (body instanceof Stream) {
  8376. body.on('error', function (err) {
  8377. const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
  8378. _this[INTERNALS].error = error;
  8379. });
  8380. }
  8381. }
  8382. Body.prototype = {
  8383. get body() {
  8384. return this[INTERNALS].body;
  8385. },
  8386. get bodyUsed() {
  8387. return this[INTERNALS].disturbed;
  8388. },
  8389. /**
  8390. * Decode response as ArrayBuffer
  8391. *
  8392. * @return Promise
  8393. */
  8394. arrayBuffer() {
  8395. return consumeBody.call(this).then(function (buf) {
  8396. return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
  8397. });
  8398. },
  8399. /**
  8400. * Return raw response as Blob
  8401. *
  8402. * @return Promise
  8403. */
  8404. blob() {
  8405. let ct = this.headers && this.headers.get('content-type') || '';
  8406. return consumeBody.call(this).then(function (buf) {
  8407. return Object.assign(
  8408. // Prevent copying
  8409. new Blob([], {
  8410. type: ct.toLowerCase()
  8411. }), {
  8412. [BUFFER]: buf
  8413. });
  8414. });
  8415. },
  8416. /**
  8417. * Decode response as json
  8418. *
  8419. * @return Promise
  8420. */
  8421. json() {
  8422. var _this2 = this;
  8423. return consumeBody.call(this).then(function (buffer) {
  8424. try {
  8425. return JSON.parse(buffer.toString());
  8426. } catch (err) {
  8427. return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
  8428. }
  8429. });
  8430. },
  8431. /**
  8432. * Decode response as text
  8433. *
  8434. * @return Promise
  8435. */
  8436. text() {
  8437. return consumeBody.call(this).then(function (buffer) {
  8438. return buffer.toString();
  8439. });
  8440. },
  8441. /**
  8442. * Decode response as buffer (non-spec api)
  8443. *
  8444. * @return Promise
  8445. */
  8446. buffer() {
  8447. return consumeBody.call(this);
  8448. },
  8449. /**
  8450. * Decode response as text, while automatically detecting the encoding and
  8451. * trying to decode to UTF-8 (non-spec api)
  8452. *
  8453. * @return Promise
  8454. */
  8455. textConverted() {
  8456. var _this3 = this;
  8457. return consumeBody.call(this).then(function (buffer) {
  8458. return convertBody(buffer, _this3.headers);
  8459. });
  8460. }
  8461. };
  8462. // In browsers, all properties are enumerable.
  8463. Object.defineProperties(Body.prototype, {
  8464. body: { enumerable: true },
  8465. bodyUsed: { enumerable: true },
  8466. arrayBuffer: { enumerable: true },
  8467. blob: { enumerable: true },
  8468. json: { enumerable: true },
  8469. text: { enumerable: true }
  8470. });
  8471. Body.mixIn = function (proto) {
  8472. for (const name of Object.getOwnPropertyNames(Body.prototype)) {
  8473. // istanbul ignore else: future proof
  8474. if (!(name in proto)) {
  8475. const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
  8476. Object.defineProperty(proto, name, desc);
  8477. }
  8478. }
  8479. };
  8480. /**
  8481. * Consume and convert an entire Body to a Buffer.
  8482. *
  8483. * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
  8484. *
  8485. * @return Promise
  8486. */
  8487. function consumeBody() {
  8488. var _this4 = this;
  8489. if (this[INTERNALS].disturbed) {
  8490. return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
  8491. }
  8492. this[INTERNALS].disturbed = true;
  8493. if (this[INTERNALS].error) {
  8494. return Body.Promise.reject(this[INTERNALS].error);
  8495. }
  8496. let body = this.body;
  8497. // body is null
  8498. if (body === null) {
  8499. return Body.Promise.resolve(Buffer.alloc(0));
  8500. }
  8501. // body is blob
  8502. if (isBlob(body)) {
  8503. body = body.stream();
  8504. }
  8505. // body is buffer
  8506. if (Buffer.isBuffer(body)) {
  8507. return Body.Promise.resolve(body);
  8508. }
  8509. // istanbul ignore if: should never happen
  8510. if (!(body instanceof Stream)) {
  8511. return Body.Promise.resolve(Buffer.alloc(0));
  8512. }
  8513. // body is stream
  8514. // get ready to actually consume the body
  8515. let accum = [];
  8516. let accumBytes = 0;
  8517. let abort = false;
  8518. return new Body.Promise(function (resolve, reject) {
  8519. let resTimeout;
  8520. // allow timeout on slow response body
  8521. if (_this4.timeout) {
  8522. resTimeout = setTimeout(function () {
  8523. abort = true;
  8524. reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
  8525. }, _this4.timeout);
  8526. }
  8527. // handle stream errors
  8528. body.on('error', function (err) {
  8529. if (err.name === 'AbortError') {
  8530. // if the request was aborted, reject with this Error
  8531. abort = true;
  8532. reject(err);
  8533. } else {
  8534. // other errors, such as incorrect content-encoding
  8535. reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
  8536. }
  8537. });
  8538. body.on('data', function (chunk) {
  8539. if (abort || chunk === null) {
  8540. return;
  8541. }
  8542. if (_this4.size && accumBytes + chunk.length > _this4.size) {
  8543. abort = true;
  8544. reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
  8545. return;
  8546. }
  8547. accumBytes += chunk.length;
  8548. accum.push(chunk);
  8549. });
  8550. body.on('end', function () {
  8551. if (abort) {
  8552. return;
  8553. }
  8554. clearTimeout(resTimeout);
  8555. try {
  8556. resolve(Buffer.concat(accum, accumBytes));
  8557. } catch (err) {
  8558. // handle streams that have accumulated too much data (issue #414)
  8559. reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
  8560. }
  8561. });
  8562. });
  8563. }
  8564. /**
  8565. * Detect buffer encoding and convert to target encoding
  8566. * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
  8567. *
  8568. * @param Buffer buffer Incoming buffer
  8569. * @param String encoding Target encoding
  8570. * @return String
  8571. */
  8572. function convertBody(buffer, headers) {
  8573. if (typeof convert !== 'function') {
  8574. throw new Error('The package `encoding` must be installed to use the textConverted() function');
  8575. }
  8576. const ct = headers.get('content-type');
  8577. let charset = 'utf-8';
  8578. let res, str;
  8579. // header
  8580. if (ct) {
  8581. res = /charset=([^;]*)/i.exec(ct);
  8582. }
  8583. // no charset in content type, peek at response body for at most 1024 bytes
  8584. str = buffer.slice(0, 1024).toString();
  8585. // html5
  8586. if (!res && str) {
  8587. res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
  8588. }
  8589. // html4
  8590. if (!res && str) {
  8591. res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
  8592. if (!res) {
  8593. res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
  8594. if (res) {
  8595. res.pop(); // drop last quote
  8596. }
  8597. }
  8598. if (res) {
  8599. res = /charset=(.*)/i.exec(res.pop());
  8600. }
  8601. }
  8602. // xml
  8603. if (!res && str) {
  8604. res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
  8605. }
  8606. // found charset
  8607. if (res) {
  8608. charset = res.pop();
  8609. // prevent decode issues when sites use incorrect encoding
  8610. // ref: https://hsivonen.fi/encoding-menu/
  8611. if (charset === 'gb2312' || charset === 'gbk') {
  8612. charset = 'gb18030';
  8613. }
  8614. }
  8615. // turn raw buffers into a single utf-8 buffer
  8616. return convert(buffer, 'UTF-8', charset).toString();
  8617. }
  8618. /**
  8619. * Detect a URLSearchParams object
  8620. * ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143
  8621. *
  8622. * @param Object obj Object to detect by type or brand
  8623. * @return String
  8624. */
  8625. function isURLSearchParams(obj) {
  8626. // Duck-typing as a necessary condition.
  8627. if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {
  8628. return false;
  8629. }
  8630. // Brand-checking and more duck-typing as optional condition.
  8631. return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
  8632. }
  8633. /**
  8634. * Check if `obj` is a W3C `Blob` object (which `File` inherits from)
  8635. * @param {*} obj
  8636. * @return {boolean}
  8637. */
  8638. function isBlob(obj) {
  8639. return typeof obj === 'object' && typeof obj.arrayBuffer === 'function' && typeof obj.type === 'string' && typeof obj.stream === 'function' && typeof obj.constructor === 'function' && typeof obj.constructor.name === 'string' && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
  8640. }
  8641. /**
  8642. * Clone body given Res/Req instance
  8643. *
  8644. * @param Mixed instance Response or Request instance
  8645. * @return Mixed
  8646. */
  8647. function clone(instance) {
  8648. let p1, p2;
  8649. let body = instance.body;
  8650. // don't allow cloning a used body
  8651. if (instance.bodyUsed) {
  8652. throw new Error('cannot clone body after it is used');
  8653. }
  8654. // check that body is a stream and not form-data object
  8655. // note: we can't clone the form-data object without having it as a dependency
  8656. if (body instanceof Stream && typeof body.getBoundary !== 'function') {
  8657. // tee instance body
  8658. p1 = new PassThrough();
  8659. p2 = new PassThrough();
  8660. body.pipe(p1);
  8661. body.pipe(p2);
  8662. // set instance body to teed body and return the other teed body
  8663. instance[INTERNALS].body = p1;
  8664. body = p2;
  8665. }
  8666. return body;
  8667. }
  8668. /**
  8669. * Performs the operation "extract a `Content-Type` value from |object|" as
  8670. * specified in the specification:
  8671. * https://fetch.spec.whatwg.org/#concept-bodyinit-extract
  8672. *
  8673. * This function assumes that instance.body is present.
  8674. *
  8675. * @param Mixed instance Any options.body input
  8676. */
  8677. function extractContentType(body) {
  8678. if (body === null) {
  8679. // body is null
  8680. return null;
  8681. } else if (typeof body === 'string') {
  8682. // body is string
  8683. return 'text/plain;charset=UTF-8';
  8684. } else if (isURLSearchParams(body)) {
  8685. // body is a URLSearchParams
  8686. return 'application/x-www-form-urlencoded;charset=UTF-8';
  8687. } else if (isBlob(body)) {
  8688. // body is blob
  8689. return body.type || null;
  8690. } else if (Buffer.isBuffer(body)) {
  8691. // body is buffer
  8692. return null;
  8693. } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
  8694. // body is ArrayBuffer
  8695. return null;
  8696. } else if (ArrayBuffer.isView(body)) {
  8697. // body is ArrayBufferView
  8698. return null;
  8699. } else if (typeof body.getBoundary === 'function') {
  8700. // detect form data input from form-data module
  8701. return `multipart/form-data;boundary=${body.getBoundary()}`;
  8702. } else if (body instanceof Stream) {
  8703. // body is stream
  8704. // can't really do much about this
  8705. return null;
  8706. } else {
  8707. // Body constructor defaults other things to string
  8708. return 'text/plain;charset=UTF-8';
  8709. }
  8710. }
  8711. /**
  8712. * The Fetch Standard treats this as if "total bytes" is a property on the body.
  8713. * For us, we have to explicitly get it with a function.
  8714. *
  8715. * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
  8716. *
  8717. * @param Body instance Instance of Body
  8718. * @return Number? Number of bytes, or null if not possible
  8719. */
  8720. function getTotalBytes(instance) {
  8721. const body = instance.body;
  8722. if (body === null) {
  8723. // body is null
  8724. return 0;
  8725. } else if (isBlob(body)) {
  8726. return body.size;
  8727. } else if (Buffer.isBuffer(body)) {
  8728. // body is buffer
  8729. return body.length;
  8730. } else if (body && typeof body.getLengthSync === 'function') {
  8731. // detect form data input from form-data module
  8732. if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
  8733. body.hasKnownLength && body.hasKnownLength()) {
  8734. // 2.x
  8735. return body.getLengthSync();
  8736. }
  8737. return null;
  8738. } else {
  8739. // body is stream
  8740. return null;
  8741. }
  8742. }
  8743. /**
  8744. * Write a Body to a Node.js WritableStream (e.g. http.Request) object.
  8745. *
  8746. * @param Body instance Instance of Body
  8747. * @return Void
  8748. */
  8749. function writeToStream(dest, instance) {
  8750. const body = instance.body;
  8751. if (body === null) {
  8752. // body is null
  8753. dest.end();
  8754. } else if (isBlob(body)) {
  8755. body.stream().pipe(dest);
  8756. } else if (Buffer.isBuffer(body)) {
  8757. // body is buffer
  8758. dest.write(body);
  8759. dest.end();
  8760. } else {
  8761. // body is stream
  8762. body.pipe(dest);
  8763. }
  8764. }
  8765. // expose Promise
  8766. Body.Promise = global.Promise;
  8767. /**
  8768. * headers.js
  8769. *
  8770. * Headers class offers convenient helpers
  8771. */
  8772. const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
  8773. const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
  8774. function validateName(name) {
  8775. name = `${name}`;
  8776. if (invalidTokenRegex.test(name) || name === '') {
  8777. throw new TypeError(`${name} is not a legal HTTP header name`);
  8778. }
  8779. }
  8780. function validateValue(value) {
  8781. value = `${value}`;
  8782. if (invalidHeaderCharRegex.test(value)) {
  8783. throw new TypeError(`${value} is not a legal HTTP header value`);
  8784. }
  8785. }
  8786. /**
  8787. * Find the key in the map object given a header name.
  8788. *
  8789. * Returns undefined if not found.
  8790. *
  8791. * @param String name Header name
  8792. * @return String|Undefined
  8793. */
  8794. function find(map, name) {
  8795. name = name.toLowerCase();
  8796. for (const key in map) {
  8797. if (key.toLowerCase() === name) {
  8798. return key;
  8799. }
  8800. }
  8801. return undefined;
  8802. }
  8803. const MAP = Symbol('map');
  8804. class Headers {
  8805. /**
  8806. * Headers class
  8807. *
  8808. * @param Object headers Response headers
  8809. * @return Void
  8810. */
  8811. constructor() {
  8812. let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  8813. this[MAP] = Object.create(null);
  8814. if (init instanceof Headers) {
  8815. const rawHeaders = init.raw();
  8816. const headerNames = Object.keys(rawHeaders);
  8817. for (const headerName of headerNames) {
  8818. for (const value of rawHeaders[headerName]) {
  8819. this.append(headerName, value);
  8820. }
  8821. }
  8822. return;
  8823. }
  8824. // We don't worry about converting prop to ByteString here as append()
  8825. // will handle it.
  8826. if (init == null) ; else if (typeof init === 'object') {
  8827. const method = init[Symbol.iterator];
  8828. if (method != null) {
  8829. if (typeof method !== 'function') {
  8830. throw new TypeError('Header pairs must be iterable');
  8831. }
  8832. // sequence<sequence<ByteString>>
  8833. // Note: per spec we have to first exhaust the lists then process them
  8834. const pairs = [];
  8835. for (const pair of init) {
  8836. if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
  8837. throw new TypeError('Each header pair must be iterable');
  8838. }
  8839. pairs.push(Array.from(pair));
  8840. }
  8841. for (const pair of pairs) {
  8842. if (pair.length !== 2) {
  8843. throw new TypeError('Each header pair must be a name/value tuple');
  8844. }
  8845. this.append(pair[0], pair[1]);
  8846. }
  8847. } else {
  8848. // record<ByteString, ByteString>
  8849. for (const key of Object.keys(init)) {
  8850. const value = init[key];
  8851. this.append(key, value);
  8852. }
  8853. }
  8854. } else {
  8855. throw new TypeError('Provided initializer must be an object');
  8856. }
  8857. }
  8858. /**
  8859. * Return combined header value given name
  8860. *
  8861. * @param String name Header name
  8862. * @return Mixed
  8863. */
  8864. get(name) {
  8865. name = `${name}`;
  8866. validateName(name);
  8867. const key = find(this[MAP], name);
  8868. if (key === undefined) {
  8869. return null;
  8870. }
  8871. return this[MAP][key].join(', ');
  8872. }
  8873. /**
  8874. * Iterate over all headers
  8875. *
  8876. * @param Function callback Executed for each item with parameters (value, name, thisArg)
  8877. * @param Boolean thisArg `this` context for callback function
  8878. * @return Void
  8879. */
  8880. forEach(callback) {
  8881. let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
  8882. let pairs = getHeaders(this);
  8883. let i = 0;
  8884. while (i < pairs.length) {
  8885. var _pairs$i = pairs[i];
  8886. const name = _pairs$i[0],
  8887. value = _pairs$i[1];
  8888. callback.call(thisArg, value, name, this);
  8889. pairs = getHeaders(this);
  8890. i++;
  8891. }
  8892. }
  8893. /**
  8894. * Overwrite header values given name
  8895. *
  8896. * @param String name Header name
  8897. * @param String value Header value
  8898. * @return Void
  8899. */
  8900. set(name, value) {
  8901. name = `${name}`;
  8902. value = `${value}`;
  8903. validateName(name);
  8904. validateValue(value);
  8905. const key = find(this[MAP], name);
  8906. this[MAP][key !== undefined ? key : name] = [value];
  8907. }
  8908. /**
  8909. * Append a value onto existing header
  8910. *
  8911. * @param String name Header name
  8912. * @param String value Header value
  8913. * @return Void
  8914. */
  8915. append(name, value) {
  8916. name = `${name}`;
  8917. value = `${value}`;
  8918. validateName(name);
  8919. validateValue(value);
  8920. const key = find(this[MAP], name);
  8921. if (key !== undefined) {
  8922. this[MAP][key].push(value);
  8923. } else {
  8924. this[MAP][name] = [value];
  8925. }
  8926. }
  8927. /**
  8928. * Check for header name existence
  8929. *
  8930. * @param String name Header name
  8931. * @return Boolean
  8932. */
  8933. has(name) {
  8934. name = `${name}`;
  8935. validateName(name);
  8936. return find(this[MAP], name) !== undefined;
  8937. }
  8938. /**
  8939. * Delete all header values given name
  8940. *
  8941. * @param String name Header name
  8942. * @return Void
  8943. */
  8944. delete(name) {
  8945. name = `${name}`;
  8946. validateName(name);
  8947. const key = find(this[MAP], name);
  8948. if (key !== undefined) {
  8949. delete this[MAP][key];
  8950. }
  8951. }
  8952. /**
  8953. * Return raw headers (non-spec api)
  8954. *
  8955. * @return Object
  8956. */
  8957. raw() {
  8958. return this[MAP];
  8959. }
  8960. /**
  8961. * Get an iterator on keys.
  8962. *
  8963. * @return Iterator
  8964. */
  8965. keys() {
  8966. return createHeadersIterator(this, 'key');
  8967. }
  8968. /**
  8969. * Get an iterator on values.
  8970. *
  8971. * @return Iterator
  8972. */
  8973. values() {
  8974. return createHeadersIterator(this, 'value');
  8975. }
  8976. /**
  8977. * Get an iterator on entries.
  8978. *
  8979. * This is the default iterator of the Headers object.
  8980. *
  8981. * @return Iterator
  8982. */
  8983. [Symbol.iterator]() {
  8984. return createHeadersIterator(this, 'key+value');
  8985. }
  8986. }
  8987. Headers.prototype.entries = Headers.prototype[Symbol.iterator];
  8988. Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
  8989. value: 'Headers',
  8990. writable: false,
  8991. enumerable: false,
  8992. configurable: true
  8993. });
  8994. Object.defineProperties(Headers.prototype, {
  8995. get: { enumerable: true },
  8996. forEach: { enumerable: true },
  8997. set: { enumerable: true },
  8998. append: { enumerable: true },
  8999. has: { enumerable: true },
  9000. delete: { enumerable: true },
  9001. keys: { enumerable: true },
  9002. values: { enumerable: true },
  9003. entries: { enumerable: true }
  9004. });
  9005. function getHeaders(headers) {
  9006. let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
  9007. const keys = Object.keys(headers[MAP]).sort();
  9008. return keys.map(kind === 'key' ? function (k) {
  9009. return k.toLowerCase();
  9010. } : kind === 'value' ? function (k) {
  9011. return headers[MAP][k].join(', ');
  9012. } : function (k) {
  9013. return [k.toLowerCase(), headers[MAP][k].join(', ')];
  9014. });
  9015. }
  9016. const INTERNAL = Symbol('internal');
  9017. function createHeadersIterator(target, kind) {
  9018. const iterator = Object.create(HeadersIteratorPrototype);
  9019. iterator[INTERNAL] = {
  9020. target,
  9021. kind,
  9022. index: 0
  9023. };
  9024. return iterator;
  9025. }
  9026. const HeadersIteratorPrototype = Object.setPrototypeOf({
  9027. next() {
  9028. // istanbul ignore if
  9029. if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
  9030. throw new TypeError('Value of `this` is not a HeadersIterator');
  9031. }
  9032. var _INTERNAL = this[INTERNAL];
  9033. const target = _INTERNAL.target,
  9034. kind = _INTERNAL.kind,
  9035. index = _INTERNAL.index;
  9036. const values = getHeaders(target, kind);
  9037. const len = values.length;
  9038. if (index >= len) {
  9039. return {
  9040. value: undefined,
  9041. done: true
  9042. };
  9043. }
  9044. this[INTERNAL].index = index + 1;
  9045. return {
  9046. value: values[index],
  9047. done: false
  9048. };
  9049. }
  9050. }, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
  9051. Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
  9052. value: 'HeadersIterator',
  9053. writable: false,
  9054. enumerable: false,
  9055. configurable: true
  9056. });
  9057. /**
  9058. * Export the Headers object in a form that Node.js can consume.
  9059. *
  9060. * @param Headers headers
  9061. * @return Object
  9062. */
  9063. function exportNodeCompatibleHeaders(headers) {
  9064. const obj = Object.assign({ __proto__: null }, headers[MAP]);
  9065. // http.request() only supports string as Host header. This hack makes
  9066. // specifying custom Host header possible.
  9067. const hostHeaderKey = find(headers[MAP], 'Host');
  9068. if (hostHeaderKey !== undefined) {
  9069. obj[hostHeaderKey] = obj[hostHeaderKey][0];
  9070. }
  9071. return obj;
  9072. }
  9073. /**
  9074. * Create a Headers object from an object of headers, ignoring those that do
  9075. * not conform to HTTP grammar productions.
  9076. *
  9077. * @param Object obj Object of headers
  9078. * @return Headers
  9079. */
  9080. function createHeadersLenient(obj) {
  9081. const headers = new Headers();
  9082. for (const name of Object.keys(obj)) {
  9083. if (invalidTokenRegex.test(name)) {
  9084. continue;
  9085. }
  9086. if (Array.isArray(obj[name])) {
  9087. for (const val of obj[name]) {
  9088. if (invalidHeaderCharRegex.test(val)) {
  9089. continue;
  9090. }
  9091. if (headers[MAP][name] === undefined) {
  9092. headers[MAP][name] = [val];
  9093. } else {
  9094. headers[MAP][name].push(val);
  9095. }
  9096. }
  9097. } else if (!invalidHeaderCharRegex.test(obj[name])) {
  9098. headers[MAP][name] = [obj[name]];
  9099. }
  9100. }
  9101. return headers;
  9102. }
  9103. const INTERNALS$1 = Symbol('Response internals');
  9104. // fix an issue where "STATUS_CODES" aren't a named export for node <10
  9105. const STATUS_CODES = http.STATUS_CODES;
  9106. /**
  9107. * Response class
  9108. *
  9109. * @param Stream body Readable stream
  9110. * @param Object opts Response options
  9111. * @return Void
  9112. */
  9113. class Response {
  9114. constructor() {
  9115. let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  9116. let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9117. Body.call(this, body, opts);
  9118. const status = opts.status || 200;
  9119. const headers = new Headers(opts.headers);
  9120. if (body != null && !headers.has('Content-Type')) {
  9121. const contentType = extractContentType(body);
  9122. if (contentType) {
  9123. headers.append('Content-Type', contentType);
  9124. }
  9125. }
  9126. this[INTERNALS$1] = {
  9127. url: opts.url,
  9128. status,
  9129. statusText: opts.statusText || STATUS_CODES[status],
  9130. headers,
  9131. counter: opts.counter
  9132. };
  9133. }
  9134. get url() {
  9135. return this[INTERNALS$1].url || '';
  9136. }
  9137. get status() {
  9138. return this[INTERNALS$1].status;
  9139. }
  9140. /**
  9141. * Convenience property representing if the request ended normally
  9142. */
  9143. get ok() {
  9144. return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
  9145. }
  9146. get redirected() {
  9147. return this[INTERNALS$1].counter > 0;
  9148. }
  9149. get statusText() {
  9150. return this[INTERNALS$1].statusText;
  9151. }
  9152. get headers() {
  9153. return this[INTERNALS$1].headers;
  9154. }
  9155. /**
  9156. * Clone this response
  9157. *
  9158. * @return Response
  9159. */
  9160. clone() {
  9161. return new Response(clone(this), {
  9162. url: this.url,
  9163. status: this.status,
  9164. statusText: this.statusText,
  9165. headers: this.headers,
  9166. ok: this.ok,
  9167. redirected: this.redirected
  9168. });
  9169. }
  9170. }
  9171. Body.mixIn(Response.prototype);
  9172. Object.defineProperties(Response.prototype, {
  9173. url: { enumerable: true },
  9174. status: { enumerable: true },
  9175. ok: { enumerable: true },
  9176. redirected: { enumerable: true },
  9177. statusText: { enumerable: true },
  9178. headers: { enumerable: true },
  9179. clone: { enumerable: true }
  9180. });
  9181. Object.defineProperty(Response.prototype, Symbol.toStringTag, {
  9182. value: 'Response',
  9183. writable: false,
  9184. enumerable: false,
  9185. configurable: true
  9186. });
  9187. const INTERNALS$2 = Symbol('Request internals');
  9188. const URL = Url.URL || whatwgUrl.URL;
  9189. // fix an issue where "format", "parse" aren't a named export for node <10
  9190. const parse_url = Url.parse;
  9191. const format_url = Url.format;
  9192. /**
  9193. * Wrapper around `new URL` to handle arbitrary URLs
  9194. *
  9195. * @param {string} urlStr
  9196. * @return {void}
  9197. */
  9198. function parseURL(urlStr) {
  9199. /*
  9200. Check whether the URL is absolute or not
  9201. Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
  9202. Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
  9203. */
  9204. if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
  9205. urlStr = new URL(urlStr).toString();
  9206. }
  9207. // Fallback to old implementation for arbitrary URLs
  9208. return parse_url(urlStr);
  9209. }
  9210. const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
  9211. /**
  9212. * Check if a value is an instance of Request.
  9213. *
  9214. * @param Mixed input
  9215. * @return Boolean
  9216. */
  9217. function isRequest(input) {
  9218. return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
  9219. }
  9220. function isAbortSignal(signal) {
  9221. const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
  9222. return !!(proto && proto.constructor.name === 'AbortSignal');
  9223. }
  9224. /**
  9225. * Request class
  9226. *
  9227. * @param Mixed input Url or Request instance
  9228. * @param Object init Custom options
  9229. * @return Void
  9230. */
  9231. class Request {
  9232. constructor(input) {
  9233. let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9234. let parsedURL;
  9235. // normalize input
  9236. if (!isRequest(input)) {
  9237. if (input && input.href) {
  9238. // in order to support Node.js' Url objects; though WHATWG's URL objects
  9239. // will fall into this branch also (since their `toString()` will return
  9240. // `href` property anyway)
  9241. parsedURL = parseURL(input.href);
  9242. } else {
  9243. // coerce input to a string before attempting to parse
  9244. parsedURL = parseURL(`${input}`);
  9245. }
  9246. input = {};
  9247. } else {
  9248. parsedURL = parseURL(input.url);
  9249. }
  9250. let method = init.method || input.method || 'GET';
  9251. method = method.toUpperCase();
  9252. if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
  9253. throw new TypeError('Request with GET/HEAD method cannot have body');
  9254. }
  9255. let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
  9256. Body.call(this, inputBody, {
  9257. timeout: init.timeout || input.timeout || 0,
  9258. size: init.size || input.size || 0
  9259. });
  9260. const headers = new Headers(init.headers || input.headers || {});
  9261. if (inputBody != null && !headers.has('Content-Type')) {
  9262. const contentType = extractContentType(inputBody);
  9263. if (contentType) {
  9264. headers.append('Content-Type', contentType);
  9265. }
  9266. }
  9267. let signal = isRequest(input) ? input.signal : null;
  9268. if ('signal' in init) signal = init.signal;
  9269. if (signal != null && !isAbortSignal(signal)) {
  9270. throw new TypeError('Expected signal to be an instanceof AbortSignal');
  9271. }
  9272. this[INTERNALS$2] = {
  9273. method,
  9274. redirect: init.redirect || input.redirect || 'follow',
  9275. headers,
  9276. parsedURL,
  9277. signal
  9278. };
  9279. // node-fetch-only options
  9280. this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
  9281. this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
  9282. this.counter = init.counter || input.counter || 0;
  9283. this.agent = init.agent || input.agent;
  9284. }
  9285. get method() {
  9286. return this[INTERNALS$2].method;
  9287. }
  9288. get url() {
  9289. return format_url(this[INTERNALS$2].parsedURL);
  9290. }
  9291. get headers() {
  9292. return this[INTERNALS$2].headers;
  9293. }
  9294. get redirect() {
  9295. return this[INTERNALS$2].redirect;
  9296. }
  9297. get signal() {
  9298. return this[INTERNALS$2].signal;
  9299. }
  9300. /**
  9301. * Clone this request
  9302. *
  9303. * @return Request
  9304. */
  9305. clone() {
  9306. return new Request(this);
  9307. }
  9308. }
  9309. Body.mixIn(Request.prototype);
  9310. Object.defineProperty(Request.prototype, Symbol.toStringTag, {
  9311. value: 'Request',
  9312. writable: false,
  9313. enumerable: false,
  9314. configurable: true
  9315. });
  9316. Object.defineProperties(Request.prototype, {
  9317. method: { enumerable: true },
  9318. url: { enumerable: true },
  9319. headers: { enumerable: true },
  9320. redirect: { enumerable: true },
  9321. clone: { enumerable: true },
  9322. signal: { enumerable: true }
  9323. });
  9324. /**
  9325. * Convert a Request to Node.js http request options.
  9326. *
  9327. * @param Request A Request instance
  9328. * @return Object The options object to be passed to http.request
  9329. */
  9330. function getNodeRequestOptions(request) {
  9331. const parsedURL = request[INTERNALS$2].parsedURL;
  9332. const headers = new Headers(request[INTERNALS$2].headers);
  9333. // fetch step 1.3
  9334. if (!headers.has('Accept')) {
  9335. headers.set('Accept', '*/*');
  9336. }
  9337. // Basic fetch
  9338. if (!parsedURL.protocol || !parsedURL.hostname) {
  9339. throw new TypeError('Only absolute URLs are supported');
  9340. }
  9341. if (!/^https?:$/.test(parsedURL.protocol)) {
  9342. throw new TypeError('Only HTTP(S) protocols are supported');
  9343. }
  9344. if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
  9345. throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
  9346. }
  9347. // HTTP-network-or-cache fetch steps 2.4-2.7
  9348. let contentLengthValue = null;
  9349. if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
  9350. contentLengthValue = '0';
  9351. }
  9352. if (request.body != null) {
  9353. const totalBytes = getTotalBytes(request);
  9354. if (typeof totalBytes === 'number') {
  9355. contentLengthValue = String(totalBytes);
  9356. }
  9357. }
  9358. if (contentLengthValue) {
  9359. headers.set('Content-Length', contentLengthValue);
  9360. }
  9361. // HTTP-network-or-cache fetch step 2.11
  9362. if (!headers.has('User-Agent')) {
  9363. headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
  9364. }
  9365. // HTTP-network-or-cache fetch step 2.15
  9366. if (request.compress && !headers.has('Accept-Encoding')) {
  9367. headers.set('Accept-Encoding', 'gzip,deflate');
  9368. }
  9369. let agent = request.agent;
  9370. if (typeof agent === 'function') {
  9371. agent = agent(parsedURL);
  9372. }
  9373. if (!headers.has('Connection') && !agent) {
  9374. headers.set('Connection', 'close');
  9375. }
  9376. // HTTP-network fetch step 4.2
  9377. // chunked encoding is handled by Node.js
  9378. return Object.assign({}, parsedURL, {
  9379. method: request.method,
  9380. headers: exportNodeCompatibleHeaders(headers),
  9381. agent
  9382. });
  9383. }
  9384. /**
  9385. * abort-error.js
  9386. *
  9387. * AbortError interface for cancelled requests
  9388. */
  9389. /**
  9390. * Create AbortError instance
  9391. *
  9392. * @param String message Error message for human
  9393. * @return AbortError
  9394. */
  9395. function AbortError(message) {
  9396. Error.call(this, message);
  9397. this.type = 'aborted';
  9398. this.message = message;
  9399. // hide custom error implementation details from end-users
  9400. Error.captureStackTrace(this, this.constructor);
  9401. }
  9402. AbortError.prototype = Object.create(Error.prototype);
  9403. AbortError.prototype.constructor = AbortError;
  9404. AbortError.prototype.name = 'AbortError';
  9405. const URL$1 = Url.URL || whatwgUrl.URL;
  9406. // fix an issue where "PassThrough", "resolve" aren't a named export for node <10
  9407. const PassThrough$1 = Stream.PassThrough;
  9408. const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {
  9409. const orig = new URL$1(original).hostname;
  9410. const dest = new URL$1(destination).hostname;
  9411. return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
  9412. };
  9413. /**
  9414. * Fetch function
  9415. *
  9416. * @param Mixed url Absolute url or Request instance
  9417. * @param Object opts Fetch options
  9418. * @return Promise
  9419. */
  9420. function fetch(url, opts) {
  9421. // allow custom promise
  9422. if (!fetch.Promise) {
  9423. throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
  9424. }
  9425. Body.Promise = fetch.Promise;
  9426. // wrap http.request into fetch
  9427. return new fetch.Promise(function (resolve, reject) {
  9428. // build request object
  9429. const request = new Request(url, opts);
  9430. const options = getNodeRequestOptions(request);
  9431. const send = (options.protocol === 'https:' ? https : http).request;
  9432. const signal = request.signal;
  9433. let response = null;
  9434. const abort = function abort() {
  9435. let error = new AbortError('The user aborted a request.');
  9436. reject(error);
  9437. if (request.body && request.body instanceof Stream.Readable) {
  9438. request.body.destroy(error);
  9439. }
  9440. if (!response || !response.body) return;
  9441. response.body.emit('error', error);
  9442. };
  9443. if (signal && signal.aborted) {
  9444. abort();
  9445. return;
  9446. }
  9447. const abortAndFinalize = function abortAndFinalize() {
  9448. abort();
  9449. finalize();
  9450. };
  9451. // send request
  9452. const req = send(options);
  9453. let reqTimeout;
  9454. if (signal) {
  9455. signal.addEventListener('abort', abortAndFinalize);
  9456. }
  9457. function finalize() {
  9458. req.abort();
  9459. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  9460. clearTimeout(reqTimeout);
  9461. }
  9462. if (request.timeout) {
  9463. req.once('socket', function (socket) {
  9464. reqTimeout = setTimeout(function () {
  9465. reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
  9466. finalize();
  9467. }, request.timeout);
  9468. });
  9469. }
  9470. req.on('error', function (err) {
  9471. reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
  9472. finalize();
  9473. });
  9474. req.on('response', function (res) {
  9475. clearTimeout(reqTimeout);
  9476. const headers = createHeadersLenient(res.headers);
  9477. // HTTP fetch step 5
  9478. if (fetch.isRedirect(res.statusCode)) {
  9479. // HTTP fetch step 5.2
  9480. const location = headers.get('Location');
  9481. // HTTP fetch step 5.3
  9482. let locationURL = null;
  9483. try {
  9484. locationURL = location === null ? null : new URL$1(location, request.url).toString();
  9485. } catch (err) {
  9486. // error here can only be invalid URL in Location: header
  9487. // do not throw when options.redirect == manual
  9488. // let the user extract the errorneous redirect URL
  9489. if (request.redirect !== 'manual') {
  9490. reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
  9491. finalize();
  9492. return;
  9493. }
  9494. }
  9495. // HTTP fetch step 5.5
  9496. switch (request.redirect) {
  9497. case 'error':
  9498. reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
  9499. finalize();
  9500. return;
  9501. case 'manual':
  9502. // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
  9503. if (locationURL !== null) {
  9504. // handle corrupted header
  9505. try {
  9506. headers.set('Location', locationURL);
  9507. } catch (err) {
  9508. // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
  9509. reject(err);
  9510. }
  9511. }
  9512. break;
  9513. case 'follow':
  9514. // HTTP-redirect fetch step 2
  9515. if (locationURL === null) {
  9516. break;
  9517. }
  9518. // HTTP-redirect fetch step 5
  9519. if (request.counter >= request.follow) {
  9520. reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
  9521. finalize();
  9522. return;
  9523. }
  9524. // HTTP-redirect fetch step 6 (counter increment)
  9525. // Create a new Request object.
  9526. const requestOpts = {
  9527. headers: new Headers(request.headers),
  9528. follow: request.follow,
  9529. counter: request.counter + 1,
  9530. agent: request.agent,
  9531. compress: request.compress,
  9532. method: request.method,
  9533. body: request.body,
  9534. signal: request.signal,
  9535. timeout: request.timeout,
  9536. size: request.size
  9537. };
  9538. if (!isDomainOrSubdomain(request.url, locationURL)) {
  9539. for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
  9540. requestOpts.headers.delete(name);
  9541. }
  9542. }
  9543. // HTTP-redirect fetch step 9
  9544. if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
  9545. reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
  9546. finalize();
  9547. return;
  9548. }
  9549. // HTTP-redirect fetch step 11
  9550. if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
  9551. requestOpts.method = 'GET';
  9552. requestOpts.body = undefined;
  9553. requestOpts.headers.delete('content-length');
  9554. }
  9555. // HTTP-redirect fetch step 15
  9556. resolve(fetch(new Request(locationURL, requestOpts)));
  9557. finalize();
  9558. return;
  9559. }
  9560. }
  9561. // prepare response
  9562. res.once('end', function () {
  9563. if (signal) signal.removeEventListener('abort', abortAndFinalize);
  9564. });
  9565. let body = res.pipe(new PassThrough$1());
  9566. const response_options = {
  9567. url: request.url,
  9568. status: res.statusCode,
  9569. statusText: res.statusMessage,
  9570. headers: headers,
  9571. size: request.size,
  9572. timeout: request.timeout,
  9573. counter: request.counter
  9574. };
  9575. // HTTP-network fetch step 12.1.1.3
  9576. const codings = headers.get('Content-Encoding');
  9577. // HTTP-network fetch step 12.1.1.4: handle content codings
  9578. // in following scenarios we ignore compression support
  9579. // 1. compression support is disabled
  9580. // 2. HEAD request
  9581. // 3. no Content-Encoding header
  9582. // 4. no content response (204)
  9583. // 5. content not modified response (304)
  9584. if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
  9585. response = new Response(body, response_options);
  9586. resolve(response);
  9587. return;
  9588. }
  9589. // For Node v6+
  9590. // Be less strict when decoding compressed responses, since sometimes
  9591. // servers send slightly invalid responses that are still accepted
  9592. // by common browsers.
  9593. // Always using Z_SYNC_FLUSH is what cURL does.
  9594. const zlibOptions = {
  9595. flush: zlib.Z_SYNC_FLUSH,
  9596. finishFlush: zlib.Z_SYNC_FLUSH
  9597. };
  9598. // for gzip
  9599. if (codings == 'gzip' || codings == 'x-gzip') {
  9600. body = body.pipe(zlib.createGunzip(zlibOptions));
  9601. response = new Response(body, response_options);
  9602. resolve(response);
  9603. return;
  9604. }
  9605. // for deflate
  9606. if (codings == 'deflate' || codings == 'x-deflate') {
  9607. // handle the infamous raw deflate response from old servers
  9608. // a hack for old IIS and Apache servers
  9609. const raw = res.pipe(new PassThrough$1());
  9610. raw.once('data', function (chunk) {
  9611. // see http://stackoverflow.com/questions/37519828
  9612. if ((chunk[0] & 0x0F) === 0x08) {
  9613. body = body.pipe(zlib.createInflate());
  9614. } else {
  9615. body = body.pipe(zlib.createInflateRaw());
  9616. }
  9617. response = new Response(body, response_options);
  9618. resolve(response);
  9619. });
  9620. return;
  9621. }
  9622. // for br
  9623. if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
  9624. body = body.pipe(zlib.createBrotliDecompress());
  9625. response = new Response(body, response_options);
  9626. resolve(response);
  9627. return;
  9628. }
  9629. // otherwise, use response as-is
  9630. response = new Response(body, response_options);
  9631. resolve(response);
  9632. });
  9633. writeToStream(req, request);
  9634. });
  9635. }
  9636. /**
  9637. * Redirect code matching
  9638. *
  9639. * @param Number code Status code
  9640. * @return Boolean
  9641. */
  9642. fetch.isRedirect = function (code) {
  9643. return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
  9644. };
  9645. // expose Promise
  9646. fetch.Promise = global.Promise;
  9647. module.exports = exports = fetch;
  9648. Object.defineProperty(exports, "__esModule", { value: true });
  9649. exports.default = exports;
  9650. exports.Headers = Headers;
  9651. exports.Request = Request;
  9652. exports.Response = Response;
  9653. exports.FetchError = FetchError;
  9654. /***/ }),
  9655. /***/ 462:
  9656. /***/ (function(module) {
  9657. "use strict";
  9658. // See http://www.robvanderwoude.com/escapechars.php
  9659. const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
  9660. function escapeCommand(arg) {
  9661. // Escape meta chars
  9662. arg = arg.replace(metaCharsRegExp, '^$1');
  9663. return arg;
  9664. }
  9665. function escapeArgument(arg, doubleEscapeMetaChars) {
  9666. // Convert to string
  9667. arg = `${arg}`;
  9668. // Algorithm below is based on https://qntm.org/cmd
  9669. // Sequence of backslashes followed by a double quote:
  9670. // double up all the backslashes and escape the double quote
  9671. arg = arg.replace(/(\\*)"/g, '$1$1\\"');
  9672. // Sequence of backslashes followed by the end of the string
  9673. // (which will become a double quote later):
  9674. // double up all the backslashes
  9675. arg = arg.replace(/(\\*)$/, '$1$1');
  9676. // All other backslashes occur literally
  9677. // Quote the whole thing:
  9678. arg = `"${arg}"`;
  9679. // Escape meta chars
  9680. arg = arg.replace(metaCharsRegExp, '^$1');
  9681. // Double escape meta chars if necessary
  9682. if (doubleEscapeMetaChars) {
  9683. arg = arg.replace(metaCharsRegExp, '^$1');
  9684. }
  9685. return arg;
  9686. }
  9687. module.exports.command = escapeCommand;
  9688. module.exports.argument = escapeArgument;
  9689. /***/ }),
  9690. /***/ 463:
  9691. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9692. "use strict";
  9693. Object.defineProperty(exports, '__esModule', { value: true });
  9694. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  9695. var deprecation = __webpack_require__(692);
  9696. var once = _interopDefault(__webpack_require__(969));
  9697. const logOnce = once(deprecation => console.warn(deprecation));
  9698. /**
  9699. * Error with extra properties to help with debugging
  9700. */
  9701. class RequestError extends Error {
  9702. constructor(message, statusCode, options) {
  9703. super(message); // Maintains proper stack trace (only available on V8)
  9704. /* istanbul ignore next */
  9705. if (Error.captureStackTrace) {
  9706. Error.captureStackTrace(this, this.constructor);
  9707. }
  9708. this.name = "HttpError";
  9709. this.status = statusCode;
  9710. Object.defineProperty(this, "code", {
  9711. get() {
  9712. logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  9713. return statusCode;
  9714. }
  9715. });
  9716. this.headers = options.headers || {}; // redact request credentials without mutating original request options
  9717. const requestCopy = Object.assign({}, options.request);
  9718. if (options.request.headers.authorization) {
  9719. requestCopy.headers = Object.assign({}, options.request.headers, {
  9720. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  9721. });
  9722. }
  9723. requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
  9724. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  9725. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
  9726. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  9727. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  9728. this.request = requestCopy;
  9729. }
  9730. }
  9731. exports.RequestError = RequestError;
  9732. //# sourceMappingURL=index.js.map
  9733. /***/ }),
  9734. /***/ 464:
  9735. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9736. "use strict";
  9737. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  9738. if (k2 === undefined) k2 = k;
  9739. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  9740. }) : (function(o, m, k, k2) {
  9741. if (k2 === undefined) k2 = k;
  9742. o[k2] = m[k];
  9743. }));
  9744. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  9745. Object.defineProperty(o, "default", { enumerable: true, value: v });
  9746. }) : function(o, v) {
  9747. o["default"] = v;
  9748. });
  9749. var __importStar = (this && this.__importStar) || function (mod) {
  9750. if (mod && mod.__esModule) return mod;
  9751. var result = {};
  9752. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  9753. __setModuleDefault(result, mod);
  9754. return result;
  9755. };
  9756. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  9757. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  9758. return new (P || (P = Promise))(function (resolve, reject) {
  9759. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  9760. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  9761. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  9762. step((generator = generator.apply(thisArg, _arguments || [])).next());
  9763. });
  9764. };
  9765. var __importDefault = (this && this.__importDefault) || function (mod) {
  9766. return (mod && mod.__esModule) ? mod : { "default": mod };
  9767. };
  9768. Object.defineProperty(exports, "__esModule", { value: true });
  9769. exports.getDefaultBranch = exports.downloadRepository = void 0;
  9770. const assert = __importStar(__webpack_require__(357));
  9771. const core = __importStar(__webpack_require__(470));
  9772. const fs = __importStar(__webpack_require__(747));
  9773. const github = __importStar(__webpack_require__(469));
  9774. const io = __importStar(__webpack_require__(1));
  9775. const path = __importStar(__webpack_require__(622));
  9776. const retryHelper = __importStar(__webpack_require__(587));
  9777. const toolCache = __importStar(__webpack_require__(533));
  9778. const v4_1 = __importDefault(__webpack_require__(826));
  9779. const IS_WINDOWS = process.platform === 'win32';
  9780. function downloadRepository(authToken, owner, repo, ref, commit, repositoryPath) {
  9781. return __awaiter(this, void 0, void 0, function* () {
  9782. // Determine the default branch
  9783. if (!ref && !commit) {
  9784. core.info('Determining the default branch');
  9785. ref = yield getDefaultBranch(authToken, owner, repo);
  9786. }
  9787. // Download the archive
  9788. let archiveData = yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  9789. core.info('Downloading the archive');
  9790. return yield downloadArchive(authToken, owner, repo, ref, commit);
  9791. }));
  9792. // Write archive to disk
  9793. core.info('Writing archive to disk');
  9794. const uniqueId = (0, v4_1.default)();
  9795. const archivePath = path.join(repositoryPath, `${uniqueId}.tar.gz`);
  9796. yield fs.promises.writeFile(archivePath, archiveData);
  9797. archiveData = Buffer.from(''); // Free memory
  9798. // Extract archive
  9799. core.info('Extracting the archive');
  9800. const extractPath = path.join(repositoryPath, uniqueId);
  9801. yield io.mkdirP(extractPath);
  9802. if (IS_WINDOWS) {
  9803. yield toolCache.extractZip(archivePath, extractPath);
  9804. }
  9805. else {
  9806. yield toolCache.extractTar(archivePath, extractPath);
  9807. }
  9808. yield io.rmRF(archivePath);
  9809. // Determine the path of the repository content. The archive contains
  9810. // a top-level folder and the repository content is inside.
  9811. const archiveFileNames = yield fs.promises.readdir(extractPath);
  9812. assert.ok(archiveFileNames.length == 1, 'Expected exactly one directory inside archive');
  9813. const archiveVersion = archiveFileNames[0]; // The top-level folder name includes the short SHA
  9814. core.info(`Resolved version ${archiveVersion}`);
  9815. const tempRepositoryPath = path.join(extractPath, archiveVersion);
  9816. // Move the files
  9817. for (const fileName of yield fs.promises.readdir(tempRepositoryPath)) {
  9818. const sourcePath = path.join(tempRepositoryPath, fileName);
  9819. const targetPath = path.join(repositoryPath, fileName);
  9820. if (IS_WINDOWS) {
  9821. yield io.cp(sourcePath, targetPath, { recursive: true }); // Copy on Windows (Windows Defender may have a lock)
  9822. }
  9823. else {
  9824. yield io.mv(sourcePath, targetPath);
  9825. }
  9826. }
  9827. yield io.rmRF(extractPath);
  9828. });
  9829. }
  9830. exports.downloadRepository = downloadRepository;
  9831. /**
  9832. * Looks up the default branch name
  9833. */
  9834. function getDefaultBranch(authToken, owner, repo) {
  9835. return __awaiter(this, void 0, void 0, function* () {
  9836. return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
  9837. var _a;
  9838. core.info('Retrieving the default branch name');
  9839. const octokit = new github.GitHub(authToken);
  9840. let result;
  9841. try {
  9842. // Get the default branch from the repo info
  9843. const response = yield octokit.repos.get({ owner, repo });
  9844. result = response.data.default_branch;
  9845. assert.ok(result, 'default_branch cannot be empty');
  9846. }
  9847. catch (err) {
  9848. // Handle .wiki repo
  9849. if (((_a = err) === null || _a === void 0 ? void 0 : _a.status) === 404 &&
  9850. repo.toUpperCase().endsWith('.WIKI')) {
  9851. result = 'master';
  9852. }
  9853. // Otherwise error
  9854. else {
  9855. throw err;
  9856. }
  9857. }
  9858. // Print the default branch
  9859. core.info(`Default branch '${result}'`);
  9860. // Prefix with 'refs/heads'
  9861. if (!result.startsWith('refs/')) {
  9862. result = `refs/heads/${result}`;
  9863. }
  9864. return result;
  9865. }));
  9866. });
  9867. }
  9868. exports.getDefaultBranch = getDefaultBranch;
  9869. function downloadArchive(authToken, owner, repo, ref, commit) {
  9870. return __awaiter(this, void 0, void 0, function* () {
  9871. const octokit = new github.GitHub(authToken);
  9872. const params = {
  9873. owner: owner,
  9874. repo: repo,
  9875. archive_format: IS_WINDOWS ? 'zipball' : 'tarball',
  9876. ref: commit || ref
  9877. };
  9878. const response = yield octokit.repos.getArchiveLink(params);
  9879. if (response.status != 200) {
  9880. throw new Error(`Unexpected response from GitHub API. Status: ${response.status}, Data: ${response.data}`);
  9881. }
  9882. return Buffer.from(response.data); // response.data is ArrayBuffer
  9883. });
  9884. }
  9885. /***/ }),
  9886. /***/ 469:
  9887. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9888. "use strict";
  9889. var __importStar = (this && this.__importStar) || function (mod) {
  9890. if (mod && mod.__esModule) return mod;
  9891. var result = {};
  9892. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  9893. result["default"] = mod;
  9894. return result;
  9895. };
  9896. Object.defineProperty(exports, "__esModule", { value: true });
  9897. // Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
  9898. const graphql_1 = __webpack_require__(898);
  9899. const rest_1 = __webpack_require__(0);
  9900. const Context = __importStar(__webpack_require__(262));
  9901. const httpClient = __importStar(__webpack_require__(539));
  9902. // We need this in order to extend Octokit
  9903. rest_1.Octokit.prototype = new rest_1.Octokit();
  9904. exports.context = new Context.Context();
  9905. class GitHub extends rest_1.Octokit {
  9906. constructor(token, opts) {
  9907. super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts)));
  9908. this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts));
  9909. }
  9910. /**
  9911. * Disambiguates the constructor overload parameters
  9912. */
  9913. static disambiguate(token, opts) {
  9914. return [
  9915. typeof token === 'string' ? token : '',
  9916. typeof token === 'object' ? token : opts || {}
  9917. ];
  9918. }
  9919. static getOctokitOptions(args) {
  9920. const token = args[0];
  9921. const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller
  9922. // Base URL - GHES or Dotcom
  9923. options.baseUrl = options.baseUrl || this.getApiBaseUrl();
  9924. // Auth
  9925. const auth = GitHub.getAuthString(token, options);
  9926. if (auth) {
  9927. options.auth = auth;
  9928. }
  9929. // Proxy
  9930. const agent = GitHub.getProxyAgent(options.baseUrl, options);
  9931. if (agent) {
  9932. // Shallow clone - don't mutate the object provided by the caller
  9933. options.request = options.request ? Object.assign({}, options.request) : {};
  9934. // Set the agent
  9935. options.request.agent = agent;
  9936. }
  9937. return options;
  9938. }
  9939. static getGraphQL(args) {
  9940. const defaults = {};
  9941. defaults.baseUrl = this.getGraphQLBaseUrl();
  9942. const token = args[0];
  9943. const options = args[1];
  9944. // Authorization
  9945. const auth = this.getAuthString(token, options);
  9946. if (auth) {
  9947. defaults.headers = {
  9948. authorization: auth
  9949. };
  9950. }
  9951. // Proxy
  9952. const agent = GitHub.getProxyAgent(defaults.baseUrl, options);
  9953. if (agent) {
  9954. defaults.request = { agent };
  9955. }
  9956. return graphql_1.graphql.defaults(defaults);
  9957. }
  9958. static getAuthString(token, options) {
  9959. // Validate args
  9960. if (!token && !options.auth) {
  9961. throw new Error('Parameter token or opts.auth is required');
  9962. }
  9963. else if (token && options.auth) {
  9964. throw new Error('Parameters token and opts.auth may not both be specified');
  9965. }
  9966. return typeof options.auth === 'string' ? options.auth : `token ${token}`;
  9967. }
  9968. static getProxyAgent(destinationUrl, options) {
  9969. var _a;
  9970. if (!((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent)) {
  9971. if (httpClient.getProxyUrl(destinationUrl)) {
  9972. const hc = new httpClient.HttpClient();
  9973. return hc.getAgent(destinationUrl);
  9974. }
  9975. }
  9976. return undefined;
  9977. }
  9978. static getApiBaseUrl() {
  9979. return process.env['GITHUB_API_URL'] || 'https://api.github.com';
  9980. }
  9981. static getGraphQLBaseUrl() {
  9982. let url = process.env['GITHUB_GRAPHQL_URL'] || 'https://api.github.com/graphql';
  9983. // Shouldn't be a trailing slash, but remove if so
  9984. if (url.endsWith('/')) {
  9985. url = url.substr(0, url.length - 1);
  9986. }
  9987. // Remove trailing "/graphql"
  9988. if (url.toUpperCase().endsWith('/GRAPHQL')) {
  9989. url = url.substr(0, url.length - '/graphql'.length);
  9990. }
  9991. return url;
  9992. }
  9993. }
  9994. exports.GitHub = GitHub;
  9995. //# sourceMappingURL=github.js.map
  9996. /***/ }),
  9997. /***/ 470:
  9998. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  9999. "use strict";
  10000. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  10001. if (k2 === undefined) k2 = k;
  10002. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  10003. }) : (function(o, m, k, k2) {
  10004. if (k2 === undefined) k2 = k;
  10005. o[k2] = m[k];
  10006. }));
  10007. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  10008. Object.defineProperty(o, "default", { enumerable: true, value: v });
  10009. }) : function(o, v) {
  10010. o["default"] = v;
  10011. });
  10012. var __importStar = (this && this.__importStar) || function (mod) {
  10013. if (mod && mod.__esModule) return mod;
  10014. var result = {};
  10015. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  10016. __setModuleDefault(result, mod);
  10017. return result;
  10018. };
  10019. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  10020. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  10021. return new (P || (P = Promise))(function (resolve, reject) {
  10022. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  10023. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  10024. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  10025. step((generator = generator.apply(thisArg, _arguments || [])).next());
  10026. });
  10027. };
  10028. Object.defineProperty(exports, "__esModule", { value: true });
  10029. exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
  10030. const command_1 = __webpack_require__(431);
  10031. const file_command_1 = __webpack_require__(102);
  10032. const utils_1 = __webpack_require__(82);
  10033. const os = __importStar(__webpack_require__(87));
  10034. const path = __importStar(__webpack_require__(622));
  10035. const oidc_utils_1 = __webpack_require__(742);
  10036. /**
  10037. * The code to exit an action
  10038. */
  10039. var ExitCode;
  10040. (function (ExitCode) {
  10041. /**
  10042. * A code indicating that the action was successful
  10043. */
  10044. ExitCode[ExitCode["Success"] = 0] = "Success";
  10045. /**
  10046. * A code indicating that the action was a failure
  10047. */
  10048. ExitCode[ExitCode["Failure"] = 1] = "Failure";
  10049. })(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
  10050. //-----------------------------------------------------------------------
  10051. // Variables
  10052. //-----------------------------------------------------------------------
  10053. /**
  10054. * Sets env variable for this action and future actions in the job
  10055. * @param name the name of the variable to set
  10056. * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
  10057. */
  10058. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  10059. function exportVariable(name, val) {
  10060. const convertedVal = utils_1.toCommandValue(val);
  10061. process.env[name] = convertedVal;
  10062. const filePath = process.env['GITHUB_ENV'] || '';
  10063. if (filePath) {
  10064. return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
  10065. }
  10066. command_1.issueCommand('set-env', { name }, convertedVal);
  10067. }
  10068. exports.exportVariable = exportVariable;
  10069. /**
  10070. * Registers a secret which will get masked from logs
  10071. * @param secret value of the secret
  10072. */
  10073. function setSecret(secret) {
  10074. command_1.issueCommand('add-mask', {}, secret);
  10075. }
  10076. exports.setSecret = setSecret;
  10077. /**
  10078. * Prepends inputPath to the PATH (for this action and future actions)
  10079. * @param inputPath
  10080. */
  10081. function addPath(inputPath) {
  10082. const filePath = process.env['GITHUB_PATH'] || '';
  10083. if (filePath) {
  10084. file_command_1.issueFileCommand('PATH', inputPath);
  10085. }
  10086. else {
  10087. command_1.issueCommand('add-path', {}, inputPath);
  10088. }
  10089. process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
  10090. }
  10091. exports.addPath = addPath;
  10092. /**
  10093. * Gets the value of an input.
  10094. * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
  10095. * Returns an empty string if the value is not defined.
  10096. *
  10097. * @param name name of the input to get
  10098. * @param options optional. See InputOptions.
  10099. * @returns string
  10100. */
  10101. function getInput(name, options) {
  10102. const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
  10103. if (options && options.required && !val) {
  10104. throw new Error(`Input required and not supplied: ${name}`);
  10105. }
  10106. if (options && options.trimWhitespace === false) {
  10107. return val;
  10108. }
  10109. return val.trim();
  10110. }
  10111. exports.getInput = getInput;
  10112. /**
  10113. * Gets the values of an multiline input. Each value is also trimmed.
  10114. *
  10115. * @param name name of the input to get
  10116. * @param options optional. See InputOptions.
  10117. * @returns string[]
  10118. *
  10119. */
  10120. function getMultilineInput(name, options) {
  10121. const inputs = getInput(name, options)
  10122. .split('\n')
  10123. .filter(x => x !== '');
  10124. if (options && options.trimWhitespace === false) {
  10125. return inputs;
  10126. }
  10127. return inputs.map(input => input.trim());
  10128. }
  10129. exports.getMultilineInput = getMultilineInput;
  10130. /**
  10131. * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
  10132. * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
  10133. * The return value is also in boolean type.
  10134. * ref: https://yaml.org/spec/1.2/spec.html#id2804923
  10135. *
  10136. * @param name name of the input to get
  10137. * @param options optional. See InputOptions.
  10138. * @returns boolean
  10139. */
  10140. function getBooleanInput(name, options) {
  10141. const trueValue = ['true', 'True', 'TRUE'];
  10142. const falseValue = ['false', 'False', 'FALSE'];
  10143. const val = getInput(name, options);
  10144. if (trueValue.includes(val))
  10145. return true;
  10146. if (falseValue.includes(val))
  10147. return false;
  10148. throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
  10149. `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
  10150. }
  10151. exports.getBooleanInput = getBooleanInput;
  10152. /**
  10153. * Sets the value of an output.
  10154. *
  10155. * @param name name of the output to set
  10156. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  10157. */
  10158. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  10159. function setOutput(name, value) {
  10160. const filePath = process.env['GITHUB_OUTPUT'] || '';
  10161. if (filePath) {
  10162. return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
  10163. }
  10164. process.stdout.write(os.EOL);
  10165. command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
  10166. }
  10167. exports.setOutput = setOutput;
  10168. /**
  10169. * Enables or disables the echoing of commands into stdout for the rest of the step.
  10170. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
  10171. *
  10172. */
  10173. function setCommandEcho(enabled) {
  10174. command_1.issue('echo', enabled ? 'on' : 'off');
  10175. }
  10176. exports.setCommandEcho = setCommandEcho;
  10177. //-----------------------------------------------------------------------
  10178. // Results
  10179. //-----------------------------------------------------------------------
  10180. /**
  10181. * Sets the action status to failed.
  10182. * When the action exits it will be with an exit code of 1
  10183. * @param message add error issue message
  10184. */
  10185. function setFailed(message) {
  10186. process.exitCode = ExitCode.Failure;
  10187. error(message);
  10188. }
  10189. exports.setFailed = setFailed;
  10190. //-----------------------------------------------------------------------
  10191. // Logging Commands
  10192. //-----------------------------------------------------------------------
  10193. /**
  10194. * Gets whether Actions Step Debug is on or not
  10195. */
  10196. function isDebug() {
  10197. return process.env['RUNNER_DEBUG'] === '1';
  10198. }
  10199. exports.isDebug = isDebug;
  10200. /**
  10201. * Writes debug message to user log
  10202. * @param message debug message
  10203. */
  10204. function debug(message) {
  10205. command_1.issueCommand('debug', {}, message);
  10206. }
  10207. exports.debug = debug;
  10208. /**
  10209. * Adds an error issue
  10210. * @param message error issue message. Errors will be converted to string via toString()
  10211. * @param properties optional properties to add to the annotation.
  10212. */
  10213. function error(message, properties = {}) {
  10214. command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  10215. }
  10216. exports.error = error;
  10217. /**
  10218. * Adds a warning issue
  10219. * @param message warning issue message. Errors will be converted to string via toString()
  10220. * @param properties optional properties to add to the annotation.
  10221. */
  10222. function warning(message, properties = {}) {
  10223. command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  10224. }
  10225. exports.warning = warning;
  10226. /**
  10227. * Adds a notice issue
  10228. * @param message notice issue message. Errors will be converted to string via toString()
  10229. * @param properties optional properties to add to the annotation.
  10230. */
  10231. function notice(message, properties = {}) {
  10232. command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
  10233. }
  10234. exports.notice = notice;
  10235. /**
  10236. * Writes info to log with console.log.
  10237. * @param message info message
  10238. */
  10239. function info(message) {
  10240. process.stdout.write(message + os.EOL);
  10241. }
  10242. exports.info = info;
  10243. /**
  10244. * Begin an output group.
  10245. *
  10246. * Output until the next `groupEnd` will be foldable in this group
  10247. *
  10248. * @param name The name of the output group
  10249. */
  10250. function startGroup(name) {
  10251. command_1.issue('group', name);
  10252. }
  10253. exports.startGroup = startGroup;
  10254. /**
  10255. * End an output group.
  10256. */
  10257. function endGroup() {
  10258. command_1.issue('endgroup');
  10259. }
  10260. exports.endGroup = endGroup;
  10261. /**
  10262. * Wrap an asynchronous function call in a group.
  10263. *
  10264. * Returns the same type as the function itself.
  10265. *
  10266. * @param name The name of the group
  10267. * @param fn The function to wrap in the group
  10268. */
  10269. function group(name, fn) {
  10270. return __awaiter(this, void 0, void 0, function* () {
  10271. startGroup(name);
  10272. let result;
  10273. try {
  10274. result = yield fn();
  10275. }
  10276. finally {
  10277. endGroup();
  10278. }
  10279. return result;
  10280. });
  10281. }
  10282. exports.group = group;
  10283. //-----------------------------------------------------------------------
  10284. // Wrapper action state
  10285. //-----------------------------------------------------------------------
  10286. /**
  10287. * Saves state for current action, the state can only be retrieved by this action's post job execution.
  10288. *
  10289. * @param name name of the state to store
  10290. * @param value value to store. Non-string values will be converted to a string via JSON.stringify
  10291. */
  10292. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  10293. function saveState(name, value) {
  10294. const filePath = process.env['GITHUB_STATE'] || '';
  10295. if (filePath) {
  10296. return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
  10297. }
  10298. command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
  10299. }
  10300. exports.saveState = saveState;
  10301. /**
  10302. * Gets the value of an state set by this action's main execution.
  10303. *
  10304. * @param name name of the state to get
  10305. * @returns string
  10306. */
  10307. function getState(name) {
  10308. return process.env[`STATE_${name}`] || '';
  10309. }
  10310. exports.getState = getState;
  10311. function getIDToken(aud) {
  10312. return __awaiter(this, void 0, void 0, function* () {
  10313. return yield oidc_utils_1.OidcClient.getIDToken(aud);
  10314. });
  10315. }
  10316. exports.getIDToken = getIDToken;
  10317. /**
  10318. * Summary exports
  10319. */
  10320. var summary_1 = __webpack_require__(665);
  10321. Object.defineProperty(exports, "summary", { enumerable: true, get: function () { return summary_1.summary; } });
  10322. /**
  10323. * @deprecated use core.summary
  10324. */
  10325. var summary_2 = __webpack_require__(665);
  10326. Object.defineProperty(exports, "markdownSummary", { enumerable: true, get: function () { return summary_2.markdownSummary; } });
  10327. /**
  10328. * Path exports
  10329. */
  10330. var path_utils_1 = __webpack_require__(573);
  10331. Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } });
  10332. Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } });
  10333. Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } });
  10334. //# sourceMappingURL=core.js.map
  10335. /***/ }),
  10336. /***/ 471:
  10337. /***/ (function(module, __unusedexports, __webpack_require__) {
  10338. module.exports = authenticationBeforeRequest;
  10339. const btoa = __webpack_require__(675);
  10340. const uniq = __webpack_require__(126);
  10341. function authenticationBeforeRequest(state, options) {
  10342. if (!state.auth.type) {
  10343. return;
  10344. }
  10345. if (state.auth.type === "basic") {
  10346. const hash = btoa(`${state.auth.username}:${state.auth.password}`);
  10347. options.headers.authorization = `Basic ${hash}`;
  10348. return;
  10349. }
  10350. if (state.auth.type === "token") {
  10351. options.headers.authorization = `token ${state.auth.token}`;
  10352. return;
  10353. }
  10354. if (state.auth.type === "app") {
  10355. options.headers.authorization = `Bearer ${state.auth.token}`;
  10356. const acceptHeaders = options.headers.accept
  10357. .split(",")
  10358. .concat("application/vnd.github.machine-man-preview+json");
  10359. options.headers.accept = uniq(acceptHeaders)
  10360. .filter(Boolean)
  10361. .join(",");
  10362. return;
  10363. }
  10364. options.url += options.url.indexOf("?") === -1 ? "?" : "&";
  10365. if (state.auth.token) {
  10366. options.url += `access_token=${encodeURIComponent(state.auth.token)}`;
  10367. return;
  10368. }
  10369. const key = encodeURIComponent(state.auth.key);
  10370. const secret = encodeURIComponent(state.auth.secret);
  10371. options.url += `client_id=${key}&client_secret=${secret}`;
  10372. }
  10373. /***/ }),
  10374. /***/ 482:
  10375. /***/ (function(module) {
  10376. module.exports = [[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]];
  10377. /***/ }),
  10378. /***/ 489:
  10379. /***/ (function(module, __unusedexports, __webpack_require__) {
  10380. "use strict";
  10381. const path = __webpack_require__(622);
  10382. const which = __webpack_require__(814);
  10383. const pathKey = __webpack_require__(39)();
  10384. function resolveCommandAttempt(parsed, withoutPathExt) {
  10385. const cwd = process.cwd();
  10386. const hasCustomCwd = parsed.options.cwd != null;
  10387. // If a custom `cwd` was specified, we need to change the process cwd
  10388. // because `which` will do stat calls but does not support a custom cwd
  10389. if (hasCustomCwd) {
  10390. try {
  10391. process.chdir(parsed.options.cwd);
  10392. } catch (err) {
  10393. /* Empty */
  10394. }
  10395. }
  10396. let resolved;
  10397. try {
  10398. resolved = which.sync(parsed.command, {
  10399. path: (parsed.options.env || process.env)[pathKey],
  10400. pathExt: withoutPathExt ? path.delimiter : undefined,
  10401. });
  10402. } catch (e) {
  10403. /* Empty */
  10404. } finally {
  10405. process.chdir(cwd);
  10406. }
  10407. // If we successfully resolved, ensure that an absolute path is returned
  10408. // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
  10409. if (resolved) {
  10410. resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
  10411. }
  10412. return resolved;
  10413. }
  10414. function resolveCommand(parsed) {
  10415. return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
  10416. }
  10417. module.exports = resolveCommand;
  10418. /***/ }),
  10419. /***/ 497:
  10420. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10421. "use strict";
  10422. Object.defineProperty(exports, '__esModule', { value: true });
  10423. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  10424. var deprecation = __webpack_require__(692);
  10425. var once = _interopDefault(__webpack_require__(969));
  10426. const logOnce = once(deprecation => console.warn(deprecation));
  10427. /**
  10428. * Error with extra properties to help with debugging
  10429. */
  10430. class RequestError extends Error {
  10431. constructor(message, statusCode, options) {
  10432. super(message); // Maintains proper stack trace (only available on V8)
  10433. /* istanbul ignore next */
  10434. if (Error.captureStackTrace) {
  10435. Error.captureStackTrace(this, this.constructor);
  10436. }
  10437. this.name = "HttpError";
  10438. this.status = statusCode;
  10439. Object.defineProperty(this, "code", {
  10440. get() {
  10441. logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
  10442. return statusCode;
  10443. }
  10444. });
  10445. this.headers = options.headers || {}; // redact request credentials without mutating original request options
  10446. const requestCopy = Object.assign({}, options.request);
  10447. if (options.request.headers.authorization) {
  10448. requestCopy.headers = Object.assign({}, options.request.headers, {
  10449. authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
  10450. });
  10451. }
  10452. requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
  10453. // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
  10454. .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
  10455. // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
  10456. .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
  10457. this.request = requestCopy;
  10458. }
  10459. }
  10460. exports.RequestError = RequestError;
  10461. //# sourceMappingURL=index.js.map
  10462. /***/ }),
  10463. /***/ 501:
  10464. /***/ (function(module) {
  10465. module.exports = register
  10466. function register (state, name, method, options) {
  10467. if (typeof method !== 'function') {
  10468. throw new Error('method for before hook must be a function')
  10469. }
  10470. if (!options) {
  10471. options = {}
  10472. }
  10473. if (Array.isArray(name)) {
  10474. return name.reverse().reduce(function (callback, name) {
  10475. return register.bind(null, state, name, callback, options)
  10476. }, method)()
  10477. }
  10478. return Promise.resolve()
  10479. .then(function () {
  10480. if (!state.registry[name]) {
  10481. return method(options)
  10482. }
  10483. return (state.registry[name]).reduce(function (method, registered) {
  10484. return registered.hook.bind(null, method, options)
  10485. }, method)()
  10486. })
  10487. }
  10488. /***/ }),
  10489. /***/ 506:
  10490. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10491. "use strict";
  10492. Object.defineProperty(exports, "__esModule", {
  10493. value: true
  10494. });
  10495. exports.default = rng;
  10496. var _crypto = _interopRequireDefault(__webpack_require__(417));
  10497. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10498. const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate
  10499. let poolPtr = rnds8Pool.length;
  10500. function rng() {
  10501. if (poolPtr > rnds8Pool.length - 16) {
  10502. _crypto.default.randomFillSync(rnds8Pool);
  10503. poolPtr = 0;
  10504. }
  10505. return rnds8Pool.slice(poolPtr, poolPtr += 16);
  10506. }
  10507. /***/ }),
  10508. /***/ 510:
  10509. /***/ (function(module) {
  10510. module.exports = addHook
  10511. function addHook (state, kind, name, hook) {
  10512. var orig = hook
  10513. if (!state.registry[name]) {
  10514. state.registry[name] = []
  10515. }
  10516. if (kind === 'before') {
  10517. hook = function (method, options) {
  10518. return Promise.resolve()
  10519. .then(orig.bind(null, options))
  10520. .then(method.bind(null, options))
  10521. }
  10522. }
  10523. if (kind === 'after') {
  10524. hook = function (method, options) {
  10525. var result
  10526. return Promise.resolve()
  10527. .then(method.bind(null, options))
  10528. .then(function (result_) {
  10529. result = result_
  10530. return orig(result, options)
  10531. })
  10532. .then(function () {
  10533. return result
  10534. })
  10535. }
  10536. }
  10537. if (kind === 'error') {
  10538. hook = function (method, options) {
  10539. return Promise.resolve()
  10540. .then(method.bind(null, options))
  10541. .catch(function (error) {
  10542. return orig(error, options)
  10543. })
  10544. }
  10545. }
  10546. state.registry[name].push({
  10547. hook: hook,
  10548. orig: orig
  10549. })
  10550. }
  10551. /***/ }),
  10552. /***/ 523:
  10553. /***/ (function(module, __unusedexports, __webpack_require__) {
  10554. var register = __webpack_require__(501)
  10555. var addHook = __webpack_require__(510)
  10556. var removeHook = __webpack_require__(763)
  10557. // bind with array of arguments: https://stackoverflow.com/a/21792913
  10558. var bind = Function.bind
  10559. var bindable = bind.bind(bind)
  10560. function bindApi (hook, state, name) {
  10561. var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state])
  10562. hook.api = { remove: removeHookRef }
  10563. hook.remove = removeHookRef
  10564. ;['before', 'error', 'after', 'wrap'].forEach(function (kind) {
  10565. var args = name ? [state, kind, name] : [state, kind]
  10566. hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
  10567. })
  10568. }
  10569. function HookSingular () {
  10570. var singularHookName = 'h'
  10571. var singularHookState = {
  10572. registry: {}
  10573. }
  10574. var singularHook = register.bind(null, singularHookState, singularHookName)
  10575. bindApi(singularHook, singularHookState, singularHookName)
  10576. return singularHook
  10577. }
  10578. function HookCollection () {
  10579. var state = {
  10580. registry: {}
  10581. }
  10582. var hook = register.bind(null, state)
  10583. bindApi(hook, state)
  10584. return hook
  10585. }
  10586. var collectionHookDeprecationMessageDisplayed = false
  10587. function Hook () {
  10588. if (!collectionHookDeprecationMessageDisplayed) {
  10589. console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4')
  10590. collectionHookDeprecationMessageDisplayed = true
  10591. }
  10592. return HookCollection()
  10593. }
  10594. Hook.Singular = HookSingular.bind()
  10595. Hook.Collection = HookCollection.bind()
  10596. module.exports = Hook
  10597. // expose constructors as a named property for TypeScript
  10598. module.exports.Hook = Hook
  10599. module.exports.Singular = Hook.Singular
  10600. module.exports.Collection = Hook.Collection
  10601. /***/ }),
  10602. /***/ 525:
  10603. /***/ (function(__unusedmodule, exports) {
  10604. "use strict";
  10605. Object.defineProperty(exports, "__esModule", {
  10606. value: true
  10607. });
  10608. exports.default = void 0;
  10609. var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
  10610. exports.default = _default;
  10611. /***/ }),
  10612. /***/ 528:
  10613. /***/ (function(__unusedmodule, exports) {
  10614. "use strict";
  10615. Object.defineProperty(exports, "__esModule", { value: true });
  10616. exports.escape = void 0;
  10617. function escape(value) {
  10618. return value.replace(/[^a-zA-Z0-9_]/g, x => {
  10619. return `\\${x}`;
  10620. });
  10621. }
  10622. exports.escape = escape;
  10623. /***/ }),
  10624. /***/ 529:
  10625. /***/ (function(module, __unusedexports, __webpack_require__) {
  10626. const factory = __webpack_require__(47);
  10627. module.exports = factory();
  10628. /***/ }),
  10629. /***/ 533:
  10630. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  10631. "use strict";
  10632. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  10633. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  10634. return new (P || (P = Promise))(function (resolve, reject) {
  10635. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  10636. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  10637. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  10638. step((generator = generator.apply(thisArg, _arguments || [])).next());
  10639. });
  10640. };
  10641. Object.defineProperty(exports, "__esModule", { value: true });
  10642. const core = __webpack_require__(470);
  10643. const io = __webpack_require__(1);
  10644. const fs = __webpack_require__(747);
  10645. const os = __webpack_require__(87);
  10646. const path = __webpack_require__(622);
  10647. const httpm = __webpack_require__(874);
  10648. const semver = __webpack_require__(656);
  10649. const uuidV4 = __webpack_require__(826);
  10650. const exec_1 = __webpack_require__(986);
  10651. const assert_1 = __webpack_require__(357);
  10652. class HTTPError extends Error {
  10653. constructor(httpStatusCode) {
  10654. super(`Unexpected HTTP response: ${httpStatusCode}`);
  10655. this.httpStatusCode = httpStatusCode;
  10656. Object.setPrototypeOf(this, new.target.prototype);
  10657. }
  10658. }
  10659. exports.HTTPError = HTTPError;
  10660. const IS_WINDOWS = process.platform === 'win32';
  10661. const userAgent = 'actions/tool-cache';
  10662. // On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
  10663. let tempDirectory = process.env['RUNNER_TEMP'] || '';
  10664. let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
  10665. // If directories not found, place them in common temp locations
  10666. if (!tempDirectory || !cacheRoot) {
  10667. let baseLocation;
  10668. if (IS_WINDOWS) {
  10669. // On windows use the USERPROFILE env variable
  10670. baseLocation = process.env['USERPROFILE'] || 'C:\\';
  10671. }
  10672. else {
  10673. if (process.platform === 'darwin') {
  10674. baseLocation = '/Users';
  10675. }
  10676. else {
  10677. baseLocation = '/home';
  10678. }
  10679. }
  10680. if (!tempDirectory) {
  10681. tempDirectory = path.join(baseLocation, 'actions', 'temp');
  10682. }
  10683. if (!cacheRoot) {
  10684. cacheRoot = path.join(baseLocation, 'actions', 'cache');
  10685. }
  10686. }
  10687. /**
  10688. * Download a tool from an url and stream it into a file
  10689. *
  10690. * @param url url of tool to download
  10691. * @returns path to downloaded tool
  10692. */
  10693. function downloadTool(url) {
  10694. return __awaiter(this, void 0, void 0, function* () {
  10695. // Wrap in a promise so that we can resolve from within stream callbacks
  10696. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  10697. try {
  10698. const http = new httpm.HttpClient(userAgent, [], {
  10699. allowRetries: true,
  10700. maxRetries: 3
  10701. });
  10702. const destPath = path.join(tempDirectory, uuidV4());
  10703. yield io.mkdirP(tempDirectory);
  10704. core.debug(`Downloading ${url}`);
  10705. core.debug(`Downloading ${destPath}`);
  10706. if (fs.existsSync(destPath)) {
  10707. throw new Error(`Destination file path ${destPath} already exists`);
  10708. }
  10709. const response = yield http.get(url);
  10710. if (response.message.statusCode !== 200) {
  10711. const err = new HTTPError(response.message.statusCode);
  10712. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  10713. throw err;
  10714. }
  10715. const file = fs.createWriteStream(destPath);
  10716. file.on('open', () => __awaiter(this, void 0, void 0, function* () {
  10717. try {
  10718. const stream = response.message.pipe(file);
  10719. stream.on('close', () => {
  10720. core.debug('download complete');
  10721. resolve(destPath);
  10722. });
  10723. }
  10724. catch (err) {
  10725. core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
  10726. reject(err);
  10727. }
  10728. }));
  10729. file.on('error', err => {
  10730. file.end();
  10731. reject(err);
  10732. });
  10733. }
  10734. catch (err) {
  10735. reject(err);
  10736. }
  10737. }));
  10738. });
  10739. }
  10740. exports.downloadTool = downloadTool;
  10741. /**
  10742. * Extract a .7z file
  10743. *
  10744. * @param file path to the .7z file
  10745. * @param dest destination directory. Optional.
  10746. * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this
  10747. * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will
  10748. * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is
  10749. * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line
  10750. * interface, it is smaller than the full command line interface, and it does support long paths. At the
  10751. * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.
  10752. * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path
  10753. * to 7zr.exe can be pass to this function.
  10754. * @returns path to the destination directory
  10755. */
  10756. function extract7z(file, dest, _7zPath) {
  10757. return __awaiter(this, void 0, void 0, function* () {
  10758. assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
  10759. assert_1.ok(file, 'parameter "file" is required');
  10760. dest = dest || (yield _createExtractFolder(dest));
  10761. const originalCwd = process.cwd();
  10762. process.chdir(dest);
  10763. if (_7zPath) {
  10764. try {
  10765. const args = [
  10766. 'x',
  10767. '-bb1',
  10768. '-bd',
  10769. '-sccUTF-8',
  10770. file
  10771. ];
  10772. const options = {
  10773. silent: true
  10774. };
  10775. yield exec_1.exec(`"${_7zPath}"`, args, options);
  10776. }
  10777. finally {
  10778. process.chdir(originalCwd);
  10779. }
  10780. }
  10781. else {
  10782. const escapedScript = path
  10783. .join(__dirname, '..', 'scripts', 'Invoke-7zdec.ps1')
  10784. .replace(/'/g, "''")
  10785. .replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  10786. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10787. const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10788. const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;
  10789. const args = [
  10790. '-NoLogo',
  10791. '-Sta',
  10792. '-NoProfile',
  10793. '-NonInteractive',
  10794. '-ExecutionPolicy',
  10795. 'Unrestricted',
  10796. '-Command',
  10797. command
  10798. ];
  10799. const options = {
  10800. silent: true
  10801. };
  10802. try {
  10803. const powershellPath = yield io.which('powershell', true);
  10804. yield exec_1.exec(`"${powershellPath}"`, args, options);
  10805. }
  10806. finally {
  10807. process.chdir(originalCwd);
  10808. }
  10809. }
  10810. return dest;
  10811. });
  10812. }
  10813. exports.extract7z = extract7z;
  10814. /**
  10815. * Extract a tar
  10816. *
  10817. * @param file path to the tar
  10818. * @param dest destination directory. Optional.
  10819. * @param flags flags for the tar. Optional.
  10820. * @returns path to the destination directory
  10821. */
  10822. function extractTar(file, dest, flags = 'xz') {
  10823. return __awaiter(this, void 0, void 0, function* () {
  10824. if (!file) {
  10825. throw new Error("parameter 'file' is required");
  10826. }
  10827. dest = dest || (yield _createExtractFolder(dest));
  10828. const tarPath = yield io.which('tar', true);
  10829. yield exec_1.exec(`"${tarPath}"`, [flags, '-C', dest, '-f', file]);
  10830. return dest;
  10831. });
  10832. }
  10833. exports.extractTar = extractTar;
  10834. /**
  10835. * Extract a zip
  10836. *
  10837. * @param file path to the zip
  10838. * @param dest destination directory. Optional.
  10839. * @returns path to the destination directory
  10840. */
  10841. function extractZip(file, dest) {
  10842. return __awaiter(this, void 0, void 0, function* () {
  10843. if (!file) {
  10844. throw new Error("parameter 'file' is required");
  10845. }
  10846. dest = dest || (yield _createExtractFolder(dest));
  10847. if (IS_WINDOWS) {
  10848. yield extractZipWin(file, dest);
  10849. }
  10850. else {
  10851. yield extractZipNix(file, dest);
  10852. }
  10853. return dest;
  10854. });
  10855. }
  10856. exports.extractZip = extractZip;
  10857. function extractZipWin(file, dest) {
  10858. return __awaiter(this, void 0, void 0, function* () {
  10859. // build the powershell command
  10860. const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
  10861. const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
  10862. const command = `$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}')`;
  10863. // run powershell
  10864. const powershellPath = yield io.which('powershell');
  10865. const args = [
  10866. '-NoLogo',
  10867. '-Sta',
  10868. '-NoProfile',
  10869. '-NonInteractive',
  10870. '-ExecutionPolicy',
  10871. 'Unrestricted',
  10872. '-Command',
  10873. command
  10874. ];
  10875. yield exec_1.exec(`"${powershellPath}"`, args);
  10876. });
  10877. }
  10878. function extractZipNix(file, dest) {
  10879. return __awaiter(this, void 0, void 0, function* () {
  10880. const unzipPath = yield io.which('unzip');
  10881. yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest });
  10882. });
  10883. }
  10884. /**
  10885. * Caches a directory and installs it into the tool cacheDir
  10886. *
  10887. * @param sourceDir the directory to cache into tools
  10888. * @param tool tool name
  10889. * @param version version of the tool. semver format
  10890. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  10891. */
  10892. function cacheDir(sourceDir, tool, version, arch) {
  10893. return __awaiter(this, void 0, void 0, function* () {
  10894. version = semver.clean(version) || version;
  10895. arch = arch || os.arch();
  10896. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  10897. core.debug(`source dir: ${sourceDir}`);
  10898. if (!fs.statSync(sourceDir).isDirectory()) {
  10899. throw new Error('sourceDir is not a directory');
  10900. }
  10901. // Create the tool dir
  10902. const destPath = yield _createToolPath(tool, version, arch);
  10903. // copy each child item. do not move. move can fail on Windows
  10904. // due to anti-virus software having an open handle on a file.
  10905. for (const itemName of fs.readdirSync(sourceDir)) {
  10906. const s = path.join(sourceDir, itemName);
  10907. yield io.cp(s, destPath, { recursive: true });
  10908. }
  10909. // write .complete
  10910. _completeToolPath(tool, version, arch);
  10911. return destPath;
  10912. });
  10913. }
  10914. exports.cacheDir = cacheDir;
  10915. /**
  10916. * Caches a downloaded file (GUID) and installs it
  10917. * into the tool cache with a given targetName
  10918. *
  10919. * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.
  10920. * @param targetFile the name of the file name in the tools directory
  10921. * @param tool tool name
  10922. * @param version version of the tool. semver format
  10923. * @param arch architecture of the tool. Optional. Defaults to machine architecture
  10924. */
  10925. function cacheFile(sourceFile, targetFile, tool, version, arch) {
  10926. return __awaiter(this, void 0, void 0, function* () {
  10927. version = semver.clean(version) || version;
  10928. arch = arch || os.arch();
  10929. core.debug(`Caching tool ${tool} ${version} ${arch}`);
  10930. core.debug(`source file: ${sourceFile}`);
  10931. if (!fs.statSync(sourceFile).isFile()) {
  10932. throw new Error('sourceFile is not a file');
  10933. }
  10934. // create the tool dir
  10935. const destFolder = yield _createToolPath(tool, version, arch);
  10936. // copy instead of move. move can fail on Windows due to
  10937. // anti-virus software having an open handle on a file.
  10938. const destPath = path.join(destFolder, targetFile);
  10939. core.debug(`destination file ${destPath}`);
  10940. yield io.cp(sourceFile, destPath);
  10941. // write .complete
  10942. _completeToolPath(tool, version, arch);
  10943. return destFolder;
  10944. });
  10945. }
  10946. exports.cacheFile = cacheFile;
  10947. /**
  10948. * Finds the path to a tool version in the local installed tool cache
  10949. *
  10950. * @param toolName name of the tool
  10951. * @param versionSpec version of the tool
  10952. * @param arch optional arch. defaults to arch of computer
  10953. */
  10954. function find(toolName, versionSpec, arch) {
  10955. if (!toolName) {
  10956. throw new Error('toolName parameter is required');
  10957. }
  10958. if (!versionSpec) {
  10959. throw new Error('versionSpec parameter is required');
  10960. }
  10961. arch = arch || os.arch();
  10962. // attempt to resolve an explicit version
  10963. if (!_isExplicitVersion(versionSpec)) {
  10964. const localVersions = findAllVersions(toolName, arch);
  10965. const match = _evaluateVersions(localVersions, versionSpec);
  10966. versionSpec = match;
  10967. }
  10968. // check for the explicit version in the cache
  10969. let toolPath = '';
  10970. if (versionSpec) {
  10971. versionSpec = semver.clean(versionSpec) || '';
  10972. const cachePath = path.join(cacheRoot, toolName, versionSpec, arch);
  10973. core.debug(`checking cache: ${cachePath}`);
  10974. if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) {
  10975. core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);
  10976. toolPath = cachePath;
  10977. }
  10978. else {
  10979. core.debug('not found');
  10980. }
  10981. }
  10982. return toolPath;
  10983. }
  10984. exports.find = find;
  10985. /**
  10986. * Finds the paths to all versions of a tool that are installed in the local tool cache
  10987. *
  10988. * @param toolName name of the tool
  10989. * @param arch optional arch. defaults to arch of computer
  10990. */
  10991. function findAllVersions(toolName, arch) {
  10992. const versions = [];
  10993. arch = arch || os.arch();
  10994. const toolPath = path.join(cacheRoot, toolName);
  10995. if (fs.existsSync(toolPath)) {
  10996. const children = fs.readdirSync(toolPath);
  10997. for (const child of children) {
  10998. if (_isExplicitVersion(child)) {
  10999. const fullPath = path.join(toolPath, child, arch || '');
  11000. if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
  11001. versions.push(child);
  11002. }
  11003. }
  11004. }
  11005. }
  11006. return versions;
  11007. }
  11008. exports.findAllVersions = findAllVersions;
  11009. function _createExtractFolder(dest) {
  11010. return __awaiter(this, void 0, void 0, function* () {
  11011. if (!dest) {
  11012. // create a temp dir
  11013. dest = path.join(tempDirectory, uuidV4());
  11014. }
  11015. yield io.mkdirP(dest);
  11016. return dest;
  11017. });
  11018. }
  11019. function _createToolPath(tool, version, arch) {
  11020. return __awaiter(this, void 0, void 0, function* () {
  11021. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  11022. core.debug(`destination ${folderPath}`);
  11023. const markerPath = `${folderPath}.complete`;
  11024. yield io.rmRF(folderPath);
  11025. yield io.rmRF(markerPath);
  11026. yield io.mkdirP(folderPath);
  11027. return folderPath;
  11028. });
  11029. }
  11030. function _completeToolPath(tool, version, arch) {
  11031. const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
  11032. const markerPath = `${folderPath}.complete`;
  11033. fs.writeFileSync(markerPath, '');
  11034. core.debug('finished caching tool');
  11035. }
  11036. function _isExplicitVersion(versionSpec) {
  11037. const c = semver.clean(versionSpec) || '';
  11038. core.debug(`isExplicit: ${c}`);
  11039. const valid = semver.valid(c) != null;
  11040. core.debug(`explicit? ${valid}`);
  11041. return valid;
  11042. }
  11043. function _evaluateVersions(versions, versionSpec) {
  11044. let version = '';
  11045. core.debug(`evaluating ${versions.length} versions`);
  11046. versions = versions.sort((a, b) => {
  11047. if (semver.gt(a, b)) {
  11048. return 1;
  11049. }
  11050. return -1;
  11051. });
  11052. for (let i = versions.length - 1; i >= 0; i--) {
  11053. const potential = versions[i];
  11054. const satisfied = semver.satisfies(potential, versionSpec);
  11055. if (satisfied) {
  11056. version = potential;
  11057. break;
  11058. }
  11059. }
  11060. if (version) {
  11061. core.debug(`matched: ${version}`);
  11062. }
  11063. else {
  11064. core.debug('match not found');
  11065. }
  11066. return version;
  11067. }
  11068. //# sourceMappingURL=tool-cache.js.map
  11069. /***/ }),
  11070. /***/ 536:
  11071. /***/ (function(module, __unusedexports, __webpack_require__) {
  11072. module.exports = hasFirstPage
  11073. const deprecate = __webpack_require__(370)
  11074. const getPageLinks = __webpack_require__(577)
  11075. function hasFirstPage (link) {
  11076. deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  11077. return getPageLinks(link).first
  11078. }
  11079. /***/ }),
  11080. /***/ 539:
  11081. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11082. "use strict";
  11083. Object.defineProperty(exports, "__esModule", { value: true });
  11084. const url = __webpack_require__(835);
  11085. const http = __webpack_require__(605);
  11086. const https = __webpack_require__(211);
  11087. const pm = __webpack_require__(950);
  11088. let tunnel;
  11089. var HttpCodes;
  11090. (function (HttpCodes) {
  11091. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  11092. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  11093. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  11094. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  11095. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  11096. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  11097. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  11098. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  11099. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  11100. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  11101. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  11102. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  11103. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  11104. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  11105. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  11106. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  11107. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  11108. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  11109. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  11110. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  11111. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  11112. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  11113. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  11114. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  11115. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  11116. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  11117. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  11118. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  11119. var Headers;
  11120. (function (Headers) {
  11121. Headers["Accept"] = "accept";
  11122. Headers["ContentType"] = "content-type";
  11123. })(Headers = exports.Headers || (exports.Headers = {}));
  11124. var MediaTypes;
  11125. (function (MediaTypes) {
  11126. MediaTypes["ApplicationJson"] = "application/json";
  11127. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  11128. /**
  11129. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  11130. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  11131. */
  11132. function getProxyUrl(serverUrl) {
  11133. let proxyUrl = pm.getProxyUrl(url.parse(serverUrl));
  11134. return proxyUrl ? proxyUrl.href : '';
  11135. }
  11136. exports.getProxyUrl = getProxyUrl;
  11137. const HttpRedirectCodes = [
  11138. HttpCodes.MovedPermanently,
  11139. HttpCodes.ResourceMoved,
  11140. HttpCodes.SeeOther,
  11141. HttpCodes.TemporaryRedirect,
  11142. HttpCodes.PermanentRedirect
  11143. ];
  11144. const HttpResponseRetryCodes = [
  11145. HttpCodes.BadGateway,
  11146. HttpCodes.ServiceUnavailable,
  11147. HttpCodes.GatewayTimeout
  11148. ];
  11149. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  11150. const ExponentialBackoffCeiling = 10;
  11151. const ExponentialBackoffTimeSlice = 5;
  11152. class HttpClientResponse {
  11153. constructor(message) {
  11154. this.message = message;
  11155. }
  11156. readBody() {
  11157. return new Promise(async (resolve, reject) => {
  11158. let output = Buffer.alloc(0);
  11159. this.message.on('data', (chunk) => {
  11160. output = Buffer.concat([output, chunk]);
  11161. });
  11162. this.message.on('end', () => {
  11163. resolve(output.toString());
  11164. });
  11165. });
  11166. }
  11167. }
  11168. exports.HttpClientResponse = HttpClientResponse;
  11169. function isHttps(requestUrl) {
  11170. let parsedUrl = url.parse(requestUrl);
  11171. return parsedUrl.protocol === 'https:';
  11172. }
  11173. exports.isHttps = isHttps;
  11174. class HttpClient {
  11175. constructor(userAgent, handlers, requestOptions) {
  11176. this._ignoreSslError = false;
  11177. this._allowRedirects = true;
  11178. this._allowRedirectDowngrade = false;
  11179. this._maxRedirects = 50;
  11180. this._allowRetries = false;
  11181. this._maxRetries = 1;
  11182. this._keepAlive = false;
  11183. this._disposed = false;
  11184. this.userAgent = userAgent;
  11185. this.handlers = handlers || [];
  11186. this.requestOptions = requestOptions;
  11187. if (requestOptions) {
  11188. if (requestOptions.ignoreSslError != null) {
  11189. this._ignoreSslError = requestOptions.ignoreSslError;
  11190. }
  11191. this._socketTimeout = requestOptions.socketTimeout;
  11192. if (requestOptions.allowRedirects != null) {
  11193. this._allowRedirects = requestOptions.allowRedirects;
  11194. }
  11195. if (requestOptions.allowRedirectDowngrade != null) {
  11196. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  11197. }
  11198. if (requestOptions.maxRedirects != null) {
  11199. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  11200. }
  11201. if (requestOptions.keepAlive != null) {
  11202. this._keepAlive = requestOptions.keepAlive;
  11203. }
  11204. if (requestOptions.allowRetries != null) {
  11205. this._allowRetries = requestOptions.allowRetries;
  11206. }
  11207. if (requestOptions.maxRetries != null) {
  11208. this._maxRetries = requestOptions.maxRetries;
  11209. }
  11210. }
  11211. }
  11212. options(requestUrl, additionalHeaders) {
  11213. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  11214. }
  11215. get(requestUrl, additionalHeaders) {
  11216. return this.request('GET', requestUrl, null, additionalHeaders || {});
  11217. }
  11218. del(requestUrl, additionalHeaders) {
  11219. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  11220. }
  11221. post(requestUrl, data, additionalHeaders) {
  11222. return this.request('POST', requestUrl, data, additionalHeaders || {});
  11223. }
  11224. patch(requestUrl, data, additionalHeaders) {
  11225. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  11226. }
  11227. put(requestUrl, data, additionalHeaders) {
  11228. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  11229. }
  11230. head(requestUrl, additionalHeaders) {
  11231. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  11232. }
  11233. sendStream(verb, requestUrl, stream, additionalHeaders) {
  11234. return this.request(verb, requestUrl, stream, additionalHeaders);
  11235. }
  11236. /**
  11237. * Gets a typed object from an endpoint
  11238. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  11239. */
  11240. async getJson(requestUrl, additionalHeaders = {}) {
  11241. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  11242. let res = await this.get(requestUrl, additionalHeaders);
  11243. return this._processResponse(res, this.requestOptions);
  11244. }
  11245. async postJson(requestUrl, obj, additionalHeaders = {}) {
  11246. let data = JSON.stringify(obj, null, 2);
  11247. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  11248. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  11249. let res = await this.post(requestUrl, data, additionalHeaders);
  11250. return this._processResponse(res, this.requestOptions);
  11251. }
  11252. async putJson(requestUrl, obj, additionalHeaders = {}) {
  11253. let data = JSON.stringify(obj, null, 2);
  11254. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  11255. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  11256. let res = await this.put(requestUrl, data, additionalHeaders);
  11257. return this._processResponse(res, this.requestOptions);
  11258. }
  11259. async patchJson(requestUrl, obj, additionalHeaders = {}) {
  11260. let data = JSON.stringify(obj, null, 2);
  11261. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  11262. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  11263. let res = await this.patch(requestUrl, data, additionalHeaders);
  11264. return this._processResponse(res, this.requestOptions);
  11265. }
  11266. /**
  11267. * Makes a raw http request.
  11268. * All other methods such as get, post, patch, and request ultimately call this.
  11269. * Prefer get, del, post and patch
  11270. */
  11271. async request(verb, requestUrl, data, headers) {
  11272. if (this._disposed) {
  11273. throw new Error('Client has already been disposed.');
  11274. }
  11275. let parsedUrl = url.parse(requestUrl);
  11276. let info = this._prepareRequest(verb, parsedUrl, headers);
  11277. // Only perform retries on reads since writes may not be idempotent.
  11278. let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1
  11279. ? this._maxRetries + 1
  11280. : 1;
  11281. let numTries = 0;
  11282. let response;
  11283. while (numTries < maxTries) {
  11284. response = await this.requestRaw(info, data);
  11285. // Check if it's an authentication challenge
  11286. if (response &&
  11287. response.message &&
  11288. response.message.statusCode === HttpCodes.Unauthorized) {
  11289. let authenticationHandler;
  11290. for (let i = 0; i < this.handlers.length; i++) {
  11291. if (this.handlers[i].canHandleAuthentication(response)) {
  11292. authenticationHandler = this.handlers[i];
  11293. break;
  11294. }
  11295. }
  11296. if (authenticationHandler) {
  11297. return authenticationHandler.handleAuthentication(this, info, data);
  11298. }
  11299. else {
  11300. // We have received an unauthorized response but have no handlers to handle it.
  11301. // Let the response return to the caller.
  11302. return response;
  11303. }
  11304. }
  11305. let redirectsRemaining = this._maxRedirects;
  11306. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&
  11307. this._allowRedirects &&
  11308. redirectsRemaining > 0) {
  11309. const redirectUrl = response.message.headers['location'];
  11310. if (!redirectUrl) {
  11311. // if there's no location to redirect to, we won't
  11312. break;
  11313. }
  11314. let parsedRedirectUrl = url.parse(redirectUrl);
  11315. if (parsedUrl.protocol == 'https:' &&
  11316. parsedUrl.protocol != parsedRedirectUrl.protocol &&
  11317. !this._allowRedirectDowngrade) {
  11318. throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
  11319. }
  11320. // we need to finish reading the response before reassigning response
  11321. // which will leak the open socket.
  11322. await response.readBody();
  11323. // strip authorization header if redirected to a different hostname
  11324. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  11325. for (let header in headers) {
  11326. // header names are case insensitive
  11327. if (header.toLowerCase() === 'authorization') {
  11328. delete headers[header];
  11329. }
  11330. }
  11331. }
  11332. // let's make the request with the new redirectUrl
  11333. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  11334. response = await this.requestRaw(info, data);
  11335. redirectsRemaining--;
  11336. }
  11337. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  11338. // If not a retry code, return immediately instead of retrying
  11339. return response;
  11340. }
  11341. numTries += 1;
  11342. if (numTries < maxTries) {
  11343. await response.readBody();
  11344. await this._performExponentialBackoff(numTries);
  11345. }
  11346. }
  11347. return response;
  11348. }
  11349. /**
  11350. * Needs to be called if keepAlive is set to true in request options.
  11351. */
  11352. dispose() {
  11353. if (this._agent) {
  11354. this._agent.destroy();
  11355. }
  11356. this._disposed = true;
  11357. }
  11358. /**
  11359. * Raw request.
  11360. * @param info
  11361. * @param data
  11362. */
  11363. requestRaw(info, data) {
  11364. return new Promise((resolve, reject) => {
  11365. let callbackForResult = function (err, res) {
  11366. if (err) {
  11367. reject(err);
  11368. }
  11369. resolve(res);
  11370. };
  11371. this.requestRawWithCallback(info, data, callbackForResult);
  11372. });
  11373. }
  11374. /**
  11375. * Raw request with callback.
  11376. * @param info
  11377. * @param data
  11378. * @param onResult
  11379. */
  11380. requestRawWithCallback(info, data, onResult) {
  11381. let socket;
  11382. if (typeof data === 'string') {
  11383. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  11384. }
  11385. let callbackCalled = false;
  11386. let handleResult = (err, res) => {
  11387. if (!callbackCalled) {
  11388. callbackCalled = true;
  11389. onResult(err, res);
  11390. }
  11391. };
  11392. let req = info.httpModule.request(info.options, (msg) => {
  11393. let res = new HttpClientResponse(msg);
  11394. handleResult(null, res);
  11395. });
  11396. req.on('socket', sock => {
  11397. socket = sock;
  11398. });
  11399. // If we ever get disconnected, we want the socket to timeout eventually
  11400. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  11401. if (socket) {
  11402. socket.end();
  11403. }
  11404. handleResult(new Error('Request timeout: ' + info.options.path), null);
  11405. });
  11406. req.on('error', function (err) {
  11407. // err has statusCode property
  11408. // res should have headers
  11409. handleResult(err, null);
  11410. });
  11411. if (data && typeof data === 'string') {
  11412. req.write(data, 'utf8');
  11413. }
  11414. if (data && typeof data !== 'string') {
  11415. data.on('close', function () {
  11416. req.end();
  11417. });
  11418. data.pipe(req);
  11419. }
  11420. else {
  11421. req.end();
  11422. }
  11423. }
  11424. /**
  11425. * Gets an http agent. This function is useful when you need an http agent that handles
  11426. * routing through a proxy server - depending upon the url and proxy environment variables.
  11427. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  11428. */
  11429. getAgent(serverUrl) {
  11430. let parsedUrl = url.parse(serverUrl);
  11431. return this._getAgent(parsedUrl);
  11432. }
  11433. _prepareRequest(method, requestUrl, headers) {
  11434. const info = {};
  11435. info.parsedUrl = requestUrl;
  11436. const usingSsl = info.parsedUrl.protocol === 'https:';
  11437. info.httpModule = usingSsl ? https : http;
  11438. const defaultPort = usingSsl ? 443 : 80;
  11439. info.options = {};
  11440. info.options.host = info.parsedUrl.hostname;
  11441. info.options.port = info.parsedUrl.port
  11442. ? parseInt(info.parsedUrl.port)
  11443. : defaultPort;
  11444. info.options.path =
  11445. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  11446. info.options.method = method;
  11447. info.options.headers = this._mergeHeaders(headers);
  11448. if (this.userAgent != null) {
  11449. info.options.headers['user-agent'] = this.userAgent;
  11450. }
  11451. info.options.agent = this._getAgent(info.parsedUrl);
  11452. // gives handlers an opportunity to participate
  11453. if (this.handlers) {
  11454. this.handlers.forEach(handler => {
  11455. handler.prepareRequest(info.options);
  11456. });
  11457. }
  11458. return info;
  11459. }
  11460. _mergeHeaders(headers) {
  11461. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  11462. if (this.requestOptions && this.requestOptions.headers) {
  11463. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  11464. }
  11465. return lowercaseKeys(headers || {});
  11466. }
  11467. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  11468. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  11469. let clientHeader;
  11470. if (this.requestOptions && this.requestOptions.headers) {
  11471. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  11472. }
  11473. return additionalHeaders[header] || clientHeader || _default;
  11474. }
  11475. _getAgent(parsedUrl) {
  11476. let agent;
  11477. let proxyUrl = pm.getProxyUrl(parsedUrl);
  11478. let useProxy = proxyUrl && proxyUrl.hostname;
  11479. if (this._keepAlive && useProxy) {
  11480. agent = this._proxyAgent;
  11481. }
  11482. if (this._keepAlive && !useProxy) {
  11483. agent = this._agent;
  11484. }
  11485. // if agent is already assigned use that agent.
  11486. if (!!agent) {
  11487. return agent;
  11488. }
  11489. const usingSsl = parsedUrl.protocol === 'https:';
  11490. let maxSockets = 100;
  11491. if (!!this.requestOptions) {
  11492. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  11493. }
  11494. if (useProxy) {
  11495. // If using proxy, need tunnel
  11496. if (!tunnel) {
  11497. tunnel = __webpack_require__(335);
  11498. }
  11499. const agentOptions = {
  11500. maxSockets: maxSockets,
  11501. keepAlive: this._keepAlive,
  11502. proxy: {
  11503. proxyAuth: proxyUrl.auth,
  11504. host: proxyUrl.hostname,
  11505. port: proxyUrl.port
  11506. }
  11507. };
  11508. let tunnelAgent;
  11509. const overHttps = proxyUrl.protocol === 'https:';
  11510. if (usingSsl) {
  11511. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  11512. }
  11513. else {
  11514. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  11515. }
  11516. agent = tunnelAgent(agentOptions);
  11517. this._proxyAgent = agent;
  11518. }
  11519. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  11520. if (this._keepAlive && !agent) {
  11521. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  11522. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  11523. this._agent = agent;
  11524. }
  11525. // if not using private agent and tunnel agent isn't setup then use global agent
  11526. if (!agent) {
  11527. agent = usingSsl ? https.globalAgent : http.globalAgent;
  11528. }
  11529. if (usingSsl && this._ignoreSslError) {
  11530. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  11531. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  11532. // we have to cast it to any and change it directly
  11533. agent.options = Object.assign(agent.options || {}, {
  11534. rejectUnauthorized: false
  11535. });
  11536. }
  11537. return agent;
  11538. }
  11539. _performExponentialBackoff(retryNumber) {
  11540. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  11541. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  11542. return new Promise(resolve => setTimeout(() => resolve(), ms));
  11543. }
  11544. static dateTimeDeserializer(key, value) {
  11545. if (typeof value === 'string') {
  11546. let a = new Date(value);
  11547. if (!isNaN(a.valueOf())) {
  11548. return a;
  11549. }
  11550. }
  11551. return value;
  11552. }
  11553. async _processResponse(res, options) {
  11554. return new Promise(async (resolve, reject) => {
  11555. const statusCode = res.message.statusCode;
  11556. const response = {
  11557. statusCode: statusCode,
  11558. result: null,
  11559. headers: {}
  11560. };
  11561. // not found leads to null obj returned
  11562. if (statusCode == HttpCodes.NotFound) {
  11563. resolve(response);
  11564. }
  11565. let obj;
  11566. let contents;
  11567. // get the result from the body
  11568. try {
  11569. contents = await res.readBody();
  11570. if (contents && contents.length > 0) {
  11571. if (options && options.deserializeDates) {
  11572. obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);
  11573. }
  11574. else {
  11575. obj = JSON.parse(contents);
  11576. }
  11577. response.result = obj;
  11578. }
  11579. response.headers = res.message.headers;
  11580. }
  11581. catch (err) {
  11582. // Invalid resource (contents not json); leaving result obj null
  11583. }
  11584. // note that 3xx redirects are handled by the http layer.
  11585. if (statusCode > 299) {
  11586. let msg;
  11587. // if exception/error in body, attempt to get better error
  11588. if (obj && obj.message) {
  11589. msg = obj.message;
  11590. }
  11591. else if (contents && contents.length > 0) {
  11592. // it may be the case that the exception is in the body message as string
  11593. msg = contents;
  11594. }
  11595. else {
  11596. msg = 'Failed request: (' + statusCode + ')';
  11597. }
  11598. let err = new Error(msg);
  11599. // attach statusCode and body obj (if available) to the error object
  11600. err['statusCode'] = statusCode;
  11601. if (response.result) {
  11602. err['result'] = response.result;
  11603. }
  11604. reject(err);
  11605. }
  11606. else {
  11607. resolve(response);
  11608. }
  11609. });
  11610. }
  11611. }
  11612. exports.HttpClient = HttpClient;
  11613. /***/ }),
  11614. /***/ 550:
  11615. /***/ (function(module, __unusedexports, __webpack_require__) {
  11616. module.exports = getNextPage
  11617. const getPage = __webpack_require__(265)
  11618. function getNextPage (octokit, link, headers) {
  11619. return getPage(octokit, link, 'next', headers)
  11620. }
  11621. /***/ }),
  11622. /***/ 554:
  11623. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11624. "use strict";
  11625. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  11626. if (k2 === undefined) k2 = k;
  11627. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  11628. }) : (function(o, m, k, k2) {
  11629. if (k2 === undefined) k2 = k;
  11630. o[k2] = m[k];
  11631. }));
  11632. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  11633. Object.defineProperty(o, "default", { enumerable: true, value: v });
  11634. }) : function(o, v) {
  11635. o["default"] = v;
  11636. });
  11637. var __importStar = (this && this.__importStar) || function (mod) {
  11638. if (mod && mod.__esModule) return mod;
  11639. var result = {};
  11640. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  11641. __setModuleDefault(result, mod);
  11642. return result;
  11643. };
  11644. Object.defineProperty(exports, "__esModule", { value: true });
  11645. exports.assertSafePrCheckout = void 0;
  11646. const github = __importStar(__webpack_require__(469));
  11647. const ref_helper_1 = __webpack_require__(227);
  11648. const PR_REF_PATTERN = /^refs\/pull\/[0-9]+\/(?:head|merge)$/;
  11649. function assertSafePrCheckout(input) {
  11650. if (input.allowUnsafePrCheckout) {
  11651. return;
  11652. }
  11653. const eventName = github.context.eventName;
  11654. if (eventName !== 'pull_request_target' && eventName !== 'workflow_run') {
  11655. return;
  11656. }
  11657. const baseRepoId = (0, ref_helper_1.fromPayload)('repository.id');
  11658. if (typeof baseRepoId !== 'number') {
  11659. return;
  11660. }
  11661. let prHeadRepoId;
  11662. let prHeadRepoFullName;
  11663. const prShas = [];
  11664. if (eventName === 'pull_request_target') {
  11665. prHeadRepoId = (0, ref_helper_1.fromPayload)('pull_request.head.repo.id');
  11666. prHeadRepoFullName = (0, ref_helper_1.fromPayload)('pull_request.head.repo.full_name');
  11667. pushIfSha(prShas, (0, ref_helper_1.fromPayload)('pull_request.head.sha'));
  11668. pushIfSha(prShas, (0, ref_helper_1.fromPayload)('pull_request.merge_commit_sha'));
  11669. }
  11670. else {
  11671. const wrEvent = (0, ref_helper_1.fromPayload)('workflow_run.event');
  11672. if (typeof wrEvent !== 'string' || !wrEvent.startsWith('pull_request')) {
  11673. return;
  11674. }
  11675. prHeadRepoId = (0, ref_helper_1.fromPayload)('workflow_run.head_repository.id');
  11676. prHeadRepoFullName = (0, ref_helper_1.fromPayload)('workflow_run.head_repository.full_name');
  11677. pushIfSha(prShas, (0, ref_helper_1.fromPayload)('workflow_run.head_commit.id'));
  11678. // For `pull_request_target`-triggered workflow_run, `head_sha` is the base
  11679. // default branch SHA (not the PR head)
  11680. if (wrEvent !== 'pull_request_target') {
  11681. pushIfSha(prShas, (0, ref_helper_1.fromPayload)('workflow_run.head_sha'));
  11682. }
  11683. }
  11684. // (A) Fork PR?
  11685. if (typeof prHeadRepoId !== 'number' || prHeadRepoId === baseRepoId) {
  11686. return;
  11687. }
  11688. // (B) We cannot check for all fork PR refs so check to see
  11689. // if the resolved input points to the fork PR sha we have in the payload
  11690. const repositoryMatchesPrHead = typeof prHeadRepoFullName === 'string' &&
  11691. input.qualifiedRepository.toLowerCase() === prHeadRepoFullName.toLowerCase();
  11692. const refMatchesPullPattern = PR_REF_PATTERN.test(input.ref);
  11693. const commitMatchesPrHeadSha = !!input.commit && prShas.includes(input.commit.toLowerCase());
  11694. if (!repositoryMatchesPrHead &&
  11695. !refMatchesPullPattern &&
  11696. !commitMatchesPrHeadSha) {
  11697. return;
  11698. }
  11699. throw new Error(`Refusing to check out fork pull request code from a '${eventName}' workflow. ` +
  11700. `This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch ` +
  11701. `cache scope, and runner access. Fetching and executing a fork's code in that trusted ` +
  11702. `context commonly leads to "pwn request" vulnerabilities. To opt in, review the risks ` +
  11703. `at https://gh.io/securely-using-pull_request_target and set 'allow-unsafe-pr-checkout: true' ` +
  11704. `on the actions/checkout step.`);
  11705. }
  11706. exports.assertSafePrCheckout = assertSafePrCheckout;
  11707. function pushIfSha(target, value) {
  11708. if (typeof value === 'string' && value.length > 0) {
  11709. target.push(value.toLowerCase());
  11710. }
  11711. }
  11712. /***/ }),
  11713. /***/ 558:
  11714. /***/ (function(module, __unusedexports, __webpack_require__) {
  11715. module.exports = hasPreviousPage
  11716. const deprecate = __webpack_require__(370)
  11717. const getPageLinks = __webpack_require__(577)
  11718. function hasPreviousPage (link) {
  11719. deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  11720. return getPageLinks(link).prev
  11721. }
  11722. /***/ }),
  11723. /***/ 559:
  11724. /***/ (function(__unusedmodule, exports) {
  11725. "use strict";
  11726. Object.defineProperty(exports, "__esModule", { value: true });
  11727. exports.GitVersion = void 0;
  11728. class GitVersion {
  11729. /**
  11730. * Used for comparing the version of git and git-lfs against the minimum required version
  11731. * @param version the version string, e.g. 1.2 or 1.2.3
  11732. */
  11733. constructor(version) {
  11734. this.major = NaN;
  11735. this.minor = NaN;
  11736. this.patch = NaN;
  11737. if (version) {
  11738. const match = version.match(/^(\d+)\.(\d+)(\.(\d+))?$/);
  11739. if (match) {
  11740. this.major = Number(match[1]);
  11741. this.minor = Number(match[2]);
  11742. if (match[4]) {
  11743. this.patch = Number(match[4]);
  11744. }
  11745. }
  11746. }
  11747. }
  11748. /**
  11749. * Compares the instance against a minimum required version
  11750. * @param minimum Minimum version
  11751. */
  11752. checkMinimum(minimum) {
  11753. if (!minimum.isValid()) {
  11754. throw new Error('Arg minimum is not a valid version');
  11755. }
  11756. // Major is insufficient
  11757. if (this.major < minimum.major) {
  11758. return false;
  11759. }
  11760. // Major is equal
  11761. if (this.major === minimum.major) {
  11762. // Minor is insufficient
  11763. if (this.minor < minimum.minor) {
  11764. return false;
  11765. }
  11766. // Minor is equal
  11767. if (this.minor === minimum.minor) {
  11768. // Patch is insufficient
  11769. if (this.patch && this.patch < (minimum.patch || 0)) {
  11770. return false;
  11771. }
  11772. }
  11773. }
  11774. return true;
  11775. }
  11776. /**
  11777. * Indicates whether the instance was constructed from a valid version string
  11778. */
  11779. isValid() {
  11780. return !isNaN(this.major);
  11781. }
  11782. /**
  11783. * Returns the version as a string, e.g. 1.2 or 1.2.3
  11784. */
  11785. toString() {
  11786. let result = '';
  11787. if (this.isValid()) {
  11788. result = `${this.major}.${this.minor}`;
  11789. if (!isNaN(this.patch)) {
  11790. result += `.${this.patch}`;
  11791. }
  11792. }
  11793. return result;
  11794. }
  11795. }
  11796. exports.GitVersion = GitVersion;
  11797. /***/ }),
  11798. /***/ 562:
  11799. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11800. "use strict";
  11801. Object.defineProperty(exports, '__esModule', { value: true });
  11802. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  11803. var osName = _interopDefault(__webpack_require__(2));
  11804. function getUserAgent() {
  11805. try {
  11806. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  11807. } catch (error) {
  11808. if (/wmic os get Caption/.test(error.message)) {
  11809. return "Windows <version undetectable>";
  11810. }
  11811. return "<environment undetectable>";
  11812. }
  11813. }
  11814. exports.getUserAgent = getUserAgent;
  11815. //# sourceMappingURL=index.js.map
  11816. /***/ }),
  11817. /***/ 563:
  11818. /***/ (function(module, __unusedexports, __webpack_require__) {
  11819. module.exports = getPreviousPage
  11820. const getPage = __webpack_require__(265)
  11821. function getPreviousPage (octokit, link, headers) {
  11822. return getPage(octokit, link, 'prev', headers)
  11823. }
  11824. /***/ }),
  11825. /***/ 568:
  11826. /***/ (function(module, __unusedexports, __webpack_require__) {
  11827. "use strict";
  11828. const path = __webpack_require__(622);
  11829. const niceTry = __webpack_require__(948);
  11830. const resolveCommand = __webpack_require__(489);
  11831. const escape = __webpack_require__(462);
  11832. const readShebang = __webpack_require__(389);
  11833. const semver = __webpack_require__(280);
  11834. const isWin = process.platform === 'win32';
  11835. const isExecutableRegExp = /\.(?:com|exe)$/i;
  11836. const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
  11837. // `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
  11838. const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
  11839. function detectShebang(parsed) {
  11840. parsed.file = resolveCommand(parsed);
  11841. const shebang = parsed.file && readShebang(parsed.file);
  11842. if (shebang) {
  11843. parsed.args.unshift(parsed.file);
  11844. parsed.command = shebang;
  11845. return resolveCommand(parsed);
  11846. }
  11847. return parsed.file;
  11848. }
  11849. function parseNonShell(parsed) {
  11850. if (!isWin) {
  11851. return parsed;
  11852. }
  11853. // Detect & add support for shebangs
  11854. const commandFile = detectShebang(parsed);
  11855. // We don't need a shell if the command filename is an executable
  11856. const needsShell = !isExecutableRegExp.test(commandFile);
  11857. // If a shell is required, use cmd.exe and take care of escaping everything correctly
  11858. // Note that `forceShell` is an hidden option used only in tests
  11859. if (parsed.options.forceShell || needsShell) {
  11860. // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
  11861. // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
  11862. // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
  11863. // we need to double escape them
  11864. const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
  11865. // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
  11866. // This is necessary otherwise it will always fail with ENOENT in those cases
  11867. parsed.command = path.normalize(parsed.command);
  11868. // Escape command & arguments
  11869. parsed.command = escape.command(parsed.command);
  11870. parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
  11871. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  11872. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  11873. parsed.command = process.env.comspec || 'cmd.exe';
  11874. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  11875. }
  11876. return parsed;
  11877. }
  11878. function parseShell(parsed) {
  11879. // If node supports the shell option, there's no need to mimic its behavior
  11880. if (supportsShellOption) {
  11881. return parsed;
  11882. }
  11883. // Mimic node shell option
  11884. // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335
  11885. const shellCommand = [parsed.command].concat(parsed.args).join(' ');
  11886. if (isWin) {
  11887. parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
  11888. parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
  11889. parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
  11890. } else {
  11891. if (typeof parsed.options.shell === 'string') {
  11892. parsed.command = parsed.options.shell;
  11893. } else if (process.platform === 'android') {
  11894. parsed.command = '/system/bin/sh';
  11895. } else {
  11896. parsed.command = '/bin/sh';
  11897. }
  11898. parsed.args = ['-c', shellCommand];
  11899. }
  11900. return parsed;
  11901. }
  11902. function parse(command, args, options) {
  11903. // Normalize arguments, similar to nodejs
  11904. if (args && !Array.isArray(args)) {
  11905. options = args;
  11906. args = null;
  11907. }
  11908. args = args ? args.slice(0) : []; // Clone array to avoid changing the original
  11909. options = Object.assign({}, options); // Clone object to avoid changing the original
  11910. // Build our parsed object
  11911. const parsed = {
  11912. command,
  11913. args,
  11914. options,
  11915. file: undefined,
  11916. original: {
  11917. command,
  11918. args,
  11919. },
  11920. };
  11921. // Delegate further parsing to shell or non-shell
  11922. return options.shell ? parseShell(parsed) : parseNonShell(parsed);
  11923. }
  11924. module.exports = parse;
  11925. /***/ }),
  11926. /***/ 572:
  11927. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11928. "use strict";
  11929. Object.defineProperty(exports, "__esModule", {
  11930. value: true
  11931. });
  11932. exports.default = void 0;
  11933. var _v = _interopRequireDefault(__webpack_require__(136));
  11934. var _md = _interopRequireDefault(__webpack_require__(659));
  11935. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11936. const v3 = (0, _v.default)('v3', 0x30, _md.default);
  11937. var _default = v3;
  11938. exports.default = _default;
  11939. /***/ }),
  11940. /***/ 573:
  11941. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  11942. "use strict";
  11943. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  11944. if (k2 === undefined) k2 = k;
  11945. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  11946. }) : (function(o, m, k, k2) {
  11947. if (k2 === undefined) k2 = k;
  11948. o[k2] = m[k];
  11949. }));
  11950. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  11951. Object.defineProperty(o, "default", { enumerable: true, value: v });
  11952. }) : function(o, v) {
  11953. o["default"] = v;
  11954. });
  11955. var __importStar = (this && this.__importStar) || function (mod) {
  11956. if (mod && mod.__esModule) return mod;
  11957. var result = {};
  11958. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  11959. __setModuleDefault(result, mod);
  11960. return result;
  11961. };
  11962. Object.defineProperty(exports, "__esModule", { value: true });
  11963. exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
  11964. const path = __importStar(__webpack_require__(622));
  11965. /**
  11966. * toPosixPath converts the given path to the posix form. On Windows, \\ will be
  11967. * replaced with /.
  11968. *
  11969. * @param pth. Path to transform.
  11970. * @return string Posix path.
  11971. */
  11972. function toPosixPath(pth) {
  11973. return pth.replace(/[\\]/g, '/');
  11974. }
  11975. exports.toPosixPath = toPosixPath;
  11976. /**
  11977. * toWin32Path converts the given path to the win32 form. On Linux, / will be
  11978. * replaced with \\.
  11979. *
  11980. * @param pth. Path to transform.
  11981. * @return string Win32 path.
  11982. */
  11983. function toWin32Path(pth) {
  11984. return pth.replace(/[/]/g, '\\');
  11985. }
  11986. exports.toWin32Path = toWin32Path;
  11987. /**
  11988. * toPlatformPath converts the given path to a platform-specific path. It does
  11989. * this by replacing instances of / and \ with the platform-specific path
  11990. * separator.
  11991. *
  11992. * @param pth The path to platformize.
  11993. * @return string The platform-specific path.
  11994. */
  11995. function toPlatformPath(pth) {
  11996. return pth.replace(/[/\\]/g, path.sep);
  11997. }
  11998. exports.toPlatformPath = toPlatformPath;
  11999. //# sourceMappingURL=path-utils.js.map
  12000. /***/ }),
  12001. /***/ 577:
  12002. /***/ (function(module) {
  12003. module.exports = getPageLinks
  12004. function getPageLinks (link) {
  12005. link = link.link || link.headers.link || ''
  12006. const links = {}
  12007. // link format:
  12008. // '<https://api.github.com/users/aseemk/followers?page=2>; rel="next", <https://api.github.com/users/aseemk/followers?page=2>; rel="last"'
  12009. link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => {
  12010. links[type] = uri
  12011. })
  12012. return links
  12013. }
  12014. /***/ }),
  12015. /***/ 581:
  12016. /***/ (function(module, __unusedexports, __webpack_require__) {
  12017. "use strict";
  12018. var formats = __webpack_require__(13);
  12019. var has = Object.prototype.hasOwnProperty;
  12020. var isArray = Array.isArray;
  12021. var hexTable = (function () {
  12022. var array = [];
  12023. for (var i = 0; i < 256; ++i) {
  12024. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  12025. }
  12026. return array;
  12027. }());
  12028. var compactQueue = function compactQueue(queue) {
  12029. while (queue.length > 1) {
  12030. var item = queue.pop();
  12031. var obj = item.obj[item.prop];
  12032. if (isArray(obj)) {
  12033. var compacted = [];
  12034. for (var j = 0; j < obj.length; ++j) {
  12035. if (typeof obj[j] !== 'undefined') {
  12036. compacted.push(obj[j]);
  12037. }
  12038. }
  12039. item.obj[item.prop] = compacted;
  12040. }
  12041. }
  12042. };
  12043. var arrayToObject = function arrayToObject(source, options) {
  12044. var obj = options && options.plainObjects ? Object.create(null) : {};
  12045. for (var i = 0; i < source.length; ++i) {
  12046. if (typeof source[i] !== 'undefined') {
  12047. obj[i] = source[i];
  12048. }
  12049. }
  12050. return obj;
  12051. };
  12052. var merge = function merge(target, source, options) {
  12053. /* eslint no-param-reassign: 0 */
  12054. if (!source) {
  12055. return target;
  12056. }
  12057. if (typeof source !== 'object') {
  12058. if (isArray(target)) {
  12059. target.push(source);
  12060. } else if (target && typeof target === 'object') {
  12061. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  12062. target[source] = true;
  12063. }
  12064. } else {
  12065. return [target, source];
  12066. }
  12067. return target;
  12068. }
  12069. if (!target || typeof target !== 'object') {
  12070. return [target].concat(source);
  12071. }
  12072. var mergeTarget = target;
  12073. if (isArray(target) && !isArray(source)) {
  12074. mergeTarget = arrayToObject(target, options);
  12075. }
  12076. if (isArray(target) && isArray(source)) {
  12077. source.forEach(function (item, i) {
  12078. if (has.call(target, i)) {
  12079. var targetItem = target[i];
  12080. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  12081. target[i] = merge(targetItem, item, options);
  12082. } else {
  12083. target.push(item);
  12084. }
  12085. } else {
  12086. target[i] = item;
  12087. }
  12088. });
  12089. return target;
  12090. }
  12091. return Object.keys(source).reduce(function (acc, key) {
  12092. var value = source[key];
  12093. if (has.call(acc, key)) {
  12094. acc[key] = merge(acc[key], value, options);
  12095. } else {
  12096. acc[key] = value;
  12097. }
  12098. return acc;
  12099. }, mergeTarget);
  12100. };
  12101. var assign = function assignSingleSource(target, source) {
  12102. return Object.keys(source).reduce(function (acc, key) {
  12103. acc[key] = source[key];
  12104. return acc;
  12105. }, target);
  12106. };
  12107. var decode = function (str, decoder, charset) {
  12108. var strWithoutPlus = str.replace(/\+/g, ' ');
  12109. if (charset === 'iso-8859-1') {
  12110. // unescape never throws, no try...catch needed:
  12111. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  12112. }
  12113. // utf-8
  12114. try {
  12115. return decodeURIComponent(strWithoutPlus);
  12116. } catch (e) {
  12117. return strWithoutPlus;
  12118. }
  12119. };
  12120. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  12121. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  12122. // It has been adapted here for stricter adherence to RFC 3986
  12123. if (str.length === 0) {
  12124. return str;
  12125. }
  12126. var string = str;
  12127. if (typeof str === 'symbol') {
  12128. string = Symbol.prototype.toString.call(str);
  12129. } else if (typeof str !== 'string') {
  12130. string = String(str);
  12131. }
  12132. if (charset === 'iso-8859-1') {
  12133. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  12134. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  12135. });
  12136. }
  12137. var out = '';
  12138. for (var i = 0; i < string.length; ++i) {
  12139. var c = string.charCodeAt(i);
  12140. if (
  12141. c === 0x2D // -
  12142. || c === 0x2E // .
  12143. || c === 0x5F // _
  12144. || c === 0x7E // ~
  12145. || (c >= 0x30 && c <= 0x39) // 0-9
  12146. || (c >= 0x41 && c <= 0x5A) // a-z
  12147. || (c >= 0x61 && c <= 0x7A) // A-Z
  12148. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  12149. ) {
  12150. out += string.charAt(i);
  12151. continue;
  12152. }
  12153. if (c < 0x80) {
  12154. out = out + hexTable[c];
  12155. continue;
  12156. }
  12157. if (c < 0x800) {
  12158. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  12159. continue;
  12160. }
  12161. if (c < 0xD800 || c >= 0xE000) {
  12162. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  12163. continue;
  12164. }
  12165. i += 1;
  12166. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  12167. /* eslint operator-linebreak: [2, "before"] */
  12168. out += hexTable[0xF0 | (c >> 18)]
  12169. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  12170. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  12171. + hexTable[0x80 | (c & 0x3F)];
  12172. }
  12173. return out;
  12174. };
  12175. var compact = function compact(value) {
  12176. var queue = [{ obj: { o: value }, prop: 'o' }];
  12177. var refs = [];
  12178. for (var i = 0; i < queue.length; ++i) {
  12179. var item = queue[i];
  12180. var obj = item.obj[item.prop];
  12181. var keys = Object.keys(obj);
  12182. for (var j = 0; j < keys.length; ++j) {
  12183. var key = keys[j];
  12184. var val = obj[key];
  12185. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  12186. queue.push({ obj: obj, prop: key });
  12187. refs.push(val);
  12188. }
  12189. }
  12190. }
  12191. compactQueue(queue);
  12192. return value;
  12193. };
  12194. var isRegExp = function isRegExp(obj) {
  12195. return Object.prototype.toString.call(obj) === '[object RegExp]';
  12196. };
  12197. var isBuffer = function isBuffer(obj) {
  12198. if (!obj || typeof obj !== 'object') {
  12199. return false;
  12200. }
  12201. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  12202. };
  12203. var combine = function combine(a, b) {
  12204. return [].concat(a, b);
  12205. };
  12206. var maybeMap = function maybeMap(val, fn) {
  12207. if (isArray(val)) {
  12208. var mapped = [];
  12209. for (var i = 0; i < val.length; i += 1) {
  12210. mapped.push(fn(val[i]));
  12211. }
  12212. return mapped;
  12213. }
  12214. return fn(val);
  12215. };
  12216. module.exports = {
  12217. arrayToObject: arrayToObject,
  12218. assign: assign,
  12219. combine: combine,
  12220. compact: compact,
  12221. decode: decode,
  12222. encode: encode,
  12223. isBuffer: isBuffer,
  12224. isRegExp: isRegExp,
  12225. maybeMap: maybeMap,
  12226. merge: merge
  12227. };
  12228. /***/ }),
  12229. /***/ 587:
  12230. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12231. "use strict";
  12232. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  12233. if (k2 === undefined) k2 = k;
  12234. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  12235. }) : (function(o, m, k, k2) {
  12236. if (k2 === undefined) k2 = k;
  12237. o[k2] = m[k];
  12238. }));
  12239. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  12240. Object.defineProperty(o, "default", { enumerable: true, value: v });
  12241. }) : function(o, v) {
  12242. o["default"] = v;
  12243. });
  12244. var __importStar = (this && this.__importStar) || function (mod) {
  12245. if (mod && mod.__esModule) return mod;
  12246. var result = {};
  12247. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  12248. __setModuleDefault(result, mod);
  12249. return result;
  12250. };
  12251. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  12252. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  12253. return new (P || (P = Promise))(function (resolve, reject) {
  12254. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  12255. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  12256. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  12257. step((generator = generator.apply(thisArg, _arguments || [])).next());
  12258. });
  12259. };
  12260. Object.defineProperty(exports, "__esModule", { value: true });
  12261. exports.execute = exports.RetryHelper = void 0;
  12262. const core = __importStar(__webpack_require__(470));
  12263. const defaultMaxAttempts = 3;
  12264. const defaultMinSeconds = 10;
  12265. const defaultMaxSeconds = 20;
  12266. class RetryHelper {
  12267. constructor(maxAttempts = defaultMaxAttempts, minSeconds = defaultMinSeconds, maxSeconds = defaultMaxSeconds) {
  12268. this.maxAttempts = maxAttempts;
  12269. this.minSeconds = Math.floor(minSeconds);
  12270. this.maxSeconds = Math.floor(maxSeconds);
  12271. if (this.minSeconds > this.maxSeconds) {
  12272. throw new Error('min seconds should be less than or equal to max seconds');
  12273. }
  12274. }
  12275. execute(action) {
  12276. var _a;
  12277. return __awaiter(this, void 0, void 0, function* () {
  12278. let attempt = 1;
  12279. while (attempt < this.maxAttempts) {
  12280. // Try
  12281. try {
  12282. return yield action();
  12283. }
  12284. catch (err) {
  12285. core.info((_a = err) === null || _a === void 0 ? void 0 : _a.message);
  12286. }
  12287. // Sleep
  12288. const seconds = this.getSleepAmount();
  12289. core.info(`Waiting ${seconds} seconds before trying again`);
  12290. yield this.sleep(seconds);
  12291. attempt++;
  12292. }
  12293. // Last attempt
  12294. return yield action();
  12295. });
  12296. }
  12297. getSleepAmount() {
  12298. return (Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) +
  12299. this.minSeconds);
  12300. }
  12301. sleep(seconds) {
  12302. return __awaiter(this, void 0, void 0, function* () {
  12303. return new Promise(resolve => setTimeout(resolve, seconds * 1000));
  12304. });
  12305. }
  12306. }
  12307. exports.RetryHelper = RetryHelper;
  12308. function execute(action) {
  12309. return __awaiter(this, void 0, void 0, function* () {
  12310. const retryHelper = new RetryHelper();
  12311. return yield retryHelper.execute(action);
  12312. });
  12313. }
  12314. exports.execute = execute;
  12315. /***/ }),
  12316. /***/ 605:
  12317. /***/ (function(module) {
  12318. module.exports = require("http");
  12319. /***/ }),
  12320. /***/ 614:
  12321. /***/ (function(module) {
  12322. module.exports = require("events");
  12323. /***/ }),
  12324. /***/ 618:
  12325. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12326. "use strict";
  12327. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  12328. if (k2 === undefined) k2 = k;
  12329. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  12330. }) : (function(o, m, k, k2) {
  12331. if (k2 === undefined) k2 = k;
  12332. o[k2] = m[k];
  12333. }));
  12334. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  12335. Object.defineProperty(o, "default", { enumerable: true, value: v });
  12336. }) : function(o, v) {
  12337. o["default"] = v;
  12338. });
  12339. var __importStar = (this && this.__importStar) || function (mod) {
  12340. if (mod && mod.__esModule) return mod;
  12341. var result = {};
  12342. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  12343. __setModuleDefault(result, mod);
  12344. return result;
  12345. };
  12346. Object.defineProperty(exports, "__esModule", { value: true });
  12347. exports.fileExistsSync = exports.existsSync = exports.directoryExistsSync = void 0;
  12348. const fs = __importStar(__webpack_require__(747));
  12349. function directoryExistsSync(path, required) {
  12350. var _a, _b, _c;
  12351. if (!path) {
  12352. throw new Error("Arg 'path' must not be empty");
  12353. }
  12354. let stats;
  12355. try {
  12356. stats = fs.statSync(path);
  12357. }
  12358. catch (error) {
  12359. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  12360. if (!required) {
  12361. return false;
  12362. }
  12363. throw new Error(`Directory '${path}' does not exist`);
  12364. }
  12365. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  12366. }
  12367. if (stats.isDirectory()) {
  12368. return true;
  12369. }
  12370. else if (!required) {
  12371. return false;
  12372. }
  12373. throw new Error(`Directory '${path}' does not exist`);
  12374. }
  12375. exports.directoryExistsSync = directoryExistsSync;
  12376. function existsSync(path) {
  12377. var _a, _b, _c;
  12378. if (!path) {
  12379. throw new Error("Arg 'path' must not be empty");
  12380. }
  12381. try {
  12382. fs.statSync(path);
  12383. }
  12384. catch (error) {
  12385. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  12386. return false;
  12387. }
  12388. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  12389. }
  12390. return true;
  12391. }
  12392. exports.existsSync = existsSync;
  12393. function fileExistsSync(path) {
  12394. var _a, _b, _c;
  12395. if (!path) {
  12396. throw new Error("Arg 'path' must not be empty");
  12397. }
  12398. let stats;
  12399. try {
  12400. stats = fs.statSync(path);
  12401. }
  12402. catch (error) {
  12403. if (((_a = error) === null || _a === void 0 ? void 0 : _a.code) === 'ENOENT') {
  12404. return false;
  12405. }
  12406. throw new Error(`Encountered an error when checking whether path '${path}' exists: ${(_c = (_b = error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : error}`);
  12407. }
  12408. if (!stats.isDirectory()) {
  12409. return true;
  12410. }
  12411. return false;
  12412. }
  12413. exports.fileExistsSync = fileExistsSync;
  12414. /***/ }),
  12415. /***/ 621:
  12416. /***/ (function(module, __unusedexports, __webpack_require__) {
  12417. "use strict";
  12418. const path = __webpack_require__(622);
  12419. const pathKey = __webpack_require__(39);
  12420. module.exports = opts => {
  12421. opts = Object.assign({
  12422. cwd: process.cwd(),
  12423. path: process.env[pathKey()]
  12424. }, opts);
  12425. let prev;
  12426. let pth = path.resolve(opts.cwd);
  12427. const ret = [];
  12428. while (prev !== pth) {
  12429. ret.push(path.join(pth, 'node_modules/.bin'));
  12430. prev = pth;
  12431. pth = path.resolve(pth, '..');
  12432. }
  12433. // ensure the running `node` binary is used
  12434. ret.push(path.dirname(process.execPath));
  12435. return ret.concat(opts.path).join(path.delimiter);
  12436. };
  12437. module.exports.env = opts => {
  12438. opts = Object.assign({
  12439. env: process.env
  12440. }, opts);
  12441. const env = Object.assign({}, opts.env);
  12442. const path = pathKey({env});
  12443. opts.path = env[path];
  12444. env[path] = module.exports(opts);
  12445. return env;
  12446. };
  12447. /***/ }),
  12448. /***/ 622:
  12449. /***/ (function(module) {
  12450. module.exports = require("path");
  12451. /***/ }),
  12452. /***/ 630:
  12453. /***/ (function(module, __unusedexports, __webpack_require__) {
  12454. "use strict";
  12455. var GetIntrinsic = __webpack_require__(915);
  12456. var callBind = __webpack_require__(749);
  12457. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  12458. module.exports = function callBoundIntrinsic(name, allowMissing) {
  12459. var intrinsic = GetIntrinsic(name, !!allowMissing);
  12460. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  12461. return callBind(intrinsic);
  12462. }
  12463. return intrinsic;
  12464. };
  12465. /***/ }),
  12466. /***/ 631:
  12467. /***/ (function(module) {
  12468. module.exports = require("net");
  12469. /***/ }),
  12470. /***/ 634:
  12471. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12472. "use strict";
  12473. Object.defineProperty(exports, "__esModule", {
  12474. value: true
  12475. });
  12476. exports.default = void 0;
  12477. var _regex = _interopRequireDefault(__webpack_require__(525));
  12478. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12479. function validate(uuid) {
  12480. return typeof uuid === 'string' && _regex.default.test(uuid);
  12481. }
  12482. var _default = validate;
  12483. exports.default = _default;
  12484. /***/ }),
  12485. /***/ 638:
  12486. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12487. "use strict";
  12488. Object.defineProperty(exports, "__esModule", {
  12489. value: true
  12490. });
  12491. exports.default = void 0;
  12492. var _v = _interopRequireDefault(__webpack_require__(136));
  12493. var _sha = _interopRequireDefault(__webpack_require__(329));
  12494. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  12495. const v5 = (0, _v.default)('v5', 0x50, _sha.default);
  12496. var _default = v5;
  12497. exports.default = _default;
  12498. /***/ }),
  12499. /***/ 642:
  12500. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  12501. "use strict";
  12502. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  12503. if (k2 === undefined) k2 = k;
  12504. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  12505. }) : (function(o, m, k, k2) {
  12506. if (k2 === undefined) k2 = k;
  12507. o[k2] = m[k];
  12508. }));
  12509. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  12510. Object.defineProperty(o, "default", { enumerable: true, value: v });
  12511. }) : function(o, v) {
  12512. o["default"] = v;
  12513. });
  12514. var __importStar = (this && this.__importStar) || function (mod) {
  12515. if (mod && mod.__esModule) return mod;
  12516. var result = {};
  12517. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  12518. __setModuleDefault(result, mod);
  12519. return result;
  12520. };
  12521. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  12522. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  12523. return new (P || (P = Promise))(function (resolve, reject) {
  12524. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  12525. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  12526. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  12527. step((generator = generator.apply(thisArg, _arguments || [])).next());
  12528. });
  12529. };
  12530. Object.defineProperty(exports, "__esModule", { value: true });
  12531. exports.getOrganizationId = void 0;
  12532. const core = __importStar(__webpack_require__(470));
  12533. const fs = __importStar(__webpack_require__(747));
  12534. /**
  12535. * Gets the organization ID of the running workflow or undefined if the value cannot be loaded from the GITHUB_EVENT_PATH
  12536. */
  12537. function getOrganizationId() {
  12538. var _a, _b;
  12539. return __awaiter(this, void 0, void 0, function* () {
  12540. try {
  12541. const eventPath = process.env.GITHUB_EVENT_PATH;
  12542. if (!eventPath) {
  12543. core.debug(`GITHUB_EVENT_PATH is not defined`);
  12544. return;
  12545. }
  12546. const content = yield fs.promises.readFile(eventPath, { encoding: 'utf8' });
  12547. const event = JSON.parse(content);
  12548. const id = (_b = (_a = event === null || event === void 0 ? void 0 : event.repository) === null || _a === void 0 ? void 0 : _a.owner) === null || _b === void 0 ? void 0 : _b.id;
  12549. if (typeof id !== 'number') {
  12550. core.debug('Repository owner ID not found within GITHUB event info');
  12551. return;
  12552. }
  12553. return id;
  12554. }
  12555. catch (err) {
  12556. core.debug(`Unable to load organization ID from GITHUB_EVENT_PATH: ${err
  12557. .message || err}`);
  12558. }
  12559. });
  12560. }
  12561. exports.getOrganizationId = getOrganizationId;
  12562. /***/ }),
  12563. /***/ 649:
  12564. /***/ (function(module) {
  12565. "use strict";
  12566. module.exports.mixin = function mixin(target, source) {
  12567. const keys = Object.getOwnPropertyNames(source);
  12568. for (let i = 0; i < keys.length; ++i) {
  12569. Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
  12570. }
  12571. };
  12572. module.exports.wrapperSymbol = Symbol("wrapper");
  12573. module.exports.implSymbol = Symbol("impl");
  12574. module.exports.wrapperForImpl = function (impl) {
  12575. return impl[module.exports.wrapperSymbol];
  12576. };
  12577. module.exports.implForWrapper = function (wrapper) {
  12578. return wrapper[module.exports.implSymbol];
  12579. };
  12580. /***/ }),
  12581. /***/ 654:
  12582. /***/ (function(module) {
  12583. // This is not the set of all possible signals.
  12584. //
  12585. // It IS, however, the set of all signals that trigger
  12586. // an exit on either Linux or BSD systems. Linux is a
  12587. // superset of the signal names supported on BSD, and
  12588. // the unknown signals just fail to register, so we can
  12589. // catch that easily enough.
  12590. //
  12591. // Don't bother with SIGKILL. It's uncatchable, which
  12592. // means that we can't fire any callbacks anyway.
  12593. //
  12594. // If a user does happen to register a handler on a non-
  12595. // fatal signal like SIGWINCH or something, and then
  12596. // exit, it'll end up firing `process.emit('exit')`, so
  12597. // the handler will be fired anyway.
  12598. //
  12599. // SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
  12600. // artificially, inherently leave the process in a
  12601. // state from which it is not safe to try and enter JS
  12602. // listeners.
  12603. module.exports = [
  12604. 'SIGABRT',
  12605. 'SIGALRM',
  12606. 'SIGHUP',
  12607. 'SIGINT',
  12608. 'SIGTERM'
  12609. ]
  12610. if (process.platform !== 'win32') {
  12611. module.exports.push(
  12612. 'SIGVTALRM',
  12613. 'SIGXCPU',
  12614. 'SIGXFSZ',
  12615. 'SIGUSR2',
  12616. 'SIGTRAP',
  12617. 'SIGSYS',
  12618. 'SIGQUIT',
  12619. 'SIGIOT'
  12620. // should detect profiler and enable/disable accordingly.
  12621. // see #21
  12622. // 'SIGPROF'
  12623. )
  12624. }
  12625. if (process.platform === 'linux') {
  12626. module.exports.push(
  12627. 'SIGIO',
  12628. 'SIGPOLL',
  12629. 'SIGPWR',
  12630. 'SIGSTKFLT',
  12631. 'SIGUNUSED'
  12632. )
  12633. }
  12634. /***/ }),
  12635. /***/ 656:
  12636. /***/ (function(module, exports) {
  12637. exports = module.exports = SemVer
  12638. var debug
  12639. /* istanbul ignore next */
  12640. if (typeof process === 'object' &&
  12641. process.env &&
  12642. process.env.NODE_DEBUG &&
  12643. /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
  12644. debug = function () {
  12645. var args = Array.prototype.slice.call(arguments, 0)
  12646. args.unshift('SEMVER')
  12647. console.log.apply(console, args)
  12648. }
  12649. } else {
  12650. debug = function () {}
  12651. }
  12652. // Note: this is the semver.org version of the spec that it implements
  12653. // Not necessarily the package version of this code.
  12654. exports.SEMVER_SPEC_VERSION = '2.0.0'
  12655. var MAX_LENGTH = 256
  12656. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
  12657. /* istanbul ignore next */ 9007199254740991
  12658. // Max safe segment length for coercion.
  12659. var MAX_SAFE_COMPONENT_LENGTH = 16
  12660. // The actual regexps go on exports.re
  12661. var re = exports.re = []
  12662. var src = exports.src = []
  12663. var t = exports.tokens = {}
  12664. var R = 0
  12665. function tok (n) {
  12666. t[n] = R++
  12667. }
  12668. // The following Regular Expressions can be used for tokenizing,
  12669. // validating, and parsing SemVer version strings.
  12670. // ## Numeric Identifier
  12671. // A single `0`, or a non-zero digit followed by zero or more digits.
  12672. tok('NUMERICIDENTIFIER')
  12673. src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*'
  12674. tok('NUMERICIDENTIFIERLOOSE')
  12675. src[t.NUMERICIDENTIFIERLOOSE] = '[0-9]+'
  12676. // ## Non-numeric Identifier
  12677. // Zero or more digits, followed by a letter or hyphen, and then zero or
  12678. // more letters, digits, or hyphens.
  12679. tok('NONNUMERICIDENTIFIER')
  12680. src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
  12681. // ## Main Version
  12682. // Three dot-separated numeric identifiers.
  12683. tok('MAINVERSION')
  12684. src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  12685. '(' + src[t.NUMERICIDENTIFIER] + ')\\.' +
  12686. '(' + src[t.NUMERICIDENTIFIER] + ')'
  12687. tok('MAINVERSIONLOOSE')
  12688. src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  12689. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' +
  12690. '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')'
  12691. // ## Pre-release Version Identifier
  12692. // A numeric identifier, or a non-numeric identifier.
  12693. tok('PRERELEASEIDENTIFIER')
  12694. src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] +
  12695. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  12696. tok('PRERELEASEIDENTIFIERLOOSE')
  12697. src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] +
  12698. '|' + src[t.NONNUMERICIDENTIFIER] + ')'
  12699. // ## Pre-release Version
  12700. // Hyphen, followed by one or more dot-separated pre-release version
  12701. // identifiers.
  12702. tok('PRERELEASE')
  12703. src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] +
  12704. '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))'
  12705. tok('PRERELEASELOOSE')
  12706. src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] +
  12707. '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))'
  12708. // ## Build Metadata Identifier
  12709. // Any combination of digits, letters, or hyphens.
  12710. tok('BUILDIDENTIFIER')
  12711. src[t.BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
  12712. // ## Build Metadata
  12713. // Plus sign, followed by one or more period-separated build metadata
  12714. // identifiers.
  12715. tok('BUILD')
  12716. src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] +
  12717. '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))'
  12718. // ## Full Version String
  12719. // A main version, followed optionally by a pre-release version and
  12720. // build metadata.
  12721. // Note that the only major, minor, patch, and pre-release sections of
  12722. // the version string are capturing groups. The build metadata is not a
  12723. // capturing group, because it should not ever be used in version
  12724. // comparison.
  12725. tok('FULL')
  12726. tok('FULLPLAIN')
  12727. src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] +
  12728. src[t.PRERELEASE] + '?' +
  12729. src[t.BUILD] + '?'
  12730. src[t.FULL] = '^' + src[t.FULLPLAIN] + '$'
  12731. // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  12732. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  12733. // common in the npm registry.
  12734. tok('LOOSEPLAIN')
  12735. src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] +
  12736. src[t.PRERELEASELOOSE] + '?' +
  12737. src[t.BUILD] + '?'
  12738. tok('LOOSE')
  12739. src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$'
  12740. tok('GTLT')
  12741. src[t.GTLT] = '((?:<|>)?=?)'
  12742. // Something like "2.*" or "1.2.x".
  12743. // Note that "x.x" is a valid xRange identifer, meaning "any version"
  12744. // Only the first item is strictly required.
  12745. tok('XRANGEIDENTIFIERLOOSE')
  12746. src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
  12747. tok('XRANGEIDENTIFIER')
  12748. src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*'
  12749. tok('XRANGEPLAIN')
  12750. src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' +
  12751. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  12752. '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' +
  12753. '(?:' + src[t.PRERELEASE] + ')?' +
  12754. src[t.BUILD] + '?' +
  12755. ')?)?'
  12756. tok('XRANGEPLAINLOOSE')
  12757. src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12758. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12759. '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' +
  12760. '(?:' + src[t.PRERELEASELOOSE] + ')?' +
  12761. src[t.BUILD] + '?' +
  12762. ')?)?'
  12763. tok('XRANGE')
  12764. src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$'
  12765. tok('XRANGELOOSE')
  12766. src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$'
  12767. // Coercion.
  12768. // Extract anything that could conceivably be a part of a valid semver
  12769. tok('COERCE')
  12770. src[t.COERCE] = '(^|[^\\d])' +
  12771. '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
  12772. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  12773. '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
  12774. '(?:$|[^\\d])'
  12775. tok('COERCERTL')
  12776. re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g')
  12777. // Tilde ranges.
  12778. // Meaning is "reasonably at or greater than"
  12779. tok('LONETILDE')
  12780. src[t.LONETILDE] = '(?:~>?)'
  12781. tok('TILDETRIM')
  12782. src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+'
  12783. re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g')
  12784. var tildeTrimReplace = '$1~'
  12785. tok('TILDE')
  12786. src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$'
  12787. tok('TILDELOOSE')
  12788. src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$'
  12789. // Caret ranges.
  12790. // Meaning is "at least and backwards compatible with"
  12791. tok('LONECARET')
  12792. src[t.LONECARET] = '(?:\\^)'
  12793. tok('CARETTRIM')
  12794. src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+'
  12795. re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g')
  12796. var caretTrimReplace = '$1^'
  12797. tok('CARET')
  12798. src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$'
  12799. tok('CARETLOOSE')
  12800. src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$'
  12801. // A simple gt/lt/eq thing, or just "" to indicate "any version"
  12802. tok('COMPARATORLOOSE')
  12803. src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$'
  12804. tok('COMPARATOR')
  12805. src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$'
  12806. // An expression to strip any whitespace between the gtlt and the thing
  12807. // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  12808. tok('COMPARATORTRIM')
  12809. src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] +
  12810. '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')'
  12811. // this one has to use the /g flag
  12812. re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g')
  12813. var comparatorTrimReplace = '$1$2$3'
  12814. // Something like `1.2.3 - 1.2.4`
  12815. // Note that these all use the loose form, because they'll be
  12816. // checked against either the strict or loose comparator form
  12817. // later.
  12818. tok('HYPHENRANGE')
  12819. src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' +
  12820. '\\s+-\\s+' +
  12821. '(' + src[t.XRANGEPLAIN] + ')' +
  12822. '\\s*$'
  12823. tok('HYPHENRANGELOOSE')
  12824. src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' +
  12825. '\\s+-\\s+' +
  12826. '(' + src[t.XRANGEPLAINLOOSE] + ')' +
  12827. '\\s*$'
  12828. // Star ranges basically just allow anything at all.
  12829. tok('STAR')
  12830. src[t.STAR] = '(<|>)?=?\\s*\\*'
  12831. // Compile to actual regexp objects.
  12832. // All are flag-free, unless they were created above with a flag.
  12833. for (var i = 0; i < R; i++) {
  12834. debug(i, src[i])
  12835. if (!re[i]) {
  12836. re[i] = new RegExp(src[i])
  12837. }
  12838. }
  12839. exports.parse = parse
  12840. function parse (version, options) {
  12841. if (!options || typeof options !== 'object') {
  12842. options = {
  12843. loose: !!options,
  12844. includePrerelease: false
  12845. }
  12846. }
  12847. if (version instanceof SemVer) {
  12848. return version
  12849. }
  12850. if (typeof version !== 'string') {
  12851. return null
  12852. }
  12853. if (version.length > MAX_LENGTH) {
  12854. return null
  12855. }
  12856. var r = options.loose ? re[t.LOOSE] : re[t.FULL]
  12857. if (!r.test(version)) {
  12858. return null
  12859. }
  12860. try {
  12861. return new SemVer(version, options)
  12862. } catch (er) {
  12863. return null
  12864. }
  12865. }
  12866. exports.valid = valid
  12867. function valid (version, options) {
  12868. var v = parse(version, options)
  12869. return v ? v.version : null
  12870. }
  12871. exports.clean = clean
  12872. function clean (version, options) {
  12873. var s = parse(version.trim().replace(/^[=v]+/, ''), options)
  12874. return s ? s.version : null
  12875. }
  12876. exports.SemVer = SemVer
  12877. function SemVer (version, options) {
  12878. if (!options || typeof options !== 'object') {
  12879. options = {
  12880. loose: !!options,
  12881. includePrerelease: false
  12882. }
  12883. }
  12884. if (version instanceof SemVer) {
  12885. if (version.loose === options.loose) {
  12886. return version
  12887. } else {
  12888. version = version.version
  12889. }
  12890. } else if (typeof version !== 'string') {
  12891. throw new TypeError('Invalid Version: ' + version)
  12892. }
  12893. if (version.length > MAX_LENGTH) {
  12894. throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  12895. }
  12896. if (!(this instanceof SemVer)) {
  12897. return new SemVer(version, options)
  12898. }
  12899. debug('SemVer', version, options)
  12900. this.options = options
  12901. this.loose = !!options.loose
  12902. var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
  12903. if (!m) {
  12904. throw new TypeError('Invalid Version: ' + version)
  12905. }
  12906. this.raw = version
  12907. // these are actually numbers
  12908. this.major = +m[1]
  12909. this.minor = +m[2]
  12910. this.patch = +m[3]
  12911. if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
  12912. throw new TypeError('Invalid major version')
  12913. }
  12914. if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
  12915. throw new TypeError('Invalid minor version')
  12916. }
  12917. if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
  12918. throw new TypeError('Invalid patch version')
  12919. }
  12920. // numberify any prerelease numeric ids
  12921. if (!m[4]) {
  12922. this.prerelease = []
  12923. } else {
  12924. this.prerelease = m[4].split('.').map(function (id) {
  12925. if (/^[0-9]+$/.test(id)) {
  12926. var num = +id
  12927. if (num >= 0 && num < MAX_SAFE_INTEGER) {
  12928. return num
  12929. }
  12930. }
  12931. return id
  12932. })
  12933. }
  12934. this.build = m[5] ? m[5].split('.') : []
  12935. this.format()
  12936. }
  12937. SemVer.prototype.format = function () {
  12938. this.version = this.major + '.' + this.minor + '.' + this.patch
  12939. if (this.prerelease.length) {
  12940. this.version += '-' + this.prerelease.join('.')
  12941. }
  12942. return this.version
  12943. }
  12944. SemVer.prototype.toString = function () {
  12945. return this.version
  12946. }
  12947. SemVer.prototype.compare = function (other) {
  12948. debug('SemVer.compare', this.version, this.options, other)
  12949. if (!(other instanceof SemVer)) {
  12950. other = new SemVer(other, this.options)
  12951. }
  12952. return this.compareMain(other) || this.comparePre(other)
  12953. }
  12954. SemVer.prototype.compareMain = function (other) {
  12955. if (!(other instanceof SemVer)) {
  12956. other = new SemVer(other, this.options)
  12957. }
  12958. return compareIdentifiers(this.major, other.major) ||
  12959. compareIdentifiers(this.minor, other.minor) ||
  12960. compareIdentifiers(this.patch, other.patch)
  12961. }
  12962. SemVer.prototype.comparePre = function (other) {
  12963. if (!(other instanceof SemVer)) {
  12964. other = new SemVer(other, this.options)
  12965. }
  12966. // NOT having a prerelease is > having one
  12967. if (this.prerelease.length && !other.prerelease.length) {
  12968. return -1
  12969. } else if (!this.prerelease.length && other.prerelease.length) {
  12970. return 1
  12971. } else if (!this.prerelease.length && !other.prerelease.length) {
  12972. return 0
  12973. }
  12974. var i = 0
  12975. do {
  12976. var a = this.prerelease[i]
  12977. var b = other.prerelease[i]
  12978. debug('prerelease compare', i, a, b)
  12979. if (a === undefined && b === undefined) {
  12980. return 0
  12981. } else if (b === undefined) {
  12982. return 1
  12983. } else if (a === undefined) {
  12984. return -1
  12985. } else if (a === b) {
  12986. continue
  12987. } else {
  12988. return compareIdentifiers(a, b)
  12989. }
  12990. } while (++i)
  12991. }
  12992. SemVer.prototype.compareBuild = function (other) {
  12993. if (!(other instanceof SemVer)) {
  12994. other = new SemVer(other, this.options)
  12995. }
  12996. var i = 0
  12997. do {
  12998. var a = this.build[i]
  12999. var b = other.build[i]
  13000. debug('prerelease compare', i, a, b)
  13001. if (a === undefined && b === undefined) {
  13002. return 0
  13003. } else if (b === undefined) {
  13004. return 1
  13005. } else if (a === undefined) {
  13006. return -1
  13007. } else if (a === b) {
  13008. continue
  13009. } else {
  13010. return compareIdentifiers(a, b)
  13011. }
  13012. } while (++i)
  13013. }
  13014. // preminor will bump the version up to the next minor release, and immediately
  13015. // down to pre-release. premajor and prepatch work the same way.
  13016. SemVer.prototype.inc = function (release, identifier) {
  13017. switch (release) {
  13018. case 'premajor':
  13019. this.prerelease.length = 0
  13020. this.patch = 0
  13021. this.minor = 0
  13022. this.major++
  13023. this.inc('pre', identifier)
  13024. break
  13025. case 'preminor':
  13026. this.prerelease.length = 0
  13027. this.patch = 0
  13028. this.minor++
  13029. this.inc('pre', identifier)
  13030. break
  13031. case 'prepatch':
  13032. // If this is already a prerelease, it will bump to the next version
  13033. // drop any prereleases that might already exist, since they are not
  13034. // relevant at this point.
  13035. this.prerelease.length = 0
  13036. this.inc('patch', identifier)
  13037. this.inc('pre', identifier)
  13038. break
  13039. // If the input is a non-prerelease version, this acts the same as
  13040. // prepatch.
  13041. case 'prerelease':
  13042. if (this.prerelease.length === 0) {
  13043. this.inc('patch', identifier)
  13044. }
  13045. this.inc('pre', identifier)
  13046. break
  13047. case 'major':
  13048. // If this is a pre-major version, bump up to the same major version.
  13049. // Otherwise increment major.
  13050. // 1.0.0-5 bumps to 1.0.0
  13051. // 1.1.0 bumps to 2.0.0
  13052. if (this.minor !== 0 ||
  13053. this.patch !== 0 ||
  13054. this.prerelease.length === 0) {
  13055. this.major++
  13056. }
  13057. this.minor = 0
  13058. this.patch = 0
  13059. this.prerelease = []
  13060. break
  13061. case 'minor':
  13062. // If this is a pre-minor version, bump up to the same minor version.
  13063. // Otherwise increment minor.
  13064. // 1.2.0-5 bumps to 1.2.0
  13065. // 1.2.1 bumps to 1.3.0
  13066. if (this.patch !== 0 || this.prerelease.length === 0) {
  13067. this.minor++
  13068. }
  13069. this.patch = 0
  13070. this.prerelease = []
  13071. break
  13072. case 'patch':
  13073. // If this is not a pre-release version, it will increment the patch.
  13074. // If it is a pre-release it will bump up to the same patch version.
  13075. // 1.2.0-5 patches to 1.2.0
  13076. // 1.2.0 patches to 1.2.1
  13077. if (this.prerelease.length === 0) {
  13078. this.patch++
  13079. }
  13080. this.prerelease = []
  13081. break
  13082. // This probably shouldn't be used publicly.
  13083. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
  13084. case 'pre':
  13085. if (this.prerelease.length === 0) {
  13086. this.prerelease = [0]
  13087. } else {
  13088. var i = this.prerelease.length
  13089. while (--i >= 0) {
  13090. if (typeof this.prerelease[i] === 'number') {
  13091. this.prerelease[i]++
  13092. i = -2
  13093. }
  13094. }
  13095. if (i === -1) {
  13096. // didn't increment anything
  13097. this.prerelease.push(0)
  13098. }
  13099. }
  13100. if (identifier) {
  13101. // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
  13102. // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
  13103. if (this.prerelease[0] === identifier) {
  13104. if (isNaN(this.prerelease[1])) {
  13105. this.prerelease = [identifier, 0]
  13106. }
  13107. } else {
  13108. this.prerelease = [identifier, 0]
  13109. }
  13110. }
  13111. break
  13112. default:
  13113. throw new Error('invalid increment argument: ' + release)
  13114. }
  13115. this.format()
  13116. this.raw = this.version
  13117. return this
  13118. }
  13119. exports.inc = inc
  13120. function inc (version, release, loose, identifier) {
  13121. if (typeof (loose) === 'string') {
  13122. identifier = loose
  13123. loose = undefined
  13124. }
  13125. try {
  13126. return new SemVer(version, loose).inc(release, identifier).version
  13127. } catch (er) {
  13128. return null
  13129. }
  13130. }
  13131. exports.diff = diff
  13132. function diff (version1, version2) {
  13133. if (eq(version1, version2)) {
  13134. return null
  13135. } else {
  13136. var v1 = parse(version1)
  13137. var v2 = parse(version2)
  13138. var prefix = ''
  13139. if (v1.prerelease.length || v2.prerelease.length) {
  13140. prefix = 'pre'
  13141. var defaultResult = 'prerelease'
  13142. }
  13143. for (var key in v1) {
  13144. if (key === 'major' || key === 'minor' || key === 'patch') {
  13145. if (v1[key] !== v2[key]) {
  13146. return prefix + key
  13147. }
  13148. }
  13149. }
  13150. return defaultResult // may be undefined
  13151. }
  13152. }
  13153. exports.compareIdentifiers = compareIdentifiers
  13154. var numeric = /^[0-9]+$/
  13155. function compareIdentifiers (a, b) {
  13156. var anum = numeric.test(a)
  13157. var bnum = numeric.test(b)
  13158. if (anum && bnum) {
  13159. a = +a
  13160. b = +b
  13161. }
  13162. return a === b ? 0
  13163. : (anum && !bnum) ? -1
  13164. : (bnum && !anum) ? 1
  13165. : a < b ? -1
  13166. : 1
  13167. }
  13168. exports.rcompareIdentifiers = rcompareIdentifiers
  13169. function rcompareIdentifiers (a, b) {
  13170. return compareIdentifiers(b, a)
  13171. }
  13172. exports.major = major
  13173. function major (a, loose) {
  13174. return new SemVer(a, loose).major
  13175. }
  13176. exports.minor = minor
  13177. function minor (a, loose) {
  13178. return new SemVer(a, loose).minor
  13179. }
  13180. exports.patch = patch
  13181. function patch (a, loose) {
  13182. return new SemVer(a, loose).patch
  13183. }
  13184. exports.compare = compare
  13185. function compare (a, b, loose) {
  13186. return new SemVer(a, loose).compare(new SemVer(b, loose))
  13187. }
  13188. exports.compareLoose = compareLoose
  13189. function compareLoose (a, b) {
  13190. return compare(a, b, true)
  13191. }
  13192. exports.compareBuild = compareBuild
  13193. function compareBuild (a, b, loose) {
  13194. var versionA = new SemVer(a, loose)
  13195. var versionB = new SemVer(b, loose)
  13196. return versionA.compare(versionB) || versionA.compareBuild(versionB)
  13197. }
  13198. exports.rcompare = rcompare
  13199. function rcompare (a, b, loose) {
  13200. return compare(b, a, loose)
  13201. }
  13202. exports.sort = sort
  13203. function sort (list, loose) {
  13204. return list.sort(function (a, b) {
  13205. return exports.compareBuild(a, b, loose)
  13206. })
  13207. }
  13208. exports.rsort = rsort
  13209. function rsort (list, loose) {
  13210. return list.sort(function (a, b) {
  13211. return exports.compareBuild(b, a, loose)
  13212. })
  13213. }
  13214. exports.gt = gt
  13215. function gt (a, b, loose) {
  13216. return compare(a, b, loose) > 0
  13217. }
  13218. exports.lt = lt
  13219. function lt (a, b, loose) {
  13220. return compare(a, b, loose) < 0
  13221. }
  13222. exports.eq = eq
  13223. function eq (a, b, loose) {
  13224. return compare(a, b, loose) === 0
  13225. }
  13226. exports.neq = neq
  13227. function neq (a, b, loose) {
  13228. return compare(a, b, loose) !== 0
  13229. }
  13230. exports.gte = gte
  13231. function gte (a, b, loose) {
  13232. return compare(a, b, loose) >= 0
  13233. }
  13234. exports.lte = lte
  13235. function lte (a, b, loose) {
  13236. return compare(a, b, loose) <= 0
  13237. }
  13238. exports.cmp = cmp
  13239. function cmp (a, op, b, loose) {
  13240. switch (op) {
  13241. case '===':
  13242. if (typeof a === 'object')
  13243. a = a.version
  13244. if (typeof b === 'object')
  13245. b = b.version
  13246. return a === b
  13247. case '!==':
  13248. if (typeof a === 'object')
  13249. a = a.version
  13250. if (typeof b === 'object')
  13251. b = b.version
  13252. return a !== b
  13253. case '':
  13254. case '=':
  13255. case '==':
  13256. return eq(a, b, loose)
  13257. case '!=':
  13258. return neq(a, b, loose)
  13259. case '>':
  13260. return gt(a, b, loose)
  13261. case '>=':
  13262. return gte(a, b, loose)
  13263. case '<':
  13264. return lt(a, b, loose)
  13265. case '<=':
  13266. return lte(a, b, loose)
  13267. default:
  13268. throw new TypeError('Invalid operator: ' + op)
  13269. }
  13270. }
  13271. exports.Comparator = Comparator
  13272. function Comparator (comp, options) {
  13273. if (!options || typeof options !== 'object') {
  13274. options = {
  13275. loose: !!options,
  13276. includePrerelease: false
  13277. }
  13278. }
  13279. if (comp instanceof Comparator) {
  13280. if (comp.loose === !!options.loose) {
  13281. return comp
  13282. } else {
  13283. comp = comp.value
  13284. }
  13285. }
  13286. if (!(this instanceof Comparator)) {
  13287. return new Comparator(comp, options)
  13288. }
  13289. debug('comparator', comp, options)
  13290. this.options = options
  13291. this.loose = !!options.loose
  13292. this.parse(comp)
  13293. if (this.semver === ANY) {
  13294. this.value = ''
  13295. } else {
  13296. this.value = this.operator + this.semver.version
  13297. }
  13298. debug('comp', this)
  13299. }
  13300. var ANY = {}
  13301. Comparator.prototype.parse = function (comp) {
  13302. var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  13303. var m = comp.match(r)
  13304. if (!m) {
  13305. throw new TypeError('Invalid comparator: ' + comp)
  13306. }
  13307. this.operator = m[1] !== undefined ? m[1] : ''
  13308. if (this.operator === '=') {
  13309. this.operator = ''
  13310. }
  13311. // if it literally is just '>' or '' then allow anything.
  13312. if (!m[2]) {
  13313. this.semver = ANY
  13314. } else {
  13315. this.semver = new SemVer(m[2], this.options.loose)
  13316. }
  13317. }
  13318. Comparator.prototype.toString = function () {
  13319. return this.value
  13320. }
  13321. Comparator.prototype.test = function (version) {
  13322. debug('Comparator.test', version, this.options.loose)
  13323. if (this.semver === ANY || version === ANY) {
  13324. return true
  13325. }
  13326. if (typeof version === 'string') {
  13327. try {
  13328. version = new SemVer(version, this.options)
  13329. } catch (er) {
  13330. return false
  13331. }
  13332. }
  13333. return cmp(version, this.operator, this.semver, this.options)
  13334. }
  13335. Comparator.prototype.intersects = function (comp, options) {
  13336. if (!(comp instanceof Comparator)) {
  13337. throw new TypeError('a Comparator is required')
  13338. }
  13339. if (!options || typeof options !== 'object') {
  13340. options = {
  13341. loose: !!options,
  13342. includePrerelease: false
  13343. }
  13344. }
  13345. var rangeTmp
  13346. if (this.operator === '') {
  13347. if (this.value === '') {
  13348. return true
  13349. }
  13350. rangeTmp = new Range(comp.value, options)
  13351. return satisfies(this.value, rangeTmp, options)
  13352. } else if (comp.operator === '') {
  13353. if (comp.value === '') {
  13354. return true
  13355. }
  13356. rangeTmp = new Range(this.value, options)
  13357. return satisfies(comp.semver, rangeTmp, options)
  13358. }
  13359. var sameDirectionIncreasing =
  13360. (this.operator === '>=' || this.operator === '>') &&
  13361. (comp.operator === '>=' || comp.operator === '>')
  13362. var sameDirectionDecreasing =
  13363. (this.operator === '<=' || this.operator === '<') &&
  13364. (comp.operator === '<=' || comp.operator === '<')
  13365. var sameSemVer = this.semver.version === comp.semver.version
  13366. var differentDirectionsInclusive =
  13367. (this.operator === '>=' || this.operator === '<=') &&
  13368. (comp.operator === '>=' || comp.operator === '<=')
  13369. var oppositeDirectionsLessThan =
  13370. cmp(this.semver, '<', comp.semver, options) &&
  13371. ((this.operator === '>=' || this.operator === '>') &&
  13372. (comp.operator === '<=' || comp.operator === '<'))
  13373. var oppositeDirectionsGreaterThan =
  13374. cmp(this.semver, '>', comp.semver, options) &&
  13375. ((this.operator === '<=' || this.operator === '<') &&
  13376. (comp.operator === '>=' || comp.operator === '>'))
  13377. return sameDirectionIncreasing || sameDirectionDecreasing ||
  13378. (sameSemVer && differentDirectionsInclusive) ||
  13379. oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
  13380. }
  13381. exports.Range = Range
  13382. function Range (range, options) {
  13383. if (!options || typeof options !== 'object') {
  13384. options = {
  13385. loose: !!options,
  13386. includePrerelease: false
  13387. }
  13388. }
  13389. if (range instanceof Range) {
  13390. if (range.loose === !!options.loose &&
  13391. range.includePrerelease === !!options.includePrerelease) {
  13392. return range
  13393. } else {
  13394. return new Range(range.raw, options)
  13395. }
  13396. }
  13397. if (range instanceof Comparator) {
  13398. return new Range(range.value, options)
  13399. }
  13400. if (!(this instanceof Range)) {
  13401. return new Range(range, options)
  13402. }
  13403. this.options = options
  13404. this.loose = !!options.loose
  13405. this.includePrerelease = !!options.includePrerelease
  13406. // First, split based on boolean or ||
  13407. this.raw = range
  13408. this.set = range.split(/\s*\|\|\s*/).map(function (range) {
  13409. return this.parseRange(range.trim())
  13410. }, this).filter(function (c) {
  13411. // throw out any that are not relevant for whatever reason
  13412. return c.length
  13413. })
  13414. if (!this.set.length) {
  13415. throw new TypeError('Invalid SemVer Range: ' + range)
  13416. }
  13417. this.format()
  13418. }
  13419. Range.prototype.format = function () {
  13420. this.range = this.set.map(function (comps) {
  13421. return comps.join(' ').trim()
  13422. }).join('||').trim()
  13423. return this.range
  13424. }
  13425. Range.prototype.toString = function () {
  13426. return this.range
  13427. }
  13428. Range.prototype.parseRange = function (range) {
  13429. var loose = this.options.loose
  13430. range = range.trim()
  13431. // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
  13432. var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
  13433. range = range.replace(hr, hyphenReplace)
  13434. debug('hyphen replace', range)
  13435. // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
  13436. range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
  13437. debug('comparator trim', range, re[t.COMPARATORTRIM])
  13438. // `~ 1.2.3` => `~1.2.3`
  13439. range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
  13440. // `^ 1.2.3` => `^1.2.3`
  13441. range = range.replace(re[t.CARETTRIM], caretTrimReplace)
  13442. // normalize spaces
  13443. range = range.split(/\s+/).join(' ')
  13444. // At this point, the range is completely trimmed and
  13445. // ready to be split into comparators.
  13446. var compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
  13447. var set = range.split(' ').map(function (comp) {
  13448. return parseComparator(comp, this.options)
  13449. }, this).join(' ').split(/\s+/)
  13450. if (this.options.loose) {
  13451. // in loose mode, throw out any that are not valid comparators
  13452. set = set.filter(function (comp) {
  13453. return !!comp.match(compRe)
  13454. })
  13455. }
  13456. set = set.map(function (comp) {
  13457. return new Comparator(comp, this.options)
  13458. }, this)
  13459. return set
  13460. }
  13461. Range.prototype.intersects = function (range, options) {
  13462. if (!(range instanceof Range)) {
  13463. throw new TypeError('a Range is required')
  13464. }
  13465. return this.set.some(function (thisComparators) {
  13466. return (
  13467. isSatisfiable(thisComparators, options) &&
  13468. range.set.some(function (rangeComparators) {
  13469. return (
  13470. isSatisfiable(rangeComparators, options) &&
  13471. thisComparators.every(function (thisComparator) {
  13472. return rangeComparators.every(function (rangeComparator) {
  13473. return thisComparator.intersects(rangeComparator, options)
  13474. })
  13475. })
  13476. )
  13477. })
  13478. )
  13479. })
  13480. }
  13481. // take a set of comparators and determine whether there
  13482. // exists a version which can satisfy it
  13483. function isSatisfiable (comparators, options) {
  13484. var result = true
  13485. var remainingComparators = comparators.slice()
  13486. var testComparator = remainingComparators.pop()
  13487. while (result && remainingComparators.length) {
  13488. result = remainingComparators.every(function (otherComparator) {
  13489. return testComparator.intersects(otherComparator, options)
  13490. })
  13491. testComparator = remainingComparators.pop()
  13492. }
  13493. return result
  13494. }
  13495. // Mostly just for testing and legacy API reasons
  13496. exports.toComparators = toComparators
  13497. function toComparators (range, options) {
  13498. return new Range(range, options).set.map(function (comp) {
  13499. return comp.map(function (c) {
  13500. return c.value
  13501. }).join(' ').trim().split(' ')
  13502. })
  13503. }
  13504. // comprised of xranges, tildes, stars, and gtlt's at this point.
  13505. // already replaced the hyphen ranges
  13506. // turn into a set of JUST comparators.
  13507. function parseComparator (comp, options) {
  13508. debug('comp', comp, options)
  13509. comp = replaceCarets(comp, options)
  13510. debug('caret', comp)
  13511. comp = replaceTildes(comp, options)
  13512. debug('tildes', comp)
  13513. comp = replaceXRanges(comp, options)
  13514. debug('xrange', comp)
  13515. comp = replaceStars(comp, options)
  13516. debug('stars', comp)
  13517. return comp
  13518. }
  13519. function isX (id) {
  13520. return !id || id.toLowerCase() === 'x' || id === '*'
  13521. }
  13522. // ~, ~> --> * (any, kinda silly)
  13523. // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  13524. // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  13525. // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  13526. // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  13527. // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  13528. function replaceTildes (comp, options) {
  13529. return comp.trim().split(/\s+/).map(function (comp) {
  13530. return replaceTilde(comp, options)
  13531. }).join(' ')
  13532. }
  13533. function replaceTilde (comp, options) {
  13534. var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
  13535. return comp.replace(r, function (_, M, m, p, pr) {
  13536. debug('tilde', comp, _, M, m, p, pr)
  13537. var ret
  13538. if (isX(M)) {
  13539. ret = ''
  13540. } else if (isX(m)) {
  13541. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  13542. } else if (isX(p)) {
  13543. // ~1.2 == >=1.2.0 <1.3.0
  13544. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  13545. } else if (pr) {
  13546. debug('replaceTilde pr', pr)
  13547. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  13548. ' <' + M + '.' + (+m + 1) + '.0'
  13549. } else {
  13550. // ~1.2.3 == >=1.2.3 <1.3.0
  13551. ret = '>=' + M + '.' + m + '.' + p +
  13552. ' <' + M + '.' + (+m + 1) + '.0'
  13553. }
  13554. debug('tilde return', ret)
  13555. return ret
  13556. })
  13557. }
  13558. // ^ --> * (any, kinda silly)
  13559. // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  13560. // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  13561. // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  13562. // ^1.2.3 --> >=1.2.3 <2.0.0
  13563. // ^1.2.0 --> >=1.2.0 <2.0.0
  13564. function replaceCarets (comp, options) {
  13565. return comp.trim().split(/\s+/).map(function (comp) {
  13566. return replaceCaret(comp, options)
  13567. }).join(' ')
  13568. }
  13569. function replaceCaret (comp, options) {
  13570. debug('caret', comp, options)
  13571. var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
  13572. return comp.replace(r, function (_, M, m, p, pr) {
  13573. debug('caret', comp, _, M, m, p, pr)
  13574. var ret
  13575. if (isX(M)) {
  13576. ret = ''
  13577. } else if (isX(m)) {
  13578. ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
  13579. } else if (isX(p)) {
  13580. if (M === '0') {
  13581. ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
  13582. } else {
  13583. ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
  13584. }
  13585. } else if (pr) {
  13586. debug('replaceCaret pr', pr)
  13587. if (M === '0') {
  13588. if (m === '0') {
  13589. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  13590. ' <' + M + '.' + m + '.' + (+p + 1)
  13591. } else {
  13592. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  13593. ' <' + M + '.' + (+m + 1) + '.0'
  13594. }
  13595. } else {
  13596. ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
  13597. ' <' + (+M + 1) + '.0.0'
  13598. }
  13599. } else {
  13600. debug('no pr')
  13601. if (M === '0') {
  13602. if (m === '0') {
  13603. ret = '>=' + M + '.' + m + '.' + p +
  13604. ' <' + M + '.' + m + '.' + (+p + 1)
  13605. } else {
  13606. ret = '>=' + M + '.' + m + '.' + p +
  13607. ' <' + M + '.' + (+m + 1) + '.0'
  13608. }
  13609. } else {
  13610. ret = '>=' + M + '.' + m + '.' + p +
  13611. ' <' + (+M + 1) + '.0.0'
  13612. }
  13613. }
  13614. debug('caret return', ret)
  13615. return ret
  13616. })
  13617. }
  13618. function replaceXRanges (comp, options) {
  13619. debug('replaceXRanges', comp, options)
  13620. return comp.split(/\s+/).map(function (comp) {
  13621. return replaceXRange(comp, options)
  13622. }).join(' ')
  13623. }
  13624. function replaceXRange (comp, options) {
  13625. comp = comp.trim()
  13626. var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
  13627. return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
  13628. debug('xRange', comp, ret, gtlt, M, m, p, pr)
  13629. var xM = isX(M)
  13630. var xm = xM || isX(m)
  13631. var xp = xm || isX(p)
  13632. var anyX = xp
  13633. if (gtlt === '=' && anyX) {
  13634. gtlt = ''
  13635. }
  13636. // if we're including prereleases in the match, then we need
  13637. // to fix this to -0, the lowest possible prerelease value
  13638. pr = options.includePrerelease ? '-0' : ''
  13639. if (xM) {
  13640. if (gtlt === '>' || gtlt === '<') {
  13641. // nothing is allowed
  13642. ret = '<0.0.0-0'
  13643. } else {
  13644. // nothing is forbidden
  13645. ret = '*'
  13646. }
  13647. } else if (gtlt && anyX) {
  13648. // we know patch is an x, because we have any x at all.
  13649. // replace X with 0
  13650. if (xm) {
  13651. m = 0
  13652. }
  13653. p = 0
  13654. if (gtlt === '>') {
  13655. // >1 => >=2.0.0
  13656. // >1.2 => >=1.3.0
  13657. // >1.2.3 => >= 1.2.4
  13658. gtlt = '>='
  13659. if (xm) {
  13660. M = +M + 1
  13661. m = 0
  13662. p = 0
  13663. } else {
  13664. m = +m + 1
  13665. p = 0
  13666. }
  13667. } else if (gtlt === '<=') {
  13668. // <=0.7.x is actually <0.8.0, since any 0.7.x should
  13669. // pass. Similarly, <=7.x is actually <8.0.0, etc.
  13670. gtlt = '<'
  13671. if (xm) {
  13672. M = +M + 1
  13673. } else {
  13674. m = +m + 1
  13675. }
  13676. }
  13677. ret = gtlt + M + '.' + m + '.' + p + pr
  13678. } else if (xm) {
  13679. ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr
  13680. } else if (xp) {
  13681. ret = '>=' + M + '.' + m + '.0' + pr +
  13682. ' <' + M + '.' + (+m + 1) + '.0' + pr
  13683. }
  13684. debug('xRange return', ret)
  13685. return ret
  13686. })
  13687. }
  13688. // Because * is AND-ed with everything else in the comparator,
  13689. // and '' means "any version", just remove the *s entirely.
  13690. function replaceStars (comp, options) {
  13691. debug('replaceStars', comp, options)
  13692. // Looseness is ignored here. star is always as loose as it gets!
  13693. return comp.trim().replace(re[t.STAR], '')
  13694. }
  13695. // This function is passed to string.replace(re[t.HYPHENRANGE])
  13696. // M, m, patch, prerelease, build
  13697. // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  13698. // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  13699. // 1.2 - 3.4 => >=1.2.0 <3.5.0
  13700. function hyphenReplace ($0,
  13701. from, fM, fm, fp, fpr, fb,
  13702. to, tM, tm, tp, tpr, tb) {
  13703. if (isX(fM)) {
  13704. from = ''
  13705. } else if (isX(fm)) {
  13706. from = '>=' + fM + '.0.0'
  13707. } else if (isX(fp)) {
  13708. from = '>=' + fM + '.' + fm + '.0'
  13709. } else {
  13710. from = '>=' + from
  13711. }
  13712. if (isX(tM)) {
  13713. to = ''
  13714. } else if (isX(tm)) {
  13715. to = '<' + (+tM + 1) + '.0.0'
  13716. } else if (isX(tp)) {
  13717. to = '<' + tM + '.' + (+tm + 1) + '.0'
  13718. } else if (tpr) {
  13719. to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
  13720. } else {
  13721. to = '<=' + to
  13722. }
  13723. return (from + ' ' + to).trim()
  13724. }
  13725. // if ANY of the sets match ALL of its comparators, then pass
  13726. Range.prototype.test = function (version) {
  13727. if (!version) {
  13728. return false
  13729. }
  13730. if (typeof version === 'string') {
  13731. try {
  13732. version = new SemVer(version, this.options)
  13733. } catch (er) {
  13734. return false
  13735. }
  13736. }
  13737. for (var i = 0; i < this.set.length; i++) {
  13738. if (testSet(this.set[i], version, this.options)) {
  13739. return true
  13740. }
  13741. }
  13742. return false
  13743. }
  13744. function testSet (set, version, options) {
  13745. for (var i = 0; i < set.length; i++) {
  13746. if (!set[i].test(version)) {
  13747. return false
  13748. }
  13749. }
  13750. if (version.prerelease.length && !options.includePrerelease) {
  13751. // Find the set of versions that are allowed to have prereleases
  13752. // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
  13753. // That should allow `1.2.3-pr.2` to pass.
  13754. // However, `1.2.4-alpha.notready` should NOT be allowed,
  13755. // even though it's within the range set by the comparators.
  13756. for (i = 0; i < set.length; i++) {
  13757. debug(set[i].semver)
  13758. if (set[i].semver === ANY) {
  13759. continue
  13760. }
  13761. if (set[i].semver.prerelease.length > 0) {
  13762. var allowed = set[i].semver
  13763. if (allowed.major === version.major &&
  13764. allowed.minor === version.minor &&
  13765. allowed.patch === version.patch) {
  13766. return true
  13767. }
  13768. }
  13769. }
  13770. // Version has a -pre, but it's not one of the ones we like.
  13771. return false
  13772. }
  13773. return true
  13774. }
  13775. exports.satisfies = satisfies
  13776. function satisfies (version, range, options) {
  13777. try {
  13778. range = new Range(range, options)
  13779. } catch (er) {
  13780. return false
  13781. }
  13782. return range.test(version)
  13783. }
  13784. exports.maxSatisfying = maxSatisfying
  13785. function maxSatisfying (versions, range, options) {
  13786. var max = null
  13787. var maxSV = null
  13788. try {
  13789. var rangeObj = new Range(range, options)
  13790. } catch (er) {
  13791. return null
  13792. }
  13793. versions.forEach(function (v) {
  13794. if (rangeObj.test(v)) {
  13795. // satisfies(v, range, options)
  13796. if (!max || maxSV.compare(v) === -1) {
  13797. // compare(max, v, true)
  13798. max = v
  13799. maxSV = new SemVer(max, options)
  13800. }
  13801. }
  13802. })
  13803. return max
  13804. }
  13805. exports.minSatisfying = minSatisfying
  13806. function minSatisfying (versions, range, options) {
  13807. var min = null
  13808. var minSV = null
  13809. try {
  13810. var rangeObj = new Range(range, options)
  13811. } catch (er) {
  13812. return null
  13813. }
  13814. versions.forEach(function (v) {
  13815. if (rangeObj.test(v)) {
  13816. // satisfies(v, range, options)
  13817. if (!min || minSV.compare(v) === 1) {
  13818. // compare(min, v, true)
  13819. min = v
  13820. minSV = new SemVer(min, options)
  13821. }
  13822. }
  13823. })
  13824. return min
  13825. }
  13826. exports.minVersion = minVersion
  13827. function minVersion (range, loose) {
  13828. range = new Range(range, loose)
  13829. var minver = new SemVer('0.0.0')
  13830. if (range.test(minver)) {
  13831. return minver
  13832. }
  13833. minver = new SemVer('0.0.0-0')
  13834. if (range.test(minver)) {
  13835. return minver
  13836. }
  13837. minver = null
  13838. for (var i = 0; i < range.set.length; ++i) {
  13839. var comparators = range.set[i]
  13840. comparators.forEach(function (comparator) {
  13841. // Clone to avoid manipulating the comparator's semver object.
  13842. var compver = new SemVer(comparator.semver.version)
  13843. switch (comparator.operator) {
  13844. case '>':
  13845. if (compver.prerelease.length === 0) {
  13846. compver.patch++
  13847. } else {
  13848. compver.prerelease.push(0)
  13849. }
  13850. compver.raw = compver.format()
  13851. /* fallthrough */
  13852. case '':
  13853. case '>=':
  13854. if (!minver || gt(minver, compver)) {
  13855. minver = compver
  13856. }
  13857. break
  13858. case '<':
  13859. case '<=':
  13860. /* Ignore maximum versions */
  13861. break
  13862. /* istanbul ignore next */
  13863. default:
  13864. throw new Error('Unexpected operation: ' + comparator.operator)
  13865. }
  13866. })
  13867. }
  13868. if (minver && range.test(minver)) {
  13869. return minver
  13870. }
  13871. return null
  13872. }
  13873. exports.validRange = validRange
  13874. function validRange (range, options) {
  13875. try {
  13876. // Return '*' instead of '' so that truthiness works.
  13877. // This will throw if it's invalid anyway
  13878. return new Range(range, options).range || '*'
  13879. } catch (er) {
  13880. return null
  13881. }
  13882. }
  13883. // Determine if version is less than all the versions possible in the range
  13884. exports.ltr = ltr
  13885. function ltr (version, range, options) {
  13886. return outside(version, range, '<', options)
  13887. }
  13888. // Determine if version is greater than all the versions possible in the range.
  13889. exports.gtr = gtr
  13890. function gtr (version, range, options) {
  13891. return outside(version, range, '>', options)
  13892. }
  13893. exports.outside = outside
  13894. function outside (version, range, hilo, options) {
  13895. version = new SemVer(version, options)
  13896. range = new Range(range, options)
  13897. var gtfn, ltefn, ltfn, comp, ecomp
  13898. switch (hilo) {
  13899. case '>':
  13900. gtfn = gt
  13901. ltefn = lte
  13902. ltfn = lt
  13903. comp = '>'
  13904. ecomp = '>='
  13905. break
  13906. case '<':
  13907. gtfn = lt
  13908. ltefn = gte
  13909. ltfn = gt
  13910. comp = '<'
  13911. ecomp = '<='
  13912. break
  13913. default:
  13914. throw new TypeError('Must provide a hilo val of "<" or ">"')
  13915. }
  13916. // If it satisifes the range it is not outside
  13917. if (satisfies(version, range, options)) {
  13918. return false
  13919. }
  13920. // From now on, variable terms are as if we're in "gtr" mode.
  13921. // but note that everything is flipped for the "ltr" function.
  13922. for (var i = 0; i < range.set.length; ++i) {
  13923. var comparators = range.set[i]
  13924. var high = null
  13925. var low = null
  13926. comparators.forEach(function (comparator) {
  13927. if (comparator.semver === ANY) {
  13928. comparator = new Comparator('>=0.0.0')
  13929. }
  13930. high = high || comparator
  13931. low = low || comparator
  13932. if (gtfn(comparator.semver, high.semver, options)) {
  13933. high = comparator
  13934. } else if (ltfn(comparator.semver, low.semver, options)) {
  13935. low = comparator
  13936. }
  13937. })
  13938. // If the edge version comparator has a operator then our version
  13939. // isn't outside it
  13940. if (high.operator === comp || high.operator === ecomp) {
  13941. return false
  13942. }
  13943. // If the lowest version comparator has an operator and our version
  13944. // is less than it then it isn't higher than the range
  13945. if ((!low.operator || low.operator === comp) &&
  13946. ltefn(version, low.semver)) {
  13947. return false
  13948. } else if (low.operator === ecomp && ltfn(version, low.semver)) {
  13949. return false
  13950. }
  13951. }
  13952. return true
  13953. }
  13954. exports.prerelease = prerelease
  13955. function prerelease (version, options) {
  13956. var parsed = parse(version, options)
  13957. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  13958. }
  13959. exports.intersects = intersects
  13960. function intersects (r1, r2, options) {
  13961. r1 = new Range(r1, options)
  13962. r2 = new Range(r2, options)
  13963. return r1.intersects(r2)
  13964. }
  13965. exports.coerce = coerce
  13966. function coerce (version, options) {
  13967. if (version instanceof SemVer) {
  13968. return version
  13969. }
  13970. if (typeof version === 'number') {
  13971. version = String(version)
  13972. }
  13973. if (typeof version !== 'string') {
  13974. return null
  13975. }
  13976. options = options || {}
  13977. var match = null
  13978. if (!options.rtl) {
  13979. match = version.match(re[t.COERCE])
  13980. } else {
  13981. // Find the right-most coercible string that does not share
  13982. // a terminus with a more left-ward coercible string.
  13983. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
  13984. //
  13985. // Walk through the string checking with a /g regexp
  13986. // Manually set the index so as to pick up overlapping matches.
  13987. // Stop when we get a match that ends at the string end, since no
  13988. // coercible string can be more right-ward without the same terminus.
  13989. var next
  13990. while ((next = re[t.COERCERTL].exec(version)) &&
  13991. (!match || match.index + match[0].length !== version.length)
  13992. ) {
  13993. if (!match ||
  13994. next.index + next[0].length !== match.index + match[0].length) {
  13995. match = next
  13996. }
  13997. re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
  13998. }
  13999. // leave it in a clean state
  14000. re[t.COERCERTL].lastIndex = -1
  14001. }
  14002. if (match === null) {
  14003. return null
  14004. }
  14005. return parse(match[2] +
  14006. '.' + (match[3] || '0') +
  14007. '.' + (match[4] || '0'), options)
  14008. }
  14009. /***/ }),
  14010. /***/ 659:
  14011. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14012. "use strict";
  14013. Object.defineProperty(exports, "__esModule", {
  14014. value: true
  14015. });
  14016. exports.default = void 0;
  14017. var _crypto = _interopRequireDefault(__webpack_require__(417));
  14018. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  14019. function md5(bytes) {
  14020. if (Array.isArray(bytes)) {
  14021. bytes = Buffer.from(bytes);
  14022. } else if (typeof bytes === 'string') {
  14023. bytes = Buffer.from(bytes, 'utf8');
  14024. }
  14025. return _crypto.default.createHash('md5').update(bytes).digest();
  14026. }
  14027. var _default = md5;
  14028. exports.default = _default;
  14029. /***/ }),
  14030. /***/ 665:
  14031. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14032. "use strict";
  14033. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  14034. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  14035. return new (P || (P = Promise))(function (resolve, reject) {
  14036. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  14037. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  14038. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  14039. step((generator = generator.apply(thisArg, _arguments || [])).next());
  14040. });
  14041. };
  14042. Object.defineProperty(exports, "__esModule", { value: true });
  14043. exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
  14044. const os_1 = __webpack_require__(87);
  14045. const fs_1 = __webpack_require__(747);
  14046. const { access, appendFile, writeFile } = fs_1.promises;
  14047. exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
  14048. exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
  14049. class Summary {
  14050. constructor() {
  14051. this._buffer = '';
  14052. }
  14053. /**
  14054. * Finds the summary file path from the environment, rejects if env var is not found or file does not exist
  14055. * Also checks r/w permissions.
  14056. *
  14057. * @returns step summary file path
  14058. */
  14059. filePath() {
  14060. return __awaiter(this, void 0, void 0, function* () {
  14061. if (this._filePath) {
  14062. return this._filePath;
  14063. }
  14064. const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];
  14065. if (!pathFromEnv) {
  14066. throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);
  14067. }
  14068. try {
  14069. yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);
  14070. }
  14071. catch (_a) {
  14072. throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);
  14073. }
  14074. this._filePath = pathFromEnv;
  14075. return this._filePath;
  14076. });
  14077. }
  14078. /**
  14079. * Wraps content in an HTML tag, adding any HTML attributes
  14080. *
  14081. * @param {string} tag HTML tag to wrap
  14082. * @param {string | null} content content within the tag
  14083. * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
  14084. *
  14085. * @returns {string} content wrapped in HTML element
  14086. */
  14087. wrap(tag, content, attrs = {}) {
  14088. const htmlAttrs = Object.entries(attrs)
  14089. .map(([key, value]) => ` ${key}="${value}"`)
  14090. .join('');
  14091. if (!content) {
  14092. return `<${tag}${htmlAttrs}>`;
  14093. }
  14094. return `<${tag}${htmlAttrs}>${content}</${tag}>`;
  14095. }
  14096. /**
  14097. * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
  14098. *
  14099. * @param {SummaryWriteOptions} [options] (optional) options for write operation
  14100. *
  14101. * @returns {Promise<Summary>} summary instance
  14102. */
  14103. write(options) {
  14104. return __awaiter(this, void 0, void 0, function* () {
  14105. const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
  14106. const filePath = yield this.filePath();
  14107. const writeFunc = overwrite ? writeFile : appendFile;
  14108. yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
  14109. return this.emptyBuffer();
  14110. });
  14111. }
  14112. /**
  14113. * Clears the summary buffer and wipes the summary file
  14114. *
  14115. * @returns {Summary} summary instance
  14116. */
  14117. clear() {
  14118. return __awaiter(this, void 0, void 0, function* () {
  14119. return this.emptyBuffer().write({ overwrite: true });
  14120. });
  14121. }
  14122. /**
  14123. * Returns the current summary buffer as a string
  14124. *
  14125. * @returns {string} string of summary buffer
  14126. */
  14127. stringify() {
  14128. return this._buffer;
  14129. }
  14130. /**
  14131. * If the summary buffer is empty
  14132. *
  14133. * @returns {boolen} true if the buffer is empty
  14134. */
  14135. isEmptyBuffer() {
  14136. return this._buffer.length === 0;
  14137. }
  14138. /**
  14139. * Resets the summary buffer without writing to summary file
  14140. *
  14141. * @returns {Summary} summary instance
  14142. */
  14143. emptyBuffer() {
  14144. this._buffer = '';
  14145. return this;
  14146. }
  14147. /**
  14148. * Adds raw text to the summary buffer
  14149. *
  14150. * @param {string} text content to add
  14151. * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)
  14152. *
  14153. * @returns {Summary} summary instance
  14154. */
  14155. addRaw(text, addEOL = false) {
  14156. this._buffer += text;
  14157. return addEOL ? this.addEOL() : this;
  14158. }
  14159. /**
  14160. * Adds the operating system-specific end-of-line marker to the buffer
  14161. *
  14162. * @returns {Summary} summary instance
  14163. */
  14164. addEOL() {
  14165. return this.addRaw(os_1.EOL);
  14166. }
  14167. /**
  14168. * Adds an HTML codeblock to the summary buffer
  14169. *
  14170. * @param {string} code content to render within fenced code block
  14171. * @param {string} lang (optional) language to syntax highlight code
  14172. *
  14173. * @returns {Summary} summary instance
  14174. */
  14175. addCodeBlock(code, lang) {
  14176. const attrs = Object.assign({}, (lang && { lang }));
  14177. const element = this.wrap('pre', this.wrap('code', code), attrs);
  14178. return this.addRaw(element).addEOL();
  14179. }
  14180. /**
  14181. * Adds an HTML list to the summary buffer
  14182. *
  14183. * @param {string[]} items list of items to render
  14184. * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)
  14185. *
  14186. * @returns {Summary} summary instance
  14187. */
  14188. addList(items, ordered = false) {
  14189. const tag = ordered ? 'ol' : 'ul';
  14190. const listItems = items.map(item => this.wrap('li', item)).join('');
  14191. const element = this.wrap(tag, listItems);
  14192. return this.addRaw(element).addEOL();
  14193. }
  14194. /**
  14195. * Adds an HTML table to the summary buffer
  14196. *
  14197. * @param {SummaryTableCell[]} rows table rows
  14198. *
  14199. * @returns {Summary} summary instance
  14200. */
  14201. addTable(rows) {
  14202. const tableBody = rows
  14203. .map(row => {
  14204. const cells = row
  14205. .map(cell => {
  14206. if (typeof cell === 'string') {
  14207. return this.wrap('td', cell);
  14208. }
  14209. const { header, data, colspan, rowspan } = cell;
  14210. const tag = header ? 'th' : 'td';
  14211. const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan }));
  14212. return this.wrap(tag, data, attrs);
  14213. })
  14214. .join('');
  14215. return this.wrap('tr', cells);
  14216. })
  14217. .join('');
  14218. const element = this.wrap('table', tableBody);
  14219. return this.addRaw(element).addEOL();
  14220. }
  14221. /**
  14222. * Adds a collapsable HTML details element to the summary buffer
  14223. *
  14224. * @param {string} label text for the closed state
  14225. * @param {string} content collapsable content
  14226. *
  14227. * @returns {Summary} summary instance
  14228. */
  14229. addDetails(label, content) {
  14230. const element = this.wrap('details', this.wrap('summary', label) + content);
  14231. return this.addRaw(element).addEOL();
  14232. }
  14233. /**
  14234. * Adds an HTML image tag to the summary buffer
  14235. *
  14236. * @param {string} src path to the image you to embed
  14237. * @param {string} alt text description of the image
  14238. * @param {SummaryImageOptions} options (optional) addition image attributes
  14239. *
  14240. * @returns {Summary} summary instance
  14241. */
  14242. addImage(src, alt, options) {
  14243. const { width, height } = options || {};
  14244. const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height }));
  14245. const element = this.wrap('img', null, Object.assign({ src, alt }, attrs));
  14246. return this.addRaw(element).addEOL();
  14247. }
  14248. /**
  14249. * Adds an HTML section heading element
  14250. *
  14251. * @param {string} text heading text
  14252. * @param {number | string} [level=1] (optional) the heading level, default: 1
  14253. *
  14254. * @returns {Summary} summary instance
  14255. */
  14256. addHeading(text, level) {
  14257. const tag = `h${level}`;
  14258. const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag)
  14259. ? tag
  14260. : 'h1';
  14261. const element = this.wrap(allowedTag, text);
  14262. return this.addRaw(element).addEOL();
  14263. }
  14264. /**
  14265. * Adds an HTML thematic break (<hr>) to the summary buffer
  14266. *
  14267. * @returns {Summary} summary instance
  14268. */
  14269. addSeparator() {
  14270. const element = this.wrap('hr', null);
  14271. return this.addRaw(element).addEOL();
  14272. }
  14273. /**
  14274. * Adds an HTML line break (<br>) to the summary buffer
  14275. *
  14276. * @returns {Summary} summary instance
  14277. */
  14278. addBreak() {
  14279. const element = this.wrap('br', null);
  14280. return this.addRaw(element).addEOL();
  14281. }
  14282. /**
  14283. * Adds an HTML blockquote to the summary buffer
  14284. *
  14285. * @param {string} text quote text
  14286. * @param {string} cite (optional) citation url
  14287. *
  14288. * @returns {Summary} summary instance
  14289. */
  14290. addQuote(text, cite) {
  14291. const attrs = Object.assign({}, (cite && { cite }));
  14292. const element = this.wrap('blockquote', text, attrs);
  14293. return this.addRaw(element).addEOL();
  14294. }
  14295. /**
  14296. * Adds an HTML anchor tag to the summary buffer
  14297. *
  14298. * @param {string} text link text/content
  14299. * @param {string} href hyperlink
  14300. *
  14301. * @returns {Summary} summary instance
  14302. */
  14303. addLink(text, href) {
  14304. const element = this.wrap('a', text, { href });
  14305. return this.addRaw(element).addEOL();
  14306. }
  14307. }
  14308. const _summary = new Summary();
  14309. /**
  14310. * @deprecated use `core.summary`
  14311. */
  14312. exports.markdownSummary = _summary;
  14313. exports.summary = _summary;
  14314. //# sourceMappingURL=summary.js.map
  14315. /***/ }),
  14316. /***/ 669:
  14317. /***/ (function(module) {
  14318. module.exports = require("util");
  14319. /***/ }),
  14320. /***/ 672:
  14321. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14322. "use strict";
  14323. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  14324. if (k2 === undefined) k2 = k;
  14325. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  14326. }) : (function(o, m, k, k2) {
  14327. if (k2 === undefined) k2 = k;
  14328. o[k2] = m[k];
  14329. }));
  14330. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  14331. Object.defineProperty(o, "default", { enumerable: true, value: v });
  14332. }) : function(o, v) {
  14333. o["default"] = v;
  14334. });
  14335. var __importStar = (this && this.__importStar) || function (mod) {
  14336. if (mod && mod.__esModule) return mod;
  14337. var result = {};
  14338. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  14339. __setModuleDefault(result, mod);
  14340. return result;
  14341. };
  14342. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  14343. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  14344. return new (P || (P = Promise))(function (resolve, reject) {
  14345. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  14346. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  14347. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  14348. step((generator = generator.apply(thisArg, _arguments || [])).next());
  14349. });
  14350. };
  14351. var _a;
  14352. Object.defineProperty(exports, "__esModule", { value: true });
  14353. exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rename = exports.readlink = exports.readdir = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0;
  14354. const fs = __importStar(__webpack_require__(747));
  14355. const path = __importStar(__webpack_require__(622));
  14356. _a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
  14357. exports.IS_WINDOWS = process.platform === 'win32';
  14358. function exists(fsPath) {
  14359. return __awaiter(this, void 0, void 0, function* () {
  14360. try {
  14361. yield exports.stat(fsPath);
  14362. }
  14363. catch (err) {
  14364. if (err.code === 'ENOENT') {
  14365. return false;
  14366. }
  14367. throw err;
  14368. }
  14369. return true;
  14370. });
  14371. }
  14372. exports.exists = exists;
  14373. function isDirectory(fsPath, useStat = false) {
  14374. return __awaiter(this, void 0, void 0, function* () {
  14375. const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
  14376. return stats.isDirectory();
  14377. });
  14378. }
  14379. exports.isDirectory = isDirectory;
  14380. /**
  14381. * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
  14382. * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
  14383. */
  14384. function isRooted(p) {
  14385. p = normalizeSeparators(p);
  14386. if (!p) {
  14387. throw new Error('isRooted() parameter "p" cannot be empty');
  14388. }
  14389. if (exports.IS_WINDOWS) {
  14390. return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello
  14391. ); // e.g. C: or C:\hello
  14392. }
  14393. return p.startsWith('/');
  14394. }
  14395. exports.isRooted = isRooted;
  14396. /**
  14397. * Best effort attempt to determine whether a file exists and is executable.
  14398. * @param filePath file path to check
  14399. * @param extensions additional file extensions to try
  14400. * @return if file exists and is executable, returns the file path. otherwise empty string.
  14401. */
  14402. function tryGetExecutablePath(filePath, extensions) {
  14403. return __awaiter(this, void 0, void 0, function* () {
  14404. let stats = undefined;
  14405. try {
  14406. // test file exists
  14407. stats = yield exports.stat(filePath);
  14408. }
  14409. catch (err) {
  14410. if (err.code !== 'ENOENT') {
  14411. // eslint-disable-next-line no-console
  14412. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  14413. }
  14414. }
  14415. if (stats && stats.isFile()) {
  14416. if (exports.IS_WINDOWS) {
  14417. // on Windows, test for valid extension
  14418. const upperExt = path.extname(filePath).toUpperCase();
  14419. if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) {
  14420. return filePath;
  14421. }
  14422. }
  14423. else {
  14424. if (isUnixExecutable(stats)) {
  14425. return filePath;
  14426. }
  14427. }
  14428. }
  14429. // try each extension
  14430. const originalFilePath = filePath;
  14431. for (const extension of extensions) {
  14432. filePath = originalFilePath + extension;
  14433. stats = undefined;
  14434. try {
  14435. stats = yield exports.stat(filePath);
  14436. }
  14437. catch (err) {
  14438. if (err.code !== 'ENOENT') {
  14439. // eslint-disable-next-line no-console
  14440. console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
  14441. }
  14442. }
  14443. if (stats && stats.isFile()) {
  14444. if (exports.IS_WINDOWS) {
  14445. // preserve the case of the actual file (since an extension was appended)
  14446. try {
  14447. const directory = path.dirname(filePath);
  14448. const upperName = path.basename(filePath).toUpperCase();
  14449. for (const actualName of yield exports.readdir(directory)) {
  14450. if (upperName === actualName.toUpperCase()) {
  14451. filePath = path.join(directory, actualName);
  14452. break;
  14453. }
  14454. }
  14455. }
  14456. catch (err) {
  14457. // eslint-disable-next-line no-console
  14458. console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
  14459. }
  14460. return filePath;
  14461. }
  14462. else {
  14463. if (isUnixExecutable(stats)) {
  14464. return filePath;
  14465. }
  14466. }
  14467. }
  14468. }
  14469. return '';
  14470. });
  14471. }
  14472. exports.tryGetExecutablePath = tryGetExecutablePath;
  14473. function normalizeSeparators(p) {
  14474. p = p || '';
  14475. if (exports.IS_WINDOWS) {
  14476. // convert slashes on Windows
  14477. p = p.replace(/\//g, '\\');
  14478. // remove redundant slashes
  14479. return p.replace(/\\\\+/g, '\\');
  14480. }
  14481. // remove redundant slashes
  14482. return p.replace(/\/\/+/g, '/');
  14483. }
  14484. // on Mac/Linux, test the execute bit
  14485. // R W X R W X R W X
  14486. // 256 128 64 32 16 8 4 2 1
  14487. function isUnixExecutable(stats) {
  14488. return ((stats.mode & 1) > 0 ||
  14489. ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
  14490. ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
  14491. }
  14492. // Get the path of cmd.exe in windows
  14493. function getCmdPath() {
  14494. var _a;
  14495. return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`;
  14496. }
  14497. exports.getCmdPath = getCmdPath;
  14498. //# sourceMappingURL=io-util.js.map
  14499. /***/ }),
  14500. /***/ 674:
  14501. /***/ (function(module, __unusedexports, __webpack_require__) {
  14502. module.exports = authenticate;
  14503. const { Deprecation } = __webpack_require__(692);
  14504. const once = __webpack_require__(969);
  14505. const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
  14506. function authenticate(state, options) {
  14507. deprecateAuthenticate(
  14508. state.octokit.log,
  14509. new Deprecation(
  14510. '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'
  14511. )
  14512. );
  14513. if (!options) {
  14514. state.auth = false;
  14515. return;
  14516. }
  14517. switch (options.type) {
  14518. case "basic":
  14519. if (!options.username || !options.password) {
  14520. throw new Error(
  14521. "Basic authentication requires both a username and password to be set"
  14522. );
  14523. }
  14524. break;
  14525. case "oauth":
  14526. if (!options.token && !(options.key && options.secret)) {
  14527. throw new Error(
  14528. "OAuth2 authentication requires a token or key & secret to be set"
  14529. );
  14530. }
  14531. break;
  14532. case "token":
  14533. case "app":
  14534. if (!options.token) {
  14535. throw new Error("Token authentication requires a token to be set");
  14536. }
  14537. break;
  14538. default:
  14539. throw new Error(
  14540. "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'"
  14541. );
  14542. }
  14543. state.auth = options;
  14544. }
  14545. /***/ }),
  14546. /***/ 675:
  14547. /***/ (function(module) {
  14548. module.exports = function btoa(str) {
  14549. return new Buffer(str).toString('base64')
  14550. }
  14551. /***/ }),
  14552. /***/ 692:
  14553. /***/ (function(__unusedmodule, exports) {
  14554. "use strict";
  14555. Object.defineProperty(exports, '__esModule', { value: true });
  14556. class Deprecation extends Error {
  14557. constructor(message) {
  14558. super(message); // Maintains proper stack trace (only available on V8)
  14559. /* istanbul ignore next */
  14560. if (Error.captureStackTrace) {
  14561. Error.captureStackTrace(this, this.constructor);
  14562. }
  14563. this.name = 'Deprecation';
  14564. }
  14565. }
  14566. exports.Deprecation = Deprecation;
  14567. /***/ }),
  14568. /***/ 696:
  14569. /***/ (function(module) {
  14570. "use strict";
  14571. /*!
  14572. * isobject <https://github.com/jonschlinkert/isobject>
  14573. *
  14574. * Copyright (c) 2014-2017, Jon Schlinkert.
  14575. * Released under the MIT License.
  14576. */
  14577. function isObject(val) {
  14578. return val != null && typeof val === 'object' && Array.isArray(val) === false;
  14579. }
  14580. /*!
  14581. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  14582. *
  14583. * Copyright (c) 2014-2017, Jon Schlinkert.
  14584. * Released under the MIT License.
  14585. */
  14586. function isObjectObject(o) {
  14587. return isObject(o) === true
  14588. && Object.prototype.toString.call(o) === '[object Object]';
  14589. }
  14590. function isPlainObject(o) {
  14591. var ctor,prot;
  14592. if (isObjectObject(o) === false) return false;
  14593. // If has modified constructor
  14594. ctor = o.constructor;
  14595. if (typeof ctor !== 'function') return false;
  14596. // If has modified prototype
  14597. prot = ctor.prototype;
  14598. if (isObjectObject(prot) === false) return false;
  14599. // If constructor does not have an Object-specific method
  14600. if (prot.hasOwnProperty('isPrototypeOf') === false) {
  14601. return false;
  14602. }
  14603. // Most likely a plain Object
  14604. return true;
  14605. }
  14606. module.exports = isPlainObject;
  14607. /***/ }),
  14608. /***/ 697:
  14609. /***/ (function(module) {
  14610. "use strict";
  14611. module.exports = (promise, onFinally) => {
  14612. onFinally = onFinally || (() => {});
  14613. return promise.then(
  14614. val => new Promise(resolve => {
  14615. resolve(onFinally());
  14616. }).then(() => val),
  14617. err => new Promise(resolve => {
  14618. resolve(onFinally());
  14619. }).then(() => {
  14620. throw err;
  14621. })
  14622. );
  14623. };
  14624. /***/ }),
  14625. /***/ 701:
  14626. /***/ (function(module, __unusedexports, __webpack_require__) {
  14627. "use strict";
  14628. var GetIntrinsic = __webpack_require__(915);
  14629. var callBound = __webpack_require__(630);
  14630. var inspect = __webpack_require__(26);
  14631. var $TypeError = GetIntrinsic('%TypeError%');
  14632. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  14633. var $Map = GetIntrinsic('%Map%', true);
  14634. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  14635. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  14636. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  14637. var $mapGet = callBound('Map.prototype.get', true);
  14638. var $mapSet = callBound('Map.prototype.set', true);
  14639. var $mapHas = callBound('Map.prototype.has', true);
  14640. /*
  14641. * This function traverses the list returning the node corresponding to the
  14642. * given key.
  14643. *
  14644. * That node is also moved to the head of the list, so that if it's accessed
  14645. * again we don't need to traverse the whole list. By doing so, all the recently
  14646. * used nodes can be accessed relatively quickly.
  14647. */
  14648. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  14649. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  14650. if (curr.key === key) {
  14651. prev.next = curr.next;
  14652. curr.next = list.next;
  14653. list.next = curr; // eslint-disable-line no-param-reassign
  14654. return curr;
  14655. }
  14656. }
  14657. };
  14658. var listGet = function (objects, key) {
  14659. var node = listGetNode(objects, key);
  14660. return node && node.value;
  14661. };
  14662. var listSet = function (objects, key, value) {
  14663. var node = listGetNode(objects, key);
  14664. if (node) {
  14665. node.value = value;
  14666. } else {
  14667. // Prepend the new node to the beginning of the list
  14668. objects.next = { // eslint-disable-line no-param-reassign
  14669. key: key,
  14670. next: objects.next,
  14671. value: value
  14672. };
  14673. }
  14674. };
  14675. var listHas = function (objects, key) {
  14676. return !!listGetNode(objects, key);
  14677. };
  14678. module.exports = function getSideChannel() {
  14679. var $wm;
  14680. var $m;
  14681. var $o;
  14682. var channel = {
  14683. assert: function (key) {
  14684. if (!channel.has(key)) {
  14685. throw new $TypeError('Side channel does not contain ' + inspect(key));
  14686. }
  14687. },
  14688. get: function (key) { // eslint-disable-line consistent-return
  14689. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  14690. if ($wm) {
  14691. return $weakMapGet($wm, key);
  14692. }
  14693. } else if ($Map) {
  14694. if ($m) {
  14695. return $mapGet($m, key);
  14696. }
  14697. } else {
  14698. if ($o) { // eslint-disable-line no-lonely-if
  14699. return listGet($o, key);
  14700. }
  14701. }
  14702. },
  14703. has: function (key) {
  14704. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  14705. if ($wm) {
  14706. return $weakMapHas($wm, key);
  14707. }
  14708. } else if ($Map) {
  14709. if ($m) {
  14710. return $mapHas($m, key);
  14711. }
  14712. } else {
  14713. if ($o) { // eslint-disable-line no-lonely-if
  14714. return listHas($o, key);
  14715. }
  14716. }
  14717. return false;
  14718. },
  14719. set: function (key, value) {
  14720. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  14721. if (!$wm) {
  14722. $wm = new $WeakMap();
  14723. }
  14724. $weakMapSet($wm, key, value);
  14725. } else if ($Map) {
  14726. if (!$m) {
  14727. $m = new $Map();
  14728. }
  14729. $mapSet($m, key, value);
  14730. } else {
  14731. if (!$o) {
  14732. /*
  14733. * Initialize the linked list as an empty node, so that we don't have
  14734. * to special-case handling of the first node: we can always refer to
  14735. * it as (previous node).next, instead of something like (list).head
  14736. */
  14737. $o = { key: {}, next: null };
  14738. }
  14739. listSet($o, key, value);
  14740. }
  14741. }
  14742. };
  14743. return channel;
  14744. };
  14745. /***/ }),
  14746. /***/ 722:
  14747. /***/ (function(module) {
  14748. /**
  14749. * Convert array of 16 byte values to UUID string format of the form:
  14750. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  14751. */
  14752. var byteToHex = [];
  14753. for (var i = 0; i < 256; ++i) {
  14754. byteToHex[i] = (i + 0x100).toString(16).substr(1);
  14755. }
  14756. function bytesToUuid(buf, offset) {
  14757. var i = offset || 0;
  14758. var bth = byteToHex;
  14759. // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
  14760. return ([bth[buf[i++]], bth[buf[i++]],
  14761. bth[buf[i++]], bth[buf[i++]], '-',
  14762. bth[buf[i++]], bth[buf[i++]], '-',
  14763. bth[buf[i++]], bth[buf[i++]], '-',
  14764. bth[buf[i++]], bth[buf[i++]], '-',
  14765. bth[buf[i++]], bth[buf[i++]],
  14766. bth[buf[i++]], bth[buf[i++]],
  14767. bth[buf[i++]], bth[buf[i++]]]).join('');
  14768. }
  14769. module.exports = bytesToUuid;
  14770. /***/ }),
  14771. /***/ 729:
  14772. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14773. "use strict";
  14774. // Copyright (c) Microsoft. All rights reserved.
  14775. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  14776. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  14777. return new (P || (P = Promise))(function (resolve, reject) {
  14778. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  14779. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  14780. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  14781. step((generator = generator.apply(thisArg, _arguments || [])).next());
  14782. });
  14783. };
  14784. Object.defineProperty(exports, "__esModule", { value: true });
  14785. const qs = __webpack_require__(386);
  14786. const url = __webpack_require__(835);
  14787. const path = __webpack_require__(622);
  14788. const zlib = __webpack_require__(761);
  14789. /**
  14790. * creates an url from a request url and optional base url (http://server:8080)
  14791. * @param {string} resource - a fully qualified url or relative path
  14792. * @param {string} baseUrl - an optional baseUrl (http://server:8080)
  14793. * @param {IRequestOptions} options - an optional options object, could include QueryParameters e.g.
  14794. * @return {string} - resultant url
  14795. */
  14796. function getUrl(resource, baseUrl, queryParams) {
  14797. const pathApi = path.posix || path;
  14798. let requestUrl = '';
  14799. if (!baseUrl) {
  14800. requestUrl = resource;
  14801. }
  14802. else if (!resource) {
  14803. requestUrl = baseUrl;
  14804. }
  14805. else {
  14806. const base = url.parse(baseUrl);
  14807. const resultantUrl = url.parse(resource);
  14808. // resource (specific per request) elements take priority
  14809. resultantUrl.protocol = resultantUrl.protocol || base.protocol;
  14810. resultantUrl.auth = resultantUrl.auth || base.auth;
  14811. resultantUrl.host = resultantUrl.host || base.host;
  14812. resultantUrl.pathname = pathApi.resolve(base.pathname, resultantUrl.pathname);
  14813. if (!resultantUrl.pathname.endsWith('/') && resource.endsWith('/')) {
  14814. resultantUrl.pathname += '/';
  14815. }
  14816. requestUrl = url.format(resultantUrl);
  14817. }
  14818. return queryParams ?
  14819. getUrlWithParsedQueryParams(requestUrl, queryParams) :
  14820. requestUrl;
  14821. }
  14822. exports.getUrl = getUrl;
  14823. /**
  14824. *
  14825. * @param {string} requestUrl
  14826. * @param {IRequestQueryParams} queryParams
  14827. * @return {string} - Request's URL with Query Parameters appended/parsed.
  14828. */
  14829. function getUrlWithParsedQueryParams(requestUrl, queryParams) {
  14830. const url = requestUrl.replace(/\?$/g, ''); // Clean any extra end-of-string "?" character
  14831. const parsedQueryParams = qs.stringify(queryParams.params, buildParamsStringifyOptions(queryParams));
  14832. return `${url}${parsedQueryParams}`;
  14833. }
  14834. /**
  14835. * Build options for QueryParams Stringifying.
  14836. *
  14837. * @param {IRequestQueryParams} queryParams
  14838. * @return {object}
  14839. */
  14840. function buildParamsStringifyOptions(queryParams) {
  14841. let options = {
  14842. addQueryPrefix: true,
  14843. delimiter: (queryParams.options || {}).separator || '&',
  14844. allowDots: (queryParams.options || {}).shouldAllowDots || false,
  14845. arrayFormat: (queryParams.options || {}).arrayFormat || 'repeat',
  14846. encodeValuesOnly: (queryParams.options || {}).shouldOnlyEncodeValues || true
  14847. };
  14848. return options;
  14849. }
  14850. /**
  14851. * Decompress/Decode gzip encoded JSON
  14852. * Using Node.js built-in zlib module
  14853. *
  14854. * @param {Buffer} buffer
  14855. * @param {string} charset? - optional; defaults to 'utf-8'
  14856. * @return {Promise<string>}
  14857. */
  14858. function decompressGzippedContent(buffer, charset) {
  14859. return __awaiter(this, void 0, void 0, function* () {
  14860. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  14861. zlib.gunzip(buffer, function (error, buffer) {
  14862. if (error) {
  14863. reject(error);
  14864. }
  14865. resolve(buffer.toString(charset || 'utf-8'));
  14866. });
  14867. }));
  14868. });
  14869. }
  14870. exports.decompressGzippedContent = decompressGzippedContent;
  14871. /**
  14872. * Builds a RegExp to test urls against for deciding
  14873. * wether to bypass proxy from an entry of the
  14874. * environment variable setting NO_PROXY
  14875. *
  14876. * @param {string} bypass
  14877. * @return {RegExp}
  14878. */
  14879. function buildProxyBypassRegexFromEnv(bypass) {
  14880. try {
  14881. // We need to keep this around for back-compat purposes
  14882. return new RegExp(bypass, 'i');
  14883. }
  14884. catch (err) {
  14885. if (err instanceof SyntaxError && (bypass || "").startsWith("*")) {
  14886. let wildcardEscaped = bypass.replace('*', '(.*)');
  14887. return new RegExp(wildcardEscaped, 'i');
  14888. }
  14889. throw err;
  14890. }
  14891. }
  14892. exports.buildProxyBypassRegexFromEnv = buildProxyBypassRegexFromEnv;
  14893. /**
  14894. * Obtain Response's Content Charset.
  14895. * Through inspecting `content-type` response header.
  14896. * It Returns 'utf-8' if NO charset specified/matched.
  14897. *
  14898. * @param {IHttpClientResponse} response
  14899. * @return {string} - Content Encoding Charset; Default=utf-8
  14900. */
  14901. function obtainContentCharset(response) {
  14902. // Find the charset, if specified.
  14903. // Search for the `charset=CHARSET` string, not including `;,\r\n`
  14904. // Example: content-type: 'application/json;charset=utf-8'
  14905. // |__ matches would be ['charset=utf-8', 'utf-8', index: 18, input: 'application/json; charset=utf-8']
  14906. // |_____ matches[1] would have the charset :tada: , in our example it's utf-8
  14907. // However, if the matches Array was empty or no charset found, 'utf-8' would be returned by default.
  14908. const nodeSupportedEncodings = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64', 'binary', 'hex'];
  14909. const contentType = response.message.headers['content-type'] || '';
  14910. const matches = contentType.match(/charset=([^;,\r\n]+)/i);
  14911. return (matches && matches[1] && nodeSupportedEncodings.indexOf(matches[1]) != -1) ? matches[1] : 'utf-8';
  14912. }
  14913. exports.obtainContentCharset = obtainContentCharset;
  14914. /***/ }),
  14915. /***/ 739:
  14916. /***/ (function(module, __unusedexports, __webpack_require__) {
  14917. "use strict";
  14918. var implementation = __webpack_require__(353);
  14919. module.exports = Function.prototype.bind || implementation;
  14920. /***/ }),
  14921. /***/ 742:
  14922. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  14923. "use strict";
  14924. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  14925. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  14926. return new (P || (P = Promise))(function (resolve, reject) {
  14927. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  14928. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  14929. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  14930. step((generator = generator.apply(thisArg, _arguments || [])).next());
  14931. });
  14932. };
  14933. Object.defineProperty(exports, "__esModule", { value: true });
  14934. exports.OidcClient = void 0;
  14935. const http_client_1 = __webpack_require__(993);
  14936. const auth_1 = __webpack_require__(363);
  14937. const core_1 = __webpack_require__(470);
  14938. class OidcClient {
  14939. static createHttpClient(allowRetry = true, maxRetry = 10) {
  14940. const requestOptions = {
  14941. allowRetries: allowRetry,
  14942. maxRetries: maxRetry
  14943. };
  14944. return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
  14945. }
  14946. static getRequestToken() {
  14947. const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
  14948. if (!token) {
  14949. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
  14950. }
  14951. return token;
  14952. }
  14953. static getIDTokenUrl() {
  14954. const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
  14955. if (!runtimeUrl) {
  14956. throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');
  14957. }
  14958. return runtimeUrl;
  14959. }
  14960. static getCall(id_token_url) {
  14961. var _a;
  14962. return __awaiter(this, void 0, void 0, function* () {
  14963. const httpclient = OidcClient.createHttpClient();
  14964. const res = yield httpclient
  14965. .getJson(id_token_url)
  14966. .catch(error => {
  14967. throw new Error(`Failed to get ID Token. \n
  14968. Error Code : ${error.statusCode}\n
  14969. Error Message: ${error.result.message}`);
  14970. });
  14971. const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
  14972. if (!id_token) {
  14973. throw new Error('Response json body do not have ID Token field');
  14974. }
  14975. return id_token;
  14976. });
  14977. }
  14978. static getIDToken(audience) {
  14979. return __awaiter(this, void 0, void 0, function* () {
  14980. try {
  14981. // New ID Token is requested from action service
  14982. let id_token_url = OidcClient.getIDTokenUrl();
  14983. if (audience) {
  14984. const encodedAudience = encodeURIComponent(audience);
  14985. id_token_url = `${id_token_url}&audience=${encodedAudience}`;
  14986. }
  14987. core_1.debug(`ID token url is ${id_token_url}`);
  14988. const id_token = yield OidcClient.getCall(id_token_url);
  14989. core_1.setSecret(id_token);
  14990. return id_token;
  14991. }
  14992. catch (error) {
  14993. throw new Error(`Error message: ${error.message}`);
  14994. }
  14995. });
  14996. }
  14997. }
  14998. exports.OidcClient = OidcClient;
  14999. //# sourceMappingURL=oidc-utils.js.map
  15000. /***/ }),
  15001. /***/ 747:
  15002. /***/ (function(module) {
  15003. module.exports = require("fs");
  15004. /***/ }),
  15005. /***/ 749:
  15006. /***/ (function(module, __unusedexports, __webpack_require__) {
  15007. "use strict";
  15008. var bind = __webpack_require__(739);
  15009. var GetIntrinsic = __webpack_require__(915);
  15010. var $apply = GetIntrinsic('%Function.prototype.apply%');
  15011. var $call = GetIntrinsic('%Function.prototype.call%');
  15012. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  15013. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  15014. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  15015. var $max = GetIntrinsic('%Math.max%');
  15016. if ($defineProperty) {
  15017. try {
  15018. $defineProperty({}, 'a', { value: 1 });
  15019. } catch (e) {
  15020. // IE 8 has a broken defineProperty
  15021. $defineProperty = null;
  15022. }
  15023. }
  15024. module.exports = function callBind(originalFunction) {
  15025. var func = $reflectApply(bind, $call, arguments);
  15026. if ($gOPD && $defineProperty) {
  15027. var desc = $gOPD(func, 'length');
  15028. if (desc.configurable) {
  15029. // original length, plus the receiver, minus any additional arguments (after the receiver)
  15030. $defineProperty(
  15031. func,
  15032. 'length',
  15033. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  15034. );
  15035. }
  15036. }
  15037. return func;
  15038. };
  15039. var applyBind = function applyBind() {
  15040. return $reflectApply(bind, $apply, arguments);
  15041. };
  15042. if ($defineProperty) {
  15043. $defineProperty(module.exports, 'apply', { value: applyBind });
  15044. } else {
  15045. module.exports.apply = applyBind;
  15046. }
  15047. /***/ }),
  15048. /***/ 753:
  15049. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15050. "use strict";
  15051. Object.defineProperty(exports, '__esModule', { value: true });
  15052. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  15053. var endpoint = __webpack_require__(385);
  15054. var universalUserAgent = __webpack_require__(392);
  15055. var isPlainObject = _interopDefault(__webpack_require__(696));
  15056. var nodeFetch = _interopDefault(__webpack_require__(454));
  15057. var requestError = __webpack_require__(463);
  15058. const VERSION = "5.4.2";
  15059. function getBufferResponse(response) {
  15060. return response.arrayBuffer();
  15061. }
  15062. function fetchWrapper(requestOptions) {
  15063. if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
  15064. requestOptions.body = JSON.stringify(requestOptions.body);
  15065. }
  15066. let headers = {};
  15067. let status;
  15068. let url;
  15069. const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;
  15070. return fetch(requestOptions.url, Object.assign({
  15071. method: requestOptions.method,
  15072. body: requestOptions.body,
  15073. headers: requestOptions.headers,
  15074. redirect: requestOptions.redirect
  15075. }, requestOptions.request)).then(response => {
  15076. url = response.url;
  15077. status = response.status;
  15078. for (const keyAndValue of response.headers) {
  15079. headers[keyAndValue[0]] = keyAndValue[1];
  15080. }
  15081. if (status === 204 || status === 205) {
  15082. return;
  15083. } // GitHub API returns 200 for HEAD requests
  15084. if (requestOptions.method === "HEAD") {
  15085. if (status < 400) {
  15086. return;
  15087. }
  15088. throw new requestError.RequestError(response.statusText, status, {
  15089. headers,
  15090. request: requestOptions
  15091. });
  15092. }
  15093. if (status === 304) {
  15094. throw new requestError.RequestError("Not modified", status, {
  15095. headers,
  15096. request: requestOptions
  15097. });
  15098. }
  15099. if (status >= 400) {
  15100. return response.text().then(message => {
  15101. const error = new requestError.RequestError(message, status, {
  15102. headers,
  15103. request: requestOptions
  15104. });
  15105. try {
  15106. let responseBody = JSON.parse(error.message);
  15107. Object.assign(error, responseBody);
  15108. let errors = responseBody.errors; // Assumption `errors` would always be in Array format
  15109. error.message = error.message + ": " + errors.map(JSON.stringify).join(", ");
  15110. } catch (e) {// ignore, see octokit/rest.js#684
  15111. }
  15112. throw error;
  15113. });
  15114. }
  15115. const contentType = response.headers.get("content-type");
  15116. if (/application\/json/.test(contentType)) {
  15117. return response.json();
  15118. }
  15119. if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
  15120. return response.text();
  15121. }
  15122. return getBufferResponse(response);
  15123. }).then(data => {
  15124. return {
  15125. status,
  15126. url,
  15127. headers,
  15128. data
  15129. };
  15130. }).catch(error => {
  15131. if (error instanceof requestError.RequestError) {
  15132. throw error;
  15133. }
  15134. throw new requestError.RequestError(error.message, 500, {
  15135. headers,
  15136. request: requestOptions
  15137. });
  15138. });
  15139. }
  15140. function withDefaults(oldEndpoint, newDefaults) {
  15141. const endpoint = oldEndpoint.defaults(newDefaults);
  15142. const newApi = function (route, parameters) {
  15143. const endpointOptions = endpoint.merge(route, parameters);
  15144. if (!endpointOptions.request || !endpointOptions.request.hook) {
  15145. return fetchWrapper(endpoint.parse(endpointOptions));
  15146. }
  15147. const request = (route, parameters) => {
  15148. return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));
  15149. };
  15150. Object.assign(request, {
  15151. endpoint,
  15152. defaults: withDefaults.bind(null, endpoint)
  15153. });
  15154. return endpointOptions.request.hook(request, endpointOptions);
  15155. };
  15156. return Object.assign(newApi, {
  15157. endpoint,
  15158. defaults: withDefaults.bind(null, endpoint)
  15159. });
  15160. }
  15161. const request = withDefaults(endpoint.endpoint, {
  15162. headers: {
  15163. "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`
  15164. }
  15165. });
  15166. exports.request = request;
  15167. //# sourceMappingURL=index.js.map
  15168. /***/ }),
  15169. /***/ 755:
  15170. /***/ (function(module, __unusedexports, __webpack_require__) {
  15171. "use strict";
  15172. var utils = __webpack_require__(581);
  15173. var has = Object.prototype.hasOwnProperty;
  15174. var isArray = Array.isArray;
  15175. var defaults = {
  15176. allowDots: false,
  15177. allowPrototypes: false,
  15178. allowSparse: false,
  15179. arrayLimit: 20,
  15180. charset: 'utf-8',
  15181. charsetSentinel: false,
  15182. comma: false,
  15183. decoder: utils.decode,
  15184. delimiter: '&',
  15185. depth: 5,
  15186. ignoreQueryPrefix: false,
  15187. interpretNumericEntities: false,
  15188. parameterLimit: 1000,
  15189. parseArrays: true,
  15190. plainObjects: false,
  15191. strictNullHandling: false
  15192. };
  15193. var interpretNumericEntities = function (str) {
  15194. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  15195. return String.fromCharCode(parseInt(numberStr, 10));
  15196. });
  15197. };
  15198. var parseArrayValue = function (val, options) {
  15199. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  15200. return val.split(',');
  15201. }
  15202. return val;
  15203. };
  15204. // This is what browsers will submit when the ✓ character occurs in an
  15205. // application/x-www-form-urlencoded body and the encoding of the page containing
  15206. // the form is iso-8859-1, or when the submitted form has an accept-charset
  15207. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  15208. // the ✓ character, such as us-ascii.
  15209. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  15210. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  15211. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  15212. var parseValues = function parseQueryStringValues(str, options) {
  15213. var obj = {};
  15214. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  15215. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  15216. var parts = cleanStr.split(options.delimiter, limit);
  15217. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  15218. var i;
  15219. var charset = options.charset;
  15220. if (options.charsetSentinel) {
  15221. for (i = 0; i < parts.length; ++i) {
  15222. if (parts[i].indexOf('utf8=') === 0) {
  15223. if (parts[i] === charsetSentinel) {
  15224. charset = 'utf-8';
  15225. } else if (parts[i] === isoSentinel) {
  15226. charset = 'iso-8859-1';
  15227. }
  15228. skipIndex = i;
  15229. i = parts.length; // The eslint settings do not allow break;
  15230. }
  15231. }
  15232. }
  15233. for (i = 0; i < parts.length; ++i) {
  15234. if (i === skipIndex) {
  15235. continue;
  15236. }
  15237. var part = parts[i];
  15238. var bracketEqualsPos = part.indexOf(']=');
  15239. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  15240. var key, val;
  15241. if (pos === -1) {
  15242. key = options.decoder(part, defaults.decoder, charset, 'key');
  15243. val = options.strictNullHandling ? null : '';
  15244. } else {
  15245. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  15246. val = utils.maybeMap(
  15247. parseArrayValue(part.slice(pos + 1), options),
  15248. function (encodedVal) {
  15249. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  15250. }
  15251. );
  15252. }
  15253. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  15254. val = interpretNumericEntities(val);
  15255. }
  15256. if (part.indexOf('[]=') > -1) {
  15257. val = isArray(val) ? [val] : val;
  15258. }
  15259. if (has.call(obj, key)) {
  15260. obj[key] = utils.combine(obj[key], val);
  15261. } else {
  15262. obj[key] = val;
  15263. }
  15264. }
  15265. return obj;
  15266. };
  15267. var parseObject = function (chain, val, options, valuesParsed) {
  15268. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  15269. for (var i = chain.length - 1; i >= 0; --i) {
  15270. var obj;
  15271. var root = chain[i];
  15272. if (root === '[]' && options.parseArrays) {
  15273. obj = [].concat(leaf);
  15274. } else {
  15275. obj = options.plainObjects ? Object.create(null) : {};
  15276. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  15277. var index = parseInt(cleanRoot, 10);
  15278. if (!options.parseArrays && cleanRoot === '') {
  15279. obj = { 0: leaf };
  15280. } else if (
  15281. !isNaN(index)
  15282. && root !== cleanRoot
  15283. && String(index) === cleanRoot
  15284. && index >= 0
  15285. && (options.parseArrays && index <= options.arrayLimit)
  15286. ) {
  15287. obj = [];
  15288. obj[index] = leaf;
  15289. } else if (cleanRoot !== '__proto__') {
  15290. obj[cleanRoot] = leaf;
  15291. }
  15292. }
  15293. leaf = obj;
  15294. }
  15295. return leaf;
  15296. };
  15297. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  15298. if (!givenKey) {
  15299. return;
  15300. }
  15301. // Transform dot notation to bracket notation
  15302. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  15303. // The regex chunks
  15304. var brackets = /(\[[^[\]]*])/;
  15305. var child = /(\[[^[\]]*])/g;
  15306. // Get the parent
  15307. var segment = options.depth > 0 && brackets.exec(key);
  15308. var parent = segment ? key.slice(0, segment.index) : key;
  15309. // Stash the parent if it exists
  15310. var keys = [];
  15311. if (parent) {
  15312. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  15313. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  15314. if (!options.allowPrototypes) {
  15315. return;
  15316. }
  15317. }
  15318. keys.push(parent);
  15319. }
  15320. // Loop through children appending to the array until we hit depth
  15321. var i = 0;
  15322. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  15323. i += 1;
  15324. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  15325. if (!options.allowPrototypes) {
  15326. return;
  15327. }
  15328. }
  15329. keys.push(segment[1]);
  15330. }
  15331. // If there's a remainder, just add whatever is left
  15332. if (segment) {
  15333. keys.push('[' + key.slice(segment.index) + ']');
  15334. }
  15335. return parseObject(keys, val, options, valuesParsed);
  15336. };
  15337. var normalizeParseOptions = function normalizeParseOptions(opts) {
  15338. if (!opts) {
  15339. return defaults;
  15340. }
  15341. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  15342. throw new TypeError('Decoder has to be a function.');
  15343. }
  15344. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  15345. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  15346. }
  15347. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  15348. return {
  15349. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  15350. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  15351. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  15352. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  15353. charset: charset,
  15354. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  15355. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  15356. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  15357. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  15358. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  15359. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  15360. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  15361. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  15362. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  15363. parseArrays: opts.parseArrays !== false,
  15364. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  15365. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  15366. };
  15367. };
  15368. module.exports = function (str, opts) {
  15369. var options = normalizeParseOptions(opts);
  15370. if (str === '' || str === null || typeof str === 'undefined') {
  15371. return options.plainObjects ? Object.create(null) : {};
  15372. }
  15373. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  15374. var obj = options.plainObjects ? Object.create(null) : {};
  15375. // Iterate over the keys and setup the new object
  15376. var keys = Object.keys(tempObj);
  15377. for (var i = 0; i < keys.length; ++i) {
  15378. var key = keys[i];
  15379. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  15380. obj = utils.merge(obj, newObj, options);
  15381. }
  15382. if (options.allowSparse === true) {
  15383. return obj;
  15384. }
  15385. return utils.compact(obj);
  15386. };
  15387. /***/ }),
  15388. /***/ 761:
  15389. /***/ (function(module) {
  15390. module.exports = require("zlib");
  15391. /***/ }),
  15392. /***/ 763:
  15393. /***/ (function(module) {
  15394. module.exports = removeHook
  15395. function removeHook (state, name, method) {
  15396. if (!state.registry[name]) {
  15397. return
  15398. }
  15399. var index = state.registry[name]
  15400. .map(function (registered) { return registered.orig })
  15401. .indexOf(method)
  15402. if (index === -1) {
  15403. return
  15404. }
  15405. state.registry[name].splice(index, 1)
  15406. }
  15407. /***/ }),
  15408. /***/ 768:
  15409. /***/ (function(module) {
  15410. "use strict";
  15411. module.exports = function (x) {
  15412. var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
  15413. var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
  15414. if (x[x.length - 1] === lf) {
  15415. x = x.slice(0, x.length - 1);
  15416. }
  15417. if (x[x.length - 1] === cr) {
  15418. x = x.slice(0, x.length - 1);
  15419. }
  15420. return x;
  15421. };
  15422. /***/ }),
  15423. /***/ 777:
  15424. /***/ (function(module, __unusedexports, __webpack_require__) {
  15425. module.exports = getFirstPage
  15426. const getPage = __webpack_require__(265)
  15427. function getFirstPage (octokit, link, headers) {
  15428. return getPage(octokit, link, 'first', headers)
  15429. }
  15430. /***/ }),
  15431. /***/ 782:
  15432. /***/ (function(module, __unusedexports, __webpack_require__) {
  15433. "use strict";
  15434. const conversions = __webpack_require__(149);
  15435. const utils = __webpack_require__(649);
  15436. const Impl = __webpack_require__(256);
  15437. const impl = utils.implSymbol;
  15438. function URL(url) {
  15439. if (!this || this[impl] || !(this instanceof URL)) {
  15440. throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
  15441. }
  15442. if (arguments.length < 1) {
  15443. throw new TypeError("Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
  15444. }
  15445. const args = [];
  15446. for (let i = 0; i < arguments.length && i < 2; ++i) {
  15447. args[i] = arguments[i];
  15448. }
  15449. args[0] = conversions["USVString"](args[0]);
  15450. if (args[1] !== undefined) {
  15451. args[1] = conversions["USVString"](args[1]);
  15452. }
  15453. module.exports.setup(this, args);
  15454. }
  15455. URL.prototype.toJSON = function toJSON() {
  15456. if (!this || !module.exports.is(this)) {
  15457. throw new TypeError("Illegal invocation");
  15458. }
  15459. const args = [];
  15460. for (let i = 0; i < arguments.length && i < 0; ++i) {
  15461. args[i] = arguments[i];
  15462. }
  15463. return this[impl].toJSON.apply(this[impl], args);
  15464. };
  15465. Object.defineProperty(URL.prototype, "href", {
  15466. get() {
  15467. return this[impl].href;
  15468. },
  15469. set(V) {
  15470. V = conversions["USVString"](V);
  15471. this[impl].href = V;
  15472. },
  15473. enumerable: true,
  15474. configurable: true
  15475. });
  15476. URL.prototype.toString = function () {
  15477. if (!this || !module.exports.is(this)) {
  15478. throw new TypeError("Illegal invocation");
  15479. }
  15480. return this.href;
  15481. };
  15482. Object.defineProperty(URL.prototype, "origin", {
  15483. get() {
  15484. return this[impl].origin;
  15485. },
  15486. enumerable: true,
  15487. configurable: true
  15488. });
  15489. Object.defineProperty(URL.prototype, "protocol", {
  15490. get() {
  15491. return this[impl].protocol;
  15492. },
  15493. set(V) {
  15494. V = conversions["USVString"](V);
  15495. this[impl].protocol = V;
  15496. },
  15497. enumerable: true,
  15498. configurable: true
  15499. });
  15500. Object.defineProperty(URL.prototype, "username", {
  15501. get() {
  15502. return this[impl].username;
  15503. },
  15504. set(V) {
  15505. V = conversions["USVString"](V);
  15506. this[impl].username = V;
  15507. },
  15508. enumerable: true,
  15509. configurable: true
  15510. });
  15511. Object.defineProperty(URL.prototype, "password", {
  15512. get() {
  15513. return this[impl].password;
  15514. },
  15515. set(V) {
  15516. V = conversions["USVString"](V);
  15517. this[impl].password = V;
  15518. },
  15519. enumerable: true,
  15520. configurable: true
  15521. });
  15522. Object.defineProperty(URL.prototype, "host", {
  15523. get() {
  15524. return this[impl].host;
  15525. },
  15526. set(V) {
  15527. V = conversions["USVString"](V);
  15528. this[impl].host = V;
  15529. },
  15530. enumerable: true,
  15531. configurable: true
  15532. });
  15533. Object.defineProperty(URL.prototype, "hostname", {
  15534. get() {
  15535. return this[impl].hostname;
  15536. },
  15537. set(V) {
  15538. V = conversions["USVString"](V);
  15539. this[impl].hostname = V;
  15540. },
  15541. enumerable: true,
  15542. configurable: true
  15543. });
  15544. Object.defineProperty(URL.prototype, "port", {
  15545. get() {
  15546. return this[impl].port;
  15547. },
  15548. set(V) {
  15549. V = conversions["USVString"](V);
  15550. this[impl].port = V;
  15551. },
  15552. enumerable: true,
  15553. configurable: true
  15554. });
  15555. Object.defineProperty(URL.prototype, "pathname", {
  15556. get() {
  15557. return this[impl].pathname;
  15558. },
  15559. set(V) {
  15560. V = conversions["USVString"](V);
  15561. this[impl].pathname = V;
  15562. },
  15563. enumerable: true,
  15564. configurable: true
  15565. });
  15566. Object.defineProperty(URL.prototype, "search", {
  15567. get() {
  15568. return this[impl].search;
  15569. },
  15570. set(V) {
  15571. V = conversions["USVString"](V);
  15572. this[impl].search = V;
  15573. },
  15574. enumerable: true,
  15575. configurable: true
  15576. });
  15577. Object.defineProperty(URL.prototype, "hash", {
  15578. get() {
  15579. return this[impl].hash;
  15580. },
  15581. set(V) {
  15582. V = conversions["USVString"](V);
  15583. this[impl].hash = V;
  15584. },
  15585. enumerable: true,
  15586. configurable: true
  15587. });
  15588. module.exports = {
  15589. is(obj) {
  15590. return !!obj && obj[impl] instanceof Impl.implementation;
  15591. },
  15592. create(constructorArgs, privateData) {
  15593. let obj = Object.create(URL.prototype);
  15594. this.setup(obj, constructorArgs, privateData);
  15595. return obj;
  15596. },
  15597. setup(obj, constructorArgs, privateData) {
  15598. if (!privateData) privateData = {};
  15599. privateData.wrapper = obj;
  15600. obj[impl] = new Impl.implementation(constructorArgs, privateData);
  15601. obj[impl][utils.wrapperSymbol] = obj;
  15602. },
  15603. interface: URL,
  15604. expose: {
  15605. Window: { URL: URL },
  15606. Worker: { URL: URL }
  15607. }
  15608. };
  15609. /***/ }),
  15610. /***/ 794:
  15611. /***/ (function(module) {
  15612. module.exports = require("stream");
  15613. /***/ }),
  15614. /***/ 796:
  15615. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15616. "use strict";
  15617. Object.defineProperty(exports, '__esModule', { value: true });
  15618. function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
  15619. var osName = _interopDefault(__webpack_require__(2));
  15620. function getUserAgent() {
  15621. try {
  15622. return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
  15623. } catch (error) {
  15624. if (/wmic os get Caption/.test(error.message)) {
  15625. return "Windows <version undetectable>";
  15626. }
  15627. throw error;
  15628. }
  15629. }
  15630. exports.getUserAgent = getUserAgent;
  15631. //# sourceMappingURL=index.js.map
  15632. /***/ }),
  15633. /***/ 810:
  15634. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15635. "use strict";
  15636. Object.defineProperty(exports, "__esModule", {
  15637. value: true
  15638. });
  15639. exports.default = void 0;
  15640. var _rng = _interopRequireDefault(__webpack_require__(506));
  15641. var _stringify = _interopRequireDefault(__webpack_require__(960));
  15642. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  15643. // **`v1()` - Generate time-based UUID**
  15644. //
  15645. // Inspired by https://github.com/LiosK/UUID.js
  15646. // and http://docs.python.org/library/uuid.html
  15647. let _nodeId;
  15648. let _clockseq; // Previous uuid creation time
  15649. let _lastMSecs = 0;
  15650. let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
  15651. function v1(options, buf, offset) {
  15652. let i = buf && offset || 0;
  15653. const b = buf || new Array(16);
  15654. options = options || {};
  15655. let node = options.node || _nodeId;
  15656. let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
  15657. // specified. We do this lazily to minimize issues related to insufficient
  15658. // system entropy. See #189
  15659. if (node == null || clockseq == null) {
  15660. const seedBytes = options.random || (options.rng || _rng.default)();
  15661. if (node == null) {
  15662. // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
  15663. node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
  15664. }
  15665. if (clockseq == null) {
  15666. // Per 4.2.2, randomize (14 bit) clockseq
  15667. clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
  15668. }
  15669. } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
  15670. // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
  15671. // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
  15672. // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
  15673. let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
  15674. // cycle to simulate higher resolution clock
  15675. let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
  15676. const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
  15677. if (dt < 0 && options.clockseq === undefined) {
  15678. clockseq = clockseq + 1 & 0x3fff;
  15679. } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
  15680. // time interval
  15681. if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
  15682. nsecs = 0;
  15683. } // Per 4.2.1.2 Throw error if too many uuids are requested
  15684. if (nsecs >= 10000) {
  15685. throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
  15686. }
  15687. _lastMSecs = msecs;
  15688. _lastNSecs = nsecs;
  15689. _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
  15690. msecs += 12219292800000; // `time_low`
  15691. const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
  15692. b[i++] = tl >>> 24 & 0xff;
  15693. b[i++] = tl >>> 16 & 0xff;
  15694. b[i++] = tl >>> 8 & 0xff;
  15695. b[i++] = tl & 0xff; // `time_mid`
  15696. const tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
  15697. b[i++] = tmh >>> 8 & 0xff;
  15698. b[i++] = tmh & 0xff; // `time_high_and_version`
  15699. b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
  15700. b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
  15701. b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
  15702. b[i++] = clockseq & 0xff; // `node`
  15703. for (let n = 0; n < 6; ++n) {
  15704. b[i + n] = node[n];
  15705. }
  15706. return buf || (0, _stringify.default)(b);
  15707. }
  15708. var _default = v1;
  15709. exports.default = _default;
  15710. /***/ }),
  15711. /***/ 813:
  15712. /***/ (function(module, __unusedexports, __webpack_require__) {
  15713. var fs = __webpack_require__(747)
  15714. var core
  15715. if (process.platform === 'win32' || global.TESTING_WINDOWS) {
  15716. core = __webpack_require__(818)
  15717. } else {
  15718. core = __webpack_require__(197)
  15719. }
  15720. module.exports = isexe
  15721. isexe.sync = sync
  15722. function isexe (path, options, cb) {
  15723. if (typeof options === 'function') {
  15724. cb = options
  15725. options = {}
  15726. }
  15727. if (!cb) {
  15728. if (typeof Promise !== 'function') {
  15729. throw new TypeError('callback not provided')
  15730. }
  15731. return new Promise(function (resolve, reject) {
  15732. isexe(path, options || {}, function (er, is) {
  15733. if (er) {
  15734. reject(er)
  15735. } else {
  15736. resolve(is)
  15737. }
  15738. })
  15739. })
  15740. }
  15741. core(path, options || {}, function (er, is) {
  15742. // ignore EACCES because that just means we aren't allowed to run it
  15743. if (er) {
  15744. if (er.code === 'EACCES' || options && options.ignoreErrors) {
  15745. er = null
  15746. is = false
  15747. }
  15748. }
  15749. cb(er, is)
  15750. })
  15751. }
  15752. function sync (path, options) {
  15753. // my kingdom for a filtered catch
  15754. try {
  15755. return core.sync(path, options || {})
  15756. } catch (er) {
  15757. if (options && options.ignoreErrors || er.code === 'EACCES') {
  15758. return false
  15759. } else {
  15760. throw er
  15761. }
  15762. }
  15763. }
  15764. /***/ }),
  15765. /***/ 814:
  15766. /***/ (function(module, __unusedexports, __webpack_require__) {
  15767. module.exports = which
  15768. which.sync = whichSync
  15769. var isWindows = process.platform === 'win32' ||
  15770. process.env.OSTYPE === 'cygwin' ||
  15771. process.env.OSTYPE === 'msys'
  15772. var path = __webpack_require__(622)
  15773. var COLON = isWindows ? ';' : ':'
  15774. var isexe = __webpack_require__(813)
  15775. function getNotFoundError (cmd) {
  15776. var er = new Error('not found: ' + cmd)
  15777. er.code = 'ENOENT'
  15778. return er
  15779. }
  15780. function getPathInfo (cmd, opt) {
  15781. var colon = opt.colon || COLON
  15782. var pathEnv = opt.path || process.env.PATH || ''
  15783. var pathExt = ['']
  15784. pathEnv = pathEnv.split(colon)
  15785. var pathExtExe = ''
  15786. if (isWindows) {
  15787. pathEnv.unshift(process.cwd())
  15788. pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
  15789. pathExt = pathExtExe.split(colon)
  15790. // Always test the cmd itself first. isexe will check to make sure
  15791. // it's found in the pathExt set.
  15792. if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
  15793. pathExt.unshift('')
  15794. }
  15795. // If it has a slash, then we don't bother searching the pathenv.
  15796. // just check the file itself, and that's it.
  15797. if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
  15798. pathEnv = ['']
  15799. return {
  15800. env: pathEnv,
  15801. ext: pathExt,
  15802. extExe: pathExtExe
  15803. }
  15804. }
  15805. function which (cmd, opt, cb) {
  15806. if (typeof opt === 'function') {
  15807. cb = opt
  15808. opt = {}
  15809. }
  15810. var info = getPathInfo(cmd, opt)
  15811. var pathEnv = info.env
  15812. var pathExt = info.ext
  15813. var pathExtExe = info.extExe
  15814. var found = []
  15815. ;(function F (i, l) {
  15816. if (i === l) {
  15817. if (opt.all && found.length)
  15818. return cb(null, found)
  15819. else
  15820. return cb(getNotFoundError(cmd))
  15821. }
  15822. var pathPart = pathEnv[i]
  15823. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  15824. pathPart = pathPart.slice(1, -1)
  15825. var p = path.join(pathPart, cmd)
  15826. if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
  15827. p = cmd.slice(0, 2) + p
  15828. }
  15829. ;(function E (ii, ll) {
  15830. if (ii === ll) return F(i + 1, l)
  15831. var ext = pathExt[ii]
  15832. isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
  15833. if (!er && is) {
  15834. if (opt.all)
  15835. found.push(p + ext)
  15836. else
  15837. return cb(null, p + ext)
  15838. }
  15839. return E(ii + 1, ll)
  15840. })
  15841. })(0, pathExt.length)
  15842. })(0, pathEnv.length)
  15843. }
  15844. function whichSync (cmd, opt) {
  15845. opt = opt || {}
  15846. var info = getPathInfo(cmd, opt)
  15847. var pathEnv = info.env
  15848. var pathExt = info.ext
  15849. var pathExtExe = info.extExe
  15850. var found = []
  15851. for (var i = 0, l = pathEnv.length; i < l; i ++) {
  15852. var pathPart = pathEnv[i]
  15853. if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
  15854. pathPart = pathPart.slice(1, -1)
  15855. var p = path.join(pathPart, cmd)
  15856. if (!pathPart && /^\.[\\\/]/.test(cmd)) {
  15857. p = cmd.slice(0, 2) + p
  15858. }
  15859. for (var j = 0, ll = pathExt.length; j < ll; j ++) {
  15860. var cur = p + pathExt[j]
  15861. var is
  15862. try {
  15863. is = isexe.sync(cur, { pathExt: pathExtExe })
  15864. if (is) {
  15865. if (opt.all)
  15866. found.push(cur)
  15867. else
  15868. return cur
  15869. }
  15870. } catch (ex) {}
  15871. }
  15872. }
  15873. if (opt.all && found.length)
  15874. return found
  15875. if (opt.nothrow)
  15876. return null
  15877. throw getNotFoundError(cmd)
  15878. }
  15879. /***/ }),
  15880. /***/ 816:
  15881. /***/ (function(module) {
  15882. "use strict";
  15883. module.exports = /^#!.*/;
  15884. /***/ }),
  15885. /***/ 818:
  15886. /***/ (function(module, __unusedexports, __webpack_require__) {
  15887. module.exports = isexe
  15888. isexe.sync = sync
  15889. var fs = __webpack_require__(747)
  15890. function checkPathExt (path, options) {
  15891. var pathext = options.pathExt !== undefined ?
  15892. options.pathExt : process.env.PATHEXT
  15893. if (!pathext) {
  15894. return true
  15895. }
  15896. pathext = pathext.split(';')
  15897. if (pathext.indexOf('') !== -1) {
  15898. return true
  15899. }
  15900. for (var i = 0; i < pathext.length; i++) {
  15901. var p = pathext[i].toLowerCase()
  15902. if (p && path.substr(-p.length).toLowerCase() === p) {
  15903. return true
  15904. }
  15905. }
  15906. return false
  15907. }
  15908. function checkStat (stat, path, options) {
  15909. if (!stat.isSymbolicLink() && !stat.isFile()) {
  15910. return false
  15911. }
  15912. return checkPathExt(path, options)
  15913. }
  15914. function isexe (path, options, cb) {
  15915. fs.stat(path, function (er, stat) {
  15916. cb(er, er ? false : checkStat(stat, path, options))
  15917. })
  15918. }
  15919. function sync (path, options) {
  15920. return checkStat(fs.statSync(path), path, options)
  15921. }
  15922. /***/ }),
  15923. /***/ 821:
  15924. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  15925. "use strict";
  15926. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  15927. if (k2 === undefined) k2 = k;
  15928. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  15929. }) : (function(o, m, k, k2) {
  15930. if (k2 === undefined) k2 = k;
  15931. o[k2] = m[k];
  15932. }));
  15933. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  15934. Object.defineProperty(o, "default", { enumerable: true, value: v });
  15935. }) : function(o, v) {
  15936. o["default"] = v;
  15937. });
  15938. var __importStar = (this && this.__importStar) || function (mod) {
  15939. if (mod && mod.__esModule) return mod;
  15940. var result = {};
  15941. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  15942. __setModuleDefault(result, mod);
  15943. return result;
  15944. };
  15945. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  15946. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  15947. return new (P || (P = Promise))(function (resolve, reject) {
  15948. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  15949. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  15950. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  15951. step((generator = generator.apply(thisArg, _arguments || [])).next());
  15952. });
  15953. };
  15954. Object.defineProperty(exports, "__esModule", { value: true });
  15955. exports.getInputs = void 0;
  15956. const core = __importStar(__webpack_require__(470));
  15957. const fsHelper = __importStar(__webpack_require__(618));
  15958. const github = __importStar(__webpack_require__(469));
  15959. const path = __importStar(__webpack_require__(622));
  15960. const unsafePrCheckoutHelper = __importStar(__webpack_require__(554));
  15961. const workflowContextHelper = __importStar(__webpack_require__(642));
  15962. function getInputs() {
  15963. return __awaiter(this, void 0, void 0, function* () {
  15964. const result = {};
  15965. // GitHub workspace
  15966. let githubWorkspacePath = process.env['GITHUB_WORKSPACE'];
  15967. if (!githubWorkspacePath) {
  15968. throw new Error('GITHUB_WORKSPACE not defined');
  15969. }
  15970. githubWorkspacePath = path.resolve(githubWorkspacePath);
  15971. core.debug(`GITHUB_WORKSPACE = '${githubWorkspacePath}'`);
  15972. fsHelper.directoryExistsSync(githubWorkspacePath, true);
  15973. // Qualified repository
  15974. const qualifiedRepository = core.getInput('repository') ||
  15975. `${github.context.repo.owner}/${github.context.repo.repo}`;
  15976. core.debug(`qualified repository = '${qualifiedRepository}'`);
  15977. const splitRepository = qualifiedRepository.split('/');
  15978. if (splitRepository.length !== 2 ||
  15979. !splitRepository[0] ||
  15980. !splitRepository[1]) {
  15981. throw new Error(`Invalid repository '${qualifiedRepository}'. Expected format {owner}/{repo}.`);
  15982. }
  15983. result.repositoryOwner = splitRepository[0];
  15984. result.repositoryName = splitRepository[1];
  15985. // Repository path
  15986. result.repositoryPath = core.getInput('path') || '.';
  15987. result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
  15988. if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
  15989. throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
  15990. }
  15991. // Workflow repository?
  15992. const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
  15993. `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
  15994. // Source branch, source version
  15995. result.ref = core.getInput('ref');
  15996. // core.getInput()'s default trim strips a range of Unicode characters such as a
  15997. // leading BOM (U+FEFF) or NBSP (U+00A0). Those are valid in a git ref name, so
  15998. // a fork branch named "<BOM>" + 40 hex chars would trim down to a bare SHA and
  15999. // be silently reclassified as a commit, bypassing the unsafe fork PR checkout
  16000. // guard.
  16001. //
  16002. // The trim below strips only the ASCII whitespace characters which are all forbidden
  16003. // in a git branch name.
  16004. // \t U+0009 horizontal tab - ASCII control, forbidden in ref names
  16005. // \n U+000A line feed - ASCII control, forbidden in ref names
  16006. // \v U+000B vertical tab - ASCII control, forbidden in ref names
  16007. // \f U+000C form feed - ASCII control, forbidden in ref names
  16008. // \r U+000D carriage return - ASCII control, forbidden in ref names
  16009. // ' ' U+0020 space - forbidden in ref names
  16010. const asciiTrimmedRef = core
  16011. .getInput('ref', { trimWhitespace: false })
  16012. .replace(/^[\t\n\v\f\r ]+|[\t\n\v\f\r ]+$/g, '');
  16013. if (!result.ref) {
  16014. if (isWorkflowRepository) {
  16015. result.ref = github.context.ref;
  16016. result.commit = github.context.sha;
  16017. // Some events have an unqualifed ref. For example when a PR is merged (pull_request closed event),
  16018. // the ref is unqualifed like "main" instead of "refs/heads/main".
  16019. if (result.commit && result.ref && !result.ref.startsWith('refs/')) {
  16020. result.ref = `refs/heads/${result.ref}`;
  16021. }
  16022. }
  16023. }
  16024. // SHA?
  16025. else if (asciiTrimmedRef.match(/^[0-9a-fA-F]{40}$/)) {
  16026. result.commit = asciiTrimmedRef;
  16027. result.ref = '';
  16028. }
  16029. core.debug(`ref = '${result.ref}'`);
  16030. core.debug(`commit = '${result.commit}'`);
  16031. // Clean
  16032. result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE';
  16033. core.debug(`clean = ${result.clean}`);
  16034. // Fetch depth
  16035. result.fetchDepth = Math.floor(Number(core.getInput('fetch-depth') || '1'));
  16036. if (isNaN(result.fetchDepth) || result.fetchDepth < 0) {
  16037. result.fetchDepth = 0;
  16038. }
  16039. core.debug(`fetch depth = ${result.fetchDepth}`);
  16040. // LFS
  16041. result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE';
  16042. core.debug(`lfs = ${result.lfs}`);
  16043. // Submodules
  16044. result.submodules = false;
  16045. result.nestedSubmodules = false;
  16046. const submodulesString = (core.getInput('submodules') || '').toUpperCase();
  16047. if (submodulesString == 'RECURSIVE') {
  16048. result.submodules = true;
  16049. result.nestedSubmodules = true;
  16050. }
  16051. else if (submodulesString == 'TRUE') {
  16052. result.submodules = true;
  16053. }
  16054. core.debug(`submodules = ${result.submodules}`);
  16055. core.debug(`recursive submodules = ${result.nestedSubmodules}`);
  16056. // Auth token
  16057. result.authToken = core.getInput('token', { required: true });
  16058. // SSH
  16059. result.sshKey = core.getInput('ssh-key');
  16060. result.sshKnownHosts = core.getInput('ssh-known-hosts');
  16061. result.sshStrict =
  16062. (core.getInput('ssh-strict') || 'true').toUpperCase() === 'TRUE';
  16063. // Persist credentials
  16064. result.persistCredentials =
  16065. (core.getInput('persist-credentials') || 'false').toUpperCase() === 'TRUE';
  16066. // Workflow organization ID
  16067. result.workflowOrganizationId = yield workflowContextHelper.getOrganizationId();
  16068. // Set safe.directory in git global config.
  16069. result.setSafeDirectory =
  16070. (core.getInput('set-safe-directory') || 'true').toUpperCase() === 'TRUE';
  16071. // Allow unsafe PR checkout (opt-in for pull_request_target / workflow_run fork PRs)
  16072. result.allowUnsafePrCheckout =
  16073. (core.getInput('allow-unsafe-pr-checkout') || 'false').toUpperCase() ===
  16074. 'TRUE';
  16075. core.debug(`allow unsafe PR checkout = ${result.allowUnsafePrCheckout}`);
  16076. // The default self-checkout (this repository with no explicit ref) always
  16077. // resolves to the trusted ref/commit GitHub set for the triggering event, so
  16078. // the fork-checkout guard only needs to run when the caller customized the
  16079. // repository or ref.
  16080. const isDefaultCheckout = isWorkflowRepository && !core.getInput('ref');
  16081. if (!isDefaultCheckout) {
  16082. unsafePrCheckoutHelper.assertSafePrCheckout({
  16083. qualifiedRepository,
  16084. ref: result.ref,
  16085. commit: result.commit,
  16086. allowUnsafePrCheckout: result.allowUnsafePrCheckout
  16087. });
  16088. }
  16089. return result;
  16090. });
  16091. }
  16092. exports.getInputs = getInputs;
  16093. /***/ }),
  16094. /***/ 826:
  16095. /***/ (function(module, __unusedexports, __webpack_require__) {
  16096. var rng = __webpack_require__(139);
  16097. var bytesToUuid = __webpack_require__(722);
  16098. function v4(options, buf, offset) {
  16099. var i = buf && offset || 0;
  16100. if (typeof(options) == 'string') {
  16101. buf = options === 'binary' ? new Array(16) : null;
  16102. options = null;
  16103. }
  16104. options = options || {};
  16105. var rnds = options.random || (options.rng || rng)();
  16106. // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
  16107. rnds[6] = (rnds[6] & 0x0f) | 0x40;
  16108. rnds[8] = (rnds[8] & 0x3f) | 0x80;
  16109. // Copy bytes to buffer, if provided
  16110. if (buf) {
  16111. for (var ii = 0; ii < 16; ++ii) {
  16112. buf[i + ii] = rnds[ii];
  16113. }
  16114. }
  16115. return buf || bytesToUuid(rnds);
  16116. }
  16117. module.exports = v4;
  16118. /***/ }),
  16119. /***/ 835:
  16120. /***/ (function(module) {
  16121. module.exports = require("url");
  16122. /***/ }),
  16123. /***/ 842:
  16124. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  16125. "use strict";
  16126. Object.defineProperty(exports, '__esModule', { value: true });
  16127. var deprecation = __webpack_require__(692);
  16128. var endpointsByScope = {
  16129. actions: {
  16130. cancelWorkflowRun: {
  16131. method: "POST",
  16132. params: {
  16133. owner: {
  16134. required: true,
  16135. type: "string"
  16136. },
  16137. repo: {
  16138. required: true,
  16139. type: "string"
  16140. },
  16141. run_id: {
  16142. required: true,
  16143. type: "integer"
  16144. }
  16145. },
  16146. url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"
  16147. },
  16148. createOrUpdateSecretForRepo: {
  16149. method: "PUT",
  16150. params: {
  16151. encrypted_value: {
  16152. type: "string"
  16153. },
  16154. key_id: {
  16155. type: "string"
  16156. },
  16157. name: {
  16158. required: true,
  16159. type: "string"
  16160. },
  16161. owner: {
  16162. required: true,
  16163. type: "string"
  16164. },
  16165. repo: {
  16166. required: true,
  16167. type: "string"
  16168. }
  16169. },
  16170. url: "/repos/:owner/:repo/actions/secrets/:name"
  16171. },
  16172. createRegistrationToken: {
  16173. method: "POST",
  16174. params: {
  16175. owner: {
  16176. required: true,
  16177. type: "string"
  16178. },
  16179. repo: {
  16180. required: true,
  16181. type: "string"
  16182. }
  16183. },
  16184. url: "/repos/:owner/:repo/actions/runners/registration-token"
  16185. },
  16186. createRemoveToken: {
  16187. method: "POST",
  16188. params: {
  16189. owner: {
  16190. required: true,
  16191. type: "string"
  16192. },
  16193. repo: {
  16194. required: true,
  16195. type: "string"
  16196. }
  16197. },
  16198. url: "/repos/:owner/:repo/actions/runners/remove-token"
  16199. },
  16200. deleteArtifact: {
  16201. method: "DELETE",
  16202. params: {
  16203. artifact_id: {
  16204. required: true,
  16205. type: "integer"
  16206. },
  16207. owner: {
  16208. required: true,
  16209. type: "string"
  16210. },
  16211. repo: {
  16212. required: true,
  16213. type: "string"
  16214. }
  16215. },
  16216. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
  16217. },
  16218. deleteSecretFromRepo: {
  16219. method: "DELETE",
  16220. params: {
  16221. name: {
  16222. required: true,
  16223. type: "string"
  16224. },
  16225. owner: {
  16226. required: true,
  16227. type: "string"
  16228. },
  16229. repo: {
  16230. required: true,
  16231. type: "string"
  16232. }
  16233. },
  16234. url: "/repos/:owner/:repo/actions/secrets/:name"
  16235. },
  16236. downloadArtifact: {
  16237. method: "GET",
  16238. params: {
  16239. archive_format: {
  16240. required: true,
  16241. type: "string"
  16242. },
  16243. artifact_id: {
  16244. required: true,
  16245. type: "integer"
  16246. },
  16247. owner: {
  16248. required: true,
  16249. type: "string"
  16250. },
  16251. repo: {
  16252. required: true,
  16253. type: "string"
  16254. }
  16255. },
  16256. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"
  16257. },
  16258. getArtifact: {
  16259. method: "GET",
  16260. params: {
  16261. artifact_id: {
  16262. required: true,
  16263. type: "integer"
  16264. },
  16265. owner: {
  16266. required: true,
  16267. type: "string"
  16268. },
  16269. repo: {
  16270. required: true,
  16271. type: "string"
  16272. }
  16273. },
  16274. url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
  16275. },
  16276. getPublicKey: {
  16277. method: "GET",
  16278. params: {
  16279. owner: {
  16280. required: true,
  16281. type: "string"
  16282. },
  16283. repo: {
  16284. required: true,
  16285. type: "string"
  16286. }
  16287. },
  16288. url: "/repos/:owner/:repo/actions/secrets/public-key"
  16289. },
  16290. getSecret: {
  16291. method: "GET",
  16292. params: {
  16293. name: {
  16294. required: true,
  16295. type: "string"
  16296. },
  16297. owner: {
  16298. required: true,
  16299. type: "string"
  16300. },
  16301. page: {
  16302. type: "integer"
  16303. },
  16304. per_page: {
  16305. type: "integer"
  16306. },
  16307. repo: {
  16308. required: true,
  16309. type: "string"
  16310. }
  16311. },
  16312. url: "/repos/:owner/:repo/actions/secrets/:name"
  16313. },
  16314. getSelfHostedRunner: {
  16315. method: "GET",
  16316. params: {
  16317. owner: {
  16318. required: true,
  16319. type: "string"
  16320. },
  16321. repo: {
  16322. required: true,
  16323. type: "string"
  16324. },
  16325. runner_id: {
  16326. required: true,
  16327. type: "integer"
  16328. }
  16329. },
  16330. url: "/repos/:owner/:repo/actions/runners/:runner_id"
  16331. },
  16332. getWorkflow: {
  16333. method: "GET",
  16334. params: {
  16335. owner: {
  16336. required: true,
  16337. type: "string"
  16338. },
  16339. repo: {
  16340. required: true,
  16341. type: "string"
  16342. },
  16343. workflow_id: {
  16344. required: true,
  16345. type: "integer"
  16346. }
  16347. },
  16348. url: "/repos/:owner/:repo/actions/workflows/:workflow_id"
  16349. },
  16350. getWorkflowJob: {
  16351. method: "GET",
  16352. params: {
  16353. job_id: {
  16354. required: true,
  16355. type: "integer"
  16356. },
  16357. owner: {
  16358. required: true,
  16359. type: "string"
  16360. },
  16361. repo: {
  16362. required: true,
  16363. type: "string"
  16364. }
  16365. },
  16366. url: "/repos/:owner/:repo/actions/jobs/:job_id"
  16367. },
  16368. getWorkflowRun: {
  16369. method: "GET",
  16370. params: {
  16371. owner: {
  16372. required: true,
  16373. type: "string"
  16374. },
  16375. repo: {
  16376. required: true,
  16377. type: "string"
  16378. },
  16379. run_id: {
  16380. required: true,
  16381. type: "integer"
  16382. }
  16383. },
  16384. url: "/repos/:owner/:repo/actions/runs/:run_id"
  16385. },
  16386. listDownloadsForSelfHostedRunnerApplication: {
  16387. method: "GET",
  16388. params: {
  16389. owner: {
  16390. required: true,
  16391. type: "string"
  16392. },
  16393. repo: {
  16394. required: true,
  16395. type: "string"
  16396. }
  16397. },
  16398. url: "/repos/:owner/:repo/actions/runners/downloads"
  16399. },
  16400. listJobsForWorkflowRun: {
  16401. method: "GET",
  16402. params: {
  16403. owner: {
  16404. required: true,
  16405. type: "string"
  16406. },
  16407. page: {
  16408. type: "integer"
  16409. },
  16410. per_page: {
  16411. type: "integer"
  16412. },
  16413. repo: {
  16414. required: true,
  16415. type: "string"
  16416. },
  16417. run_id: {
  16418. required: true,
  16419. type: "integer"
  16420. }
  16421. },
  16422. url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"
  16423. },
  16424. listRepoWorkflowRuns: {
  16425. method: "GET",
  16426. params: {
  16427. actor: {
  16428. type: "string"
  16429. },
  16430. branch: {
  16431. type: "string"
  16432. },
  16433. event: {
  16434. type: "string"
  16435. },
  16436. owner: {
  16437. required: true,
  16438. type: "string"
  16439. },
  16440. page: {
  16441. type: "integer"
  16442. },
  16443. per_page: {
  16444. type: "integer"
  16445. },
  16446. repo: {
  16447. required: true,
  16448. type: "string"
  16449. },
  16450. status: {
  16451. enum: ["completed", "status", "conclusion"],
  16452. type: "string"
  16453. }
  16454. },
  16455. url: "/repos/:owner/:repo/actions/runs"
  16456. },
  16457. listRepoWorkflows: {
  16458. method: "GET",
  16459. params: {
  16460. owner: {
  16461. required: true,
  16462. type: "string"
  16463. },
  16464. page: {
  16465. type: "integer"
  16466. },
  16467. per_page: {
  16468. type: "integer"
  16469. },
  16470. repo: {
  16471. required: true,
  16472. type: "string"
  16473. }
  16474. },
  16475. url: "/repos/:owner/:repo/actions/workflows"
  16476. },
  16477. listSecretsForRepo: {
  16478. method: "GET",
  16479. params: {
  16480. owner: {
  16481. required: true,
  16482. type: "string"
  16483. },
  16484. page: {
  16485. type: "integer"
  16486. },
  16487. per_page: {
  16488. type: "integer"
  16489. },
  16490. repo: {
  16491. required: true,
  16492. type: "string"
  16493. }
  16494. },
  16495. url: "/repos/:owner/:repo/actions/secrets"
  16496. },
  16497. listSelfHostedRunnersForRepo: {
  16498. method: "GET",
  16499. params: {
  16500. owner: {
  16501. required: true,
  16502. type: "string"
  16503. },
  16504. page: {
  16505. type: "integer"
  16506. },
  16507. per_page: {
  16508. type: "integer"
  16509. },
  16510. repo: {
  16511. required: true,
  16512. type: "string"
  16513. }
  16514. },
  16515. url: "/repos/:owner/:repo/actions/runners"
  16516. },
  16517. listWorkflowJobLogs: {
  16518. method: "GET",
  16519. params: {
  16520. job_id: {
  16521. required: true,
  16522. type: "integer"
  16523. },
  16524. owner: {
  16525. required: true,
  16526. type: "string"
  16527. },
  16528. page: {
  16529. type: "integer"
  16530. },
  16531. per_page: {
  16532. type: "integer"
  16533. },
  16534. repo: {
  16535. required: true,
  16536. type: "string"
  16537. }
  16538. },
  16539. url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"
  16540. },
  16541. listWorkflowRunArtifacts: {
  16542. method: "GET",
  16543. params: {
  16544. owner: {
  16545. required: true,
  16546. type: "string"
  16547. },
  16548. page: {
  16549. type: "integer"
  16550. },
  16551. per_page: {
  16552. type: "integer"
  16553. },
  16554. repo: {
  16555. required: true,
  16556. type: "string"
  16557. },
  16558. run_id: {
  16559. required: true,
  16560. type: "integer"
  16561. }
  16562. },
  16563. url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"
  16564. },
  16565. listWorkflowRunLogs: {
  16566. method: "GET",
  16567. params: {
  16568. owner: {
  16569. required: true,
  16570. type: "string"
  16571. },
  16572. page: {
  16573. type: "integer"
  16574. },
  16575. per_page: {
  16576. type: "integer"
  16577. },
  16578. repo: {
  16579. required: true,
  16580. type: "string"
  16581. },
  16582. run_id: {
  16583. required: true,
  16584. type: "integer"
  16585. }
  16586. },
  16587. url: "/repos/:owner/:repo/actions/runs/:run_id/logs"
  16588. },
  16589. listWorkflowRuns: {
  16590. method: "GET",
  16591. params: {
  16592. actor: {
  16593. type: "string"
  16594. },
  16595. branch: {
  16596. type: "string"
  16597. },
  16598. event: {
  16599. type: "string"
  16600. },
  16601. owner: {
  16602. required: true,
  16603. type: "string"
  16604. },
  16605. page: {
  16606. type: "integer"
  16607. },
  16608. per_page: {
  16609. type: "integer"
  16610. },
  16611. repo: {
  16612. required: true,
  16613. type: "string"
  16614. },
  16615. status: {
  16616. enum: ["completed", "status", "conclusion"],
  16617. type: "string"
  16618. },
  16619. workflow_id: {
  16620. required: true,
  16621. type: "integer"
  16622. }
  16623. },
  16624. url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
  16625. },
  16626. reRunWorkflow: {
  16627. method: "POST",
  16628. params: {
  16629. owner: {
  16630. required: true,
  16631. type: "string"
  16632. },
  16633. repo: {
  16634. required: true,
  16635. type: "string"
  16636. },
  16637. run_id: {
  16638. required: true,
  16639. type: "integer"
  16640. }
  16641. },
  16642. url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"
  16643. },
  16644. removeSelfHostedRunner: {
  16645. method: "DELETE",
  16646. params: {
  16647. owner: {
  16648. required: true,
  16649. type: "string"
  16650. },
  16651. repo: {
  16652. required: true,
  16653. type: "string"
  16654. },
  16655. runner_id: {
  16656. required: true,
  16657. type: "integer"
  16658. }
  16659. },
  16660. url: "/repos/:owner/:repo/actions/runners/:runner_id"
  16661. }
  16662. },
  16663. activity: {
  16664. checkStarringRepo: {
  16665. method: "GET",
  16666. params: {
  16667. owner: {
  16668. required: true,
  16669. type: "string"
  16670. },
  16671. repo: {
  16672. required: true,
  16673. type: "string"
  16674. }
  16675. },
  16676. url: "/user/starred/:owner/:repo"
  16677. },
  16678. deleteRepoSubscription: {
  16679. method: "DELETE",
  16680. params: {
  16681. owner: {
  16682. required: true,
  16683. type: "string"
  16684. },
  16685. repo: {
  16686. required: true,
  16687. type: "string"
  16688. }
  16689. },
  16690. url: "/repos/:owner/:repo/subscription"
  16691. },
  16692. deleteThreadSubscription: {
  16693. method: "DELETE",
  16694. params: {
  16695. thread_id: {
  16696. required: true,
  16697. type: "integer"
  16698. }
  16699. },
  16700. url: "/notifications/threads/:thread_id/subscription"
  16701. },
  16702. getRepoSubscription: {
  16703. method: "GET",
  16704. params: {
  16705. owner: {
  16706. required: true,
  16707. type: "string"
  16708. },
  16709. repo: {
  16710. required: true,
  16711. type: "string"
  16712. }
  16713. },
  16714. url: "/repos/:owner/:repo/subscription"
  16715. },
  16716. getThread: {
  16717. method: "GET",
  16718. params: {
  16719. thread_id: {
  16720. required: true,
  16721. type: "integer"
  16722. }
  16723. },
  16724. url: "/notifications/threads/:thread_id"
  16725. },
  16726. getThreadSubscription: {
  16727. method: "GET",
  16728. params: {
  16729. thread_id: {
  16730. required: true,
  16731. type: "integer"
  16732. }
  16733. },
  16734. url: "/notifications/threads/:thread_id/subscription"
  16735. },
  16736. listEventsForOrg: {
  16737. method: "GET",
  16738. params: {
  16739. org: {
  16740. required: true,
  16741. type: "string"
  16742. },
  16743. page: {
  16744. type: "integer"
  16745. },
  16746. per_page: {
  16747. type: "integer"
  16748. },
  16749. username: {
  16750. required: true,
  16751. type: "string"
  16752. }
  16753. },
  16754. url: "/users/:username/events/orgs/:org"
  16755. },
  16756. listEventsForUser: {
  16757. method: "GET",
  16758. params: {
  16759. page: {
  16760. type: "integer"
  16761. },
  16762. per_page: {
  16763. type: "integer"
  16764. },
  16765. username: {
  16766. required: true,
  16767. type: "string"
  16768. }
  16769. },
  16770. url: "/users/:username/events"
  16771. },
  16772. listFeeds: {
  16773. method: "GET",
  16774. params: {},
  16775. url: "/feeds"
  16776. },
  16777. listNotifications: {
  16778. method: "GET",
  16779. params: {
  16780. all: {
  16781. type: "boolean"
  16782. },
  16783. before: {
  16784. type: "string"
  16785. },
  16786. page: {
  16787. type: "integer"
  16788. },
  16789. participating: {
  16790. type: "boolean"
  16791. },
  16792. per_page: {
  16793. type: "integer"
  16794. },
  16795. since: {
  16796. type: "string"
  16797. }
  16798. },
  16799. url: "/notifications"
  16800. },
  16801. listNotificationsForRepo: {
  16802. method: "GET",
  16803. params: {
  16804. all: {
  16805. type: "boolean"
  16806. },
  16807. before: {
  16808. type: "string"
  16809. },
  16810. owner: {
  16811. required: true,
  16812. type: "string"
  16813. },
  16814. page: {
  16815. type: "integer"
  16816. },
  16817. participating: {
  16818. type: "boolean"
  16819. },
  16820. per_page: {
  16821. type: "integer"
  16822. },
  16823. repo: {
  16824. required: true,
  16825. type: "string"
  16826. },
  16827. since: {
  16828. type: "string"
  16829. }
  16830. },
  16831. url: "/repos/:owner/:repo/notifications"
  16832. },
  16833. listPublicEvents: {
  16834. method: "GET",
  16835. params: {
  16836. page: {
  16837. type: "integer"
  16838. },
  16839. per_page: {
  16840. type: "integer"
  16841. }
  16842. },
  16843. url: "/events"
  16844. },
  16845. listPublicEventsForOrg: {
  16846. method: "GET",
  16847. params: {
  16848. org: {
  16849. required: true,
  16850. type: "string"
  16851. },
  16852. page: {
  16853. type: "integer"
  16854. },
  16855. per_page: {
  16856. type: "integer"
  16857. }
  16858. },
  16859. url: "/orgs/:org/events"
  16860. },
  16861. listPublicEventsForRepoNetwork: {
  16862. method: "GET",
  16863. params: {
  16864. owner: {
  16865. required: true,
  16866. type: "string"
  16867. },
  16868. page: {
  16869. type: "integer"
  16870. },
  16871. per_page: {
  16872. type: "integer"
  16873. },
  16874. repo: {
  16875. required: true,
  16876. type: "string"
  16877. }
  16878. },
  16879. url: "/networks/:owner/:repo/events"
  16880. },
  16881. listPublicEventsForUser: {
  16882. method: "GET",
  16883. params: {
  16884. page: {
  16885. type: "integer"
  16886. },
  16887. per_page: {
  16888. type: "integer"
  16889. },
  16890. username: {
  16891. required: true,
  16892. type: "string"
  16893. }
  16894. },
  16895. url: "/users/:username/events/public"
  16896. },
  16897. listReceivedEventsForUser: {
  16898. method: "GET",
  16899. params: {
  16900. page: {
  16901. type: "integer"
  16902. },
  16903. per_page: {
  16904. type: "integer"
  16905. },
  16906. username: {
  16907. required: true,
  16908. type: "string"
  16909. }
  16910. },
  16911. url: "/users/:username/received_events"
  16912. },
  16913. listReceivedPublicEventsForUser: {
  16914. method: "GET",
  16915. params: {
  16916. page: {
  16917. type: "integer"
  16918. },
  16919. per_page: {
  16920. type: "integer"
  16921. },
  16922. username: {
  16923. required: true,
  16924. type: "string"
  16925. }
  16926. },
  16927. url: "/users/:username/received_events/public"
  16928. },
  16929. listRepoEvents: {
  16930. method: "GET",
  16931. params: {
  16932. owner: {
  16933. required: true,
  16934. type: "string"
  16935. },
  16936. page: {
  16937. type: "integer"
  16938. },
  16939. per_page: {
  16940. type: "integer"
  16941. },
  16942. repo: {
  16943. required: true,
  16944. type: "string"
  16945. }
  16946. },
  16947. url: "/repos/:owner/:repo/events"
  16948. },
  16949. listReposStarredByAuthenticatedUser: {
  16950. method: "GET",
  16951. params: {
  16952. direction: {
  16953. enum: ["asc", "desc"],
  16954. type: "string"
  16955. },
  16956. page: {
  16957. type: "integer"
  16958. },
  16959. per_page: {
  16960. type: "integer"
  16961. },
  16962. sort: {
  16963. enum: ["created", "updated"],
  16964. type: "string"
  16965. }
  16966. },
  16967. url: "/user/starred"
  16968. },
  16969. listReposStarredByUser: {
  16970. method: "GET",
  16971. params: {
  16972. direction: {
  16973. enum: ["asc", "desc"],
  16974. type: "string"
  16975. },
  16976. page: {
  16977. type: "integer"
  16978. },
  16979. per_page: {
  16980. type: "integer"
  16981. },
  16982. sort: {
  16983. enum: ["created", "updated"],
  16984. type: "string"
  16985. },
  16986. username: {
  16987. required: true,
  16988. type: "string"
  16989. }
  16990. },
  16991. url: "/users/:username/starred"
  16992. },
  16993. listReposWatchedByUser: {
  16994. method: "GET",
  16995. params: {
  16996. page: {
  16997. type: "integer"
  16998. },
  16999. per_page: {
  17000. type: "integer"
  17001. },
  17002. username: {
  17003. required: true,
  17004. type: "string"
  17005. }
  17006. },
  17007. url: "/users/:username/subscriptions"
  17008. },
  17009. listStargazersForRepo: {
  17010. method: "GET",
  17011. params: {
  17012. owner: {
  17013. required: true,
  17014. type: "string"
  17015. },
  17016. page: {
  17017. type: "integer"
  17018. },
  17019. per_page: {
  17020. type: "integer"
  17021. },
  17022. repo: {
  17023. required: true,
  17024. type: "string"
  17025. }
  17026. },
  17027. url: "/repos/:owner/:repo/stargazers"
  17028. },
  17029. listWatchedReposForAuthenticatedUser: {
  17030. method: "GET",
  17031. params: {
  17032. page: {
  17033. type: "integer"
  17034. },
  17035. per_page: {
  17036. type: "integer"
  17037. }
  17038. },
  17039. url: "/user/subscriptions"
  17040. },
  17041. listWatchersForRepo: {
  17042. method: "GET",
  17043. params: {
  17044. owner: {
  17045. required: true,
  17046. type: "string"
  17047. },
  17048. page: {
  17049. type: "integer"
  17050. },
  17051. per_page: {
  17052. type: "integer"
  17053. },
  17054. repo: {
  17055. required: true,
  17056. type: "string"
  17057. }
  17058. },
  17059. url: "/repos/:owner/:repo/subscribers"
  17060. },
  17061. markAsRead: {
  17062. method: "PUT",
  17063. params: {
  17064. last_read_at: {
  17065. type: "string"
  17066. }
  17067. },
  17068. url: "/notifications"
  17069. },
  17070. markNotificationsAsReadForRepo: {
  17071. method: "PUT",
  17072. params: {
  17073. last_read_at: {
  17074. type: "string"
  17075. },
  17076. owner: {
  17077. required: true,
  17078. type: "string"
  17079. },
  17080. repo: {
  17081. required: true,
  17082. type: "string"
  17083. }
  17084. },
  17085. url: "/repos/:owner/:repo/notifications"
  17086. },
  17087. markThreadAsRead: {
  17088. method: "PATCH",
  17089. params: {
  17090. thread_id: {
  17091. required: true,
  17092. type: "integer"
  17093. }
  17094. },
  17095. url: "/notifications/threads/:thread_id"
  17096. },
  17097. setRepoSubscription: {
  17098. method: "PUT",
  17099. params: {
  17100. ignored: {
  17101. type: "boolean"
  17102. },
  17103. owner: {
  17104. required: true,
  17105. type: "string"
  17106. },
  17107. repo: {
  17108. required: true,
  17109. type: "string"
  17110. },
  17111. subscribed: {
  17112. type: "boolean"
  17113. }
  17114. },
  17115. url: "/repos/:owner/:repo/subscription"
  17116. },
  17117. setThreadSubscription: {
  17118. method: "PUT",
  17119. params: {
  17120. ignored: {
  17121. type: "boolean"
  17122. },
  17123. thread_id: {
  17124. required: true,
  17125. type: "integer"
  17126. }
  17127. },
  17128. url: "/notifications/threads/:thread_id/subscription"
  17129. },
  17130. starRepo: {
  17131. method: "PUT",
  17132. params: {
  17133. owner: {
  17134. required: true,
  17135. type: "string"
  17136. },
  17137. repo: {
  17138. required: true,
  17139. type: "string"
  17140. }
  17141. },
  17142. url: "/user/starred/:owner/:repo"
  17143. },
  17144. unstarRepo: {
  17145. method: "DELETE",
  17146. params: {
  17147. owner: {
  17148. required: true,
  17149. type: "string"
  17150. },
  17151. repo: {
  17152. required: true,
  17153. type: "string"
  17154. }
  17155. },
  17156. url: "/user/starred/:owner/:repo"
  17157. }
  17158. },
  17159. apps: {
  17160. addRepoToInstallation: {
  17161. headers: {
  17162. accept: "application/vnd.github.machine-man-preview+json"
  17163. },
  17164. method: "PUT",
  17165. params: {
  17166. installation_id: {
  17167. required: true,
  17168. type: "integer"
  17169. },
  17170. repository_id: {
  17171. required: true,
  17172. type: "integer"
  17173. }
  17174. },
  17175. url: "/user/installations/:installation_id/repositories/:repository_id"
  17176. },
  17177. checkAccountIsAssociatedWithAny: {
  17178. method: "GET",
  17179. params: {
  17180. account_id: {
  17181. required: true,
  17182. type: "integer"
  17183. }
  17184. },
  17185. url: "/marketplace_listing/accounts/:account_id"
  17186. },
  17187. checkAccountIsAssociatedWithAnyStubbed: {
  17188. method: "GET",
  17189. params: {
  17190. account_id: {
  17191. required: true,
  17192. type: "integer"
  17193. }
  17194. },
  17195. url: "/marketplace_listing/stubbed/accounts/:account_id"
  17196. },
  17197. checkAuthorization: {
  17198. deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",
  17199. method: "GET",
  17200. params: {
  17201. access_token: {
  17202. required: true,
  17203. type: "string"
  17204. },
  17205. client_id: {
  17206. required: true,
  17207. type: "string"
  17208. }
  17209. },
  17210. url: "/applications/:client_id/tokens/:access_token"
  17211. },
  17212. checkToken: {
  17213. headers: {
  17214. accept: "application/vnd.github.doctor-strange-preview+json"
  17215. },
  17216. method: "POST",
  17217. params: {
  17218. access_token: {
  17219. type: "string"
  17220. },
  17221. client_id: {
  17222. required: true,
  17223. type: "string"
  17224. }
  17225. },
  17226. url: "/applications/:client_id/token"
  17227. },
  17228. createContentAttachment: {
  17229. headers: {
  17230. accept: "application/vnd.github.corsair-preview+json"
  17231. },
  17232. method: "POST",
  17233. params: {
  17234. body: {
  17235. required: true,
  17236. type: "string"
  17237. },
  17238. content_reference_id: {
  17239. required: true,
  17240. type: "integer"
  17241. },
  17242. title: {
  17243. required: true,
  17244. type: "string"
  17245. }
  17246. },
  17247. url: "/content_references/:content_reference_id/attachments"
  17248. },
  17249. createFromManifest: {
  17250. headers: {
  17251. accept: "application/vnd.github.fury-preview+json"
  17252. },
  17253. method: "POST",
  17254. params: {
  17255. code: {
  17256. required: true,
  17257. type: "string"
  17258. }
  17259. },
  17260. url: "/app-manifests/:code/conversions"
  17261. },
  17262. createInstallationToken: {
  17263. headers: {
  17264. accept: "application/vnd.github.machine-man-preview+json"
  17265. },
  17266. method: "POST",
  17267. params: {
  17268. installation_id: {
  17269. required: true,
  17270. type: "integer"
  17271. },
  17272. permissions: {
  17273. type: "object"
  17274. },
  17275. repository_ids: {
  17276. type: "integer[]"
  17277. }
  17278. },
  17279. url: "/app/installations/:installation_id/access_tokens"
  17280. },
  17281. deleteAuthorization: {
  17282. headers: {
  17283. accept: "application/vnd.github.doctor-strange-preview+json"
  17284. },
  17285. method: "DELETE",
  17286. params: {
  17287. access_token: {
  17288. type: "string"
  17289. },
  17290. client_id: {
  17291. required: true,
  17292. type: "string"
  17293. }
  17294. },
  17295. url: "/applications/:client_id/grant"
  17296. },
  17297. deleteInstallation: {
  17298. headers: {
  17299. accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"
  17300. },
  17301. method: "DELETE",
  17302. params: {
  17303. installation_id: {
  17304. required: true,
  17305. type: "integer"
  17306. }
  17307. },
  17308. url: "/app/installations/:installation_id"
  17309. },
  17310. deleteToken: {
  17311. headers: {
  17312. accept: "application/vnd.github.doctor-strange-preview+json"
  17313. },
  17314. method: "DELETE",
  17315. params: {
  17316. access_token: {
  17317. type: "string"
  17318. },
  17319. client_id: {
  17320. required: true,
  17321. type: "string"
  17322. }
  17323. },
  17324. url: "/applications/:client_id/token"
  17325. },
  17326. findOrgInstallation: {
  17327. deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",
  17328. headers: {
  17329. accept: "application/vnd.github.machine-man-preview+json"
  17330. },
  17331. method: "GET",
  17332. params: {
  17333. org: {
  17334. required: true,
  17335. type: "string"
  17336. }
  17337. },
  17338. url: "/orgs/:org/installation"
  17339. },
  17340. findRepoInstallation: {
  17341. deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",
  17342. headers: {
  17343. accept: "application/vnd.github.machine-man-preview+json"
  17344. },
  17345. method: "GET",
  17346. params: {
  17347. owner: {
  17348. required: true,
  17349. type: "string"
  17350. },
  17351. repo: {
  17352. required: true,
  17353. type: "string"
  17354. }
  17355. },
  17356. url: "/repos/:owner/:repo/installation"
  17357. },
  17358. findUserInstallation: {
  17359. deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",
  17360. headers: {
  17361. accept: "application/vnd.github.machine-man-preview+json"
  17362. },
  17363. method: "GET",
  17364. params: {
  17365. username: {
  17366. required: true,
  17367. type: "string"
  17368. }
  17369. },
  17370. url: "/users/:username/installation"
  17371. },
  17372. getAuthenticated: {
  17373. headers: {
  17374. accept: "application/vnd.github.machine-man-preview+json"
  17375. },
  17376. method: "GET",
  17377. params: {},
  17378. url: "/app"
  17379. },
  17380. getBySlug: {
  17381. headers: {
  17382. accept: "application/vnd.github.machine-man-preview+json"
  17383. },
  17384. method: "GET",
  17385. params: {
  17386. app_slug: {
  17387. required: true,
  17388. type: "string"
  17389. }
  17390. },
  17391. url: "/apps/:app_slug"
  17392. },
  17393. getInstallation: {
  17394. headers: {
  17395. accept: "application/vnd.github.machine-man-preview+json"
  17396. },
  17397. method: "GET",
  17398. params: {
  17399. installation_id: {
  17400. required: true,
  17401. type: "integer"
  17402. }
  17403. },
  17404. url: "/app/installations/:installation_id"
  17405. },
  17406. getOrgInstallation: {
  17407. headers: {
  17408. accept: "application/vnd.github.machine-man-preview+json"
  17409. },
  17410. method: "GET",
  17411. params: {
  17412. org: {
  17413. required: true,
  17414. type: "string"
  17415. }
  17416. },
  17417. url: "/orgs/:org/installation"
  17418. },
  17419. getRepoInstallation: {
  17420. headers: {
  17421. accept: "application/vnd.github.machine-man-preview+json"
  17422. },
  17423. method: "GET",
  17424. params: {
  17425. owner: {
  17426. required: true,
  17427. type: "string"
  17428. },
  17429. repo: {
  17430. required: true,
  17431. type: "string"
  17432. }
  17433. },
  17434. url: "/repos/:owner/:repo/installation"
  17435. },
  17436. getUserInstallation: {
  17437. headers: {
  17438. accept: "application/vnd.github.machine-man-preview+json"
  17439. },
  17440. method: "GET",
  17441. params: {
  17442. username: {
  17443. required: true,
  17444. type: "string"
  17445. }
  17446. },
  17447. url: "/users/:username/installation"
  17448. },
  17449. listAccountsUserOrOrgOnPlan: {
  17450. method: "GET",
  17451. params: {
  17452. direction: {
  17453. enum: ["asc", "desc"],
  17454. type: "string"
  17455. },
  17456. page: {
  17457. type: "integer"
  17458. },
  17459. per_page: {
  17460. type: "integer"
  17461. },
  17462. plan_id: {
  17463. required: true,
  17464. type: "integer"
  17465. },
  17466. sort: {
  17467. enum: ["created", "updated"],
  17468. type: "string"
  17469. }
  17470. },
  17471. url: "/marketplace_listing/plans/:plan_id/accounts"
  17472. },
  17473. listAccountsUserOrOrgOnPlanStubbed: {
  17474. method: "GET",
  17475. params: {
  17476. direction: {
  17477. enum: ["asc", "desc"],
  17478. type: "string"
  17479. },
  17480. page: {
  17481. type: "integer"
  17482. },
  17483. per_page: {
  17484. type: "integer"
  17485. },
  17486. plan_id: {
  17487. required: true,
  17488. type: "integer"
  17489. },
  17490. sort: {
  17491. enum: ["created", "updated"],
  17492. type: "string"
  17493. }
  17494. },
  17495. url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"
  17496. },
  17497. listInstallationReposForAuthenticatedUser: {
  17498. headers: {
  17499. accept: "application/vnd.github.machine-man-preview+json"
  17500. },
  17501. method: "GET",
  17502. params: {
  17503. installation_id: {
  17504. required: true,
  17505. type: "integer"
  17506. },
  17507. page: {
  17508. type: "integer"
  17509. },
  17510. per_page: {
  17511. type: "integer"
  17512. }
  17513. },
  17514. url: "/user/installations/:installation_id/repositories"
  17515. },
  17516. listInstallations: {
  17517. headers: {
  17518. accept: "application/vnd.github.machine-man-preview+json"
  17519. },
  17520. method: "GET",
  17521. params: {
  17522. page: {
  17523. type: "integer"
  17524. },
  17525. per_page: {
  17526. type: "integer"
  17527. }
  17528. },
  17529. url: "/app/installations"
  17530. },
  17531. listInstallationsForAuthenticatedUser: {
  17532. headers: {
  17533. accept: "application/vnd.github.machine-man-preview+json"
  17534. },
  17535. method: "GET",
  17536. params: {
  17537. page: {
  17538. type: "integer"
  17539. },
  17540. per_page: {
  17541. type: "integer"
  17542. }
  17543. },
  17544. url: "/user/installations"
  17545. },
  17546. listMarketplacePurchasesForAuthenticatedUser: {
  17547. method: "GET",
  17548. params: {
  17549. page: {
  17550. type: "integer"
  17551. },
  17552. per_page: {
  17553. type: "integer"
  17554. }
  17555. },
  17556. url: "/user/marketplace_purchases"
  17557. },
  17558. listMarketplacePurchasesForAuthenticatedUserStubbed: {
  17559. method: "GET",
  17560. params: {
  17561. page: {
  17562. type: "integer"
  17563. },
  17564. per_page: {
  17565. type: "integer"
  17566. }
  17567. },
  17568. url: "/user/marketplace_purchases/stubbed"
  17569. },
  17570. listPlans: {
  17571. method: "GET",
  17572. params: {
  17573. page: {
  17574. type: "integer"
  17575. },
  17576. per_page: {
  17577. type: "integer"
  17578. }
  17579. },
  17580. url: "/marketplace_listing/plans"
  17581. },
  17582. listPlansStubbed: {
  17583. method: "GET",
  17584. params: {
  17585. page: {
  17586. type: "integer"
  17587. },
  17588. per_page: {
  17589. type: "integer"
  17590. }
  17591. },
  17592. url: "/marketplace_listing/stubbed/plans"
  17593. },
  17594. listRepos: {
  17595. headers: {
  17596. accept: "application/vnd.github.machine-man-preview+json"
  17597. },
  17598. method: "GET",
  17599. params: {
  17600. page: {
  17601. type: "integer"
  17602. },
  17603. per_page: {
  17604. type: "integer"
  17605. }
  17606. },
  17607. url: "/installation/repositories"
  17608. },
  17609. removeRepoFromInstallation: {
  17610. headers: {
  17611. accept: "application/vnd.github.machine-man-preview+json"
  17612. },
  17613. method: "DELETE",
  17614. params: {
  17615. installation_id: {
  17616. required: true,
  17617. type: "integer"
  17618. },
  17619. repository_id: {
  17620. required: true,
  17621. type: "integer"
  17622. }
  17623. },
  17624. url: "/user/installations/:installation_id/repositories/:repository_id"
  17625. },
  17626. resetAuthorization: {
  17627. deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",
  17628. method: "POST",
  17629. params: {
  17630. access_token: {
  17631. required: true,
  17632. type: "string"
  17633. },
  17634. client_id: {
  17635. required: true,
  17636. type: "string"
  17637. }
  17638. },
  17639. url: "/applications/:client_id/tokens/:access_token"
  17640. },
  17641. resetToken: {
  17642. headers: {
  17643. accept: "application/vnd.github.doctor-strange-preview+json"
  17644. },
  17645. method: "PATCH",
  17646. params: {
  17647. access_token: {
  17648. type: "string"
  17649. },
  17650. client_id: {
  17651. required: true,
  17652. type: "string"
  17653. }
  17654. },
  17655. url: "/applications/:client_id/token"
  17656. },
  17657. revokeAuthorizationForApplication: {
  17658. deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",
  17659. method: "DELETE",
  17660. params: {
  17661. access_token: {
  17662. required: true,
  17663. type: "string"
  17664. },
  17665. client_id: {
  17666. required: true,
  17667. type: "string"
  17668. }
  17669. },
  17670. url: "/applications/:client_id/tokens/:access_token"
  17671. },
  17672. revokeGrantForApplication: {
  17673. deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",
  17674. method: "DELETE",
  17675. params: {
  17676. access_token: {
  17677. required: true,
  17678. type: "string"
  17679. },
  17680. client_id: {
  17681. required: true,
  17682. type: "string"
  17683. }
  17684. },
  17685. url: "/applications/:client_id/grants/:access_token"
  17686. },
  17687. revokeInstallationToken: {
  17688. headers: {
  17689. accept: "application/vnd.github.gambit-preview+json"
  17690. },
  17691. method: "DELETE",
  17692. params: {},
  17693. url: "/installation/token"
  17694. }
  17695. },
  17696. checks: {
  17697. create: {
  17698. headers: {
  17699. accept: "application/vnd.github.antiope-preview+json"
  17700. },
  17701. method: "POST",
  17702. params: {
  17703. actions: {
  17704. type: "object[]"
  17705. },
  17706. "actions[].description": {
  17707. required: true,
  17708. type: "string"
  17709. },
  17710. "actions[].identifier": {
  17711. required: true,
  17712. type: "string"
  17713. },
  17714. "actions[].label": {
  17715. required: true,
  17716. type: "string"
  17717. },
  17718. completed_at: {
  17719. type: "string"
  17720. },
  17721. conclusion: {
  17722. enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
  17723. type: "string"
  17724. },
  17725. details_url: {
  17726. type: "string"
  17727. },
  17728. external_id: {
  17729. type: "string"
  17730. },
  17731. head_sha: {
  17732. required: true,
  17733. type: "string"
  17734. },
  17735. name: {
  17736. required: true,
  17737. type: "string"
  17738. },
  17739. output: {
  17740. type: "object"
  17741. },
  17742. "output.annotations": {
  17743. type: "object[]"
  17744. },
  17745. "output.annotations[].annotation_level": {
  17746. enum: ["notice", "warning", "failure"],
  17747. required: true,
  17748. type: "string"
  17749. },
  17750. "output.annotations[].end_column": {
  17751. type: "integer"
  17752. },
  17753. "output.annotations[].end_line": {
  17754. required: true,
  17755. type: "integer"
  17756. },
  17757. "output.annotations[].message": {
  17758. required: true,
  17759. type: "string"
  17760. },
  17761. "output.annotations[].path": {
  17762. required: true,
  17763. type: "string"
  17764. },
  17765. "output.annotations[].raw_details": {
  17766. type: "string"
  17767. },
  17768. "output.annotations[].start_column": {
  17769. type: "integer"
  17770. },
  17771. "output.annotations[].start_line": {
  17772. required: true,
  17773. type: "integer"
  17774. },
  17775. "output.annotations[].title": {
  17776. type: "string"
  17777. },
  17778. "output.images": {
  17779. type: "object[]"
  17780. },
  17781. "output.images[].alt": {
  17782. required: true,
  17783. type: "string"
  17784. },
  17785. "output.images[].caption": {
  17786. type: "string"
  17787. },
  17788. "output.images[].image_url": {
  17789. required: true,
  17790. type: "string"
  17791. },
  17792. "output.summary": {
  17793. required: true,
  17794. type: "string"
  17795. },
  17796. "output.text": {
  17797. type: "string"
  17798. },
  17799. "output.title": {
  17800. required: true,
  17801. type: "string"
  17802. },
  17803. owner: {
  17804. required: true,
  17805. type: "string"
  17806. },
  17807. repo: {
  17808. required: true,
  17809. type: "string"
  17810. },
  17811. started_at: {
  17812. type: "string"
  17813. },
  17814. status: {
  17815. enum: ["queued", "in_progress", "completed"],
  17816. type: "string"
  17817. }
  17818. },
  17819. url: "/repos/:owner/:repo/check-runs"
  17820. },
  17821. createSuite: {
  17822. headers: {
  17823. accept: "application/vnd.github.antiope-preview+json"
  17824. },
  17825. method: "POST",
  17826. params: {
  17827. head_sha: {
  17828. required: true,
  17829. type: "string"
  17830. },
  17831. owner: {
  17832. required: true,
  17833. type: "string"
  17834. },
  17835. repo: {
  17836. required: true,
  17837. type: "string"
  17838. }
  17839. },
  17840. url: "/repos/:owner/:repo/check-suites"
  17841. },
  17842. get: {
  17843. headers: {
  17844. accept: "application/vnd.github.antiope-preview+json"
  17845. },
  17846. method: "GET",
  17847. params: {
  17848. check_run_id: {
  17849. required: true,
  17850. type: "integer"
  17851. },
  17852. owner: {
  17853. required: true,
  17854. type: "string"
  17855. },
  17856. repo: {
  17857. required: true,
  17858. type: "string"
  17859. }
  17860. },
  17861. url: "/repos/:owner/:repo/check-runs/:check_run_id"
  17862. },
  17863. getSuite: {
  17864. headers: {
  17865. accept: "application/vnd.github.antiope-preview+json"
  17866. },
  17867. method: "GET",
  17868. params: {
  17869. check_suite_id: {
  17870. required: true,
  17871. type: "integer"
  17872. },
  17873. owner: {
  17874. required: true,
  17875. type: "string"
  17876. },
  17877. repo: {
  17878. required: true,
  17879. type: "string"
  17880. }
  17881. },
  17882. url: "/repos/:owner/:repo/check-suites/:check_suite_id"
  17883. },
  17884. listAnnotations: {
  17885. headers: {
  17886. accept: "application/vnd.github.antiope-preview+json"
  17887. },
  17888. method: "GET",
  17889. params: {
  17890. check_run_id: {
  17891. required: true,
  17892. type: "integer"
  17893. },
  17894. owner: {
  17895. required: true,
  17896. type: "string"
  17897. },
  17898. page: {
  17899. type: "integer"
  17900. },
  17901. per_page: {
  17902. type: "integer"
  17903. },
  17904. repo: {
  17905. required: true,
  17906. type: "string"
  17907. }
  17908. },
  17909. url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"
  17910. },
  17911. listForRef: {
  17912. headers: {
  17913. accept: "application/vnd.github.antiope-preview+json"
  17914. },
  17915. method: "GET",
  17916. params: {
  17917. check_name: {
  17918. type: "string"
  17919. },
  17920. filter: {
  17921. enum: ["latest", "all"],
  17922. type: "string"
  17923. },
  17924. owner: {
  17925. required: true,
  17926. type: "string"
  17927. },
  17928. page: {
  17929. type: "integer"
  17930. },
  17931. per_page: {
  17932. type: "integer"
  17933. },
  17934. ref: {
  17935. required: true,
  17936. type: "string"
  17937. },
  17938. repo: {
  17939. required: true,
  17940. type: "string"
  17941. },
  17942. status: {
  17943. enum: ["queued", "in_progress", "completed"],
  17944. type: "string"
  17945. }
  17946. },
  17947. url: "/repos/:owner/:repo/commits/:ref/check-runs"
  17948. },
  17949. listForSuite: {
  17950. headers: {
  17951. accept: "application/vnd.github.antiope-preview+json"
  17952. },
  17953. method: "GET",
  17954. params: {
  17955. check_name: {
  17956. type: "string"
  17957. },
  17958. check_suite_id: {
  17959. required: true,
  17960. type: "integer"
  17961. },
  17962. filter: {
  17963. enum: ["latest", "all"],
  17964. type: "string"
  17965. },
  17966. owner: {
  17967. required: true,
  17968. type: "string"
  17969. },
  17970. page: {
  17971. type: "integer"
  17972. },
  17973. per_page: {
  17974. type: "integer"
  17975. },
  17976. repo: {
  17977. required: true,
  17978. type: "string"
  17979. },
  17980. status: {
  17981. enum: ["queued", "in_progress", "completed"],
  17982. type: "string"
  17983. }
  17984. },
  17985. url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"
  17986. },
  17987. listSuitesForRef: {
  17988. headers: {
  17989. accept: "application/vnd.github.antiope-preview+json"
  17990. },
  17991. method: "GET",
  17992. params: {
  17993. app_id: {
  17994. type: "integer"
  17995. },
  17996. check_name: {
  17997. type: "string"
  17998. },
  17999. owner: {
  18000. required: true,
  18001. type: "string"
  18002. },
  18003. page: {
  18004. type: "integer"
  18005. },
  18006. per_page: {
  18007. type: "integer"
  18008. },
  18009. ref: {
  18010. required: true,
  18011. type: "string"
  18012. },
  18013. repo: {
  18014. required: true,
  18015. type: "string"
  18016. }
  18017. },
  18018. url: "/repos/:owner/:repo/commits/:ref/check-suites"
  18019. },
  18020. rerequestSuite: {
  18021. headers: {
  18022. accept: "application/vnd.github.antiope-preview+json"
  18023. },
  18024. method: "POST",
  18025. params: {
  18026. check_suite_id: {
  18027. required: true,
  18028. type: "integer"
  18029. },
  18030. owner: {
  18031. required: true,
  18032. type: "string"
  18033. },
  18034. repo: {
  18035. required: true,
  18036. type: "string"
  18037. }
  18038. },
  18039. url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"
  18040. },
  18041. setSuitesPreferences: {
  18042. headers: {
  18043. accept: "application/vnd.github.antiope-preview+json"
  18044. },
  18045. method: "PATCH",
  18046. params: {
  18047. auto_trigger_checks: {
  18048. type: "object[]"
  18049. },
  18050. "auto_trigger_checks[].app_id": {
  18051. required: true,
  18052. type: "integer"
  18053. },
  18054. "auto_trigger_checks[].setting": {
  18055. required: true,
  18056. type: "boolean"
  18057. },
  18058. owner: {
  18059. required: true,
  18060. type: "string"
  18061. },
  18062. repo: {
  18063. required: true,
  18064. type: "string"
  18065. }
  18066. },
  18067. url: "/repos/:owner/:repo/check-suites/preferences"
  18068. },
  18069. update: {
  18070. headers: {
  18071. accept: "application/vnd.github.antiope-preview+json"
  18072. },
  18073. method: "PATCH",
  18074. params: {
  18075. actions: {
  18076. type: "object[]"
  18077. },
  18078. "actions[].description": {
  18079. required: true,
  18080. type: "string"
  18081. },
  18082. "actions[].identifier": {
  18083. required: true,
  18084. type: "string"
  18085. },
  18086. "actions[].label": {
  18087. required: true,
  18088. type: "string"
  18089. },
  18090. check_run_id: {
  18091. required: true,
  18092. type: "integer"
  18093. },
  18094. completed_at: {
  18095. type: "string"
  18096. },
  18097. conclusion: {
  18098. enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
  18099. type: "string"
  18100. },
  18101. details_url: {
  18102. type: "string"
  18103. },
  18104. external_id: {
  18105. type: "string"
  18106. },
  18107. name: {
  18108. type: "string"
  18109. },
  18110. output: {
  18111. type: "object"
  18112. },
  18113. "output.annotations": {
  18114. type: "object[]"
  18115. },
  18116. "output.annotations[].annotation_level": {
  18117. enum: ["notice", "warning", "failure"],
  18118. required: true,
  18119. type: "string"
  18120. },
  18121. "output.annotations[].end_column": {
  18122. type: "integer"
  18123. },
  18124. "output.annotations[].end_line": {
  18125. required: true,
  18126. type: "integer"
  18127. },
  18128. "output.annotations[].message": {
  18129. required: true,
  18130. type: "string"
  18131. },
  18132. "output.annotations[].path": {
  18133. required: true,
  18134. type: "string"
  18135. },
  18136. "output.annotations[].raw_details": {
  18137. type: "string"
  18138. },
  18139. "output.annotations[].start_column": {
  18140. type: "integer"
  18141. },
  18142. "output.annotations[].start_line": {
  18143. required: true,
  18144. type: "integer"
  18145. },
  18146. "output.annotations[].title": {
  18147. type: "string"
  18148. },
  18149. "output.images": {
  18150. type: "object[]"
  18151. },
  18152. "output.images[].alt": {
  18153. required: true,
  18154. type: "string"
  18155. },
  18156. "output.images[].caption": {
  18157. type: "string"
  18158. },
  18159. "output.images[].image_url": {
  18160. required: true,
  18161. type: "string"
  18162. },
  18163. "output.summary": {
  18164. required: true,
  18165. type: "string"
  18166. },
  18167. "output.text": {
  18168. type: "string"
  18169. },
  18170. "output.title": {
  18171. type: "string"
  18172. },
  18173. owner: {
  18174. required: true,
  18175. type: "string"
  18176. },
  18177. repo: {
  18178. required: true,
  18179. type: "string"
  18180. },
  18181. started_at: {
  18182. type: "string"
  18183. },
  18184. status: {
  18185. enum: ["queued", "in_progress", "completed"],
  18186. type: "string"
  18187. }
  18188. },
  18189. url: "/repos/:owner/:repo/check-runs/:check_run_id"
  18190. }
  18191. },
  18192. codesOfConduct: {
  18193. getConductCode: {
  18194. headers: {
  18195. accept: "application/vnd.github.scarlet-witch-preview+json"
  18196. },
  18197. method: "GET",
  18198. params: {
  18199. key: {
  18200. required: true,
  18201. type: "string"
  18202. }
  18203. },
  18204. url: "/codes_of_conduct/:key"
  18205. },
  18206. getForRepo: {
  18207. headers: {
  18208. accept: "application/vnd.github.scarlet-witch-preview+json"
  18209. },
  18210. method: "GET",
  18211. params: {
  18212. owner: {
  18213. required: true,
  18214. type: "string"
  18215. },
  18216. repo: {
  18217. required: true,
  18218. type: "string"
  18219. }
  18220. },
  18221. url: "/repos/:owner/:repo/community/code_of_conduct"
  18222. },
  18223. listConductCodes: {
  18224. headers: {
  18225. accept: "application/vnd.github.scarlet-witch-preview+json"
  18226. },
  18227. method: "GET",
  18228. params: {},
  18229. url: "/codes_of_conduct"
  18230. }
  18231. },
  18232. emojis: {
  18233. get: {
  18234. method: "GET",
  18235. params: {},
  18236. url: "/emojis"
  18237. }
  18238. },
  18239. gists: {
  18240. checkIsStarred: {
  18241. method: "GET",
  18242. params: {
  18243. gist_id: {
  18244. required: true,
  18245. type: "string"
  18246. }
  18247. },
  18248. url: "/gists/:gist_id/star"
  18249. },
  18250. create: {
  18251. method: "POST",
  18252. params: {
  18253. description: {
  18254. type: "string"
  18255. },
  18256. files: {
  18257. required: true,
  18258. type: "object"
  18259. },
  18260. "files.content": {
  18261. type: "string"
  18262. },
  18263. public: {
  18264. type: "boolean"
  18265. }
  18266. },
  18267. url: "/gists"
  18268. },
  18269. createComment: {
  18270. method: "POST",
  18271. params: {
  18272. body: {
  18273. required: true,
  18274. type: "string"
  18275. },
  18276. gist_id: {
  18277. required: true,
  18278. type: "string"
  18279. }
  18280. },
  18281. url: "/gists/:gist_id/comments"
  18282. },
  18283. delete: {
  18284. method: "DELETE",
  18285. params: {
  18286. gist_id: {
  18287. required: true,
  18288. type: "string"
  18289. }
  18290. },
  18291. url: "/gists/:gist_id"
  18292. },
  18293. deleteComment: {
  18294. method: "DELETE",
  18295. params: {
  18296. comment_id: {
  18297. required: true,
  18298. type: "integer"
  18299. },
  18300. gist_id: {
  18301. required: true,
  18302. type: "string"
  18303. }
  18304. },
  18305. url: "/gists/:gist_id/comments/:comment_id"
  18306. },
  18307. fork: {
  18308. method: "POST",
  18309. params: {
  18310. gist_id: {
  18311. required: true,
  18312. type: "string"
  18313. }
  18314. },
  18315. url: "/gists/:gist_id/forks"
  18316. },
  18317. get: {
  18318. method: "GET",
  18319. params: {
  18320. gist_id: {
  18321. required: true,
  18322. type: "string"
  18323. }
  18324. },
  18325. url: "/gists/:gist_id"
  18326. },
  18327. getComment: {
  18328. method: "GET",
  18329. params: {
  18330. comment_id: {
  18331. required: true,
  18332. type: "integer"
  18333. },
  18334. gist_id: {
  18335. required: true,
  18336. type: "string"
  18337. }
  18338. },
  18339. url: "/gists/:gist_id/comments/:comment_id"
  18340. },
  18341. getRevision: {
  18342. method: "GET",
  18343. params: {
  18344. gist_id: {
  18345. required: true,
  18346. type: "string"
  18347. },
  18348. sha: {
  18349. required: true,
  18350. type: "string"
  18351. }
  18352. },
  18353. url: "/gists/:gist_id/:sha"
  18354. },
  18355. list: {
  18356. method: "GET",
  18357. params: {
  18358. page: {
  18359. type: "integer"
  18360. },
  18361. per_page: {
  18362. type: "integer"
  18363. },
  18364. since: {
  18365. type: "string"
  18366. }
  18367. },
  18368. url: "/gists"
  18369. },
  18370. listComments: {
  18371. method: "GET",
  18372. params: {
  18373. gist_id: {
  18374. required: true,
  18375. type: "string"
  18376. },
  18377. page: {
  18378. type: "integer"
  18379. },
  18380. per_page: {
  18381. type: "integer"
  18382. }
  18383. },
  18384. url: "/gists/:gist_id/comments"
  18385. },
  18386. listCommits: {
  18387. method: "GET",
  18388. params: {
  18389. gist_id: {
  18390. required: true,
  18391. type: "string"
  18392. },
  18393. page: {
  18394. type: "integer"
  18395. },
  18396. per_page: {
  18397. type: "integer"
  18398. }
  18399. },
  18400. url: "/gists/:gist_id/commits"
  18401. },
  18402. listForks: {
  18403. method: "GET",
  18404. params: {
  18405. gist_id: {
  18406. required: true,
  18407. type: "string"
  18408. },
  18409. page: {
  18410. type: "integer"
  18411. },
  18412. per_page: {
  18413. type: "integer"
  18414. }
  18415. },
  18416. url: "/gists/:gist_id/forks"
  18417. },
  18418. listPublic: {
  18419. method: "GET",
  18420. params: {
  18421. page: {
  18422. type: "integer"
  18423. },
  18424. per_page: {
  18425. type: "integer"
  18426. },
  18427. since: {
  18428. type: "string"
  18429. }
  18430. },
  18431. url: "/gists/public"
  18432. },
  18433. listPublicForUser: {
  18434. method: "GET",
  18435. params: {
  18436. page: {
  18437. type: "integer"
  18438. },
  18439. per_page: {
  18440. type: "integer"
  18441. },
  18442. since: {
  18443. type: "string"
  18444. },
  18445. username: {
  18446. required: true,
  18447. type: "string"
  18448. }
  18449. },
  18450. url: "/users/:username/gists"
  18451. },
  18452. listStarred: {
  18453. method: "GET",
  18454. params: {
  18455. page: {
  18456. type: "integer"
  18457. },
  18458. per_page: {
  18459. type: "integer"
  18460. },
  18461. since: {
  18462. type: "string"
  18463. }
  18464. },
  18465. url: "/gists/starred"
  18466. },
  18467. star: {
  18468. method: "PUT",
  18469. params: {
  18470. gist_id: {
  18471. required: true,
  18472. type: "string"
  18473. }
  18474. },
  18475. url: "/gists/:gist_id/star"
  18476. },
  18477. unstar: {
  18478. method: "DELETE",
  18479. params: {
  18480. gist_id: {
  18481. required: true,
  18482. type: "string"
  18483. }
  18484. },
  18485. url: "/gists/:gist_id/star"
  18486. },
  18487. update: {
  18488. method: "PATCH",
  18489. params: {
  18490. description: {
  18491. type: "string"
  18492. },
  18493. files: {
  18494. type: "object"
  18495. },
  18496. "files.content": {
  18497. type: "string"
  18498. },
  18499. "files.filename": {
  18500. type: "string"
  18501. },
  18502. gist_id: {
  18503. required: true,
  18504. type: "string"
  18505. }
  18506. },
  18507. url: "/gists/:gist_id"
  18508. },
  18509. updateComment: {
  18510. method: "PATCH",
  18511. params: {
  18512. body: {
  18513. required: true,
  18514. type: "string"
  18515. },
  18516. comment_id: {
  18517. required: true,
  18518. type: "integer"
  18519. },
  18520. gist_id: {
  18521. required: true,
  18522. type: "string"
  18523. }
  18524. },
  18525. url: "/gists/:gist_id/comments/:comment_id"
  18526. }
  18527. },
  18528. git: {
  18529. createBlob: {
  18530. method: "POST",
  18531. params: {
  18532. content: {
  18533. required: true,
  18534. type: "string"
  18535. },
  18536. encoding: {
  18537. type: "string"
  18538. },
  18539. owner: {
  18540. required: true,
  18541. type: "string"
  18542. },
  18543. repo: {
  18544. required: true,
  18545. type: "string"
  18546. }
  18547. },
  18548. url: "/repos/:owner/:repo/git/blobs"
  18549. },
  18550. createCommit: {
  18551. method: "POST",
  18552. params: {
  18553. author: {
  18554. type: "object"
  18555. },
  18556. "author.date": {
  18557. type: "string"
  18558. },
  18559. "author.email": {
  18560. type: "string"
  18561. },
  18562. "author.name": {
  18563. type: "string"
  18564. },
  18565. committer: {
  18566. type: "object"
  18567. },
  18568. "committer.date": {
  18569. type: "string"
  18570. },
  18571. "committer.email": {
  18572. type: "string"
  18573. },
  18574. "committer.name": {
  18575. type: "string"
  18576. },
  18577. message: {
  18578. required: true,
  18579. type: "string"
  18580. },
  18581. owner: {
  18582. required: true,
  18583. type: "string"
  18584. },
  18585. parents: {
  18586. required: true,
  18587. type: "string[]"
  18588. },
  18589. repo: {
  18590. required: true,
  18591. type: "string"
  18592. },
  18593. signature: {
  18594. type: "string"
  18595. },
  18596. tree: {
  18597. required: true,
  18598. type: "string"
  18599. }
  18600. },
  18601. url: "/repos/:owner/:repo/git/commits"
  18602. },
  18603. createRef: {
  18604. method: "POST",
  18605. params: {
  18606. owner: {
  18607. required: true,
  18608. type: "string"
  18609. },
  18610. ref: {
  18611. required: true,
  18612. type: "string"
  18613. },
  18614. repo: {
  18615. required: true,
  18616. type: "string"
  18617. },
  18618. sha: {
  18619. required: true,
  18620. type: "string"
  18621. }
  18622. },
  18623. url: "/repos/:owner/:repo/git/refs"
  18624. },
  18625. createTag: {
  18626. method: "POST",
  18627. params: {
  18628. message: {
  18629. required: true,
  18630. type: "string"
  18631. },
  18632. object: {
  18633. required: true,
  18634. type: "string"
  18635. },
  18636. owner: {
  18637. required: true,
  18638. type: "string"
  18639. },
  18640. repo: {
  18641. required: true,
  18642. type: "string"
  18643. },
  18644. tag: {
  18645. required: true,
  18646. type: "string"
  18647. },
  18648. tagger: {
  18649. type: "object"
  18650. },
  18651. "tagger.date": {
  18652. type: "string"
  18653. },
  18654. "tagger.email": {
  18655. type: "string"
  18656. },
  18657. "tagger.name": {
  18658. type: "string"
  18659. },
  18660. type: {
  18661. enum: ["commit", "tree", "blob"],
  18662. required: true,
  18663. type: "string"
  18664. }
  18665. },
  18666. url: "/repos/:owner/:repo/git/tags"
  18667. },
  18668. createTree: {
  18669. method: "POST",
  18670. params: {
  18671. base_tree: {
  18672. type: "string"
  18673. },
  18674. owner: {
  18675. required: true,
  18676. type: "string"
  18677. },
  18678. repo: {
  18679. required: true,
  18680. type: "string"
  18681. },
  18682. tree: {
  18683. required: true,
  18684. type: "object[]"
  18685. },
  18686. "tree[].content": {
  18687. type: "string"
  18688. },
  18689. "tree[].mode": {
  18690. enum: ["100644", "100755", "040000", "160000", "120000"],
  18691. type: "string"
  18692. },
  18693. "tree[].path": {
  18694. type: "string"
  18695. },
  18696. "tree[].sha": {
  18697. allowNull: true,
  18698. type: "string"
  18699. },
  18700. "tree[].type": {
  18701. enum: ["blob", "tree", "commit"],
  18702. type: "string"
  18703. }
  18704. },
  18705. url: "/repos/:owner/:repo/git/trees"
  18706. },
  18707. deleteRef: {
  18708. method: "DELETE",
  18709. params: {
  18710. owner: {
  18711. required: true,
  18712. type: "string"
  18713. },
  18714. ref: {
  18715. required: true,
  18716. type: "string"
  18717. },
  18718. repo: {
  18719. required: true,
  18720. type: "string"
  18721. }
  18722. },
  18723. url: "/repos/:owner/:repo/git/refs/:ref"
  18724. },
  18725. getBlob: {
  18726. method: "GET",
  18727. params: {
  18728. file_sha: {
  18729. required: true,
  18730. type: "string"
  18731. },
  18732. owner: {
  18733. required: true,
  18734. type: "string"
  18735. },
  18736. repo: {
  18737. required: true,
  18738. type: "string"
  18739. }
  18740. },
  18741. url: "/repos/:owner/:repo/git/blobs/:file_sha"
  18742. },
  18743. getCommit: {
  18744. method: "GET",
  18745. params: {
  18746. commit_sha: {
  18747. required: true,
  18748. type: "string"
  18749. },
  18750. owner: {
  18751. required: true,
  18752. type: "string"
  18753. },
  18754. repo: {
  18755. required: true,
  18756. type: "string"
  18757. }
  18758. },
  18759. url: "/repos/:owner/:repo/git/commits/:commit_sha"
  18760. },
  18761. getRef: {
  18762. method: "GET",
  18763. params: {
  18764. owner: {
  18765. required: true,
  18766. type: "string"
  18767. },
  18768. ref: {
  18769. required: true,
  18770. type: "string"
  18771. },
  18772. repo: {
  18773. required: true,
  18774. type: "string"
  18775. }
  18776. },
  18777. url: "/repos/:owner/:repo/git/ref/:ref"
  18778. },
  18779. getTag: {
  18780. method: "GET",
  18781. params: {
  18782. owner: {
  18783. required: true,
  18784. type: "string"
  18785. },
  18786. repo: {
  18787. required: true,
  18788. type: "string"
  18789. },
  18790. tag_sha: {
  18791. required: true,
  18792. type: "string"
  18793. }
  18794. },
  18795. url: "/repos/:owner/:repo/git/tags/:tag_sha"
  18796. },
  18797. getTree: {
  18798. method: "GET",
  18799. params: {
  18800. owner: {
  18801. required: true,
  18802. type: "string"
  18803. },
  18804. recursive: {
  18805. enum: ["1"],
  18806. type: "integer"
  18807. },
  18808. repo: {
  18809. required: true,
  18810. type: "string"
  18811. },
  18812. tree_sha: {
  18813. required: true,
  18814. type: "string"
  18815. }
  18816. },
  18817. url: "/repos/:owner/:repo/git/trees/:tree_sha"
  18818. },
  18819. listMatchingRefs: {
  18820. method: "GET",
  18821. params: {
  18822. owner: {
  18823. required: true,
  18824. type: "string"
  18825. },
  18826. page: {
  18827. type: "integer"
  18828. },
  18829. per_page: {
  18830. type: "integer"
  18831. },
  18832. ref: {
  18833. required: true,
  18834. type: "string"
  18835. },
  18836. repo: {
  18837. required: true,
  18838. type: "string"
  18839. }
  18840. },
  18841. url: "/repos/:owner/:repo/git/matching-refs/:ref"
  18842. },
  18843. listRefs: {
  18844. method: "GET",
  18845. params: {
  18846. namespace: {
  18847. type: "string"
  18848. },
  18849. owner: {
  18850. required: true,
  18851. type: "string"
  18852. },
  18853. page: {
  18854. type: "integer"
  18855. },
  18856. per_page: {
  18857. type: "integer"
  18858. },
  18859. repo: {
  18860. required: true,
  18861. type: "string"
  18862. }
  18863. },
  18864. url: "/repos/:owner/:repo/git/refs/:namespace"
  18865. },
  18866. updateRef: {
  18867. method: "PATCH",
  18868. params: {
  18869. force: {
  18870. type: "boolean"
  18871. },
  18872. owner: {
  18873. required: true,
  18874. type: "string"
  18875. },
  18876. ref: {
  18877. required: true,
  18878. type: "string"
  18879. },
  18880. repo: {
  18881. required: true,
  18882. type: "string"
  18883. },
  18884. sha: {
  18885. required: true,
  18886. type: "string"
  18887. }
  18888. },
  18889. url: "/repos/:owner/:repo/git/refs/:ref"
  18890. }
  18891. },
  18892. gitignore: {
  18893. getTemplate: {
  18894. method: "GET",
  18895. params: {
  18896. name: {
  18897. required: true,
  18898. type: "string"
  18899. }
  18900. },
  18901. url: "/gitignore/templates/:name"
  18902. },
  18903. listTemplates: {
  18904. method: "GET",
  18905. params: {},
  18906. url: "/gitignore/templates"
  18907. }
  18908. },
  18909. interactions: {
  18910. addOrUpdateRestrictionsForOrg: {
  18911. headers: {
  18912. accept: "application/vnd.github.sombra-preview+json"
  18913. },
  18914. method: "PUT",
  18915. params: {
  18916. limit: {
  18917. enum: ["existing_users", "contributors_only", "collaborators_only"],
  18918. required: true,
  18919. type: "string"
  18920. },
  18921. org: {
  18922. required: true,
  18923. type: "string"
  18924. }
  18925. },
  18926. url: "/orgs/:org/interaction-limits"
  18927. },
  18928. addOrUpdateRestrictionsForRepo: {
  18929. headers: {
  18930. accept: "application/vnd.github.sombra-preview+json"
  18931. },
  18932. method: "PUT",
  18933. params: {
  18934. limit: {
  18935. enum: ["existing_users", "contributors_only", "collaborators_only"],
  18936. required: true,
  18937. type: "string"
  18938. },
  18939. owner: {
  18940. required: true,
  18941. type: "string"
  18942. },
  18943. repo: {
  18944. required: true,
  18945. type: "string"
  18946. }
  18947. },
  18948. url: "/repos/:owner/:repo/interaction-limits"
  18949. },
  18950. getRestrictionsForOrg: {
  18951. headers: {
  18952. accept: "application/vnd.github.sombra-preview+json"
  18953. },
  18954. method: "GET",
  18955. params: {
  18956. org: {
  18957. required: true,
  18958. type: "string"
  18959. }
  18960. },
  18961. url: "/orgs/:org/interaction-limits"
  18962. },
  18963. getRestrictionsForRepo: {
  18964. headers: {
  18965. accept: "application/vnd.github.sombra-preview+json"
  18966. },
  18967. method: "GET",
  18968. params: {
  18969. owner: {
  18970. required: true,
  18971. type: "string"
  18972. },
  18973. repo: {
  18974. required: true,
  18975. type: "string"
  18976. }
  18977. },
  18978. url: "/repos/:owner/:repo/interaction-limits"
  18979. },
  18980. removeRestrictionsForOrg: {
  18981. headers: {
  18982. accept: "application/vnd.github.sombra-preview+json"
  18983. },
  18984. method: "DELETE",
  18985. params: {
  18986. org: {
  18987. required: true,
  18988. type: "string"
  18989. }
  18990. },
  18991. url: "/orgs/:org/interaction-limits"
  18992. },
  18993. removeRestrictionsForRepo: {
  18994. headers: {
  18995. accept: "application/vnd.github.sombra-preview+json"
  18996. },
  18997. method: "DELETE",
  18998. params: {
  18999. owner: {
  19000. required: true,
  19001. type: "string"
  19002. },
  19003. repo: {
  19004. required: true,
  19005. type: "string"
  19006. }
  19007. },
  19008. url: "/repos/:owner/:repo/interaction-limits"
  19009. }
  19010. },
  19011. issues: {
  19012. addAssignees: {
  19013. method: "POST",
  19014. params: {
  19015. assignees: {
  19016. type: "string[]"
  19017. },
  19018. issue_number: {
  19019. required: true,
  19020. type: "integer"
  19021. },
  19022. number: {
  19023. alias: "issue_number",
  19024. deprecated: true,
  19025. type: "integer"
  19026. },
  19027. owner: {
  19028. required: true,
  19029. type: "string"
  19030. },
  19031. repo: {
  19032. required: true,
  19033. type: "string"
  19034. }
  19035. },
  19036. url: "/repos/:owner/:repo/issues/:issue_number/assignees"
  19037. },
  19038. addLabels: {
  19039. method: "POST",
  19040. params: {
  19041. issue_number: {
  19042. required: true,
  19043. type: "integer"
  19044. },
  19045. labels: {
  19046. required: true,
  19047. type: "string[]"
  19048. },
  19049. number: {
  19050. alias: "issue_number",
  19051. deprecated: true,
  19052. type: "integer"
  19053. },
  19054. owner: {
  19055. required: true,
  19056. type: "string"
  19057. },
  19058. repo: {
  19059. required: true,
  19060. type: "string"
  19061. }
  19062. },
  19063. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  19064. },
  19065. checkAssignee: {
  19066. method: "GET",
  19067. params: {
  19068. assignee: {
  19069. required: true,
  19070. type: "string"
  19071. },
  19072. owner: {
  19073. required: true,
  19074. type: "string"
  19075. },
  19076. repo: {
  19077. required: true,
  19078. type: "string"
  19079. }
  19080. },
  19081. url: "/repos/:owner/:repo/assignees/:assignee"
  19082. },
  19083. create: {
  19084. method: "POST",
  19085. params: {
  19086. assignee: {
  19087. type: "string"
  19088. },
  19089. assignees: {
  19090. type: "string[]"
  19091. },
  19092. body: {
  19093. type: "string"
  19094. },
  19095. labels: {
  19096. type: "string[]"
  19097. },
  19098. milestone: {
  19099. type: "integer"
  19100. },
  19101. owner: {
  19102. required: true,
  19103. type: "string"
  19104. },
  19105. repo: {
  19106. required: true,
  19107. type: "string"
  19108. },
  19109. title: {
  19110. required: true,
  19111. type: "string"
  19112. }
  19113. },
  19114. url: "/repos/:owner/:repo/issues"
  19115. },
  19116. createComment: {
  19117. method: "POST",
  19118. params: {
  19119. body: {
  19120. required: true,
  19121. type: "string"
  19122. },
  19123. issue_number: {
  19124. required: true,
  19125. type: "integer"
  19126. },
  19127. number: {
  19128. alias: "issue_number",
  19129. deprecated: true,
  19130. type: "integer"
  19131. },
  19132. owner: {
  19133. required: true,
  19134. type: "string"
  19135. },
  19136. repo: {
  19137. required: true,
  19138. type: "string"
  19139. }
  19140. },
  19141. url: "/repos/:owner/:repo/issues/:issue_number/comments"
  19142. },
  19143. createLabel: {
  19144. method: "POST",
  19145. params: {
  19146. color: {
  19147. required: true,
  19148. type: "string"
  19149. },
  19150. description: {
  19151. type: "string"
  19152. },
  19153. name: {
  19154. required: true,
  19155. type: "string"
  19156. },
  19157. owner: {
  19158. required: true,
  19159. type: "string"
  19160. },
  19161. repo: {
  19162. required: true,
  19163. type: "string"
  19164. }
  19165. },
  19166. url: "/repos/:owner/:repo/labels"
  19167. },
  19168. createMilestone: {
  19169. method: "POST",
  19170. params: {
  19171. description: {
  19172. type: "string"
  19173. },
  19174. due_on: {
  19175. type: "string"
  19176. },
  19177. owner: {
  19178. required: true,
  19179. type: "string"
  19180. },
  19181. repo: {
  19182. required: true,
  19183. type: "string"
  19184. },
  19185. state: {
  19186. enum: ["open", "closed"],
  19187. type: "string"
  19188. },
  19189. title: {
  19190. required: true,
  19191. type: "string"
  19192. }
  19193. },
  19194. url: "/repos/:owner/:repo/milestones"
  19195. },
  19196. deleteComment: {
  19197. method: "DELETE",
  19198. params: {
  19199. comment_id: {
  19200. required: true,
  19201. type: "integer"
  19202. },
  19203. owner: {
  19204. required: true,
  19205. type: "string"
  19206. },
  19207. repo: {
  19208. required: true,
  19209. type: "string"
  19210. }
  19211. },
  19212. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  19213. },
  19214. deleteLabel: {
  19215. method: "DELETE",
  19216. params: {
  19217. name: {
  19218. required: true,
  19219. type: "string"
  19220. },
  19221. owner: {
  19222. required: true,
  19223. type: "string"
  19224. },
  19225. repo: {
  19226. required: true,
  19227. type: "string"
  19228. }
  19229. },
  19230. url: "/repos/:owner/:repo/labels/:name"
  19231. },
  19232. deleteMilestone: {
  19233. method: "DELETE",
  19234. params: {
  19235. milestone_number: {
  19236. required: true,
  19237. type: "integer"
  19238. },
  19239. number: {
  19240. alias: "milestone_number",
  19241. deprecated: true,
  19242. type: "integer"
  19243. },
  19244. owner: {
  19245. required: true,
  19246. type: "string"
  19247. },
  19248. repo: {
  19249. required: true,
  19250. type: "string"
  19251. }
  19252. },
  19253. url: "/repos/:owner/:repo/milestones/:milestone_number"
  19254. },
  19255. get: {
  19256. method: "GET",
  19257. params: {
  19258. issue_number: {
  19259. required: true,
  19260. type: "integer"
  19261. },
  19262. number: {
  19263. alias: "issue_number",
  19264. deprecated: true,
  19265. type: "integer"
  19266. },
  19267. owner: {
  19268. required: true,
  19269. type: "string"
  19270. },
  19271. repo: {
  19272. required: true,
  19273. type: "string"
  19274. }
  19275. },
  19276. url: "/repos/:owner/:repo/issues/:issue_number"
  19277. },
  19278. getComment: {
  19279. method: "GET",
  19280. params: {
  19281. comment_id: {
  19282. required: true,
  19283. type: "integer"
  19284. },
  19285. owner: {
  19286. required: true,
  19287. type: "string"
  19288. },
  19289. repo: {
  19290. required: true,
  19291. type: "string"
  19292. }
  19293. },
  19294. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  19295. },
  19296. getEvent: {
  19297. method: "GET",
  19298. params: {
  19299. event_id: {
  19300. required: true,
  19301. type: "integer"
  19302. },
  19303. owner: {
  19304. required: true,
  19305. type: "string"
  19306. },
  19307. repo: {
  19308. required: true,
  19309. type: "string"
  19310. }
  19311. },
  19312. url: "/repos/:owner/:repo/issues/events/:event_id"
  19313. },
  19314. getLabel: {
  19315. method: "GET",
  19316. params: {
  19317. name: {
  19318. required: true,
  19319. type: "string"
  19320. },
  19321. owner: {
  19322. required: true,
  19323. type: "string"
  19324. },
  19325. repo: {
  19326. required: true,
  19327. type: "string"
  19328. }
  19329. },
  19330. url: "/repos/:owner/:repo/labels/:name"
  19331. },
  19332. getMilestone: {
  19333. method: "GET",
  19334. params: {
  19335. milestone_number: {
  19336. required: true,
  19337. type: "integer"
  19338. },
  19339. number: {
  19340. alias: "milestone_number",
  19341. deprecated: true,
  19342. type: "integer"
  19343. },
  19344. owner: {
  19345. required: true,
  19346. type: "string"
  19347. },
  19348. repo: {
  19349. required: true,
  19350. type: "string"
  19351. }
  19352. },
  19353. url: "/repos/:owner/:repo/milestones/:milestone_number"
  19354. },
  19355. list: {
  19356. method: "GET",
  19357. params: {
  19358. direction: {
  19359. enum: ["asc", "desc"],
  19360. type: "string"
  19361. },
  19362. filter: {
  19363. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  19364. type: "string"
  19365. },
  19366. labels: {
  19367. type: "string"
  19368. },
  19369. page: {
  19370. type: "integer"
  19371. },
  19372. per_page: {
  19373. type: "integer"
  19374. },
  19375. since: {
  19376. type: "string"
  19377. },
  19378. sort: {
  19379. enum: ["created", "updated", "comments"],
  19380. type: "string"
  19381. },
  19382. state: {
  19383. enum: ["open", "closed", "all"],
  19384. type: "string"
  19385. }
  19386. },
  19387. url: "/issues"
  19388. },
  19389. listAssignees: {
  19390. method: "GET",
  19391. params: {
  19392. owner: {
  19393. required: true,
  19394. type: "string"
  19395. },
  19396. page: {
  19397. type: "integer"
  19398. },
  19399. per_page: {
  19400. type: "integer"
  19401. },
  19402. repo: {
  19403. required: true,
  19404. type: "string"
  19405. }
  19406. },
  19407. url: "/repos/:owner/:repo/assignees"
  19408. },
  19409. listComments: {
  19410. method: "GET",
  19411. params: {
  19412. issue_number: {
  19413. required: true,
  19414. type: "integer"
  19415. },
  19416. number: {
  19417. alias: "issue_number",
  19418. deprecated: true,
  19419. type: "integer"
  19420. },
  19421. owner: {
  19422. required: true,
  19423. type: "string"
  19424. },
  19425. page: {
  19426. type: "integer"
  19427. },
  19428. per_page: {
  19429. type: "integer"
  19430. },
  19431. repo: {
  19432. required: true,
  19433. type: "string"
  19434. },
  19435. since: {
  19436. type: "string"
  19437. }
  19438. },
  19439. url: "/repos/:owner/:repo/issues/:issue_number/comments"
  19440. },
  19441. listCommentsForRepo: {
  19442. method: "GET",
  19443. params: {
  19444. direction: {
  19445. enum: ["asc", "desc"],
  19446. type: "string"
  19447. },
  19448. owner: {
  19449. required: true,
  19450. type: "string"
  19451. },
  19452. repo: {
  19453. required: true,
  19454. type: "string"
  19455. },
  19456. since: {
  19457. type: "string"
  19458. },
  19459. sort: {
  19460. enum: ["created", "updated"],
  19461. type: "string"
  19462. }
  19463. },
  19464. url: "/repos/:owner/:repo/issues/comments"
  19465. },
  19466. listEvents: {
  19467. method: "GET",
  19468. params: {
  19469. issue_number: {
  19470. required: true,
  19471. type: "integer"
  19472. },
  19473. number: {
  19474. alias: "issue_number",
  19475. deprecated: true,
  19476. type: "integer"
  19477. },
  19478. owner: {
  19479. required: true,
  19480. type: "string"
  19481. },
  19482. page: {
  19483. type: "integer"
  19484. },
  19485. per_page: {
  19486. type: "integer"
  19487. },
  19488. repo: {
  19489. required: true,
  19490. type: "string"
  19491. }
  19492. },
  19493. url: "/repos/:owner/:repo/issues/:issue_number/events"
  19494. },
  19495. listEventsForRepo: {
  19496. method: "GET",
  19497. params: {
  19498. owner: {
  19499. required: true,
  19500. type: "string"
  19501. },
  19502. page: {
  19503. type: "integer"
  19504. },
  19505. per_page: {
  19506. type: "integer"
  19507. },
  19508. repo: {
  19509. required: true,
  19510. type: "string"
  19511. }
  19512. },
  19513. url: "/repos/:owner/:repo/issues/events"
  19514. },
  19515. listEventsForTimeline: {
  19516. headers: {
  19517. accept: "application/vnd.github.mockingbird-preview+json"
  19518. },
  19519. method: "GET",
  19520. params: {
  19521. issue_number: {
  19522. required: true,
  19523. type: "integer"
  19524. },
  19525. number: {
  19526. alias: "issue_number",
  19527. deprecated: true,
  19528. type: "integer"
  19529. },
  19530. owner: {
  19531. required: true,
  19532. type: "string"
  19533. },
  19534. page: {
  19535. type: "integer"
  19536. },
  19537. per_page: {
  19538. type: "integer"
  19539. },
  19540. repo: {
  19541. required: true,
  19542. type: "string"
  19543. }
  19544. },
  19545. url: "/repos/:owner/:repo/issues/:issue_number/timeline"
  19546. },
  19547. listForAuthenticatedUser: {
  19548. method: "GET",
  19549. params: {
  19550. direction: {
  19551. enum: ["asc", "desc"],
  19552. type: "string"
  19553. },
  19554. filter: {
  19555. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  19556. type: "string"
  19557. },
  19558. labels: {
  19559. type: "string"
  19560. },
  19561. page: {
  19562. type: "integer"
  19563. },
  19564. per_page: {
  19565. type: "integer"
  19566. },
  19567. since: {
  19568. type: "string"
  19569. },
  19570. sort: {
  19571. enum: ["created", "updated", "comments"],
  19572. type: "string"
  19573. },
  19574. state: {
  19575. enum: ["open", "closed", "all"],
  19576. type: "string"
  19577. }
  19578. },
  19579. url: "/user/issues"
  19580. },
  19581. listForOrg: {
  19582. method: "GET",
  19583. params: {
  19584. direction: {
  19585. enum: ["asc", "desc"],
  19586. type: "string"
  19587. },
  19588. filter: {
  19589. enum: ["assigned", "created", "mentioned", "subscribed", "all"],
  19590. type: "string"
  19591. },
  19592. labels: {
  19593. type: "string"
  19594. },
  19595. org: {
  19596. required: true,
  19597. type: "string"
  19598. },
  19599. page: {
  19600. type: "integer"
  19601. },
  19602. per_page: {
  19603. type: "integer"
  19604. },
  19605. since: {
  19606. type: "string"
  19607. },
  19608. sort: {
  19609. enum: ["created", "updated", "comments"],
  19610. type: "string"
  19611. },
  19612. state: {
  19613. enum: ["open", "closed", "all"],
  19614. type: "string"
  19615. }
  19616. },
  19617. url: "/orgs/:org/issues"
  19618. },
  19619. listForRepo: {
  19620. method: "GET",
  19621. params: {
  19622. assignee: {
  19623. type: "string"
  19624. },
  19625. creator: {
  19626. type: "string"
  19627. },
  19628. direction: {
  19629. enum: ["asc", "desc"],
  19630. type: "string"
  19631. },
  19632. labels: {
  19633. type: "string"
  19634. },
  19635. mentioned: {
  19636. type: "string"
  19637. },
  19638. milestone: {
  19639. type: "string"
  19640. },
  19641. owner: {
  19642. required: true,
  19643. type: "string"
  19644. },
  19645. page: {
  19646. type: "integer"
  19647. },
  19648. per_page: {
  19649. type: "integer"
  19650. },
  19651. repo: {
  19652. required: true,
  19653. type: "string"
  19654. },
  19655. since: {
  19656. type: "string"
  19657. },
  19658. sort: {
  19659. enum: ["created", "updated", "comments"],
  19660. type: "string"
  19661. },
  19662. state: {
  19663. enum: ["open", "closed", "all"],
  19664. type: "string"
  19665. }
  19666. },
  19667. url: "/repos/:owner/:repo/issues"
  19668. },
  19669. listLabelsForMilestone: {
  19670. method: "GET",
  19671. params: {
  19672. milestone_number: {
  19673. required: true,
  19674. type: "integer"
  19675. },
  19676. number: {
  19677. alias: "milestone_number",
  19678. deprecated: true,
  19679. type: "integer"
  19680. },
  19681. owner: {
  19682. required: true,
  19683. type: "string"
  19684. },
  19685. page: {
  19686. type: "integer"
  19687. },
  19688. per_page: {
  19689. type: "integer"
  19690. },
  19691. repo: {
  19692. required: true,
  19693. type: "string"
  19694. }
  19695. },
  19696. url: "/repos/:owner/:repo/milestones/:milestone_number/labels"
  19697. },
  19698. listLabelsForRepo: {
  19699. method: "GET",
  19700. params: {
  19701. owner: {
  19702. required: true,
  19703. type: "string"
  19704. },
  19705. page: {
  19706. type: "integer"
  19707. },
  19708. per_page: {
  19709. type: "integer"
  19710. },
  19711. repo: {
  19712. required: true,
  19713. type: "string"
  19714. }
  19715. },
  19716. url: "/repos/:owner/:repo/labels"
  19717. },
  19718. listLabelsOnIssue: {
  19719. method: "GET",
  19720. params: {
  19721. issue_number: {
  19722. required: true,
  19723. type: "integer"
  19724. },
  19725. number: {
  19726. alias: "issue_number",
  19727. deprecated: true,
  19728. type: "integer"
  19729. },
  19730. owner: {
  19731. required: true,
  19732. type: "string"
  19733. },
  19734. page: {
  19735. type: "integer"
  19736. },
  19737. per_page: {
  19738. type: "integer"
  19739. },
  19740. repo: {
  19741. required: true,
  19742. type: "string"
  19743. }
  19744. },
  19745. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  19746. },
  19747. listMilestonesForRepo: {
  19748. method: "GET",
  19749. params: {
  19750. direction: {
  19751. enum: ["asc", "desc"],
  19752. type: "string"
  19753. },
  19754. owner: {
  19755. required: true,
  19756. type: "string"
  19757. },
  19758. page: {
  19759. type: "integer"
  19760. },
  19761. per_page: {
  19762. type: "integer"
  19763. },
  19764. repo: {
  19765. required: true,
  19766. type: "string"
  19767. },
  19768. sort: {
  19769. enum: ["due_on", "completeness"],
  19770. type: "string"
  19771. },
  19772. state: {
  19773. enum: ["open", "closed", "all"],
  19774. type: "string"
  19775. }
  19776. },
  19777. url: "/repos/:owner/:repo/milestones"
  19778. },
  19779. lock: {
  19780. method: "PUT",
  19781. params: {
  19782. issue_number: {
  19783. required: true,
  19784. type: "integer"
  19785. },
  19786. lock_reason: {
  19787. enum: ["off-topic", "too heated", "resolved", "spam"],
  19788. type: "string"
  19789. },
  19790. number: {
  19791. alias: "issue_number",
  19792. deprecated: true,
  19793. type: "integer"
  19794. },
  19795. owner: {
  19796. required: true,
  19797. type: "string"
  19798. },
  19799. repo: {
  19800. required: true,
  19801. type: "string"
  19802. }
  19803. },
  19804. url: "/repos/:owner/:repo/issues/:issue_number/lock"
  19805. },
  19806. removeAssignees: {
  19807. method: "DELETE",
  19808. params: {
  19809. assignees: {
  19810. type: "string[]"
  19811. },
  19812. issue_number: {
  19813. required: true,
  19814. type: "integer"
  19815. },
  19816. number: {
  19817. alias: "issue_number",
  19818. deprecated: true,
  19819. type: "integer"
  19820. },
  19821. owner: {
  19822. required: true,
  19823. type: "string"
  19824. },
  19825. repo: {
  19826. required: true,
  19827. type: "string"
  19828. }
  19829. },
  19830. url: "/repos/:owner/:repo/issues/:issue_number/assignees"
  19831. },
  19832. removeLabel: {
  19833. method: "DELETE",
  19834. params: {
  19835. issue_number: {
  19836. required: true,
  19837. type: "integer"
  19838. },
  19839. name: {
  19840. required: true,
  19841. type: "string"
  19842. },
  19843. number: {
  19844. alias: "issue_number",
  19845. deprecated: true,
  19846. type: "integer"
  19847. },
  19848. owner: {
  19849. required: true,
  19850. type: "string"
  19851. },
  19852. repo: {
  19853. required: true,
  19854. type: "string"
  19855. }
  19856. },
  19857. url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"
  19858. },
  19859. removeLabels: {
  19860. method: "DELETE",
  19861. params: {
  19862. issue_number: {
  19863. required: true,
  19864. type: "integer"
  19865. },
  19866. number: {
  19867. alias: "issue_number",
  19868. deprecated: true,
  19869. type: "integer"
  19870. },
  19871. owner: {
  19872. required: true,
  19873. type: "string"
  19874. },
  19875. repo: {
  19876. required: true,
  19877. type: "string"
  19878. }
  19879. },
  19880. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  19881. },
  19882. replaceLabels: {
  19883. method: "PUT",
  19884. params: {
  19885. issue_number: {
  19886. required: true,
  19887. type: "integer"
  19888. },
  19889. labels: {
  19890. type: "string[]"
  19891. },
  19892. number: {
  19893. alias: "issue_number",
  19894. deprecated: true,
  19895. type: "integer"
  19896. },
  19897. owner: {
  19898. required: true,
  19899. type: "string"
  19900. },
  19901. repo: {
  19902. required: true,
  19903. type: "string"
  19904. }
  19905. },
  19906. url: "/repos/:owner/:repo/issues/:issue_number/labels"
  19907. },
  19908. unlock: {
  19909. method: "DELETE",
  19910. params: {
  19911. issue_number: {
  19912. required: true,
  19913. type: "integer"
  19914. },
  19915. number: {
  19916. alias: "issue_number",
  19917. deprecated: true,
  19918. type: "integer"
  19919. },
  19920. owner: {
  19921. required: true,
  19922. type: "string"
  19923. },
  19924. repo: {
  19925. required: true,
  19926. type: "string"
  19927. }
  19928. },
  19929. url: "/repos/:owner/:repo/issues/:issue_number/lock"
  19930. },
  19931. update: {
  19932. method: "PATCH",
  19933. params: {
  19934. assignee: {
  19935. type: "string"
  19936. },
  19937. assignees: {
  19938. type: "string[]"
  19939. },
  19940. body: {
  19941. type: "string"
  19942. },
  19943. issue_number: {
  19944. required: true,
  19945. type: "integer"
  19946. },
  19947. labels: {
  19948. type: "string[]"
  19949. },
  19950. milestone: {
  19951. allowNull: true,
  19952. type: "integer"
  19953. },
  19954. number: {
  19955. alias: "issue_number",
  19956. deprecated: true,
  19957. type: "integer"
  19958. },
  19959. owner: {
  19960. required: true,
  19961. type: "string"
  19962. },
  19963. repo: {
  19964. required: true,
  19965. type: "string"
  19966. },
  19967. state: {
  19968. enum: ["open", "closed"],
  19969. type: "string"
  19970. },
  19971. title: {
  19972. type: "string"
  19973. }
  19974. },
  19975. url: "/repos/:owner/:repo/issues/:issue_number"
  19976. },
  19977. updateComment: {
  19978. method: "PATCH",
  19979. params: {
  19980. body: {
  19981. required: true,
  19982. type: "string"
  19983. },
  19984. comment_id: {
  19985. required: true,
  19986. type: "integer"
  19987. },
  19988. owner: {
  19989. required: true,
  19990. type: "string"
  19991. },
  19992. repo: {
  19993. required: true,
  19994. type: "string"
  19995. }
  19996. },
  19997. url: "/repos/:owner/:repo/issues/comments/:comment_id"
  19998. },
  19999. updateLabel: {
  20000. method: "PATCH",
  20001. params: {
  20002. color: {
  20003. type: "string"
  20004. },
  20005. current_name: {
  20006. required: true,
  20007. type: "string"
  20008. },
  20009. description: {
  20010. type: "string"
  20011. },
  20012. name: {
  20013. type: "string"
  20014. },
  20015. owner: {
  20016. required: true,
  20017. type: "string"
  20018. },
  20019. repo: {
  20020. required: true,
  20021. type: "string"
  20022. }
  20023. },
  20024. url: "/repos/:owner/:repo/labels/:current_name"
  20025. },
  20026. updateMilestone: {
  20027. method: "PATCH",
  20028. params: {
  20029. description: {
  20030. type: "string"
  20031. },
  20032. due_on: {
  20033. type: "string"
  20034. },
  20035. milestone_number: {
  20036. required: true,
  20037. type: "integer"
  20038. },
  20039. number: {
  20040. alias: "milestone_number",
  20041. deprecated: true,
  20042. type: "integer"
  20043. },
  20044. owner: {
  20045. required: true,
  20046. type: "string"
  20047. },
  20048. repo: {
  20049. required: true,
  20050. type: "string"
  20051. },
  20052. state: {
  20053. enum: ["open", "closed"],
  20054. type: "string"
  20055. },
  20056. title: {
  20057. type: "string"
  20058. }
  20059. },
  20060. url: "/repos/:owner/:repo/milestones/:milestone_number"
  20061. }
  20062. },
  20063. licenses: {
  20064. get: {
  20065. method: "GET",
  20066. params: {
  20067. license: {
  20068. required: true,
  20069. type: "string"
  20070. }
  20071. },
  20072. url: "/licenses/:license"
  20073. },
  20074. getForRepo: {
  20075. method: "GET",
  20076. params: {
  20077. owner: {
  20078. required: true,
  20079. type: "string"
  20080. },
  20081. repo: {
  20082. required: true,
  20083. type: "string"
  20084. }
  20085. },
  20086. url: "/repos/:owner/:repo/license"
  20087. },
  20088. list: {
  20089. deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",
  20090. method: "GET",
  20091. params: {},
  20092. url: "/licenses"
  20093. },
  20094. listCommonlyUsed: {
  20095. method: "GET",
  20096. params: {},
  20097. url: "/licenses"
  20098. }
  20099. },
  20100. markdown: {
  20101. render: {
  20102. method: "POST",
  20103. params: {
  20104. context: {
  20105. type: "string"
  20106. },
  20107. mode: {
  20108. enum: ["markdown", "gfm"],
  20109. type: "string"
  20110. },
  20111. text: {
  20112. required: true,
  20113. type: "string"
  20114. }
  20115. },
  20116. url: "/markdown"
  20117. },
  20118. renderRaw: {
  20119. headers: {
  20120. "content-type": "text/plain; charset=utf-8"
  20121. },
  20122. method: "POST",
  20123. params: {
  20124. data: {
  20125. mapTo: "data",
  20126. required: true,
  20127. type: "string"
  20128. }
  20129. },
  20130. url: "/markdown/raw"
  20131. }
  20132. },
  20133. meta: {
  20134. get: {
  20135. method: "GET",
  20136. params: {},
  20137. url: "/meta"
  20138. }
  20139. },
  20140. migrations: {
  20141. cancelImport: {
  20142. method: "DELETE",
  20143. params: {
  20144. owner: {
  20145. required: true,
  20146. type: "string"
  20147. },
  20148. repo: {
  20149. required: true,
  20150. type: "string"
  20151. }
  20152. },
  20153. url: "/repos/:owner/:repo/import"
  20154. },
  20155. deleteArchiveForAuthenticatedUser: {
  20156. headers: {
  20157. accept: "application/vnd.github.wyandotte-preview+json"
  20158. },
  20159. method: "DELETE",
  20160. params: {
  20161. migration_id: {
  20162. required: true,
  20163. type: "integer"
  20164. }
  20165. },
  20166. url: "/user/migrations/:migration_id/archive"
  20167. },
  20168. deleteArchiveForOrg: {
  20169. headers: {
  20170. accept: "application/vnd.github.wyandotte-preview+json"
  20171. },
  20172. method: "DELETE",
  20173. params: {
  20174. migration_id: {
  20175. required: true,
  20176. type: "integer"
  20177. },
  20178. org: {
  20179. required: true,
  20180. type: "string"
  20181. }
  20182. },
  20183. url: "/orgs/:org/migrations/:migration_id/archive"
  20184. },
  20185. downloadArchiveForOrg: {
  20186. headers: {
  20187. accept: "application/vnd.github.wyandotte-preview+json"
  20188. },
  20189. method: "GET",
  20190. params: {
  20191. migration_id: {
  20192. required: true,
  20193. type: "integer"
  20194. },
  20195. org: {
  20196. required: true,
  20197. type: "string"
  20198. }
  20199. },
  20200. url: "/orgs/:org/migrations/:migration_id/archive"
  20201. },
  20202. getArchiveForAuthenticatedUser: {
  20203. headers: {
  20204. accept: "application/vnd.github.wyandotte-preview+json"
  20205. },
  20206. method: "GET",
  20207. params: {
  20208. migration_id: {
  20209. required: true,
  20210. type: "integer"
  20211. }
  20212. },
  20213. url: "/user/migrations/:migration_id/archive"
  20214. },
  20215. getArchiveForOrg: {
  20216. deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",
  20217. headers: {
  20218. accept: "application/vnd.github.wyandotte-preview+json"
  20219. },
  20220. method: "GET",
  20221. params: {
  20222. migration_id: {
  20223. required: true,
  20224. type: "integer"
  20225. },
  20226. org: {
  20227. required: true,
  20228. type: "string"
  20229. }
  20230. },
  20231. url: "/orgs/:org/migrations/:migration_id/archive"
  20232. },
  20233. getCommitAuthors: {
  20234. method: "GET",
  20235. params: {
  20236. owner: {
  20237. required: true,
  20238. type: "string"
  20239. },
  20240. repo: {
  20241. required: true,
  20242. type: "string"
  20243. },
  20244. since: {
  20245. type: "string"
  20246. }
  20247. },
  20248. url: "/repos/:owner/:repo/import/authors"
  20249. },
  20250. getImportProgress: {
  20251. method: "GET",
  20252. params: {
  20253. owner: {
  20254. required: true,
  20255. type: "string"
  20256. },
  20257. repo: {
  20258. required: true,
  20259. type: "string"
  20260. }
  20261. },
  20262. url: "/repos/:owner/:repo/import"
  20263. },
  20264. getLargeFiles: {
  20265. method: "GET",
  20266. params: {
  20267. owner: {
  20268. required: true,
  20269. type: "string"
  20270. },
  20271. repo: {
  20272. required: true,
  20273. type: "string"
  20274. }
  20275. },
  20276. url: "/repos/:owner/:repo/import/large_files"
  20277. },
  20278. getStatusForAuthenticatedUser: {
  20279. headers: {
  20280. accept: "application/vnd.github.wyandotte-preview+json"
  20281. },
  20282. method: "GET",
  20283. params: {
  20284. migration_id: {
  20285. required: true,
  20286. type: "integer"
  20287. }
  20288. },
  20289. url: "/user/migrations/:migration_id"
  20290. },
  20291. getStatusForOrg: {
  20292. headers: {
  20293. accept: "application/vnd.github.wyandotte-preview+json"
  20294. },
  20295. method: "GET",
  20296. params: {
  20297. migration_id: {
  20298. required: true,
  20299. type: "integer"
  20300. },
  20301. org: {
  20302. required: true,
  20303. type: "string"
  20304. }
  20305. },
  20306. url: "/orgs/:org/migrations/:migration_id"
  20307. },
  20308. listForAuthenticatedUser: {
  20309. headers: {
  20310. accept: "application/vnd.github.wyandotte-preview+json"
  20311. },
  20312. method: "GET",
  20313. params: {
  20314. page: {
  20315. type: "integer"
  20316. },
  20317. per_page: {
  20318. type: "integer"
  20319. }
  20320. },
  20321. url: "/user/migrations"
  20322. },
  20323. listForOrg: {
  20324. headers: {
  20325. accept: "application/vnd.github.wyandotte-preview+json"
  20326. },
  20327. method: "GET",
  20328. params: {
  20329. org: {
  20330. required: true,
  20331. type: "string"
  20332. },
  20333. page: {
  20334. type: "integer"
  20335. },
  20336. per_page: {
  20337. type: "integer"
  20338. }
  20339. },
  20340. url: "/orgs/:org/migrations"
  20341. },
  20342. listReposForOrg: {
  20343. headers: {
  20344. accept: "application/vnd.github.wyandotte-preview+json"
  20345. },
  20346. method: "GET",
  20347. params: {
  20348. migration_id: {
  20349. required: true,
  20350. type: "integer"
  20351. },
  20352. org: {
  20353. required: true,
  20354. type: "string"
  20355. },
  20356. page: {
  20357. type: "integer"
  20358. },
  20359. per_page: {
  20360. type: "integer"
  20361. }
  20362. },
  20363. url: "/orgs/:org/migrations/:migration_id/repositories"
  20364. },
  20365. listReposForUser: {
  20366. headers: {
  20367. accept: "application/vnd.github.wyandotte-preview+json"
  20368. },
  20369. method: "GET",
  20370. params: {
  20371. migration_id: {
  20372. required: true,
  20373. type: "integer"
  20374. },
  20375. page: {
  20376. type: "integer"
  20377. },
  20378. per_page: {
  20379. type: "integer"
  20380. }
  20381. },
  20382. url: "/user/:migration_id/repositories"
  20383. },
  20384. mapCommitAuthor: {
  20385. method: "PATCH",
  20386. params: {
  20387. author_id: {
  20388. required: true,
  20389. type: "integer"
  20390. },
  20391. email: {
  20392. type: "string"
  20393. },
  20394. name: {
  20395. type: "string"
  20396. },
  20397. owner: {
  20398. required: true,
  20399. type: "string"
  20400. },
  20401. repo: {
  20402. required: true,
  20403. type: "string"
  20404. }
  20405. },
  20406. url: "/repos/:owner/:repo/import/authors/:author_id"
  20407. },
  20408. setLfsPreference: {
  20409. method: "PATCH",
  20410. params: {
  20411. owner: {
  20412. required: true,
  20413. type: "string"
  20414. },
  20415. repo: {
  20416. required: true,
  20417. type: "string"
  20418. },
  20419. use_lfs: {
  20420. enum: ["opt_in", "opt_out"],
  20421. required: true,
  20422. type: "string"
  20423. }
  20424. },
  20425. url: "/repos/:owner/:repo/import/lfs"
  20426. },
  20427. startForAuthenticatedUser: {
  20428. method: "POST",
  20429. params: {
  20430. exclude_attachments: {
  20431. type: "boolean"
  20432. },
  20433. lock_repositories: {
  20434. type: "boolean"
  20435. },
  20436. repositories: {
  20437. required: true,
  20438. type: "string[]"
  20439. }
  20440. },
  20441. url: "/user/migrations"
  20442. },
  20443. startForOrg: {
  20444. method: "POST",
  20445. params: {
  20446. exclude_attachments: {
  20447. type: "boolean"
  20448. },
  20449. lock_repositories: {
  20450. type: "boolean"
  20451. },
  20452. org: {
  20453. required: true,
  20454. type: "string"
  20455. },
  20456. repositories: {
  20457. required: true,
  20458. type: "string[]"
  20459. }
  20460. },
  20461. url: "/orgs/:org/migrations"
  20462. },
  20463. startImport: {
  20464. method: "PUT",
  20465. params: {
  20466. owner: {
  20467. required: true,
  20468. type: "string"
  20469. },
  20470. repo: {
  20471. required: true,
  20472. type: "string"
  20473. },
  20474. tfvc_project: {
  20475. type: "string"
  20476. },
  20477. vcs: {
  20478. enum: ["subversion", "git", "mercurial", "tfvc"],
  20479. type: "string"
  20480. },
  20481. vcs_password: {
  20482. type: "string"
  20483. },
  20484. vcs_url: {
  20485. required: true,
  20486. type: "string"
  20487. },
  20488. vcs_username: {
  20489. type: "string"
  20490. }
  20491. },
  20492. url: "/repos/:owner/:repo/import"
  20493. },
  20494. unlockRepoForAuthenticatedUser: {
  20495. headers: {
  20496. accept: "application/vnd.github.wyandotte-preview+json"
  20497. },
  20498. method: "DELETE",
  20499. params: {
  20500. migration_id: {
  20501. required: true,
  20502. type: "integer"
  20503. },
  20504. repo_name: {
  20505. required: true,
  20506. type: "string"
  20507. }
  20508. },
  20509. url: "/user/migrations/:migration_id/repos/:repo_name/lock"
  20510. },
  20511. unlockRepoForOrg: {
  20512. headers: {
  20513. accept: "application/vnd.github.wyandotte-preview+json"
  20514. },
  20515. method: "DELETE",
  20516. params: {
  20517. migration_id: {
  20518. required: true,
  20519. type: "integer"
  20520. },
  20521. org: {
  20522. required: true,
  20523. type: "string"
  20524. },
  20525. repo_name: {
  20526. required: true,
  20527. type: "string"
  20528. }
  20529. },
  20530. url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"
  20531. },
  20532. updateImport: {
  20533. method: "PATCH",
  20534. params: {
  20535. owner: {
  20536. required: true,
  20537. type: "string"
  20538. },
  20539. repo: {
  20540. required: true,
  20541. type: "string"
  20542. },
  20543. vcs_password: {
  20544. type: "string"
  20545. },
  20546. vcs_username: {
  20547. type: "string"
  20548. }
  20549. },
  20550. url: "/repos/:owner/:repo/import"
  20551. }
  20552. },
  20553. oauthAuthorizations: {
  20554. checkAuthorization: {
  20555. deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",
  20556. method: "GET",
  20557. params: {
  20558. access_token: {
  20559. required: true,
  20560. type: "string"
  20561. },
  20562. client_id: {
  20563. required: true,
  20564. type: "string"
  20565. }
  20566. },
  20567. url: "/applications/:client_id/tokens/:access_token"
  20568. },
  20569. createAuthorization: {
  20570. deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",
  20571. method: "POST",
  20572. params: {
  20573. client_id: {
  20574. type: "string"
  20575. },
  20576. client_secret: {
  20577. type: "string"
  20578. },
  20579. fingerprint: {
  20580. type: "string"
  20581. },
  20582. note: {
  20583. required: true,
  20584. type: "string"
  20585. },
  20586. note_url: {
  20587. type: "string"
  20588. },
  20589. scopes: {
  20590. type: "string[]"
  20591. }
  20592. },
  20593. url: "/authorizations"
  20594. },
  20595. deleteAuthorization: {
  20596. deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",
  20597. method: "DELETE",
  20598. params: {
  20599. authorization_id: {
  20600. required: true,
  20601. type: "integer"
  20602. }
  20603. },
  20604. url: "/authorizations/:authorization_id"
  20605. },
  20606. deleteGrant: {
  20607. deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",
  20608. method: "DELETE",
  20609. params: {
  20610. grant_id: {
  20611. required: true,
  20612. type: "integer"
  20613. }
  20614. },
  20615. url: "/applications/grants/:grant_id"
  20616. },
  20617. getAuthorization: {
  20618. deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",
  20619. method: "GET",
  20620. params: {
  20621. authorization_id: {
  20622. required: true,
  20623. type: "integer"
  20624. }
  20625. },
  20626. url: "/authorizations/:authorization_id"
  20627. },
  20628. getGrant: {
  20629. deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",
  20630. method: "GET",
  20631. params: {
  20632. grant_id: {
  20633. required: true,
  20634. type: "integer"
  20635. }
  20636. },
  20637. url: "/applications/grants/:grant_id"
  20638. },
  20639. getOrCreateAuthorizationForApp: {
  20640. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",
  20641. method: "PUT",
  20642. params: {
  20643. client_id: {
  20644. required: true,
  20645. type: "string"
  20646. },
  20647. client_secret: {
  20648. required: true,
  20649. type: "string"
  20650. },
  20651. fingerprint: {
  20652. type: "string"
  20653. },
  20654. note: {
  20655. type: "string"
  20656. },
  20657. note_url: {
  20658. type: "string"
  20659. },
  20660. scopes: {
  20661. type: "string[]"
  20662. }
  20663. },
  20664. url: "/authorizations/clients/:client_id"
  20665. },
  20666. getOrCreateAuthorizationForAppAndFingerprint: {
  20667. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",
  20668. method: "PUT",
  20669. params: {
  20670. client_id: {
  20671. required: true,
  20672. type: "string"
  20673. },
  20674. client_secret: {
  20675. required: true,
  20676. type: "string"
  20677. },
  20678. fingerprint: {
  20679. required: true,
  20680. type: "string"
  20681. },
  20682. note: {
  20683. type: "string"
  20684. },
  20685. note_url: {
  20686. type: "string"
  20687. },
  20688. scopes: {
  20689. type: "string[]"
  20690. }
  20691. },
  20692. url: "/authorizations/clients/:client_id/:fingerprint"
  20693. },
  20694. getOrCreateAuthorizationForAppFingerprint: {
  20695. deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",
  20696. method: "PUT",
  20697. params: {
  20698. client_id: {
  20699. required: true,
  20700. type: "string"
  20701. },
  20702. client_secret: {
  20703. required: true,
  20704. type: "string"
  20705. },
  20706. fingerprint: {
  20707. required: true,
  20708. type: "string"
  20709. },
  20710. note: {
  20711. type: "string"
  20712. },
  20713. note_url: {
  20714. type: "string"
  20715. },
  20716. scopes: {
  20717. type: "string[]"
  20718. }
  20719. },
  20720. url: "/authorizations/clients/:client_id/:fingerprint"
  20721. },
  20722. listAuthorizations: {
  20723. deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",
  20724. method: "GET",
  20725. params: {
  20726. page: {
  20727. type: "integer"
  20728. },
  20729. per_page: {
  20730. type: "integer"
  20731. }
  20732. },
  20733. url: "/authorizations"
  20734. },
  20735. listGrants: {
  20736. deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",
  20737. method: "GET",
  20738. params: {
  20739. page: {
  20740. type: "integer"
  20741. },
  20742. per_page: {
  20743. type: "integer"
  20744. }
  20745. },
  20746. url: "/applications/grants"
  20747. },
  20748. resetAuthorization: {
  20749. deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",
  20750. method: "POST",
  20751. params: {
  20752. access_token: {
  20753. required: true,
  20754. type: "string"
  20755. },
  20756. client_id: {
  20757. required: true,
  20758. type: "string"
  20759. }
  20760. },
  20761. url: "/applications/:client_id/tokens/:access_token"
  20762. },
  20763. revokeAuthorizationForApplication: {
  20764. deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",
  20765. method: "DELETE",
  20766. params: {
  20767. access_token: {
  20768. required: true,
  20769. type: "string"
  20770. },
  20771. client_id: {
  20772. required: true,
  20773. type: "string"
  20774. }
  20775. },
  20776. url: "/applications/:client_id/tokens/:access_token"
  20777. },
  20778. revokeGrantForApplication: {
  20779. deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",
  20780. method: "DELETE",
  20781. params: {
  20782. access_token: {
  20783. required: true,
  20784. type: "string"
  20785. },
  20786. client_id: {
  20787. required: true,
  20788. type: "string"
  20789. }
  20790. },
  20791. url: "/applications/:client_id/grants/:access_token"
  20792. },
  20793. updateAuthorization: {
  20794. deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",
  20795. method: "PATCH",
  20796. params: {
  20797. add_scopes: {
  20798. type: "string[]"
  20799. },
  20800. authorization_id: {
  20801. required: true,
  20802. type: "integer"
  20803. },
  20804. fingerprint: {
  20805. type: "string"
  20806. },
  20807. note: {
  20808. type: "string"
  20809. },
  20810. note_url: {
  20811. type: "string"
  20812. },
  20813. remove_scopes: {
  20814. type: "string[]"
  20815. },
  20816. scopes: {
  20817. type: "string[]"
  20818. }
  20819. },
  20820. url: "/authorizations/:authorization_id"
  20821. }
  20822. },
  20823. orgs: {
  20824. addOrUpdateMembership: {
  20825. method: "PUT",
  20826. params: {
  20827. org: {
  20828. required: true,
  20829. type: "string"
  20830. },
  20831. role: {
  20832. enum: ["admin", "member"],
  20833. type: "string"
  20834. },
  20835. username: {
  20836. required: true,
  20837. type: "string"
  20838. }
  20839. },
  20840. url: "/orgs/:org/memberships/:username"
  20841. },
  20842. blockUser: {
  20843. method: "PUT",
  20844. params: {
  20845. org: {
  20846. required: true,
  20847. type: "string"
  20848. },
  20849. username: {
  20850. required: true,
  20851. type: "string"
  20852. }
  20853. },
  20854. url: "/orgs/:org/blocks/:username"
  20855. },
  20856. checkBlockedUser: {
  20857. method: "GET",
  20858. params: {
  20859. org: {
  20860. required: true,
  20861. type: "string"
  20862. },
  20863. username: {
  20864. required: true,
  20865. type: "string"
  20866. }
  20867. },
  20868. url: "/orgs/:org/blocks/:username"
  20869. },
  20870. checkMembership: {
  20871. method: "GET",
  20872. params: {
  20873. org: {
  20874. required: true,
  20875. type: "string"
  20876. },
  20877. username: {
  20878. required: true,
  20879. type: "string"
  20880. }
  20881. },
  20882. url: "/orgs/:org/members/:username"
  20883. },
  20884. checkPublicMembership: {
  20885. method: "GET",
  20886. params: {
  20887. org: {
  20888. required: true,
  20889. type: "string"
  20890. },
  20891. username: {
  20892. required: true,
  20893. type: "string"
  20894. }
  20895. },
  20896. url: "/orgs/:org/public_members/:username"
  20897. },
  20898. concealMembership: {
  20899. method: "DELETE",
  20900. params: {
  20901. org: {
  20902. required: true,
  20903. type: "string"
  20904. },
  20905. username: {
  20906. required: true,
  20907. type: "string"
  20908. }
  20909. },
  20910. url: "/orgs/:org/public_members/:username"
  20911. },
  20912. convertMemberToOutsideCollaborator: {
  20913. method: "PUT",
  20914. params: {
  20915. org: {
  20916. required: true,
  20917. type: "string"
  20918. },
  20919. username: {
  20920. required: true,
  20921. type: "string"
  20922. }
  20923. },
  20924. url: "/orgs/:org/outside_collaborators/:username"
  20925. },
  20926. createHook: {
  20927. method: "POST",
  20928. params: {
  20929. active: {
  20930. type: "boolean"
  20931. },
  20932. config: {
  20933. required: true,
  20934. type: "object"
  20935. },
  20936. "config.content_type": {
  20937. type: "string"
  20938. },
  20939. "config.insecure_ssl": {
  20940. type: "string"
  20941. },
  20942. "config.secret": {
  20943. type: "string"
  20944. },
  20945. "config.url": {
  20946. required: true,
  20947. type: "string"
  20948. },
  20949. events: {
  20950. type: "string[]"
  20951. },
  20952. name: {
  20953. required: true,
  20954. type: "string"
  20955. },
  20956. org: {
  20957. required: true,
  20958. type: "string"
  20959. }
  20960. },
  20961. url: "/orgs/:org/hooks"
  20962. },
  20963. createInvitation: {
  20964. method: "POST",
  20965. params: {
  20966. email: {
  20967. type: "string"
  20968. },
  20969. invitee_id: {
  20970. type: "integer"
  20971. },
  20972. org: {
  20973. required: true,
  20974. type: "string"
  20975. },
  20976. role: {
  20977. enum: ["admin", "direct_member", "billing_manager"],
  20978. type: "string"
  20979. },
  20980. team_ids: {
  20981. type: "integer[]"
  20982. }
  20983. },
  20984. url: "/orgs/:org/invitations"
  20985. },
  20986. deleteHook: {
  20987. method: "DELETE",
  20988. params: {
  20989. hook_id: {
  20990. required: true,
  20991. type: "integer"
  20992. },
  20993. org: {
  20994. required: true,
  20995. type: "string"
  20996. }
  20997. },
  20998. url: "/orgs/:org/hooks/:hook_id"
  20999. },
  21000. get: {
  21001. method: "GET",
  21002. params: {
  21003. org: {
  21004. required: true,
  21005. type: "string"
  21006. }
  21007. },
  21008. url: "/orgs/:org"
  21009. },
  21010. getHook: {
  21011. method: "GET",
  21012. params: {
  21013. hook_id: {
  21014. required: true,
  21015. type: "integer"
  21016. },
  21017. org: {
  21018. required: true,
  21019. type: "string"
  21020. }
  21021. },
  21022. url: "/orgs/:org/hooks/:hook_id"
  21023. },
  21024. getMembership: {
  21025. method: "GET",
  21026. params: {
  21027. org: {
  21028. required: true,
  21029. type: "string"
  21030. },
  21031. username: {
  21032. required: true,
  21033. type: "string"
  21034. }
  21035. },
  21036. url: "/orgs/:org/memberships/:username"
  21037. },
  21038. getMembershipForAuthenticatedUser: {
  21039. method: "GET",
  21040. params: {
  21041. org: {
  21042. required: true,
  21043. type: "string"
  21044. }
  21045. },
  21046. url: "/user/memberships/orgs/:org"
  21047. },
  21048. list: {
  21049. method: "GET",
  21050. params: {
  21051. page: {
  21052. type: "integer"
  21053. },
  21054. per_page: {
  21055. type: "integer"
  21056. },
  21057. since: {
  21058. type: "integer"
  21059. }
  21060. },
  21061. url: "/organizations"
  21062. },
  21063. listBlockedUsers: {
  21064. method: "GET",
  21065. params: {
  21066. org: {
  21067. required: true,
  21068. type: "string"
  21069. }
  21070. },
  21071. url: "/orgs/:org/blocks"
  21072. },
  21073. listForAuthenticatedUser: {
  21074. method: "GET",
  21075. params: {
  21076. page: {
  21077. type: "integer"
  21078. },
  21079. per_page: {
  21080. type: "integer"
  21081. }
  21082. },
  21083. url: "/user/orgs"
  21084. },
  21085. listForUser: {
  21086. method: "GET",
  21087. params: {
  21088. page: {
  21089. type: "integer"
  21090. },
  21091. per_page: {
  21092. type: "integer"
  21093. },
  21094. username: {
  21095. required: true,
  21096. type: "string"
  21097. }
  21098. },
  21099. url: "/users/:username/orgs"
  21100. },
  21101. listHooks: {
  21102. method: "GET",
  21103. params: {
  21104. org: {
  21105. required: true,
  21106. type: "string"
  21107. },
  21108. page: {
  21109. type: "integer"
  21110. },
  21111. per_page: {
  21112. type: "integer"
  21113. }
  21114. },
  21115. url: "/orgs/:org/hooks"
  21116. },
  21117. listInstallations: {
  21118. headers: {
  21119. accept: "application/vnd.github.machine-man-preview+json"
  21120. },
  21121. method: "GET",
  21122. params: {
  21123. org: {
  21124. required: true,
  21125. type: "string"
  21126. },
  21127. page: {
  21128. type: "integer"
  21129. },
  21130. per_page: {
  21131. type: "integer"
  21132. }
  21133. },
  21134. url: "/orgs/:org/installations"
  21135. },
  21136. listInvitationTeams: {
  21137. method: "GET",
  21138. params: {
  21139. invitation_id: {
  21140. required: true,
  21141. type: "integer"
  21142. },
  21143. org: {
  21144. required: true,
  21145. type: "string"
  21146. },
  21147. page: {
  21148. type: "integer"
  21149. },
  21150. per_page: {
  21151. type: "integer"
  21152. }
  21153. },
  21154. url: "/orgs/:org/invitations/:invitation_id/teams"
  21155. },
  21156. listMembers: {
  21157. method: "GET",
  21158. params: {
  21159. filter: {
  21160. enum: ["2fa_disabled", "all"],
  21161. type: "string"
  21162. },
  21163. org: {
  21164. required: true,
  21165. type: "string"
  21166. },
  21167. page: {
  21168. type: "integer"
  21169. },
  21170. per_page: {
  21171. type: "integer"
  21172. },
  21173. role: {
  21174. enum: ["all", "admin", "member"],
  21175. type: "string"
  21176. }
  21177. },
  21178. url: "/orgs/:org/members"
  21179. },
  21180. listMemberships: {
  21181. method: "GET",
  21182. params: {
  21183. page: {
  21184. type: "integer"
  21185. },
  21186. per_page: {
  21187. type: "integer"
  21188. },
  21189. state: {
  21190. enum: ["active", "pending"],
  21191. type: "string"
  21192. }
  21193. },
  21194. url: "/user/memberships/orgs"
  21195. },
  21196. listOutsideCollaborators: {
  21197. method: "GET",
  21198. params: {
  21199. filter: {
  21200. enum: ["2fa_disabled", "all"],
  21201. type: "string"
  21202. },
  21203. org: {
  21204. required: true,
  21205. type: "string"
  21206. },
  21207. page: {
  21208. type: "integer"
  21209. },
  21210. per_page: {
  21211. type: "integer"
  21212. }
  21213. },
  21214. url: "/orgs/:org/outside_collaborators"
  21215. },
  21216. listPendingInvitations: {
  21217. method: "GET",
  21218. params: {
  21219. org: {
  21220. required: true,
  21221. type: "string"
  21222. },
  21223. page: {
  21224. type: "integer"
  21225. },
  21226. per_page: {
  21227. type: "integer"
  21228. }
  21229. },
  21230. url: "/orgs/:org/invitations"
  21231. },
  21232. listPublicMembers: {
  21233. method: "GET",
  21234. params: {
  21235. org: {
  21236. required: true,
  21237. type: "string"
  21238. },
  21239. page: {
  21240. type: "integer"
  21241. },
  21242. per_page: {
  21243. type: "integer"
  21244. }
  21245. },
  21246. url: "/orgs/:org/public_members"
  21247. },
  21248. pingHook: {
  21249. method: "POST",
  21250. params: {
  21251. hook_id: {
  21252. required: true,
  21253. type: "integer"
  21254. },
  21255. org: {
  21256. required: true,
  21257. type: "string"
  21258. }
  21259. },
  21260. url: "/orgs/:org/hooks/:hook_id/pings"
  21261. },
  21262. publicizeMembership: {
  21263. method: "PUT",
  21264. params: {
  21265. org: {
  21266. required: true,
  21267. type: "string"
  21268. },
  21269. username: {
  21270. required: true,
  21271. type: "string"
  21272. }
  21273. },
  21274. url: "/orgs/:org/public_members/:username"
  21275. },
  21276. removeMember: {
  21277. method: "DELETE",
  21278. params: {
  21279. org: {
  21280. required: true,
  21281. type: "string"
  21282. },
  21283. username: {
  21284. required: true,
  21285. type: "string"
  21286. }
  21287. },
  21288. url: "/orgs/:org/members/:username"
  21289. },
  21290. removeMembership: {
  21291. method: "DELETE",
  21292. params: {
  21293. org: {
  21294. required: true,
  21295. type: "string"
  21296. },
  21297. username: {
  21298. required: true,
  21299. type: "string"
  21300. }
  21301. },
  21302. url: "/orgs/:org/memberships/:username"
  21303. },
  21304. removeOutsideCollaborator: {
  21305. method: "DELETE",
  21306. params: {
  21307. org: {
  21308. required: true,
  21309. type: "string"
  21310. },
  21311. username: {
  21312. required: true,
  21313. type: "string"
  21314. }
  21315. },
  21316. url: "/orgs/:org/outside_collaborators/:username"
  21317. },
  21318. unblockUser: {
  21319. method: "DELETE",
  21320. params: {
  21321. org: {
  21322. required: true,
  21323. type: "string"
  21324. },
  21325. username: {
  21326. required: true,
  21327. type: "string"
  21328. }
  21329. },
  21330. url: "/orgs/:org/blocks/:username"
  21331. },
  21332. update: {
  21333. method: "PATCH",
  21334. params: {
  21335. billing_email: {
  21336. type: "string"
  21337. },
  21338. company: {
  21339. type: "string"
  21340. },
  21341. default_repository_permission: {
  21342. enum: ["read", "write", "admin", "none"],
  21343. type: "string"
  21344. },
  21345. description: {
  21346. type: "string"
  21347. },
  21348. email: {
  21349. type: "string"
  21350. },
  21351. has_organization_projects: {
  21352. type: "boolean"
  21353. },
  21354. has_repository_projects: {
  21355. type: "boolean"
  21356. },
  21357. location: {
  21358. type: "string"
  21359. },
  21360. members_allowed_repository_creation_type: {
  21361. enum: ["all", "private", "none"],
  21362. type: "string"
  21363. },
  21364. members_can_create_internal_repositories: {
  21365. type: "boolean"
  21366. },
  21367. members_can_create_private_repositories: {
  21368. type: "boolean"
  21369. },
  21370. members_can_create_public_repositories: {
  21371. type: "boolean"
  21372. },
  21373. members_can_create_repositories: {
  21374. type: "boolean"
  21375. },
  21376. name: {
  21377. type: "string"
  21378. },
  21379. org: {
  21380. required: true,
  21381. type: "string"
  21382. }
  21383. },
  21384. url: "/orgs/:org"
  21385. },
  21386. updateHook: {
  21387. method: "PATCH",
  21388. params: {
  21389. active: {
  21390. type: "boolean"
  21391. },
  21392. config: {
  21393. type: "object"
  21394. },
  21395. "config.content_type": {
  21396. type: "string"
  21397. },
  21398. "config.insecure_ssl": {
  21399. type: "string"
  21400. },
  21401. "config.secret": {
  21402. type: "string"
  21403. },
  21404. "config.url": {
  21405. required: true,
  21406. type: "string"
  21407. },
  21408. events: {
  21409. type: "string[]"
  21410. },
  21411. hook_id: {
  21412. required: true,
  21413. type: "integer"
  21414. },
  21415. org: {
  21416. required: true,
  21417. type: "string"
  21418. }
  21419. },
  21420. url: "/orgs/:org/hooks/:hook_id"
  21421. },
  21422. updateMembership: {
  21423. method: "PATCH",
  21424. params: {
  21425. org: {
  21426. required: true,
  21427. type: "string"
  21428. },
  21429. state: {
  21430. enum: ["active"],
  21431. required: true,
  21432. type: "string"
  21433. }
  21434. },
  21435. url: "/user/memberships/orgs/:org"
  21436. }
  21437. },
  21438. projects: {
  21439. addCollaborator: {
  21440. headers: {
  21441. accept: "application/vnd.github.inertia-preview+json"
  21442. },
  21443. method: "PUT",
  21444. params: {
  21445. permission: {
  21446. enum: ["read", "write", "admin"],
  21447. type: "string"
  21448. },
  21449. project_id: {
  21450. required: true,
  21451. type: "integer"
  21452. },
  21453. username: {
  21454. required: true,
  21455. type: "string"
  21456. }
  21457. },
  21458. url: "/projects/:project_id/collaborators/:username"
  21459. },
  21460. createCard: {
  21461. headers: {
  21462. accept: "application/vnd.github.inertia-preview+json"
  21463. },
  21464. method: "POST",
  21465. params: {
  21466. column_id: {
  21467. required: true,
  21468. type: "integer"
  21469. },
  21470. content_id: {
  21471. type: "integer"
  21472. },
  21473. content_type: {
  21474. type: "string"
  21475. },
  21476. note: {
  21477. type: "string"
  21478. }
  21479. },
  21480. url: "/projects/columns/:column_id/cards"
  21481. },
  21482. createColumn: {
  21483. headers: {
  21484. accept: "application/vnd.github.inertia-preview+json"
  21485. },
  21486. method: "POST",
  21487. params: {
  21488. name: {
  21489. required: true,
  21490. type: "string"
  21491. },
  21492. project_id: {
  21493. required: true,
  21494. type: "integer"
  21495. }
  21496. },
  21497. url: "/projects/:project_id/columns"
  21498. },
  21499. createForAuthenticatedUser: {
  21500. headers: {
  21501. accept: "application/vnd.github.inertia-preview+json"
  21502. },
  21503. method: "POST",
  21504. params: {
  21505. body: {
  21506. type: "string"
  21507. },
  21508. name: {
  21509. required: true,
  21510. type: "string"
  21511. }
  21512. },
  21513. url: "/user/projects"
  21514. },
  21515. createForOrg: {
  21516. headers: {
  21517. accept: "application/vnd.github.inertia-preview+json"
  21518. },
  21519. method: "POST",
  21520. params: {
  21521. body: {
  21522. type: "string"
  21523. },
  21524. name: {
  21525. required: true,
  21526. type: "string"
  21527. },
  21528. org: {
  21529. required: true,
  21530. type: "string"
  21531. }
  21532. },
  21533. url: "/orgs/:org/projects"
  21534. },
  21535. createForRepo: {
  21536. headers: {
  21537. accept: "application/vnd.github.inertia-preview+json"
  21538. },
  21539. method: "POST",
  21540. params: {
  21541. body: {
  21542. type: "string"
  21543. },
  21544. name: {
  21545. required: true,
  21546. type: "string"
  21547. },
  21548. owner: {
  21549. required: true,
  21550. type: "string"
  21551. },
  21552. repo: {
  21553. required: true,
  21554. type: "string"
  21555. }
  21556. },
  21557. url: "/repos/:owner/:repo/projects"
  21558. },
  21559. delete: {
  21560. headers: {
  21561. accept: "application/vnd.github.inertia-preview+json"
  21562. },
  21563. method: "DELETE",
  21564. params: {
  21565. project_id: {
  21566. required: true,
  21567. type: "integer"
  21568. }
  21569. },
  21570. url: "/projects/:project_id"
  21571. },
  21572. deleteCard: {
  21573. headers: {
  21574. accept: "application/vnd.github.inertia-preview+json"
  21575. },
  21576. method: "DELETE",
  21577. params: {
  21578. card_id: {
  21579. required: true,
  21580. type: "integer"
  21581. }
  21582. },
  21583. url: "/projects/columns/cards/:card_id"
  21584. },
  21585. deleteColumn: {
  21586. headers: {
  21587. accept: "application/vnd.github.inertia-preview+json"
  21588. },
  21589. method: "DELETE",
  21590. params: {
  21591. column_id: {
  21592. required: true,
  21593. type: "integer"
  21594. }
  21595. },
  21596. url: "/projects/columns/:column_id"
  21597. },
  21598. get: {
  21599. headers: {
  21600. accept: "application/vnd.github.inertia-preview+json"
  21601. },
  21602. method: "GET",
  21603. params: {
  21604. project_id: {
  21605. required: true,
  21606. type: "integer"
  21607. }
  21608. },
  21609. url: "/projects/:project_id"
  21610. },
  21611. getCard: {
  21612. headers: {
  21613. accept: "application/vnd.github.inertia-preview+json"
  21614. },
  21615. method: "GET",
  21616. params: {
  21617. card_id: {
  21618. required: true,
  21619. type: "integer"
  21620. }
  21621. },
  21622. url: "/projects/columns/cards/:card_id"
  21623. },
  21624. getColumn: {
  21625. headers: {
  21626. accept: "application/vnd.github.inertia-preview+json"
  21627. },
  21628. method: "GET",
  21629. params: {
  21630. column_id: {
  21631. required: true,
  21632. type: "integer"
  21633. }
  21634. },
  21635. url: "/projects/columns/:column_id"
  21636. },
  21637. listCards: {
  21638. headers: {
  21639. accept: "application/vnd.github.inertia-preview+json"
  21640. },
  21641. method: "GET",
  21642. params: {
  21643. archived_state: {
  21644. enum: ["all", "archived", "not_archived"],
  21645. type: "string"
  21646. },
  21647. column_id: {
  21648. required: true,
  21649. type: "integer"
  21650. },
  21651. page: {
  21652. type: "integer"
  21653. },
  21654. per_page: {
  21655. type: "integer"
  21656. }
  21657. },
  21658. url: "/projects/columns/:column_id/cards"
  21659. },
  21660. listCollaborators: {
  21661. headers: {
  21662. accept: "application/vnd.github.inertia-preview+json"
  21663. },
  21664. method: "GET",
  21665. params: {
  21666. affiliation: {
  21667. enum: ["outside", "direct", "all"],
  21668. type: "string"
  21669. },
  21670. page: {
  21671. type: "integer"
  21672. },
  21673. per_page: {
  21674. type: "integer"
  21675. },
  21676. project_id: {
  21677. required: true,
  21678. type: "integer"
  21679. }
  21680. },
  21681. url: "/projects/:project_id/collaborators"
  21682. },
  21683. listColumns: {
  21684. headers: {
  21685. accept: "application/vnd.github.inertia-preview+json"
  21686. },
  21687. method: "GET",
  21688. params: {
  21689. page: {
  21690. type: "integer"
  21691. },
  21692. per_page: {
  21693. type: "integer"
  21694. },
  21695. project_id: {
  21696. required: true,
  21697. type: "integer"
  21698. }
  21699. },
  21700. url: "/projects/:project_id/columns"
  21701. },
  21702. listForOrg: {
  21703. headers: {
  21704. accept: "application/vnd.github.inertia-preview+json"
  21705. },
  21706. method: "GET",
  21707. params: {
  21708. org: {
  21709. required: true,
  21710. type: "string"
  21711. },
  21712. page: {
  21713. type: "integer"
  21714. },
  21715. per_page: {
  21716. type: "integer"
  21717. },
  21718. state: {
  21719. enum: ["open", "closed", "all"],
  21720. type: "string"
  21721. }
  21722. },
  21723. url: "/orgs/:org/projects"
  21724. },
  21725. listForRepo: {
  21726. headers: {
  21727. accept: "application/vnd.github.inertia-preview+json"
  21728. },
  21729. method: "GET",
  21730. params: {
  21731. owner: {
  21732. required: true,
  21733. type: "string"
  21734. },
  21735. page: {
  21736. type: "integer"
  21737. },
  21738. per_page: {
  21739. type: "integer"
  21740. },
  21741. repo: {
  21742. required: true,
  21743. type: "string"
  21744. },
  21745. state: {
  21746. enum: ["open", "closed", "all"],
  21747. type: "string"
  21748. }
  21749. },
  21750. url: "/repos/:owner/:repo/projects"
  21751. },
  21752. listForUser: {
  21753. headers: {
  21754. accept: "application/vnd.github.inertia-preview+json"
  21755. },
  21756. method: "GET",
  21757. params: {
  21758. page: {
  21759. type: "integer"
  21760. },
  21761. per_page: {
  21762. type: "integer"
  21763. },
  21764. state: {
  21765. enum: ["open", "closed", "all"],
  21766. type: "string"
  21767. },
  21768. username: {
  21769. required: true,
  21770. type: "string"
  21771. }
  21772. },
  21773. url: "/users/:username/projects"
  21774. },
  21775. moveCard: {
  21776. headers: {
  21777. accept: "application/vnd.github.inertia-preview+json"
  21778. },
  21779. method: "POST",
  21780. params: {
  21781. card_id: {
  21782. required: true,
  21783. type: "integer"
  21784. },
  21785. column_id: {
  21786. type: "integer"
  21787. },
  21788. position: {
  21789. required: true,
  21790. type: "string",
  21791. validation: "^(top|bottom|after:\\d+)$"
  21792. }
  21793. },
  21794. url: "/projects/columns/cards/:card_id/moves"
  21795. },
  21796. moveColumn: {
  21797. headers: {
  21798. accept: "application/vnd.github.inertia-preview+json"
  21799. },
  21800. method: "POST",
  21801. params: {
  21802. column_id: {
  21803. required: true,
  21804. type: "integer"
  21805. },
  21806. position: {
  21807. required: true,
  21808. type: "string",
  21809. validation: "^(first|last|after:\\d+)$"
  21810. }
  21811. },
  21812. url: "/projects/columns/:column_id/moves"
  21813. },
  21814. removeCollaborator: {
  21815. headers: {
  21816. accept: "application/vnd.github.inertia-preview+json"
  21817. },
  21818. method: "DELETE",
  21819. params: {
  21820. project_id: {
  21821. required: true,
  21822. type: "integer"
  21823. },
  21824. username: {
  21825. required: true,
  21826. type: "string"
  21827. }
  21828. },
  21829. url: "/projects/:project_id/collaborators/:username"
  21830. },
  21831. reviewUserPermissionLevel: {
  21832. headers: {
  21833. accept: "application/vnd.github.inertia-preview+json"
  21834. },
  21835. method: "GET",
  21836. params: {
  21837. project_id: {
  21838. required: true,
  21839. type: "integer"
  21840. },
  21841. username: {
  21842. required: true,
  21843. type: "string"
  21844. }
  21845. },
  21846. url: "/projects/:project_id/collaborators/:username/permission"
  21847. },
  21848. update: {
  21849. headers: {
  21850. accept: "application/vnd.github.inertia-preview+json"
  21851. },
  21852. method: "PATCH",
  21853. params: {
  21854. body: {
  21855. type: "string"
  21856. },
  21857. name: {
  21858. type: "string"
  21859. },
  21860. organization_permission: {
  21861. type: "string"
  21862. },
  21863. private: {
  21864. type: "boolean"
  21865. },
  21866. project_id: {
  21867. required: true,
  21868. type: "integer"
  21869. },
  21870. state: {
  21871. enum: ["open", "closed"],
  21872. type: "string"
  21873. }
  21874. },
  21875. url: "/projects/:project_id"
  21876. },
  21877. updateCard: {
  21878. headers: {
  21879. accept: "application/vnd.github.inertia-preview+json"
  21880. },
  21881. method: "PATCH",
  21882. params: {
  21883. archived: {
  21884. type: "boolean"
  21885. },
  21886. card_id: {
  21887. required: true,
  21888. type: "integer"
  21889. },
  21890. note: {
  21891. type: "string"
  21892. }
  21893. },
  21894. url: "/projects/columns/cards/:card_id"
  21895. },
  21896. updateColumn: {
  21897. headers: {
  21898. accept: "application/vnd.github.inertia-preview+json"
  21899. },
  21900. method: "PATCH",
  21901. params: {
  21902. column_id: {
  21903. required: true,
  21904. type: "integer"
  21905. },
  21906. name: {
  21907. required: true,
  21908. type: "string"
  21909. }
  21910. },
  21911. url: "/projects/columns/:column_id"
  21912. }
  21913. },
  21914. pulls: {
  21915. checkIfMerged: {
  21916. method: "GET",
  21917. params: {
  21918. number: {
  21919. alias: "pull_number",
  21920. deprecated: true,
  21921. type: "integer"
  21922. },
  21923. owner: {
  21924. required: true,
  21925. type: "string"
  21926. },
  21927. pull_number: {
  21928. required: true,
  21929. type: "integer"
  21930. },
  21931. repo: {
  21932. required: true,
  21933. type: "string"
  21934. }
  21935. },
  21936. url: "/repos/:owner/:repo/pulls/:pull_number/merge"
  21937. },
  21938. create: {
  21939. method: "POST",
  21940. params: {
  21941. base: {
  21942. required: true,
  21943. type: "string"
  21944. },
  21945. body: {
  21946. type: "string"
  21947. },
  21948. draft: {
  21949. type: "boolean"
  21950. },
  21951. head: {
  21952. required: true,
  21953. type: "string"
  21954. },
  21955. maintainer_can_modify: {
  21956. type: "boolean"
  21957. },
  21958. owner: {
  21959. required: true,
  21960. type: "string"
  21961. },
  21962. repo: {
  21963. required: true,
  21964. type: "string"
  21965. },
  21966. title: {
  21967. required: true,
  21968. type: "string"
  21969. }
  21970. },
  21971. url: "/repos/:owner/:repo/pulls"
  21972. },
  21973. createComment: {
  21974. method: "POST",
  21975. params: {
  21976. body: {
  21977. required: true,
  21978. type: "string"
  21979. },
  21980. commit_id: {
  21981. required: true,
  21982. type: "string"
  21983. },
  21984. in_reply_to: {
  21985. deprecated: true,
  21986. description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
  21987. type: "integer"
  21988. },
  21989. line: {
  21990. type: "integer"
  21991. },
  21992. number: {
  21993. alias: "pull_number",
  21994. deprecated: true,
  21995. type: "integer"
  21996. },
  21997. owner: {
  21998. required: true,
  21999. type: "string"
  22000. },
  22001. path: {
  22002. required: true,
  22003. type: "string"
  22004. },
  22005. position: {
  22006. type: "integer"
  22007. },
  22008. pull_number: {
  22009. required: true,
  22010. type: "integer"
  22011. },
  22012. repo: {
  22013. required: true,
  22014. type: "string"
  22015. },
  22016. side: {
  22017. enum: ["LEFT", "RIGHT"],
  22018. type: "string"
  22019. },
  22020. start_line: {
  22021. type: "integer"
  22022. },
  22023. start_side: {
  22024. enum: ["LEFT", "RIGHT", "side"],
  22025. type: "string"
  22026. }
  22027. },
  22028. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  22029. },
  22030. createCommentReply: {
  22031. deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",
  22032. method: "POST",
  22033. params: {
  22034. body: {
  22035. required: true,
  22036. type: "string"
  22037. },
  22038. commit_id: {
  22039. required: true,
  22040. type: "string"
  22041. },
  22042. in_reply_to: {
  22043. deprecated: true,
  22044. description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
  22045. type: "integer"
  22046. },
  22047. line: {
  22048. type: "integer"
  22049. },
  22050. number: {
  22051. alias: "pull_number",
  22052. deprecated: true,
  22053. type: "integer"
  22054. },
  22055. owner: {
  22056. required: true,
  22057. type: "string"
  22058. },
  22059. path: {
  22060. required: true,
  22061. type: "string"
  22062. },
  22063. position: {
  22064. type: "integer"
  22065. },
  22066. pull_number: {
  22067. required: true,
  22068. type: "integer"
  22069. },
  22070. repo: {
  22071. required: true,
  22072. type: "string"
  22073. },
  22074. side: {
  22075. enum: ["LEFT", "RIGHT"],
  22076. type: "string"
  22077. },
  22078. start_line: {
  22079. type: "integer"
  22080. },
  22081. start_side: {
  22082. enum: ["LEFT", "RIGHT", "side"],
  22083. type: "string"
  22084. }
  22085. },
  22086. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  22087. },
  22088. createFromIssue: {
  22089. deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",
  22090. method: "POST",
  22091. params: {
  22092. base: {
  22093. required: true,
  22094. type: "string"
  22095. },
  22096. draft: {
  22097. type: "boolean"
  22098. },
  22099. head: {
  22100. required: true,
  22101. type: "string"
  22102. },
  22103. issue: {
  22104. required: true,
  22105. type: "integer"
  22106. },
  22107. maintainer_can_modify: {
  22108. type: "boolean"
  22109. },
  22110. owner: {
  22111. required: true,
  22112. type: "string"
  22113. },
  22114. repo: {
  22115. required: true,
  22116. type: "string"
  22117. }
  22118. },
  22119. url: "/repos/:owner/:repo/pulls"
  22120. },
  22121. createReview: {
  22122. method: "POST",
  22123. params: {
  22124. body: {
  22125. type: "string"
  22126. },
  22127. comments: {
  22128. type: "object[]"
  22129. },
  22130. "comments[].body": {
  22131. required: true,
  22132. type: "string"
  22133. },
  22134. "comments[].path": {
  22135. required: true,
  22136. type: "string"
  22137. },
  22138. "comments[].position": {
  22139. required: true,
  22140. type: "integer"
  22141. },
  22142. commit_id: {
  22143. type: "string"
  22144. },
  22145. event: {
  22146. enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
  22147. type: "string"
  22148. },
  22149. number: {
  22150. alias: "pull_number",
  22151. deprecated: true,
  22152. type: "integer"
  22153. },
  22154. owner: {
  22155. required: true,
  22156. type: "string"
  22157. },
  22158. pull_number: {
  22159. required: true,
  22160. type: "integer"
  22161. },
  22162. repo: {
  22163. required: true,
  22164. type: "string"
  22165. }
  22166. },
  22167. url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
  22168. },
  22169. createReviewCommentReply: {
  22170. method: "POST",
  22171. params: {
  22172. body: {
  22173. required: true,
  22174. type: "string"
  22175. },
  22176. comment_id: {
  22177. required: true,
  22178. type: "integer"
  22179. },
  22180. owner: {
  22181. required: true,
  22182. type: "string"
  22183. },
  22184. pull_number: {
  22185. required: true,
  22186. type: "integer"
  22187. },
  22188. repo: {
  22189. required: true,
  22190. type: "string"
  22191. }
  22192. },
  22193. url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"
  22194. },
  22195. createReviewRequest: {
  22196. method: "POST",
  22197. params: {
  22198. number: {
  22199. alias: "pull_number",
  22200. deprecated: true,
  22201. type: "integer"
  22202. },
  22203. owner: {
  22204. required: true,
  22205. type: "string"
  22206. },
  22207. pull_number: {
  22208. required: true,
  22209. type: "integer"
  22210. },
  22211. repo: {
  22212. required: true,
  22213. type: "string"
  22214. },
  22215. reviewers: {
  22216. type: "string[]"
  22217. },
  22218. team_reviewers: {
  22219. type: "string[]"
  22220. }
  22221. },
  22222. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  22223. },
  22224. deleteComment: {
  22225. method: "DELETE",
  22226. params: {
  22227. comment_id: {
  22228. required: true,
  22229. type: "integer"
  22230. },
  22231. owner: {
  22232. required: true,
  22233. type: "string"
  22234. },
  22235. repo: {
  22236. required: true,
  22237. type: "string"
  22238. }
  22239. },
  22240. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  22241. },
  22242. deletePendingReview: {
  22243. method: "DELETE",
  22244. params: {
  22245. number: {
  22246. alias: "pull_number",
  22247. deprecated: true,
  22248. type: "integer"
  22249. },
  22250. owner: {
  22251. required: true,
  22252. type: "string"
  22253. },
  22254. pull_number: {
  22255. required: true,
  22256. type: "integer"
  22257. },
  22258. repo: {
  22259. required: true,
  22260. type: "string"
  22261. },
  22262. review_id: {
  22263. required: true,
  22264. type: "integer"
  22265. }
  22266. },
  22267. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  22268. },
  22269. deleteReviewRequest: {
  22270. method: "DELETE",
  22271. params: {
  22272. number: {
  22273. alias: "pull_number",
  22274. deprecated: true,
  22275. type: "integer"
  22276. },
  22277. owner: {
  22278. required: true,
  22279. type: "string"
  22280. },
  22281. pull_number: {
  22282. required: true,
  22283. type: "integer"
  22284. },
  22285. repo: {
  22286. required: true,
  22287. type: "string"
  22288. },
  22289. reviewers: {
  22290. type: "string[]"
  22291. },
  22292. team_reviewers: {
  22293. type: "string[]"
  22294. }
  22295. },
  22296. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  22297. },
  22298. dismissReview: {
  22299. method: "PUT",
  22300. params: {
  22301. message: {
  22302. required: true,
  22303. type: "string"
  22304. },
  22305. number: {
  22306. alias: "pull_number",
  22307. deprecated: true,
  22308. type: "integer"
  22309. },
  22310. owner: {
  22311. required: true,
  22312. type: "string"
  22313. },
  22314. pull_number: {
  22315. required: true,
  22316. type: "integer"
  22317. },
  22318. repo: {
  22319. required: true,
  22320. type: "string"
  22321. },
  22322. review_id: {
  22323. required: true,
  22324. type: "integer"
  22325. }
  22326. },
  22327. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"
  22328. },
  22329. get: {
  22330. method: "GET",
  22331. params: {
  22332. number: {
  22333. alias: "pull_number",
  22334. deprecated: true,
  22335. type: "integer"
  22336. },
  22337. owner: {
  22338. required: true,
  22339. type: "string"
  22340. },
  22341. pull_number: {
  22342. required: true,
  22343. type: "integer"
  22344. },
  22345. repo: {
  22346. required: true,
  22347. type: "string"
  22348. }
  22349. },
  22350. url: "/repos/:owner/:repo/pulls/:pull_number"
  22351. },
  22352. getComment: {
  22353. method: "GET",
  22354. params: {
  22355. comment_id: {
  22356. required: true,
  22357. type: "integer"
  22358. },
  22359. owner: {
  22360. required: true,
  22361. type: "string"
  22362. },
  22363. repo: {
  22364. required: true,
  22365. type: "string"
  22366. }
  22367. },
  22368. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  22369. },
  22370. getCommentsForReview: {
  22371. method: "GET",
  22372. params: {
  22373. number: {
  22374. alias: "pull_number",
  22375. deprecated: true,
  22376. type: "integer"
  22377. },
  22378. owner: {
  22379. required: true,
  22380. type: "string"
  22381. },
  22382. page: {
  22383. type: "integer"
  22384. },
  22385. per_page: {
  22386. type: "integer"
  22387. },
  22388. pull_number: {
  22389. required: true,
  22390. type: "integer"
  22391. },
  22392. repo: {
  22393. required: true,
  22394. type: "string"
  22395. },
  22396. review_id: {
  22397. required: true,
  22398. type: "integer"
  22399. }
  22400. },
  22401. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"
  22402. },
  22403. getReview: {
  22404. method: "GET",
  22405. params: {
  22406. number: {
  22407. alias: "pull_number",
  22408. deprecated: true,
  22409. type: "integer"
  22410. },
  22411. owner: {
  22412. required: true,
  22413. type: "string"
  22414. },
  22415. pull_number: {
  22416. required: true,
  22417. type: "integer"
  22418. },
  22419. repo: {
  22420. required: true,
  22421. type: "string"
  22422. },
  22423. review_id: {
  22424. required: true,
  22425. type: "integer"
  22426. }
  22427. },
  22428. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  22429. },
  22430. list: {
  22431. method: "GET",
  22432. params: {
  22433. base: {
  22434. type: "string"
  22435. },
  22436. direction: {
  22437. enum: ["asc", "desc"],
  22438. type: "string"
  22439. },
  22440. head: {
  22441. type: "string"
  22442. },
  22443. owner: {
  22444. required: true,
  22445. type: "string"
  22446. },
  22447. page: {
  22448. type: "integer"
  22449. },
  22450. per_page: {
  22451. type: "integer"
  22452. },
  22453. repo: {
  22454. required: true,
  22455. type: "string"
  22456. },
  22457. sort: {
  22458. enum: ["created", "updated", "popularity", "long-running"],
  22459. type: "string"
  22460. },
  22461. state: {
  22462. enum: ["open", "closed", "all"],
  22463. type: "string"
  22464. }
  22465. },
  22466. url: "/repos/:owner/:repo/pulls"
  22467. },
  22468. listComments: {
  22469. method: "GET",
  22470. params: {
  22471. direction: {
  22472. enum: ["asc", "desc"],
  22473. type: "string"
  22474. },
  22475. number: {
  22476. alias: "pull_number",
  22477. deprecated: true,
  22478. type: "integer"
  22479. },
  22480. owner: {
  22481. required: true,
  22482. type: "string"
  22483. },
  22484. page: {
  22485. type: "integer"
  22486. },
  22487. per_page: {
  22488. type: "integer"
  22489. },
  22490. pull_number: {
  22491. required: true,
  22492. type: "integer"
  22493. },
  22494. repo: {
  22495. required: true,
  22496. type: "string"
  22497. },
  22498. since: {
  22499. type: "string"
  22500. },
  22501. sort: {
  22502. enum: ["created", "updated"],
  22503. type: "string"
  22504. }
  22505. },
  22506. url: "/repos/:owner/:repo/pulls/:pull_number/comments"
  22507. },
  22508. listCommentsForRepo: {
  22509. method: "GET",
  22510. params: {
  22511. direction: {
  22512. enum: ["asc", "desc"],
  22513. type: "string"
  22514. },
  22515. owner: {
  22516. required: true,
  22517. type: "string"
  22518. },
  22519. page: {
  22520. type: "integer"
  22521. },
  22522. per_page: {
  22523. type: "integer"
  22524. },
  22525. repo: {
  22526. required: true,
  22527. type: "string"
  22528. },
  22529. since: {
  22530. type: "string"
  22531. },
  22532. sort: {
  22533. enum: ["created", "updated"],
  22534. type: "string"
  22535. }
  22536. },
  22537. url: "/repos/:owner/:repo/pulls/comments"
  22538. },
  22539. listCommits: {
  22540. method: "GET",
  22541. params: {
  22542. number: {
  22543. alias: "pull_number",
  22544. deprecated: true,
  22545. type: "integer"
  22546. },
  22547. owner: {
  22548. required: true,
  22549. type: "string"
  22550. },
  22551. page: {
  22552. type: "integer"
  22553. },
  22554. per_page: {
  22555. type: "integer"
  22556. },
  22557. pull_number: {
  22558. required: true,
  22559. type: "integer"
  22560. },
  22561. repo: {
  22562. required: true,
  22563. type: "string"
  22564. }
  22565. },
  22566. url: "/repos/:owner/:repo/pulls/:pull_number/commits"
  22567. },
  22568. listFiles: {
  22569. method: "GET",
  22570. params: {
  22571. number: {
  22572. alias: "pull_number",
  22573. deprecated: true,
  22574. type: "integer"
  22575. },
  22576. owner: {
  22577. required: true,
  22578. type: "string"
  22579. },
  22580. page: {
  22581. type: "integer"
  22582. },
  22583. per_page: {
  22584. type: "integer"
  22585. },
  22586. pull_number: {
  22587. required: true,
  22588. type: "integer"
  22589. },
  22590. repo: {
  22591. required: true,
  22592. type: "string"
  22593. }
  22594. },
  22595. url: "/repos/:owner/:repo/pulls/:pull_number/files"
  22596. },
  22597. listReviewRequests: {
  22598. method: "GET",
  22599. params: {
  22600. number: {
  22601. alias: "pull_number",
  22602. deprecated: true,
  22603. type: "integer"
  22604. },
  22605. owner: {
  22606. required: true,
  22607. type: "string"
  22608. },
  22609. page: {
  22610. type: "integer"
  22611. },
  22612. per_page: {
  22613. type: "integer"
  22614. },
  22615. pull_number: {
  22616. required: true,
  22617. type: "integer"
  22618. },
  22619. repo: {
  22620. required: true,
  22621. type: "string"
  22622. }
  22623. },
  22624. url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
  22625. },
  22626. listReviews: {
  22627. method: "GET",
  22628. params: {
  22629. number: {
  22630. alias: "pull_number",
  22631. deprecated: true,
  22632. type: "integer"
  22633. },
  22634. owner: {
  22635. required: true,
  22636. type: "string"
  22637. },
  22638. page: {
  22639. type: "integer"
  22640. },
  22641. per_page: {
  22642. type: "integer"
  22643. },
  22644. pull_number: {
  22645. required: true,
  22646. type: "integer"
  22647. },
  22648. repo: {
  22649. required: true,
  22650. type: "string"
  22651. }
  22652. },
  22653. url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
  22654. },
  22655. merge: {
  22656. method: "PUT",
  22657. params: {
  22658. commit_message: {
  22659. type: "string"
  22660. },
  22661. commit_title: {
  22662. type: "string"
  22663. },
  22664. merge_method: {
  22665. enum: ["merge", "squash", "rebase"],
  22666. type: "string"
  22667. },
  22668. number: {
  22669. alias: "pull_number",
  22670. deprecated: true,
  22671. type: "integer"
  22672. },
  22673. owner: {
  22674. required: true,
  22675. type: "string"
  22676. },
  22677. pull_number: {
  22678. required: true,
  22679. type: "integer"
  22680. },
  22681. repo: {
  22682. required: true,
  22683. type: "string"
  22684. },
  22685. sha: {
  22686. type: "string"
  22687. }
  22688. },
  22689. url: "/repos/:owner/:repo/pulls/:pull_number/merge"
  22690. },
  22691. submitReview: {
  22692. method: "POST",
  22693. params: {
  22694. body: {
  22695. type: "string"
  22696. },
  22697. event: {
  22698. enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
  22699. required: true,
  22700. type: "string"
  22701. },
  22702. number: {
  22703. alias: "pull_number",
  22704. deprecated: true,
  22705. type: "integer"
  22706. },
  22707. owner: {
  22708. required: true,
  22709. type: "string"
  22710. },
  22711. pull_number: {
  22712. required: true,
  22713. type: "integer"
  22714. },
  22715. repo: {
  22716. required: true,
  22717. type: "string"
  22718. },
  22719. review_id: {
  22720. required: true,
  22721. type: "integer"
  22722. }
  22723. },
  22724. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"
  22725. },
  22726. update: {
  22727. method: "PATCH",
  22728. params: {
  22729. base: {
  22730. type: "string"
  22731. },
  22732. body: {
  22733. type: "string"
  22734. },
  22735. maintainer_can_modify: {
  22736. type: "boolean"
  22737. },
  22738. number: {
  22739. alias: "pull_number",
  22740. deprecated: true,
  22741. type: "integer"
  22742. },
  22743. owner: {
  22744. required: true,
  22745. type: "string"
  22746. },
  22747. pull_number: {
  22748. required: true,
  22749. type: "integer"
  22750. },
  22751. repo: {
  22752. required: true,
  22753. type: "string"
  22754. },
  22755. state: {
  22756. enum: ["open", "closed"],
  22757. type: "string"
  22758. },
  22759. title: {
  22760. type: "string"
  22761. }
  22762. },
  22763. url: "/repos/:owner/:repo/pulls/:pull_number"
  22764. },
  22765. updateBranch: {
  22766. headers: {
  22767. accept: "application/vnd.github.lydian-preview+json"
  22768. },
  22769. method: "PUT",
  22770. params: {
  22771. expected_head_sha: {
  22772. type: "string"
  22773. },
  22774. owner: {
  22775. required: true,
  22776. type: "string"
  22777. },
  22778. pull_number: {
  22779. required: true,
  22780. type: "integer"
  22781. },
  22782. repo: {
  22783. required: true,
  22784. type: "string"
  22785. }
  22786. },
  22787. url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"
  22788. },
  22789. updateComment: {
  22790. method: "PATCH",
  22791. params: {
  22792. body: {
  22793. required: true,
  22794. type: "string"
  22795. },
  22796. comment_id: {
  22797. required: true,
  22798. type: "integer"
  22799. },
  22800. owner: {
  22801. required: true,
  22802. type: "string"
  22803. },
  22804. repo: {
  22805. required: true,
  22806. type: "string"
  22807. }
  22808. },
  22809. url: "/repos/:owner/:repo/pulls/comments/:comment_id"
  22810. },
  22811. updateReview: {
  22812. method: "PUT",
  22813. params: {
  22814. body: {
  22815. required: true,
  22816. type: "string"
  22817. },
  22818. number: {
  22819. alias: "pull_number",
  22820. deprecated: true,
  22821. type: "integer"
  22822. },
  22823. owner: {
  22824. required: true,
  22825. type: "string"
  22826. },
  22827. pull_number: {
  22828. required: true,
  22829. type: "integer"
  22830. },
  22831. repo: {
  22832. required: true,
  22833. type: "string"
  22834. },
  22835. review_id: {
  22836. required: true,
  22837. type: "integer"
  22838. }
  22839. },
  22840. url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
  22841. }
  22842. },
  22843. rateLimit: {
  22844. get: {
  22845. method: "GET",
  22846. params: {},
  22847. url: "/rate_limit"
  22848. }
  22849. },
  22850. reactions: {
  22851. createForCommitComment: {
  22852. headers: {
  22853. accept: "application/vnd.github.squirrel-girl-preview+json"
  22854. },
  22855. method: "POST",
  22856. params: {
  22857. comment_id: {
  22858. required: true,
  22859. type: "integer"
  22860. },
  22861. content: {
  22862. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22863. required: true,
  22864. type: "string"
  22865. },
  22866. owner: {
  22867. required: true,
  22868. type: "string"
  22869. },
  22870. repo: {
  22871. required: true,
  22872. type: "string"
  22873. }
  22874. },
  22875. url: "/repos/:owner/:repo/comments/:comment_id/reactions"
  22876. },
  22877. createForIssue: {
  22878. headers: {
  22879. accept: "application/vnd.github.squirrel-girl-preview+json"
  22880. },
  22881. method: "POST",
  22882. params: {
  22883. content: {
  22884. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22885. required: true,
  22886. type: "string"
  22887. },
  22888. issue_number: {
  22889. required: true,
  22890. type: "integer"
  22891. },
  22892. number: {
  22893. alias: "issue_number",
  22894. deprecated: true,
  22895. type: "integer"
  22896. },
  22897. owner: {
  22898. required: true,
  22899. type: "string"
  22900. },
  22901. repo: {
  22902. required: true,
  22903. type: "string"
  22904. }
  22905. },
  22906. url: "/repos/:owner/:repo/issues/:issue_number/reactions"
  22907. },
  22908. createForIssueComment: {
  22909. headers: {
  22910. accept: "application/vnd.github.squirrel-girl-preview+json"
  22911. },
  22912. method: "POST",
  22913. params: {
  22914. comment_id: {
  22915. required: true,
  22916. type: "integer"
  22917. },
  22918. content: {
  22919. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22920. required: true,
  22921. type: "string"
  22922. },
  22923. owner: {
  22924. required: true,
  22925. type: "string"
  22926. },
  22927. repo: {
  22928. required: true,
  22929. type: "string"
  22930. }
  22931. },
  22932. url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  22933. },
  22934. createForPullRequestReviewComment: {
  22935. headers: {
  22936. accept: "application/vnd.github.squirrel-girl-preview+json"
  22937. },
  22938. method: "POST",
  22939. params: {
  22940. comment_id: {
  22941. required: true,
  22942. type: "integer"
  22943. },
  22944. content: {
  22945. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22946. required: true,
  22947. type: "string"
  22948. },
  22949. owner: {
  22950. required: true,
  22951. type: "string"
  22952. },
  22953. repo: {
  22954. required: true,
  22955. type: "string"
  22956. }
  22957. },
  22958. url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  22959. },
  22960. createForTeamDiscussion: {
  22961. deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",
  22962. headers: {
  22963. accept: "application/vnd.github.squirrel-girl-preview+json"
  22964. },
  22965. method: "POST",
  22966. params: {
  22967. content: {
  22968. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22969. required: true,
  22970. type: "string"
  22971. },
  22972. discussion_number: {
  22973. required: true,
  22974. type: "integer"
  22975. },
  22976. team_id: {
  22977. required: true,
  22978. type: "integer"
  22979. }
  22980. },
  22981. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  22982. },
  22983. createForTeamDiscussionComment: {
  22984. deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",
  22985. headers: {
  22986. accept: "application/vnd.github.squirrel-girl-preview+json"
  22987. },
  22988. method: "POST",
  22989. params: {
  22990. comment_number: {
  22991. required: true,
  22992. type: "integer"
  22993. },
  22994. content: {
  22995. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  22996. required: true,
  22997. type: "string"
  22998. },
  22999. discussion_number: {
  23000. required: true,
  23001. type: "integer"
  23002. },
  23003. team_id: {
  23004. required: true,
  23005. type: "integer"
  23006. }
  23007. },
  23008. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  23009. },
  23010. createForTeamDiscussionCommentInOrg: {
  23011. headers: {
  23012. accept: "application/vnd.github.squirrel-girl-preview+json"
  23013. },
  23014. method: "POST",
  23015. params: {
  23016. comment_number: {
  23017. required: true,
  23018. type: "integer"
  23019. },
  23020. content: {
  23021. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23022. required: true,
  23023. type: "string"
  23024. },
  23025. discussion_number: {
  23026. required: true,
  23027. type: "integer"
  23028. },
  23029. org: {
  23030. required: true,
  23031. type: "string"
  23032. },
  23033. team_slug: {
  23034. required: true,
  23035. type: "string"
  23036. }
  23037. },
  23038. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
  23039. },
  23040. createForTeamDiscussionCommentLegacy: {
  23041. deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",
  23042. headers: {
  23043. accept: "application/vnd.github.squirrel-girl-preview+json"
  23044. },
  23045. method: "POST",
  23046. params: {
  23047. comment_number: {
  23048. required: true,
  23049. type: "integer"
  23050. },
  23051. content: {
  23052. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23053. required: true,
  23054. type: "string"
  23055. },
  23056. discussion_number: {
  23057. required: true,
  23058. type: "integer"
  23059. },
  23060. team_id: {
  23061. required: true,
  23062. type: "integer"
  23063. }
  23064. },
  23065. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  23066. },
  23067. createForTeamDiscussionInOrg: {
  23068. headers: {
  23069. accept: "application/vnd.github.squirrel-girl-preview+json"
  23070. },
  23071. method: "POST",
  23072. params: {
  23073. content: {
  23074. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23075. required: true,
  23076. type: "string"
  23077. },
  23078. discussion_number: {
  23079. required: true,
  23080. type: "integer"
  23081. },
  23082. org: {
  23083. required: true,
  23084. type: "string"
  23085. },
  23086. team_slug: {
  23087. required: true,
  23088. type: "string"
  23089. }
  23090. },
  23091. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
  23092. },
  23093. createForTeamDiscussionLegacy: {
  23094. deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",
  23095. headers: {
  23096. accept: "application/vnd.github.squirrel-girl-preview+json"
  23097. },
  23098. method: "POST",
  23099. params: {
  23100. content: {
  23101. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23102. required: true,
  23103. type: "string"
  23104. },
  23105. discussion_number: {
  23106. required: true,
  23107. type: "integer"
  23108. },
  23109. team_id: {
  23110. required: true,
  23111. type: "integer"
  23112. }
  23113. },
  23114. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  23115. },
  23116. delete: {
  23117. headers: {
  23118. accept: "application/vnd.github.squirrel-girl-preview+json"
  23119. },
  23120. method: "DELETE",
  23121. params: {
  23122. reaction_id: {
  23123. required: true,
  23124. type: "integer"
  23125. }
  23126. },
  23127. url: "/reactions/:reaction_id"
  23128. },
  23129. listForCommitComment: {
  23130. headers: {
  23131. accept: "application/vnd.github.squirrel-girl-preview+json"
  23132. },
  23133. method: "GET",
  23134. params: {
  23135. comment_id: {
  23136. required: true,
  23137. type: "integer"
  23138. },
  23139. content: {
  23140. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23141. type: "string"
  23142. },
  23143. owner: {
  23144. required: true,
  23145. type: "string"
  23146. },
  23147. page: {
  23148. type: "integer"
  23149. },
  23150. per_page: {
  23151. type: "integer"
  23152. },
  23153. repo: {
  23154. required: true,
  23155. type: "string"
  23156. }
  23157. },
  23158. url: "/repos/:owner/:repo/comments/:comment_id/reactions"
  23159. },
  23160. listForIssue: {
  23161. headers: {
  23162. accept: "application/vnd.github.squirrel-girl-preview+json"
  23163. },
  23164. method: "GET",
  23165. params: {
  23166. content: {
  23167. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23168. type: "string"
  23169. },
  23170. issue_number: {
  23171. required: true,
  23172. type: "integer"
  23173. },
  23174. number: {
  23175. alias: "issue_number",
  23176. deprecated: true,
  23177. type: "integer"
  23178. },
  23179. owner: {
  23180. required: true,
  23181. type: "string"
  23182. },
  23183. page: {
  23184. type: "integer"
  23185. },
  23186. per_page: {
  23187. type: "integer"
  23188. },
  23189. repo: {
  23190. required: true,
  23191. type: "string"
  23192. }
  23193. },
  23194. url: "/repos/:owner/:repo/issues/:issue_number/reactions"
  23195. },
  23196. listForIssueComment: {
  23197. headers: {
  23198. accept: "application/vnd.github.squirrel-girl-preview+json"
  23199. },
  23200. method: "GET",
  23201. params: {
  23202. comment_id: {
  23203. required: true,
  23204. type: "integer"
  23205. },
  23206. content: {
  23207. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23208. type: "string"
  23209. },
  23210. owner: {
  23211. required: true,
  23212. type: "string"
  23213. },
  23214. page: {
  23215. type: "integer"
  23216. },
  23217. per_page: {
  23218. type: "integer"
  23219. },
  23220. repo: {
  23221. required: true,
  23222. type: "string"
  23223. }
  23224. },
  23225. url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
  23226. },
  23227. listForPullRequestReviewComment: {
  23228. headers: {
  23229. accept: "application/vnd.github.squirrel-girl-preview+json"
  23230. },
  23231. method: "GET",
  23232. params: {
  23233. comment_id: {
  23234. required: true,
  23235. type: "integer"
  23236. },
  23237. content: {
  23238. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23239. type: "string"
  23240. },
  23241. owner: {
  23242. required: true,
  23243. type: "string"
  23244. },
  23245. page: {
  23246. type: "integer"
  23247. },
  23248. per_page: {
  23249. type: "integer"
  23250. },
  23251. repo: {
  23252. required: true,
  23253. type: "string"
  23254. }
  23255. },
  23256. url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
  23257. },
  23258. listForTeamDiscussion: {
  23259. deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",
  23260. headers: {
  23261. accept: "application/vnd.github.squirrel-girl-preview+json"
  23262. },
  23263. method: "GET",
  23264. params: {
  23265. content: {
  23266. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23267. type: "string"
  23268. },
  23269. discussion_number: {
  23270. required: true,
  23271. type: "integer"
  23272. },
  23273. page: {
  23274. type: "integer"
  23275. },
  23276. per_page: {
  23277. type: "integer"
  23278. },
  23279. team_id: {
  23280. required: true,
  23281. type: "integer"
  23282. }
  23283. },
  23284. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  23285. },
  23286. listForTeamDiscussionComment: {
  23287. deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",
  23288. headers: {
  23289. accept: "application/vnd.github.squirrel-girl-preview+json"
  23290. },
  23291. method: "GET",
  23292. params: {
  23293. comment_number: {
  23294. required: true,
  23295. type: "integer"
  23296. },
  23297. content: {
  23298. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23299. type: "string"
  23300. },
  23301. discussion_number: {
  23302. required: true,
  23303. type: "integer"
  23304. },
  23305. page: {
  23306. type: "integer"
  23307. },
  23308. per_page: {
  23309. type: "integer"
  23310. },
  23311. team_id: {
  23312. required: true,
  23313. type: "integer"
  23314. }
  23315. },
  23316. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  23317. },
  23318. listForTeamDiscussionCommentInOrg: {
  23319. headers: {
  23320. accept: "application/vnd.github.squirrel-girl-preview+json"
  23321. },
  23322. method: "GET",
  23323. params: {
  23324. comment_number: {
  23325. required: true,
  23326. type: "integer"
  23327. },
  23328. content: {
  23329. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23330. type: "string"
  23331. },
  23332. discussion_number: {
  23333. required: true,
  23334. type: "integer"
  23335. },
  23336. org: {
  23337. required: true,
  23338. type: "string"
  23339. },
  23340. page: {
  23341. type: "integer"
  23342. },
  23343. per_page: {
  23344. type: "integer"
  23345. },
  23346. team_slug: {
  23347. required: true,
  23348. type: "string"
  23349. }
  23350. },
  23351. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
  23352. },
  23353. listForTeamDiscussionCommentLegacy: {
  23354. deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",
  23355. headers: {
  23356. accept: "application/vnd.github.squirrel-girl-preview+json"
  23357. },
  23358. method: "GET",
  23359. params: {
  23360. comment_number: {
  23361. required: true,
  23362. type: "integer"
  23363. },
  23364. content: {
  23365. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23366. type: "string"
  23367. },
  23368. discussion_number: {
  23369. required: true,
  23370. type: "integer"
  23371. },
  23372. page: {
  23373. type: "integer"
  23374. },
  23375. per_page: {
  23376. type: "integer"
  23377. },
  23378. team_id: {
  23379. required: true,
  23380. type: "integer"
  23381. }
  23382. },
  23383. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
  23384. },
  23385. listForTeamDiscussionInOrg: {
  23386. headers: {
  23387. accept: "application/vnd.github.squirrel-girl-preview+json"
  23388. },
  23389. method: "GET",
  23390. params: {
  23391. content: {
  23392. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23393. type: "string"
  23394. },
  23395. discussion_number: {
  23396. required: true,
  23397. type: "integer"
  23398. },
  23399. org: {
  23400. required: true,
  23401. type: "string"
  23402. },
  23403. page: {
  23404. type: "integer"
  23405. },
  23406. per_page: {
  23407. type: "integer"
  23408. },
  23409. team_slug: {
  23410. required: true,
  23411. type: "string"
  23412. }
  23413. },
  23414. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
  23415. },
  23416. listForTeamDiscussionLegacy: {
  23417. deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",
  23418. headers: {
  23419. accept: "application/vnd.github.squirrel-girl-preview+json"
  23420. },
  23421. method: "GET",
  23422. params: {
  23423. content: {
  23424. enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
  23425. type: "string"
  23426. },
  23427. discussion_number: {
  23428. required: true,
  23429. type: "integer"
  23430. },
  23431. page: {
  23432. type: "integer"
  23433. },
  23434. per_page: {
  23435. type: "integer"
  23436. },
  23437. team_id: {
  23438. required: true,
  23439. type: "integer"
  23440. }
  23441. },
  23442. url: "/teams/:team_id/discussions/:discussion_number/reactions"
  23443. }
  23444. },
  23445. repos: {
  23446. acceptInvitation: {
  23447. method: "PATCH",
  23448. params: {
  23449. invitation_id: {
  23450. required: true,
  23451. type: "integer"
  23452. }
  23453. },
  23454. url: "/user/repository_invitations/:invitation_id"
  23455. },
  23456. addCollaborator: {
  23457. method: "PUT",
  23458. params: {
  23459. owner: {
  23460. required: true,
  23461. type: "string"
  23462. },
  23463. permission: {
  23464. enum: ["pull", "push", "admin"],
  23465. type: "string"
  23466. },
  23467. repo: {
  23468. required: true,
  23469. type: "string"
  23470. },
  23471. username: {
  23472. required: true,
  23473. type: "string"
  23474. }
  23475. },
  23476. url: "/repos/:owner/:repo/collaborators/:username"
  23477. },
  23478. addDeployKey: {
  23479. method: "POST",
  23480. params: {
  23481. key: {
  23482. required: true,
  23483. type: "string"
  23484. },
  23485. owner: {
  23486. required: true,
  23487. type: "string"
  23488. },
  23489. read_only: {
  23490. type: "boolean"
  23491. },
  23492. repo: {
  23493. required: true,
  23494. type: "string"
  23495. },
  23496. title: {
  23497. type: "string"
  23498. }
  23499. },
  23500. url: "/repos/:owner/:repo/keys"
  23501. },
  23502. addProtectedBranchAdminEnforcement: {
  23503. method: "POST",
  23504. params: {
  23505. branch: {
  23506. required: true,
  23507. type: "string"
  23508. },
  23509. owner: {
  23510. required: true,
  23511. type: "string"
  23512. },
  23513. repo: {
  23514. required: true,
  23515. type: "string"
  23516. }
  23517. },
  23518. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  23519. },
  23520. addProtectedBranchAppRestrictions: {
  23521. method: "POST",
  23522. params: {
  23523. apps: {
  23524. mapTo: "data",
  23525. required: true,
  23526. type: "string[]"
  23527. },
  23528. branch: {
  23529. required: true,
  23530. type: "string"
  23531. },
  23532. owner: {
  23533. required: true,
  23534. type: "string"
  23535. },
  23536. repo: {
  23537. required: true,
  23538. type: "string"
  23539. }
  23540. },
  23541. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  23542. },
  23543. addProtectedBranchRequiredSignatures: {
  23544. headers: {
  23545. accept: "application/vnd.github.zzzax-preview+json"
  23546. },
  23547. method: "POST",
  23548. params: {
  23549. branch: {
  23550. required: true,
  23551. type: "string"
  23552. },
  23553. owner: {
  23554. required: true,
  23555. type: "string"
  23556. },
  23557. repo: {
  23558. required: true,
  23559. type: "string"
  23560. }
  23561. },
  23562. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  23563. },
  23564. addProtectedBranchRequiredStatusChecksContexts: {
  23565. method: "POST",
  23566. params: {
  23567. branch: {
  23568. required: true,
  23569. type: "string"
  23570. },
  23571. contexts: {
  23572. mapTo: "data",
  23573. required: true,
  23574. type: "string[]"
  23575. },
  23576. owner: {
  23577. required: true,
  23578. type: "string"
  23579. },
  23580. repo: {
  23581. required: true,
  23582. type: "string"
  23583. }
  23584. },
  23585. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  23586. },
  23587. addProtectedBranchTeamRestrictions: {
  23588. method: "POST",
  23589. params: {
  23590. branch: {
  23591. required: true,
  23592. type: "string"
  23593. },
  23594. owner: {
  23595. required: true,
  23596. type: "string"
  23597. },
  23598. repo: {
  23599. required: true,
  23600. type: "string"
  23601. },
  23602. teams: {
  23603. mapTo: "data",
  23604. required: true,
  23605. type: "string[]"
  23606. }
  23607. },
  23608. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  23609. },
  23610. addProtectedBranchUserRestrictions: {
  23611. method: "POST",
  23612. params: {
  23613. branch: {
  23614. required: true,
  23615. type: "string"
  23616. },
  23617. owner: {
  23618. required: true,
  23619. type: "string"
  23620. },
  23621. repo: {
  23622. required: true,
  23623. type: "string"
  23624. },
  23625. users: {
  23626. mapTo: "data",
  23627. required: true,
  23628. type: "string[]"
  23629. }
  23630. },
  23631. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  23632. },
  23633. checkCollaborator: {
  23634. method: "GET",
  23635. params: {
  23636. owner: {
  23637. required: true,
  23638. type: "string"
  23639. },
  23640. repo: {
  23641. required: true,
  23642. type: "string"
  23643. },
  23644. username: {
  23645. required: true,
  23646. type: "string"
  23647. }
  23648. },
  23649. url: "/repos/:owner/:repo/collaborators/:username"
  23650. },
  23651. checkVulnerabilityAlerts: {
  23652. headers: {
  23653. accept: "application/vnd.github.dorian-preview+json"
  23654. },
  23655. method: "GET",
  23656. params: {
  23657. owner: {
  23658. required: true,
  23659. type: "string"
  23660. },
  23661. repo: {
  23662. required: true,
  23663. type: "string"
  23664. }
  23665. },
  23666. url: "/repos/:owner/:repo/vulnerability-alerts"
  23667. },
  23668. compareCommits: {
  23669. method: "GET",
  23670. params: {
  23671. base: {
  23672. required: true,
  23673. type: "string"
  23674. },
  23675. head: {
  23676. required: true,
  23677. type: "string"
  23678. },
  23679. owner: {
  23680. required: true,
  23681. type: "string"
  23682. },
  23683. repo: {
  23684. required: true,
  23685. type: "string"
  23686. }
  23687. },
  23688. url: "/repos/:owner/:repo/compare/:base...:head"
  23689. },
  23690. createCommitComment: {
  23691. method: "POST",
  23692. params: {
  23693. body: {
  23694. required: true,
  23695. type: "string"
  23696. },
  23697. commit_sha: {
  23698. required: true,
  23699. type: "string"
  23700. },
  23701. line: {
  23702. type: "integer"
  23703. },
  23704. owner: {
  23705. required: true,
  23706. type: "string"
  23707. },
  23708. path: {
  23709. type: "string"
  23710. },
  23711. position: {
  23712. type: "integer"
  23713. },
  23714. repo: {
  23715. required: true,
  23716. type: "string"
  23717. },
  23718. sha: {
  23719. alias: "commit_sha",
  23720. deprecated: true,
  23721. type: "string"
  23722. }
  23723. },
  23724. url: "/repos/:owner/:repo/commits/:commit_sha/comments"
  23725. },
  23726. createDeployment: {
  23727. method: "POST",
  23728. params: {
  23729. auto_merge: {
  23730. type: "boolean"
  23731. },
  23732. description: {
  23733. type: "string"
  23734. },
  23735. environment: {
  23736. type: "string"
  23737. },
  23738. owner: {
  23739. required: true,
  23740. type: "string"
  23741. },
  23742. payload: {
  23743. type: "string"
  23744. },
  23745. production_environment: {
  23746. type: "boolean"
  23747. },
  23748. ref: {
  23749. required: true,
  23750. type: "string"
  23751. },
  23752. repo: {
  23753. required: true,
  23754. type: "string"
  23755. },
  23756. required_contexts: {
  23757. type: "string[]"
  23758. },
  23759. task: {
  23760. type: "string"
  23761. },
  23762. transient_environment: {
  23763. type: "boolean"
  23764. }
  23765. },
  23766. url: "/repos/:owner/:repo/deployments"
  23767. },
  23768. createDeploymentStatus: {
  23769. method: "POST",
  23770. params: {
  23771. auto_inactive: {
  23772. type: "boolean"
  23773. },
  23774. deployment_id: {
  23775. required: true,
  23776. type: "integer"
  23777. },
  23778. description: {
  23779. type: "string"
  23780. },
  23781. environment: {
  23782. enum: ["production", "staging", "qa"],
  23783. type: "string"
  23784. },
  23785. environment_url: {
  23786. type: "string"
  23787. },
  23788. log_url: {
  23789. type: "string"
  23790. },
  23791. owner: {
  23792. required: true,
  23793. type: "string"
  23794. },
  23795. repo: {
  23796. required: true,
  23797. type: "string"
  23798. },
  23799. state: {
  23800. enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"],
  23801. required: true,
  23802. type: "string"
  23803. },
  23804. target_url: {
  23805. type: "string"
  23806. }
  23807. },
  23808. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  23809. },
  23810. createDispatchEvent: {
  23811. method: "POST",
  23812. params: {
  23813. client_payload: {
  23814. type: "object"
  23815. },
  23816. event_type: {
  23817. type: "string"
  23818. },
  23819. owner: {
  23820. required: true,
  23821. type: "string"
  23822. },
  23823. repo: {
  23824. required: true,
  23825. type: "string"
  23826. }
  23827. },
  23828. url: "/repos/:owner/:repo/dispatches"
  23829. },
  23830. createFile: {
  23831. deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
  23832. method: "PUT",
  23833. params: {
  23834. author: {
  23835. type: "object"
  23836. },
  23837. "author.email": {
  23838. required: true,
  23839. type: "string"
  23840. },
  23841. "author.name": {
  23842. required: true,
  23843. type: "string"
  23844. },
  23845. branch: {
  23846. type: "string"
  23847. },
  23848. committer: {
  23849. type: "object"
  23850. },
  23851. "committer.email": {
  23852. required: true,
  23853. type: "string"
  23854. },
  23855. "committer.name": {
  23856. required: true,
  23857. type: "string"
  23858. },
  23859. content: {
  23860. required: true,
  23861. type: "string"
  23862. },
  23863. message: {
  23864. required: true,
  23865. type: "string"
  23866. },
  23867. owner: {
  23868. required: true,
  23869. type: "string"
  23870. },
  23871. path: {
  23872. required: true,
  23873. type: "string"
  23874. },
  23875. repo: {
  23876. required: true,
  23877. type: "string"
  23878. },
  23879. sha: {
  23880. type: "string"
  23881. }
  23882. },
  23883. url: "/repos/:owner/:repo/contents/:path"
  23884. },
  23885. createForAuthenticatedUser: {
  23886. method: "POST",
  23887. params: {
  23888. allow_merge_commit: {
  23889. type: "boolean"
  23890. },
  23891. allow_rebase_merge: {
  23892. type: "boolean"
  23893. },
  23894. allow_squash_merge: {
  23895. type: "boolean"
  23896. },
  23897. auto_init: {
  23898. type: "boolean"
  23899. },
  23900. delete_branch_on_merge: {
  23901. type: "boolean"
  23902. },
  23903. description: {
  23904. type: "string"
  23905. },
  23906. gitignore_template: {
  23907. type: "string"
  23908. },
  23909. has_issues: {
  23910. type: "boolean"
  23911. },
  23912. has_projects: {
  23913. type: "boolean"
  23914. },
  23915. has_wiki: {
  23916. type: "boolean"
  23917. },
  23918. homepage: {
  23919. type: "string"
  23920. },
  23921. is_template: {
  23922. type: "boolean"
  23923. },
  23924. license_template: {
  23925. type: "string"
  23926. },
  23927. name: {
  23928. required: true,
  23929. type: "string"
  23930. },
  23931. private: {
  23932. type: "boolean"
  23933. },
  23934. team_id: {
  23935. type: "integer"
  23936. },
  23937. visibility: {
  23938. enum: ["public", "private", "visibility", "internal"],
  23939. type: "string"
  23940. }
  23941. },
  23942. url: "/user/repos"
  23943. },
  23944. createFork: {
  23945. method: "POST",
  23946. params: {
  23947. organization: {
  23948. type: "string"
  23949. },
  23950. owner: {
  23951. required: true,
  23952. type: "string"
  23953. },
  23954. repo: {
  23955. required: true,
  23956. type: "string"
  23957. }
  23958. },
  23959. url: "/repos/:owner/:repo/forks"
  23960. },
  23961. createHook: {
  23962. method: "POST",
  23963. params: {
  23964. active: {
  23965. type: "boolean"
  23966. },
  23967. config: {
  23968. required: true,
  23969. type: "object"
  23970. },
  23971. "config.content_type": {
  23972. type: "string"
  23973. },
  23974. "config.insecure_ssl": {
  23975. type: "string"
  23976. },
  23977. "config.secret": {
  23978. type: "string"
  23979. },
  23980. "config.url": {
  23981. required: true,
  23982. type: "string"
  23983. },
  23984. events: {
  23985. type: "string[]"
  23986. },
  23987. name: {
  23988. type: "string"
  23989. },
  23990. owner: {
  23991. required: true,
  23992. type: "string"
  23993. },
  23994. repo: {
  23995. required: true,
  23996. type: "string"
  23997. }
  23998. },
  23999. url: "/repos/:owner/:repo/hooks"
  24000. },
  24001. createInOrg: {
  24002. method: "POST",
  24003. params: {
  24004. allow_merge_commit: {
  24005. type: "boolean"
  24006. },
  24007. allow_rebase_merge: {
  24008. type: "boolean"
  24009. },
  24010. allow_squash_merge: {
  24011. type: "boolean"
  24012. },
  24013. auto_init: {
  24014. type: "boolean"
  24015. },
  24016. delete_branch_on_merge: {
  24017. type: "boolean"
  24018. },
  24019. description: {
  24020. type: "string"
  24021. },
  24022. gitignore_template: {
  24023. type: "string"
  24024. },
  24025. has_issues: {
  24026. type: "boolean"
  24027. },
  24028. has_projects: {
  24029. type: "boolean"
  24030. },
  24031. has_wiki: {
  24032. type: "boolean"
  24033. },
  24034. homepage: {
  24035. type: "string"
  24036. },
  24037. is_template: {
  24038. type: "boolean"
  24039. },
  24040. license_template: {
  24041. type: "string"
  24042. },
  24043. name: {
  24044. required: true,
  24045. type: "string"
  24046. },
  24047. org: {
  24048. required: true,
  24049. type: "string"
  24050. },
  24051. private: {
  24052. type: "boolean"
  24053. },
  24054. team_id: {
  24055. type: "integer"
  24056. },
  24057. visibility: {
  24058. enum: ["public", "private", "visibility", "internal"],
  24059. type: "string"
  24060. }
  24061. },
  24062. url: "/orgs/:org/repos"
  24063. },
  24064. createOrUpdateFile: {
  24065. method: "PUT",
  24066. params: {
  24067. author: {
  24068. type: "object"
  24069. },
  24070. "author.email": {
  24071. required: true,
  24072. type: "string"
  24073. },
  24074. "author.name": {
  24075. required: true,
  24076. type: "string"
  24077. },
  24078. branch: {
  24079. type: "string"
  24080. },
  24081. committer: {
  24082. type: "object"
  24083. },
  24084. "committer.email": {
  24085. required: true,
  24086. type: "string"
  24087. },
  24088. "committer.name": {
  24089. required: true,
  24090. type: "string"
  24091. },
  24092. content: {
  24093. required: true,
  24094. type: "string"
  24095. },
  24096. message: {
  24097. required: true,
  24098. type: "string"
  24099. },
  24100. owner: {
  24101. required: true,
  24102. type: "string"
  24103. },
  24104. path: {
  24105. required: true,
  24106. type: "string"
  24107. },
  24108. repo: {
  24109. required: true,
  24110. type: "string"
  24111. },
  24112. sha: {
  24113. type: "string"
  24114. }
  24115. },
  24116. url: "/repos/:owner/:repo/contents/:path"
  24117. },
  24118. createRelease: {
  24119. method: "POST",
  24120. params: {
  24121. body: {
  24122. type: "string"
  24123. },
  24124. draft: {
  24125. type: "boolean"
  24126. },
  24127. name: {
  24128. type: "string"
  24129. },
  24130. owner: {
  24131. required: true,
  24132. type: "string"
  24133. },
  24134. prerelease: {
  24135. type: "boolean"
  24136. },
  24137. repo: {
  24138. required: true,
  24139. type: "string"
  24140. },
  24141. tag_name: {
  24142. required: true,
  24143. type: "string"
  24144. },
  24145. target_commitish: {
  24146. type: "string"
  24147. }
  24148. },
  24149. url: "/repos/:owner/:repo/releases"
  24150. },
  24151. createStatus: {
  24152. method: "POST",
  24153. params: {
  24154. context: {
  24155. type: "string"
  24156. },
  24157. description: {
  24158. type: "string"
  24159. },
  24160. owner: {
  24161. required: true,
  24162. type: "string"
  24163. },
  24164. repo: {
  24165. required: true,
  24166. type: "string"
  24167. },
  24168. sha: {
  24169. required: true,
  24170. type: "string"
  24171. },
  24172. state: {
  24173. enum: ["error", "failure", "pending", "success"],
  24174. required: true,
  24175. type: "string"
  24176. },
  24177. target_url: {
  24178. type: "string"
  24179. }
  24180. },
  24181. url: "/repos/:owner/:repo/statuses/:sha"
  24182. },
  24183. createUsingTemplate: {
  24184. headers: {
  24185. accept: "application/vnd.github.baptiste-preview+json"
  24186. },
  24187. method: "POST",
  24188. params: {
  24189. description: {
  24190. type: "string"
  24191. },
  24192. name: {
  24193. required: true,
  24194. type: "string"
  24195. },
  24196. owner: {
  24197. type: "string"
  24198. },
  24199. private: {
  24200. type: "boolean"
  24201. },
  24202. template_owner: {
  24203. required: true,
  24204. type: "string"
  24205. },
  24206. template_repo: {
  24207. required: true,
  24208. type: "string"
  24209. }
  24210. },
  24211. url: "/repos/:template_owner/:template_repo/generate"
  24212. },
  24213. declineInvitation: {
  24214. method: "DELETE",
  24215. params: {
  24216. invitation_id: {
  24217. required: true,
  24218. type: "integer"
  24219. }
  24220. },
  24221. url: "/user/repository_invitations/:invitation_id"
  24222. },
  24223. delete: {
  24224. method: "DELETE",
  24225. params: {
  24226. owner: {
  24227. required: true,
  24228. type: "string"
  24229. },
  24230. repo: {
  24231. required: true,
  24232. type: "string"
  24233. }
  24234. },
  24235. url: "/repos/:owner/:repo"
  24236. },
  24237. deleteCommitComment: {
  24238. method: "DELETE",
  24239. params: {
  24240. comment_id: {
  24241. required: true,
  24242. type: "integer"
  24243. },
  24244. owner: {
  24245. required: true,
  24246. type: "string"
  24247. },
  24248. repo: {
  24249. required: true,
  24250. type: "string"
  24251. }
  24252. },
  24253. url: "/repos/:owner/:repo/comments/:comment_id"
  24254. },
  24255. deleteDownload: {
  24256. method: "DELETE",
  24257. params: {
  24258. download_id: {
  24259. required: true,
  24260. type: "integer"
  24261. },
  24262. owner: {
  24263. required: true,
  24264. type: "string"
  24265. },
  24266. repo: {
  24267. required: true,
  24268. type: "string"
  24269. }
  24270. },
  24271. url: "/repos/:owner/:repo/downloads/:download_id"
  24272. },
  24273. deleteFile: {
  24274. method: "DELETE",
  24275. params: {
  24276. author: {
  24277. type: "object"
  24278. },
  24279. "author.email": {
  24280. type: "string"
  24281. },
  24282. "author.name": {
  24283. type: "string"
  24284. },
  24285. branch: {
  24286. type: "string"
  24287. },
  24288. committer: {
  24289. type: "object"
  24290. },
  24291. "committer.email": {
  24292. type: "string"
  24293. },
  24294. "committer.name": {
  24295. type: "string"
  24296. },
  24297. message: {
  24298. required: true,
  24299. type: "string"
  24300. },
  24301. owner: {
  24302. required: true,
  24303. type: "string"
  24304. },
  24305. path: {
  24306. required: true,
  24307. type: "string"
  24308. },
  24309. repo: {
  24310. required: true,
  24311. type: "string"
  24312. },
  24313. sha: {
  24314. required: true,
  24315. type: "string"
  24316. }
  24317. },
  24318. url: "/repos/:owner/:repo/contents/:path"
  24319. },
  24320. deleteHook: {
  24321. method: "DELETE",
  24322. params: {
  24323. hook_id: {
  24324. required: true,
  24325. type: "integer"
  24326. },
  24327. owner: {
  24328. required: true,
  24329. type: "string"
  24330. },
  24331. repo: {
  24332. required: true,
  24333. type: "string"
  24334. }
  24335. },
  24336. url: "/repos/:owner/:repo/hooks/:hook_id"
  24337. },
  24338. deleteInvitation: {
  24339. method: "DELETE",
  24340. params: {
  24341. invitation_id: {
  24342. required: true,
  24343. type: "integer"
  24344. },
  24345. owner: {
  24346. required: true,
  24347. type: "string"
  24348. },
  24349. repo: {
  24350. required: true,
  24351. type: "string"
  24352. }
  24353. },
  24354. url: "/repos/:owner/:repo/invitations/:invitation_id"
  24355. },
  24356. deleteRelease: {
  24357. method: "DELETE",
  24358. params: {
  24359. owner: {
  24360. required: true,
  24361. type: "string"
  24362. },
  24363. release_id: {
  24364. required: true,
  24365. type: "integer"
  24366. },
  24367. repo: {
  24368. required: true,
  24369. type: "string"
  24370. }
  24371. },
  24372. url: "/repos/:owner/:repo/releases/:release_id"
  24373. },
  24374. deleteReleaseAsset: {
  24375. method: "DELETE",
  24376. params: {
  24377. asset_id: {
  24378. required: true,
  24379. type: "integer"
  24380. },
  24381. owner: {
  24382. required: true,
  24383. type: "string"
  24384. },
  24385. repo: {
  24386. required: true,
  24387. type: "string"
  24388. }
  24389. },
  24390. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  24391. },
  24392. disableAutomatedSecurityFixes: {
  24393. headers: {
  24394. accept: "application/vnd.github.london-preview+json"
  24395. },
  24396. method: "DELETE",
  24397. params: {
  24398. owner: {
  24399. required: true,
  24400. type: "string"
  24401. },
  24402. repo: {
  24403. required: true,
  24404. type: "string"
  24405. }
  24406. },
  24407. url: "/repos/:owner/:repo/automated-security-fixes"
  24408. },
  24409. disablePagesSite: {
  24410. headers: {
  24411. accept: "application/vnd.github.switcheroo-preview+json"
  24412. },
  24413. method: "DELETE",
  24414. params: {
  24415. owner: {
  24416. required: true,
  24417. type: "string"
  24418. },
  24419. repo: {
  24420. required: true,
  24421. type: "string"
  24422. }
  24423. },
  24424. url: "/repos/:owner/:repo/pages"
  24425. },
  24426. disableVulnerabilityAlerts: {
  24427. headers: {
  24428. accept: "application/vnd.github.dorian-preview+json"
  24429. },
  24430. method: "DELETE",
  24431. params: {
  24432. owner: {
  24433. required: true,
  24434. type: "string"
  24435. },
  24436. repo: {
  24437. required: true,
  24438. type: "string"
  24439. }
  24440. },
  24441. url: "/repos/:owner/:repo/vulnerability-alerts"
  24442. },
  24443. enableAutomatedSecurityFixes: {
  24444. headers: {
  24445. accept: "application/vnd.github.london-preview+json"
  24446. },
  24447. method: "PUT",
  24448. params: {
  24449. owner: {
  24450. required: true,
  24451. type: "string"
  24452. },
  24453. repo: {
  24454. required: true,
  24455. type: "string"
  24456. }
  24457. },
  24458. url: "/repos/:owner/:repo/automated-security-fixes"
  24459. },
  24460. enablePagesSite: {
  24461. headers: {
  24462. accept: "application/vnd.github.switcheroo-preview+json"
  24463. },
  24464. method: "POST",
  24465. params: {
  24466. owner: {
  24467. required: true,
  24468. type: "string"
  24469. },
  24470. repo: {
  24471. required: true,
  24472. type: "string"
  24473. },
  24474. source: {
  24475. type: "object"
  24476. },
  24477. "source.branch": {
  24478. enum: ["master", "gh-pages"],
  24479. type: "string"
  24480. },
  24481. "source.path": {
  24482. type: "string"
  24483. }
  24484. },
  24485. url: "/repos/:owner/:repo/pages"
  24486. },
  24487. enableVulnerabilityAlerts: {
  24488. headers: {
  24489. accept: "application/vnd.github.dorian-preview+json"
  24490. },
  24491. method: "PUT",
  24492. params: {
  24493. owner: {
  24494. required: true,
  24495. type: "string"
  24496. },
  24497. repo: {
  24498. required: true,
  24499. type: "string"
  24500. }
  24501. },
  24502. url: "/repos/:owner/:repo/vulnerability-alerts"
  24503. },
  24504. get: {
  24505. method: "GET",
  24506. params: {
  24507. owner: {
  24508. required: true,
  24509. type: "string"
  24510. },
  24511. repo: {
  24512. required: true,
  24513. type: "string"
  24514. }
  24515. },
  24516. url: "/repos/:owner/:repo"
  24517. },
  24518. getAppsWithAccessToProtectedBranch: {
  24519. method: "GET",
  24520. params: {
  24521. branch: {
  24522. required: true,
  24523. type: "string"
  24524. },
  24525. owner: {
  24526. required: true,
  24527. type: "string"
  24528. },
  24529. repo: {
  24530. required: true,
  24531. type: "string"
  24532. }
  24533. },
  24534. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  24535. },
  24536. getArchiveLink: {
  24537. method: "GET",
  24538. params: {
  24539. archive_format: {
  24540. required: true,
  24541. type: "string"
  24542. },
  24543. owner: {
  24544. required: true,
  24545. type: "string"
  24546. },
  24547. ref: {
  24548. required: true,
  24549. type: "string"
  24550. },
  24551. repo: {
  24552. required: true,
  24553. type: "string"
  24554. }
  24555. },
  24556. url: "/repos/:owner/:repo/:archive_format/:ref"
  24557. },
  24558. getBranch: {
  24559. method: "GET",
  24560. params: {
  24561. branch: {
  24562. required: true,
  24563. type: "string"
  24564. },
  24565. owner: {
  24566. required: true,
  24567. type: "string"
  24568. },
  24569. repo: {
  24570. required: true,
  24571. type: "string"
  24572. }
  24573. },
  24574. url: "/repos/:owner/:repo/branches/:branch"
  24575. },
  24576. getBranchProtection: {
  24577. method: "GET",
  24578. params: {
  24579. branch: {
  24580. required: true,
  24581. type: "string"
  24582. },
  24583. owner: {
  24584. required: true,
  24585. type: "string"
  24586. },
  24587. repo: {
  24588. required: true,
  24589. type: "string"
  24590. }
  24591. },
  24592. url: "/repos/:owner/:repo/branches/:branch/protection"
  24593. },
  24594. getClones: {
  24595. method: "GET",
  24596. params: {
  24597. owner: {
  24598. required: true,
  24599. type: "string"
  24600. },
  24601. per: {
  24602. enum: ["day", "week"],
  24603. type: "string"
  24604. },
  24605. repo: {
  24606. required: true,
  24607. type: "string"
  24608. }
  24609. },
  24610. url: "/repos/:owner/:repo/traffic/clones"
  24611. },
  24612. getCodeFrequencyStats: {
  24613. method: "GET",
  24614. params: {
  24615. owner: {
  24616. required: true,
  24617. type: "string"
  24618. },
  24619. repo: {
  24620. required: true,
  24621. type: "string"
  24622. }
  24623. },
  24624. url: "/repos/:owner/:repo/stats/code_frequency"
  24625. },
  24626. getCollaboratorPermissionLevel: {
  24627. method: "GET",
  24628. params: {
  24629. owner: {
  24630. required: true,
  24631. type: "string"
  24632. },
  24633. repo: {
  24634. required: true,
  24635. type: "string"
  24636. },
  24637. username: {
  24638. required: true,
  24639. type: "string"
  24640. }
  24641. },
  24642. url: "/repos/:owner/:repo/collaborators/:username/permission"
  24643. },
  24644. getCombinedStatusForRef: {
  24645. method: "GET",
  24646. params: {
  24647. owner: {
  24648. required: true,
  24649. type: "string"
  24650. },
  24651. ref: {
  24652. required: true,
  24653. type: "string"
  24654. },
  24655. repo: {
  24656. required: true,
  24657. type: "string"
  24658. }
  24659. },
  24660. url: "/repos/:owner/:repo/commits/:ref/status"
  24661. },
  24662. getCommit: {
  24663. method: "GET",
  24664. params: {
  24665. commit_sha: {
  24666. alias: "ref",
  24667. deprecated: true,
  24668. type: "string"
  24669. },
  24670. owner: {
  24671. required: true,
  24672. type: "string"
  24673. },
  24674. ref: {
  24675. required: true,
  24676. type: "string"
  24677. },
  24678. repo: {
  24679. required: true,
  24680. type: "string"
  24681. },
  24682. sha: {
  24683. alias: "ref",
  24684. deprecated: true,
  24685. type: "string"
  24686. }
  24687. },
  24688. url: "/repos/:owner/:repo/commits/:ref"
  24689. },
  24690. getCommitActivityStats: {
  24691. method: "GET",
  24692. params: {
  24693. owner: {
  24694. required: true,
  24695. type: "string"
  24696. },
  24697. repo: {
  24698. required: true,
  24699. type: "string"
  24700. }
  24701. },
  24702. url: "/repos/:owner/:repo/stats/commit_activity"
  24703. },
  24704. getCommitComment: {
  24705. method: "GET",
  24706. params: {
  24707. comment_id: {
  24708. required: true,
  24709. type: "integer"
  24710. },
  24711. owner: {
  24712. required: true,
  24713. type: "string"
  24714. },
  24715. repo: {
  24716. required: true,
  24717. type: "string"
  24718. }
  24719. },
  24720. url: "/repos/:owner/:repo/comments/:comment_id"
  24721. },
  24722. getCommitRefSha: {
  24723. deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",
  24724. headers: {
  24725. accept: "application/vnd.github.v3.sha"
  24726. },
  24727. method: "GET",
  24728. params: {
  24729. owner: {
  24730. required: true,
  24731. type: "string"
  24732. },
  24733. ref: {
  24734. required: true,
  24735. type: "string"
  24736. },
  24737. repo: {
  24738. required: true,
  24739. type: "string"
  24740. }
  24741. },
  24742. url: "/repos/:owner/:repo/commits/:ref"
  24743. },
  24744. getContents: {
  24745. method: "GET",
  24746. params: {
  24747. owner: {
  24748. required: true,
  24749. type: "string"
  24750. },
  24751. path: {
  24752. required: true,
  24753. type: "string"
  24754. },
  24755. ref: {
  24756. type: "string"
  24757. },
  24758. repo: {
  24759. required: true,
  24760. type: "string"
  24761. }
  24762. },
  24763. url: "/repos/:owner/:repo/contents/:path"
  24764. },
  24765. getContributorsStats: {
  24766. method: "GET",
  24767. params: {
  24768. owner: {
  24769. required: true,
  24770. type: "string"
  24771. },
  24772. repo: {
  24773. required: true,
  24774. type: "string"
  24775. }
  24776. },
  24777. url: "/repos/:owner/:repo/stats/contributors"
  24778. },
  24779. getDeployKey: {
  24780. method: "GET",
  24781. params: {
  24782. key_id: {
  24783. required: true,
  24784. type: "integer"
  24785. },
  24786. owner: {
  24787. required: true,
  24788. type: "string"
  24789. },
  24790. repo: {
  24791. required: true,
  24792. type: "string"
  24793. }
  24794. },
  24795. url: "/repos/:owner/:repo/keys/:key_id"
  24796. },
  24797. getDeployment: {
  24798. method: "GET",
  24799. params: {
  24800. deployment_id: {
  24801. required: true,
  24802. type: "integer"
  24803. },
  24804. owner: {
  24805. required: true,
  24806. type: "string"
  24807. },
  24808. repo: {
  24809. required: true,
  24810. type: "string"
  24811. }
  24812. },
  24813. url: "/repos/:owner/:repo/deployments/:deployment_id"
  24814. },
  24815. getDeploymentStatus: {
  24816. method: "GET",
  24817. params: {
  24818. deployment_id: {
  24819. required: true,
  24820. type: "integer"
  24821. },
  24822. owner: {
  24823. required: true,
  24824. type: "string"
  24825. },
  24826. repo: {
  24827. required: true,
  24828. type: "string"
  24829. },
  24830. status_id: {
  24831. required: true,
  24832. type: "integer"
  24833. }
  24834. },
  24835. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"
  24836. },
  24837. getDownload: {
  24838. method: "GET",
  24839. params: {
  24840. download_id: {
  24841. required: true,
  24842. type: "integer"
  24843. },
  24844. owner: {
  24845. required: true,
  24846. type: "string"
  24847. },
  24848. repo: {
  24849. required: true,
  24850. type: "string"
  24851. }
  24852. },
  24853. url: "/repos/:owner/:repo/downloads/:download_id"
  24854. },
  24855. getHook: {
  24856. method: "GET",
  24857. params: {
  24858. hook_id: {
  24859. required: true,
  24860. type: "integer"
  24861. },
  24862. owner: {
  24863. required: true,
  24864. type: "string"
  24865. },
  24866. repo: {
  24867. required: true,
  24868. type: "string"
  24869. }
  24870. },
  24871. url: "/repos/:owner/:repo/hooks/:hook_id"
  24872. },
  24873. getLatestPagesBuild: {
  24874. method: "GET",
  24875. params: {
  24876. owner: {
  24877. required: true,
  24878. type: "string"
  24879. },
  24880. repo: {
  24881. required: true,
  24882. type: "string"
  24883. }
  24884. },
  24885. url: "/repos/:owner/:repo/pages/builds/latest"
  24886. },
  24887. getLatestRelease: {
  24888. method: "GET",
  24889. params: {
  24890. owner: {
  24891. required: true,
  24892. type: "string"
  24893. },
  24894. repo: {
  24895. required: true,
  24896. type: "string"
  24897. }
  24898. },
  24899. url: "/repos/:owner/:repo/releases/latest"
  24900. },
  24901. getPages: {
  24902. method: "GET",
  24903. params: {
  24904. owner: {
  24905. required: true,
  24906. type: "string"
  24907. },
  24908. repo: {
  24909. required: true,
  24910. type: "string"
  24911. }
  24912. },
  24913. url: "/repos/:owner/:repo/pages"
  24914. },
  24915. getPagesBuild: {
  24916. method: "GET",
  24917. params: {
  24918. build_id: {
  24919. required: true,
  24920. type: "integer"
  24921. },
  24922. owner: {
  24923. required: true,
  24924. type: "string"
  24925. },
  24926. repo: {
  24927. required: true,
  24928. type: "string"
  24929. }
  24930. },
  24931. url: "/repos/:owner/:repo/pages/builds/:build_id"
  24932. },
  24933. getParticipationStats: {
  24934. method: "GET",
  24935. params: {
  24936. owner: {
  24937. required: true,
  24938. type: "string"
  24939. },
  24940. repo: {
  24941. required: true,
  24942. type: "string"
  24943. }
  24944. },
  24945. url: "/repos/:owner/:repo/stats/participation"
  24946. },
  24947. getProtectedBranchAdminEnforcement: {
  24948. method: "GET",
  24949. params: {
  24950. branch: {
  24951. required: true,
  24952. type: "string"
  24953. },
  24954. owner: {
  24955. required: true,
  24956. type: "string"
  24957. },
  24958. repo: {
  24959. required: true,
  24960. type: "string"
  24961. }
  24962. },
  24963. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  24964. },
  24965. getProtectedBranchPullRequestReviewEnforcement: {
  24966. method: "GET",
  24967. params: {
  24968. branch: {
  24969. required: true,
  24970. type: "string"
  24971. },
  24972. owner: {
  24973. required: true,
  24974. type: "string"
  24975. },
  24976. repo: {
  24977. required: true,
  24978. type: "string"
  24979. }
  24980. },
  24981. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  24982. },
  24983. getProtectedBranchRequiredSignatures: {
  24984. headers: {
  24985. accept: "application/vnd.github.zzzax-preview+json"
  24986. },
  24987. method: "GET",
  24988. params: {
  24989. branch: {
  24990. required: true,
  24991. type: "string"
  24992. },
  24993. owner: {
  24994. required: true,
  24995. type: "string"
  24996. },
  24997. repo: {
  24998. required: true,
  24999. type: "string"
  25000. }
  25001. },
  25002. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  25003. },
  25004. getProtectedBranchRequiredStatusChecks: {
  25005. method: "GET",
  25006. params: {
  25007. branch: {
  25008. required: true,
  25009. type: "string"
  25010. },
  25011. owner: {
  25012. required: true,
  25013. type: "string"
  25014. },
  25015. repo: {
  25016. required: true,
  25017. type: "string"
  25018. }
  25019. },
  25020. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  25021. },
  25022. getProtectedBranchRestrictions: {
  25023. method: "GET",
  25024. params: {
  25025. branch: {
  25026. required: true,
  25027. type: "string"
  25028. },
  25029. owner: {
  25030. required: true,
  25031. type: "string"
  25032. },
  25033. repo: {
  25034. required: true,
  25035. type: "string"
  25036. }
  25037. },
  25038. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  25039. },
  25040. getPunchCardStats: {
  25041. method: "GET",
  25042. params: {
  25043. owner: {
  25044. required: true,
  25045. type: "string"
  25046. },
  25047. repo: {
  25048. required: true,
  25049. type: "string"
  25050. }
  25051. },
  25052. url: "/repos/:owner/:repo/stats/punch_card"
  25053. },
  25054. getReadme: {
  25055. method: "GET",
  25056. params: {
  25057. owner: {
  25058. required: true,
  25059. type: "string"
  25060. },
  25061. ref: {
  25062. type: "string"
  25063. },
  25064. repo: {
  25065. required: true,
  25066. type: "string"
  25067. }
  25068. },
  25069. url: "/repos/:owner/:repo/readme"
  25070. },
  25071. getRelease: {
  25072. method: "GET",
  25073. params: {
  25074. owner: {
  25075. required: true,
  25076. type: "string"
  25077. },
  25078. release_id: {
  25079. required: true,
  25080. type: "integer"
  25081. },
  25082. repo: {
  25083. required: true,
  25084. type: "string"
  25085. }
  25086. },
  25087. url: "/repos/:owner/:repo/releases/:release_id"
  25088. },
  25089. getReleaseAsset: {
  25090. method: "GET",
  25091. params: {
  25092. asset_id: {
  25093. required: true,
  25094. type: "integer"
  25095. },
  25096. owner: {
  25097. required: true,
  25098. type: "string"
  25099. },
  25100. repo: {
  25101. required: true,
  25102. type: "string"
  25103. }
  25104. },
  25105. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  25106. },
  25107. getReleaseByTag: {
  25108. method: "GET",
  25109. params: {
  25110. owner: {
  25111. required: true,
  25112. type: "string"
  25113. },
  25114. repo: {
  25115. required: true,
  25116. type: "string"
  25117. },
  25118. tag: {
  25119. required: true,
  25120. type: "string"
  25121. }
  25122. },
  25123. url: "/repos/:owner/:repo/releases/tags/:tag"
  25124. },
  25125. getTeamsWithAccessToProtectedBranch: {
  25126. method: "GET",
  25127. params: {
  25128. branch: {
  25129. required: true,
  25130. type: "string"
  25131. },
  25132. owner: {
  25133. required: true,
  25134. type: "string"
  25135. },
  25136. repo: {
  25137. required: true,
  25138. type: "string"
  25139. }
  25140. },
  25141. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  25142. },
  25143. getTopPaths: {
  25144. method: "GET",
  25145. params: {
  25146. owner: {
  25147. required: true,
  25148. type: "string"
  25149. },
  25150. repo: {
  25151. required: true,
  25152. type: "string"
  25153. }
  25154. },
  25155. url: "/repos/:owner/:repo/traffic/popular/paths"
  25156. },
  25157. getTopReferrers: {
  25158. method: "GET",
  25159. params: {
  25160. owner: {
  25161. required: true,
  25162. type: "string"
  25163. },
  25164. repo: {
  25165. required: true,
  25166. type: "string"
  25167. }
  25168. },
  25169. url: "/repos/:owner/:repo/traffic/popular/referrers"
  25170. },
  25171. getUsersWithAccessToProtectedBranch: {
  25172. method: "GET",
  25173. params: {
  25174. branch: {
  25175. required: true,
  25176. type: "string"
  25177. },
  25178. owner: {
  25179. required: true,
  25180. type: "string"
  25181. },
  25182. repo: {
  25183. required: true,
  25184. type: "string"
  25185. }
  25186. },
  25187. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  25188. },
  25189. getViews: {
  25190. method: "GET",
  25191. params: {
  25192. owner: {
  25193. required: true,
  25194. type: "string"
  25195. },
  25196. per: {
  25197. enum: ["day", "week"],
  25198. type: "string"
  25199. },
  25200. repo: {
  25201. required: true,
  25202. type: "string"
  25203. }
  25204. },
  25205. url: "/repos/:owner/:repo/traffic/views"
  25206. },
  25207. list: {
  25208. method: "GET",
  25209. params: {
  25210. affiliation: {
  25211. type: "string"
  25212. },
  25213. direction: {
  25214. enum: ["asc", "desc"],
  25215. type: "string"
  25216. },
  25217. page: {
  25218. type: "integer"
  25219. },
  25220. per_page: {
  25221. type: "integer"
  25222. },
  25223. sort: {
  25224. enum: ["created", "updated", "pushed", "full_name"],
  25225. type: "string"
  25226. },
  25227. type: {
  25228. enum: ["all", "owner", "public", "private", "member"],
  25229. type: "string"
  25230. },
  25231. visibility: {
  25232. enum: ["all", "public", "private"],
  25233. type: "string"
  25234. }
  25235. },
  25236. url: "/user/repos"
  25237. },
  25238. listAppsWithAccessToProtectedBranch: {
  25239. deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",
  25240. method: "GET",
  25241. params: {
  25242. branch: {
  25243. required: true,
  25244. type: "string"
  25245. },
  25246. owner: {
  25247. required: true,
  25248. type: "string"
  25249. },
  25250. repo: {
  25251. required: true,
  25252. type: "string"
  25253. }
  25254. },
  25255. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  25256. },
  25257. listAssetsForRelease: {
  25258. method: "GET",
  25259. params: {
  25260. owner: {
  25261. required: true,
  25262. type: "string"
  25263. },
  25264. page: {
  25265. type: "integer"
  25266. },
  25267. per_page: {
  25268. type: "integer"
  25269. },
  25270. release_id: {
  25271. required: true,
  25272. type: "integer"
  25273. },
  25274. repo: {
  25275. required: true,
  25276. type: "string"
  25277. }
  25278. },
  25279. url: "/repos/:owner/:repo/releases/:release_id/assets"
  25280. },
  25281. listBranches: {
  25282. method: "GET",
  25283. params: {
  25284. owner: {
  25285. required: true,
  25286. type: "string"
  25287. },
  25288. page: {
  25289. type: "integer"
  25290. },
  25291. per_page: {
  25292. type: "integer"
  25293. },
  25294. protected: {
  25295. type: "boolean"
  25296. },
  25297. repo: {
  25298. required: true,
  25299. type: "string"
  25300. }
  25301. },
  25302. url: "/repos/:owner/:repo/branches"
  25303. },
  25304. listBranchesForHeadCommit: {
  25305. headers: {
  25306. accept: "application/vnd.github.groot-preview+json"
  25307. },
  25308. method: "GET",
  25309. params: {
  25310. commit_sha: {
  25311. required: true,
  25312. type: "string"
  25313. },
  25314. owner: {
  25315. required: true,
  25316. type: "string"
  25317. },
  25318. repo: {
  25319. required: true,
  25320. type: "string"
  25321. }
  25322. },
  25323. url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"
  25324. },
  25325. listCollaborators: {
  25326. method: "GET",
  25327. params: {
  25328. affiliation: {
  25329. enum: ["outside", "direct", "all"],
  25330. type: "string"
  25331. },
  25332. owner: {
  25333. required: true,
  25334. type: "string"
  25335. },
  25336. page: {
  25337. type: "integer"
  25338. },
  25339. per_page: {
  25340. type: "integer"
  25341. },
  25342. repo: {
  25343. required: true,
  25344. type: "string"
  25345. }
  25346. },
  25347. url: "/repos/:owner/:repo/collaborators"
  25348. },
  25349. listCommentsForCommit: {
  25350. method: "GET",
  25351. params: {
  25352. commit_sha: {
  25353. required: true,
  25354. type: "string"
  25355. },
  25356. owner: {
  25357. required: true,
  25358. type: "string"
  25359. },
  25360. page: {
  25361. type: "integer"
  25362. },
  25363. per_page: {
  25364. type: "integer"
  25365. },
  25366. ref: {
  25367. alias: "commit_sha",
  25368. deprecated: true,
  25369. type: "string"
  25370. },
  25371. repo: {
  25372. required: true,
  25373. type: "string"
  25374. }
  25375. },
  25376. url: "/repos/:owner/:repo/commits/:commit_sha/comments"
  25377. },
  25378. listCommitComments: {
  25379. method: "GET",
  25380. params: {
  25381. owner: {
  25382. required: true,
  25383. type: "string"
  25384. },
  25385. page: {
  25386. type: "integer"
  25387. },
  25388. per_page: {
  25389. type: "integer"
  25390. },
  25391. repo: {
  25392. required: true,
  25393. type: "string"
  25394. }
  25395. },
  25396. url: "/repos/:owner/:repo/comments"
  25397. },
  25398. listCommits: {
  25399. method: "GET",
  25400. params: {
  25401. author: {
  25402. type: "string"
  25403. },
  25404. owner: {
  25405. required: true,
  25406. type: "string"
  25407. },
  25408. page: {
  25409. type: "integer"
  25410. },
  25411. path: {
  25412. type: "string"
  25413. },
  25414. per_page: {
  25415. type: "integer"
  25416. },
  25417. repo: {
  25418. required: true,
  25419. type: "string"
  25420. },
  25421. sha: {
  25422. type: "string"
  25423. },
  25424. since: {
  25425. type: "string"
  25426. },
  25427. until: {
  25428. type: "string"
  25429. }
  25430. },
  25431. url: "/repos/:owner/:repo/commits"
  25432. },
  25433. listContributors: {
  25434. method: "GET",
  25435. params: {
  25436. anon: {
  25437. type: "string"
  25438. },
  25439. owner: {
  25440. required: true,
  25441. type: "string"
  25442. },
  25443. page: {
  25444. type: "integer"
  25445. },
  25446. per_page: {
  25447. type: "integer"
  25448. },
  25449. repo: {
  25450. required: true,
  25451. type: "string"
  25452. }
  25453. },
  25454. url: "/repos/:owner/:repo/contributors"
  25455. },
  25456. listDeployKeys: {
  25457. method: "GET",
  25458. params: {
  25459. owner: {
  25460. required: true,
  25461. type: "string"
  25462. },
  25463. page: {
  25464. type: "integer"
  25465. },
  25466. per_page: {
  25467. type: "integer"
  25468. },
  25469. repo: {
  25470. required: true,
  25471. type: "string"
  25472. }
  25473. },
  25474. url: "/repos/:owner/:repo/keys"
  25475. },
  25476. listDeploymentStatuses: {
  25477. method: "GET",
  25478. params: {
  25479. deployment_id: {
  25480. required: true,
  25481. type: "integer"
  25482. },
  25483. owner: {
  25484. required: true,
  25485. type: "string"
  25486. },
  25487. page: {
  25488. type: "integer"
  25489. },
  25490. per_page: {
  25491. type: "integer"
  25492. },
  25493. repo: {
  25494. required: true,
  25495. type: "string"
  25496. }
  25497. },
  25498. url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
  25499. },
  25500. listDeployments: {
  25501. method: "GET",
  25502. params: {
  25503. environment: {
  25504. type: "string"
  25505. },
  25506. owner: {
  25507. required: true,
  25508. type: "string"
  25509. },
  25510. page: {
  25511. type: "integer"
  25512. },
  25513. per_page: {
  25514. type: "integer"
  25515. },
  25516. ref: {
  25517. type: "string"
  25518. },
  25519. repo: {
  25520. required: true,
  25521. type: "string"
  25522. },
  25523. sha: {
  25524. type: "string"
  25525. },
  25526. task: {
  25527. type: "string"
  25528. }
  25529. },
  25530. url: "/repos/:owner/:repo/deployments"
  25531. },
  25532. listDownloads: {
  25533. method: "GET",
  25534. params: {
  25535. owner: {
  25536. required: true,
  25537. type: "string"
  25538. },
  25539. page: {
  25540. type: "integer"
  25541. },
  25542. per_page: {
  25543. type: "integer"
  25544. },
  25545. repo: {
  25546. required: true,
  25547. type: "string"
  25548. }
  25549. },
  25550. url: "/repos/:owner/:repo/downloads"
  25551. },
  25552. listForOrg: {
  25553. method: "GET",
  25554. params: {
  25555. direction: {
  25556. enum: ["asc", "desc"],
  25557. type: "string"
  25558. },
  25559. org: {
  25560. required: true,
  25561. type: "string"
  25562. },
  25563. page: {
  25564. type: "integer"
  25565. },
  25566. per_page: {
  25567. type: "integer"
  25568. },
  25569. sort: {
  25570. enum: ["created", "updated", "pushed", "full_name"],
  25571. type: "string"
  25572. },
  25573. type: {
  25574. enum: ["all", "public", "private", "forks", "sources", "member", "internal"],
  25575. type: "string"
  25576. }
  25577. },
  25578. url: "/orgs/:org/repos"
  25579. },
  25580. listForUser: {
  25581. method: "GET",
  25582. params: {
  25583. direction: {
  25584. enum: ["asc", "desc"],
  25585. type: "string"
  25586. },
  25587. page: {
  25588. type: "integer"
  25589. },
  25590. per_page: {
  25591. type: "integer"
  25592. },
  25593. sort: {
  25594. enum: ["created", "updated", "pushed", "full_name"],
  25595. type: "string"
  25596. },
  25597. type: {
  25598. enum: ["all", "owner", "member"],
  25599. type: "string"
  25600. },
  25601. username: {
  25602. required: true,
  25603. type: "string"
  25604. }
  25605. },
  25606. url: "/users/:username/repos"
  25607. },
  25608. listForks: {
  25609. method: "GET",
  25610. params: {
  25611. owner: {
  25612. required: true,
  25613. type: "string"
  25614. },
  25615. page: {
  25616. type: "integer"
  25617. },
  25618. per_page: {
  25619. type: "integer"
  25620. },
  25621. repo: {
  25622. required: true,
  25623. type: "string"
  25624. },
  25625. sort: {
  25626. enum: ["newest", "oldest", "stargazers"],
  25627. type: "string"
  25628. }
  25629. },
  25630. url: "/repos/:owner/:repo/forks"
  25631. },
  25632. listHooks: {
  25633. method: "GET",
  25634. params: {
  25635. owner: {
  25636. required: true,
  25637. type: "string"
  25638. },
  25639. page: {
  25640. type: "integer"
  25641. },
  25642. per_page: {
  25643. type: "integer"
  25644. },
  25645. repo: {
  25646. required: true,
  25647. type: "string"
  25648. }
  25649. },
  25650. url: "/repos/:owner/:repo/hooks"
  25651. },
  25652. listInvitations: {
  25653. method: "GET",
  25654. params: {
  25655. owner: {
  25656. required: true,
  25657. type: "string"
  25658. },
  25659. page: {
  25660. type: "integer"
  25661. },
  25662. per_page: {
  25663. type: "integer"
  25664. },
  25665. repo: {
  25666. required: true,
  25667. type: "string"
  25668. }
  25669. },
  25670. url: "/repos/:owner/:repo/invitations"
  25671. },
  25672. listInvitationsForAuthenticatedUser: {
  25673. method: "GET",
  25674. params: {
  25675. page: {
  25676. type: "integer"
  25677. },
  25678. per_page: {
  25679. type: "integer"
  25680. }
  25681. },
  25682. url: "/user/repository_invitations"
  25683. },
  25684. listLanguages: {
  25685. method: "GET",
  25686. params: {
  25687. owner: {
  25688. required: true,
  25689. type: "string"
  25690. },
  25691. repo: {
  25692. required: true,
  25693. type: "string"
  25694. }
  25695. },
  25696. url: "/repos/:owner/:repo/languages"
  25697. },
  25698. listPagesBuilds: {
  25699. method: "GET",
  25700. params: {
  25701. owner: {
  25702. required: true,
  25703. type: "string"
  25704. },
  25705. page: {
  25706. type: "integer"
  25707. },
  25708. per_page: {
  25709. type: "integer"
  25710. },
  25711. repo: {
  25712. required: true,
  25713. type: "string"
  25714. }
  25715. },
  25716. url: "/repos/:owner/:repo/pages/builds"
  25717. },
  25718. listProtectedBranchRequiredStatusChecksContexts: {
  25719. method: "GET",
  25720. params: {
  25721. branch: {
  25722. required: true,
  25723. type: "string"
  25724. },
  25725. owner: {
  25726. required: true,
  25727. type: "string"
  25728. },
  25729. repo: {
  25730. required: true,
  25731. type: "string"
  25732. }
  25733. },
  25734. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  25735. },
  25736. listProtectedBranchTeamRestrictions: {
  25737. deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",
  25738. method: "GET",
  25739. params: {
  25740. branch: {
  25741. required: true,
  25742. type: "string"
  25743. },
  25744. owner: {
  25745. required: true,
  25746. type: "string"
  25747. },
  25748. repo: {
  25749. required: true,
  25750. type: "string"
  25751. }
  25752. },
  25753. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  25754. },
  25755. listProtectedBranchUserRestrictions: {
  25756. deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",
  25757. method: "GET",
  25758. params: {
  25759. branch: {
  25760. required: true,
  25761. type: "string"
  25762. },
  25763. owner: {
  25764. required: true,
  25765. type: "string"
  25766. },
  25767. repo: {
  25768. required: true,
  25769. type: "string"
  25770. }
  25771. },
  25772. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  25773. },
  25774. listPublic: {
  25775. method: "GET",
  25776. params: {
  25777. page: {
  25778. type: "integer"
  25779. },
  25780. per_page: {
  25781. type: "integer"
  25782. },
  25783. since: {
  25784. type: "integer"
  25785. }
  25786. },
  25787. url: "/repositories"
  25788. },
  25789. listPullRequestsAssociatedWithCommit: {
  25790. headers: {
  25791. accept: "application/vnd.github.groot-preview+json"
  25792. },
  25793. method: "GET",
  25794. params: {
  25795. commit_sha: {
  25796. required: true,
  25797. type: "string"
  25798. },
  25799. owner: {
  25800. required: true,
  25801. type: "string"
  25802. },
  25803. page: {
  25804. type: "integer"
  25805. },
  25806. per_page: {
  25807. type: "integer"
  25808. },
  25809. repo: {
  25810. required: true,
  25811. type: "string"
  25812. }
  25813. },
  25814. url: "/repos/:owner/:repo/commits/:commit_sha/pulls"
  25815. },
  25816. listReleases: {
  25817. method: "GET",
  25818. params: {
  25819. owner: {
  25820. required: true,
  25821. type: "string"
  25822. },
  25823. page: {
  25824. type: "integer"
  25825. },
  25826. per_page: {
  25827. type: "integer"
  25828. },
  25829. repo: {
  25830. required: true,
  25831. type: "string"
  25832. }
  25833. },
  25834. url: "/repos/:owner/:repo/releases"
  25835. },
  25836. listStatusesForRef: {
  25837. method: "GET",
  25838. params: {
  25839. owner: {
  25840. required: true,
  25841. type: "string"
  25842. },
  25843. page: {
  25844. type: "integer"
  25845. },
  25846. per_page: {
  25847. type: "integer"
  25848. },
  25849. ref: {
  25850. required: true,
  25851. type: "string"
  25852. },
  25853. repo: {
  25854. required: true,
  25855. type: "string"
  25856. }
  25857. },
  25858. url: "/repos/:owner/:repo/commits/:ref/statuses"
  25859. },
  25860. listTags: {
  25861. method: "GET",
  25862. params: {
  25863. owner: {
  25864. required: true,
  25865. type: "string"
  25866. },
  25867. page: {
  25868. type: "integer"
  25869. },
  25870. per_page: {
  25871. type: "integer"
  25872. },
  25873. repo: {
  25874. required: true,
  25875. type: "string"
  25876. }
  25877. },
  25878. url: "/repos/:owner/:repo/tags"
  25879. },
  25880. listTeams: {
  25881. method: "GET",
  25882. params: {
  25883. owner: {
  25884. required: true,
  25885. type: "string"
  25886. },
  25887. page: {
  25888. type: "integer"
  25889. },
  25890. per_page: {
  25891. type: "integer"
  25892. },
  25893. repo: {
  25894. required: true,
  25895. type: "string"
  25896. }
  25897. },
  25898. url: "/repos/:owner/:repo/teams"
  25899. },
  25900. listTeamsWithAccessToProtectedBranch: {
  25901. deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",
  25902. method: "GET",
  25903. params: {
  25904. branch: {
  25905. required: true,
  25906. type: "string"
  25907. },
  25908. owner: {
  25909. required: true,
  25910. type: "string"
  25911. },
  25912. repo: {
  25913. required: true,
  25914. type: "string"
  25915. }
  25916. },
  25917. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  25918. },
  25919. listTopics: {
  25920. headers: {
  25921. accept: "application/vnd.github.mercy-preview+json"
  25922. },
  25923. method: "GET",
  25924. params: {
  25925. owner: {
  25926. required: true,
  25927. type: "string"
  25928. },
  25929. repo: {
  25930. required: true,
  25931. type: "string"
  25932. }
  25933. },
  25934. url: "/repos/:owner/:repo/topics"
  25935. },
  25936. listUsersWithAccessToProtectedBranch: {
  25937. deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",
  25938. method: "GET",
  25939. params: {
  25940. branch: {
  25941. required: true,
  25942. type: "string"
  25943. },
  25944. owner: {
  25945. required: true,
  25946. type: "string"
  25947. },
  25948. repo: {
  25949. required: true,
  25950. type: "string"
  25951. }
  25952. },
  25953. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  25954. },
  25955. merge: {
  25956. method: "POST",
  25957. params: {
  25958. base: {
  25959. required: true,
  25960. type: "string"
  25961. },
  25962. commit_message: {
  25963. type: "string"
  25964. },
  25965. head: {
  25966. required: true,
  25967. type: "string"
  25968. },
  25969. owner: {
  25970. required: true,
  25971. type: "string"
  25972. },
  25973. repo: {
  25974. required: true,
  25975. type: "string"
  25976. }
  25977. },
  25978. url: "/repos/:owner/:repo/merges"
  25979. },
  25980. pingHook: {
  25981. method: "POST",
  25982. params: {
  25983. hook_id: {
  25984. required: true,
  25985. type: "integer"
  25986. },
  25987. owner: {
  25988. required: true,
  25989. type: "string"
  25990. },
  25991. repo: {
  25992. required: true,
  25993. type: "string"
  25994. }
  25995. },
  25996. url: "/repos/:owner/:repo/hooks/:hook_id/pings"
  25997. },
  25998. removeBranchProtection: {
  25999. method: "DELETE",
  26000. params: {
  26001. branch: {
  26002. required: true,
  26003. type: "string"
  26004. },
  26005. owner: {
  26006. required: true,
  26007. type: "string"
  26008. },
  26009. repo: {
  26010. required: true,
  26011. type: "string"
  26012. }
  26013. },
  26014. url: "/repos/:owner/:repo/branches/:branch/protection"
  26015. },
  26016. removeCollaborator: {
  26017. method: "DELETE",
  26018. params: {
  26019. owner: {
  26020. required: true,
  26021. type: "string"
  26022. },
  26023. repo: {
  26024. required: true,
  26025. type: "string"
  26026. },
  26027. username: {
  26028. required: true,
  26029. type: "string"
  26030. }
  26031. },
  26032. url: "/repos/:owner/:repo/collaborators/:username"
  26033. },
  26034. removeDeployKey: {
  26035. method: "DELETE",
  26036. params: {
  26037. key_id: {
  26038. required: true,
  26039. type: "integer"
  26040. },
  26041. owner: {
  26042. required: true,
  26043. type: "string"
  26044. },
  26045. repo: {
  26046. required: true,
  26047. type: "string"
  26048. }
  26049. },
  26050. url: "/repos/:owner/:repo/keys/:key_id"
  26051. },
  26052. removeProtectedBranchAdminEnforcement: {
  26053. method: "DELETE",
  26054. params: {
  26055. branch: {
  26056. required: true,
  26057. type: "string"
  26058. },
  26059. owner: {
  26060. required: true,
  26061. type: "string"
  26062. },
  26063. repo: {
  26064. required: true,
  26065. type: "string"
  26066. }
  26067. },
  26068. url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
  26069. },
  26070. removeProtectedBranchAppRestrictions: {
  26071. method: "DELETE",
  26072. params: {
  26073. apps: {
  26074. mapTo: "data",
  26075. required: true,
  26076. type: "string[]"
  26077. },
  26078. branch: {
  26079. required: true,
  26080. type: "string"
  26081. },
  26082. owner: {
  26083. required: true,
  26084. type: "string"
  26085. },
  26086. repo: {
  26087. required: true,
  26088. type: "string"
  26089. }
  26090. },
  26091. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  26092. },
  26093. removeProtectedBranchPullRequestReviewEnforcement: {
  26094. method: "DELETE",
  26095. params: {
  26096. branch: {
  26097. required: true,
  26098. type: "string"
  26099. },
  26100. owner: {
  26101. required: true,
  26102. type: "string"
  26103. },
  26104. repo: {
  26105. required: true,
  26106. type: "string"
  26107. }
  26108. },
  26109. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  26110. },
  26111. removeProtectedBranchRequiredSignatures: {
  26112. headers: {
  26113. accept: "application/vnd.github.zzzax-preview+json"
  26114. },
  26115. method: "DELETE",
  26116. params: {
  26117. branch: {
  26118. required: true,
  26119. type: "string"
  26120. },
  26121. owner: {
  26122. required: true,
  26123. type: "string"
  26124. },
  26125. repo: {
  26126. required: true,
  26127. type: "string"
  26128. }
  26129. },
  26130. url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
  26131. },
  26132. removeProtectedBranchRequiredStatusChecks: {
  26133. method: "DELETE",
  26134. params: {
  26135. branch: {
  26136. required: true,
  26137. type: "string"
  26138. },
  26139. owner: {
  26140. required: true,
  26141. type: "string"
  26142. },
  26143. repo: {
  26144. required: true,
  26145. type: "string"
  26146. }
  26147. },
  26148. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  26149. },
  26150. removeProtectedBranchRequiredStatusChecksContexts: {
  26151. method: "DELETE",
  26152. params: {
  26153. branch: {
  26154. required: true,
  26155. type: "string"
  26156. },
  26157. contexts: {
  26158. mapTo: "data",
  26159. required: true,
  26160. type: "string[]"
  26161. },
  26162. owner: {
  26163. required: true,
  26164. type: "string"
  26165. },
  26166. repo: {
  26167. required: true,
  26168. type: "string"
  26169. }
  26170. },
  26171. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  26172. },
  26173. removeProtectedBranchRestrictions: {
  26174. method: "DELETE",
  26175. params: {
  26176. branch: {
  26177. required: true,
  26178. type: "string"
  26179. },
  26180. owner: {
  26181. required: true,
  26182. type: "string"
  26183. },
  26184. repo: {
  26185. required: true,
  26186. type: "string"
  26187. }
  26188. },
  26189. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
  26190. },
  26191. removeProtectedBranchTeamRestrictions: {
  26192. method: "DELETE",
  26193. params: {
  26194. branch: {
  26195. required: true,
  26196. type: "string"
  26197. },
  26198. owner: {
  26199. required: true,
  26200. type: "string"
  26201. },
  26202. repo: {
  26203. required: true,
  26204. type: "string"
  26205. },
  26206. teams: {
  26207. mapTo: "data",
  26208. required: true,
  26209. type: "string[]"
  26210. }
  26211. },
  26212. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  26213. },
  26214. removeProtectedBranchUserRestrictions: {
  26215. method: "DELETE",
  26216. params: {
  26217. branch: {
  26218. required: true,
  26219. type: "string"
  26220. },
  26221. owner: {
  26222. required: true,
  26223. type: "string"
  26224. },
  26225. repo: {
  26226. required: true,
  26227. type: "string"
  26228. },
  26229. users: {
  26230. mapTo: "data",
  26231. required: true,
  26232. type: "string[]"
  26233. }
  26234. },
  26235. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  26236. },
  26237. replaceProtectedBranchAppRestrictions: {
  26238. method: "PUT",
  26239. params: {
  26240. apps: {
  26241. mapTo: "data",
  26242. required: true,
  26243. type: "string[]"
  26244. },
  26245. branch: {
  26246. required: true,
  26247. type: "string"
  26248. },
  26249. owner: {
  26250. required: true,
  26251. type: "string"
  26252. },
  26253. repo: {
  26254. required: true,
  26255. type: "string"
  26256. }
  26257. },
  26258. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
  26259. },
  26260. replaceProtectedBranchRequiredStatusChecksContexts: {
  26261. method: "PUT",
  26262. params: {
  26263. branch: {
  26264. required: true,
  26265. type: "string"
  26266. },
  26267. contexts: {
  26268. mapTo: "data",
  26269. required: true,
  26270. type: "string[]"
  26271. },
  26272. owner: {
  26273. required: true,
  26274. type: "string"
  26275. },
  26276. repo: {
  26277. required: true,
  26278. type: "string"
  26279. }
  26280. },
  26281. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
  26282. },
  26283. replaceProtectedBranchTeamRestrictions: {
  26284. method: "PUT",
  26285. params: {
  26286. branch: {
  26287. required: true,
  26288. type: "string"
  26289. },
  26290. owner: {
  26291. required: true,
  26292. type: "string"
  26293. },
  26294. repo: {
  26295. required: true,
  26296. type: "string"
  26297. },
  26298. teams: {
  26299. mapTo: "data",
  26300. required: true,
  26301. type: "string[]"
  26302. }
  26303. },
  26304. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
  26305. },
  26306. replaceProtectedBranchUserRestrictions: {
  26307. method: "PUT",
  26308. params: {
  26309. branch: {
  26310. required: true,
  26311. type: "string"
  26312. },
  26313. owner: {
  26314. required: true,
  26315. type: "string"
  26316. },
  26317. repo: {
  26318. required: true,
  26319. type: "string"
  26320. },
  26321. users: {
  26322. mapTo: "data",
  26323. required: true,
  26324. type: "string[]"
  26325. }
  26326. },
  26327. url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
  26328. },
  26329. replaceTopics: {
  26330. headers: {
  26331. accept: "application/vnd.github.mercy-preview+json"
  26332. },
  26333. method: "PUT",
  26334. params: {
  26335. names: {
  26336. required: true,
  26337. type: "string[]"
  26338. },
  26339. owner: {
  26340. required: true,
  26341. type: "string"
  26342. },
  26343. repo: {
  26344. required: true,
  26345. type: "string"
  26346. }
  26347. },
  26348. url: "/repos/:owner/:repo/topics"
  26349. },
  26350. requestPageBuild: {
  26351. method: "POST",
  26352. params: {
  26353. owner: {
  26354. required: true,
  26355. type: "string"
  26356. },
  26357. repo: {
  26358. required: true,
  26359. type: "string"
  26360. }
  26361. },
  26362. url: "/repos/:owner/:repo/pages/builds"
  26363. },
  26364. retrieveCommunityProfileMetrics: {
  26365. method: "GET",
  26366. params: {
  26367. owner: {
  26368. required: true,
  26369. type: "string"
  26370. },
  26371. repo: {
  26372. required: true,
  26373. type: "string"
  26374. }
  26375. },
  26376. url: "/repos/:owner/:repo/community/profile"
  26377. },
  26378. testPushHook: {
  26379. method: "POST",
  26380. params: {
  26381. hook_id: {
  26382. required: true,
  26383. type: "integer"
  26384. },
  26385. owner: {
  26386. required: true,
  26387. type: "string"
  26388. },
  26389. repo: {
  26390. required: true,
  26391. type: "string"
  26392. }
  26393. },
  26394. url: "/repos/:owner/:repo/hooks/:hook_id/tests"
  26395. },
  26396. transfer: {
  26397. method: "POST",
  26398. params: {
  26399. new_owner: {
  26400. type: "string"
  26401. },
  26402. owner: {
  26403. required: true,
  26404. type: "string"
  26405. },
  26406. repo: {
  26407. required: true,
  26408. type: "string"
  26409. },
  26410. team_ids: {
  26411. type: "integer[]"
  26412. }
  26413. },
  26414. url: "/repos/:owner/:repo/transfer"
  26415. },
  26416. update: {
  26417. method: "PATCH",
  26418. params: {
  26419. allow_merge_commit: {
  26420. type: "boolean"
  26421. },
  26422. allow_rebase_merge: {
  26423. type: "boolean"
  26424. },
  26425. allow_squash_merge: {
  26426. type: "boolean"
  26427. },
  26428. archived: {
  26429. type: "boolean"
  26430. },
  26431. default_branch: {
  26432. type: "string"
  26433. },
  26434. delete_branch_on_merge: {
  26435. type: "boolean"
  26436. },
  26437. description: {
  26438. type: "string"
  26439. },
  26440. has_issues: {
  26441. type: "boolean"
  26442. },
  26443. has_projects: {
  26444. type: "boolean"
  26445. },
  26446. has_wiki: {
  26447. type: "boolean"
  26448. },
  26449. homepage: {
  26450. type: "string"
  26451. },
  26452. is_template: {
  26453. type: "boolean"
  26454. },
  26455. name: {
  26456. type: "string"
  26457. },
  26458. owner: {
  26459. required: true,
  26460. type: "string"
  26461. },
  26462. private: {
  26463. type: "boolean"
  26464. },
  26465. repo: {
  26466. required: true,
  26467. type: "string"
  26468. },
  26469. visibility: {
  26470. enum: ["public", "private", "visibility", "internal"],
  26471. type: "string"
  26472. }
  26473. },
  26474. url: "/repos/:owner/:repo"
  26475. },
  26476. updateBranchProtection: {
  26477. method: "PUT",
  26478. params: {
  26479. allow_deletions: {
  26480. type: "boolean"
  26481. },
  26482. allow_force_pushes: {
  26483. allowNull: true,
  26484. type: "boolean"
  26485. },
  26486. branch: {
  26487. required: true,
  26488. type: "string"
  26489. },
  26490. enforce_admins: {
  26491. allowNull: true,
  26492. required: true,
  26493. type: "boolean"
  26494. },
  26495. owner: {
  26496. required: true,
  26497. type: "string"
  26498. },
  26499. repo: {
  26500. required: true,
  26501. type: "string"
  26502. },
  26503. required_linear_history: {
  26504. type: "boolean"
  26505. },
  26506. required_pull_request_reviews: {
  26507. allowNull: true,
  26508. required: true,
  26509. type: "object"
  26510. },
  26511. "required_pull_request_reviews.dismiss_stale_reviews": {
  26512. type: "boolean"
  26513. },
  26514. "required_pull_request_reviews.dismissal_restrictions": {
  26515. type: "object"
  26516. },
  26517. "required_pull_request_reviews.dismissal_restrictions.teams": {
  26518. type: "string[]"
  26519. },
  26520. "required_pull_request_reviews.dismissal_restrictions.users": {
  26521. type: "string[]"
  26522. },
  26523. "required_pull_request_reviews.require_code_owner_reviews": {
  26524. type: "boolean"
  26525. },
  26526. "required_pull_request_reviews.required_approving_review_count": {
  26527. type: "integer"
  26528. },
  26529. required_status_checks: {
  26530. allowNull: true,
  26531. required: true,
  26532. type: "object"
  26533. },
  26534. "required_status_checks.contexts": {
  26535. required: true,
  26536. type: "string[]"
  26537. },
  26538. "required_status_checks.strict": {
  26539. required: true,
  26540. type: "boolean"
  26541. },
  26542. restrictions: {
  26543. allowNull: true,
  26544. required: true,
  26545. type: "object"
  26546. },
  26547. "restrictions.apps": {
  26548. type: "string[]"
  26549. },
  26550. "restrictions.teams": {
  26551. required: true,
  26552. type: "string[]"
  26553. },
  26554. "restrictions.users": {
  26555. required: true,
  26556. type: "string[]"
  26557. }
  26558. },
  26559. url: "/repos/:owner/:repo/branches/:branch/protection"
  26560. },
  26561. updateCommitComment: {
  26562. method: "PATCH",
  26563. params: {
  26564. body: {
  26565. required: true,
  26566. type: "string"
  26567. },
  26568. comment_id: {
  26569. required: true,
  26570. type: "integer"
  26571. },
  26572. owner: {
  26573. required: true,
  26574. type: "string"
  26575. },
  26576. repo: {
  26577. required: true,
  26578. type: "string"
  26579. }
  26580. },
  26581. url: "/repos/:owner/:repo/comments/:comment_id"
  26582. },
  26583. updateFile: {
  26584. deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
  26585. method: "PUT",
  26586. params: {
  26587. author: {
  26588. type: "object"
  26589. },
  26590. "author.email": {
  26591. required: true,
  26592. type: "string"
  26593. },
  26594. "author.name": {
  26595. required: true,
  26596. type: "string"
  26597. },
  26598. branch: {
  26599. type: "string"
  26600. },
  26601. committer: {
  26602. type: "object"
  26603. },
  26604. "committer.email": {
  26605. required: true,
  26606. type: "string"
  26607. },
  26608. "committer.name": {
  26609. required: true,
  26610. type: "string"
  26611. },
  26612. content: {
  26613. required: true,
  26614. type: "string"
  26615. },
  26616. message: {
  26617. required: true,
  26618. type: "string"
  26619. },
  26620. owner: {
  26621. required: true,
  26622. type: "string"
  26623. },
  26624. path: {
  26625. required: true,
  26626. type: "string"
  26627. },
  26628. repo: {
  26629. required: true,
  26630. type: "string"
  26631. },
  26632. sha: {
  26633. type: "string"
  26634. }
  26635. },
  26636. url: "/repos/:owner/:repo/contents/:path"
  26637. },
  26638. updateHook: {
  26639. method: "PATCH",
  26640. params: {
  26641. active: {
  26642. type: "boolean"
  26643. },
  26644. add_events: {
  26645. type: "string[]"
  26646. },
  26647. config: {
  26648. type: "object"
  26649. },
  26650. "config.content_type": {
  26651. type: "string"
  26652. },
  26653. "config.insecure_ssl": {
  26654. type: "string"
  26655. },
  26656. "config.secret": {
  26657. type: "string"
  26658. },
  26659. "config.url": {
  26660. required: true,
  26661. type: "string"
  26662. },
  26663. events: {
  26664. type: "string[]"
  26665. },
  26666. hook_id: {
  26667. required: true,
  26668. type: "integer"
  26669. },
  26670. owner: {
  26671. required: true,
  26672. type: "string"
  26673. },
  26674. remove_events: {
  26675. type: "string[]"
  26676. },
  26677. repo: {
  26678. required: true,
  26679. type: "string"
  26680. }
  26681. },
  26682. url: "/repos/:owner/:repo/hooks/:hook_id"
  26683. },
  26684. updateInformationAboutPagesSite: {
  26685. method: "PUT",
  26686. params: {
  26687. cname: {
  26688. type: "string"
  26689. },
  26690. owner: {
  26691. required: true,
  26692. type: "string"
  26693. },
  26694. repo: {
  26695. required: true,
  26696. type: "string"
  26697. },
  26698. source: {
  26699. enum: ['"gh-pages"', '"master"', '"master /docs"'],
  26700. type: "string"
  26701. }
  26702. },
  26703. url: "/repos/:owner/:repo/pages"
  26704. },
  26705. updateInvitation: {
  26706. method: "PATCH",
  26707. params: {
  26708. invitation_id: {
  26709. required: true,
  26710. type: "integer"
  26711. },
  26712. owner: {
  26713. required: true,
  26714. type: "string"
  26715. },
  26716. permissions: {
  26717. enum: ["read", "write", "admin"],
  26718. type: "string"
  26719. },
  26720. repo: {
  26721. required: true,
  26722. type: "string"
  26723. }
  26724. },
  26725. url: "/repos/:owner/:repo/invitations/:invitation_id"
  26726. },
  26727. updateProtectedBranchPullRequestReviewEnforcement: {
  26728. method: "PATCH",
  26729. params: {
  26730. branch: {
  26731. required: true,
  26732. type: "string"
  26733. },
  26734. dismiss_stale_reviews: {
  26735. type: "boolean"
  26736. },
  26737. dismissal_restrictions: {
  26738. type: "object"
  26739. },
  26740. "dismissal_restrictions.teams": {
  26741. type: "string[]"
  26742. },
  26743. "dismissal_restrictions.users": {
  26744. type: "string[]"
  26745. },
  26746. owner: {
  26747. required: true,
  26748. type: "string"
  26749. },
  26750. repo: {
  26751. required: true,
  26752. type: "string"
  26753. },
  26754. require_code_owner_reviews: {
  26755. type: "boolean"
  26756. },
  26757. required_approving_review_count: {
  26758. type: "integer"
  26759. }
  26760. },
  26761. url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
  26762. },
  26763. updateProtectedBranchRequiredStatusChecks: {
  26764. method: "PATCH",
  26765. params: {
  26766. branch: {
  26767. required: true,
  26768. type: "string"
  26769. },
  26770. contexts: {
  26771. type: "string[]"
  26772. },
  26773. owner: {
  26774. required: true,
  26775. type: "string"
  26776. },
  26777. repo: {
  26778. required: true,
  26779. type: "string"
  26780. },
  26781. strict: {
  26782. type: "boolean"
  26783. }
  26784. },
  26785. url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
  26786. },
  26787. updateRelease: {
  26788. method: "PATCH",
  26789. params: {
  26790. body: {
  26791. type: "string"
  26792. },
  26793. draft: {
  26794. type: "boolean"
  26795. },
  26796. name: {
  26797. type: "string"
  26798. },
  26799. owner: {
  26800. required: true,
  26801. type: "string"
  26802. },
  26803. prerelease: {
  26804. type: "boolean"
  26805. },
  26806. release_id: {
  26807. required: true,
  26808. type: "integer"
  26809. },
  26810. repo: {
  26811. required: true,
  26812. type: "string"
  26813. },
  26814. tag_name: {
  26815. type: "string"
  26816. },
  26817. target_commitish: {
  26818. type: "string"
  26819. }
  26820. },
  26821. url: "/repos/:owner/:repo/releases/:release_id"
  26822. },
  26823. updateReleaseAsset: {
  26824. method: "PATCH",
  26825. params: {
  26826. asset_id: {
  26827. required: true,
  26828. type: "integer"
  26829. },
  26830. label: {
  26831. type: "string"
  26832. },
  26833. name: {
  26834. type: "string"
  26835. },
  26836. owner: {
  26837. required: true,
  26838. type: "string"
  26839. },
  26840. repo: {
  26841. required: true,
  26842. type: "string"
  26843. }
  26844. },
  26845. url: "/repos/:owner/:repo/releases/assets/:asset_id"
  26846. },
  26847. uploadReleaseAsset: {
  26848. method: "POST",
  26849. params: {
  26850. data: {
  26851. mapTo: "data",
  26852. required: true,
  26853. type: "string | object"
  26854. },
  26855. file: {
  26856. alias: "data",
  26857. deprecated: true,
  26858. type: "string | object"
  26859. },
  26860. headers: {
  26861. required: true,
  26862. type: "object"
  26863. },
  26864. "headers.content-length": {
  26865. required: true,
  26866. type: "integer"
  26867. },
  26868. "headers.content-type": {
  26869. required: true,
  26870. type: "string"
  26871. },
  26872. label: {
  26873. type: "string"
  26874. },
  26875. name: {
  26876. required: true,
  26877. type: "string"
  26878. },
  26879. url: {
  26880. required: true,
  26881. type: "string"
  26882. }
  26883. },
  26884. url: ":url"
  26885. }
  26886. },
  26887. search: {
  26888. code: {
  26889. method: "GET",
  26890. params: {
  26891. order: {
  26892. enum: ["desc", "asc"],
  26893. type: "string"
  26894. },
  26895. page: {
  26896. type: "integer"
  26897. },
  26898. per_page: {
  26899. type: "integer"
  26900. },
  26901. q: {
  26902. required: true,
  26903. type: "string"
  26904. },
  26905. sort: {
  26906. enum: ["indexed"],
  26907. type: "string"
  26908. }
  26909. },
  26910. url: "/search/code"
  26911. },
  26912. commits: {
  26913. headers: {
  26914. accept: "application/vnd.github.cloak-preview+json"
  26915. },
  26916. method: "GET",
  26917. params: {
  26918. order: {
  26919. enum: ["desc", "asc"],
  26920. type: "string"
  26921. },
  26922. page: {
  26923. type: "integer"
  26924. },
  26925. per_page: {
  26926. type: "integer"
  26927. },
  26928. q: {
  26929. required: true,
  26930. type: "string"
  26931. },
  26932. sort: {
  26933. enum: ["author-date", "committer-date"],
  26934. type: "string"
  26935. }
  26936. },
  26937. url: "/search/commits"
  26938. },
  26939. issues: {
  26940. deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",
  26941. method: "GET",
  26942. params: {
  26943. order: {
  26944. enum: ["desc", "asc"],
  26945. type: "string"
  26946. },
  26947. page: {
  26948. type: "integer"
  26949. },
  26950. per_page: {
  26951. type: "integer"
  26952. },
  26953. q: {
  26954. required: true,
  26955. type: "string"
  26956. },
  26957. sort: {
  26958. enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
  26959. type: "string"
  26960. }
  26961. },
  26962. url: "/search/issues"
  26963. },
  26964. issuesAndPullRequests: {
  26965. method: "GET",
  26966. params: {
  26967. order: {
  26968. enum: ["desc", "asc"],
  26969. type: "string"
  26970. },
  26971. page: {
  26972. type: "integer"
  26973. },
  26974. per_page: {
  26975. type: "integer"
  26976. },
  26977. q: {
  26978. required: true,
  26979. type: "string"
  26980. },
  26981. sort: {
  26982. enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
  26983. type: "string"
  26984. }
  26985. },
  26986. url: "/search/issues"
  26987. },
  26988. labels: {
  26989. method: "GET",
  26990. params: {
  26991. order: {
  26992. enum: ["desc", "asc"],
  26993. type: "string"
  26994. },
  26995. q: {
  26996. required: true,
  26997. type: "string"
  26998. },
  26999. repository_id: {
  27000. required: true,
  27001. type: "integer"
  27002. },
  27003. sort: {
  27004. enum: ["created", "updated"],
  27005. type: "string"
  27006. }
  27007. },
  27008. url: "/search/labels"
  27009. },
  27010. repos: {
  27011. method: "GET",
  27012. params: {
  27013. order: {
  27014. enum: ["desc", "asc"],
  27015. type: "string"
  27016. },
  27017. page: {
  27018. type: "integer"
  27019. },
  27020. per_page: {
  27021. type: "integer"
  27022. },
  27023. q: {
  27024. required: true,
  27025. type: "string"
  27026. },
  27027. sort: {
  27028. enum: ["stars", "forks", "help-wanted-issues", "updated"],
  27029. type: "string"
  27030. }
  27031. },
  27032. url: "/search/repositories"
  27033. },
  27034. topics: {
  27035. method: "GET",
  27036. params: {
  27037. q: {
  27038. required: true,
  27039. type: "string"
  27040. }
  27041. },
  27042. url: "/search/topics"
  27043. },
  27044. users: {
  27045. method: "GET",
  27046. params: {
  27047. order: {
  27048. enum: ["desc", "asc"],
  27049. type: "string"
  27050. },
  27051. page: {
  27052. type: "integer"
  27053. },
  27054. per_page: {
  27055. type: "integer"
  27056. },
  27057. q: {
  27058. required: true,
  27059. type: "string"
  27060. },
  27061. sort: {
  27062. enum: ["followers", "repositories", "joined"],
  27063. type: "string"
  27064. }
  27065. },
  27066. url: "/search/users"
  27067. }
  27068. },
  27069. teams: {
  27070. addMember: {
  27071. deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",
  27072. method: "PUT",
  27073. params: {
  27074. team_id: {
  27075. required: true,
  27076. type: "integer"
  27077. },
  27078. username: {
  27079. required: true,
  27080. type: "string"
  27081. }
  27082. },
  27083. url: "/teams/:team_id/members/:username"
  27084. },
  27085. addMemberLegacy: {
  27086. deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",
  27087. method: "PUT",
  27088. params: {
  27089. team_id: {
  27090. required: true,
  27091. type: "integer"
  27092. },
  27093. username: {
  27094. required: true,
  27095. type: "string"
  27096. }
  27097. },
  27098. url: "/teams/:team_id/members/:username"
  27099. },
  27100. addOrUpdateMembership: {
  27101. deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",
  27102. method: "PUT",
  27103. params: {
  27104. role: {
  27105. enum: ["member", "maintainer"],
  27106. type: "string"
  27107. },
  27108. team_id: {
  27109. required: true,
  27110. type: "integer"
  27111. },
  27112. username: {
  27113. required: true,
  27114. type: "string"
  27115. }
  27116. },
  27117. url: "/teams/:team_id/memberships/:username"
  27118. },
  27119. addOrUpdateMembershipInOrg: {
  27120. method: "PUT",
  27121. params: {
  27122. org: {
  27123. required: true,
  27124. type: "string"
  27125. },
  27126. role: {
  27127. enum: ["member", "maintainer"],
  27128. type: "string"
  27129. },
  27130. team_slug: {
  27131. required: true,
  27132. type: "string"
  27133. },
  27134. username: {
  27135. required: true,
  27136. type: "string"
  27137. }
  27138. },
  27139. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  27140. },
  27141. addOrUpdateMembershipLegacy: {
  27142. deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",
  27143. method: "PUT",
  27144. params: {
  27145. role: {
  27146. enum: ["member", "maintainer"],
  27147. type: "string"
  27148. },
  27149. team_id: {
  27150. required: true,
  27151. type: "integer"
  27152. },
  27153. username: {
  27154. required: true,
  27155. type: "string"
  27156. }
  27157. },
  27158. url: "/teams/:team_id/memberships/:username"
  27159. },
  27160. addOrUpdateProject: {
  27161. deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",
  27162. headers: {
  27163. accept: "application/vnd.github.inertia-preview+json"
  27164. },
  27165. method: "PUT",
  27166. params: {
  27167. permission: {
  27168. enum: ["read", "write", "admin"],
  27169. type: "string"
  27170. },
  27171. project_id: {
  27172. required: true,
  27173. type: "integer"
  27174. },
  27175. team_id: {
  27176. required: true,
  27177. type: "integer"
  27178. }
  27179. },
  27180. url: "/teams/:team_id/projects/:project_id"
  27181. },
  27182. addOrUpdateProjectInOrg: {
  27183. headers: {
  27184. accept: "application/vnd.github.inertia-preview+json"
  27185. },
  27186. method: "PUT",
  27187. params: {
  27188. org: {
  27189. required: true,
  27190. type: "string"
  27191. },
  27192. permission: {
  27193. enum: ["read", "write", "admin"],
  27194. type: "string"
  27195. },
  27196. project_id: {
  27197. required: true,
  27198. type: "integer"
  27199. },
  27200. team_slug: {
  27201. required: true,
  27202. type: "string"
  27203. }
  27204. },
  27205. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  27206. },
  27207. addOrUpdateProjectLegacy: {
  27208. deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",
  27209. headers: {
  27210. accept: "application/vnd.github.inertia-preview+json"
  27211. },
  27212. method: "PUT",
  27213. params: {
  27214. permission: {
  27215. enum: ["read", "write", "admin"],
  27216. type: "string"
  27217. },
  27218. project_id: {
  27219. required: true,
  27220. type: "integer"
  27221. },
  27222. team_id: {
  27223. required: true,
  27224. type: "integer"
  27225. }
  27226. },
  27227. url: "/teams/:team_id/projects/:project_id"
  27228. },
  27229. addOrUpdateRepo: {
  27230. deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",
  27231. method: "PUT",
  27232. params: {
  27233. owner: {
  27234. required: true,
  27235. type: "string"
  27236. },
  27237. permission: {
  27238. enum: ["pull", "push", "admin"],
  27239. type: "string"
  27240. },
  27241. repo: {
  27242. required: true,
  27243. type: "string"
  27244. },
  27245. team_id: {
  27246. required: true,
  27247. type: "integer"
  27248. }
  27249. },
  27250. url: "/teams/:team_id/repos/:owner/:repo"
  27251. },
  27252. addOrUpdateRepoInOrg: {
  27253. method: "PUT",
  27254. params: {
  27255. org: {
  27256. required: true,
  27257. type: "string"
  27258. },
  27259. owner: {
  27260. required: true,
  27261. type: "string"
  27262. },
  27263. permission: {
  27264. enum: ["pull", "push", "admin"],
  27265. type: "string"
  27266. },
  27267. repo: {
  27268. required: true,
  27269. type: "string"
  27270. },
  27271. team_slug: {
  27272. required: true,
  27273. type: "string"
  27274. }
  27275. },
  27276. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  27277. },
  27278. addOrUpdateRepoLegacy: {
  27279. deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",
  27280. method: "PUT",
  27281. params: {
  27282. owner: {
  27283. required: true,
  27284. type: "string"
  27285. },
  27286. permission: {
  27287. enum: ["pull", "push", "admin"],
  27288. type: "string"
  27289. },
  27290. repo: {
  27291. required: true,
  27292. type: "string"
  27293. },
  27294. team_id: {
  27295. required: true,
  27296. type: "integer"
  27297. }
  27298. },
  27299. url: "/teams/:team_id/repos/:owner/:repo"
  27300. },
  27301. checkManagesRepo: {
  27302. deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",
  27303. method: "GET",
  27304. params: {
  27305. owner: {
  27306. required: true,
  27307. type: "string"
  27308. },
  27309. repo: {
  27310. required: true,
  27311. type: "string"
  27312. },
  27313. team_id: {
  27314. required: true,
  27315. type: "integer"
  27316. }
  27317. },
  27318. url: "/teams/:team_id/repos/:owner/:repo"
  27319. },
  27320. checkManagesRepoInOrg: {
  27321. method: "GET",
  27322. params: {
  27323. org: {
  27324. required: true,
  27325. type: "string"
  27326. },
  27327. owner: {
  27328. required: true,
  27329. type: "string"
  27330. },
  27331. repo: {
  27332. required: true,
  27333. type: "string"
  27334. },
  27335. team_slug: {
  27336. required: true,
  27337. type: "string"
  27338. }
  27339. },
  27340. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  27341. },
  27342. checkManagesRepoLegacy: {
  27343. deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",
  27344. method: "GET",
  27345. params: {
  27346. owner: {
  27347. required: true,
  27348. type: "string"
  27349. },
  27350. repo: {
  27351. required: true,
  27352. type: "string"
  27353. },
  27354. team_id: {
  27355. required: true,
  27356. type: "integer"
  27357. }
  27358. },
  27359. url: "/teams/:team_id/repos/:owner/:repo"
  27360. },
  27361. create: {
  27362. method: "POST",
  27363. params: {
  27364. description: {
  27365. type: "string"
  27366. },
  27367. maintainers: {
  27368. type: "string[]"
  27369. },
  27370. name: {
  27371. required: true,
  27372. type: "string"
  27373. },
  27374. org: {
  27375. required: true,
  27376. type: "string"
  27377. },
  27378. parent_team_id: {
  27379. type: "integer"
  27380. },
  27381. permission: {
  27382. enum: ["pull", "push", "admin"],
  27383. type: "string"
  27384. },
  27385. privacy: {
  27386. enum: ["secret", "closed"],
  27387. type: "string"
  27388. },
  27389. repo_names: {
  27390. type: "string[]"
  27391. }
  27392. },
  27393. url: "/orgs/:org/teams"
  27394. },
  27395. createDiscussion: {
  27396. deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",
  27397. method: "POST",
  27398. params: {
  27399. body: {
  27400. required: true,
  27401. type: "string"
  27402. },
  27403. private: {
  27404. type: "boolean"
  27405. },
  27406. team_id: {
  27407. required: true,
  27408. type: "integer"
  27409. },
  27410. title: {
  27411. required: true,
  27412. type: "string"
  27413. }
  27414. },
  27415. url: "/teams/:team_id/discussions"
  27416. },
  27417. createDiscussionComment: {
  27418. deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",
  27419. method: "POST",
  27420. params: {
  27421. body: {
  27422. required: true,
  27423. type: "string"
  27424. },
  27425. discussion_number: {
  27426. required: true,
  27427. type: "integer"
  27428. },
  27429. team_id: {
  27430. required: true,
  27431. type: "integer"
  27432. }
  27433. },
  27434. url: "/teams/:team_id/discussions/:discussion_number/comments"
  27435. },
  27436. createDiscussionCommentInOrg: {
  27437. method: "POST",
  27438. params: {
  27439. body: {
  27440. required: true,
  27441. type: "string"
  27442. },
  27443. discussion_number: {
  27444. required: true,
  27445. type: "integer"
  27446. },
  27447. org: {
  27448. required: true,
  27449. type: "string"
  27450. },
  27451. team_slug: {
  27452. required: true,
  27453. type: "string"
  27454. }
  27455. },
  27456. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
  27457. },
  27458. createDiscussionCommentLegacy: {
  27459. deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",
  27460. method: "POST",
  27461. params: {
  27462. body: {
  27463. required: true,
  27464. type: "string"
  27465. },
  27466. discussion_number: {
  27467. required: true,
  27468. type: "integer"
  27469. },
  27470. team_id: {
  27471. required: true,
  27472. type: "integer"
  27473. }
  27474. },
  27475. url: "/teams/:team_id/discussions/:discussion_number/comments"
  27476. },
  27477. createDiscussionInOrg: {
  27478. method: "POST",
  27479. params: {
  27480. body: {
  27481. required: true,
  27482. type: "string"
  27483. },
  27484. org: {
  27485. required: true,
  27486. type: "string"
  27487. },
  27488. private: {
  27489. type: "boolean"
  27490. },
  27491. team_slug: {
  27492. required: true,
  27493. type: "string"
  27494. },
  27495. title: {
  27496. required: true,
  27497. type: "string"
  27498. }
  27499. },
  27500. url: "/orgs/:org/teams/:team_slug/discussions"
  27501. },
  27502. createDiscussionLegacy: {
  27503. deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",
  27504. method: "POST",
  27505. params: {
  27506. body: {
  27507. required: true,
  27508. type: "string"
  27509. },
  27510. private: {
  27511. type: "boolean"
  27512. },
  27513. team_id: {
  27514. required: true,
  27515. type: "integer"
  27516. },
  27517. title: {
  27518. required: true,
  27519. type: "string"
  27520. }
  27521. },
  27522. url: "/teams/:team_id/discussions"
  27523. },
  27524. delete: {
  27525. deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",
  27526. method: "DELETE",
  27527. params: {
  27528. team_id: {
  27529. required: true,
  27530. type: "integer"
  27531. }
  27532. },
  27533. url: "/teams/:team_id"
  27534. },
  27535. deleteDiscussion: {
  27536. deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",
  27537. method: "DELETE",
  27538. params: {
  27539. discussion_number: {
  27540. required: true,
  27541. type: "integer"
  27542. },
  27543. team_id: {
  27544. required: true,
  27545. type: "integer"
  27546. }
  27547. },
  27548. url: "/teams/:team_id/discussions/:discussion_number"
  27549. },
  27550. deleteDiscussionComment: {
  27551. deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",
  27552. method: "DELETE",
  27553. params: {
  27554. comment_number: {
  27555. required: true,
  27556. type: "integer"
  27557. },
  27558. discussion_number: {
  27559. required: true,
  27560. type: "integer"
  27561. },
  27562. team_id: {
  27563. required: true,
  27564. type: "integer"
  27565. }
  27566. },
  27567. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  27568. },
  27569. deleteDiscussionCommentInOrg: {
  27570. method: "DELETE",
  27571. params: {
  27572. comment_number: {
  27573. required: true,
  27574. type: "integer"
  27575. },
  27576. discussion_number: {
  27577. required: true,
  27578. type: "integer"
  27579. },
  27580. org: {
  27581. required: true,
  27582. type: "string"
  27583. },
  27584. team_slug: {
  27585. required: true,
  27586. type: "string"
  27587. }
  27588. },
  27589. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  27590. },
  27591. deleteDiscussionCommentLegacy: {
  27592. deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",
  27593. method: "DELETE",
  27594. params: {
  27595. comment_number: {
  27596. required: true,
  27597. type: "integer"
  27598. },
  27599. discussion_number: {
  27600. required: true,
  27601. type: "integer"
  27602. },
  27603. team_id: {
  27604. required: true,
  27605. type: "integer"
  27606. }
  27607. },
  27608. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  27609. },
  27610. deleteDiscussionInOrg: {
  27611. method: "DELETE",
  27612. params: {
  27613. discussion_number: {
  27614. required: true,
  27615. type: "integer"
  27616. },
  27617. org: {
  27618. required: true,
  27619. type: "string"
  27620. },
  27621. team_slug: {
  27622. required: true,
  27623. type: "string"
  27624. }
  27625. },
  27626. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  27627. },
  27628. deleteDiscussionLegacy: {
  27629. deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",
  27630. method: "DELETE",
  27631. params: {
  27632. discussion_number: {
  27633. required: true,
  27634. type: "integer"
  27635. },
  27636. team_id: {
  27637. required: true,
  27638. type: "integer"
  27639. }
  27640. },
  27641. url: "/teams/:team_id/discussions/:discussion_number"
  27642. },
  27643. deleteInOrg: {
  27644. method: "DELETE",
  27645. params: {
  27646. org: {
  27647. required: true,
  27648. type: "string"
  27649. },
  27650. team_slug: {
  27651. required: true,
  27652. type: "string"
  27653. }
  27654. },
  27655. url: "/orgs/:org/teams/:team_slug"
  27656. },
  27657. deleteLegacy: {
  27658. deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",
  27659. method: "DELETE",
  27660. params: {
  27661. team_id: {
  27662. required: true,
  27663. type: "integer"
  27664. }
  27665. },
  27666. url: "/teams/:team_id"
  27667. },
  27668. get: {
  27669. deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",
  27670. method: "GET",
  27671. params: {
  27672. team_id: {
  27673. required: true,
  27674. type: "integer"
  27675. }
  27676. },
  27677. url: "/teams/:team_id"
  27678. },
  27679. getByName: {
  27680. method: "GET",
  27681. params: {
  27682. org: {
  27683. required: true,
  27684. type: "string"
  27685. },
  27686. team_slug: {
  27687. required: true,
  27688. type: "string"
  27689. }
  27690. },
  27691. url: "/orgs/:org/teams/:team_slug"
  27692. },
  27693. getDiscussion: {
  27694. deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",
  27695. method: "GET",
  27696. params: {
  27697. discussion_number: {
  27698. required: true,
  27699. type: "integer"
  27700. },
  27701. team_id: {
  27702. required: true,
  27703. type: "integer"
  27704. }
  27705. },
  27706. url: "/teams/:team_id/discussions/:discussion_number"
  27707. },
  27708. getDiscussionComment: {
  27709. deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",
  27710. method: "GET",
  27711. params: {
  27712. comment_number: {
  27713. required: true,
  27714. type: "integer"
  27715. },
  27716. discussion_number: {
  27717. required: true,
  27718. type: "integer"
  27719. },
  27720. team_id: {
  27721. required: true,
  27722. type: "integer"
  27723. }
  27724. },
  27725. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  27726. },
  27727. getDiscussionCommentInOrg: {
  27728. method: "GET",
  27729. params: {
  27730. comment_number: {
  27731. required: true,
  27732. type: "integer"
  27733. },
  27734. discussion_number: {
  27735. required: true,
  27736. type: "integer"
  27737. },
  27738. org: {
  27739. required: true,
  27740. type: "string"
  27741. },
  27742. team_slug: {
  27743. required: true,
  27744. type: "string"
  27745. }
  27746. },
  27747. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  27748. },
  27749. getDiscussionCommentLegacy: {
  27750. deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",
  27751. method: "GET",
  27752. params: {
  27753. comment_number: {
  27754. required: true,
  27755. type: "integer"
  27756. },
  27757. discussion_number: {
  27758. required: true,
  27759. type: "integer"
  27760. },
  27761. team_id: {
  27762. required: true,
  27763. type: "integer"
  27764. }
  27765. },
  27766. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  27767. },
  27768. getDiscussionInOrg: {
  27769. method: "GET",
  27770. params: {
  27771. discussion_number: {
  27772. required: true,
  27773. type: "integer"
  27774. },
  27775. org: {
  27776. required: true,
  27777. type: "string"
  27778. },
  27779. team_slug: {
  27780. required: true,
  27781. type: "string"
  27782. }
  27783. },
  27784. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  27785. },
  27786. getDiscussionLegacy: {
  27787. deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",
  27788. method: "GET",
  27789. params: {
  27790. discussion_number: {
  27791. required: true,
  27792. type: "integer"
  27793. },
  27794. team_id: {
  27795. required: true,
  27796. type: "integer"
  27797. }
  27798. },
  27799. url: "/teams/:team_id/discussions/:discussion_number"
  27800. },
  27801. getLegacy: {
  27802. deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",
  27803. method: "GET",
  27804. params: {
  27805. team_id: {
  27806. required: true,
  27807. type: "integer"
  27808. }
  27809. },
  27810. url: "/teams/:team_id"
  27811. },
  27812. getMember: {
  27813. deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",
  27814. method: "GET",
  27815. params: {
  27816. team_id: {
  27817. required: true,
  27818. type: "integer"
  27819. },
  27820. username: {
  27821. required: true,
  27822. type: "string"
  27823. }
  27824. },
  27825. url: "/teams/:team_id/members/:username"
  27826. },
  27827. getMemberLegacy: {
  27828. deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",
  27829. method: "GET",
  27830. params: {
  27831. team_id: {
  27832. required: true,
  27833. type: "integer"
  27834. },
  27835. username: {
  27836. required: true,
  27837. type: "string"
  27838. }
  27839. },
  27840. url: "/teams/:team_id/members/:username"
  27841. },
  27842. getMembership: {
  27843. deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",
  27844. method: "GET",
  27845. params: {
  27846. team_id: {
  27847. required: true,
  27848. type: "integer"
  27849. },
  27850. username: {
  27851. required: true,
  27852. type: "string"
  27853. }
  27854. },
  27855. url: "/teams/:team_id/memberships/:username"
  27856. },
  27857. getMembershipInOrg: {
  27858. method: "GET",
  27859. params: {
  27860. org: {
  27861. required: true,
  27862. type: "string"
  27863. },
  27864. team_slug: {
  27865. required: true,
  27866. type: "string"
  27867. },
  27868. username: {
  27869. required: true,
  27870. type: "string"
  27871. }
  27872. },
  27873. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  27874. },
  27875. getMembershipLegacy: {
  27876. deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",
  27877. method: "GET",
  27878. params: {
  27879. team_id: {
  27880. required: true,
  27881. type: "integer"
  27882. },
  27883. username: {
  27884. required: true,
  27885. type: "string"
  27886. }
  27887. },
  27888. url: "/teams/:team_id/memberships/:username"
  27889. },
  27890. list: {
  27891. method: "GET",
  27892. params: {
  27893. org: {
  27894. required: true,
  27895. type: "string"
  27896. },
  27897. page: {
  27898. type: "integer"
  27899. },
  27900. per_page: {
  27901. type: "integer"
  27902. }
  27903. },
  27904. url: "/orgs/:org/teams"
  27905. },
  27906. listChild: {
  27907. deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",
  27908. method: "GET",
  27909. params: {
  27910. page: {
  27911. type: "integer"
  27912. },
  27913. per_page: {
  27914. type: "integer"
  27915. },
  27916. team_id: {
  27917. required: true,
  27918. type: "integer"
  27919. }
  27920. },
  27921. url: "/teams/:team_id/teams"
  27922. },
  27923. listChildInOrg: {
  27924. method: "GET",
  27925. params: {
  27926. org: {
  27927. required: true,
  27928. type: "string"
  27929. },
  27930. page: {
  27931. type: "integer"
  27932. },
  27933. per_page: {
  27934. type: "integer"
  27935. },
  27936. team_slug: {
  27937. required: true,
  27938. type: "string"
  27939. }
  27940. },
  27941. url: "/orgs/:org/teams/:team_slug/teams"
  27942. },
  27943. listChildLegacy: {
  27944. deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",
  27945. method: "GET",
  27946. params: {
  27947. page: {
  27948. type: "integer"
  27949. },
  27950. per_page: {
  27951. type: "integer"
  27952. },
  27953. team_id: {
  27954. required: true,
  27955. type: "integer"
  27956. }
  27957. },
  27958. url: "/teams/:team_id/teams"
  27959. },
  27960. listDiscussionComments: {
  27961. deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",
  27962. method: "GET",
  27963. params: {
  27964. direction: {
  27965. enum: ["asc", "desc"],
  27966. type: "string"
  27967. },
  27968. discussion_number: {
  27969. required: true,
  27970. type: "integer"
  27971. },
  27972. page: {
  27973. type: "integer"
  27974. },
  27975. per_page: {
  27976. type: "integer"
  27977. },
  27978. team_id: {
  27979. required: true,
  27980. type: "integer"
  27981. }
  27982. },
  27983. url: "/teams/:team_id/discussions/:discussion_number/comments"
  27984. },
  27985. listDiscussionCommentsInOrg: {
  27986. method: "GET",
  27987. params: {
  27988. direction: {
  27989. enum: ["asc", "desc"],
  27990. type: "string"
  27991. },
  27992. discussion_number: {
  27993. required: true,
  27994. type: "integer"
  27995. },
  27996. org: {
  27997. required: true,
  27998. type: "string"
  27999. },
  28000. page: {
  28001. type: "integer"
  28002. },
  28003. per_page: {
  28004. type: "integer"
  28005. },
  28006. team_slug: {
  28007. required: true,
  28008. type: "string"
  28009. }
  28010. },
  28011. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
  28012. },
  28013. listDiscussionCommentsLegacy: {
  28014. deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",
  28015. method: "GET",
  28016. params: {
  28017. direction: {
  28018. enum: ["asc", "desc"],
  28019. type: "string"
  28020. },
  28021. discussion_number: {
  28022. required: true,
  28023. type: "integer"
  28024. },
  28025. page: {
  28026. type: "integer"
  28027. },
  28028. per_page: {
  28029. type: "integer"
  28030. },
  28031. team_id: {
  28032. required: true,
  28033. type: "integer"
  28034. }
  28035. },
  28036. url: "/teams/:team_id/discussions/:discussion_number/comments"
  28037. },
  28038. listDiscussions: {
  28039. deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",
  28040. method: "GET",
  28041. params: {
  28042. direction: {
  28043. enum: ["asc", "desc"],
  28044. type: "string"
  28045. },
  28046. page: {
  28047. type: "integer"
  28048. },
  28049. per_page: {
  28050. type: "integer"
  28051. },
  28052. team_id: {
  28053. required: true,
  28054. type: "integer"
  28055. }
  28056. },
  28057. url: "/teams/:team_id/discussions"
  28058. },
  28059. listDiscussionsInOrg: {
  28060. method: "GET",
  28061. params: {
  28062. direction: {
  28063. enum: ["asc", "desc"],
  28064. type: "string"
  28065. },
  28066. org: {
  28067. required: true,
  28068. type: "string"
  28069. },
  28070. page: {
  28071. type: "integer"
  28072. },
  28073. per_page: {
  28074. type: "integer"
  28075. },
  28076. team_slug: {
  28077. required: true,
  28078. type: "string"
  28079. }
  28080. },
  28081. url: "/orgs/:org/teams/:team_slug/discussions"
  28082. },
  28083. listDiscussionsLegacy: {
  28084. deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",
  28085. method: "GET",
  28086. params: {
  28087. direction: {
  28088. enum: ["asc", "desc"],
  28089. type: "string"
  28090. },
  28091. page: {
  28092. type: "integer"
  28093. },
  28094. per_page: {
  28095. type: "integer"
  28096. },
  28097. team_id: {
  28098. required: true,
  28099. type: "integer"
  28100. }
  28101. },
  28102. url: "/teams/:team_id/discussions"
  28103. },
  28104. listForAuthenticatedUser: {
  28105. method: "GET",
  28106. params: {
  28107. page: {
  28108. type: "integer"
  28109. },
  28110. per_page: {
  28111. type: "integer"
  28112. }
  28113. },
  28114. url: "/user/teams"
  28115. },
  28116. listMembers: {
  28117. deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",
  28118. method: "GET",
  28119. params: {
  28120. page: {
  28121. type: "integer"
  28122. },
  28123. per_page: {
  28124. type: "integer"
  28125. },
  28126. role: {
  28127. enum: ["member", "maintainer", "all"],
  28128. type: "string"
  28129. },
  28130. team_id: {
  28131. required: true,
  28132. type: "integer"
  28133. }
  28134. },
  28135. url: "/teams/:team_id/members"
  28136. },
  28137. listMembersInOrg: {
  28138. method: "GET",
  28139. params: {
  28140. org: {
  28141. required: true,
  28142. type: "string"
  28143. },
  28144. page: {
  28145. type: "integer"
  28146. },
  28147. per_page: {
  28148. type: "integer"
  28149. },
  28150. role: {
  28151. enum: ["member", "maintainer", "all"],
  28152. type: "string"
  28153. },
  28154. team_slug: {
  28155. required: true,
  28156. type: "string"
  28157. }
  28158. },
  28159. url: "/orgs/:org/teams/:team_slug/members"
  28160. },
  28161. listMembersLegacy: {
  28162. deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",
  28163. method: "GET",
  28164. params: {
  28165. page: {
  28166. type: "integer"
  28167. },
  28168. per_page: {
  28169. type: "integer"
  28170. },
  28171. role: {
  28172. enum: ["member", "maintainer", "all"],
  28173. type: "string"
  28174. },
  28175. team_id: {
  28176. required: true,
  28177. type: "integer"
  28178. }
  28179. },
  28180. url: "/teams/:team_id/members"
  28181. },
  28182. listPendingInvitations: {
  28183. deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",
  28184. method: "GET",
  28185. params: {
  28186. page: {
  28187. type: "integer"
  28188. },
  28189. per_page: {
  28190. type: "integer"
  28191. },
  28192. team_id: {
  28193. required: true,
  28194. type: "integer"
  28195. }
  28196. },
  28197. url: "/teams/:team_id/invitations"
  28198. },
  28199. listPendingInvitationsInOrg: {
  28200. method: "GET",
  28201. params: {
  28202. org: {
  28203. required: true,
  28204. type: "string"
  28205. },
  28206. page: {
  28207. type: "integer"
  28208. },
  28209. per_page: {
  28210. type: "integer"
  28211. },
  28212. team_slug: {
  28213. required: true,
  28214. type: "string"
  28215. }
  28216. },
  28217. url: "/orgs/:org/teams/:team_slug/invitations"
  28218. },
  28219. listPendingInvitationsLegacy: {
  28220. deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",
  28221. method: "GET",
  28222. params: {
  28223. page: {
  28224. type: "integer"
  28225. },
  28226. per_page: {
  28227. type: "integer"
  28228. },
  28229. team_id: {
  28230. required: true,
  28231. type: "integer"
  28232. }
  28233. },
  28234. url: "/teams/:team_id/invitations"
  28235. },
  28236. listProjects: {
  28237. deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",
  28238. headers: {
  28239. accept: "application/vnd.github.inertia-preview+json"
  28240. },
  28241. method: "GET",
  28242. params: {
  28243. page: {
  28244. type: "integer"
  28245. },
  28246. per_page: {
  28247. type: "integer"
  28248. },
  28249. team_id: {
  28250. required: true,
  28251. type: "integer"
  28252. }
  28253. },
  28254. url: "/teams/:team_id/projects"
  28255. },
  28256. listProjectsInOrg: {
  28257. headers: {
  28258. accept: "application/vnd.github.inertia-preview+json"
  28259. },
  28260. method: "GET",
  28261. params: {
  28262. org: {
  28263. required: true,
  28264. type: "string"
  28265. },
  28266. page: {
  28267. type: "integer"
  28268. },
  28269. per_page: {
  28270. type: "integer"
  28271. },
  28272. team_slug: {
  28273. required: true,
  28274. type: "string"
  28275. }
  28276. },
  28277. url: "/orgs/:org/teams/:team_slug/projects"
  28278. },
  28279. listProjectsLegacy: {
  28280. deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",
  28281. headers: {
  28282. accept: "application/vnd.github.inertia-preview+json"
  28283. },
  28284. method: "GET",
  28285. params: {
  28286. page: {
  28287. type: "integer"
  28288. },
  28289. per_page: {
  28290. type: "integer"
  28291. },
  28292. team_id: {
  28293. required: true,
  28294. type: "integer"
  28295. }
  28296. },
  28297. url: "/teams/:team_id/projects"
  28298. },
  28299. listRepos: {
  28300. deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",
  28301. method: "GET",
  28302. params: {
  28303. page: {
  28304. type: "integer"
  28305. },
  28306. per_page: {
  28307. type: "integer"
  28308. },
  28309. team_id: {
  28310. required: true,
  28311. type: "integer"
  28312. }
  28313. },
  28314. url: "/teams/:team_id/repos"
  28315. },
  28316. listReposInOrg: {
  28317. method: "GET",
  28318. params: {
  28319. org: {
  28320. required: true,
  28321. type: "string"
  28322. },
  28323. page: {
  28324. type: "integer"
  28325. },
  28326. per_page: {
  28327. type: "integer"
  28328. },
  28329. team_slug: {
  28330. required: true,
  28331. type: "string"
  28332. }
  28333. },
  28334. url: "/orgs/:org/teams/:team_slug/repos"
  28335. },
  28336. listReposLegacy: {
  28337. deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",
  28338. method: "GET",
  28339. params: {
  28340. page: {
  28341. type: "integer"
  28342. },
  28343. per_page: {
  28344. type: "integer"
  28345. },
  28346. team_id: {
  28347. required: true,
  28348. type: "integer"
  28349. }
  28350. },
  28351. url: "/teams/:team_id/repos"
  28352. },
  28353. removeMember: {
  28354. deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",
  28355. method: "DELETE",
  28356. params: {
  28357. team_id: {
  28358. required: true,
  28359. type: "integer"
  28360. },
  28361. username: {
  28362. required: true,
  28363. type: "string"
  28364. }
  28365. },
  28366. url: "/teams/:team_id/members/:username"
  28367. },
  28368. removeMemberLegacy: {
  28369. deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",
  28370. method: "DELETE",
  28371. params: {
  28372. team_id: {
  28373. required: true,
  28374. type: "integer"
  28375. },
  28376. username: {
  28377. required: true,
  28378. type: "string"
  28379. }
  28380. },
  28381. url: "/teams/:team_id/members/:username"
  28382. },
  28383. removeMembership: {
  28384. deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",
  28385. method: "DELETE",
  28386. params: {
  28387. team_id: {
  28388. required: true,
  28389. type: "integer"
  28390. },
  28391. username: {
  28392. required: true,
  28393. type: "string"
  28394. }
  28395. },
  28396. url: "/teams/:team_id/memberships/:username"
  28397. },
  28398. removeMembershipInOrg: {
  28399. method: "DELETE",
  28400. params: {
  28401. org: {
  28402. required: true,
  28403. type: "string"
  28404. },
  28405. team_slug: {
  28406. required: true,
  28407. type: "string"
  28408. },
  28409. username: {
  28410. required: true,
  28411. type: "string"
  28412. }
  28413. },
  28414. url: "/orgs/:org/teams/:team_slug/memberships/:username"
  28415. },
  28416. removeMembershipLegacy: {
  28417. deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",
  28418. method: "DELETE",
  28419. params: {
  28420. team_id: {
  28421. required: true,
  28422. type: "integer"
  28423. },
  28424. username: {
  28425. required: true,
  28426. type: "string"
  28427. }
  28428. },
  28429. url: "/teams/:team_id/memberships/:username"
  28430. },
  28431. removeProject: {
  28432. deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",
  28433. method: "DELETE",
  28434. params: {
  28435. project_id: {
  28436. required: true,
  28437. type: "integer"
  28438. },
  28439. team_id: {
  28440. required: true,
  28441. type: "integer"
  28442. }
  28443. },
  28444. url: "/teams/:team_id/projects/:project_id"
  28445. },
  28446. removeProjectInOrg: {
  28447. method: "DELETE",
  28448. params: {
  28449. org: {
  28450. required: true,
  28451. type: "string"
  28452. },
  28453. project_id: {
  28454. required: true,
  28455. type: "integer"
  28456. },
  28457. team_slug: {
  28458. required: true,
  28459. type: "string"
  28460. }
  28461. },
  28462. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  28463. },
  28464. removeProjectLegacy: {
  28465. deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",
  28466. method: "DELETE",
  28467. params: {
  28468. project_id: {
  28469. required: true,
  28470. type: "integer"
  28471. },
  28472. team_id: {
  28473. required: true,
  28474. type: "integer"
  28475. }
  28476. },
  28477. url: "/teams/:team_id/projects/:project_id"
  28478. },
  28479. removeRepo: {
  28480. deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",
  28481. method: "DELETE",
  28482. params: {
  28483. owner: {
  28484. required: true,
  28485. type: "string"
  28486. },
  28487. repo: {
  28488. required: true,
  28489. type: "string"
  28490. },
  28491. team_id: {
  28492. required: true,
  28493. type: "integer"
  28494. }
  28495. },
  28496. url: "/teams/:team_id/repos/:owner/:repo"
  28497. },
  28498. removeRepoInOrg: {
  28499. method: "DELETE",
  28500. params: {
  28501. org: {
  28502. required: true,
  28503. type: "string"
  28504. },
  28505. owner: {
  28506. required: true,
  28507. type: "string"
  28508. },
  28509. repo: {
  28510. required: true,
  28511. type: "string"
  28512. },
  28513. team_slug: {
  28514. required: true,
  28515. type: "string"
  28516. }
  28517. },
  28518. url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
  28519. },
  28520. removeRepoLegacy: {
  28521. deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",
  28522. method: "DELETE",
  28523. params: {
  28524. owner: {
  28525. required: true,
  28526. type: "string"
  28527. },
  28528. repo: {
  28529. required: true,
  28530. type: "string"
  28531. },
  28532. team_id: {
  28533. required: true,
  28534. type: "integer"
  28535. }
  28536. },
  28537. url: "/teams/:team_id/repos/:owner/:repo"
  28538. },
  28539. reviewProject: {
  28540. deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",
  28541. headers: {
  28542. accept: "application/vnd.github.inertia-preview+json"
  28543. },
  28544. method: "GET",
  28545. params: {
  28546. project_id: {
  28547. required: true,
  28548. type: "integer"
  28549. },
  28550. team_id: {
  28551. required: true,
  28552. type: "integer"
  28553. }
  28554. },
  28555. url: "/teams/:team_id/projects/:project_id"
  28556. },
  28557. reviewProjectInOrg: {
  28558. headers: {
  28559. accept: "application/vnd.github.inertia-preview+json"
  28560. },
  28561. method: "GET",
  28562. params: {
  28563. org: {
  28564. required: true,
  28565. type: "string"
  28566. },
  28567. project_id: {
  28568. required: true,
  28569. type: "integer"
  28570. },
  28571. team_slug: {
  28572. required: true,
  28573. type: "string"
  28574. }
  28575. },
  28576. url: "/orgs/:org/teams/:team_slug/projects/:project_id"
  28577. },
  28578. reviewProjectLegacy: {
  28579. deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",
  28580. headers: {
  28581. accept: "application/vnd.github.inertia-preview+json"
  28582. },
  28583. method: "GET",
  28584. params: {
  28585. project_id: {
  28586. required: true,
  28587. type: "integer"
  28588. },
  28589. team_id: {
  28590. required: true,
  28591. type: "integer"
  28592. }
  28593. },
  28594. url: "/teams/:team_id/projects/:project_id"
  28595. },
  28596. update: {
  28597. deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",
  28598. method: "PATCH",
  28599. params: {
  28600. description: {
  28601. type: "string"
  28602. },
  28603. name: {
  28604. required: true,
  28605. type: "string"
  28606. },
  28607. parent_team_id: {
  28608. type: "integer"
  28609. },
  28610. permission: {
  28611. enum: ["pull", "push", "admin"],
  28612. type: "string"
  28613. },
  28614. privacy: {
  28615. enum: ["secret", "closed"],
  28616. type: "string"
  28617. },
  28618. team_id: {
  28619. required: true,
  28620. type: "integer"
  28621. }
  28622. },
  28623. url: "/teams/:team_id"
  28624. },
  28625. updateDiscussion: {
  28626. deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",
  28627. method: "PATCH",
  28628. params: {
  28629. body: {
  28630. type: "string"
  28631. },
  28632. discussion_number: {
  28633. required: true,
  28634. type: "integer"
  28635. },
  28636. team_id: {
  28637. required: true,
  28638. type: "integer"
  28639. },
  28640. title: {
  28641. type: "string"
  28642. }
  28643. },
  28644. url: "/teams/:team_id/discussions/:discussion_number"
  28645. },
  28646. updateDiscussionComment: {
  28647. deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",
  28648. method: "PATCH",
  28649. params: {
  28650. body: {
  28651. required: true,
  28652. type: "string"
  28653. },
  28654. comment_number: {
  28655. required: true,
  28656. type: "integer"
  28657. },
  28658. discussion_number: {
  28659. required: true,
  28660. type: "integer"
  28661. },
  28662. team_id: {
  28663. required: true,
  28664. type: "integer"
  28665. }
  28666. },
  28667. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  28668. },
  28669. updateDiscussionCommentInOrg: {
  28670. method: "PATCH",
  28671. params: {
  28672. body: {
  28673. required: true,
  28674. type: "string"
  28675. },
  28676. comment_number: {
  28677. required: true,
  28678. type: "integer"
  28679. },
  28680. discussion_number: {
  28681. required: true,
  28682. type: "integer"
  28683. },
  28684. org: {
  28685. required: true,
  28686. type: "string"
  28687. },
  28688. team_slug: {
  28689. required: true,
  28690. type: "string"
  28691. }
  28692. },
  28693. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
  28694. },
  28695. updateDiscussionCommentLegacy: {
  28696. deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",
  28697. method: "PATCH",
  28698. params: {
  28699. body: {
  28700. required: true,
  28701. type: "string"
  28702. },
  28703. comment_number: {
  28704. required: true,
  28705. type: "integer"
  28706. },
  28707. discussion_number: {
  28708. required: true,
  28709. type: "integer"
  28710. },
  28711. team_id: {
  28712. required: true,
  28713. type: "integer"
  28714. }
  28715. },
  28716. url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
  28717. },
  28718. updateDiscussionInOrg: {
  28719. method: "PATCH",
  28720. params: {
  28721. body: {
  28722. type: "string"
  28723. },
  28724. discussion_number: {
  28725. required: true,
  28726. type: "integer"
  28727. },
  28728. org: {
  28729. required: true,
  28730. type: "string"
  28731. },
  28732. team_slug: {
  28733. required: true,
  28734. type: "string"
  28735. },
  28736. title: {
  28737. type: "string"
  28738. }
  28739. },
  28740. url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
  28741. },
  28742. updateDiscussionLegacy: {
  28743. deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",
  28744. method: "PATCH",
  28745. params: {
  28746. body: {
  28747. type: "string"
  28748. },
  28749. discussion_number: {
  28750. required: true,
  28751. type: "integer"
  28752. },
  28753. team_id: {
  28754. required: true,
  28755. type: "integer"
  28756. },
  28757. title: {
  28758. type: "string"
  28759. }
  28760. },
  28761. url: "/teams/:team_id/discussions/:discussion_number"
  28762. },
  28763. updateInOrg: {
  28764. method: "PATCH",
  28765. params: {
  28766. description: {
  28767. type: "string"
  28768. },
  28769. name: {
  28770. required: true,
  28771. type: "string"
  28772. },
  28773. org: {
  28774. required: true,
  28775. type: "string"
  28776. },
  28777. parent_team_id: {
  28778. type: "integer"
  28779. },
  28780. permission: {
  28781. enum: ["pull", "push", "admin"],
  28782. type: "string"
  28783. },
  28784. privacy: {
  28785. enum: ["secret", "closed"],
  28786. type: "string"
  28787. },
  28788. team_slug: {
  28789. required: true,
  28790. type: "string"
  28791. }
  28792. },
  28793. url: "/orgs/:org/teams/:team_slug"
  28794. },
  28795. updateLegacy: {
  28796. deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",
  28797. method: "PATCH",
  28798. params: {
  28799. description: {
  28800. type: "string"
  28801. },
  28802. name: {
  28803. required: true,
  28804. type: "string"
  28805. },
  28806. parent_team_id: {
  28807. type: "integer"
  28808. },
  28809. permission: {
  28810. enum: ["pull", "push", "admin"],
  28811. type: "string"
  28812. },
  28813. privacy: {
  28814. enum: ["secret", "closed"],
  28815. type: "string"
  28816. },
  28817. team_id: {
  28818. required: true,
  28819. type: "integer"
  28820. }
  28821. },
  28822. url: "/teams/:team_id"
  28823. }
  28824. },
  28825. users: {
  28826. addEmails: {
  28827. method: "POST",
  28828. params: {
  28829. emails: {
  28830. required: true,
  28831. type: "string[]"
  28832. }
  28833. },
  28834. url: "/user/emails"
  28835. },
  28836. block: {
  28837. method: "PUT",
  28838. params: {
  28839. username: {
  28840. required: true,
  28841. type: "string"
  28842. }
  28843. },
  28844. url: "/user/blocks/:username"
  28845. },
  28846. checkBlocked: {
  28847. method: "GET",
  28848. params: {
  28849. username: {
  28850. required: true,
  28851. type: "string"
  28852. }
  28853. },
  28854. url: "/user/blocks/:username"
  28855. },
  28856. checkFollowing: {
  28857. method: "GET",
  28858. params: {
  28859. username: {
  28860. required: true,
  28861. type: "string"
  28862. }
  28863. },
  28864. url: "/user/following/:username"
  28865. },
  28866. checkFollowingForUser: {
  28867. method: "GET",
  28868. params: {
  28869. target_user: {
  28870. required: true,
  28871. type: "string"
  28872. },
  28873. username: {
  28874. required: true,
  28875. type: "string"
  28876. }
  28877. },
  28878. url: "/users/:username/following/:target_user"
  28879. },
  28880. createGpgKey: {
  28881. method: "POST",
  28882. params: {
  28883. armored_public_key: {
  28884. type: "string"
  28885. }
  28886. },
  28887. url: "/user/gpg_keys"
  28888. },
  28889. createPublicKey: {
  28890. method: "POST",
  28891. params: {
  28892. key: {
  28893. type: "string"
  28894. },
  28895. title: {
  28896. type: "string"
  28897. }
  28898. },
  28899. url: "/user/keys"
  28900. },
  28901. deleteEmails: {
  28902. method: "DELETE",
  28903. params: {
  28904. emails: {
  28905. required: true,
  28906. type: "string[]"
  28907. }
  28908. },
  28909. url: "/user/emails"
  28910. },
  28911. deleteGpgKey: {
  28912. method: "DELETE",
  28913. params: {
  28914. gpg_key_id: {
  28915. required: true,
  28916. type: "integer"
  28917. }
  28918. },
  28919. url: "/user/gpg_keys/:gpg_key_id"
  28920. },
  28921. deletePublicKey: {
  28922. method: "DELETE",
  28923. params: {
  28924. key_id: {
  28925. required: true,
  28926. type: "integer"
  28927. }
  28928. },
  28929. url: "/user/keys/:key_id"
  28930. },
  28931. follow: {
  28932. method: "PUT",
  28933. params: {
  28934. username: {
  28935. required: true,
  28936. type: "string"
  28937. }
  28938. },
  28939. url: "/user/following/:username"
  28940. },
  28941. getAuthenticated: {
  28942. method: "GET",
  28943. params: {},
  28944. url: "/user"
  28945. },
  28946. getByUsername: {
  28947. method: "GET",
  28948. params: {
  28949. username: {
  28950. required: true,
  28951. type: "string"
  28952. }
  28953. },
  28954. url: "/users/:username"
  28955. },
  28956. getContextForUser: {
  28957. method: "GET",
  28958. params: {
  28959. subject_id: {
  28960. type: "string"
  28961. },
  28962. subject_type: {
  28963. enum: ["organization", "repository", "issue", "pull_request"],
  28964. type: "string"
  28965. },
  28966. username: {
  28967. required: true,
  28968. type: "string"
  28969. }
  28970. },
  28971. url: "/users/:username/hovercard"
  28972. },
  28973. getGpgKey: {
  28974. method: "GET",
  28975. params: {
  28976. gpg_key_id: {
  28977. required: true,
  28978. type: "integer"
  28979. }
  28980. },
  28981. url: "/user/gpg_keys/:gpg_key_id"
  28982. },
  28983. getPublicKey: {
  28984. method: "GET",
  28985. params: {
  28986. key_id: {
  28987. required: true,
  28988. type: "integer"
  28989. }
  28990. },
  28991. url: "/user/keys/:key_id"
  28992. },
  28993. list: {
  28994. method: "GET",
  28995. params: {
  28996. page: {
  28997. type: "integer"
  28998. },
  28999. per_page: {
  29000. type: "integer"
  29001. },
  29002. since: {
  29003. type: "string"
  29004. }
  29005. },
  29006. url: "/users"
  29007. },
  29008. listBlocked: {
  29009. method: "GET",
  29010. params: {},
  29011. url: "/user/blocks"
  29012. },
  29013. listEmails: {
  29014. method: "GET",
  29015. params: {
  29016. page: {
  29017. type: "integer"
  29018. },
  29019. per_page: {
  29020. type: "integer"
  29021. }
  29022. },
  29023. url: "/user/emails"
  29024. },
  29025. listFollowersForAuthenticatedUser: {
  29026. method: "GET",
  29027. params: {
  29028. page: {
  29029. type: "integer"
  29030. },
  29031. per_page: {
  29032. type: "integer"
  29033. }
  29034. },
  29035. url: "/user/followers"
  29036. },
  29037. listFollowersForUser: {
  29038. method: "GET",
  29039. params: {
  29040. page: {
  29041. type: "integer"
  29042. },
  29043. per_page: {
  29044. type: "integer"
  29045. },
  29046. username: {
  29047. required: true,
  29048. type: "string"
  29049. }
  29050. },
  29051. url: "/users/:username/followers"
  29052. },
  29053. listFollowingForAuthenticatedUser: {
  29054. method: "GET",
  29055. params: {
  29056. page: {
  29057. type: "integer"
  29058. },
  29059. per_page: {
  29060. type: "integer"
  29061. }
  29062. },
  29063. url: "/user/following"
  29064. },
  29065. listFollowingForUser: {
  29066. method: "GET",
  29067. params: {
  29068. page: {
  29069. type: "integer"
  29070. },
  29071. per_page: {
  29072. type: "integer"
  29073. },
  29074. username: {
  29075. required: true,
  29076. type: "string"
  29077. }
  29078. },
  29079. url: "/users/:username/following"
  29080. },
  29081. listGpgKeys: {
  29082. method: "GET",
  29083. params: {
  29084. page: {
  29085. type: "integer"
  29086. },
  29087. per_page: {
  29088. type: "integer"
  29089. }
  29090. },
  29091. url: "/user/gpg_keys"
  29092. },
  29093. listGpgKeysForUser: {
  29094. method: "GET",
  29095. params: {
  29096. page: {
  29097. type: "integer"
  29098. },
  29099. per_page: {
  29100. type: "integer"
  29101. },
  29102. username: {
  29103. required: true,
  29104. type: "string"
  29105. }
  29106. },
  29107. url: "/users/:username/gpg_keys"
  29108. },
  29109. listPublicEmails: {
  29110. method: "GET",
  29111. params: {
  29112. page: {
  29113. type: "integer"
  29114. },
  29115. per_page: {
  29116. type: "integer"
  29117. }
  29118. },
  29119. url: "/user/public_emails"
  29120. },
  29121. listPublicKeys: {
  29122. method: "GET",
  29123. params: {
  29124. page: {
  29125. type: "integer"
  29126. },
  29127. per_page: {
  29128. type: "integer"
  29129. }
  29130. },
  29131. url: "/user/keys"
  29132. },
  29133. listPublicKeysForUser: {
  29134. method: "GET",
  29135. params: {
  29136. page: {
  29137. type: "integer"
  29138. },
  29139. per_page: {
  29140. type: "integer"
  29141. },
  29142. username: {
  29143. required: true,
  29144. type: "string"
  29145. }
  29146. },
  29147. url: "/users/:username/keys"
  29148. },
  29149. togglePrimaryEmailVisibility: {
  29150. method: "PATCH",
  29151. params: {
  29152. email: {
  29153. required: true,
  29154. type: "string"
  29155. },
  29156. visibility: {
  29157. required: true,
  29158. type: "string"
  29159. }
  29160. },
  29161. url: "/user/email/visibility"
  29162. },
  29163. unblock: {
  29164. method: "DELETE",
  29165. params: {
  29166. username: {
  29167. required: true,
  29168. type: "string"
  29169. }
  29170. },
  29171. url: "/user/blocks/:username"
  29172. },
  29173. unfollow: {
  29174. method: "DELETE",
  29175. params: {
  29176. username: {
  29177. required: true,
  29178. type: "string"
  29179. }
  29180. },
  29181. url: "/user/following/:username"
  29182. },
  29183. updateAuthenticated: {
  29184. method: "PATCH",
  29185. params: {
  29186. bio: {
  29187. type: "string"
  29188. },
  29189. blog: {
  29190. type: "string"
  29191. },
  29192. company: {
  29193. type: "string"
  29194. },
  29195. email: {
  29196. type: "string"
  29197. },
  29198. hireable: {
  29199. type: "boolean"
  29200. },
  29201. location: {
  29202. type: "string"
  29203. },
  29204. name: {
  29205. type: "string"
  29206. }
  29207. },
  29208. url: "/user"
  29209. }
  29210. }
  29211. };
  29212. const VERSION = "2.4.0";
  29213. function registerEndpoints(octokit, routes) {
  29214. Object.keys(routes).forEach(namespaceName => {
  29215. if (!octokit[namespaceName]) {
  29216. octokit[namespaceName] = {};
  29217. }
  29218. Object.keys(routes[namespaceName]).forEach(apiName => {
  29219. const apiOptions = routes[namespaceName][apiName];
  29220. const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => {
  29221. if (typeof apiOptions[key] !== "undefined") {
  29222. map[key] = apiOptions[key];
  29223. }
  29224. return map;
  29225. }, {});
  29226. endpointDefaults.request = {
  29227. validate: apiOptions.params
  29228. };
  29229. let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters.
  29230. // Not the most elegant solution, but we don’t want to move deprecation
  29231. // logic into octokit/endpoint.js as it’s out of scope
  29232. const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);
  29233. if (hasDeprecatedParam) {
  29234. const patch = patchForDeprecation.bind(null, octokit, apiOptions);
  29235. request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);
  29236. request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);
  29237. request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);
  29238. }
  29239. if (apiOptions.deprecated) {
  29240. octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {
  29241. octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));
  29242. octokit[namespaceName][apiName] = request;
  29243. return request.apply(null, arguments);
  29244. }, request);
  29245. return;
  29246. }
  29247. octokit[namespaceName][apiName] = request;
  29248. });
  29249. });
  29250. }
  29251. function patchForDeprecation(octokit, apiOptions, method, methodName) {
  29252. const patchedMethod = options => {
  29253. options = Object.assign({}, options);
  29254. Object.keys(options).forEach(key => {
  29255. if (apiOptions.params[key] && apiOptions.params[key].deprecated) {
  29256. const aliasKey = apiOptions.params[key].alias;
  29257. octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`));
  29258. if (!(aliasKey in options)) {
  29259. options[aliasKey] = options[key];
  29260. }
  29261. delete options[key];
  29262. }
  29263. });
  29264. return method(options);
  29265. };
  29266. Object.keys(method).forEach(key => {
  29267. patchedMethod[key] = method[key];
  29268. });
  29269. return patchedMethod;
  29270. }
  29271. /**
  29272. * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary
  29273. * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is
  29274. * done, we will remove the registerEndpoints methods and return the methods
  29275. * directly as with the other plugins. At that point we will also remove the
  29276. * legacy workarounds and deprecations.
  29277. *
  29278. * See the plan at
  29279. * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1
  29280. */
  29281. function restEndpointMethods(octokit) {
  29282. // @ts-ignore
  29283. octokit.registerEndpoints = registerEndpoints.bind(null, octokit);
  29284. registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility
  29285. // See https://github.com/octokit/rest.js/pull/1134
  29286. [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => {
  29287. Object.defineProperty(octokit, deprecatedScope, {
  29288. get() {
  29289. octokit.log.warn( // @ts-ignore
  29290. new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore
  29291. return octokit[scope];
  29292. }
  29293. });
  29294. });
  29295. return {};
  29296. }
  29297. restEndpointMethods.VERSION = VERSION;
  29298. exports.restEndpointMethods = restEndpointMethods;
  29299. //# sourceMappingURL=index.js.map
  29300. /***/ }),
  29301. /***/ 850:
  29302. /***/ (function(module, __unusedexports, __webpack_require__) {
  29303. module.exports = paginationMethodsPlugin
  29304. function paginationMethodsPlugin (octokit) {
  29305. octokit.getFirstPage = __webpack_require__(777).bind(null, octokit)
  29306. octokit.getLastPage = __webpack_require__(30).bind(null, octokit)
  29307. octokit.getNextPage = __webpack_require__(550).bind(null, octokit)
  29308. octokit.getPreviousPage = __webpack_require__(563).bind(null, octokit)
  29309. octokit.hasFirstPage = __webpack_require__(536)
  29310. octokit.hasLastPage = __webpack_require__(336)
  29311. octokit.hasNextPage = __webpack_require__(929)
  29312. octokit.hasPreviousPage = __webpack_require__(558)
  29313. }
  29314. /***/ }),
  29315. /***/ 853:
  29316. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  29317. "use strict";
  29318. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  29319. if (k2 === undefined) k2 = k;
  29320. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  29321. }) : (function(o, m, k, k2) {
  29322. if (k2 === undefined) k2 = k;
  29323. o[k2] = m[k];
  29324. }));
  29325. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  29326. Object.defineProperty(o, "default", { enumerable: true, value: v });
  29327. }) : function(o, v) {
  29328. o["default"] = v;
  29329. });
  29330. var __importStar = (this && this.__importStar) || function (mod) {
  29331. if (mod && mod.__esModule) return mod;
  29332. var result = {};
  29333. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  29334. __setModuleDefault(result, mod);
  29335. return result;
  29336. };
  29337. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  29338. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  29339. return new (P || (P = Promise))(function (resolve, reject) {
  29340. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  29341. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  29342. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  29343. step((generator = generator.apply(thisArg, _arguments || [])).next());
  29344. });
  29345. };
  29346. Object.defineProperty(exports, "__esModule", { value: true });
  29347. exports.cleanup = exports.getSource = void 0;
  29348. const core = __importStar(__webpack_require__(470));
  29349. const fsHelper = __importStar(__webpack_require__(618));
  29350. const gitAuthHelper = __importStar(__webpack_require__(287));
  29351. const gitCommandManager = __importStar(__webpack_require__(289));
  29352. const gitDirectoryHelper = __importStar(__webpack_require__(438));
  29353. const githubApiHelper = __importStar(__webpack_require__(464));
  29354. const io = __importStar(__webpack_require__(1));
  29355. const path = __importStar(__webpack_require__(622));
  29356. const refHelper = __importStar(__webpack_require__(227));
  29357. const stateHelper = __importStar(__webpack_require__(153));
  29358. const urlHelper = __importStar(__webpack_require__(81));
  29359. function getSource(settings) {
  29360. return __awaiter(this, void 0, void 0, function* () {
  29361. // Repository URL
  29362. core.info(`Syncing repository: ${settings.repositoryOwner}/${settings.repositoryName}`);
  29363. const repositoryUrl = urlHelper.getFetchUrl(settings);
  29364. // Remove conflicting file path
  29365. if (fsHelper.fileExistsSync(settings.repositoryPath)) {
  29366. yield io.rmRF(settings.repositoryPath);
  29367. }
  29368. // Create directory
  29369. let isExisting = true;
  29370. if (!fsHelper.directoryExistsSync(settings.repositoryPath)) {
  29371. isExisting = false;
  29372. yield io.mkdirP(settings.repositoryPath);
  29373. }
  29374. // Git command manager
  29375. core.startGroup('Getting Git version info');
  29376. const git = yield getGitCommandManager(settings);
  29377. core.endGroup();
  29378. let authHelper = null;
  29379. try {
  29380. if (git) {
  29381. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  29382. if (settings.setSafeDirectory) {
  29383. // Setup the repository path as a safe directory, so if we pass this into a container job with a different user it doesn't fail
  29384. // Otherwise all git commands we run in a container fail
  29385. yield authHelper.configureTempGlobalConfig();
  29386. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  29387. yield git
  29388. .config('safe.directory', settings.repositoryPath, true, true)
  29389. .catch(error => {
  29390. core.info(`Failed to initialize safe directory with error: ${error}`);
  29391. });
  29392. stateHelper.setSafeDirectory();
  29393. }
  29394. }
  29395. // Prepare existing directory, otherwise recreate
  29396. if (isExisting) {
  29397. yield gitDirectoryHelper.prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean, settings.ref);
  29398. }
  29399. if (!git) {
  29400. // Downloading using REST API
  29401. core.info(`The repository will be downloaded using the GitHub REST API`);
  29402. core.info(`To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`);
  29403. if (settings.submodules) {
  29404. throw new Error(`Input 'submodules' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`);
  29405. }
  29406. else if (settings.sshKey) {
  29407. throw new Error(`Input 'ssh-key' not supported when falling back to download using the GitHub REST API. To create a local Git repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH.`);
  29408. }
  29409. yield githubApiHelper.downloadRepository(settings.authToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath);
  29410. return;
  29411. }
  29412. // Save state for POST action
  29413. stateHelper.setRepositoryPath(settings.repositoryPath);
  29414. // Initialize the repository
  29415. if (!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))) {
  29416. core.startGroup('Initializing the repository');
  29417. yield git.init();
  29418. yield git.remoteAdd('origin', repositoryUrl);
  29419. core.endGroup();
  29420. }
  29421. // Disable automatic garbage collection
  29422. core.startGroup('Disabling automatic garbage collection');
  29423. if (!(yield git.tryDisableAutomaticGarbageCollection())) {
  29424. core.warning(`Unable to turn off git automatic garbage collection. The git fetch operation may trigger garbage collection and cause a delay.`);
  29425. }
  29426. core.endGroup();
  29427. // If we didn't initialize it above, do it now
  29428. if (!authHelper) {
  29429. authHelper = gitAuthHelper.createAuthHelper(git, settings);
  29430. }
  29431. // Configure auth
  29432. core.startGroup('Setting up auth');
  29433. yield authHelper.configureAuth();
  29434. core.endGroup();
  29435. // Determine the default branch
  29436. if (!settings.ref && !settings.commit) {
  29437. core.startGroup('Determining the default branch');
  29438. if (settings.sshKey) {
  29439. settings.ref = yield git.getDefaultBranch(repositoryUrl);
  29440. }
  29441. else {
  29442. settings.ref = yield githubApiHelper.getDefaultBranch(settings.authToken, settings.repositoryOwner, settings.repositoryName);
  29443. }
  29444. core.endGroup();
  29445. }
  29446. // LFS install
  29447. if (settings.lfs) {
  29448. yield git.lfsInstall();
  29449. }
  29450. // Fetch
  29451. core.startGroup('Fetching the repository');
  29452. if (settings.fetchDepth <= 0) {
  29453. // Fetch all branches and tags
  29454. let refSpec = refHelper.getRefSpecForAllHistory(settings.ref, settings.commit);
  29455. yield git.fetch(refSpec);
  29456. // When all history is fetched, the ref we're interested in may have moved to a different
  29457. // commit (push or force push). If so, fetch again with a targeted refspec.
  29458. if (!(yield refHelper.testRef(git, settings.ref, settings.commit))) {
  29459. refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  29460. yield git.fetch(refSpec);
  29461. }
  29462. }
  29463. else {
  29464. const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
  29465. yield git.fetch(refSpec, settings.fetchDepth);
  29466. }
  29467. core.endGroup();
  29468. // Checkout info
  29469. core.startGroup('Determining the checkout info');
  29470. const checkoutInfo = yield refHelper.getCheckoutInfo(git, settings.ref, settings.commit);
  29471. core.endGroup();
  29472. // LFS fetch
  29473. // Explicit lfs-fetch to avoid slow checkout (fetches one lfs object at a time).
  29474. // Explicit lfs fetch will fetch lfs objects in parallel.
  29475. if (settings.lfs) {
  29476. core.startGroup('Fetching LFS objects');
  29477. yield git.lfsFetch(checkoutInfo.startPoint || checkoutInfo.ref);
  29478. core.endGroup();
  29479. }
  29480. // Checkout
  29481. core.startGroup('Checking out the ref');
  29482. yield git.checkout(checkoutInfo.ref, checkoutInfo.startPoint);
  29483. core.endGroup();
  29484. // Submodules
  29485. if (settings.submodules) {
  29486. // Temporarily override global config
  29487. core.startGroup('Setting up auth for fetching submodules');
  29488. yield authHelper.configureGlobalAuth();
  29489. core.endGroup();
  29490. // Checkout submodules
  29491. core.startGroup('Fetching submodules');
  29492. yield git.submoduleSync(settings.nestedSubmodules);
  29493. yield git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules);
  29494. yield git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules);
  29495. core.endGroup();
  29496. // Persist credentials
  29497. if (settings.persistCredentials) {
  29498. core.startGroup('Persisting credentials for submodules');
  29499. yield authHelper.configureSubmoduleAuth();
  29500. core.endGroup();
  29501. }
  29502. }
  29503. // Get commit information
  29504. const commitInfo = yield git.log1();
  29505. // Log commit sha
  29506. yield git.log1("--format='%H'");
  29507. // Check for incorrect pull request merge commit
  29508. yield refHelper.checkCommitInfo(settings.authToken, commitInfo, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit);
  29509. }
  29510. finally {
  29511. // Remove auth
  29512. if (authHelper) {
  29513. if (!settings.persistCredentials) {
  29514. core.startGroup('Removing auth');
  29515. yield authHelper.removeAuth();
  29516. core.endGroup();
  29517. }
  29518. authHelper.removeGlobalConfig();
  29519. }
  29520. }
  29521. });
  29522. }
  29523. exports.getSource = getSource;
  29524. function cleanup(repositoryPath) {
  29525. return __awaiter(this, void 0, void 0, function* () {
  29526. // Repo exists?
  29527. if (!repositoryPath ||
  29528. !fsHelper.fileExistsSync(path.join(repositoryPath, '.git', 'config'))) {
  29529. return;
  29530. }
  29531. let git;
  29532. try {
  29533. git = yield gitCommandManager.createCommandManager(repositoryPath, false);
  29534. }
  29535. catch (_a) {
  29536. return;
  29537. }
  29538. // Remove auth
  29539. const authHelper = gitAuthHelper.createAuthHelper(git);
  29540. try {
  29541. if (stateHelper.PostSetSafeDirectory) {
  29542. // Setup the repository path as a safe directory, so if we pass this into a container job with a different user it doesn't fail
  29543. // Otherwise all git commands we run in a container fail
  29544. yield authHelper.configureTempGlobalConfig();
  29545. core.info(`Adding repository directory to the temporary git global config as a safe directory`);
  29546. yield git
  29547. .config('safe.directory', repositoryPath, true, true)
  29548. .catch(error => {
  29549. core.info(`Failed to initialize safe directory with error: ${error}`);
  29550. });
  29551. }
  29552. yield authHelper.removeAuth();
  29553. }
  29554. finally {
  29555. yield authHelper.removeGlobalConfig();
  29556. }
  29557. });
  29558. }
  29559. exports.cleanup = cleanup;
  29560. function getGitCommandManager(settings) {
  29561. return __awaiter(this, void 0, void 0, function* () {
  29562. core.info(`Working directory is '${settings.repositoryPath}'`);
  29563. try {
  29564. return yield gitCommandManager.createCommandManager(settings.repositoryPath, settings.lfs);
  29565. }
  29566. catch (err) {
  29567. // Git is required for LFS
  29568. if (settings.lfs) {
  29569. throw err;
  29570. }
  29571. // Otherwise fallback to REST API
  29572. return undefined;
  29573. }
  29574. });
  29575. }
  29576. /***/ }),
  29577. /***/ 854:
  29578. /***/ (function(module) {
  29579. /**
  29580. * lodash (Custom Build) <https://lodash.com/>
  29581. * Build: `lodash modularize exports="npm" -o ./`
  29582. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  29583. * Released under MIT license <https://lodash.com/license>
  29584. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  29585. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  29586. */
  29587. /** Used as the `TypeError` message for "Functions" methods. */
  29588. var FUNC_ERROR_TEXT = 'Expected a function';
  29589. /** Used to stand-in for `undefined` hash values. */
  29590. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  29591. /** Used as references for various `Number` constants. */
  29592. var INFINITY = 1 / 0;
  29593. /** `Object#toString` result references. */
  29594. var funcTag = '[object Function]',
  29595. genTag = '[object GeneratorFunction]',
  29596. symbolTag = '[object Symbol]';
  29597. /** Used to match property names within property paths. */
  29598. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  29599. reIsPlainProp = /^\w*$/,
  29600. reLeadingDot = /^\./,
  29601. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  29602. /**
  29603. * Used to match `RegExp`
  29604. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  29605. */
  29606. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  29607. /** Used to match backslashes in property paths. */
  29608. var reEscapeChar = /\\(\\)?/g;
  29609. /** Used to detect host constructors (Safari). */
  29610. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  29611. /** Detect free variable `global` from Node.js. */
  29612. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  29613. /** Detect free variable `self`. */
  29614. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  29615. /** Used as a reference to the global object. */
  29616. var root = freeGlobal || freeSelf || Function('return this')();
  29617. /**
  29618. * Gets the value at `key` of `object`.
  29619. *
  29620. * @private
  29621. * @param {Object} [object] The object to query.
  29622. * @param {string} key The key of the property to get.
  29623. * @returns {*} Returns the property value.
  29624. */
  29625. function getValue(object, key) {
  29626. return object == null ? undefined : object[key];
  29627. }
  29628. /**
  29629. * Checks if `value` is a host object in IE < 9.
  29630. *
  29631. * @private
  29632. * @param {*} value The value to check.
  29633. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  29634. */
  29635. function isHostObject(value) {
  29636. // Many host objects are `Object` objects that can coerce to strings
  29637. // despite having improperly defined `toString` methods.
  29638. var result = false;
  29639. if (value != null && typeof value.toString != 'function') {
  29640. try {
  29641. result = !!(value + '');
  29642. } catch (e) {}
  29643. }
  29644. return result;
  29645. }
  29646. /** Used for built-in method references. */
  29647. var arrayProto = Array.prototype,
  29648. funcProto = Function.prototype,
  29649. objectProto = Object.prototype;
  29650. /** Used to detect overreaching core-js shims. */
  29651. var coreJsData = root['__core-js_shared__'];
  29652. /** Used to detect methods masquerading as native. */
  29653. var maskSrcKey = (function() {
  29654. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  29655. return uid ? ('Symbol(src)_1.' + uid) : '';
  29656. }());
  29657. /** Used to resolve the decompiled source of functions. */
  29658. var funcToString = funcProto.toString;
  29659. /** Used to check objects for own properties. */
  29660. var hasOwnProperty = objectProto.hasOwnProperty;
  29661. /**
  29662. * Used to resolve the
  29663. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  29664. * of values.
  29665. */
  29666. var objectToString = objectProto.toString;
  29667. /** Used to detect if a method is native. */
  29668. var reIsNative = RegExp('^' +
  29669. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  29670. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  29671. );
  29672. /** Built-in value references. */
  29673. var Symbol = root.Symbol,
  29674. splice = arrayProto.splice;
  29675. /* Built-in method references that are verified to be native. */
  29676. var Map = getNative(root, 'Map'),
  29677. nativeCreate = getNative(Object, 'create');
  29678. /** Used to convert symbols to primitives and strings. */
  29679. var symbolProto = Symbol ? Symbol.prototype : undefined,
  29680. symbolToString = symbolProto ? symbolProto.toString : undefined;
  29681. /**
  29682. * Creates a hash object.
  29683. *
  29684. * @private
  29685. * @constructor
  29686. * @param {Array} [entries] The key-value pairs to cache.
  29687. */
  29688. function Hash(entries) {
  29689. var index = -1,
  29690. length = entries ? entries.length : 0;
  29691. this.clear();
  29692. while (++index < length) {
  29693. var entry = entries[index];
  29694. this.set(entry[0], entry[1]);
  29695. }
  29696. }
  29697. /**
  29698. * Removes all key-value entries from the hash.
  29699. *
  29700. * @private
  29701. * @name clear
  29702. * @memberOf Hash
  29703. */
  29704. function hashClear() {
  29705. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  29706. }
  29707. /**
  29708. * Removes `key` and its value from the hash.
  29709. *
  29710. * @private
  29711. * @name delete
  29712. * @memberOf Hash
  29713. * @param {Object} hash The hash to modify.
  29714. * @param {string} key The key of the value to remove.
  29715. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  29716. */
  29717. function hashDelete(key) {
  29718. return this.has(key) && delete this.__data__[key];
  29719. }
  29720. /**
  29721. * Gets the hash value for `key`.
  29722. *
  29723. * @private
  29724. * @name get
  29725. * @memberOf Hash
  29726. * @param {string} key The key of the value to get.
  29727. * @returns {*} Returns the entry value.
  29728. */
  29729. function hashGet(key) {
  29730. var data = this.__data__;
  29731. if (nativeCreate) {
  29732. var result = data[key];
  29733. return result === HASH_UNDEFINED ? undefined : result;
  29734. }
  29735. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  29736. }
  29737. /**
  29738. * Checks if a hash value for `key` exists.
  29739. *
  29740. * @private
  29741. * @name has
  29742. * @memberOf Hash
  29743. * @param {string} key The key of the entry to check.
  29744. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  29745. */
  29746. function hashHas(key) {
  29747. var data = this.__data__;
  29748. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  29749. }
  29750. /**
  29751. * Sets the hash `key` to `value`.
  29752. *
  29753. * @private
  29754. * @name set
  29755. * @memberOf Hash
  29756. * @param {string} key The key of the value to set.
  29757. * @param {*} value The value to set.
  29758. * @returns {Object} Returns the hash instance.
  29759. */
  29760. function hashSet(key, value) {
  29761. var data = this.__data__;
  29762. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  29763. return this;
  29764. }
  29765. // Add methods to `Hash`.
  29766. Hash.prototype.clear = hashClear;
  29767. Hash.prototype['delete'] = hashDelete;
  29768. Hash.prototype.get = hashGet;
  29769. Hash.prototype.has = hashHas;
  29770. Hash.prototype.set = hashSet;
  29771. /**
  29772. * Creates an list cache object.
  29773. *
  29774. * @private
  29775. * @constructor
  29776. * @param {Array} [entries] The key-value pairs to cache.
  29777. */
  29778. function ListCache(entries) {
  29779. var index = -1,
  29780. length = entries ? entries.length : 0;
  29781. this.clear();
  29782. while (++index < length) {
  29783. var entry = entries[index];
  29784. this.set(entry[0], entry[1]);
  29785. }
  29786. }
  29787. /**
  29788. * Removes all key-value entries from the list cache.
  29789. *
  29790. * @private
  29791. * @name clear
  29792. * @memberOf ListCache
  29793. */
  29794. function listCacheClear() {
  29795. this.__data__ = [];
  29796. }
  29797. /**
  29798. * Removes `key` and its value from the list cache.
  29799. *
  29800. * @private
  29801. * @name delete
  29802. * @memberOf ListCache
  29803. * @param {string} key The key of the value to remove.
  29804. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  29805. */
  29806. function listCacheDelete(key) {
  29807. var data = this.__data__,
  29808. index = assocIndexOf(data, key);
  29809. if (index < 0) {
  29810. return false;
  29811. }
  29812. var lastIndex = data.length - 1;
  29813. if (index == lastIndex) {
  29814. data.pop();
  29815. } else {
  29816. splice.call(data, index, 1);
  29817. }
  29818. return true;
  29819. }
  29820. /**
  29821. * Gets the list cache value for `key`.
  29822. *
  29823. * @private
  29824. * @name get
  29825. * @memberOf ListCache
  29826. * @param {string} key The key of the value to get.
  29827. * @returns {*} Returns the entry value.
  29828. */
  29829. function listCacheGet(key) {
  29830. var data = this.__data__,
  29831. index = assocIndexOf(data, key);
  29832. return index < 0 ? undefined : data[index][1];
  29833. }
  29834. /**
  29835. * Checks if a list cache value for `key` exists.
  29836. *
  29837. * @private
  29838. * @name has
  29839. * @memberOf ListCache
  29840. * @param {string} key The key of the entry to check.
  29841. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  29842. */
  29843. function listCacheHas(key) {
  29844. return assocIndexOf(this.__data__, key) > -1;
  29845. }
  29846. /**
  29847. * Sets the list cache `key` to `value`.
  29848. *
  29849. * @private
  29850. * @name set
  29851. * @memberOf ListCache
  29852. * @param {string} key The key of the value to set.
  29853. * @param {*} value The value to set.
  29854. * @returns {Object} Returns the list cache instance.
  29855. */
  29856. function listCacheSet(key, value) {
  29857. var data = this.__data__,
  29858. index = assocIndexOf(data, key);
  29859. if (index < 0) {
  29860. data.push([key, value]);
  29861. } else {
  29862. data[index][1] = value;
  29863. }
  29864. return this;
  29865. }
  29866. // Add methods to `ListCache`.
  29867. ListCache.prototype.clear = listCacheClear;
  29868. ListCache.prototype['delete'] = listCacheDelete;
  29869. ListCache.prototype.get = listCacheGet;
  29870. ListCache.prototype.has = listCacheHas;
  29871. ListCache.prototype.set = listCacheSet;
  29872. /**
  29873. * Creates a map cache object to store key-value pairs.
  29874. *
  29875. * @private
  29876. * @constructor
  29877. * @param {Array} [entries] The key-value pairs to cache.
  29878. */
  29879. function MapCache(entries) {
  29880. var index = -1,
  29881. length = entries ? entries.length : 0;
  29882. this.clear();
  29883. while (++index < length) {
  29884. var entry = entries[index];
  29885. this.set(entry[0], entry[1]);
  29886. }
  29887. }
  29888. /**
  29889. * Removes all key-value entries from the map.
  29890. *
  29891. * @private
  29892. * @name clear
  29893. * @memberOf MapCache
  29894. */
  29895. function mapCacheClear() {
  29896. this.__data__ = {
  29897. 'hash': new Hash,
  29898. 'map': new (Map || ListCache),
  29899. 'string': new Hash
  29900. };
  29901. }
  29902. /**
  29903. * Removes `key` and its value from the map.
  29904. *
  29905. * @private
  29906. * @name delete
  29907. * @memberOf MapCache
  29908. * @param {string} key The key of the value to remove.
  29909. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  29910. */
  29911. function mapCacheDelete(key) {
  29912. return getMapData(this, key)['delete'](key);
  29913. }
  29914. /**
  29915. * Gets the map value for `key`.
  29916. *
  29917. * @private
  29918. * @name get
  29919. * @memberOf MapCache
  29920. * @param {string} key The key of the value to get.
  29921. * @returns {*} Returns the entry value.
  29922. */
  29923. function mapCacheGet(key) {
  29924. return getMapData(this, key).get(key);
  29925. }
  29926. /**
  29927. * Checks if a map value for `key` exists.
  29928. *
  29929. * @private
  29930. * @name has
  29931. * @memberOf MapCache
  29932. * @param {string} key The key of the entry to check.
  29933. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  29934. */
  29935. function mapCacheHas(key) {
  29936. return getMapData(this, key).has(key);
  29937. }
  29938. /**
  29939. * Sets the map `key` to `value`.
  29940. *
  29941. * @private
  29942. * @name set
  29943. * @memberOf MapCache
  29944. * @param {string} key The key of the value to set.
  29945. * @param {*} value The value to set.
  29946. * @returns {Object} Returns the map cache instance.
  29947. */
  29948. function mapCacheSet(key, value) {
  29949. getMapData(this, key).set(key, value);
  29950. return this;
  29951. }
  29952. // Add methods to `MapCache`.
  29953. MapCache.prototype.clear = mapCacheClear;
  29954. MapCache.prototype['delete'] = mapCacheDelete;
  29955. MapCache.prototype.get = mapCacheGet;
  29956. MapCache.prototype.has = mapCacheHas;
  29957. MapCache.prototype.set = mapCacheSet;
  29958. /**
  29959. * Gets the index at which the `key` is found in `array` of key-value pairs.
  29960. *
  29961. * @private
  29962. * @param {Array} array The array to inspect.
  29963. * @param {*} key The key to search for.
  29964. * @returns {number} Returns the index of the matched value, else `-1`.
  29965. */
  29966. function assocIndexOf(array, key) {
  29967. var length = array.length;
  29968. while (length--) {
  29969. if (eq(array[length][0], key)) {
  29970. return length;
  29971. }
  29972. }
  29973. return -1;
  29974. }
  29975. /**
  29976. * The base implementation of `_.get` without support for default values.
  29977. *
  29978. * @private
  29979. * @param {Object} object The object to query.
  29980. * @param {Array|string} path The path of the property to get.
  29981. * @returns {*} Returns the resolved value.
  29982. */
  29983. function baseGet(object, path) {
  29984. path = isKey(path, object) ? [path] : castPath(path);
  29985. var index = 0,
  29986. length = path.length;
  29987. while (object != null && index < length) {
  29988. object = object[toKey(path[index++])];
  29989. }
  29990. return (index && index == length) ? object : undefined;
  29991. }
  29992. /**
  29993. * The base implementation of `_.isNative` without bad shim checks.
  29994. *
  29995. * @private
  29996. * @param {*} value The value to check.
  29997. * @returns {boolean} Returns `true` if `value` is a native function,
  29998. * else `false`.
  29999. */
  30000. function baseIsNative(value) {
  30001. if (!isObject(value) || isMasked(value)) {
  30002. return false;
  30003. }
  30004. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  30005. return pattern.test(toSource(value));
  30006. }
  30007. /**
  30008. * The base implementation of `_.toString` which doesn't convert nullish
  30009. * values to empty strings.
  30010. *
  30011. * @private
  30012. * @param {*} value The value to process.
  30013. * @returns {string} Returns the string.
  30014. */
  30015. function baseToString(value) {
  30016. // Exit early for strings to avoid a performance hit in some environments.
  30017. if (typeof value == 'string') {
  30018. return value;
  30019. }
  30020. if (isSymbol(value)) {
  30021. return symbolToString ? symbolToString.call(value) : '';
  30022. }
  30023. var result = (value + '');
  30024. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  30025. }
  30026. /**
  30027. * Casts `value` to a path array if it's not one.
  30028. *
  30029. * @private
  30030. * @param {*} value The value to inspect.
  30031. * @returns {Array} Returns the cast property path array.
  30032. */
  30033. function castPath(value) {
  30034. return isArray(value) ? value : stringToPath(value);
  30035. }
  30036. /**
  30037. * Gets the data for `map`.
  30038. *
  30039. * @private
  30040. * @param {Object} map The map to query.
  30041. * @param {string} key The reference key.
  30042. * @returns {*} Returns the map data.
  30043. */
  30044. function getMapData(map, key) {
  30045. var data = map.__data__;
  30046. return isKeyable(key)
  30047. ? data[typeof key == 'string' ? 'string' : 'hash']
  30048. : data.map;
  30049. }
  30050. /**
  30051. * Gets the native function at `key` of `object`.
  30052. *
  30053. * @private
  30054. * @param {Object} object The object to query.
  30055. * @param {string} key The key of the method to get.
  30056. * @returns {*} Returns the function if it's native, else `undefined`.
  30057. */
  30058. function getNative(object, key) {
  30059. var value = getValue(object, key);
  30060. return baseIsNative(value) ? value : undefined;
  30061. }
  30062. /**
  30063. * Checks if `value` is a property name and not a property path.
  30064. *
  30065. * @private
  30066. * @param {*} value The value to check.
  30067. * @param {Object} [object] The object to query keys on.
  30068. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  30069. */
  30070. function isKey(value, object) {
  30071. if (isArray(value)) {
  30072. return false;
  30073. }
  30074. var type = typeof value;
  30075. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  30076. value == null || isSymbol(value)) {
  30077. return true;
  30078. }
  30079. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  30080. (object != null && value in Object(object));
  30081. }
  30082. /**
  30083. * Checks if `value` is suitable for use as unique object key.
  30084. *
  30085. * @private
  30086. * @param {*} value The value to check.
  30087. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  30088. */
  30089. function isKeyable(value) {
  30090. var type = typeof value;
  30091. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  30092. ? (value !== '__proto__')
  30093. : (value === null);
  30094. }
  30095. /**
  30096. * Checks if `func` has its source masked.
  30097. *
  30098. * @private
  30099. * @param {Function} func The function to check.
  30100. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  30101. */
  30102. function isMasked(func) {
  30103. return !!maskSrcKey && (maskSrcKey in func);
  30104. }
  30105. /**
  30106. * Converts `string` to a property path array.
  30107. *
  30108. * @private
  30109. * @param {string} string The string to convert.
  30110. * @returns {Array} Returns the property path array.
  30111. */
  30112. var stringToPath = memoize(function(string) {
  30113. string = toString(string);
  30114. var result = [];
  30115. if (reLeadingDot.test(string)) {
  30116. result.push('');
  30117. }
  30118. string.replace(rePropName, function(match, number, quote, string) {
  30119. result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
  30120. });
  30121. return result;
  30122. });
  30123. /**
  30124. * Converts `value` to a string key if it's not a string or symbol.
  30125. *
  30126. * @private
  30127. * @param {*} value The value to inspect.
  30128. * @returns {string|symbol} Returns the key.
  30129. */
  30130. function toKey(value) {
  30131. if (typeof value == 'string' || isSymbol(value)) {
  30132. return value;
  30133. }
  30134. var result = (value + '');
  30135. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  30136. }
  30137. /**
  30138. * Converts `func` to its source code.
  30139. *
  30140. * @private
  30141. * @param {Function} func The function to process.
  30142. * @returns {string} Returns the source code.
  30143. */
  30144. function toSource(func) {
  30145. if (func != null) {
  30146. try {
  30147. return funcToString.call(func);
  30148. } catch (e) {}
  30149. try {
  30150. return (func + '');
  30151. } catch (e) {}
  30152. }
  30153. return '';
  30154. }
  30155. /**
  30156. * Creates a function that memoizes the result of `func`. If `resolver` is
  30157. * provided, it determines the cache key for storing the result based on the
  30158. * arguments provided to the memoized function. By default, the first argument
  30159. * provided to the memoized function is used as the map cache key. The `func`
  30160. * is invoked with the `this` binding of the memoized function.
  30161. *
  30162. * **Note:** The cache is exposed as the `cache` property on the memoized
  30163. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  30164. * constructor with one whose instances implement the
  30165. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  30166. * method interface of `delete`, `get`, `has`, and `set`.
  30167. *
  30168. * @static
  30169. * @memberOf _
  30170. * @since 0.1.0
  30171. * @category Function
  30172. * @param {Function} func The function to have its output memoized.
  30173. * @param {Function} [resolver] The function to resolve the cache key.
  30174. * @returns {Function} Returns the new memoized function.
  30175. * @example
  30176. *
  30177. * var object = { 'a': 1, 'b': 2 };
  30178. * var other = { 'c': 3, 'd': 4 };
  30179. *
  30180. * var values = _.memoize(_.values);
  30181. * values(object);
  30182. * // => [1, 2]
  30183. *
  30184. * values(other);
  30185. * // => [3, 4]
  30186. *
  30187. * object.a = 2;
  30188. * values(object);
  30189. * // => [1, 2]
  30190. *
  30191. * // Modify the result cache.
  30192. * values.cache.set(object, ['a', 'b']);
  30193. * values(object);
  30194. * // => ['a', 'b']
  30195. *
  30196. * // Replace `_.memoize.Cache`.
  30197. * _.memoize.Cache = WeakMap;
  30198. */
  30199. function memoize(func, resolver) {
  30200. if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
  30201. throw new TypeError(FUNC_ERROR_TEXT);
  30202. }
  30203. var memoized = function() {
  30204. var args = arguments,
  30205. key = resolver ? resolver.apply(this, args) : args[0],
  30206. cache = memoized.cache;
  30207. if (cache.has(key)) {
  30208. return cache.get(key);
  30209. }
  30210. var result = func.apply(this, args);
  30211. memoized.cache = cache.set(key, result);
  30212. return result;
  30213. };
  30214. memoized.cache = new (memoize.Cache || MapCache);
  30215. return memoized;
  30216. }
  30217. // Assign cache to `_.memoize`.
  30218. memoize.Cache = MapCache;
  30219. /**
  30220. * Performs a
  30221. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  30222. * comparison between two values to determine if they are equivalent.
  30223. *
  30224. * @static
  30225. * @memberOf _
  30226. * @since 4.0.0
  30227. * @category Lang
  30228. * @param {*} value The value to compare.
  30229. * @param {*} other The other value to compare.
  30230. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  30231. * @example
  30232. *
  30233. * var object = { 'a': 1 };
  30234. * var other = { 'a': 1 };
  30235. *
  30236. * _.eq(object, object);
  30237. * // => true
  30238. *
  30239. * _.eq(object, other);
  30240. * // => false
  30241. *
  30242. * _.eq('a', 'a');
  30243. * // => true
  30244. *
  30245. * _.eq('a', Object('a'));
  30246. * // => false
  30247. *
  30248. * _.eq(NaN, NaN);
  30249. * // => true
  30250. */
  30251. function eq(value, other) {
  30252. return value === other || (value !== value && other !== other);
  30253. }
  30254. /**
  30255. * Checks if `value` is classified as an `Array` object.
  30256. *
  30257. * @static
  30258. * @memberOf _
  30259. * @since 0.1.0
  30260. * @category Lang
  30261. * @param {*} value The value to check.
  30262. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  30263. * @example
  30264. *
  30265. * _.isArray([1, 2, 3]);
  30266. * // => true
  30267. *
  30268. * _.isArray(document.body.children);
  30269. * // => false
  30270. *
  30271. * _.isArray('abc');
  30272. * // => false
  30273. *
  30274. * _.isArray(_.noop);
  30275. * // => false
  30276. */
  30277. var isArray = Array.isArray;
  30278. /**
  30279. * Checks if `value` is classified as a `Function` object.
  30280. *
  30281. * @static
  30282. * @memberOf _
  30283. * @since 0.1.0
  30284. * @category Lang
  30285. * @param {*} value The value to check.
  30286. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  30287. * @example
  30288. *
  30289. * _.isFunction(_);
  30290. * // => true
  30291. *
  30292. * _.isFunction(/abc/);
  30293. * // => false
  30294. */
  30295. function isFunction(value) {
  30296. // The use of `Object#toString` avoids issues with the `typeof` operator
  30297. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  30298. var tag = isObject(value) ? objectToString.call(value) : '';
  30299. return tag == funcTag || tag == genTag;
  30300. }
  30301. /**
  30302. * Checks if `value` is the
  30303. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  30304. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  30305. *
  30306. * @static
  30307. * @memberOf _
  30308. * @since 0.1.0
  30309. * @category Lang
  30310. * @param {*} value The value to check.
  30311. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  30312. * @example
  30313. *
  30314. * _.isObject({});
  30315. * // => true
  30316. *
  30317. * _.isObject([1, 2, 3]);
  30318. * // => true
  30319. *
  30320. * _.isObject(_.noop);
  30321. * // => true
  30322. *
  30323. * _.isObject(null);
  30324. * // => false
  30325. */
  30326. function isObject(value) {
  30327. var type = typeof value;
  30328. return !!value && (type == 'object' || type == 'function');
  30329. }
  30330. /**
  30331. * Checks if `value` is object-like. A value is object-like if it's not `null`
  30332. * and has a `typeof` result of "object".
  30333. *
  30334. * @static
  30335. * @memberOf _
  30336. * @since 4.0.0
  30337. * @category Lang
  30338. * @param {*} value The value to check.
  30339. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  30340. * @example
  30341. *
  30342. * _.isObjectLike({});
  30343. * // => true
  30344. *
  30345. * _.isObjectLike([1, 2, 3]);
  30346. * // => true
  30347. *
  30348. * _.isObjectLike(_.noop);
  30349. * // => false
  30350. *
  30351. * _.isObjectLike(null);
  30352. * // => false
  30353. */
  30354. function isObjectLike(value) {
  30355. return !!value && typeof value == 'object';
  30356. }
  30357. /**
  30358. * Checks if `value` is classified as a `Symbol` primitive or object.
  30359. *
  30360. * @static
  30361. * @memberOf _
  30362. * @since 4.0.0
  30363. * @category Lang
  30364. * @param {*} value The value to check.
  30365. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  30366. * @example
  30367. *
  30368. * _.isSymbol(Symbol.iterator);
  30369. * // => true
  30370. *
  30371. * _.isSymbol('abc');
  30372. * // => false
  30373. */
  30374. function isSymbol(value) {
  30375. return typeof value == 'symbol' ||
  30376. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  30377. }
  30378. /**
  30379. * Converts `value` to a string. An empty string is returned for `null`
  30380. * and `undefined` values. The sign of `-0` is preserved.
  30381. *
  30382. * @static
  30383. * @memberOf _
  30384. * @since 4.0.0
  30385. * @category Lang
  30386. * @param {*} value The value to process.
  30387. * @returns {string} Returns the string.
  30388. * @example
  30389. *
  30390. * _.toString(null);
  30391. * // => ''
  30392. *
  30393. * _.toString(-0);
  30394. * // => '-0'
  30395. *
  30396. * _.toString([1, 2, 3]);
  30397. * // => '1,2,3'
  30398. */
  30399. function toString(value) {
  30400. return value == null ? '' : baseToString(value);
  30401. }
  30402. /**
  30403. * Gets the value at `path` of `object`. If the resolved value is
  30404. * `undefined`, the `defaultValue` is returned in its place.
  30405. *
  30406. * @static
  30407. * @memberOf _
  30408. * @since 3.7.0
  30409. * @category Object
  30410. * @param {Object} object The object to query.
  30411. * @param {Array|string} path The path of the property to get.
  30412. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  30413. * @returns {*} Returns the resolved value.
  30414. * @example
  30415. *
  30416. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  30417. *
  30418. * _.get(object, 'a[0].b.c');
  30419. * // => 3
  30420. *
  30421. * _.get(object, ['a', '0', 'b', 'c']);
  30422. * // => 3
  30423. *
  30424. * _.get(object, 'a.b.c', 'default');
  30425. * // => 'default'
  30426. */
  30427. function get(object, path, defaultValue) {
  30428. var result = object == null ? undefined : baseGet(object, path);
  30429. return result === undefined ? defaultValue : result;
  30430. }
  30431. module.exports = get;
  30432. /***/ }),
  30433. /***/ 855:
  30434. /***/ (function(module, __unusedexports, __webpack_require__) {
  30435. module.exports = registerPlugin;
  30436. const factory = __webpack_require__(47);
  30437. function registerPlugin(plugins, pluginFunction) {
  30438. return factory(
  30439. plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction)
  30440. );
  30441. }
  30442. /***/ }),
  30443. /***/ 863:
  30444. /***/ (function(module, __unusedexports, __webpack_require__) {
  30445. module.exports = authenticationBeforeRequest;
  30446. const btoa = __webpack_require__(675);
  30447. const withAuthorizationPrefix = __webpack_require__(143);
  30448. function authenticationBeforeRequest(state, options) {
  30449. if (typeof state.auth === "string") {
  30450. options.headers.authorization = withAuthorizationPrefix(state.auth);
  30451. return;
  30452. }
  30453. if (state.auth.username) {
  30454. const hash = btoa(`${state.auth.username}:${state.auth.password}`);
  30455. options.headers.authorization = `Basic ${hash}`;
  30456. if (state.otp) {
  30457. options.headers["x-github-otp"] = state.otp;
  30458. }
  30459. return;
  30460. }
  30461. if (state.auth.clientId) {
  30462. // There is a special case for OAuth applications, when `clientId` and `clientSecret` is passed as
  30463. // Basic Authorization instead of query parameters. The only routes where that applies share the same
  30464. // URL though: `/applications/:client_id/tokens/:access_token`.
  30465. //
  30466. // 1. [Check an authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization)
  30467. // 2. [Reset an authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization)
  30468. // 3. [Revoke an authorization for an application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application)
  30469. //
  30470. // We identify by checking the URL. It must merge both "/applications/:client_id/tokens/:access_token"
  30471. // as well as "/applications/123/tokens/token456"
  30472. if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) {
  30473. const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`);
  30474. options.headers.authorization = `Basic ${hash}`;
  30475. return;
  30476. }
  30477. options.url += options.url.indexOf("?") === -1 ? "?" : "&";
  30478. options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`;
  30479. return;
  30480. }
  30481. return Promise.resolve()
  30482. .then(() => {
  30483. return state.auth();
  30484. })
  30485. .then(authorization => {
  30486. options.headers.authorization = withAuthorizationPrefix(authorization);
  30487. });
  30488. }
  30489. /***/ }),
  30490. /***/ 866:
  30491. /***/ (function(module, __unusedexports, __webpack_require__) {
  30492. "use strict";
  30493. var shebangRegex = __webpack_require__(816);
  30494. module.exports = function (str) {
  30495. var match = str.match(shebangRegex);
  30496. if (!match) {
  30497. return null;
  30498. }
  30499. var arr = match[0].replace(/#! ?/, '').split(' ');
  30500. var bin = arr[0].split('/').pop();
  30501. var arg = arr[1];
  30502. return (bin === 'env' ?
  30503. arg :
  30504. bin + (arg ? ' ' + arg : '')
  30505. );
  30506. };
  30507. /***/ }),
  30508. /***/ 874:
  30509. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  30510. "use strict";
  30511. // Copyright (c) Microsoft. All rights reserved.
  30512. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  30513. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  30514. return new (P || (P = Promise))(function (resolve, reject) {
  30515. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  30516. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  30517. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  30518. step((generator = generator.apply(thisArg, _arguments || [])).next());
  30519. });
  30520. };
  30521. Object.defineProperty(exports, "__esModule", { value: true });
  30522. const url = __webpack_require__(835);
  30523. const http = __webpack_require__(605);
  30524. const https = __webpack_require__(211);
  30525. const util = __webpack_require__(729);
  30526. let fs;
  30527. let tunnel;
  30528. var HttpCodes;
  30529. (function (HttpCodes) {
  30530. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  30531. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  30532. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  30533. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  30534. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  30535. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  30536. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  30537. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  30538. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  30539. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  30540. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  30541. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  30542. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  30543. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  30544. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  30545. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  30546. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  30547. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  30548. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  30549. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  30550. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  30551. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  30552. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  30553. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  30554. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  30555. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  30556. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  30557. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  30558. const HttpRedirectCodes = [HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, HttpCodes.PermanentRedirect];
  30559. const HttpResponseRetryCodes = [HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, HttpCodes.GatewayTimeout];
  30560. const NetworkRetryErrors = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED'];
  30561. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  30562. const ExponentialBackoffCeiling = 10;
  30563. const ExponentialBackoffTimeSlice = 5;
  30564. class HttpClientResponse {
  30565. constructor(message) {
  30566. this.message = message;
  30567. }
  30568. readBody() {
  30569. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  30570. let buffer = Buffer.alloc(0);
  30571. const encodingCharset = util.obtainContentCharset(this);
  30572. // Extract Encoding from header: 'content-encoding'
  30573. // Match `gzip`, `gzip, deflate` variations of GZIP encoding
  30574. const contentEncoding = this.message.headers['content-encoding'] || '';
  30575. const isGzippedEncoded = new RegExp('(gzip$)|(gzip, *deflate)').test(contentEncoding);
  30576. this.message.on('data', function (data) {
  30577. const chunk = (typeof data === 'string') ? Buffer.from(data, encodingCharset) : data;
  30578. buffer = Buffer.concat([buffer, chunk]);
  30579. }).on('end', function () {
  30580. return __awaiter(this, void 0, void 0, function* () {
  30581. if (isGzippedEncoded) { // Process GZipped Response Body HERE
  30582. const gunzippedBody = yield util.decompressGzippedContent(buffer, encodingCharset);
  30583. resolve(gunzippedBody);
  30584. }
  30585. else {
  30586. resolve(buffer.toString(encodingCharset));
  30587. }
  30588. });
  30589. }).on('error', function (err) {
  30590. reject(err);
  30591. });
  30592. }));
  30593. }
  30594. }
  30595. exports.HttpClientResponse = HttpClientResponse;
  30596. function isHttps(requestUrl) {
  30597. let parsedUrl = url.parse(requestUrl);
  30598. return parsedUrl.protocol === 'https:';
  30599. }
  30600. exports.isHttps = isHttps;
  30601. var EnvironmentVariables;
  30602. (function (EnvironmentVariables) {
  30603. EnvironmentVariables["HTTP_PROXY"] = "HTTP_PROXY";
  30604. EnvironmentVariables["HTTPS_PROXY"] = "HTTPS_PROXY";
  30605. EnvironmentVariables["NO_PROXY"] = "NO_PROXY";
  30606. })(EnvironmentVariables || (EnvironmentVariables = {}));
  30607. class HttpClient {
  30608. constructor(userAgent, handlers, requestOptions) {
  30609. this._ignoreSslError = false;
  30610. this._allowRedirects = true;
  30611. this._allowRedirectDowngrade = false;
  30612. this._maxRedirects = 50;
  30613. this._allowRetries = false;
  30614. this._maxRetries = 1;
  30615. this._keepAlive = false;
  30616. this._disposed = false;
  30617. this.userAgent = userAgent;
  30618. this.handlers = handlers || [];
  30619. let no_proxy = process.env[EnvironmentVariables.NO_PROXY];
  30620. if (no_proxy) {
  30621. this._httpProxyBypassHosts = [];
  30622. no_proxy.split(',').forEach(bypass => {
  30623. this._httpProxyBypassHosts.push(util.buildProxyBypassRegexFromEnv(bypass));
  30624. });
  30625. }
  30626. this.requestOptions = requestOptions;
  30627. if (requestOptions) {
  30628. if (requestOptions.ignoreSslError != null) {
  30629. this._ignoreSslError = requestOptions.ignoreSslError;
  30630. }
  30631. this._socketTimeout = requestOptions.socketTimeout;
  30632. this._httpProxy = requestOptions.proxy;
  30633. if (requestOptions.proxy && requestOptions.proxy.proxyBypassHosts) {
  30634. this._httpProxyBypassHosts = [];
  30635. requestOptions.proxy.proxyBypassHosts.forEach(bypass => {
  30636. this._httpProxyBypassHosts.push(new RegExp(bypass, 'i'));
  30637. });
  30638. }
  30639. this._certConfig = requestOptions.cert;
  30640. if (this._certConfig) {
  30641. // If using cert, need fs
  30642. fs = __webpack_require__(747);
  30643. // cache the cert content into memory, so we don't have to read it from disk every time
  30644. if (this._certConfig.caFile && fs.existsSync(this._certConfig.caFile)) {
  30645. this._ca = fs.readFileSync(this._certConfig.caFile, 'utf8');
  30646. }
  30647. if (this._certConfig.certFile && fs.existsSync(this._certConfig.certFile)) {
  30648. this._cert = fs.readFileSync(this._certConfig.certFile, 'utf8');
  30649. }
  30650. if (this._certConfig.keyFile && fs.existsSync(this._certConfig.keyFile)) {
  30651. this._key = fs.readFileSync(this._certConfig.keyFile, 'utf8');
  30652. }
  30653. }
  30654. if (requestOptions.allowRedirects != null) {
  30655. this._allowRedirects = requestOptions.allowRedirects;
  30656. }
  30657. if (requestOptions.allowRedirectDowngrade != null) {
  30658. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  30659. }
  30660. if (requestOptions.maxRedirects != null) {
  30661. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  30662. }
  30663. if (requestOptions.keepAlive != null) {
  30664. this._keepAlive = requestOptions.keepAlive;
  30665. }
  30666. if (requestOptions.allowRetries != null) {
  30667. this._allowRetries = requestOptions.allowRetries;
  30668. }
  30669. if (requestOptions.maxRetries != null) {
  30670. this._maxRetries = requestOptions.maxRetries;
  30671. }
  30672. }
  30673. }
  30674. options(requestUrl, additionalHeaders) {
  30675. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  30676. }
  30677. get(requestUrl, additionalHeaders) {
  30678. return this.request('GET', requestUrl, null, additionalHeaders || {});
  30679. }
  30680. del(requestUrl, additionalHeaders) {
  30681. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  30682. }
  30683. post(requestUrl, data, additionalHeaders) {
  30684. return this.request('POST', requestUrl, data, additionalHeaders || {});
  30685. }
  30686. patch(requestUrl, data, additionalHeaders) {
  30687. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  30688. }
  30689. put(requestUrl, data, additionalHeaders) {
  30690. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  30691. }
  30692. head(requestUrl, additionalHeaders) {
  30693. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  30694. }
  30695. sendStream(verb, requestUrl, stream, additionalHeaders) {
  30696. return this.request(verb, requestUrl, stream, additionalHeaders);
  30697. }
  30698. /**
  30699. * Makes a raw http request.
  30700. * All other methods such as get, post, patch, and request ultimately call this.
  30701. * Prefer get, del, post and patch
  30702. */
  30703. request(verb, requestUrl, data, headers) {
  30704. return __awaiter(this, void 0, void 0, function* () {
  30705. if (this._disposed) {
  30706. throw new Error("Client has already been disposed.");
  30707. }
  30708. let parsedUrl = url.parse(requestUrl);
  30709. let info = this._prepareRequest(verb, parsedUrl, headers);
  30710. // Only perform retries on reads since writes may not be idempotent.
  30711. let maxTries = (this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1) ? this._maxRetries + 1 : 1;
  30712. let numTries = 0;
  30713. let response;
  30714. while (numTries < maxTries) {
  30715. try {
  30716. response = yield this.requestRaw(info, data);
  30717. }
  30718. catch (err) {
  30719. numTries++;
  30720. if (err && err.code && NetworkRetryErrors.indexOf(err.code) > -1 && numTries < maxTries) {
  30721. yield this._performExponentialBackoff(numTries);
  30722. continue;
  30723. }
  30724. throw err;
  30725. }
  30726. // Check if it's an authentication challenge
  30727. if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) {
  30728. let authenticationHandler;
  30729. for (let i = 0; i < this.handlers.length; i++) {
  30730. if (this.handlers[i].canHandleAuthentication(response)) {
  30731. authenticationHandler = this.handlers[i];
  30732. break;
  30733. }
  30734. }
  30735. if (authenticationHandler) {
  30736. return authenticationHandler.handleAuthentication(this, info, data);
  30737. }
  30738. else {
  30739. // We have received an unauthorized response but have no handlers to handle it.
  30740. // Let the response return to the caller.
  30741. return response;
  30742. }
  30743. }
  30744. let redirectsRemaining = this._maxRedirects;
  30745. while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1
  30746. && this._allowRedirects
  30747. && redirectsRemaining > 0) {
  30748. const redirectUrl = response.message.headers["location"];
  30749. if (!redirectUrl) {
  30750. // if there's no location to redirect to, we won't
  30751. break;
  30752. }
  30753. let parsedRedirectUrl = url.parse(redirectUrl);
  30754. if (parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) {
  30755. throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");
  30756. }
  30757. // we need to finish reading the response before reassigning response
  30758. // which will leak the open socket.
  30759. yield response.readBody();
  30760. // let's make the request with the new redirectUrl
  30761. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  30762. response = yield this.requestRaw(info, data);
  30763. redirectsRemaining--;
  30764. }
  30765. if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
  30766. // If not a retry code, return immediately instead of retrying
  30767. return response;
  30768. }
  30769. numTries += 1;
  30770. if (numTries < maxTries) {
  30771. yield response.readBody();
  30772. yield this._performExponentialBackoff(numTries);
  30773. }
  30774. }
  30775. return response;
  30776. });
  30777. }
  30778. /**
  30779. * Needs to be called if keepAlive is set to true in request options.
  30780. */
  30781. dispose() {
  30782. if (this._agent) {
  30783. this._agent.destroy();
  30784. }
  30785. this._disposed = true;
  30786. }
  30787. /**
  30788. * Raw request.
  30789. * @param info
  30790. * @param data
  30791. */
  30792. requestRaw(info, data) {
  30793. return new Promise((resolve, reject) => {
  30794. let callbackForResult = function (err, res) {
  30795. if (err) {
  30796. reject(err);
  30797. }
  30798. resolve(res);
  30799. };
  30800. this.requestRawWithCallback(info, data, callbackForResult);
  30801. });
  30802. }
  30803. /**
  30804. * Raw request with callback.
  30805. * @param info
  30806. * @param data
  30807. * @param onResult
  30808. */
  30809. requestRawWithCallback(info, data, onResult) {
  30810. let socket;
  30811. if (typeof (data) === 'string') {
  30812. info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8');
  30813. }
  30814. let callbackCalled = false;
  30815. let handleResult = (err, res) => {
  30816. if (!callbackCalled) {
  30817. callbackCalled = true;
  30818. onResult(err, res);
  30819. }
  30820. };
  30821. let req = info.httpModule.request(info.options, (msg) => {
  30822. let res = new HttpClientResponse(msg);
  30823. handleResult(null, res);
  30824. });
  30825. req.on('socket', (sock) => {
  30826. socket = sock;
  30827. });
  30828. // If we ever get disconnected, we want the socket to timeout eventually
  30829. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  30830. if (socket) {
  30831. socket.destroy();
  30832. }
  30833. handleResult(new Error('Request timeout: ' + info.options.path), null);
  30834. });
  30835. req.on('error', function (err) {
  30836. // err has statusCode property
  30837. // res should have headers
  30838. handleResult(err, null);
  30839. });
  30840. if (data && typeof (data) === 'string') {
  30841. req.write(data, 'utf8');
  30842. }
  30843. if (data && typeof (data) !== 'string') {
  30844. data.on('close', function () {
  30845. req.end();
  30846. });
  30847. data.pipe(req);
  30848. }
  30849. else {
  30850. req.end();
  30851. }
  30852. }
  30853. _prepareRequest(method, requestUrl, headers) {
  30854. const info = {};
  30855. info.parsedUrl = requestUrl;
  30856. const usingSsl = info.parsedUrl.protocol === 'https:';
  30857. info.httpModule = usingSsl ? https : http;
  30858. const defaultPort = usingSsl ? 443 : 80;
  30859. info.options = {};
  30860. info.options.host = info.parsedUrl.hostname;
  30861. info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) : defaultPort;
  30862. info.options.path = (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  30863. info.options.method = method;
  30864. info.options.timeout = (this.requestOptions && this.requestOptions.socketTimeout) || this._socketTimeout;
  30865. this._socketTimeout = info.options.timeout;
  30866. info.options.headers = this._mergeHeaders(headers);
  30867. if (this.userAgent != null) {
  30868. info.options.headers["user-agent"] = this.userAgent;
  30869. }
  30870. info.options.agent = this._getAgent(info.parsedUrl);
  30871. // gives handlers an opportunity to participate
  30872. if (this.handlers && !this._isPresigned(url.format(requestUrl))) {
  30873. this.handlers.forEach((handler) => {
  30874. handler.prepareRequest(info.options);
  30875. });
  30876. }
  30877. return info;
  30878. }
  30879. _isPresigned(requestUrl) {
  30880. if (this.requestOptions && this.requestOptions.presignedUrlPatterns) {
  30881. const patterns = this.requestOptions.presignedUrlPatterns;
  30882. for (let i = 0; i < patterns.length; i++) {
  30883. if (requestUrl.match(patterns[i])) {
  30884. return true;
  30885. }
  30886. }
  30887. }
  30888. return false;
  30889. }
  30890. _mergeHeaders(headers) {
  30891. const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
  30892. if (this.requestOptions && this.requestOptions.headers) {
  30893. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
  30894. }
  30895. return lowercaseKeys(headers || {});
  30896. }
  30897. _getAgent(parsedUrl) {
  30898. let agent;
  30899. let proxy = this._getProxy(parsedUrl);
  30900. let useProxy = proxy.proxyUrl && proxy.proxyUrl.hostname && !this._isMatchInBypassProxyList(parsedUrl);
  30901. if (this._keepAlive && useProxy) {
  30902. agent = this._proxyAgent;
  30903. }
  30904. if (this._keepAlive && !useProxy) {
  30905. agent = this._agent;
  30906. }
  30907. // if agent is already assigned use that agent.
  30908. if (!!agent) {
  30909. return agent;
  30910. }
  30911. const usingSsl = parsedUrl.protocol === 'https:';
  30912. let maxSockets = 100;
  30913. if (!!this.requestOptions) {
  30914. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  30915. }
  30916. if (useProxy) {
  30917. // If using proxy, need tunnel
  30918. if (!tunnel) {
  30919. tunnel = __webpack_require__(413);
  30920. }
  30921. const agentOptions = {
  30922. maxSockets: maxSockets,
  30923. keepAlive: this._keepAlive,
  30924. proxy: {
  30925. proxyAuth: proxy.proxyAuth,
  30926. host: proxy.proxyUrl.hostname,
  30927. port: proxy.proxyUrl.port
  30928. },
  30929. };
  30930. let tunnelAgent;
  30931. const overHttps = proxy.proxyUrl.protocol === 'https:';
  30932. if (usingSsl) {
  30933. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  30934. }
  30935. else {
  30936. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  30937. }
  30938. agent = tunnelAgent(agentOptions);
  30939. this._proxyAgent = agent;
  30940. }
  30941. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  30942. if (this._keepAlive && !agent) {
  30943. const options = { keepAlive: this._keepAlive, maxSockets: maxSockets };
  30944. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  30945. this._agent = agent;
  30946. }
  30947. // if not using private agent and tunnel agent isn't setup then use global agent
  30948. if (!agent) {
  30949. agent = usingSsl ? https.globalAgent : http.globalAgent;
  30950. }
  30951. if (usingSsl && this._ignoreSslError) {
  30952. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  30953. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  30954. // we have to cast it to any and change it directly
  30955. agent.options = Object.assign(agent.options || {}, { rejectUnauthorized: false });
  30956. }
  30957. if (usingSsl && this._certConfig) {
  30958. agent.options = Object.assign(agent.options || {}, { ca: this._ca, cert: this._cert, key: this._key, passphrase: this._certConfig.passphrase });
  30959. }
  30960. return agent;
  30961. }
  30962. _getProxy(parsedUrl) {
  30963. let usingSsl = parsedUrl.protocol === 'https:';
  30964. let proxyConfig = this._httpProxy;
  30965. // fallback to http_proxy and https_proxy env
  30966. let https_proxy = process.env[EnvironmentVariables.HTTPS_PROXY];
  30967. let http_proxy = process.env[EnvironmentVariables.HTTP_PROXY];
  30968. if (!proxyConfig) {
  30969. if (https_proxy && usingSsl) {
  30970. proxyConfig = {
  30971. proxyUrl: https_proxy
  30972. };
  30973. }
  30974. else if (http_proxy) {
  30975. proxyConfig = {
  30976. proxyUrl: http_proxy
  30977. };
  30978. }
  30979. }
  30980. let proxyUrl;
  30981. let proxyAuth;
  30982. if (proxyConfig) {
  30983. if (proxyConfig.proxyUrl.length > 0) {
  30984. proxyUrl = url.parse(proxyConfig.proxyUrl);
  30985. }
  30986. if (proxyConfig.proxyUsername || proxyConfig.proxyPassword) {
  30987. proxyAuth = proxyConfig.proxyUsername + ":" + proxyConfig.proxyPassword;
  30988. }
  30989. }
  30990. return { proxyUrl: proxyUrl, proxyAuth: proxyAuth };
  30991. }
  30992. _isMatchInBypassProxyList(parsedUrl) {
  30993. if (!this._httpProxyBypassHosts) {
  30994. return false;
  30995. }
  30996. let bypass = false;
  30997. this._httpProxyBypassHosts.forEach(bypassHost => {
  30998. if (bypassHost.test(parsedUrl.href)) {
  30999. bypass = true;
  31000. }
  31001. });
  31002. return bypass;
  31003. }
  31004. _performExponentialBackoff(retryNumber) {
  31005. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  31006. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  31007. return new Promise(resolve => setTimeout(() => resolve(), ms));
  31008. }
  31009. }
  31010. exports.HttpClient = HttpClient;
  31011. /***/ }),
  31012. /***/ 881:
  31013. /***/ (function(module) {
  31014. "use strict";
  31015. const isWin = process.platform === 'win32';
  31016. function notFoundError(original, syscall) {
  31017. return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
  31018. code: 'ENOENT',
  31019. errno: 'ENOENT',
  31020. syscall: `${syscall} ${original.command}`,
  31021. path: original.command,
  31022. spawnargs: original.args,
  31023. });
  31024. }
  31025. function hookChildProcess(cp, parsed) {
  31026. if (!isWin) {
  31027. return;
  31028. }
  31029. const originalEmit = cp.emit;
  31030. cp.emit = function (name, arg1) {
  31031. // If emitting "exit" event and exit code is 1, we need to check if
  31032. // the command exists and emit an "error" instead
  31033. // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
  31034. if (name === 'exit') {
  31035. const err = verifyENOENT(arg1, parsed, 'spawn');
  31036. if (err) {
  31037. return originalEmit.call(cp, 'error', err);
  31038. }
  31039. }
  31040. return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
  31041. };
  31042. }
  31043. function verifyENOENT(status, parsed) {
  31044. if (isWin && status === 1 && !parsed.file) {
  31045. return notFoundError(parsed.original, 'spawn');
  31046. }
  31047. return null;
  31048. }
  31049. function verifyENOENTSync(status, parsed) {
  31050. if (isWin && status === 1 && !parsed.file) {
  31051. return notFoundError(parsed.original, 'spawnSync');
  31052. }
  31053. return null;
  31054. }
  31055. module.exports = {
  31056. hookChildProcess,
  31057. verifyENOENT,
  31058. verifyENOENTSync,
  31059. notFoundError,
  31060. };
  31061. /***/ }),
  31062. /***/ 883:
  31063. /***/ (function(module) {
  31064. /**
  31065. * lodash (Custom Build) <https://lodash.com/>
  31066. * Build: `lodash modularize exports="npm" -o ./`
  31067. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  31068. * Released under MIT license <https://lodash.com/license>
  31069. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  31070. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  31071. */
  31072. /** Used as the `TypeError` message for "Functions" methods. */
  31073. var FUNC_ERROR_TEXT = 'Expected a function';
  31074. /** Used to stand-in for `undefined` hash values. */
  31075. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  31076. /** Used as references for various `Number` constants. */
  31077. var INFINITY = 1 / 0,
  31078. MAX_SAFE_INTEGER = 9007199254740991;
  31079. /** `Object#toString` result references. */
  31080. var funcTag = '[object Function]',
  31081. genTag = '[object GeneratorFunction]',
  31082. symbolTag = '[object Symbol]';
  31083. /** Used to match property names within property paths. */
  31084. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  31085. reIsPlainProp = /^\w*$/,
  31086. reLeadingDot = /^\./,
  31087. rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  31088. /**
  31089. * Used to match `RegExp`
  31090. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  31091. */
  31092. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  31093. /** Used to match backslashes in property paths. */
  31094. var reEscapeChar = /\\(\\)?/g;
  31095. /** Used to detect host constructors (Safari). */
  31096. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  31097. /** Used to detect unsigned integer values. */
  31098. var reIsUint = /^(?:0|[1-9]\d*)$/;
  31099. /** Detect free variable `global` from Node.js. */
  31100. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  31101. /** Detect free variable `self`. */
  31102. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  31103. /** Used as a reference to the global object. */
  31104. var root = freeGlobal || freeSelf || Function('return this')();
  31105. /**
  31106. * Gets the value at `key` of `object`.
  31107. *
  31108. * @private
  31109. * @param {Object} [object] The object to query.
  31110. * @param {string} key The key of the property to get.
  31111. * @returns {*} Returns the property value.
  31112. */
  31113. function getValue(object, key) {
  31114. return object == null ? undefined : object[key];
  31115. }
  31116. /**
  31117. * Checks if `value` is a host object in IE < 9.
  31118. *
  31119. * @private
  31120. * @param {*} value The value to check.
  31121. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  31122. */
  31123. function isHostObject(value) {
  31124. // Many host objects are `Object` objects that can coerce to strings
  31125. // despite having improperly defined `toString` methods.
  31126. var result = false;
  31127. if (value != null && typeof value.toString != 'function') {
  31128. try {
  31129. result = !!(value + '');
  31130. } catch (e) {}
  31131. }
  31132. return result;
  31133. }
  31134. /** Used for built-in method references. */
  31135. var arrayProto = Array.prototype,
  31136. funcProto = Function.prototype,
  31137. objectProto = Object.prototype;
  31138. /** Used to detect overreaching core-js shims. */
  31139. var coreJsData = root['__core-js_shared__'];
  31140. /** Used to detect methods masquerading as native. */
  31141. var maskSrcKey = (function() {
  31142. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  31143. return uid ? ('Symbol(src)_1.' + uid) : '';
  31144. }());
  31145. /** Used to resolve the decompiled source of functions. */
  31146. var funcToString = funcProto.toString;
  31147. /** Used to check objects for own properties. */
  31148. var hasOwnProperty = objectProto.hasOwnProperty;
  31149. /**
  31150. * Used to resolve the
  31151. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  31152. * of values.
  31153. */
  31154. var objectToString = objectProto.toString;
  31155. /** Used to detect if a method is native. */
  31156. var reIsNative = RegExp('^' +
  31157. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  31158. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  31159. );
  31160. /** Built-in value references. */
  31161. var Symbol = root.Symbol,
  31162. splice = arrayProto.splice;
  31163. /* Built-in method references that are verified to be native. */
  31164. var Map = getNative(root, 'Map'),
  31165. nativeCreate = getNative(Object, 'create');
  31166. /** Used to convert symbols to primitives and strings. */
  31167. var symbolProto = Symbol ? Symbol.prototype : undefined,
  31168. symbolToString = symbolProto ? symbolProto.toString : undefined;
  31169. /**
  31170. * Creates a hash object.
  31171. *
  31172. * @private
  31173. * @constructor
  31174. * @param {Array} [entries] The key-value pairs to cache.
  31175. */
  31176. function Hash(entries) {
  31177. var index = -1,
  31178. length = entries ? entries.length : 0;
  31179. this.clear();
  31180. while (++index < length) {
  31181. var entry = entries[index];
  31182. this.set(entry[0], entry[1]);
  31183. }
  31184. }
  31185. /**
  31186. * Removes all key-value entries from the hash.
  31187. *
  31188. * @private
  31189. * @name clear
  31190. * @memberOf Hash
  31191. */
  31192. function hashClear() {
  31193. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  31194. }
  31195. /**
  31196. * Removes `key` and its value from the hash.
  31197. *
  31198. * @private
  31199. * @name delete
  31200. * @memberOf Hash
  31201. * @param {Object} hash The hash to modify.
  31202. * @param {string} key The key of the value to remove.
  31203. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  31204. */
  31205. function hashDelete(key) {
  31206. return this.has(key) && delete this.__data__[key];
  31207. }
  31208. /**
  31209. * Gets the hash value for `key`.
  31210. *
  31211. * @private
  31212. * @name get
  31213. * @memberOf Hash
  31214. * @param {string} key The key of the value to get.
  31215. * @returns {*} Returns the entry value.
  31216. */
  31217. function hashGet(key) {
  31218. var data = this.__data__;
  31219. if (nativeCreate) {
  31220. var result = data[key];
  31221. return result === HASH_UNDEFINED ? undefined : result;
  31222. }
  31223. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  31224. }
  31225. /**
  31226. * Checks if a hash value for `key` exists.
  31227. *
  31228. * @private
  31229. * @name has
  31230. * @memberOf Hash
  31231. * @param {string} key The key of the entry to check.
  31232. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  31233. */
  31234. function hashHas(key) {
  31235. var data = this.__data__;
  31236. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  31237. }
  31238. /**
  31239. * Sets the hash `key` to `value`.
  31240. *
  31241. * @private
  31242. * @name set
  31243. * @memberOf Hash
  31244. * @param {string} key The key of the value to set.
  31245. * @param {*} value The value to set.
  31246. * @returns {Object} Returns the hash instance.
  31247. */
  31248. function hashSet(key, value) {
  31249. var data = this.__data__;
  31250. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  31251. return this;
  31252. }
  31253. // Add methods to `Hash`.
  31254. Hash.prototype.clear = hashClear;
  31255. Hash.prototype['delete'] = hashDelete;
  31256. Hash.prototype.get = hashGet;
  31257. Hash.prototype.has = hashHas;
  31258. Hash.prototype.set = hashSet;
  31259. /**
  31260. * Creates an list cache object.
  31261. *
  31262. * @private
  31263. * @constructor
  31264. * @param {Array} [entries] The key-value pairs to cache.
  31265. */
  31266. function ListCache(entries) {
  31267. var index = -1,
  31268. length = entries ? entries.length : 0;
  31269. this.clear();
  31270. while (++index < length) {
  31271. var entry = entries[index];
  31272. this.set(entry[0], entry[1]);
  31273. }
  31274. }
  31275. /**
  31276. * Removes all key-value entries from the list cache.
  31277. *
  31278. * @private
  31279. * @name clear
  31280. * @memberOf ListCache
  31281. */
  31282. function listCacheClear() {
  31283. this.__data__ = [];
  31284. }
  31285. /**
  31286. * Removes `key` and its value from the list cache.
  31287. *
  31288. * @private
  31289. * @name delete
  31290. * @memberOf ListCache
  31291. * @param {string} key The key of the value to remove.
  31292. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  31293. */
  31294. function listCacheDelete(key) {
  31295. var data = this.__data__,
  31296. index = assocIndexOf(data, key);
  31297. if (index < 0) {
  31298. return false;
  31299. }
  31300. var lastIndex = data.length - 1;
  31301. if (index == lastIndex) {
  31302. data.pop();
  31303. } else {
  31304. splice.call(data, index, 1);
  31305. }
  31306. return true;
  31307. }
  31308. /**
  31309. * Gets the list cache value for `key`.
  31310. *
  31311. * @private
  31312. * @name get
  31313. * @memberOf ListCache
  31314. * @param {string} key The key of the value to get.
  31315. * @returns {*} Returns the entry value.
  31316. */
  31317. function listCacheGet(key) {
  31318. var data = this.__data__,
  31319. index = assocIndexOf(data, key);
  31320. return index < 0 ? undefined : data[index][1];
  31321. }
  31322. /**
  31323. * Checks if a list cache value for `key` exists.
  31324. *
  31325. * @private
  31326. * @name has
  31327. * @memberOf ListCache
  31328. * @param {string} key The key of the entry to check.
  31329. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  31330. */
  31331. function listCacheHas(key) {
  31332. return assocIndexOf(this.__data__, key) > -1;
  31333. }
  31334. /**
  31335. * Sets the list cache `key` to `value`.
  31336. *
  31337. * @private
  31338. * @name set
  31339. * @memberOf ListCache
  31340. * @param {string} key The key of the value to set.
  31341. * @param {*} value The value to set.
  31342. * @returns {Object} Returns the list cache instance.
  31343. */
  31344. function listCacheSet(key, value) {
  31345. var data = this.__data__,
  31346. index = assocIndexOf(data, key);
  31347. if (index < 0) {
  31348. data.push([key, value]);
  31349. } else {
  31350. data[index][1] = value;
  31351. }
  31352. return this;
  31353. }
  31354. // Add methods to `ListCache`.
  31355. ListCache.prototype.clear = listCacheClear;
  31356. ListCache.prototype['delete'] = listCacheDelete;
  31357. ListCache.prototype.get = listCacheGet;
  31358. ListCache.prototype.has = listCacheHas;
  31359. ListCache.prototype.set = listCacheSet;
  31360. /**
  31361. * Creates a map cache object to store key-value pairs.
  31362. *
  31363. * @private
  31364. * @constructor
  31365. * @param {Array} [entries] The key-value pairs to cache.
  31366. */
  31367. function MapCache(entries) {
  31368. var index = -1,
  31369. length = entries ? entries.length : 0;
  31370. this.clear();
  31371. while (++index < length) {
  31372. var entry = entries[index];
  31373. this.set(entry[0], entry[1]);
  31374. }
  31375. }
  31376. /**
  31377. * Removes all key-value entries from the map.
  31378. *
  31379. * @private
  31380. * @name clear
  31381. * @memberOf MapCache
  31382. */
  31383. function mapCacheClear() {
  31384. this.__data__ = {
  31385. 'hash': new Hash,
  31386. 'map': new (Map || ListCache),
  31387. 'string': new Hash
  31388. };
  31389. }
  31390. /**
  31391. * Removes `key` and its value from the map.
  31392. *
  31393. * @private
  31394. * @name delete
  31395. * @memberOf MapCache
  31396. * @param {string} key The key of the value to remove.
  31397. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  31398. */
  31399. function mapCacheDelete(key) {
  31400. return getMapData(this, key)['delete'](key);
  31401. }
  31402. /**
  31403. * Gets the map value for `key`.
  31404. *
  31405. * @private
  31406. * @name get
  31407. * @memberOf MapCache
  31408. * @param {string} key The key of the value to get.
  31409. * @returns {*} Returns the entry value.
  31410. */
  31411. function mapCacheGet(key) {
  31412. return getMapData(this, key).get(key);
  31413. }
  31414. /**
  31415. * Checks if a map value for `key` exists.
  31416. *
  31417. * @private
  31418. * @name has
  31419. * @memberOf MapCache
  31420. * @param {string} key The key of the entry to check.
  31421. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  31422. */
  31423. function mapCacheHas(key) {
  31424. return getMapData(this, key).has(key);
  31425. }
  31426. /**
  31427. * Sets the map `key` to `value`.
  31428. *
  31429. * @private
  31430. * @name set
  31431. * @memberOf MapCache
  31432. * @param {string} key The key of the value to set.
  31433. * @param {*} value The value to set.
  31434. * @returns {Object} Returns the map cache instance.
  31435. */
  31436. function mapCacheSet(key, value) {
  31437. getMapData(this, key).set(key, value);
  31438. return this;
  31439. }
  31440. // Add methods to `MapCache`.
  31441. MapCache.prototype.clear = mapCacheClear;
  31442. MapCache.prototype['delete'] = mapCacheDelete;
  31443. MapCache.prototype.get = mapCacheGet;
  31444. MapCache.prototype.has = mapCacheHas;
  31445. MapCache.prototype.set = mapCacheSet;
  31446. /**
  31447. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  31448. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  31449. * for equality comparisons.
  31450. *
  31451. * @private
  31452. * @param {Object} object The object to modify.
  31453. * @param {string} key The key of the property to assign.
  31454. * @param {*} value The value to assign.
  31455. */
  31456. function assignValue(object, key, value) {
  31457. var objValue = object[key];
  31458. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  31459. (value === undefined && !(key in object))) {
  31460. object[key] = value;
  31461. }
  31462. }
  31463. /**
  31464. * Gets the index at which the `key` is found in `array` of key-value pairs.
  31465. *
  31466. * @private
  31467. * @param {Array} array The array to inspect.
  31468. * @param {*} key The key to search for.
  31469. * @returns {number} Returns the index of the matched value, else `-1`.
  31470. */
  31471. function assocIndexOf(array, key) {
  31472. var length = array.length;
  31473. while (length--) {
  31474. if (eq(array[length][0], key)) {
  31475. return length;
  31476. }
  31477. }
  31478. return -1;
  31479. }
  31480. /**
  31481. * The base implementation of `_.isNative` without bad shim checks.
  31482. *
  31483. * @private
  31484. * @param {*} value The value to check.
  31485. * @returns {boolean} Returns `true` if `value` is a native function,
  31486. * else `false`.
  31487. */
  31488. function baseIsNative(value) {
  31489. if (!isObject(value) || isMasked(value)) {
  31490. return false;
  31491. }
  31492. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  31493. return pattern.test(toSource(value));
  31494. }
  31495. /**
  31496. * The base implementation of `_.set`.
  31497. *
  31498. * @private
  31499. * @param {Object} object The object to modify.
  31500. * @param {Array|string} path The path of the property to set.
  31501. * @param {*} value The value to set.
  31502. * @param {Function} [customizer] The function to customize path creation.
  31503. * @returns {Object} Returns `object`.
  31504. */
  31505. function baseSet(object, path, value, customizer) {
  31506. if (!isObject(object)) {
  31507. return object;
  31508. }
  31509. path = isKey(path, object) ? [path] : castPath(path);
  31510. var index = -1,
  31511. length = path.length,
  31512. lastIndex = length - 1,
  31513. nested = object;
  31514. while (nested != null && ++index < length) {
  31515. var key = toKey(path[index]),
  31516. newValue = value;
  31517. if (index != lastIndex) {
  31518. var objValue = nested[key];
  31519. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  31520. if (newValue === undefined) {
  31521. newValue = isObject(objValue)
  31522. ? objValue
  31523. : (isIndex(path[index + 1]) ? [] : {});
  31524. }
  31525. }
  31526. assignValue(nested, key, newValue);
  31527. nested = nested[key];
  31528. }
  31529. return object;
  31530. }
  31531. /**
  31532. * The base implementation of `_.toString` which doesn't convert nullish
  31533. * values to empty strings.
  31534. *
  31535. * @private
  31536. * @param {*} value The value to process.
  31537. * @returns {string} Returns the string.
  31538. */
  31539. function baseToString(value) {
  31540. // Exit early for strings to avoid a performance hit in some environments.
  31541. if (typeof value == 'string') {
  31542. return value;
  31543. }
  31544. if (isSymbol(value)) {
  31545. return symbolToString ? symbolToString.call(value) : '';
  31546. }
  31547. var result = (value + '');
  31548. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  31549. }
  31550. /**
  31551. * Casts `value` to a path array if it's not one.
  31552. *
  31553. * @private
  31554. * @param {*} value The value to inspect.
  31555. * @returns {Array} Returns the cast property path array.
  31556. */
  31557. function castPath(value) {
  31558. return isArray(value) ? value : stringToPath(value);
  31559. }
  31560. /**
  31561. * Gets the data for `map`.
  31562. *
  31563. * @private
  31564. * @param {Object} map The map to query.
  31565. * @param {string} key The reference key.
  31566. * @returns {*} Returns the map data.
  31567. */
  31568. function getMapData(map, key) {
  31569. var data = map.__data__;
  31570. return isKeyable(key)
  31571. ? data[typeof key == 'string' ? 'string' : 'hash']
  31572. : data.map;
  31573. }
  31574. /**
  31575. * Gets the native function at `key` of `object`.
  31576. *
  31577. * @private
  31578. * @param {Object} object The object to query.
  31579. * @param {string} key The key of the method to get.
  31580. * @returns {*} Returns the function if it's native, else `undefined`.
  31581. */
  31582. function getNative(object, key) {
  31583. var value = getValue(object, key);
  31584. return baseIsNative(value) ? value : undefined;
  31585. }
  31586. /**
  31587. * Checks if `value` is a valid array-like index.
  31588. *
  31589. * @private
  31590. * @param {*} value The value to check.
  31591. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  31592. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  31593. */
  31594. function isIndex(value, length) {
  31595. length = length == null ? MAX_SAFE_INTEGER : length;
  31596. return !!length &&
  31597. (typeof value == 'number' || reIsUint.test(value)) &&
  31598. (value > -1 && value % 1 == 0 && value < length);
  31599. }
  31600. /**
  31601. * Checks if `value` is a property name and not a property path.
  31602. *
  31603. * @private
  31604. * @param {*} value The value to check.
  31605. * @param {Object} [object] The object to query keys on.
  31606. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  31607. */
  31608. function isKey(value, object) {
  31609. if (isArray(value)) {
  31610. return false;
  31611. }
  31612. var type = typeof value;
  31613. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  31614. value == null || isSymbol(value)) {
  31615. return true;
  31616. }
  31617. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  31618. (object != null && value in Object(object));
  31619. }
  31620. /**
  31621. * Checks if `value` is suitable for use as unique object key.
  31622. *
  31623. * @private
  31624. * @param {*} value The value to check.
  31625. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  31626. */
  31627. function isKeyable(value) {
  31628. var type = typeof value;
  31629. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  31630. ? (value !== '__proto__')
  31631. : (value === null);
  31632. }
  31633. /**
  31634. * Checks if `func` has its source masked.
  31635. *
  31636. * @private
  31637. * @param {Function} func The function to check.
  31638. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  31639. */
  31640. function isMasked(func) {
  31641. return !!maskSrcKey && (maskSrcKey in func);
  31642. }
  31643. /**
  31644. * Converts `string` to a property path array.
  31645. *
  31646. * @private
  31647. * @param {string} string The string to convert.
  31648. * @returns {Array} Returns the property path array.
  31649. */
  31650. var stringToPath = memoize(function(string) {
  31651. string = toString(string);
  31652. var result = [];
  31653. if (reLeadingDot.test(string)) {
  31654. result.push('');
  31655. }
  31656. string.replace(rePropName, function(match, number, quote, string) {
  31657. result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
  31658. });
  31659. return result;
  31660. });
  31661. /**
  31662. * Converts `value` to a string key if it's not a string or symbol.
  31663. *
  31664. * @private
  31665. * @param {*} value The value to inspect.
  31666. * @returns {string|symbol} Returns the key.
  31667. */
  31668. function toKey(value) {
  31669. if (typeof value == 'string' || isSymbol(value)) {
  31670. return value;
  31671. }
  31672. var result = (value + '');
  31673. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  31674. }
  31675. /**
  31676. * Converts `func` to its source code.
  31677. *
  31678. * @private
  31679. * @param {Function} func The function to process.
  31680. * @returns {string} Returns the source code.
  31681. */
  31682. function toSource(func) {
  31683. if (func != null) {
  31684. try {
  31685. return funcToString.call(func);
  31686. } catch (e) {}
  31687. try {
  31688. return (func + '');
  31689. } catch (e) {}
  31690. }
  31691. return '';
  31692. }
  31693. /**
  31694. * Creates a function that memoizes the result of `func`. If `resolver` is
  31695. * provided, it determines the cache key for storing the result based on the
  31696. * arguments provided to the memoized function. By default, the first argument
  31697. * provided to the memoized function is used as the map cache key. The `func`
  31698. * is invoked with the `this` binding of the memoized function.
  31699. *
  31700. * **Note:** The cache is exposed as the `cache` property on the memoized
  31701. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  31702. * constructor with one whose instances implement the
  31703. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  31704. * method interface of `delete`, `get`, `has`, and `set`.
  31705. *
  31706. * @static
  31707. * @memberOf _
  31708. * @since 0.1.0
  31709. * @category Function
  31710. * @param {Function} func The function to have its output memoized.
  31711. * @param {Function} [resolver] The function to resolve the cache key.
  31712. * @returns {Function} Returns the new memoized function.
  31713. * @example
  31714. *
  31715. * var object = { 'a': 1, 'b': 2 };
  31716. * var other = { 'c': 3, 'd': 4 };
  31717. *
  31718. * var values = _.memoize(_.values);
  31719. * values(object);
  31720. * // => [1, 2]
  31721. *
  31722. * values(other);
  31723. * // => [3, 4]
  31724. *
  31725. * object.a = 2;
  31726. * values(object);
  31727. * // => [1, 2]
  31728. *
  31729. * // Modify the result cache.
  31730. * values.cache.set(object, ['a', 'b']);
  31731. * values(object);
  31732. * // => ['a', 'b']
  31733. *
  31734. * // Replace `_.memoize.Cache`.
  31735. * _.memoize.Cache = WeakMap;
  31736. */
  31737. function memoize(func, resolver) {
  31738. if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
  31739. throw new TypeError(FUNC_ERROR_TEXT);
  31740. }
  31741. var memoized = function() {
  31742. var args = arguments,
  31743. key = resolver ? resolver.apply(this, args) : args[0],
  31744. cache = memoized.cache;
  31745. if (cache.has(key)) {
  31746. return cache.get(key);
  31747. }
  31748. var result = func.apply(this, args);
  31749. memoized.cache = cache.set(key, result);
  31750. return result;
  31751. };
  31752. memoized.cache = new (memoize.Cache || MapCache);
  31753. return memoized;
  31754. }
  31755. // Assign cache to `_.memoize`.
  31756. memoize.Cache = MapCache;
  31757. /**
  31758. * Performs a
  31759. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  31760. * comparison between two values to determine if they are equivalent.
  31761. *
  31762. * @static
  31763. * @memberOf _
  31764. * @since 4.0.0
  31765. * @category Lang
  31766. * @param {*} value The value to compare.
  31767. * @param {*} other The other value to compare.
  31768. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  31769. * @example
  31770. *
  31771. * var object = { 'a': 1 };
  31772. * var other = { 'a': 1 };
  31773. *
  31774. * _.eq(object, object);
  31775. * // => true
  31776. *
  31777. * _.eq(object, other);
  31778. * // => false
  31779. *
  31780. * _.eq('a', 'a');
  31781. * // => true
  31782. *
  31783. * _.eq('a', Object('a'));
  31784. * // => false
  31785. *
  31786. * _.eq(NaN, NaN);
  31787. * // => true
  31788. */
  31789. function eq(value, other) {
  31790. return value === other || (value !== value && other !== other);
  31791. }
  31792. /**
  31793. * Checks if `value` is classified as an `Array` object.
  31794. *
  31795. * @static
  31796. * @memberOf _
  31797. * @since 0.1.0
  31798. * @category Lang
  31799. * @param {*} value The value to check.
  31800. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  31801. * @example
  31802. *
  31803. * _.isArray([1, 2, 3]);
  31804. * // => true
  31805. *
  31806. * _.isArray(document.body.children);
  31807. * // => false
  31808. *
  31809. * _.isArray('abc');
  31810. * // => false
  31811. *
  31812. * _.isArray(_.noop);
  31813. * // => false
  31814. */
  31815. var isArray = Array.isArray;
  31816. /**
  31817. * Checks if `value` is classified as a `Function` object.
  31818. *
  31819. * @static
  31820. * @memberOf _
  31821. * @since 0.1.0
  31822. * @category Lang
  31823. * @param {*} value The value to check.
  31824. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  31825. * @example
  31826. *
  31827. * _.isFunction(_);
  31828. * // => true
  31829. *
  31830. * _.isFunction(/abc/);
  31831. * // => false
  31832. */
  31833. function isFunction(value) {
  31834. // The use of `Object#toString` avoids issues with the `typeof` operator
  31835. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  31836. var tag = isObject(value) ? objectToString.call(value) : '';
  31837. return tag == funcTag || tag == genTag;
  31838. }
  31839. /**
  31840. * Checks if `value` is the
  31841. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  31842. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  31843. *
  31844. * @static
  31845. * @memberOf _
  31846. * @since 0.1.0
  31847. * @category Lang
  31848. * @param {*} value The value to check.
  31849. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  31850. * @example
  31851. *
  31852. * _.isObject({});
  31853. * // => true
  31854. *
  31855. * _.isObject([1, 2, 3]);
  31856. * // => true
  31857. *
  31858. * _.isObject(_.noop);
  31859. * // => true
  31860. *
  31861. * _.isObject(null);
  31862. * // => false
  31863. */
  31864. function isObject(value) {
  31865. var type = typeof value;
  31866. return !!value && (type == 'object' || type == 'function');
  31867. }
  31868. /**
  31869. * Checks if `value` is object-like. A value is object-like if it's not `null`
  31870. * and has a `typeof` result of "object".
  31871. *
  31872. * @static
  31873. * @memberOf _
  31874. * @since 4.0.0
  31875. * @category Lang
  31876. * @param {*} value The value to check.
  31877. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  31878. * @example
  31879. *
  31880. * _.isObjectLike({});
  31881. * // => true
  31882. *
  31883. * _.isObjectLike([1, 2, 3]);
  31884. * // => true
  31885. *
  31886. * _.isObjectLike(_.noop);
  31887. * // => false
  31888. *
  31889. * _.isObjectLike(null);
  31890. * // => false
  31891. */
  31892. function isObjectLike(value) {
  31893. return !!value && typeof value == 'object';
  31894. }
  31895. /**
  31896. * Checks if `value` is classified as a `Symbol` primitive or object.
  31897. *
  31898. * @static
  31899. * @memberOf _
  31900. * @since 4.0.0
  31901. * @category Lang
  31902. * @param {*} value The value to check.
  31903. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  31904. * @example
  31905. *
  31906. * _.isSymbol(Symbol.iterator);
  31907. * // => true
  31908. *
  31909. * _.isSymbol('abc');
  31910. * // => false
  31911. */
  31912. function isSymbol(value) {
  31913. return typeof value == 'symbol' ||
  31914. (isObjectLike(value) && objectToString.call(value) == symbolTag);
  31915. }
  31916. /**
  31917. * Converts `value` to a string. An empty string is returned for `null`
  31918. * and `undefined` values. The sign of `-0` is preserved.
  31919. *
  31920. * @static
  31921. * @memberOf _
  31922. * @since 4.0.0
  31923. * @category Lang
  31924. * @param {*} value The value to process.
  31925. * @returns {string} Returns the string.
  31926. * @example
  31927. *
  31928. * _.toString(null);
  31929. * // => ''
  31930. *
  31931. * _.toString(-0);
  31932. * // => '-0'
  31933. *
  31934. * _.toString([1, 2, 3]);
  31935. * // => '1,2,3'
  31936. */
  31937. function toString(value) {
  31938. return value == null ? '' : baseToString(value);
  31939. }
  31940. /**
  31941. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  31942. * it's created. Arrays are created for missing index properties while objects
  31943. * are created for all other missing properties. Use `_.setWith` to customize
  31944. * `path` creation.
  31945. *
  31946. * **Note:** This method mutates `object`.
  31947. *
  31948. * @static
  31949. * @memberOf _
  31950. * @since 3.7.0
  31951. * @category Object
  31952. * @param {Object} object The object to modify.
  31953. * @param {Array|string} path The path of the property to set.
  31954. * @param {*} value The value to set.
  31955. * @returns {Object} Returns `object`.
  31956. * @example
  31957. *
  31958. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  31959. *
  31960. * _.set(object, 'a[0].b.c', 4);
  31961. * console.log(object.a[0].b.c);
  31962. * // => 4
  31963. *
  31964. * _.set(object, ['x', '0', 'y', 'z'], 5);
  31965. * console.log(object.x[0].y.z);
  31966. * // => 5
  31967. */
  31968. function set(object, path, value) {
  31969. return object == null ? object : baseSet(object, path, value);
  31970. }
  31971. module.exports = set;
  31972. /***/ }),
  31973. /***/ 897:
  31974. /***/ (function(module, __unusedexports, __webpack_require__) {
  31975. "use strict";
  31976. var getSideChannel = __webpack_require__(701);
  31977. var utils = __webpack_require__(581);
  31978. var formats = __webpack_require__(13);
  31979. var has = Object.prototype.hasOwnProperty;
  31980. var arrayPrefixGenerators = {
  31981. brackets: function brackets(prefix) {
  31982. return prefix + '[]';
  31983. },
  31984. comma: 'comma',
  31985. indices: function indices(prefix, key) {
  31986. return prefix + '[' + key + ']';
  31987. },
  31988. repeat: function repeat(prefix) {
  31989. return prefix;
  31990. }
  31991. };
  31992. var isArray = Array.isArray;
  31993. var split = String.prototype.split;
  31994. var push = Array.prototype.push;
  31995. var pushToArray = function (arr, valueOrArray) {
  31996. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  31997. };
  31998. var toISO = Date.prototype.toISOString;
  31999. var defaultFormat = formats['default'];
  32000. var defaults = {
  32001. addQueryPrefix: false,
  32002. allowDots: false,
  32003. charset: 'utf-8',
  32004. charsetSentinel: false,
  32005. delimiter: '&',
  32006. encode: true,
  32007. encoder: utils.encode,
  32008. encodeValuesOnly: false,
  32009. format: defaultFormat,
  32010. formatter: formats.formatters[defaultFormat],
  32011. // deprecated
  32012. indices: false,
  32013. serializeDate: function serializeDate(date) {
  32014. return toISO.call(date);
  32015. },
  32016. skipNulls: false,
  32017. strictNullHandling: false
  32018. };
  32019. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  32020. return typeof v === 'string'
  32021. || typeof v === 'number'
  32022. || typeof v === 'boolean'
  32023. || typeof v === 'symbol'
  32024. || typeof v === 'bigint';
  32025. };
  32026. var sentinel = {};
  32027. var stringify = function stringify(
  32028. object,
  32029. prefix,
  32030. generateArrayPrefix,
  32031. commaRoundTrip,
  32032. strictNullHandling,
  32033. skipNulls,
  32034. encoder,
  32035. filter,
  32036. sort,
  32037. allowDots,
  32038. serializeDate,
  32039. format,
  32040. formatter,
  32041. encodeValuesOnly,
  32042. charset,
  32043. sideChannel
  32044. ) {
  32045. var obj = object;
  32046. var tmpSc = sideChannel;
  32047. var step = 0;
  32048. var findFlag = false;
  32049. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  32050. // Where object last appeared in the ref tree
  32051. var pos = tmpSc.get(object);
  32052. step += 1;
  32053. if (typeof pos !== 'undefined') {
  32054. if (pos === step) {
  32055. throw new RangeError('Cyclic object value');
  32056. } else {
  32057. findFlag = true; // Break while
  32058. }
  32059. }
  32060. if (typeof tmpSc.get(sentinel) === 'undefined') {
  32061. step = 0;
  32062. }
  32063. }
  32064. if (typeof filter === 'function') {
  32065. obj = filter(prefix, obj);
  32066. } else if (obj instanceof Date) {
  32067. obj = serializeDate(obj);
  32068. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  32069. obj = utils.maybeMap(obj, function (value) {
  32070. if (value instanceof Date) {
  32071. return serializeDate(value);
  32072. }
  32073. return value;
  32074. });
  32075. }
  32076. if (obj === null) {
  32077. if (strictNullHandling) {
  32078. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  32079. }
  32080. obj = '';
  32081. }
  32082. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  32083. if (encoder) {
  32084. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  32085. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  32086. var valuesArray = split.call(String(obj), ',');
  32087. var valuesJoined = '';
  32088. for (var i = 0; i < valuesArray.length; ++i) {
  32089. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  32090. }
  32091. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  32092. }
  32093. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  32094. }
  32095. return [formatter(prefix) + '=' + formatter(String(obj))];
  32096. }
  32097. var values = [];
  32098. if (typeof obj === 'undefined') {
  32099. return values;
  32100. }
  32101. var objKeys;
  32102. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  32103. // we need to join elements in
  32104. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  32105. } else if (isArray(filter)) {
  32106. objKeys = filter;
  32107. } else {
  32108. var keys = Object.keys(obj);
  32109. objKeys = sort ? keys.sort(sort) : keys;
  32110. }
  32111. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  32112. for (var j = 0; j < objKeys.length; ++j) {
  32113. var key = objKeys[j];
  32114. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  32115. if (skipNulls && value === null) {
  32116. continue;
  32117. }
  32118. var keyPrefix = isArray(obj)
  32119. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  32120. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  32121. sideChannel.set(object, step);
  32122. var valueSideChannel = getSideChannel();
  32123. valueSideChannel.set(sentinel, sideChannel);
  32124. pushToArray(values, stringify(
  32125. value,
  32126. keyPrefix,
  32127. generateArrayPrefix,
  32128. commaRoundTrip,
  32129. strictNullHandling,
  32130. skipNulls,
  32131. encoder,
  32132. filter,
  32133. sort,
  32134. allowDots,
  32135. serializeDate,
  32136. format,
  32137. formatter,
  32138. encodeValuesOnly,
  32139. charset,
  32140. valueSideChannel
  32141. ));
  32142. }
  32143. return values;
  32144. };
  32145. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  32146. if (!opts) {
  32147. return defaults;
  32148. }
  32149. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  32150. throw new TypeError('Encoder has to be a function.');
  32151. }
  32152. var charset = opts.charset || defaults.charset;
  32153. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  32154. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  32155. }
  32156. var format = formats['default'];
  32157. if (typeof opts.format !== 'undefined') {
  32158. if (!has.call(formats.formatters, opts.format)) {
  32159. throw new TypeError('Unknown format option provided.');
  32160. }
  32161. format = opts.format;
  32162. }
  32163. var formatter = formats.formatters[format];
  32164. var filter = defaults.filter;
  32165. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  32166. filter = opts.filter;
  32167. }
  32168. return {
  32169. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  32170. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  32171. charset: charset,
  32172. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  32173. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  32174. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  32175. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  32176. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  32177. filter: filter,
  32178. format: format,
  32179. formatter: formatter,
  32180. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  32181. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  32182. sort: typeof opts.sort === 'function' ? opts.sort : null,
  32183. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  32184. };
  32185. };
  32186. module.exports = function (object, opts) {
  32187. var obj = object;
  32188. var options = normalizeStringifyOptions(opts);
  32189. var objKeys;
  32190. var filter;
  32191. if (typeof options.filter === 'function') {
  32192. filter = options.filter;
  32193. obj = filter('', obj);
  32194. } else if (isArray(options.filter)) {
  32195. filter = options.filter;
  32196. objKeys = filter;
  32197. }
  32198. var keys = [];
  32199. if (typeof obj !== 'object' || obj === null) {
  32200. return '';
  32201. }
  32202. var arrayFormat;
  32203. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  32204. arrayFormat = opts.arrayFormat;
  32205. } else if (opts && 'indices' in opts) {
  32206. arrayFormat = opts.indices ? 'indices' : 'repeat';
  32207. } else {
  32208. arrayFormat = 'indices';
  32209. }
  32210. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  32211. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  32212. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  32213. }
  32214. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  32215. if (!objKeys) {
  32216. objKeys = Object.keys(obj);
  32217. }
  32218. if (options.sort) {
  32219. objKeys.sort(options.sort);
  32220. }
  32221. var sideChannel = getSideChannel();
  32222. for (var i = 0; i < objKeys.length; ++i) {
  32223. var key = objKeys[i];
  32224. if (options.skipNulls && obj[key] === null) {
  32225. continue;
  32226. }
  32227. pushToArray(keys, stringify(
  32228. obj[key],
  32229. key,
  32230. generateArrayPrefix,
  32231. commaRoundTrip,
  32232. options.strictNullHandling,
  32233. options.skipNulls,
  32234. options.encode ? options.encoder : null,
  32235. options.filter,
  32236. options.sort,
  32237. options.allowDots,
  32238. options.serializeDate,
  32239. options.format,
  32240. options.formatter,
  32241. options.encodeValuesOnly,
  32242. options.charset,
  32243. sideChannel
  32244. ));
  32245. }
  32246. var joined = keys.join(options.delimiter);
  32247. var prefix = options.addQueryPrefix === true ? '?' : '';
  32248. if (options.charsetSentinel) {
  32249. if (options.charset === 'iso-8859-1') {
  32250. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  32251. prefix += 'utf8=%26%2310003%3B&';
  32252. } else {
  32253. // encodeURIComponent('✓')
  32254. prefix += 'utf8=%E2%9C%93&';
  32255. }
  32256. }
  32257. return joined.length > 0 ? prefix + joined : '';
  32258. };
  32259. /***/ }),
  32260. /***/ 898:
  32261. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  32262. "use strict";
  32263. Object.defineProperty(exports, '__esModule', { value: true });
  32264. var request = __webpack_require__(753);
  32265. var universalUserAgent = __webpack_require__(796);
  32266. const VERSION = "4.3.1";
  32267. class GraphqlError extends Error {
  32268. constructor(request, response) {
  32269. const message = response.data.errors[0].message;
  32270. super(message);
  32271. Object.assign(this, response.data);
  32272. this.name = "GraphqlError";
  32273. this.request = request; // Maintains proper stack trace (only available on V8)
  32274. /* istanbul ignore next */
  32275. if (Error.captureStackTrace) {
  32276. Error.captureStackTrace(this, this.constructor);
  32277. }
  32278. }
  32279. }
  32280. const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"];
  32281. function graphql(request, query, options) {
  32282. options = typeof query === "string" ? options = Object.assign({
  32283. query
  32284. }, options) : options = query;
  32285. const requestOptions = Object.keys(options).reduce((result, key) => {
  32286. if (NON_VARIABLE_OPTIONS.includes(key)) {
  32287. result[key] = options[key];
  32288. return result;
  32289. }
  32290. if (!result.variables) {
  32291. result.variables = {};
  32292. }
  32293. result.variables[key] = options[key];
  32294. return result;
  32295. }, {});
  32296. return request(requestOptions).then(response => {
  32297. if (response.data.errors) {
  32298. throw new GraphqlError(requestOptions, {
  32299. data: response.data
  32300. });
  32301. }
  32302. return response.data.data;
  32303. });
  32304. }
  32305. function withDefaults(request$1, newDefaults) {
  32306. const newRequest = request$1.defaults(newDefaults);
  32307. const newApi = (query, options) => {
  32308. return graphql(newRequest, query, options);
  32309. };
  32310. return Object.assign(newApi, {
  32311. defaults: withDefaults.bind(null, newRequest),
  32312. endpoint: request.request.endpoint
  32313. });
  32314. }
  32315. const graphql$1 = withDefaults(request.request, {
  32316. headers: {
  32317. "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`
  32318. },
  32319. method: "POST",
  32320. url: "/graphql"
  32321. });
  32322. function withCustomRequest(customRequest) {
  32323. return withDefaults(customRequest, {
  32324. method: "POST",
  32325. url: "/graphql"
  32326. });
  32327. }
  32328. exports.graphql = graphql$1;
  32329. exports.withCustomRequest = withCustomRequest;
  32330. //# sourceMappingURL=index.js.map
  32331. /***/ }),
  32332. /***/ 915:
  32333. /***/ (function(module, __unusedexports, __webpack_require__) {
  32334. "use strict";
  32335. var undefined;
  32336. var $SyntaxError = SyntaxError;
  32337. var $Function = Function;
  32338. var $TypeError = TypeError;
  32339. // eslint-disable-next-line consistent-return
  32340. var getEvalledConstructor = function (expressionSyntax) {
  32341. try {
  32342. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  32343. } catch (e) {}
  32344. };
  32345. var $gOPD = Object.getOwnPropertyDescriptor;
  32346. if ($gOPD) {
  32347. try {
  32348. $gOPD({}, '');
  32349. } catch (e) {
  32350. $gOPD = null; // this is IE 8, which has a broken gOPD
  32351. }
  32352. }
  32353. var throwTypeError = function () {
  32354. throw new $TypeError();
  32355. };
  32356. var ThrowTypeError = $gOPD
  32357. ? (function () {
  32358. try {
  32359. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  32360. arguments.callee; // IE 8 does not throw here
  32361. return throwTypeError;
  32362. } catch (calleeThrows) {
  32363. try {
  32364. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  32365. return $gOPD(arguments, 'callee').get;
  32366. } catch (gOPDthrows) {
  32367. return throwTypeError;
  32368. }
  32369. }
  32370. }())
  32371. : throwTypeError;
  32372. var hasSymbols = __webpack_require__(277)();
  32373. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  32374. var needsEval = {};
  32375. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  32376. var INTRINSICS = {
  32377. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  32378. '%Array%': Array,
  32379. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  32380. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  32381. '%AsyncFromSyncIteratorPrototype%': undefined,
  32382. '%AsyncFunction%': needsEval,
  32383. '%AsyncGenerator%': needsEval,
  32384. '%AsyncGeneratorFunction%': needsEval,
  32385. '%AsyncIteratorPrototype%': needsEval,
  32386. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  32387. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  32388. '%Boolean%': Boolean,
  32389. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  32390. '%Date%': Date,
  32391. '%decodeURI%': decodeURI,
  32392. '%decodeURIComponent%': decodeURIComponent,
  32393. '%encodeURI%': encodeURI,
  32394. '%encodeURIComponent%': encodeURIComponent,
  32395. '%Error%': Error,
  32396. '%eval%': eval, // eslint-disable-line no-eval
  32397. '%EvalError%': EvalError,
  32398. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  32399. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  32400. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  32401. '%Function%': $Function,
  32402. '%GeneratorFunction%': needsEval,
  32403. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  32404. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  32405. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  32406. '%isFinite%': isFinite,
  32407. '%isNaN%': isNaN,
  32408. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  32409. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  32410. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  32411. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  32412. '%Math%': Math,
  32413. '%Number%': Number,
  32414. '%Object%': Object,
  32415. '%parseFloat%': parseFloat,
  32416. '%parseInt%': parseInt,
  32417. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  32418. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  32419. '%RangeError%': RangeError,
  32420. '%ReferenceError%': ReferenceError,
  32421. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  32422. '%RegExp%': RegExp,
  32423. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  32424. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  32425. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  32426. '%String%': String,
  32427. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  32428. '%Symbol%': hasSymbols ? Symbol : undefined,
  32429. '%SyntaxError%': $SyntaxError,
  32430. '%ThrowTypeError%': ThrowTypeError,
  32431. '%TypedArray%': TypedArray,
  32432. '%TypeError%': $TypeError,
  32433. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  32434. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  32435. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  32436. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  32437. '%URIError%': URIError,
  32438. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  32439. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  32440. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  32441. };
  32442. var doEval = function doEval(name) {
  32443. var value;
  32444. if (name === '%AsyncFunction%') {
  32445. value = getEvalledConstructor('async function () {}');
  32446. } else if (name === '%GeneratorFunction%') {
  32447. value = getEvalledConstructor('function* () {}');
  32448. } else if (name === '%AsyncGeneratorFunction%') {
  32449. value = getEvalledConstructor('async function* () {}');
  32450. } else if (name === '%AsyncGenerator%') {
  32451. var fn = doEval('%AsyncGeneratorFunction%');
  32452. if (fn) {
  32453. value = fn.prototype;
  32454. }
  32455. } else if (name === '%AsyncIteratorPrototype%') {
  32456. var gen = doEval('%AsyncGenerator%');
  32457. if (gen) {
  32458. value = getProto(gen.prototype);
  32459. }
  32460. }
  32461. INTRINSICS[name] = value;
  32462. return value;
  32463. };
  32464. var LEGACY_ALIASES = {
  32465. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  32466. '%ArrayPrototype%': ['Array', 'prototype'],
  32467. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  32468. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  32469. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  32470. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  32471. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  32472. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  32473. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  32474. '%BooleanPrototype%': ['Boolean', 'prototype'],
  32475. '%DataViewPrototype%': ['DataView', 'prototype'],
  32476. '%DatePrototype%': ['Date', 'prototype'],
  32477. '%ErrorPrototype%': ['Error', 'prototype'],
  32478. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  32479. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  32480. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  32481. '%FunctionPrototype%': ['Function', 'prototype'],
  32482. '%Generator%': ['GeneratorFunction', 'prototype'],
  32483. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  32484. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  32485. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  32486. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  32487. '%JSONParse%': ['JSON', 'parse'],
  32488. '%JSONStringify%': ['JSON', 'stringify'],
  32489. '%MapPrototype%': ['Map', 'prototype'],
  32490. '%NumberPrototype%': ['Number', 'prototype'],
  32491. '%ObjectPrototype%': ['Object', 'prototype'],
  32492. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  32493. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  32494. '%PromisePrototype%': ['Promise', 'prototype'],
  32495. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  32496. '%Promise_all%': ['Promise', 'all'],
  32497. '%Promise_reject%': ['Promise', 'reject'],
  32498. '%Promise_resolve%': ['Promise', 'resolve'],
  32499. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  32500. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  32501. '%RegExpPrototype%': ['RegExp', 'prototype'],
  32502. '%SetPrototype%': ['Set', 'prototype'],
  32503. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  32504. '%StringPrototype%': ['String', 'prototype'],
  32505. '%SymbolPrototype%': ['Symbol', 'prototype'],
  32506. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  32507. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  32508. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  32509. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  32510. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  32511. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  32512. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  32513. '%URIErrorPrototype%': ['URIError', 'prototype'],
  32514. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  32515. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  32516. };
  32517. var bind = __webpack_require__(739);
  32518. var hasOwn = __webpack_require__(174);
  32519. var $concat = bind.call(Function.call, Array.prototype.concat);
  32520. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  32521. var $replace = bind.call(Function.call, String.prototype.replace);
  32522. var $strSlice = bind.call(Function.call, String.prototype.slice);
  32523. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  32524. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  32525. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  32526. var stringToPath = function stringToPath(string) {
  32527. var first = $strSlice(string, 0, 1);
  32528. var last = $strSlice(string, -1);
  32529. if (first === '%' && last !== '%') {
  32530. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  32531. } else if (last === '%' && first !== '%') {
  32532. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  32533. }
  32534. var result = [];
  32535. $replace(string, rePropName, function (match, number, quote, subString) {
  32536. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  32537. });
  32538. return result;
  32539. };
  32540. /* end adaptation */
  32541. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  32542. var intrinsicName = name;
  32543. var alias;
  32544. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  32545. alias = LEGACY_ALIASES[intrinsicName];
  32546. intrinsicName = '%' + alias[0] + '%';
  32547. }
  32548. if (hasOwn(INTRINSICS, intrinsicName)) {
  32549. var value = INTRINSICS[intrinsicName];
  32550. if (value === needsEval) {
  32551. value = doEval(intrinsicName);
  32552. }
  32553. if (typeof value === 'undefined' && !allowMissing) {
  32554. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  32555. }
  32556. return {
  32557. alias: alias,
  32558. name: intrinsicName,
  32559. value: value
  32560. };
  32561. }
  32562. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  32563. };
  32564. module.exports = function GetIntrinsic(name, allowMissing) {
  32565. if (typeof name !== 'string' || name.length === 0) {
  32566. throw new $TypeError('intrinsic name must be a non-empty string');
  32567. }
  32568. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  32569. throw new $TypeError('"allowMissing" argument must be a boolean');
  32570. }
  32571. var parts = stringToPath(name);
  32572. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  32573. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  32574. var intrinsicRealName = intrinsic.name;
  32575. var value = intrinsic.value;
  32576. var skipFurtherCaching = false;
  32577. var alias = intrinsic.alias;
  32578. if (alias) {
  32579. intrinsicBaseName = alias[0];
  32580. $spliceApply(parts, $concat([0, 1], alias));
  32581. }
  32582. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  32583. var part = parts[i];
  32584. var first = $strSlice(part, 0, 1);
  32585. var last = $strSlice(part, -1);
  32586. if (
  32587. (
  32588. (first === '"' || first === "'" || first === '`')
  32589. || (last === '"' || last === "'" || last === '`')
  32590. )
  32591. && first !== last
  32592. ) {
  32593. throw new $SyntaxError('property names with quotes must have matching quotes');
  32594. }
  32595. if (part === 'constructor' || !isOwn) {
  32596. skipFurtherCaching = true;
  32597. }
  32598. intrinsicBaseName += '.' + part;
  32599. intrinsicRealName = '%' + intrinsicBaseName + '%';
  32600. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  32601. value = INTRINSICS[intrinsicRealName];
  32602. } else if (value != null) {
  32603. if (!(part in value)) {
  32604. if (!allowMissing) {
  32605. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  32606. }
  32607. return void undefined;
  32608. }
  32609. if ($gOPD && (i + 1) >= parts.length) {
  32610. var desc = $gOPD(value, part);
  32611. isOwn = !!desc;
  32612. // By convention, when a data property is converted to an accessor
  32613. // property to emulate a data property that does not suffer from
  32614. // the override mistake, that accessor's getter is marked with
  32615. // an `originalValue` property. Here, when we detect this, we
  32616. // uphold the illusion by pretending to see that original data
  32617. // property, i.e., returning the value rather than the getter
  32618. // itself.
  32619. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  32620. value = desc.get;
  32621. } else {
  32622. value = value[part];
  32623. }
  32624. } else {
  32625. isOwn = hasOwn(value, part);
  32626. value = value[part];
  32627. }
  32628. if (isOwn && !skipFurtherCaching) {
  32629. INTRINSICS[intrinsicRealName] = value;
  32630. }
  32631. }
  32632. }
  32633. return value;
  32634. };
  32635. /***/ }),
  32636. /***/ 916:
  32637. /***/ (function(__unusedmodule, exports) {
  32638. "use strict";
  32639. Object.defineProperty(exports, '__esModule', { value: true });
  32640. const VERSION = "1.0.0";
  32641. /**
  32642. * @param octokit Octokit instance
  32643. * @param options Options passed to Octokit constructor
  32644. */
  32645. function requestLog(octokit) {
  32646. octokit.hook.wrap("request", (request, options) => {
  32647. octokit.log.debug("request", options);
  32648. const start = Date.now();
  32649. const requestOptions = octokit.request.endpoint.parse(options);
  32650. const path = requestOptions.url.replace(options.baseUrl, "");
  32651. return request(options).then(response => {
  32652. octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
  32653. return response;
  32654. }).catch(error => {
  32655. octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
  32656. throw error;
  32657. });
  32658. });
  32659. }
  32660. requestLog.VERSION = VERSION;
  32661. exports.requestLog = requestLog;
  32662. //# sourceMappingURL=index.js.map
  32663. /***/ }),
  32664. /***/ 923:
  32665. /***/ (function(module) {
  32666. "use strict";
  32667. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  32668. module.exports = function hasSymbols() {
  32669. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  32670. if (typeof Symbol.iterator === 'symbol') { return true; }
  32671. var obj = {};
  32672. var sym = Symbol('test');
  32673. var symObj = Object(sym);
  32674. if (typeof sym === 'string') { return false; }
  32675. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  32676. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  32677. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  32678. // if (sym instanceof Symbol) { return false; }
  32679. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  32680. // if (!(symObj instanceof Symbol)) { return false; }
  32681. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  32682. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  32683. var symVal = 42;
  32684. obj[sym] = symVal;
  32685. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  32686. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  32687. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  32688. var syms = Object.getOwnPropertySymbols(obj);
  32689. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  32690. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  32691. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  32692. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  32693. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  32694. }
  32695. return true;
  32696. };
  32697. /***/ }),
  32698. /***/ 929:
  32699. /***/ (function(module, __unusedexports, __webpack_require__) {
  32700. module.exports = hasNextPage
  32701. const deprecate = __webpack_require__(370)
  32702. const getPageLinks = __webpack_require__(577)
  32703. function hasNextPage (link) {
  32704. deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
  32705. return getPageLinks(link).next
  32706. }
  32707. /***/ }),
  32708. /***/ 936:
  32709. /***/ (function(module, __unusedexports, __webpack_require__) {
  32710. "use strict";
  32711. const punycode = __webpack_require__(213);
  32712. const tr46 = __webpack_require__(976);
  32713. const specialSchemes = {
  32714. ftp: 21,
  32715. file: null,
  32716. gopher: 70,
  32717. http: 80,
  32718. https: 443,
  32719. ws: 80,
  32720. wss: 443
  32721. };
  32722. const failure = Symbol("failure");
  32723. function countSymbols(str) {
  32724. return punycode.ucs2.decode(str).length;
  32725. }
  32726. function at(input, idx) {
  32727. const c = input[idx];
  32728. return isNaN(c) ? undefined : String.fromCodePoint(c);
  32729. }
  32730. function isASCIIDigit(c) {
  32731. return c >= 0x30 && c <= 0x39;
  32732. }
  32733. function isASCIIAlpha(c) {
  32734. return (c >= 0x41 && c <= 0x5A) || (c >= 0x61 && c <= 0x7A);
  32735. }
  32736. function isASCIIAlphanumeric(c) {
  32737. return isASCIIAlpha(c) || isASCIIDigit(c);
  32738. }
  32739. function isASCIIHex(c) {
  32740. return isASCIIDigit(c) || (c >= 0x41 && c <= 0x46) || (c >= 0x61 && c <= 0x66);
  32741. }
  32742. function isSingleDot(buffer) {
  32743. return buffer === "." || buffer.toLowerCase() === "%2e";
  32744. }
  32745. function isDoubleDot(buffer) {
  32746. buffer = buffer.toLowerCase();
  32747. return buffer === ".." || buffer === "%2e." || buffer === ".%2e" || buffer === "%2e%2e";
  32748. }
  32749. function isWindowsDriveLetterCodePoints(cp1, cp2) {
  32750. return isASCIIAlpha(cp1) && (cp2 === 58 || cp2 === 124);
  32751. }
  32752. function isWindowsDriveLetterString(string) {
  32753. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && (string[1] === ":" || string[1] === "|");
  32754. }
  32755. function isNormalizedWindowsDriveLetterString(string) {
  32756. return string.length === 2 && isASCIIAlpha(string.codePointAt(0)) && string[1] === ":";
  32757. }
  32758. function containsForbiddenHostCodePoint(string) {
  32759. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/) !== -1;
  32760. }
  32761. function containsForbiddenHostCodePointExcludingPercent(string) {
  32762. return string.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/) !== -1;
  32763. }
  32764. function isSpecialScheme(scheme) {
  32765. return specialSchemes[scheme] !== undefined;
  32766. }
  32767. function isSpecial(url) {
  32768. return isSpecialScheme(url.scheme);
  32769. }
  32770. function defaultPort(scheme) {
  32771. return specialSchemes[scheme];
  32772. }
  32773. function percentEncode(c) {
  32774. let hex = c.toString(16).toUpperCase();
  32775. if (hex.length === 1) {
  32776. hex = "0" + hex;
  32777. }
  32778. return "%" + hex;
  32779. }
  32780. function utf8PercentEncode(c) {
  32781. const buf = new Buffer(c);
  32782. let str = "";
  32783. for (let i = 0; i < buf.length; ++i) {
  32784. str += percentEncode(buf[i]);
  32785. }
  32786. return str;
  32787. }
  32788. function utf8PercentDecode(str) {
  32789. const input = new Buffer(str);
  32790. const output = [];
  32791. for (let i = 0; i < input.length; ++i) {
  32792. if (input[i] !== 37) {
  32793. output.push(input[i]);
  32794. } else if (input[i] === 37 && isASCIIHex(input[i + 1]) && isASCIIHex(input[i + 2])) {
  32795. output.push(parseInt(input.slice(i + 1, i + 3).toString(), 16));
  32796. i += 2;
  32797. } else {
  32798. output.push(input[i]);
  32799. }
  32800. }
  32801. return new Buffer(output).toString();
  32802. }
  32803. function isC0ControlPercentEncode(c) {
  32804. return c <= 0x1F || c > 0x7E;
  32805. }
  32806. const extraPathPercentEncodeSet = new Set([32, 34, 35, 60, 62, 63, 96, 123, 125]);
  32807. function isPathPercentEncode(c) {
  32808. return isC0ControlPercentEncode(c) || extraPathPercentEncodeSet.has(c);
  32809. }
  32810. const extraUserinfoPercentEncodeSet =
  32811. new Set([47, 58, 59, 61, 64, 91, 92, 93, 94, 124]);
  32812. function isUserinfoPercentEncode(c) {
  32813. return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c);
  32814. }
  32815. function percentEncodeChar(c, encodeSetPredicate) {
  32816. const cStr = String.fromCodePoint(c);
  32817. if (encodeSetPredicate(c)) {
  32818. return utf8PercentEncode(cStr);
  32819. }
  32820. return cStr;
  32821. }
  32822. function parseIPv4Number(input) {
  32823. let R = 10;
  32824. if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
  32825. input = input.substring(2);
  32826. R = 16;
  32827. } else if (input.length >= 2 && input.charAt(0) === "0") {
  32828. input = input.substring(1);
  32829. R = 8;
  32830. }
  32831. if (input === "") {
  32832. return 0;
  32833. }
  32834. const regex = R === 10 ? /[^0-9]/ : (R === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/);
  32835. if (regex.test(input)) {
  32836. return failure;
  32837. }
  32838. return parseInt(input, R);
  32839. }
  32840. function parseIPv4(input) {
  32841. const parts = input.split(".");
  32842. if (parts[parts.length - 1] === "") {
  32843. if (parts.length > 1) {
  32844. parts.pop();
  32845. }
  32846. }
  32847. if (parts.length > 4) {
  32848. return input;
  32849. }
  32850. const numbers = [];
  32851. for (const part of parts) {
  32852. if (part === "") {
  32853. return input;
  32854. }
  32855. const n = parseIPv4Number(part);
  32856. if (n === failure) {
  32857. return input;
  32858. }
  32859. numbers.push(n);
  32860. }
  32861. for (let i = 0; i < numbers.length - 1; ++i) {
  32862. if (numbers[i] > 255) {
  32863. return failure;
  32864. }
  32865. }
  32866. if (numbers[numbers.length - 1] >= Math.pow(256, 5 - numbers.length)) {
  32867. return failure;
  32868. }
  32869. let ipv4 = numbers.pop();
  32870. let counter = 0;
  32871. for (const n of numbers) {
  32872. ipv4 += n * Math.pow(256, 3 - counter);
  32873. ++counter;
  32874. }
  32875. return ipv4;
  32876. }
  32877. function serializeIPv4(address) {
  32878. let output = "";
  32879. let n = address;
  32880. for (let i = 1; i <= 4; ++i) {
  32881. output = String(n % 256) + output;
  32882. if (i !== 4) {
  32883. output = "." + output;
  32884. }
  32885. n = Math.floor(n / 256);
  32886. }
  32887. return output;
  32888. }
  32889. function parseIPv6(input) {
  32890. const address = [0, 0, 0, 0, 0, 0, 0, 0];
  32891. let pieceIndex = 0;
  32892. let compress = null;
  32893. let pointer = 0;
  32894. input = punycode.ucs2.decode(input);
  32895. if (input[pointer] === 58) {
  32896. if (input[pointer + 1] !== 58) {
  32897. return failure;
  32898. }
  32899. pointer += 2;
  32900. ++pieceIndex;
  32901. compress = pieceIndex;
  32902. }
  32903. while (pointer < input.length) {
  32904. if (pieceIndex === 8) {
  32905. return failure;
  32906. }
  32907. if (input[pointer] === 58) {
  32908. if (compress !== null) {
  32909. return failure;
  32910. }
  32911. ++pointer;
  32912. ++pieceIndex;
  32913. compress = pieceIndex;
  32914. continue;
  32915. }
  32916. let value = 0;
  32917. let length = 0;
  32918. while (length < 4 && isASCIIHex(input[pointer])) {
  32919. value = value * 0x10 + parseInt(at(input, pointer), 16);
  32920. ++pointer;
  32921. ++length;
  32922. }
  32923. if (input[pointer] === 46) {
  32924. if (length === 0) {
  32925. return failure;
  32926. }
  32927. pointer -= length;
  32928. if (pieceIndex > 6) {
  32929. return failure;
  32930. }
  32931. let numbersSeen = 0;
  32932. while (input[pointer] !== undefined) {
  32933. let ipv4Piece = null;
  32934. if (numbersSeen > 0) {
  32935. if (input[pointer] === 46 && numbersSeen < 4) {
  32936. ++pointer;
  32937. } else {
  32938. return failure;
  32939. }
  32940. }
  32941. if (!isASCIIDigit(input[pointer])) {
  32942. return failure;
  32943. }
  32944. while (isASCIIDigit(input[pointer])) {
  32945. const number = parseInt(at(input, pointer));
  32946. if (ipv4Piece === null) {
  32947. ipv4Piece = number;
  32948. } else if (ipv4Piece === 0) {
  32949. return failure;
  32950. } else {
  32951. ipv4Piece = ipv4Piece * 10 + number;
  32952. }
  32953. if (ipv4Piece > 255) {
  32954. return failure;
  32955. }
  32956. ++pointer;
  32957. }
  32958. address[pieceIndex] = address[pieceIndex] * 0x100 + ipv4Piece;
  32959. ++numbersSeen;
  32960. if (numbersSeen === 2 || numbersSeen === 4) {
  32961. ++pieceIndex;
  32962. }
  32963. }
  32964. if (numbersSeen !== 4) {
  32965. return failure;
  32966. }
  32967. break;
  32968. } else if (input[pointer] === 58) {
  32969. ++pointer;
  32970. if (input[pointer] === undefined) {
  32971. return failure;
  32972. }
  32973. } else if (input[pointer] !== undefined) {
  32974. return failure;
  32975. }
  32976. address[pieceIndex] = value;
  32977. ++pieceIndex;
  32978. }
  32979. if (compress !== null) {
  32980. let swaps = pieceIndex - compress;
  32981. pieceIndex = 7;
  32982. while (pieceIndex !== 0 && swaps > 0) {
  32983. const temp = address[compress + swaps - 1];
  32984. address[compress + swaps - 1] = address[pieceIndex];
  32985. address[pieceIndex] = temp;
  32986. --pieceIndex;
  32987. --swaps;
  32988. }
  32989. } else if (compress === null && pieceIndex !== 8) {
  32990. return failure;
  32991. }
  32992. return address;
  32993. }
  32994. function serializeIPv6(address) {
  32995. let output = "";
  32996. const seqResult = findLongestZeroSequence(address);
  32997. const compress = seqResult.idx;
  32998. let ignore0 = false;
  32999. for (let pieceIndex = 0; pieceIndex <= 7; ++pieceIndex) {
  33000. if (ignore0 && address[pieceIndex] === 0) {
  33001. continue;
  33002. } else if (ignore0) {
  33003. ignore0 = false;
  33004. }
  33005. if (compress === pieceIndex) {
  33006. const separator = pieceIndex === 0 ? "::" : ":";
  33007. output += separator;
  33008. ignore0 = true;
  33009. continue;
  33010. }
  33011. output += address[pieceIndex].toString(16);
  33012. if (pieceIndex !== 7) {
  33013. output += ":";
  33014. }
  33015. }
  33016. return output;
  33017. }
  33018. function parseHost(input, isSpecialArg) {
  33019. if (input[0] === "[") {
  33020. if (input[input.length - 1] !== "]") {
  33021. return failure;
  33022. }
  33023. return parseIPv6(input.substring(1, input.length - 1));
  33024. }
  33025. if (!isSpecialArg) {
  33026. return parseOpaqueHost(input);
  33027. }
  33028. const domain = utf8PercentDecode(input);
  33029. const asciiDomain = tr46.toASCII(domain, false, tr46.PROCESSING_OPTIONS.NONTRANSITIONAL, false);
  33030. if (asciiDomain === null) {
  33031. return failure;
  33032. }
  33033. if (containsForbiddenHostCodePoint(asciiDomain)) {
  33034. return failure;
  33035. }
  33036. const ipv4Host = parseIPv4(asciiDomain);
  33037. if (typeof ipv4Host === "number" || ipv4Host === failure) {
  33038. return ipv4Host;
  33039. }
  33040. return asciiDomain;
  33041. }
  33042. function parseOpaqueHost(input) {
  33043. if (containsForbiddenHostCodePointExcludingPercent(input)) {
  33044. return failure;
  33045. }
  33046. let output = "";
  33047. const decoded = punycode.ucs2.decode(input);
  33048. for (let i = 0; i < decoded.length; ++i) {
  33049. output += percentEncodeChar(decoded[i], isC0ControlPercentEncode);
  33050. }
  33051. return output;
  33052. }
  33053. function findLongestZeroSequence(arr) {
  33054. let maxIdx = null;
  33055. let maxLen = 1; // only find elements > 1
  33056. let currStart = null;
  33057. let currLen = 0;
  33058. for (let i = 0; i < arr.length; ++i) {
  33059. if (arr[i] !== 0) {
  33060. if (currLen > maxLen) {
  33061. maxIdx = currStart;
  33062. maxLen = currLen;
  33063. }
  33064. currStart = null;
  33065. currLen = 0;
  33066. } else {
  33067. if (currStart === null) {
  33068. currStart = i;
  33069. }
  33070. ++currLen;
  33071. }
  33072. }
  33073. // if trailing zeros
  33074. if (currLen > maxLen) {
  33075. maxIdx = currStart;
  33076. maxLen = currLen;
  33077. }
  33078. return {
  33079. idx: maxIdx,
  33080. len: maxLen
  33081. };
  33082. }
  33083. function serializeHost(host) {
  33084. if (typeof host === "number") {
  33085. return serializeIPv4(host);
  33086. }
  33087. // IPv6 serializer
  33088. if (host instanceof Array) {
  33089. return "[" + serializeIPv6(host) + "]";
  33090. }
  33091. return host;
  33092. }
  33093. function trimControlChars(url) {
  33094. return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
  33095. }
  33096. function trimTabAndNewline(url) {
  33097. return url.replace(/\u0009|\u000A|\u000D/g, "");
  33098. }
  33099. function shortenPath(url) {
  33100. const path = url.path;
  33101. if (path.length === 0) {
  33102. return;
  33103. }
  33104. if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
  33105. return;
  33106. }
  33107. path.pop();
  33108. }
  33109. function includesCredentials(url) {
  33110. return url.username !== "" || url.password !== "";
  33111. }
  33112. function cannotHaveAUsernamePasswordPort(url) {
  33113. return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
  33114. }
  33115. function isNormalizedWindowsDriveLetter(string) {
  33116. return /^[A-Za-z]:$/.test(string);
  33117. }
  33118. function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
  33119. this.pointer = 0;
  33120. this.input = input;
  33121. this.base = base || null;
  33122. this.encodingOverride = encodingOverride || "utf-8";
  33123. this.stateOverride = stateOverride;
  33124. this.url = url;
  33125. this.failure = false;
  33126. this.parseError = false;
  33127. if (!this.url) {
  33128. this.url = {
  33129. scheme: "",
  33130. username: "",
  33131. password: "",
  33132. host: null,
  33133. port: null,
  33134. path: [],
  33135. query: null,
  33136. fragment: null,
  33137. cannotBeABaseURL: false
  33138. };
  33139. const res = trimControlChars(this.input);
  33140. if (res !== this.input) {
  33141. this.parseError = true;
  33142. }
  33143. this.input = res;
  33144. }
  33145. const res = trimTabAndNewline(this.input);
  33146. if (res !== this.input) {
  33147. this.parseError = true;
  33148. }
  33149. this.input = res;
  33150. this.state = stateOverride || "scheme start";
  33151. this.buffer = "";
  33152. this.atFlag = false;
  33153. this.arrFlag = false;
  33154. this.passwordTokenSeenFlag = false;
  33155. this.input = punycode.ucs2.decode(this.input);
  33156. for (; this.pointer <= this.input.length; ++this.pointer) {
  33157. const c = this.input[this.pointer];
  33158. const cStr = isNaN(c) ? undefined : String.fromCodePoint(c);
  33159. // exec state machine
  33160. const ret = this["parse " + this.state](c, cStr);
  33161. if (!ret) {
  33162. break; // terminate algorithm
  33163. } else if (ret === failure) {
  33164. this.failure = true;
  33165. break;
  33166. }
  33167. }
  33168. }
  33169. URLStateMachine.prototype["parse scheme start"] = function parseSchemeStart(c, cStr) {
  33170. if (isASCIIAlpha(c)) {
  33171. this.buffer += cStr.toLowerCase();
  33172. this.state = "scheme";
  33173. } else if (!this.stateOverride) {
  33174. this.state = "no scheme";
  33175. --this.pointer;
  33176. } else {
  33177. this.parseError = true;
  33178. return failure;
  33179. }
  33180. return true;
  33181. };
  33182. URLStateMachine.prototype["parse scheme"] = function parseScheme(c, cStr) {
  33183. if (isASCIIAlphanumeric(c) || c === 43 || c === 45 || c === 46) {
  33184. this.buffer += cStr.toLowerCase();
  33185. } else if (c === 58) {
  33186. if (this.stateOverride) {
  33187. if (isSpecial(this.url) && !isSpecialScheme(this.buffer)) {
  33188. return false;
  33189. }
  33190. if (!isSpecial(this.url) && isSpecialScheme(this.buffer)) {
  33191. return false;
  33192. }
  33193. if ((includesCredentials(this.url) || this.url.port !== null) && this.buffer === "file") {
  33194. return false;
  33195. }
  33196. if (this.url.scheme === "file" && (this.url.host === "" || this.url.host === null)) {
  33197. return false;
  33198. }
  33199. }
  33200. this.url.scheme = this.buffer;
  33201. this.buffer = "";
  33202. if (this.stateOverride) {
  33203. return false;
  33204. }
  33205. if (this.url.scheme === "file") {
  33206. if (this.input[this.pointer + 1] !== 47 || this.input[this.pointer + 2] !== 47) {
  33207. this.parseError = true;
  33208. }
  33209. this.state = "file";
  33210. } else if (isSpecial(this.url) && this.base !== null && this.base.scheme === this.url.scheme) {
  33211. this.state = "special relative or authority";
  33212. } else if (isSpecial(this.url)) {
  33213. this.state = "special authority slashes";
  33214. } else if (this.input[this.pointer + 1] === 47) {
  33215. this.state = "path or authority";
  33216. ++this.pointer;
  33217. } else {
  33218. this.url.cannotBeABaseURL = true;
  33219. this.url.path.push("");
  33220. this.state = "cannot-be-a-base-URL path";
  33221. }
  33222. } else if (!this.stateOverride) {
  33223. this.buffer = "";
  33224. this.state = "no scheme";
  33225. this.pointer = -1;
  33226. } else {
  33227. this.parseError = true;
  33228. return failure;
  33229. }
  33230. return true;
  33231. };
  33232. URLStateMachine.prototype["parse no scheme"] = function parseNoScheme(c) {
  33233. if (this.base === null || (this.base.cannotBeABaseURL && c !== 35)) {
  33234. return failure;
  33235. } else if (this.base.cannotBeABaseURL && c === 35) {
  33236. this.url.scheme = this.base.scheme;
  33237. this.url.path = this.base.path.slice();
  33238. this.url.query = this.base.query;
  33239. this.url.fragment = "";
  33240. this.url.cannotBeABaseURL = true;
  33241. this.state = "fragment";
  33242. } else if (this.base.scheme === "file") {
  33243. this.state = "file";
  33244. --this.pointer;
  33245. } else {
  33246. this.state = "relative";
  33247. --this.pointer;
  33248. }
  33249. return true;
  33250. };
  33251. URLStateMachine.prototype["parse special relative or authority"] = function parseSpecialRelativeOrAuthority(c) {
  33252. if (c === 47 && this.input[this.pointer + 1] === 47) {
  33253. this.state = "special authority ignore slashes";
  33254. ++this.pointer;
  33255. } else {
  33256. this.parseError = true;
  33257. this.state = "relative";
  33258. --this.pointer;
  33259. }
  33260. return true;
  33261. };
  33262. URLStateMachine.prototype["parse path or authority"] = function parsePathOrAuthority(c) {
  33263. if (c === 47) {
  33264. this.state = "authority";
  33265. } else {
  33266. this.state = "path";
  33267. --this.pointer;
  33268. }
  33269. return true;
  33270. };
  33271. URLStateMachine.prototype["parse relative"] = function parseRelative(c) {
  33272. this.url.scheme = this.base.scheme;
  33273. if (isNaN(c)) {
  33274. this.url.username = this.base.username;
  33275. this.url.password = this.base.password;
  33276. this.url.host = this.base.host;
  33277. this.url.port = this.base.port;
  33278. this.url.path = this.base.path.slice();
  33279. this.url.query = this.base.query;
  33280. } else if (c === 47) {
  33281. this.state = "relative slash";
  33282. } else if (c === 63) {
  33283. this.url.username = this.base.username;
  33284. this.url.password = this.base.password;
  33285. this.url.host = this.base.host;
  33286. this.url.port = this.base.port;
  33287. this.url.path = this.base.path.slice();
  33288. this.url.query = "";
  33289. this.state = "query";
  33290. } else if (c === 35) {
  33291. this.url.username = this.base.username;
  33292. this.url.password = this.base.password;
  33293. this.url.host = this.base.host;
  33294. this.url.port = this.base.port;
  33295. this.url.path = this.base.path.slice();
  33296. this.url.query = this.base.query;
  33297. this.url.fragment = "";
  33298. this.state = "fragment";
  33299. } else if (isSpecial(this.url) && c === 92) {
  33300. this.parseError = true;
  33301. this.state = "relative slash";
  33302. } else {
  33303. this.url.username = this.base.username;
  33304. this.url.password = this.base.password;
  33305. this.url.host = this.base.host;
  33306. this.url.port = this.base.port;
  33307. this.url.path = this.base.path.slice(0, this.base.path.length - 1);
  33308. this.state = "path";
  33309. --this.pointer;
  33310. }
  33311. return true;
  33312. };
  33313. URLStateMachine.prototype["parse relative slash"] = function parseRelativeSlash(c) {
  33314. if (isSpecial(this.url) && (c === 47 || c === 92)) {
  33315. if (c === 92) {
  33316. this.parseError = true;
  33317. }
  33318. this.state = "special authority ignore slashes";
  33319. } else if (c === 47) {
  33320. this.state = "authority";
  33321. } else {
  33322. this.url.username = this.base.username;
  33323. this.url.password = this.base.password;
  33324. this.url.host = this.base.host;
  33325. this.url.port = this.base.port;
  33326. this.state = "path";
  33327. --this.pointer;
  33328. }
  33329. return true;
  33330. };
  33331. URLStateMachine.prototype["parse special authority slashes"] = function parseSpecialAuthoritySlashes(c) {
  33332. if (c === 47 && this.input[this.pointer + 1] === 47) {
  33333. this.state = "special authority ignore slashes";
  33334. ++this.pointer;
  33335. } else {
  33336. this.parseError = true;
  33337. this.state = "special authority ignore slashes";
  33338. --this.pointer;
  33339. }
  33340. return true;
  33341. };
  33342. URLStateMachine.prototype["parse special authority ignore slashes"] = function parseSpecialAuthorityIgnoreSlashes(c) {
  33343. if (c !== 47 && c !== 92) {
  33344. this.state = "authority";
  33345. --this.pointer;
  33346. } else {
  33347. this.parseError = true;
  33348. }
  33349. return true;
  33350. };
  33351. URLStateMachine.prototype["parse authority"] = function parseAuthority(c, cStr) {
  33352. if (c === 64) {
  33353. this.parseError = true;
  33354. if (this.atFlag) {
  33355. this.buffer = "%40" + this.buffer;
  33356. }
  33357. this.atFlag = true;
  33358. // careful, this is based on buffer and has its own pointer (this.pointer != pointer) and inner chars
  33359. const len = countSymbols(this.buffer);
  33360. for (let pointer = 0; pointer < len; ++pointer) {
  33361. const codePoint = this.buffer.codePointAt(pointer);
  33362. if (codePoint === 58 && !this.passwordTokenSeenFlag) {
  33363. this.passwordTokenSeenFlag = true;
  33364. continue;
  33365. }
  33366. const encodedCodePoints = percentEncodeChar(codePoint, isUserinfoPercentEncode);
  33367. if (this.passwordTokenSeenFlag) {
  33368. this.url.password += encodedCodePoints;
  33369. } else {
  33370. this.url.username += encodedCodePoints;
  33371. }
  33372. }
  33373. this.buffer = "";
  33374. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  33375. (isSpecial(this.url) && c === 92)) {
  33376. if (this.atFlag && this.buffer === "") {
  33377. this.parseError = true;
  33378. return failure;
  33379. }
  33380. this.pointer -= countSymbols(this.buffer) + 1;
  33381. this.buffer = "";
  33382. this.state = "host";
  33383. } else {
  33384. this.buffer += cStr;
  33385. }
  33386. return true;
  33387. };
  33388. URLStateMachine.prototype["parse hostname"] =
  33389. URLStateMachine.prototype["parse host"] = function parseHostName(c, cStr) {
  33390. if (this.stateOverride && this.url.scheme === "file") {
  33391. --this.pointer;
  33392. this.state = "file host";
  33393. } else if (c === 58 && !this.arrFlag) {
  33394. if (this.buffer === "") {
  33395. this.parseError = true;
  33396. return failure;
  33397. }
  33398. const host = parseHost(this.buffer, isSpecial(this.url));
  33399. if (host === failure) {
  33400. return failure;
  33401. }
  33402. this.url.host = host;
  33403. this.buffer = "";
  33404. this.state = "port";
  33405. if (this.stateOverride === "hostname") {
  33406. return false;
  33407. }
  33408. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  33409. (isSpecial(this.url) && c === 92)) {
  33410. --this.pointer;
  33411. if (isSpecial(this.url) && this.buffer === "") {
  33412. this.parseError = true;
  33413. return failure;
  33414. } else if (this.stateOverride && this.buffer === "" &&
  33415. (includesCredentials(this.url) || this.url.port !== null)) {
  33416. this.parseError = true;
  33417. return false;
  33418. }
  33419. const host = parseHost(this.buffer, isSpecial(this.url));
  33420. if (host === failure) {
  33421. return failure;
  33422. }
  33423. this.url.host = host;
  33424. this.buffer = "";
  33425. this.state = "path start";
  33426. if (this.stateOverride) {
  33427. return false;
  33428. }
  33429. } else {
  33430. if (c === 91) {
  33431. this.arrFlag = true;
  33432. } else if (c === 93) {
  33433. this.arrFlag = false;
  33434. }
  33435. this.buffer += cStr;
  33436. }
  33437. return true;
  33438. };
  33439. URLStateMachine.prototype["parse port"] = function parsePort(c, cStr) {
  33440. if (isASCIIDigit(c)) {
  33441. this.buffer += cStr;
  33442. } else if (isNaN(c) || c === 47 || c === 63 || c === 35 ||
  33443. (isSpecial(this.url) && c === 92) ||
  33444. this.stateOverride) {
  33445. if (this.buffer !== "") {
  33446. const port = parseInt(this.buffer);
  33447. if (port > Math.pow(2, 16) - 1) {
  33448. this.parseError = true;
  33449. return failure;
  33450. }
  33451. this.url.port = port === defaultPort(this.url.scheme) ? null : port;
  33452. this.buffer = "";
  33453. }
  33454. if (this.stateOverride) {
  33455. return false;
  33456. }
  33457. this.state = "path start";
  33458. --this.pointer;
  33459. } else {
  33460. this.parseError = true;
  33461. return failure;
  33462. }
  33463. return true;
  33464. };
  33465. const fileOtherwiseCodePoints = new Set([47, 92, 63, 35]);
  33466. URLStateMachine.prototype["parse file"] = function parseFile(c) {
  33467. this.url.scheme = "file";
  33468. if (c === 47 || c === 92) {
  33469. if (c === 92) {
  33470. this.parseError = true;
  33471. }
  33472. this.state = "file slash";
  33473. } else if (this.base !== null && this.base.scheme === "file") {
  33474. if (isNaN(c)) {
  33475. this.url.host = this.base.host;
  33476. this.url.path = this.base.path.slice();
  33477. this.url.query = this.base.query;
  33478. } else if (c === 63) {
  33479. this.url.host = this.base.host;
  33480. this.url.path = this.base.path.slice();
  33481. this.url.query = "";
  33482. this.state = "query";
  33483. } else if (c === 35) {
  33484. this.url.host = this.base.host;
  33485. this.url.path = this.base.path.slice();
  33486. this.url.query = this.base.query;
  33487. this.url.fragment = "";
  33488. this.state = "fragment";
  33489. } else {
  33490. if (this.input.length - this.pointer - 1 === 0 || // remaining consists of 0 code points
  33491. !isWindowsDriveLetterCodePoints(c, this.input[this.pointer + 1]) ||
  33492. (this.input.length - this.pointer - 1 >= 2 && // remaining has at least 2 code points
  33493. !fileOtherwiseCodePoints.has(this.input[this.pointer + 2]))) {
  33494. this.url.host = this.base.host;
  33495. this.url.path = this.base.path.slice();
  33496. shortenPath(this.url);
  33497. } else {
  33498. this.parseError = true;
  33499. }
  33500. this.state = "path";
  33501. --this.pointer;
  33502. }
  33503. } else {
  33504. this.state = "path";
  33505. --this.pointer;
  33506. }
  33507. return true;
  33508. };
  33509. URLStateMachine.prototype["parse file slash"] = function parseFileSlash(c) {
  33510. if (c === 47 || c === 92) {
  33511. if (c === 92) {
  33512. this.parseError = true;
  33513. }
  33514. this.state = "file host";
  33515. } else {
  33516. if (this.base !== null && this.base.scheme === "file") {
  33517. if (isNormalizedWindowsDriveLetterString(this.base.path[0])) {
  33518. this.url.path.push(this.base.path[0]);
  33519. } else {
  33520. this.url.host = this.base.host;
  33521. }
  33522. }
  33523. this.state = "path";
  33524. --this.pointer;
  33525. }
  33526. return true;
  33527. };
  33528. URLStateMachine.prototype["parse file host"] = function parseFileHost(c, cStr) {
  33529. if (isNaN(c) || c === 47 || c === 92 || c === 63 || c === 35) {
  33530. --this.pointer;
  33531. if (!this.stateOverride && isWindowsDriveLetterString(this.buffer)) {
  33532. this.parseError = true;
  33533. this.state = "path";
  33534. } else if (this.buffer === "") {
  33535. this.url.host = "";
  33536. if (this.stateOverride) {
  33537. return false;
  33538. }
  33539. this.state = "path start";
  33540. } else {
  33541. let host = parseHost(this.buffer, isSpecial(this.url));
  33542. if (host === failure) {
  33543. return failure;
  33544. }
  33545. if (host === "localhost") {
  33546. host = "";
  33547. }
  33548. this.url.host = host;
  33549. if (this.stateOverride) {
  33550. return false;
  33551. }
  33552. this.buffer = "";
  33553. this.state = "path start";
  33554. }
  33555. } else {
  33556. this.buffer += cStr;
  33557. }
  33558. return true;
  33559. };
  33560. URLStateMachine.prototype["parse path start"] = function parsePathStart(c) {
  33561. if (isSpecial(this.url)) {
  33562. if (c === 92) {
  33563. this.parseError = true;
  33564. }
  33565. this.state = "path";
  33566. if (c !== 47 && c !== 92) {
  33567. --this.pointer;
  33568. }
  33569. } else if (!this.stateOverride && c === 63) {
  33570. this.url.query = "";
  33571. this.state = "query";
  33572. } else if (!this.stateOverride && c === 35) {
  33573. this.url.fragment = "";
  33574. this.state = "fragment";
  33575. } else if (c !== undefined) {
  33576. this.state = "path";
  33577. if (c !== 47) {
  33578. --this.pointer;
  33579. }
  33580. }
  33581. return true;
  33582. };
  33583. URLStateMachine.prototype["parse path"] = function parsePath(c) {
  33584. if (isNaN(c) || c === 47 || (isSpecial(this.url) && c === 92) ||
  33585. (!this.stateOverride && (c === 63 || c === 35))) {
  33586. if (isSpecial(this.url) && c === 92) {
  33587. this.parseError = true;
  33588. }
  33589. if (isDoubleDot(this.buffer)) {
  33590. shortenPath(this.url);
  33591. if (c !== 47 && !(isSpecial(this.url) && c === 92)) {
  33592. this.url.path.push("");
  33593. }
  33594. } else if (isSingleDot(this.buffer) && c !== 47 &&
  33595. !(isSpecial(this.url) && c === 92)) {
  33596. this.url.path.push("");
  33597. } else if (!isSingleDot(this.buffer)) {
  33598. if (this.url.scheme === "file" && this.url.path.length === 0 && isWindowsDriveLetterString(this.buffer)) {
  33599. if (this.url.host !== "" && this.url.host !== null) {
  33600. this.parseError = true;
  33601. this.url.host = "";
  33602. }
  33603. this.buffer = this.buffer[0] + ":";
  33604. }
  33605. this.url.path.push(this.buffer);
  33606. }
  33607. this.buffer = "";
  33608. if (this.url.scheme === "file" && (c === undefined || c === 63 || c === 35)) {
  33609. while (this.url.path.length > 1 && this.url.path[0] === "") {
  33610. this.parseError = true;
  33611. this.url.path.shift();
  33612. }
  33613. }
  33614. if (c === 63) {
  33615. this.url.query = "";
  33616. this.state = "query";
  33617. }
  33618. if (c === 35) {
  33619. this.url.fragment = "";
  33620. this.state = "fragment";
  33621. }
  33622. } else {
  33623. // TODO: If c is not a URL code point and not "%", parse error.
  33624. if (c === 37 &&
  33625. (!isASCIIHex(this.input[this.pointer + 1]) ||
  33626. !isASCIIHex(this.input[this.pointer + 2]))) {
  33627. this.parseError = true;
  33628. }
  33629. this.buffer += percentEncodeChar(c, isPathPercentEncode);
  33630. }
  33631. return true;
  33632. };
  33633. URLStateMachine.prototype["parse cannot-be-a-base-URL path"] = function parseCannotBeABaseURLPath(c) {
  33634. if (c === 63) {
  33635. this.url.query = "";
  33636. this.state = "query";
  33637. } else if (c === 35) {
  33638. this.url.fragment = "";
  33639. this.state = "fragment";
  33640. } else {
  33641. // TODO: Add: not a URL code point
  33642. if (!isNaN(c) && c !== 37) {
  33643. this.parseError = true;
  33644. }
  33645. if (c === 37 &&
  33646. (!isASCIIHex(this.input[this.pointer + 1]) ||
  33647. !isASCIIHex(this.input[this.pointer + 2]))) {
  33648. this.parseError = true;
  33649. }
  33650. if (!isNaN(c)) {
  33651. this.url.path[0] = this.url.path[0] + percentEncodeChar(c, isC0ControlPercentEncode);
  33652. }
  33653. }
  33654. return true;
  33655. };
  33656. URLStateMachine.prototype["parse query"] = function parseQuery(c, cStr) {
  33657. if (isNaN(c) || (!this.stateOverride && c === 35)) {
  33658. if (!isSpecial(this.url) || this.url.scheme === "ws" || this.url.scheme === "wss") {
  33659. this.encodingOverride = "utf-8";
  33660. }
  33661. const buffer = new Buffer(this.buffer); // TODO: Use encoding override instead
  33662. for (let i = 0; i < buffer.length; ++i) {
  33663. if (buffer[i] < 0x21 || buffer[i] > 0x7E || buffer[i] === 0x22 || buffer[i] === 0x23 ||
  33664. buffer[i] === 0x3C || buffer[i] === 0x3E) {
  33665. this.url.query += percentEncode(buffer[i]);
  33666. } else {
  33667. this.url.query += String.fromCodePoint(buffer[i]);
  33668. }
  33669. }
  33670. this.buffer = "";
  33671. if (c === 35) {
  33672. this.url.fragment = "";
  33673. this.state = "fragment";
  33674. }
  33675. } else {
  33676. // TODO: If c is not a URL code point and not "%", parse error.
  33677. if (c === 37 &&
  33678. (!isASCIIHex(this.input[this.pointer + 1]) ||
  33679. !isASCIIHex(this.input[this.pointer + 2]))) {
  33680. this.parseError = true;
  33681. }
  33682. this.buffer += cStr;
  33683. }
  33684. return true;
  33685. };
  33686. URLStateMachine.prototype["parse fragment"] = function parseFragment(c) {
  33687. if (isNaN(c)) { // do nothing
  33688. } else if (c === 0x0) {
  33689. this.parseError = true;
  33690. } else {
  33691. // TODO: If c is not a URL code point and not "%", parse error.
  33692. if (c === 37 &&
  33693. (!isASCIIHex(this.input[this.pointer + 1]) ||
  33694. !isASCIIHex(this.input[this.pointer + 2]))) {
  33695. this.parseError = true;
  33696. }
  33697. this.url.fragment += percentEncodeChar(c, isC0ControlPercentEncode);
  33698. }
  33699. return true;
  33700. };
  33701. function serializeURL(url, excludeFragment) {
  33702. let output = url.scheme + ":";
  33703. if (url.host !== null) {
  33704. output += "//";
  33705. if (url.username !== "" || url.password !== "") {
  33706. output += url.username;
  33707. if (url.password !== "") {
  33708. output += ":" + url.password;
  33709. }
  33710. output += "@";
  33711. }
  33712. output += serializeHost(url.host);
  33713. if (url.port !== null) {
  33714. output += ":" + url.port;
  33715. }
  33716. } else if (url.host === null && url.scheme === "file") {
  33717. output += "//";
  33718. }
  33719. if (url.cannotBeABaseURL) {
  33720. output += url.path[0];
  33721. } else {
  33722. for (const string of url.path) {
  33723. output += "/" + string;
  33724. }
  33725. }
  33726. if (url.query !== null) {
  33727. output += "?" + url.query;
  33728. }
  33729. if (!excludeFragment && url.fragment !== null) {
  33730. output += "#" + url.fragment;
  33731. }
  33732. return output;
  33733. }
  33734. function serializeOrigin(tuple) {
  33735. let result = tuple.scheme + "://";
  33736. result += serializeHost(tuple.host);
  33737. if (tuple.port !== null) {
  33738. result += ":" + tuple.port;
  33739. }
  33740. return result;
  33741. }
  33742. module.exports.serializeURL = serializeURL;
  33743. module.exports.serializeURLOrigin = function (url) {
  33744. // https://url.spec.whatwg.org/#concept-url-origin
  33745. switch (url.scheme) {
  33746. case "blob":
  33747. try {
  33748. return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
  33749. } catch (e) {
  33750. // serializing an opaque origin returns "null"
  33751. return "null";
  33752. }
  33753. case "ftp":
  33754. case "gopher":
  33755. case "http":
  33756. case "https":
  33757. case "ws":
  33758. case "wss":
  33759. return serializeOrigin({
  33760. scheme: url.scheme,
  33761. host: url.host,
  33762. port: url.port
  33763. });
  33764. case "file":
  33765. // spec says "exercise to the reader", chrome says "file://"
  33766. return "file://";
  33767. default:
  33768. // serializing an opaque origin returns "null"
  33769. return "null";
  33770. }
  33771. };
  33772. module.exports.basicURLParse = function (input, options) {
  33773. if (options === undefined) {
  33774. options = {};
  33775. }
  33776. const usm = new URLStateMachine(input, options.baseURL, options.encodingOverride, options.url, options.stateOverride);
  33777. if (usm.failure) {
  33778. return "failure";
  33779. }
  33780. return usm.url;
  33781. };
  33782. module.exports.setTheUsername = function (url, username) {
  33783. url.username = "";
  33784. const decoded = punycode.ucs2.decode(username);
  33785. for (let i = 0; i < decoded.length; ++i) {
  33786. url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  33787. }
  33788. };
  33789. module.exports.setThePassword = function (url, password) {
  33790. url.password = "";
  33791. const decoded = punycode.ucs2.decode(password);
  33792. for (let i = 0; i < decoded.length; ++i) {
  33793. url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
  33794. }
  33795. };
  33796. module.exports.serializeHost = serializeHost;
  33797. module.exports.cannotHaveAUsernamePasswordPort = cannotHaveAUsernamePasswordPort;
  33798. module.exports.serializeInteger = function (integer) {
  33799. return String(integer);
  33800. };
  33801. module.exports.parseURL = function (input, options) {
  33802. if (options === undefined) {
  33803. options = {};
  33804. }
  33805. // We don't handle blobs, so this just delegates:
  33806. return module.exports.basicURLParse(input, { baseURL: options.baseURL, encodingOverride: options.encodingOverride });
  33807. };
  33808. /***/ }),
  33809. /***/ 948:
  33810. /***/ (function(module) {
  33811. "use strict";
  33812. /**
  33813. * Tries to execute a function and discards any error that occurs.
  33814. * @param {Function} fn - Function that might or might not throw an error.
  33815. * @returns {?*} Return-value of the function when no error occurred.
  33816. */
  33817. module.exports = function(fn) {
  33818. try { return fn() } catch (e) {}
  33819. }
  33820. /***/ }),
  33821. /***/ 950:
  33822. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  33823. "use strict";
  33824. Object.defineProperty(exports, "__esModule", { value: true });
  33825. const url = __webpack_require__(835);
  33826. function getProxyUrl(reqUrl) {
  33827. let usingSsl = reqUrl.protocol === 'https:';
  33828. let proxyUrl;
  33829. if (checkBypass(reqUrl)) {
  33830. return proxyUrl;
  33831. }
  33832. let proxyVar;
  33833. if (usingSsl) {
  33834. proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];
  33835. }
  33836. else {
  33837. proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];
  33838. }
  33839. if (proxyVar) {
  33840. proxyUrl = url.parse(proxyVar);
  33841. }
  33842. return proxyUrl;
  33843. }
  33844. exports.getProxyUrl = getProxyUrl;
  33845. function checkBypass(reqUrl) {
  33846. if (!reqUrl.hostname) {
  33847. return false;
  33848. }
  33849. let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
  33850. if (!noProxy) {
  33851. return false;
  33852. }
  33853. // Determine the request port
  33854. let reqPort;
  33855. if (reqUrl.port) {
  33856. reqPort = Number(reqUrl.port);
  33857. }
  33858. else if (reqUrl.protocol === 'http:') {
  33859. reqPort = 80;
  33860. }
  33861. else if (reqUrl.protocol === 'https:') {
  33862. reqPort = 443;
  33863. }
  33864. // Format the request hostname and hostname with port
  33865. let upperReqHosts = [reqUrl.hostname.toUpperCase()];
  33866. if (typeof reqPort === 'number') {
  33867. upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
  33868. }
  33869. // Compare request host against noproxy
  33870. for (let upperNoProxyItem of noProxy
  33871. .split(',')
  33872. .map(x => x.trim().toUpperCase())
  33873. .filter(x => x)) {
  33874. if (upperReqHosts.some(x => x === upperNoProxyItem)) {
  33875. return true;
  33876. }
  33877. }
  33878. return false;
  33879. }
  33880. exports.checkBypass = checkBypass;
  33881. /***/ }),
  33882. /***/ 954:
  33883. /***/ (function(module) {
  33884. module.exports = validateAuth;
  33885. function validateAuth(auth) {
  33886. if (typeof auth === "string") {
  33887. return;
  33888. }
  33889. if (typeof auth === "function") {
  33890. return;
  33891. }
  33892. if (auth.username && auth.password) {
  33893. return;
  33894. }
  33895. if (auth.clientId && auth.clientSecret) {
  33896. return;
  33897. }
  33898. throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
  33899. }
  33900. /***/ }),
  33901. /***/ 955:
  33902. /***/ (function(module, __unusedexports, __webpack_require__) {
  33903. "use strict";
  33904. const path = __webpack_require__(622);
  33905. const childProcess = __webpack_require__(129);
  33906. const crossSpawn = __webpack_require__(20);
  33907. const stripEof = __webpack_require__(768);
  33908. const npmRunPath = __webpack_require__(621);
  33909. const isStream = __webpack_require__(323);
  33910. const _getStream = __webpack_require__(145);
  33911. const pFinally = __webpack_require__(697);
  33912. const onExit = __webpack_require__(260);
  33913. const errname = __webpack_require__(427);
  33914. const stdio = __webpack_require__(168);
  33915. const TEN_MEGABYTES = 1000 * 1000 * 10;
  33916. function handleArgs(cmd, args, opts) {
  33917. let parsed;
  33918. opts = Object.assign({
  33919. extendEnv: true,
  33920. env: {}
  33921. }, opts);
  33922. if (opts.extendEnv) {
  33923. opts.env = Object.assign({}, process.env, opts.env);
  33924. }
  33925. if (opts.__winShell === true) {
  33926. delete opts.__winShell;
  33927. parsed = {
  33928. command: cmd,
  33929. args,
  33930. options: opts,
  33931. file: cmd,
  33932. original: {
  33933. cmd,
  33934. args
  33935. }
  33936. };
  33937. } else {
  33938. parsed = crossSpawn._parse(cmd, args, opts);
  33939. }
  33940. opts = Object.assign({
  33941. maxBuffer: TEN_MEGABYTES,
  33942. buffer: true,
  33943. stripEof: true,
  33944. preferLocal: true,
  33945. localDir: parsed.options.cwd || process.cwd(),
  33946. encoding: 'utf8',
  33947. reject: true,
  33948. cleanup: true
  33949. }, parsed.options);
  33950. opts.stdio = stdio(opts);
  33951. if (opts.preferLocal) {
  33952. opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir}));
  33953. }
  33954. if (opts.detached) {
  33955. // #115
  33956. opts.cleanup = false;
  33957. }
  33958. if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') {
  33959. // #116
  33960. parsed.args.unshift('/q');
  33961. }
  33962. return {
  33963. cmd: parsed.command,
  33964. args: parsed.args,
  33965. opts,
  33966. parsed
  33967. };
  33968. }
  33969. function handleInput(spawned, input) {
  33970. if (input === null || input === undefined) {
  33971. return;
  33972. }
  33973. if (isStream(input)) {
  33974. input.pipe(spawned.stdin);
  33975. } else {
  33976. spawned.stdin.end(input);
  33977. }
  33978. }
  33979. function handleOutput(opts, val) {
  33980. if (val && opts.stripEof) {
  33981. val = stripEof(val);
  33982. }
  33983. return val;
  33984. }
  33985. function handleShell(fn, cmd, opts) {
  33986. let file = '/bin/sh';
  33987. let args = ['-c', cmd];
  33988. opts = Object.assign({}, opts);
  33989. if (process.platform === 'win32') {
  33990. opts.__winShell = true;
  33991. file = process.env.comspec || 'cmd.exe';
  33992. args = ['/s', '/c', `"${cmd}"`];
  33993. opts.windowsVerbatimArguments = true;
  33994. }
  33995. if (opts.shell) {
  33996. file = opts.shell;
  33997. delete opts.shell;
  33998. }
  33999. return fn(file, args, opts);
  34000. }
  34001. function getStream(process, stream, {encoding, buffer, maxBuffer}) {
  34002. if (!process[stream]) {
  34003. return null;
  34004. }
  34005. let ret;
  34006. if (!buffer) {
  34007. // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10
  34008. ret = new Promise((resolve, reject) => {
  34009. process[stream]
  34010. .once('end', resolve)
  34011. .once('error', reject);
  34012. });
  34013. } else if (encoding) {
  34014. ret = _getStream(process[stream], {
  34015. encoding,
  34016. maxBuffer
  34017. });
  34018. } else {
  34019. ret = _getStream.buffer(process[stream], {maxBuffer});
  34020. }
  34021. return ret.catch(err => {
  34022. err.stream = stream;
  34023. err.message = `${stream} ${err.message}`;
  34024. throw err;
  34025. });
  34026. }
  34027. function makeError(result, options) {
  34028. const {stdout, stderr} = result;
  34029. let err = result.error;
  34030. const {code, signal} = result;
  34031. const {parsed, joinedCmd} = options;
  34032. const timedOut = options.timedOut || false;
  34033. if (!err) {
  34034. let output = '';
  34035. if (Array.isArray(parsed.opts.stdio)) {
  34036. if (parsed.opts.stdio[2] !== 'inherit') {
  34037. output += output.length > 0 ? stderr : `\n${stderr}`;
  34038. }
  34039. if (parsed.opts.stdio[1] !== 'inherit') {
  34040. output += `\n${stdout}`;
  34041. }
  34042. } else if (parsed.opts.stdio !== 'inherit') {
  34043. output = `\n${stderr}${stdout}`;
  34044. }
  34045. err = new Error(`Command failed: ${joinedCmd}${output}`);
  34046. err.code = code < 0 ? errname(code) : code;
  34047. }
  34048. err.stdout = stdout;
  34049. err.stderr = stderr;
  34050. err.failed = true;
  34051. err.signal = signal || null;
  34052. err.cmd = joinedCmd;
  34053. err.timedOut = timedOut;
  34054. return err;
  34055. }
  34056. function joinCmd(cmd, args) {
  34057. let joinedCmd = cmd;
  34058. if (Array.isArray(args) && args.length > 0) {
  34059. joinedCmd += ' ' + args.join(' ');
  34060. }
  34061. return joinedCmd;
  34062. }
  34063. module.exports = (cmd, args, opts) => {
  34064. const parsed = handleArgs(cmd, args, opts);
  34065. const {encoding, buffer, maxBuffer} = parsed.opts;
  34066. const joinedCmd = joinCmd(cmd, args);
  34067. let spawned;
  34068. try {
  34069. spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts);
  34070. } catch (err) {
  34071. return Promise.reject(err);
  34072. }
  34073. let removeExitHandler;
  34074. if (parsed.opts.cleanup) {
  34075. removeExitHandler = onExit(() => {
  34076. spawned.kill();
  34077. });
  34078. }
  34079. let timeoutId = null;
  34080. let timedOut = false;
  34081. const cleanup = () => {
  34082. if (timeoutId) {
  34083. clearTimeout(timeoutId);
  34084. timeoutId = null;
  34085. }
  34086. if (removeExitHandler) {
  34087. removeExitHandler();
  34088. }
  34089. };
  34090. if (parsed.opts.timeout > 0) {
  34091. timeoutId = setTimeout(() => {
  34092. timeoutId = null;
  34093. timedOut = true;
  34094. spawned.kill(parsed.opts.killSignal);
  34095. }, parsed.opts.timeout);
  34096. }
  34097. const processDone = new Promise(resolve => {
  34098. spawned.on('exit', (code, signal) => {
  34099. cleanup();
  34100. resolve({code, signal});
  34101. });
  34102. spawned.on('error', err => {
  34103. cleanup();
  34104. resolve({error: err});
  34105. });
  34106. if (spawned.stdin) {
  34107. spawned.stdin.on('error', err => {
  34108. cleanup();
  34109. resolve({error: err});
  34110. });
  34111. }
  34112. });
  34113. function destroy() {
  34114. if (spawned.stdout) {
  34115. spawned.stdout.destroy();
  34116. }
  34117. if (spawned.stderr) {
  34118. spawned.stderr.destroy();
  34119. }
  34120. }
  34121. const handlePromise = () => pFinally(Promise.all([
  34122. processDone,
  34123. getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}),
  34124. getStream(spawned, 'stderr', {encoding, buffer, maxBuffer})
  34125. ]).then(arr => {
  34126. const result = arr[0];
  34127. result.stdout = arr[1];
  34128. result.stderr = arr[2];
  34129. if (result.error || result.code !== 0 || result.signal !== null) {
  34130. const err = makeError(result, {
  34131. joinedCmd,
  34132. parsed,
  34133. timedOut
  34134. });
  34135. // TODO: missing some timeout logic for killed
  34136. // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203
  34137. // err.killed = spawned.killed || killed;
  34138. err.killed = err.killed || spawned.killed;
  34139. if (!parsed.opts.reject) {
  34140. return err;
  34141. }
  34142. throw err;
  34143. }
  34144. return {
  34145. stdout: handleOutput(parsed.opts, result.stdout),
  34146. stderr: handleOutput(parsed.opts, result.stderr),
  34147. code: 0,
  34148. failed: false,
  34149. killed: false,
  34150. signal: null,
  34151. cmd: joinedCmd,
  34152. timedOut: false
  34153. };
  34154. }), destroy);
  34155. crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
  34156. handleInput(spawned, parsed.opts.input);
  34157. spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected);
  34158. spawned.catch = onrejected => handlePromise().catch(onrejected);
  34159. return spawned;
  34160. };
  34161. // TODO: set `stderr: 'ignore'` when that option is implemented
  34162. module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout);
  34163. // TODO: set `stdout: 'ignore'` when that option is implemented
  34164. module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr);
  34165. module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts);
  34166. module.exports.sync = (cmd, args, opts) => {
  34167. const parsed = handleArgs(cmd, args, opts);
  34168. const joinedCmd = joinCmd(cmd, args);
  34169. if (isStream(parsed.opts.input)) {
  34170. throw new TypeError('The `input` option cannot be a stream in sync mode');
  34171. }
  34172. const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts);
  34173. result.code = result.status;
  34174. if (result.error || result.status !== 0 || result.signal !== null) {
  34175. const err = makeError(result, {
  34176. joinedCmd,
  34177. parsed
  34178. });
  34179. if (!parsed.opts.reject) {
  34180. return err;
  34181. }
  34182. throw err;
  34183. }
  34184. return {
  34185. stdout: handleOutput(parsed.opts, result.stdout),
  34186. stderr: handleOutput(parsed.opts, result.stderr),
  34187. code: 0,
  34188. failed: false,
  34189. signal: null,
  34190. cmd: joinedCmd,
  34191. timedOut: false
  34192. };
  34193. };
  34194. module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts);
  34195. /***/ }),
  34196. /***/ 960:
  34197. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  34198. "use strict";
  34199. Object.defineProperty(exports, "__esModule", {
  34200. value: true
  34201. });
  34202. exports.default = void 0;
  34203. var _validate = _interopRequireDefault(__webpack_require__(634));
  34204. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  34205. /**
  34206. * Convert array of 16 byte values to UUID string format of the form:
  34207. * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  34208. */
  34209. const byteToHex = [];
  34210. for (let i = 0; i < 256; ++i) {
  34211. byteToHex.push((i + 0x100).toString(16).substr(1));
  34212. }
  34213. function stringify(arr, offset = 0) {
  34214. // Note: Be careful editing this code! It's been tuned for performance
  34215. // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
  34216. const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
  34217. // of the following:
  34218. // - One or more input array values don't map to a hex octet (leading to
  34219. // "undefined" in the uuid)
  34220. // - Invalid input values for the RFC `version` or `variant` fields
  34221. if (!(0, _validate.default)(uuid)) {
  34222. throw TypeError('Stringified UUID is invalid');
  34223. }
  34224. return uuid;
  34225. }
  34226. var _default = stringify;
  34227. exports.default = _default;
  34228. /***/ }),
  34229. /***/ 966:
  34230. /***/ (function(module, __unusedexports, __webpack_require__) {
  34231. "use strict";
  34232. const {PassThrough} = __webpack_require__(794);
  34233. module.exports = options => {
  34234. options = Object.assign({}, options);
  34235. const {array} = options;
  34236. let {encoding} = options;
  34237. const buffer = encoding === 'buffer';
  34238. let objectMode = false;
  34239. if (array) {
  34240. objectMode = !(encoding || buffer);
  34241. } else {
  34242. encoding = encoding || 'utf8';
  34243. }
  34244. if (buffer) {
  34245. encoding = null;
  34246. }
  34247. let len = 0;
  34248. const ret = [];
  34249. const stream = new PassThrough({objectMode});
  34250. if (encoding) {
  34251. stream.setEncoding(encoding);
  34252. }
  34253. stream.on('data', chunk => {
  34254. ret.push(chunk);
  34255. if (objectMode) {
  34256. len = ret.length;
  34257. } else {
  34258. len += chunk.length;
  34259. }
  34260. });
  34261. stream.getBufferedValue = () => {
  34262. if (array) {
  34263. return ret;
  34264. }
  34265. return buffer ? Buffer.concat(ret, len) : ret.join('');
  34266. };
  34267. stream.getBufferedLength = () => len;
  34268. return stream;
  34269. };
  34270. /***/ }),
  34271. /***/ 969:
  34272. /***/ (function(module, __unusedexports, __webpack_require__) {
  34273. var wrappy = __webpack_require__(11)
  34274. module.exports = wrappy(once)
  34275. module.exports.strict = wrappy(onceStrict)
  34276. once.proto = once(function () {
  34277. Object.defineProperty(Function.prototype, 'once', {
  34278. value: function () {
  34279. return once(this)
  34280. },
  34281. configurable: true
  34282. })
  34283. Object.defineProperty(Function.prototype, 'onceStrict', {
  34284. value: function () {
  34285. return onceStrict(this)
  34286. },
  34287. configurable: true
  34288. })
  34289. })
  34290. function once (fn) {
  34291. var f = function () {
  34292. if (f.called) return f.value
  34293. f.called = true
  34294. return f.value = fn.apply(this, arguments)
  34295. }
  34296. f.called = false
  34297. return f
  34298. }
  34299. function onceStrict (fn) {
  34300. var f = function () {
  34301. if (f.called)
  34302. throw new Error(f.onceError)
  34303. f.called = true
  34304. return f.value = fn.apply(this, arguments)
  34305. }
  34306. var name = fn.name || 'Function wrapped with `once`'
  34307. f.onceError = name + " shouldn't be called more than once"
  34308. f.called = false
  34309. return f
  34310. }
  34311. /***/ }),
  34312. /***/ 976:
  34313. /***/ (function(module, __unusedexports, __webpack_require__) {
  34314. "use strict";
  34315. var punycode = __webpack_require__(213);
  34316. var mappingTable = __webpack_require__(482);
  34317. var PROCESSING_OPTIONS = {
  34318. TRANSITIONAL: 0,
  34319. NONTRANSITIONAL: 1
  34320. };
  34321. function normalize(str) { // fix bug in v8
  34322. return str.split('\u0000').map(function (s) { return s.normalize('NFC'); }).join('\u0000');
  34323. }
  34324. function findStatus(val) {
  34325. var start = 0;
  34326. var end = mappingTable.length - 1;
  34327. while (start <= end) {
  34328. var mid = Math.floor((start + end) / 2);
  34329. var target = mappingTable[mid];
  34330. if (target[0][0] <= val && target[0][1] >= val) {
  34331. return target;
  34332. } else if (target[0][0] > val) {
  34333. end = mid - 1;
  34334. } else {
  34335. start = mid + 1;
  34336. }
  34337. }
  34338. return null;
  34339. }
  34340. var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  34341. function countSymbols(string) {
  34342. return string
  34343. // replace every surrogate pair with a BMP symbol
  34344. .replace(regexAstralSymbols, '_')
  34345. // then get the length
  34346. .length;
  34347. }
  34348. function mapChars(domain_name, useSTD3, processing_option) {
  34349. var hasError = false;
  34350. var processed = "";
  34351. var len = countSymbols(domain_name);
  34352. for (var i = 0; i < len; ++i) {
  34353. var codePoint = domain_name.codePointAt(i);
  34354. var status = findStatus(codePoint);
  34355. switch (status[1]) {
  34356. case "disallowed":
  34357. hasError = true;
  34358. processed += String.fromCodePoint(codePoint);
  34359. break;
  34360. case "ignored":
  34361. break;
  34362. case "mapped":
  34363. processed += String.fromCodePoint.apply(String, status[2]);
  34364. break;
  34365. case "deviation":
  34366. if (processing_option === PROCESSING_OPTIONS.TRANSITIONAL) {
  34367. processed += String.fromCodePoint.apply(String, status[2]);
  34368. } else {
  34369. processed += String.fromCodePoint(codePoint);
  34370. }
  34371. break;
  34372. case "valid":
  34373. processed += String.fromCodePoint(codePoint);
  34374. break;
  34375. case "disallowed_STD3_mapped":
  34376. if (useSTD3) {
  34377. hasError = true;
  34378. processed += String.fromCodePoint(codePoint);
  34379. } else {
  34380. processed += String.fromCodePoint.apply(String, status[2]);
  34381. }
  34382. break;
  34383. case "disallowed_STD3_valid":
  34384. if (useSTD3) {
  34385. hasError = true;
  34386. }
  34387. processed += String.fromCodePoint(codePoint);
  34388. break;
  34389. }
  34390. }
  34391. return {
  34392. string: processed,
  34393. error: hasError
  34394. };
  34395. }
  34396. var combiningMarksRegex = /[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;
  34397. function validateLabel(label, processing_option) {
  34398. if (label.substr(0, 4) === "xn--") {
  34399. label = punycode.toUnicode(label);
  34400. processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
  34401. }
  34402. var error = false;
  34403. if (normalize(label) !== label ||
  34404. (label[3] === "-" && label[4] === "-") ||
  34405. label[0] === "-" || label[label.length - 1] === "-" ||
  34406. label.indexOf(".") !== -1 ||
  34407. label.search(combiningMarksRegex) === 0) {
  34408. error = true;
  34409. }
  34410. var len = countSymbols(label);
  34411. for (var i = 0; i < len; ++i) {
  34412. var status = findStatus(label.codePointAt(i));
  34413. if ((processing === PROCESSING_OPTIONS.TRANSITIONAL && status[1] !== "valid") ||
  34414. (processing === PROCESSING_OPTIONS.NONTRANSITIONAL &&
  34415. status[1] !== "valid" && status[1] !== "deviation")) {
  34416. error = true;
  34417. break;
  34418. }
  34419. }
  34420. return {
  34421. label: label,
  34422. error: error
  34423. };
  34424. }
  34425. function processing(domain_name, useSTD3, processing_option) {
  34426. var result = mapChars(domain_name, useSTD3, processing_option);
  34427. result.string = normalize(result.string);
  34428. var labels = result.string.split(".");
  34429. for (var i = 0; i < labels.length; ++i) {
  34430. try {
  34431. var validation = validateLabel(labels[i]);
  34432. labels[i] = validation.label;
  34433. result.error = result.error || validation.error;
  34434. } catch(e) {
  34435. result.error = true;
  34436. }
  34437. }
  34438. return {
  34439. string: labels.join("."),
  34440. error: result.error
  34441. };
  34442. }
  34443. module.exports.toASCII = function(domain_name, useSTD3, processing_option, verifyDnsLength) {
  34444. var result = processing(domain_name, useSTD3, processing_option);
  34445. var labels = result.string.split(".");
  34446. labels = labels.map(function(l) {
  34447. try {
  34448. return punycode.toASCII(l);
  34449. } catch(e) {
  34450. result.error = true;
  34451. return l;
  34452. }
  34453. });
  34454. if (verifyDnsLength) {
  34455. var total = labels.slice(0, labels.length - 1).join(".").length;
  34456. if (total.length > 253 || total.length === 0) {
  34457. result.error = true;
  34458. }
  34459. for (var i=0; i < labels.length; ++i) {
  34460. if (labels.length > 63 || labels.length === 0) {
  34461. result.error = true;
  34462. break;
  34463. }
  34464. }
  34465. }
  34466. if (result.error) return null;
  34467. return labels.join(".");
  34468. };
  34469. module.exports.toUnicode = function(domain_name, useSTD3) {
  34470. var result = processing(domain_name, useSTD3, PROCESSING_OPTIONS.NONTRANSITIONAL);
  34471. return {
  34472. domain: result.string,
  34473. error: result.error
  34474. };
  34475. };
  34476. module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS;
  34477. /***/ }),
  34478. /***/ 986:
  34479. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  34480. "use strict";
  34481. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  34482. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  34483. return new (P || (P = Promise))(function (resolve, reject) {
  34484. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  34485. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  34486. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  34487. step((generator = generator.apply(thisArg, _arguments || [])).next());
  34488. });
  34489. };
  34490. Object.defineProperty(exports, "__esModule", { value: true });
  34491. const tr = __webpack_require__(9);
  34492. /**
  34493. * Exec a command.
  34494. * Output will be streamed to the live console.
  34495. * Returns promise with return code
  34496. *
  34497. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
  34498. * @param args optional arguments for tool. Escaping is handled by the lib.
  34499. * @param options optional exec options. See ExecOptions
  34500. * @returns Promise<number> exit code
  34501. */
  34502. function exec(commandLine, args, options) {
  34503. return __awaiter(this, void 0, void 0, function* () {
  34504. const commandArgs = tr.argStringToArray(commandLine);
  34505. if (commandArgs.length === 0) {
  34506. throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
  34507. }
  34508. // Path to tool to execute should be first arg
  34509. const toolPath = commandArgs[0];
  34510. args = commandArgs.slice(1).concat(args || []);
  34511. const runner = new tr.ToolRunner(toolPath, args, options);
  34512. return runner.exec();
  34513. });
  34514. }
  34515. exports.exec = exec;
  34516. //# sourceMappingURL=exec.js.map
  34517. /***/ }),
  34518. /***/ 991:
  34519. /***/ (function(module, __unusedexports, __webpack_require__) {
  34520. module.exports = authenticationRequestError;
  34521. const { RequestError } = __webpack_require__(497);
  34522. function authenticationRequestError(state, error, options) {
  34523. if (!error.headers) throw error;
  34524. const otpRequired = /required/.test(error.headers["x-github-otp"] || "");
  34525. // handle "2FA required" error only
  34526. if (error.status !== 401 || !otpRequired) {
  34527. throw error;
  34528. }
  34529. if (
  34530. error.status === 401 &&
  34531. otpRequired &&
  34532. error.request &&
  34533. error.request.headers["x-github-otp"]
  34534. ) {
  34535. if (state.otp) {
  34536. delete state.otp; // no longer valid, request again
  34537. } else {
  34538. throw new RequestError(
  34539. "Invalid one-time password for two-factor authentication",
  34540. 401,
  34541. {
  34542. headers: error.headers,
  34543. request: options
  34544. }
  34545. );
  34546. }
  34547. }
  34548. if (typeof state.auth.on2fa !== "function") {
  34549. throw new RequestError(
  34550. "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",
  34551. 401,
  34552. {
  34553. headers: error.headers,
  34554. request: options
  34555. }
  34556. );
  34557. }
  34558. return Promise.resolve()
  34559. .then(() => {
  34560. return state.auth.on2fa();
  34561. })
  34562. .then(oneTimePassword => {
  34563. const newOptions = Object.assign(options, {
  34564. headers: Object.assign(options.headers, {
  34565. "x-github-otp": oneTimePassword
  34566. })
  34567. });
  34568. return state.octokit.request(newOptions).then(response => {
  34569. // If OTP still valid, then persist it for following requests
  34570. state.otp = oneTimePassword;
  34571. return response;
  34572. });
  34573. });
  34574. }
  34575. /***/ }),
  34576. /***/ 993:
  34577. /***/ (function(__unusedmodule, exports, __webpack_require__) {
  34578. "use strict";
  34579. /* eslint-disable @typescript-eslint/no-explicit-any */
  34580. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  34581. if (k2 === undefined) k2 = k;
  34582. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  34583. }) : (function(o, m, k, k2) {
  34584. if (k2 === undefined) k2 = k;
  34585. o[k2] = m[k];
  34586. }));
  34587. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  34588. Object.defineProperty(o, "default", { enumerable: true, value: v });
  34589. }) : function(o, v) {
  34590. o["default"] = v;
  34591. });
  34592. var __importStar = (this && this.__importStar) || function (mod) {
  34593. if (mod && mod.__esModule) return mod;
  34594. var result = {};
  34595. if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  34596. __setModuleDefault(result, mod);
  34597. return result;
  34598. };
  34599. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  34600. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  34601. return new (P || (P = Promise))(function (resolve, reject) {
  34602. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  34603. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  34604. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  34605. step((generator = generator.apply(thisArg, _arguments || [])).next());
  34606. });
  34607. };
  34608. Object.defineProperty(exports, "__esModule", { value: true });
  34609. exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
  34610. const http = __importStar(__webpack_require__(605));
  34611. const https = __importStar(__webpack_require__(211));
  34612. const pm = __importStar(__webpack_require__(95));
  34613. const tunnel = __importStar(__webpack_require__(413));
  34614. var HttpCodes;
  34615. (function (HttpCodes) {
  34616. HttpCodes[HttpCodes["OK"] = 200] = "OK";
  34617. HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
  34618. HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
  34619. HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
  34620. HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
  34621. HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
  34622. HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
  34623. HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
  34624. HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
  34625. HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
  34626. HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
  34627. HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
  34628. HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
  34629. HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
  34630. HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
  34631. HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
  34632. HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
  34633. HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
  34634. HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
  34635. HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
  34636. HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
  34637. HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
  34638. HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
  34639. HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
  34640. HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
  34641. HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
  34642. HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
  34643. })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}));
  34644. var Headers;
  34645. (function (Headers) {
  34646. Headers["Accept"] = "accept";
  34647. Headers["ContentType"] = "content-type";
  34648. })(Headers = exports.Headers || (exports.Headers = {}));
  34649. var MediaTypes;
  34650. (function (MediaTypes) {
  34651. MediaTypes["ApplicationJson"] = "application/json";
  34652. })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
  34653. /**
  34654. * Returns the proxy URL, depending upon the supplied url and proxy environment variables.
  34655. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  34656. */
  34657. function getProxyUrl(serverUrl) {
  34658. const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
  34659. return proxyUrl ? proxyUrl.href : '';
  34660. }
  34661. exports.getProxyUrl = getProxyUrl;
  34662. const HttpRedirectCodes = [
  34663. HttpCodes.MovedPermanently,
  34664. HttpCodes.ResourceMoved,
  34665. HttpCodes.SeeOther,
  34666. HttpCodes.TemporaryRedirect,
  34667. HttpCodes.PermanentRedirect
  34668. ];
  34669. const HttpResponseRetryCodes = [
  34670. HttpCodes.BadGateway,
  34671. HttpCodes.ServiceUnavailable,
  34672. HttpCodes.GatewayTimeout
  34673. ];
  34674. const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
  34675. const ExponentialBackoffCeiling = 10;
  34676. const ExponentialBackoffTimeSlice = 5;
  34677. class HttpClientError extends Error {
  34678. constructor(message, statusCode) {
  34679. super(message);
  34680. this.name = 'HttpClientError';
  34681. this.statusCode = statusCode;
  34682. Object.setPrototypeOf(this, HttpClientError.prototype);
  34683. }
  34684. }
  34685. exports.HttpClientError = HttpClientError;
  34686. class HttpClientResponse {
  34687. constructor(message) {
  34688. this.message = message;
  34689. }
  34690. readBody() {
  34691. return __awaiter(this, void 0, void 0, function* () {
  34692. return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
  34693. let output = Buffer.alloc(0);
  34694. this.message.on('data', (chunk) => {
  34695. output = Buffer.concat([output, chunk]);
  34696. });
  34697. this.message.on('end', () => {
  34698. resolve(output.toString());
  34699. });
  34700. }));
  34701. });
  34702. }
  34703. }
  34704. exports.HttpClientResponse = HttpClientResponse;
  34705. function isHttps(requestUrl) {
  34706. const parsedUrl = new URL(requestUrl);
  34707. return parsedUrl.protocol === 'https:';
  34708. }
  34709. exports.isHttps = isHttps;
  34710. class HttpClient {
  34711. constructor(userAgent, handlers, requestOptions) {
  34712. this._ignoreSslError = false;
  34713. this._allowRedirects = true;
  34714. this._allowRedirectDowngrade = false;
  34715. this._maxRedirects = 50;
  34716. this._allowRetries = false;
  34717. this._maxRetries = 1;
  34718. this._keepAlive = false;
  34719. this._disposed = false;
  34720. this.userAgent = userAgent;
  34721. this.handlers = handlers || [];
  34722. this.requestOptions = requestOptions;
  34723. if (requestOptions) {
  34724. if (requestOptions.ignoreSslError != null) {
  34725. this._ignoreSslError = requestOptions.ignoreSslError;
  34726. }
  34727. this._socketTimeout = requestOptions.socketTimeout;
  34728. if (requestOptions.allowRedirects != null) {
  34729. this._allowRedirects = requestOptions.allowRedirects;
  34730. }
  34731. if (requestOptions.allowRedirectDowngrade != null) {
  34732. this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
  34733. }
  34734. if (requestOptions.maxRedirects != null) {
  34735. this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
  34736. }
  34737. if (requestOptions.keepAlive != null) {
  34738. this._keepAlive = requestOptions.keepAlive;
  34739. }
  34740. if (requestOptions.allowRetries != null) {
  34741. this._allowRetries = requestOptions.allowRetries;
  34742. }
  34743. if (requestOptions.maxRetries != null) {
  34744. this._maxRetries = requestOptions.maxRetries;
  34745. }
  34746. }
  34747. }
  34748. options(requestUrl, additionalHeaders) {
  34749. return __awaiter(this, void 0, void 0, function* () {
  34750. return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
  34751. });
  34752. }
  34753. get(requestUrl, additionalHeaders) {
  34754. return __awaiter(this, void 0, void 0, function* () {
  34755. return this.request('GET', requestUrl, null, additionalHeaders || {});
  34756. });
  34757. }
  34758. del(requestUrl, additionalHeaders) {
  34759. return __awaiter(this, void 0, void 0, function* () {
  34760. return this.request('DELETE', requestUrl, null, additionalHeaders || {});
  34761. });
  34762. }
  34763. post(requestUrl, data, additionalHeaders) {
  34764. return __awaiter(this, void 0, void 0, function* () {
  34765. return this.request('POST', requestUrl, data, additionalHeaders || {});
  34766. });
  34767. }
  34768. patch(requestUrl, data, additionalHeaders) {
  34769. return __awaiter(this, void 0, void 0, function* () {
  34770. return this.request('PATCH', requestUrl, data, additionalHeaders || {});
  34771. });
  34772. }
  34773. put(requestUrl, data, additionalHeaders) {
  34774. return __awaiter(this, void 0, void 0, function* () {
  34775. return this.request('PUT', requestUrl, data, additionalHeaders || {});
  34776. });
  34777. }
  34778. head(requestUrl, additionalHeaders) {
  34779. return __awaiter(this, void 0, void 0, function* () {
  34780. return this.request('HEAD', requestUrl, null, additionalHeaders || {});
  34781. });
  34782. }
  34783. sendStream(verb, requestUrl, stream, additionalHeaders) {
  34784. return __awaiter(this, void 0, void 0, function* () {
  34785. return this.request(verb, requestUrl, stream, additionalHeaders);
  34786. });
  34787. }
  34788. /**
  34789. * Gets a typed object from an endpoint
  34790. * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
  34791. */
  34792. getJson(requestUrl, additionalHeaders = {}) {
  34793. return __awaiter(this, void 0, void 0, function* () {
  34794. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  34795. const res = yield this.get(requestUrl, additionalHeaders);
  34796. return this._processResponse(res, this.requestOptions);
  34797. });
  34798. }
  34799. postJson(requestUrl, obj, additionalHeaders = {}) {
  34800. return __awaiter(this, void 0, void 0, function* () {
  34801. const data = JSON.stringify(obj, null, 2);
  34802. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  34803. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  34804. const res = yield this.post(requestUrl, data, additionalHeaders);
  34805. return this._processResponse(res, this.requestOptions);
  34806. });
  34807. }
  34808. putJson(requestUrl, obj, additionalHeaders = {}) {
  34809. return __awaiter(this, void 0, void 0, function* () {
  34810. const data = JSON.stringify(obj, null, 2);
  34811. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  34812. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  34813. const res = yield this.put(requestUrl, data, additionalHeaders);
  34814. return this._processResponse(res, this.requestOptions);
  34815. });
  34816. }
  34817. patchJson(requestUrl, obj, additionalHeaders = {}) {
  34818. return __awaiter(this, void 0, void 0, function* () {
  34819. const data = JSON.stringify(obj, null, 2);
  34820. additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
  34821. additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson);
  34822. const res = yield this.patch(requestUrl, data, additionalHeaders);
  34823. return this._processResponse(res, this.requestOptions);
  34824. });
  34825. }
  34826. /**
  34827. * Makes a raw http request.
  34828. * All other methods such as get, post, patch, and request ultimately call this.
  34829. * Prefer get, del, post and patch
  34830. */
  34831. request(verb, requestUrl, data, headers) {
  34832. return __awaiter(this, void 0, void 0, function* () {
  34833. if (this._disposed) {
  34834. throw new Error('Client has already been disposed.');
  34835. }
  34836. const parsedUrl = new URL(requestUrl);
  34837. let info = this._prepareRequest(verb, parsedUrl, headers);
  34838. // Only perform retries on reads since writes may not be idempotent.
  34839. const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
  34840. ? this._maxRetries + 1
  34841. : 1;
  34842. let numTries = 0;
  34843. let response;
  34844. do {
  34845. response = yield this.requestRaw(info, data);
  34846. // Check if it's an authentication challenge
  34847. if (response &&
  34848. response.message &&
  34849. response.message.statusCode === HttpCodes.Unauthorized) {
  34850. let authenticationHandler;
  34851. for (const handler of this.handlers) {
  34852. if (handler.canHandleAuthentication(response)) {
  34853. authenticationHandler = handler;
  34854. break;
  34855. }
  34856. }
  34857. if (authenticationHandler) {
  34858. return authenticationHandler.handleAuthentication(this, info, data);
  34859. }
  34860. else {
  34861. // We have received an unauthorized response but have no handlers to handle it.
  34862. // Let the response return to the caller.
  34863. return response;
  34864. }
  34865. }
  34866. let redirectsRemaining = this._maxRedirects;
  34867. while (response.message.statusCode &&
  34868. HttpRedirectCodes.includes(response.message.statusCode) &&
  34869. this._allowRedirects &&
  34870. redirectsRemaining > 0) {
  34871. const redirectUrl = response.message.headers['location'];
  34872. if (!redirectUrl) {
  34873. // if there's no location to redirect to, we won't
  34874. break;
  34875. }
  34876. const parsedRedirectUrl = new URL(redirectUrl);
  34877. if (parsedUrl.protocol === 'https:' &&
  34878. parsedUrl.protocol !== parsedRedirectUrl.protocol &&
  34879. !this._allowRedirectDowngrade) {
  34880. throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
  34881. }
  34882. // we need to finish reading the response before reassigning response
  34883. // which will leak the open socket.
  34884. yield response.readBody();
  34885. // strip authorization header if redirected to a different hostname
  34886. if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
  34887. for (const header in headers) {
  34888. // header names are case insensitive
  34889. if (header.toLowerCase() === 'authorization') {
  34890. delete headers[header];
  34891. }
  34892. }
  34893. }
  34894. // let's make the request with the new redirectUrl
  34895. info = this._prepareRequest(verb, parsedRedirectUrl, headers);
  34896. response = yield this.requestRaw(info, data);
  34897. redirectsRemaining--;
  34898. }
  34899. if (!response.message.statusCode ||
  34900. !HttpResponseRetryCodes.includes(response.message.statusCode)) {
  34901. // If not a retry code, return immediately instead of retrying
  34902. return response;
  34903. }
  34904. numTries += 1;
  34905. if (numTries < maxTries) {
  34906. yield response.readBody();
  34907. yield this._performExponentialBackoff(numTries);
  34908. }
  34909. } while (numTries < maxTries);
  34910. return response;
  34911. });
  34912. }
  34913. /**
  34914. * Needs to be called if keepAlive is set to true in request options.
  34915. */
  34916. dispose() {
  34917. if (this._agent) {
  34918. this._agent.destroy();
  34919. }
  34920. this._disposed = true;
  34921. }
  34922. /**
  34923. * Raw request.
  34924. * @param info
  34925. * @param data
  34926. */
  34927. requestRaw(info, data) {
  34928. return __awaiter(this, void 0, void 0, function* () {
  34929. return new Promise((resolve, reject) => {
  34930. function callbackForResult(err, res) {
  34931. if (err) {
  34932. reject(err);
  34933. }
  34934. else if (!res) {
  34935. // If `err` is not passed, then `res` must be passed.
  34936. reject(new Error('Unknown error'));
  34937. }
  34938. else {
  34939. resolve(res);
  34940. }
  34941. }
  34942. this.requestRawWithCallback(info, data, callbackForResult);
  34943. });
  34944. });
  34945. }
  34946. /**
  34947. * Raw request with callback.
  34948. * @param info
  34949. * @param data
  34950. * @param onResult
  34951. */
  34952. requestRawWithCallback(info, data, onResult) {
  34953. if (typeof data === 'string') {
  34954. if (!info.options.headers) {
  34955. info.options.headers = {};
  34956. }
  34957. info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
  34958. }
  34959. let callbackCalled = false;
  34960. function handleResult(err, res) {
  34961. if (!callbackCalled) {
  34962. callbackCalled = true;
  34963. onResult(err, res);
  34964. }
  34965. }
  34966. const req = info.httpModule.request(info.options, (msg) => {
  34967. const res = new HttpClientResponse(msg);
  34968. handleResult(undefined, res);
  34969. });
  34970. let socket;
  34971. req.on('socket', sock => {
  34972. socket = sock;
  34973. });
  34974. // If we ever get disconnected, we want the socket to timeout eventually
  34975. req.setTimeout(this._socketTimeout || 3 * 60000, () => {
  34976. if (socket) {
  34977. socket.end();
  34978. }
  34979. handleResult(new Error(`Request timeout: ${info.options.path}`));
  34980. });
  34981. req.on('error', function (err) {
  34982. // err has statusCode property
  34983. // res should have headers
  34984. handleResult(err);
  34985. });
  34986. if (data && typeof data === 'string') {
  34987. req.write(data, 'utf8');
  34988. }
  34989. if (data && typeof data !== 'string') {
  34990. data.on('close', function () {
  34991. req.end();
  34992. });
  34993. data.pipe(req);
  34994. }
  34995. else {
  34996. req.end();
  34997. }
  34998. }
  34999. /**
  35000. * Gets an http agent. This function is useful when you need an http agent that handles
  35001. * routing through a proxy server - depending upon the url and proxy environment variables.
  35002. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
  35003. */
  35004. getAgent(serverUrl) {
  35005. const parsedUrl = new URL(serverUrl);
  35006. return this._getAgent(parsedUrl);
  35007. }
  35008. _prepareRequest(method, requestUrl, headers) {
  35009. const info = {};
  35010. info.parsedUrl = requestUrl;
  35011. const usingSsl = info.parsedUrl.protocol === 'https:';
  35012. info.httpModule = usingSsl ? https : http;
  35013. const defaultPort = usingSsl ? 443 : 80;
  35014. info.options = {};
  35015. info.options.host = info.parsedUrl.hostname;
  35016. info.options.port = info.parsedUrl.port
  35017. ? parseInt(info.parsedUrl.port)
  35018. : defaultPort;
  35019. info.options.path =
  35020. (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
  35021. info.options.method = method;
  35022. info.options.headers = this._mergeHeaders(headers);
  35023. if (this.userAgent != null) {
  35024. info.options.headers['user-agent'] = this.userAgent;
  35025. }
  35026. info.options.agent = this._getAgent(info.parsedUrl);
  35027. // gives handlers an opportunity to participate
  35028. if (this.handlers) {
  35029. for (const handler of this.handlers) {
  35030. handler.prepareRequest(info.options);
  35031. }
  35032. }
  35033. return info;
  35034. }
  35035. _mergeHeaders(headers) {
  35036. if (this.requestOptions && this.requestOptions.headers) {
  35037. return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
  35038. }
  35039. return lowercaseKeys(headers || {});
  35040. }
  35041. _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
  35042. let clientHeader;
  35043. if (this.requestOptions && this.requestOptions.headers) {
  35044. clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
  35045. }
  35046. return additionalHeaders[header] || clientHeader || _default;
  35047. }
  35048. _getAgent(parsedUrl) {
  35049. let agent;
  35050. const proxyUrl = pm.getProxyUrl(parsedUrl);
  35051. const useProxy = proxyUrl && proxyUrl.hostname;
  35052. if (this._keepAlive && useProxy) {
  35053. agent = this._proxyAgent;
  35054. }
  35055. if (this._keepAlive && !useProxy) {
  35056. agent = this._agent;
  35057. }
  35058. // if agent is already assigned use that agent.
  35059. if (agent) {
  35060. return agent;
  35061. }
  35062. const usingSsl = parsedUrl.protocol === 'https:';
  35063. let maxSockets = 100;
  35064. if (this.requestOptions) {
  35065. maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
  35066. }
  35067. // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
  35068. if (proxyUrl && proxyUrl.hostname) {
  35069. const agentOptions = {
  35070. maxSockets,
  35071. keepAlive: this._keepAlive,
  35072. proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
  35073. proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
  35074. })), { host: proxyUrl.hostname, port: proxyUrl.port })
  35075. };
  35076. let tunnelAgent;
  35077. const overHttps = proxyUrl.protocol === 'https:';
  35078. if (usingSsl) {
  35079. tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
  35080. }
  35081. else {
  35082. tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
  35083. }
  35084. agent = tunnelAgent(agentOptions);
  35085. this._proxyAgent = agent;
  35086. }
  35087. // if reusing agent across request and tunneling agent isn't assigned create a new agent
  35088. if (this._keepAlive && !agent) {
  35089. const options = { keepAlive: this._keepAlive, maxSockets };
  35090. agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
  35091. this._agent = agent;
  35092. }
  35093. // if not using private agent and tunnel agent isn't setup then use global agent
  35094. if (!agent) {
  35095. agent = usingSsl ? https.globalAgent : http.globalAgent;
  35096. }
  35097. if (usingSsl && this._ignoreSslError) {
  35098. // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
  35099. // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
  35100. // we have to cast it to any and change it directly
  35101. agent.options = Object.assign(agent.options || {}, {
  35102. rejectUnauthorized: false
  35103. });
  35104. }
  35105. return agent;
  35106. }
  35107. _performExponentialBackoff(retryNumber) {
  35108. return __awaiter(this, void 0, void 0, function* () {
  35109. retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
  35110. const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
  35111. return new Promise(resolve => setTimeout(() => resolve(), ms));
  35112. });
  35113. }
  35114. _processResponse(res, options) {
  35115. return __awaiter(this, void 0, void 0, function* () {
  35116. return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
  35117. const statusCode = res.message.statusCode || 0;
  35118. const response = {
  35119. statusCode,
  35120. result: null,
  35121. headers: {}
  35122. };
  35123. // not found leads to null obj returned
  35124. if (statusCode === HttpCodes.NotFound) {
  35125. resolve(response);
  35126. }
  35127. // get the result from the body
  35128. function dateTimeDeserializer(key, value) {
  35129. if (typeof value === 'string') {
  35130. const a = new Date(value);
  35131. if (!isNaN(a.valueOf())) {
  35132. return a;
  35133. }
  35134. }
  35135. return value;
  35136. }
  35137. let obj;
  35138. let contents;
  35139. try {
  35140. contents = yield res.readBody();
  35141. if (contents && contents.length > 0) {
  35142. if (options && options.deserializeDates) {
  35143. obj = JSON.parse(contents, dateTimeDeserializer);
  35144. }
  35145. else {
  35146. obj = JSON.parse(contents);
  35147. }
  35148. response.result = obj;
  35149. }
  35150. response.headers = res.message.headers;
  35151. }
  35152. catch (err) {
  35153. // Invalid resource (contents not json); leaving result obj null
  35154. }
  35155. // note that 3xx redirects are handled by the http layer.
  35156. if (statusCode > 299) {
  35157. let msg;
  35158. // if exception/error in body, attempt to get better error
  35159. if (obj && obj.message) {
  35160. msg = obj.message;
  35161. }
  35162. else if (contents && contents.length > 0) {
  35163. // it may be the case that the exception is in the body message as string
  35164. msg = contents;
  35165. }
  35166. else {
  35167. msg = `Failed request: (${statusCode})`;
  35168. }
  35169. const err = new HttpClientError(msg, statusCode);
  35170. err.result = response.result;
  35171. reject(err);
  35172. }
  35173. else {
  35174. resolve(response);
  35175. }
  35176. }));
  35177. });
  35178. }
  35179. }
  35180. exports.HttpClient = HttpClient;
  35181. const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
  35182. //# sourceMappingURL=index.js.map
  35183. /***/ })
  35184. /******/ });