Comparing version 0.8.9 to 0.8.10
@@ -1,3 +0,3 @@ | ||
var g6=Object.create;var{getPrototypeOf:y6,defineProperty:X6,getOwnPropertyNames:d6}=Object;var k6=Object.prototype.hasOwnProperty;var r=(X,U,_)=>{_=X!=null?g6(y6(X)):{};let E=U||!X||!X.__esModule?X6(_,"default",{value:X,enumerable:!0}):_;for(let I of d6(X))if(!k6.call(E,I))X6(E,I,{get:()=>X[I],enumerable:!0});return E};var u6=(X,U)=>{for(var _ in U)X6(X,_,{get:U[_],enumerable:!0,configurable:!0,set:(E)=>U[_]=()=>E})};var h6=(X,U)=>()=>(X&&(U=X(X=0)),U);var c=((X)=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(X,{get:(U,_)=>(typeof require!=="undefined"?require:U)[_]}):X)(function(X){if(typeof require!=="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+X+'" is not supported')});var m={};u6(m,{uptime:()=>H$,type:()=>Q$,totalmem:()=>J$,tmpdir:()=>L$,release:()=>V$,platform:()=>Z$,networkInterfaces:()=>C$,loadavg:()=>E$,hostname:()=>_$,homedir:()=>G$,getNetworkInterfaces:()=>N$,freemem:()=>I$,endianness:()=>U$,default:()=>X$,cpus:()=>K$,arch:()=>Y$,EOL:()=>W$});var m6,N6,p6,a6,n6,e6,t6=(X,U)=>()=>(U||X((U={exports:{}}).exports,U),U.exports),o6=(X,U,_,E)=>{if(U&&typeof U=="object"||typeof U=="function")for(let I of a6(U))!e6.call(X,I)&&I!==_&&N6(X,I,{get:()=>U[I],enumerable:!(E=p6(U,I))||E.enumerable});return X},s6=(X,U,_)=>(_=X!=null?m6(n6(X)):{},o6(U||!X||!X.__esModule?N6(_,"default",{value:X,enumerable:!0}):_,X)),$$,T6,X$,U$,_$,E$,H$,I$,J$,K$,Q$,V$,Y$,Z$,L$,W$,G$,C$,N$;var p=h6(()=>{m6=Object.create,N6=Object.defineProperty,p6=Object.getOwnPropertyDescriptor,a6=Object.getOwnPropertyNames,n6=Object.getPrototypeOf,e6=Object.prototype.hasOwnProperty,$$=t6((X)=>{X.endianness=function(){return"LE"},X.hostname=function(){return typeof location<"u"?location.hostname:""},X.loadavg=function(){return[]},X.uptime=function(){return 0},X.freemem=function(){return Number.MAX_VALUE},X.totalmem=function(){return Number.MAX_VALUE},X.cpus=function(){return[]},X.type=function(){return"Browser"},X.release=function(){return typeof navigator<"u"?navigator.appVersion:""},X.networkInterfaces=X.getNetworkInterfaces=function(){return{}},X.arch=function(){return"javascript"},X.platform=function(){return"browser"},X.tmpdir=X.tmpDir=function(){return"/tmp"},X.EOL=` | ||
`,X.homedir=function(){return"/"}}),T6=s6($$()),X$=T6.default,{endianness:U$,hostname:_$,loadavg:E$,uptime:H$,freemem:I$,totalmem:J$,cpus:K$,type:Q$,release:V$,arch:Y$,platform:Z$,tmpdir:L$,EOL:W$,homedir:G$,networkInterfaces:C$,getNetworkInterfaces:N$}=T6.default});var g={bun:"bun",deno:"deno",node:"node",hermes:"hermes",workerd:"workerd",browser:"browser"},Q=()=>{},y="$tatami-ng_group",q=Object.freeze({1:12.706204736432102,2:4.3026527299112765,3:3.182446305284264,4:2.7764451051977996,5:2.57058183661474,6:2.446911848791681,7:2.3646242510102997,8:2.306004135033371,9:2.262157162740992,10:2.2281388519649385,11:2.200985160082949,12:2.178812829663418,13:2.160368656461013,14:2.1447866879169277,15:2.131449545559323,16:2.1199052992210112,17:2.109815577833181,18:2.10092204024096,19:2.0930240544082634,20:2.085963447265837,21:2.0796138447276626,22:2.073873067904015,23:2.068657610419041,24:2.063898561628021,25:2.0595385527532946,26:2.0555294386428713,27:2.0518305164802837,28:2.048407141795244,29:2.0452296421327034,30:2.042272456301238,31:2.0395134463964077,32:2.0369333434601016,33:2.0345152974493383,34:2.0322445093177186,35:2.030107928250343,36:2.0280940009804507,37:2.0261924630291097,38:2.0243941645751367,39:2.0226909117347285,40:2.021075382995338,41:2.019540963982894,42:2.0180816970958815,43:2.0166921941428138,44:2.0153675699129416,45:2.0141033848332928,46:2.012895595294589,47:2.011740510475755,48:2.010634754696446,49:2.0095752344892093,50:2.0085591097152062,51:2.0075837681558824,52:2.0066468031022118,53:2.00574599353695,54:2.0048792865665233,55:2.0040447818101814,56:2.003240717496698,57:2.002465458054599,58:2.0017174830120927,59:2.0009953770482105,60:2.000297821058262,61:1.9996235841149783,62:1.9989715162223116,63:1.998340541772196,64:1.9977296536259739,65:1.9971379077520126,66:1.9965644183594748,67:1.996008353475506,68:1.9954689309194023,69:1.994945414632814,70:1.9944371113297732,71:1.9939433674345044,72:1.9934635662785831,73:1.9929971255321668,74:1.9925434948468204,75:1.9921021536898658,76:1.9916726093523491,77:1.9912543951146042,78:1.9908470685550523,79:1.9904502099893606,80:1.9900634210283845,81:1.9896863232444832,82:1.989318556936819,83:1.9889597799871794,84:1.9886096667986737,85:1.988267907310378,86:1.9879342060816723,87:1.9876082814405773,88:1.987289864690939,89:1.9869786993737681,90:1.9866745405784685,91:1.9863771543000652,92:1.9860863168388938,93:1.985801814239503,94:1.9855234417658303,95:1.9852510034099267,96:1.9849843114317696,97:1.9847231859278835,98:1.9844674544266925,99:1.9842169515086832,100:1.983971518449634,101:1.9837310028852815,102:1.9834952584959407,103:1.9832641447097104,104:1.9830375264229902,105:1.9828152737371547,106:1.9825972617102912,107:1.9823833701230178,108:1.9821734832574516,109:1.9819674896884745,110:1.9817652820865104,111:1.981566757031071,112:1.9813718148344008,113:1.9811803593745805,114:1.9809922979375068,115:1.9808075410672004,116:1.980626002423938,117:1.9804475986497296,118:1.9802722492407063,119:1.9800998764260065,120:1.979930405052777,121:1.9797637624769306,122:1.9795998784593314,123:1.97943868506709,124:1.979280116579683,125:1.9791241093996175,126:1.9789706019673938,127:1.978819534680521,128:1.9786708498163625,129:1.9785244914586055,130:1.9783804054271532,131:1.9782385392112587,132:1.9780988419057237,133:1.977961264150002,134:1.9778257580700531,135:1.9776922772228045,136:1.9775607765430836,137:1.977431212292894,138:1.9773035420129166,139:1.9771777244761224,140:1.9770537196433886,141:1.9769314886210223,142:1.97681099362009,143:1.9766921979174685,144:1.9765750658185368,145:1.9764595626214163,146:1.9763456545827007,147:1.9762333088845883,148:1.9761224936033637,149:1.9760131776791554,150:1.9759053308869141,151:1.9757989238085507,152:1.975693927806187,153:1.9755903149964589,154:1.9754880582258323,155:1.9753871310468787,156:1.9752875076954728,157:1.9751891630688665,158:1.9750920727046015,159:1.9749962127602256,160:1.9749015599937723,161:1.9748080917449764,162:1.9747157859171882,163:1.9746246209599583,164:1.9745345758522659,165:1.9744456300863593,166:1.9743577636521858,167:1.9742709570223849,168:1.974185191137821,169:1.9741004473936339,170:1.9740167076257829,171:1.9739339540980692,172:1.9738521694896138,173:1.9737713368827694,174:1.9736914397514562,175:1.9736124619498976,176:1.9735343877017435,177:1.9734572015895646,178:1.9733808885447033,179:1.9733054338374667,180:1.973230823067649,181:1.9731570421553692,182:1.9730840773322162,183:1.9730119151326795,184:1.9729405423858692,185:1.9728699462074992,186:1.9728001139921352,187:1.9727310334056907,188:1.9726626923781656,189:1.9725950790966158,190:1.9725281819983451,191:1.972461989764315,192:1.9723964913127596,193:1.9723316757930012,194:1.9722675325794565,195:1.972204051265833,196:1.9721412216594971,197:1.9720790337760221,198:1.972017477833896,199:1.9719565442493954,200:1.9718962236316093,201:1.9718365067776158,202:1.971777384667801,203:1.971718848461318,204:1.9716608894916787,205:1.971603499262479,206:1.9715466694432433,207:1.9714903918653972,208:1.9714346585183509,209:1.9713794615456992,210:1.9713247932415296,211:1.9712706460468354,212:1.9712170125460335,213:1.9711638854635767,214:1.971111257660664,215:1.9710591221320446,216:1.9710074720029072,217:1.97095630052586,218:1.9709056010779908,219:1.9708553671580111,220:1.9708055923834753,221:1.970756270488079,222:1.9707073953190282,223:1.9706589608344816,224:1.9706109611010594,225:1.9705633902914228,226:1.9705162426819125,227:1.9704695126502556,228:1.9704231946733297,229:1.9703772833249869,230:1.9703317732739336,231:1.9702866592816697,232:1.9702419362004757,233:1.9701975989714555,234:1.9701536426226303,235:1.9701100622670775,236:1.9700668531011214,237:1.9700240104025675,238:1.9699815295289818,239:1.969939405916016,240:1.9698976350757686,241:1.9698562125951948,242:1.9698151341345516,243:1.9697743954258797,244:1.9697339922715287,245:1.9696939205427133,246:1.9696541761781068,247:1.9696147551824699,248:1.9695756536253115,249:1.9695368676395828,250:1.9694983934204007,251:1.9694602272238055,252:1.9694223653655467,253:1.969384804219895,254:1.9693475402184863,255:1.9693105698491933,256:1.9692738896550193,257:1.9692374962330224,258:1.9692013862332616,259:1.9691655563577715,260:1.9691300033595551,261:1.9690947240416052,262:1.9690597152559448,263:1.9690249739026924,264:1.9689904969291443,265:1.968956281328883,266:1.9689223241409022,267:1.9688886224487527,268:1.9688551733797075,269:1.968821974103945,270:1.9687890218337525,271:1.968756313822743,272:1.968723847365097,273:1.9686916197948103,274:1.9686596284849691,275:1.9686278708470335,276:1.9685963443301415,277:1.968565046420423,278:1.9685339746403347,279:1.9685031265480044,280:1.9684724997365923,281:1.968442091833664,282:1.968411900500579,283:1.9683819234318907,284:1.9683521583547587,285:1.9683226030283762,286:1.9682932552434063,287:1.968264112821431,288:1.9682351736144144,289:1.9682064355041722,290:1.968177896401857,291:1.968149554247451,292:1.9681214070092705,293:1.9680934526834821,294:1.9680656892936232,295:1.968038114890141,296:1.9680107275499321,297:1.9679835253758984,298:1.967956506496507,299:1.9679296690653623,300:1.9679030112607847,301:1.9678765312853979,302:1.967850227365727,303:1.9678240977517998,304:1.967798140716761,305:1.9677723545564905,306:1.967746737589231,307:1.9677212881552217,308:1.967696004616341,309:1.967670885355754,310:1.9676459287775685,311:1.9676211333064957,312:1.9675964973875213,313:1.967572019485578,314:1.967547698085227,315:1.9675235316903468,316:1.9674995188238256,317:1.9674756580272583,318:1.9674519478606556,319:1.96742838690215,320:1.9674049737477135,321:1.9673817070108799,322:1.9673585853224684,323:1.9673356073303163,324:1.9673127716990173,325:1.9672900771096589,326:1.9672675222595717,327:1.9672451058620788,328:1.9672228266462515,329:1.9672006833566689,330:1.9671786747531816,331:1.9671567996106818,332:1.967135056718874,333:1.9671134448820529,334:1.9670919629188843,335:1.9670706096621893,336:1.967049383958733,337:1.9670282846690177,338:1.9670073106670771,339:1.9669864608402783,340:1.966965734089124,341:1.9669451293270586,342:1.9669246454802793,343:1.9669042814875488,344:1.9668840363000124,345:1.966863908881019,346:1.9668438982059417,347:1.966824003262006,348:1.9668042230481186,349:1.9667845565746986,350:1.9667650028635129,351:1.9667455609475144,352:1.9667262298706825,353:1.966707008687866,354:1.9666878964646288,355:1.9666688922770996,356:1.9666499952118222,357:1.9666312043656085,358:1.9666125188453965,359:1.9665939377681074,360:1.9665754602605063,361:1.9665570854590666,362:1.9665388125098342,363:1.966520640568296,364:1.9665025687992495,365:1.966484596376675,366:1.9664667224836099,367:1.9664489463120245,368:1.9664312670626998,369:1.9664136839451096,370:1.9663961961773,371:1.966378802985776,372:1.9663615036053859,373:1.9663442972792093,374:1.9663271832584475,375:1.9663101608023135,376:1.966293229177927,377:1.9662763876602067,378:1.96625963553177,379:1.9662429720828285,380:1.9662263966110878,381:1.9662099084216513,382:1.9661935068269203,383:1.9661771911465,384:1.9661609607071053,385:1.9661448148424667,386:1.9661287528932416,387:1.9661127742069229,388:1.9660968781377508,389:1.966081064046626,390:1.966065331301024,391:1.966049679274911,392:1.9660341073486605,393:1.9660186149089722,394:1.9660032013487905,395:1.9659878660672256,396:1.9659726084694753,397:1.9659574279667498,398:1.965942323976193,399:1.9659272959208094,400:1.9659123432293915,401:1.9658974653364458,402:1.9658826616821223,403:1.965867931712145,404:1.9658532748777406,405:1.9658386906355727,406:1.9658241784476738,407:1.965809737781378,408:1.9657953681092573,409:1.9657810689090576,410:1.9657668396636336,411:1.965752679860889,412:1.9657385889937122,413:1.9657245665599175,414:1.9657106120621863,415:1.9656967250080057,416:1.9656829049096134,417:1.9656691512839384,418:1.965655463652545,419:1.9656418415415793,420:1.9656282844817121,421:1.9656147920080864,422:1.9656013636602634,423:1.9655879989821707,424:1.9655746975220507,425:1.9655614588324102,426:1.965548282469968,427:1.9655351679956077,428:1.9655221149743287,429:1.9655091229751978,430:1.9654961915712998,431:1.9654833203396942,432:1.9654705088613673,433:1.9654577567211857,434:1.965445063507854,435:1.965432428813868,436:1.9654198522354724,437:1.9654073333726187,438:1.9653948718289207,439:1.9653824672116142,440:1.9653701191315152,441:1.9653578272029781,442:1.9653455910438589,443:1.9653334102754718,444:1.9653212845225516,445:1.9653092134132164,446:1.9652971965789277,447:1.9652852336544535,448:1.9652733242778317,449:1.9652614680903338,450:1.9652496647364275,451:1.9652379138637432,452:1.9652262151230366,453:1.9652145681681563,454:1.9652029726560083,455:1.9651914282465226,456:1.9651799346026202,457:1.9651684913901803,458:1.9651570982780076,459:1.9651457549378,460:1.9651344610441186,461:1.9651232162743548,462:1.9651120203087005,463:1.9651008728301178,464:1.9650897735243085,465:1.9650787220796855,466:1.9650677181873428,467:1.965056761541027,468:1.965045851837109,469:1.965034988774555,470:1.965024172054902,471:1.9650134013822251,472:1.9650026764631154,473:1.9649919970066518,474:1.9649813627243728,475:1.964970773330254,476:1.9649602285406784,477:1.9649497280744153,478:1.9649392716525922,479:1.964928858998672,480:1.9649184898384262,481:1.9649081638999137,482:1.9648978809134563,483:1.9648876406116125,484:1.9648774427291587,485:1.9648672870030628,486:1.9648571731724636,487:1.9648471009786466,488:1.9648370701650248,489:1.9648270804771135,490:1.9648171316625118,491:1.964807223470879,492:1.9647973556539153,493:1.9647875279653397,494:1.9647777401608706,495:1.9647679919982053,496:1.9647582832369994,497:1.9647486136388483,498:1.9647389829672652,499:1.9647293909876653,500:1.9647198374673442,501:1.9647103221754598,502:1.964700844883014,503:1.9646914053628335,504:1.9646820033895525,505:1.964672638739595,506:1.9646633111911553,507:1.9646540205241838,508:1.9646447665203655,509:1.964635548963106,510:1.9646263676375137,511:1.9646172223303833,512:1.9646081128301776,513:1.9645990389270147,514:1.9645900004126484,515:1.9645809970804544,516:1.9645720287254127,517:1.9645630951440949,518:1.964554196134645,519:1.9645453314967691,520:1.9645365010317148,521:1.9645277045422602,522:1.9645189418326983,523:1.964510212708822,524:1.964501516977911,525:1.964492854448715,526:1.9644842249314425,527:1.9644756282377454,528:1.9644670641807058,529:1.964458532574823,530:1.9644500332359982,531:1.9644415659815229,532:1.9644331306300662,533:1.9644247270016604,534:1.964416354917689,535:1.9644080142008735,536:1.9643997046752626,537:1.9643914261662165,538:1.9643831785003991,539:1.9643749615057613,540:1.9643667750115323,541:1.964358618848207,542:1.9643504928475335,543:1.964342396842502,544:1.9643343306673333,545:1.9643262941574684,546:1.9643182871495555,547:1.9643103094814403,548:1.964302360992155,549:1.9642944415219068,550:1.9642865509120675,551:1.9642786890051633,552:1.964270855644863,553:1.9642630506759702,554:1.9642552739444101,555:1.9642475252972216,556:1.9642398045825453,557:1.9642321116496164,558:1.9642244463487513,559:1.9642168085313412,560:1.9642091980498402,561:1.9642016147577568,562:1.964194058509645,563:1.9641865291610932,564:1.9641790265687171,565:1.964171550590149,566:1.9641641010840303,567:1.9641566779100006,568:1.9641492809286911,569:1.964141910001714,570:1.964134564991655,571:1.9641272457620647,572:1.9641199521774493,573:1.964112684103263,574:1.9641054414058998,575:1.9640982239526847,576:1.964091031611867,577:1.9640838642526093,578:1.964076721744983,579:1.9640696039599586,580:1.9640625107693983,581:1.9640554420460483,582:1.9640483976635308,583:1.9640413774963374,584:1.964034381419821,585:1.9640274093101877,586:1.9640204610444916,587:1.9640135365006257,588:1.9640066355573154,589:1.9639997580941106,590:1.963992903991381,591:1.9639860731303063,592:1.9639792653928712,593:1.9639724806618581,594:1.9639657188208401,595:1.9639589797541745,596:1.963952263346997,597:1.963945569485213,598:1.963938898055494,599:1.9639322489452695,600:1.96392562204272,601:1.9639190172367733,602:1.963912434417095,603:1.963905873474085,604:1.9638993342988706,605:1.9638928167832999,606:1.9638863208199362,607:1.9638798463020526,608:1.9638733931236256,609:1.9638669611793291,610:1.9638605503645292,611:1.9638541605752786,612:1.9638477917083106,613:1.963841443661033,614:1.9638351163315244,615:1.9638288096185263,616:1.9638225234214404,617:1.9638162576403206,618:1.96381001217587,619:1.9638037869294331,620:1.9637975818029945,621:1.9637913966991682,622:1.9637852315211985,623:1.9637790861729507,624:1.963772960558908,625:1.9637668545841658,626:1.9637607681544267,627:1.963754701175997,628:1.96374865355578,629:1.9637426252012729,630:1.9637366160205605,631:1.9637306259223126,632:1.9637246548157765,633:1.9637187026107747,634:1.9637127692177012,635:1.9637068545475131,636:1.9637009585117295,637:1.9636950810224274,638:1.9636892219922344,639:1.9636833813343266,640:1.963677558962424,641:1.9636717547907854,642:1.9636659687342057,643:1.96366020070801,644:1.9636544506280507,645:1.9636487184107032,646:1.9636430039728607,647:1.963637307231933,648:1.9636316281058388,649:1.9636259665130043,650:1.9636203223723585,651:1.9636146956033296,652:1.9636090861258415,653:1.9636034938603082,654:1.963597918727633,655:1.9635923606492014,656:1.9635868195468806,657:1.9635812953430134,658:1.9635757879604159,659:1.9635702973223736,660:1.9635648233526377,661:1.9635593659754214,662:1.9635539251153973,663:1.9635485006976923,664:1.9635430926478856,665:1.9635377008920054,666:1.9635323253565247,667:1.9635269659683576,668:1.9635216226548569,669:1.963516295343811,670:1.9635109839634397,671:1.9635056884423918,672:1.9635004087097414,673:1.9634951446949849,674:1.9634898963280374,675:1.9634846635392311,676:1.9634794462593101,677:1.9634742444194289,678:1.9634690579511493,679:1.9634638867864362,680:1.9634587308576554,681:1.9634535900975714,682:1.9634484644393435,683:1.9634433538165224,684:1.963438258163049,685:1.96343317741325,686:1.963428111501836,687:1.9634230603638985,688:1.9634180239349066,689:1.9634130021507055,690:1.9634079949475116,691:1.9634030022619122,692:1.9633980240308617,693:1.9633930601916791,694:1.963388110682045,695:1.9633831754399986,696:1.963378254403937,697:1.9633733475126116,698:1.9633684547051236,699:1.9633635759209254,700:1.9633587110998145,701:1.9633538601819331,702:1.9633490231077657,703:1.9633441998181338,704:1.9633393902541987,705:1.9633345943574538,706:1.9633298120697256,707:1.96332504333317,708:1.9633202880902698,709:1.9633155462838343,710:1.963310817856994,711:1.9633061027532,712:1.9633014009162226,713:1.9632967122901475,714:1.9632920368193745,715:1.963287374448614,716:1.9632827251228866,717:1.9632780887875207,718:1.9632734653881478,719:1.963268854870705,720:1.963264257181428,721:1.9632596722668525,722:1.9632551000738105,723:1.9632505405494287,724:1.963245993641126,725:1.963241459296613,726:1.9632369374638876,727:1.963232428091235,728:1.9632279311272245,729:1.963223446520709,730:1.9632189742208208,731:1.963214514176972,732:1.9632100663388516,733:1.9632056306564227,734:1.9632012070799227,735:1.9631967955598593,736:1.9631923960470097,737:1.9631880084924196,738:1.9631836328473993,739:1.9631792690635235,740:1.9631749170926298,741:1.9631705768868148,742:1.9631662483984351,743:1.9631619315801037,744:1.9631576263846882,745:1.9631533327653103,746:1.9631490506753435,747:1.963144780068411,748:1.963140520898385,749:1.9631362731193833,750:1.9631320366857699,751:1.9631278115521522,752:1.9631235976733785,753:1.9631193950045382,754:1.963115203500959,755:1.963111023118206,756:1.9631068538120793,757:1.963102695538613,758:1.963098548254074,759:1.963094411914959,760:1.963090286477995,761:1.9630861719001376,762:1.9630820681385661,763:1.963077975150687,764:1.963073892894129,765:1.9630698213267435,766:1.9630657604066017,767:1.9630617100919938,768:1.9630576703414275,769:1.9630536411136277,770:1.9630496223675324,771:1.963045614062295,772:1.963041616157278,773:1.9630376286120574,774:1.9630336513864166,775:1.9630296844403485,776:1.9630257277340504,777:1.9630217812279265,778:1.9630178448825841,779:1.963013918658834,780:1.9630100025176869,781:1.9630060964203544,782:1.9630022003282468,783:1.9629983142029712,784:1.9629944380063318,785:1.962990571700327,786:1.9629867152471494,787:1.9629828686091835,788:1.9629790317490055,789:1.962975204629381,790:1.9629713872132657,791:1.9629675794638015,792:1.962963781344317,793:1.9629599928183272,794:1.9629562138495296,795:1.9629524444018054,796:1.9629486844392179,797:1.9629449339260105,798:1.9629411928266058,799:1.962937461105606,800:1.9629337387277892,801:1.9629300256581104,802:1.9629263218616995,803:1.9629226273038602,804:1.9629189419500692,805:1.9629152657659752,806:1.9629115987173975,807:1.9629079407703247,808:1.9629042918909145,809:1.9629006520454917,810:1.9628970212005485,811:1.9628933993227415,812:1.9628897863788926,813:1.9628861823359869,814:1.962882587161172,815:1.9628790008217571,816:1.9628754232852115,817:1.9628718545191641,818:1.9628682944914029,819:1.9628647431698727,820:1.9628612005226753,821:1.9628576665180681,822:1.9628541411244633,823:1.9628506243104265,824:1.962847116044676,825:1.962843616296083,826:1.9628401250336684,827:1.9628366422266041,828:1.9628331678442101,829:1.962829701855956,830:1.9628262442314577,831:1.9628227949404782,832:1.9628193539529253,833:1.962815921238852,834:1.9628124967684557,835:1.962809080512076,836:1.9628056724401943,837:1.962802272523434,838:1.9627988807325591,839:1.9627954970384724,840:1.9627921214122162,841:1.96278875382497,842:1.9627853942480507,843:1.9627820426529121,844:1.9627786990111424,845:1.9627753632944653,846:1.962772035474738,847:1.962768715523951,848:1.962765403414227,849:1.9627620991178198,850:1.9627588026071152,851:1.9627555138546275,852:1.9627522328330012,853:1.962748959515009,854:1.962745693873551,855:1.9627424358816548,856:1.9627391855124732,857:1.9627359427392859,858:1.9627327075354966,859:1.9627294798746329,860:1.9627262597303463,861:1.9627230470764099,862:1.962719841886719,863:1.962716644135291,864:1.9627134537962623,865:1.9627102708438906,866:1.9627070952525512,867:1.9627039269967388,868:1.9627007660510651,869:1.9626976123902597,870:1.9626944659891674,871:1.9626913268227497,872:1.9626881948660826,873:1.9626850700943568,874:1.9626819524828756,875:1.9626788420070573,876:1.962675738642431,877:1.9626726423646375,878:1.9626695531494305,879:1.962666470972672,880:1.9626633958103352,881:1.9626603276385024,882:1.962657266433364,883:1.962654212171219,884:1.962651164828473,885:1.962648124381639,886:1.962645090807336,887:1.9626420640822897,888:1.9626390441833281,889:1.9626360310873863,890:1.9626330247715016,891:1.962630025212815,892:1.962627032388571,893:1.9626240462761142,894:1.9626210668528927,895:1.9626180940964544,896:1.9626151279844477,897:1.9626121684946207,898:1.9626092156048216,899:1.9626062692929966,900:1.9626033295371899,901:1.9626003963155434,902:1.9625974696062964,903:1.9625945493877848,904:1.9625916356384394,905:1.9625887283367882,906:1.9625858274614525,907:1.962582932991149,908:1.9625800449046875,909:1.9625771631809725,910:1.962574287799,911:1.9625714187378587,912:1.9625685559767294,913:1.9625656994948841,914:1.9625628492716856,915:1.9625600052865868,916:1.9625571675191313,917:1.9625543359489512,918:1.9625515105557676,919:1.9625486913193901,920:1.9625458782197165,921:1.9625430712367309,922:1.962540270350506,923:1.9625374755412,924:1.962534686789057,925:1.962531904074407,926:1.9625291273776646,927:1.96252635667933,928:1.9625235919599864,929:1.962520833200302,930:1.9625180803810265,931:1.962515333482994,932:1.9625125924871198,933:1.9625098573744026,934:1.9625071281259212,935:1.962504404722836,936:1.9625016871463874,937:1.9624989753778976,938:1.9624962693987664,939:1.9624935691904748,940:1.9624908747345817,941:1.9624881860127243,942:1.9624855030066184,943:1.9624828256980582,944:1.962480154068913,945:1.962477488101131,946:1.962474827776736,947:1.9624721730778274,948:1.962469523986581,949:1.9624668804852476,950:1.9624642425561525,951:1.962461610181696,952:1.9624589833443515,953:1.9624563620266673,954:1.9624537462112641,955:1.9624511358808356,956:1.9624485310181483,957:1.9624459316060407,958:1.9624433376274224,959:1.9624407490652758,960:1.9624381659026522,961:1.9624355881226763,962:1.962433015708541,963:1.9624304486435091,964:1.9624278869109137,965:1.9624253304941575,966:1.9624227793767104,967:1.9624202335421121,968:1.9624176929739703,969:1.9624151576559599,970:1.962412627571823,971:1.9624101027053702,972:1.9624075830404768,973:1.9624050685610865,974:1.962402559251207,975:1.9624000550949139,976:1.9623975560763454,977:1.962395062179708,978:1.9623925733892695,979:1.9623900896893647,980:1.9623876110643914,981:1.9623851374988106,982:1.9623826689771475,983:1.96238020548399,984:1.9623777470039887,985:1.962375293521857,986:1.9623728450223694,987:1.9623704014903631,988:1.9623679629107367,989:1.9623655292684494,990:1.9623631005485223,991:1.9623606767360353,992:1.9623582578161303,993:1.9623558437740083,994:1.9623534345949294,995:1.9623510302642144,996:1.9623486307672415,997:1.9623462360894495,998:1.962343846216334,999:1.962341461133449,1000:1.9623390808264078,1001:1.9623367052808791,1002:1.9623343344825908,1003:1.962331968417326,1004:1.9623296070709262,1005:1.9623272504292881,1006:1.9623248984783654,1007:1.9623225512041673,1008:1.9623202085927578,1009:1.9623178706302578,1010:1.9623155373028418,1011:1.9623132085967403,1012:1.962310884498237,1013:1.962308564993671,1014:1.962306250069434,1015:1.9623039397119733,1016:1.9623016339077874,1017:1.9622993326434304,1018:1.962297035905507,1019:1.9622947436806755,1020:1.9622924559556474,1021:1.962290172717185,1022:1.9622878939521027,1023:1.9622856196472673,1024:1.962283349789597,infinity:1.96}),W6=128,v=128,x=1e9,G6=12,d=8;var{spawnSync:T$}=(()=>({}));var{setFlagsFromString:O$}=(()=>({}));var{runInNewContext:z$}=(()=>({}));var b6=!!globalThis.Bun||!!globalThis.process?.versions?.bun,i6=!!globalThis.Deno,l6=globalThis.process?.release?.name==="node",r6=!!globalThis.navigator,C=(()=>{if(b6)return g.bun;if(i6)return g.deno;if(l6)return g.node;if(r6)return g.browser;return"unknown"})();var c6=(X)=>X!==null&&typeof X==="object"&&typeof X.then==="function",V=(X)=>{return typeof X==="function"},O=(X)=>{return(async()=>{}).constructor===X?.constructor},k=(X)=>{if(X==null)return!1;if(O(X))return!0;try{let U=X(),_=c6(U);if(_)try{U.then(()=>{})?.catch(()=>{})}catch{}return _}catch{return!1}},A=(X)=>{return Object.prototype.toString.call(X).slice(8,-1)==="Object"};function U6(X){if(X<1)return(X*1000).toFixed(2);if(X<1000)return X.toFixed(2);if(X/=1000,X<1000)return X.toFixed(2);if(X/=1000,X<1000)return X.toFixed(2);if(X/=1000,X<1000)return X.toFixed(2);if(X/=60,X<1000)return X.toFixed(2);return X/=60,X.toFixed(2)}var G=(X)=>{if(X==null)throw new TypeError(`Invalid dividend: ${X}`);if(typeof X!=="number")throw new TypeError(`expected number, got ${X.constructor.name}`);if(X===0||Number.isNaN(X))throw new RangeError(`Invalid dividend: ${X}`);return X};var _6=(X,U=f(X))=>{return X.reduce((_,E)=>_+(E-U)**2,0)/G(X.length-1)},P=(X,U)=>{if(!Array.isArray(X))throw new TypeError(`expected array, got ${X.constructor.name}`);if(X.length===0)throw new Error("expected non-empty array, got empty array");if(U<0||U>1)throw new Error("q must be between 0 and 1");if(U===0)return X[0];if(U===1)return X[X.length-1];let _=(X.length-1)*U,E=Math.floor(_);if(X[E+1]!=null)return X[E]+(_-E)*(X[E+1]-X[E]);return X[E]},u=(X)=>P(X,0.5),f=(X)=>{if(!Array.isArray(X))throw new TypeError(`expected array, got ${X.constructor.name}`);if(X.length===0)throw new Error("expected non-empty array, got empty array");return X.reduce((U,_)=>U+_,0)/X.length},h=(X,U)=>{let _=U(X),E=[];for(let I of X)E.push(Math.abs(I-_));return U(E)},C6=(X,U,_,E)=>{return X/G(_)*Math.sqrt((U/G(X))**2+(E/G(_))**2)};var F=(()=>{return{unknown:()=>{try{let X=performance.now.bind(performance);return X(),()=>1e6*X()}catch{return()=>1e6*Date.now()}},browser:()=>{try{return $.agent.monotonicNow(),()=>1e6*$.agent.monotonicNow()}catch{}try{return $262.agent.monotonicNow(),()=>1e6*$262.agent.monotonicNow()}catch{}return()=>1e6*performance.now()},node:()=>()=>Number(process.hrtime.bigint()),deno:()=>()=>1e6*performance.now(),bun:()=>Bun.nanoseconds}[C]()})();var O6=(()=>{return{unknown:()=>"",browser:()=>"",node:()=>globalThis.process.version,deno:()=>globalThis.Deno.version.deno,bun:()=>globalThis.process.versions.bun}[C]()})(),z6=(()=>{return{unknown:()=>"unknown",browser:()=>"unknown",node:()=>`${globalThis.process.arch}-${globalThis.process.platform}`,deno:()=>Deno.build.target,bun:()=>`${globalThis.process.arch}-${globalThis.process.platform}`}[C]()})(),w6=await(async()=>{return await{unknown:()=>"unknown",browser:()=>"unknown",node:async()=>(await Promise.resolve().then(() => (p(),m)))?.cpus?.()?.[0]?.model,deno:async()=>(await Promise.resolve().then(() => (p(),m)))?.cpus?.()?.[0]?.model,bun:async()=>(await Promise.resolve().then(() => (p(),m)))?.cpus?.()?.[0]?.model}[C]()})(),q6=(()=>{return{unknown:()=>globalThis.process?.env?.FORCE_COLOR!=null||!globalThis.process?.env?.NO_COLOR&&!globalThis.process?.env?.NODE_DISABLE_COLORS,browser:()=>!1,node:()=>globalThis.process.env.FORCE_COLOR!=null||!globalThis.process.env.NO_COLOR&&!globalThis.process.env.NODE_DISABLE_COLORS,deno:()=>!Deno.noColor,bun:()=>globalThis.process.env.FORCE_COLOR!=null||!globalThis.process.env.NO_COLOR&&!globalThis.process.env.NODE_DISABLE_COLORS}[C]()})(),P6=await(async()=>{return await{unknown:async()=>{try{return await import("node:fs"),(await import("node:fs")).writeFileSync}catch{return Q}},browser:()=>Q,node:async()=>(await import("node:fs")).writeFileSync,deno:()=>Deno.writeTextFileSync,bun:async()=>(await import("node:fs")).writeFileSync}[C]()})(),c$=(()=>{return{unknown:()=>Q,browser:()=>Q,node:()=>(X)=>T$(X.trim().split(/\s+/)[0],X.trim().split(/\s+/).slice(1)),deno:()=>(X)=>{new Deno.Command(X.trim().split(/\s+/)[0],{args:X.trim().split(/\s+/).slice(1)}).outputSync()},bun:()=>(X)=>Bun.spawnSync(X.trim().split(/\s+/))}[C]()})(),R6=(()=>{return{unknown:()=>V(globalThis.gc)?()=>globalThis.gc():Q,browser:()=>{try{return globalThis.$262.gc(),()=>globalThis.$262.gc()}catch{return Q}},node:()=>()=>{O$("--expose_gc"),z$("gc")()},deno:()=>V(globalThis.gc)?()=>globalThis.gc():Q,bun:()=>()=>Bun.gc(!0)}[C]()})(),a=(X,U={})=>{if(!V(X))throw new TypeError(`expected function, got ${X.constructor.name}`);if(!A(U))throw new TypeError(`expected object, got ${U.constructor.name}`);if(U.samples!=null&&typeof U.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${U.samples.constructor.name}`);if(U.time!=null&&typeof U.time!=="number")throw new TypeError(`expected number as 'time' option, got ${U.time.constructor.name}`);if(U.warmup!=null&&typeof U.warmup!=="number"&&typeof U.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${U.warmup.constructor.name}`);if(U.now!=null&&!V(U.now))throw new TypeError(`expected function as 'now' option, got ${U.now.constructor.name}`);if(U.before!=null&&!V(U.before))throw new TypeError(`expected function as 'before' option, got ${U.before.constructor.name}`);if(U.beforeEach!=null&&!V(U.beforeEach))throw new TypeError(`expected function as 'beforeEach' option, got ${U.beforeEach.constructor.name}`);if(U.after!=null&&!V(U.after))throw new TypeError(`expected function as 'after' option, got ${U.after.constructor.name}`);if(U.afterEach!=null&&!V(U.afterEach))throw new TypeError(`expected function as 'afterEach' option, got ${U.afterEach.constructor.name}`)},E6=(X,U)=>{X.now=U.now??X.now,X.samples=U.samples??X.samples,X.time=U.time??X.time,X.warmup=U.warmup??X.warmup};async function D6(X,U={}){if(a(X,U),U.async!=null&&typeof U.async!=="boolean")throw new TypeError(`expected boolean as 'async' option, got ${U.async.constructor.name}`);U.async=U.async??k(X),U.time=U.time??x,U.samples=U.samples??v,U.warmup=typeof U.warmup==="number"?U.warmup:U.warmup===!0?G6:0,U.now=U.now??F,U.before=U.before??Q,U.beforeEach=U.beforeEach??Q,U.after=U.after??Q,U.afterEach=U.afterEach??Q;let _=O(U.before),E=O(U.beforeEach),I=O(U.after),H=O(U.afterEach),K=async()=>{if(E)await U.beforeEach.call(this);else U.beforeEach.call(this);let L;if(U.async){let z=U.now();await X.call(this),L=U.now()-z}else{let z=U.now();X.call(this),L=U.now()-z}if(H)await U.afterEach.call(this);else U.afterEach.call(this);return L},W=[],Y=0;if(U.warmup){if(_)await U.before.call(this);else U.before.call(this);for(let L=0;L<U.warmup;L++){let z=await K();W.push(z),Y+=z}if(I)await U.after.call(this);else U.after.call(this)}if(W=[],Y=0,_)await U.before.call(this);else U.before.call(this);while(Y<U.time||U.samples>W.length){let L=await K();W.push(L),Y+=L}if(I)await U.after.call(this);else U.after.call(this);return w$(W)}var w$=(X)=>{if(!Array.isArray(X))throw new TypeError(`expected array, got ${X.constructor.name}`);if(X.length===0)throw new Error("expected non-empty array, got empty array");X.sort((B,$6)=>B-$6);let U=f(X),_=_6(X,U),E=Math.sqrt(_),I=E/Math.sqrt(X.length),H=q[(X.length-1||1).toString()]||q.infinity,K=I*H,W=K/G(U)*100,Y=X.map((B)=>B!==0?1e9/B:1e9/U).sort((B,$6)=>B-$6),L=f(Y),z=_6(Y,L),Z6=Math.sqrt(z),f6=Z6/Math.sqrt(Y.length),F6=q[(Y.length-1||1).toString()]||q.infinity,L6=f6*F6,S6=L6/G(L)*100;return{samples:X.length,ss:X.length>=W6,latency:{min:X[0],max:X[X.length-1],p50:u(X),p75:P(X,0.75),p99:P(X,0.99),p995:P(X,0.995),avg:U,vr:_,sd:E,moe:K,rmoe:W,aad:h(X,f),mad:h(X,u)},throughput:{min:Y[0],max:Y[X.length-1],p50:u(Y),p75:P(Y,0.75),p99:P(Y,0.99),p995:P(Y,0.995),avg:L,vr:z,sd:Z6,moe:L6,rmoe:S6,aad:h(Y,f),mad:h(Y,u)}}};var q$=()=>{let X;if(typeof globalThis.console?.log==="function")X=globalThis.console.log;else if(typeof globalThis.print==="function")X=globalThis.print;else throw new Error("no logger function found");return X},j6=q$();function J(X,U){let _=new RegExp(`\\x1b\\[${U}m`,"g"),E=`\x1B[${X}m`,I=`\x1B[${U}m`;return(H,K)=>{if(!H||K==null)return K;return K=K.toString(),`${E}${K.includes(I)?K.replace(_,I+E):K}${I}`}}var a$=J(0,0),Z=J(1,22),b=J(2,22),M6=J(3,23),n$=J(4,24),e$=J(7,27),t$=J(8,28),o$=J(9,29),s$=J(30,39),N=J(31,39),j=J(32,39),R=J(33,39),n=J(34,39),B6=J(35,39),w=J(36,39),M=J(37,39),v6=J(90,39),$X=J(90,39),XX=J(91,39),UX=J(92,39),_X=J(93,39),EX=J(94,39),HX=J(95,39),IX=J(96,39),JX=J(97,39),KX=J(40,49),QX=J(41,49),VX=J(42,49),YX=J(43,49),ZX=J(44,49),LX=J(45,49),WX=J(46,49),GX=J(47,49),CX=J(100,49),NX=J(101,49),TX=J(102,49),OX=J(103,49),zX=J(104,49),wX=J(105,49),qX=J(106,49),PX=J(107,49);function T(X){if(X<1)return`${(X*1000).toFixed(2)} ps`;if(X<1000)return`${X.toFixed(2)} ns`;if(X/=1000,X<1000)return`${X.toFixed(2)} \xB5s`;if(X/=1000,X<1000)return`${X.toFixed(2)} ms`;if(X/=1000,X<1000)return`${X.toFixed(2)} s`;if(X/=60,X<1000)return`${X.toFixed(2)} m`;return X/=60,`${X.toFixed(2)} h`}function e(X){return`${X.toFixed(0)}`}function i(X){return`${X.toFixed(2)} %`}function H6(X){return`${X.toFixed(2)}`}function t(X){let U=9;for(let _ of X)if(U<_.length)U=_.length;return 2+U}function o({size:X,latency:U=!0,throughput:_=!0,latencyMinMax:E=!0,latencyPercentiles:I=!0}){return`${"-".repeat(X+20*U+20*_+24*E)}${!I?"":` ${"-".repeat(50)}`}`}function I6(X,U,{size:_,colors:E=!0}){return`${X.padEnd(_," ")}${N(E,"error")}: ${U.message}${U.stack?`\n${v6(E,U.stack)}`:""}`}function J6({colors:X=!0}={}){return b(X,M(X,` | ||
var A6=Object.create;var{getPrototypeOf:B6,defineProperty:n,getOwnPropertyNames:x6}=Object;var S6=Object.prototype.hasOwnProperty;var h=(X,U,V)=>{V=X!=null?A6(B6(X)):{};let _=U||!X||!X.__esModule?n(V,"default",{value:X,enumerable:!0}):V;for(let H of x6(X))if(!S6.call(_,H))n(_,H,{get:()=>X[H],enumerable:!0});return _};var f6=(X,U)=>{for(var V in U)n(X,V,{get:U[V],enumerable:!0,configurable:!0,set:(_)=>U[V]=()=>_})};var F6=(X,U)=>()=>(X&&(U=X(X=0)),U);var b=((X)=>typeof require!=="undefined"?require:typeof Proxy!=="undefined"?new Proxy(X,{get:(U,V)=>(typeof require!=="undefined"?require:U)[V]}):X)(function(X){if(typeof require!=="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+X+'" is not supported')});var i={};f6(i,{uptime:()=>s6,type:()=>V$,totalmem:()=>X$,tmpdir:()=>I$,release:()=>_$,platform:()=>H$,networkInterfaces:()=>Q$,loadavg:()=>o6,hostname:()=>n6,homedir:()=>K$,getNetworkInterfaces:()=>Y$,freemem:()=>$$,endianness:()=>e6,default:()=>t6,cpus:()=>U$,arch:()=>E$,EOL:()=>J$});var h6,L6,b6,l6,i6,c6,r6=(X,U)=>()=>(U||X((U={exports:{}}).exports,U),U.exports),m6=(X,U,V,_)=>{if(U&&typeof U=="object"||typeof U=="function")for(let H of l6(U))!c6.call(X,H)&&H!==V&&L6(X,H,{get:()=>U[H],enumerable:!(_=b6(U,H))||_.enumerable});return X},p6=(X,U,V)=>(V=X!=null?h6(i6(X)):{},m6(U||!X||!X.__esModule?L6(V,"default",{value:X,enumerable:!0}):V,X)),a6,W6,t6,e6,n6,o6,s6,$$,X$,U$,V$,_$,E$,H$,I$,J$,K$,Q$,Y$;var c=F6(()=>{h6=Object.create,L6=Object.defineProperty,b6=Object.getOwnPropertyDescriptor,l6=Object.getOwnPropertyNames,i6=Object.getPrototypeOf,c6=Object.prototype.hasOwnProperty,a6=r6((X)=>{X.endianness=function(){return"LE"},X.hostname=function(){return typeof location<"u"?location.hostname:""},X.loadavg=function(){return[]},X.uptime=function(){return 0},X.freemem=function(){return Number.MAX_VALUE},X.totalmem=function(){return Number.MAX_VALUE},X.cpus=function(){return[]},X.type=function(){return"Browser"},X.release=function(){return typeof navigator<"u"?navigator.appVersion:""},X.networkInterfaces=X.getNetworkInterfaces=function(){return{}},X.arch=function(){return"javascript"},X.platform=function(){return"browser"},X.tmpdir=X.tmpDir=function(){return"/tmp"},X.EOL=` | ||
`,X.homedir=function(){return"/"}}),W6=p6(a6()),t6=W6.default,{endianness:e6,hostname:n6,loadavg:o6,uptime:s6,freemem:$$,totalmem:X$,cpus:U$,type:V$,release:_$,arch:E$,platform:H$,tmpdir:I$,EOL:J$,homedir:K$,networkInterfaces:Q$,getNetworkInterfaces:Y$}=W6.default});var S={bun:"bun",deno:"deno",node:"node",hermes:"hermes",workerd:"workerd",browser:"browser"},K=()=>{},f="$tatami-ng_group",P=Object.freeze({1:12.706204736432102,2:4.3026527299112765,3:3.182446305284264,4:2.7764451051977996,5:2.57058183661474,6:2.446911848791681,7:2.3646242510102997,8:2.306004135033371,9:2.262157162740992,10:2.2281388519649385,11:2.200985160082949,12:2.178812829663418,13:2.160368656461013,14:2.1447866879169277,15:2.131449545559323,16:2.1199052992210112,17:2.109815577833181,18:2.10092204024096,19:2.0930240544082634,20:2.085963447265837,21:2.0796138447276626,22:2.073873067904015,23:2.068657610419041,24:2.063898561628021,25:2.0595385527532946,26:2.0555294386428713,27:2.0518305164802837,28:2.048407141795244,29:2.0452296421327034,30:2.042272456301238,31:2.0395134463964077,32:2.0369333434601016,33:2.0345152974493383,34:2.0322445093177186,35:2.030107928250343,36:2.0280940009804507,37:2.0261924630291097,38:2.0243941645751367,39:2.0226909117347285,40:2.021075382995338,41:2.019540963982894,42:2.0180816970958815,43:2.0166921941428138,44:2.0153675699129416,45:2.0141033848332928,46:2.012895595294589,47:2.011740510475755,48:2.010634754696446,49:2.0095752344892093,50:2.0085591097152062,51:2.0075837681558824,52:2.0066468031022118,53:2.00574599353695,54:2.0048792865665233,55:2.0040447818101814,56:2.003240717496698,57:2.002465458054599,58:2.0017174830120927,59:2.0009953770482105,60:2.000297821058262,61:1.9996235841149783,62:1.9989715162223116,63:1.998340541772196,64:1.9977296536259739,65:1.9971379077520126,66:1.9965644183594748,67:1.996008353475506,68:1.9954689309194023,69:1.994945414632814,70:1.9944371113297732,71:1.9939433674345044,72:1.9934635662785831,73:1.9929971255321668,74:1.9925434948468204,75:1.9921021536898658,76:1.9916726093523491,77:1.9912543951146042,78:1.9908470685550523,79:1.9904502099893606,80:1.9900634210283845,81:1.9896863232444832,82:1.989318556936819,83:1.9889597799871794,84:1.9886096667986737,85:1.988267907310378,86:1.9879342060816723,87:1.9876082814405773,88:1.987289864690939,89:1.9869786993737681,90:1.9866745405784685,91:1.9863771543000652,92:1.9860863168388938,93:1.985801814239503,94:1.9855234417658303,95:1.9852510034099267,96:1.9849843114317696,97:1.9847231859278835,98:1.9844674544266925,99:1.9842169515086832,100:1.983971518449634,101:1.9837310028852815,102:1.9834952584959407,103:1.9832641447097104,104:1.9830375264229902,105:1.9828152737371547,106:1.9825972617102912,107:1.9823833701230178,108:1.9821734832574516,109:1.9819674896884745,110:1.9817652820865104,111:1.981566757031071,112:1.9813718148344008,113:1.9811803593745805,114:1.9809922979375068,115:1.9808075410672004,116:1.980626002423938,117:1.9804475986497296,118:1.9802722492407063,119:1.9800998764260065,120:1.979930405052777,121:1.9797637624769306,122:1.9795998784593314,123:1.97943868506709,124:1.979280116579683,125:1.9791241093996175,126:1.9789706019673938,127:1.978819534680521,128:1.9786708498163625,129:1.9785244914586055,130:1.9783804054271532,131:1.9782385392112587,132:1.9780988419057237,133:1.977961264150002,134:1.9778257580700531,135:1.9776922772228045,136:1.9775607765430836,137:1.977431212292894,138:1.9773035420129166,139:1.9771777244761224,140:1.9770537196433886,141:1.9769314886210223,142:1.97681099362009,143:1.9766921979174685,144:1.9765750658185368,145:1.9764595626214163,146:1.9763456545827007,147:1.9762333088845883,148:1.9761224936033637,149:1.9760131776791554,150:1.9759053308869141,151:1.9757989238085507,152:1.975693927806187,153:1.9755903149964589,154:1.9754880582258323,155:1.9753871310468787,156:1.9752875076954728,157:1.9751891630688665,158:1.9750920727046015,159:1.9749962127602256,160:1.9749015599937723,161:1.9748080917449764,162:1.9747157859171882,163:1.9746246209599583,164:1.9745345758522659,165:1.9744456300863593,166:1.9743577636521858,167:1.9742709570223849,168:1.974185191137821,169:1.9741004473936339,170:1.9740167076257829,171:1.9739339540980692,172:1.9738521694896138,173:1.9737713368827694,174:1.9736914397514562,175:1.9736124619498976,176:1.9735343877017435,177:1.9734572015895646,178:1.9733808885447033,179:1.9733054338374667,180:1.973230823067649,181:1.9731570421553692,182:1.9730840773322162,183:1.9730119151326795,184:1.9729405423858692,185:1.9728699462074992,186:1.9728001139921352,187:1.9727310334056907,188:1.9726626923781656,189:1.9725950790966158,190:1.9725281819983451,191:1.972461989764315,192:1.9723964913127596,193:1.9723316757930012,194:1.9722675325794565,195:1.972204051265833,196:1.9721412216594971,197:1.9720790337760221,198:1.972017477833896,199:1.9719565442493954,200:1.9718962236316093,201:1.9718365067776158,202:1.971777384667801,203:1.971718848461318,204:1.9716608894916787,205:1.971603499262479,206:1.9715466694432433,207:1.9714903918653972,208:1.9714346585183509,209:1.9713794615456992,210:1.9713247932415296,211:1.9712706460468354,212:1.9712170125460335,213:1.9711638854635767,214:1.971111257660664,215:1.9710591221320446,216:1.9710074720029072,217:1.97095630052586,218:1.9709056010779908,219:1.9708553671580111,220:1.9708055923834753,221:1.970756270488079,222:1.9707073953190282,223:1.9706589608344816,224:1.9706109611010594,225:1.9705633902914228,226:1.9705162426819125,227:1.9704695126502556,228:1.9704231946733297,229:1.9703772833249869,230:1.9703317732739336,231:1.9702866592816697,232:1.9702419362004757,233:1.9701975989714555,234:1.9701536426226303,235:1.9701100622670775,236:1.9700668531011214,237:1.9700240104025675,238:1.9699815295289818,239:1.969939405916016,240:1.9698976350757686,241:1.9698562125951948,242:1.9698151341345516,243:1.9697743954258797,244:1.9697339922715287,245:1.9696939205427133,246:1.9696541761781068,247:1.9696147551824699,248:1.9695756536253115,249:1.9695368676395828,250:1.9694983934204007,251:1.9694602272238055,252:1.9694223653655467,253:1.969384804219895,254:1.9693475402184863,255:1.9693105698491933,256:1.9692738896550193,257:1.9692374962330224,258:1.9692013862332616,259:1.9691655563577715,260:1.9691300033595551,261:1.9690947240416052,262:1.9690597152559448,263:1.9690249739026924,264:1.9689904969291443,265:1.968956281328883,266:1.9689223241409022,267:1.9688886224487527,268:1.9688551733797075,269:1.968821974103945,270:1.9687890218337525,271:1.968756313822743,272:1.968723847365097,273:1.9686916197948103,274:1.9686596284849691,275:1.9686278708470335,276:1.9685963443301415,277:1.968565046420423,278:1.9685339746403347,279:1.9685031265480044,280:1.9684724997365923,281:1.968442091833664,282:1.968411900500579,283:1.9683819234318907,284:1.9683521583547587,285:1.9683226030283762,286:1.9682932552434063,287:1.968264112821431,288:1.9682351736144144,289:1.9682064355041722,290:1.968177896401857,291:1.968149554247451,292:1.9681214070092705,293:1.9680934526834821,294:1.9680656892936232,295:1.968038114890141,296:1.9680107275499321,297:1.9679835253758984,298:1.967956506496507,299:1.9679296690653623,300:1.9679030112607847,301:1.9678765312853979,302:1.967850227365727,303:1.9678240977517998,304:1.967798140716761,305:1.9677723545564905,306:1.967746737589231,307:1.9677212881552217,308:1.967696004616341,309:1.967670885355754,310:1.9676459287775685,311:1.9676211333064957,312:1.9675964973875213,313:1.967572019485578,314:1.967547698085227,315:1.9675235316903468,316:1.9674995188238256,317:1.9674756580272583,318:1.9674519478606556,319:1.96742838690215,320:1.9674049737477135,321:1.9673817070108799,322:1.9673585853224684,323:1.9673356073303163,324:1.9673127716990173,325:1.9672900771096589,326:1.9672675222595717,327:1.9672451058620788,328:1.9672228266462515,329:1.9672006833566689,330:1.9671786747531816,331:1.9671567996106818,332:1.967135056718874,333:1.9671134448820529,334:1.9670919629188843,335:1.9670706096621893,336:1.967049383958733,337:1.9670282846690177,338:1.9670073106670771,339:1.9669864608402783,340:1.966965734089124,341:1.9669451293270586,342:1.9669246454802793,343:1.9669042814875488,344:1.9668840363000124,345:1.966863908881019,346:1.9668438982059417,347:1.966824003262006,348:1.9668042230481186,349:1.9667845565746986,350:1.9667650028635129,351:1.9667455609475144,352:1.9667262298706825,353:1.966707008687866,354:1.9666878964646288,355:1.9666688922770996,356:1.9666499952118222,357:1.9666312043656085,358:1.9666125188453965,359:1.9665939377681074,360:1.9665754602605063,361:1.9665570854590666,362:1.9665388125098342,363:1.966520640568296,364:1.9665025687992495,365:1.966484596376675,366:1.9664667224836099,367:1.9664489463120245,368:1.9664312670626998,369:1.9664136839451096,370:1.9663961961773,371:1.966378802985776,372:1.9663615036053859,373:1.9663442972792093,374:1.9663271832584475,375:1.9663101608023135,376:1.966293229177927,377:1.9662763876602067,378:1.96625963553177,379:1.9662429720828285,380:1.9662263966110878,381:1.9662099084216513,382:1.9661935068269203,383:1.9661771911465,384:1.9661609607071053,385:1.9661448148424667,386:1.9661287528932416,387:1.9661127742069229,388:1.9660968781377508,389:1.966081064046626,390:1.966065331301024,391:1.966049679274911,392:1.9660341073486605,393:1.9660186149089722,394:1.9660032013487905,395:1.9659878660672256,396:1.9659726084694753,397:1.9659574279667498,398:1.965942323976193,399:1.9659272959208094,400:1.9659123432293915,401:1.9658974653364458,402:1.9658826616821223,403:1.965867931712145,404:1.9658532748777406,405:1.9658386906355727,406:1.9658241784476738,407:1.965809737781378,408:1.9657953681092573,409:1.9657810689090576,410:1.9657668396636336,411:1.965752679860889,412:1.9657385889937122,413:1.9657245665599175,414:1.9657106120621863,415:1.9656967250080057,416:1.9656829049096134,417:1.9656691512839384,418:1.965655463652545,419:1.9656418415415793,420:1.9656282844817121,421:1.9656147920080864,422:1.9656013636602634,423:1.9655879989821707,424:1.9655746975220507,425:1.9655614588324102,426:1.965548282469968,427:1.9655351679956077,428:1.9655221149743287,429:1.9655091229751978,430:1.9654961915712998,431:1.9654833203396942,432:1.9654705088613673,433:1.9654577567211857,434:1.965445063507854,435:1.965432428813868,436:1.9654198522354724,437:1.9654073333726187,438:1.9653948718289207,439:1.9653824672116142,440:1.9653701191315152,441:1.9653578272029781,442:1.9653455910438589,443:1.9653334102754718,444:1.9653212845225516,445:1.9653092134132164,446:1.9652971965789277,447:1.9652852336544535,448:1.9652733242778317,449:1.9652614680903338,450:1.9652496647364275,451:1.9652379138637432,452:1.9652262151230366,453:1.9652145681681563,454:1.9652029726560083,455:1.9651914282465226,456:1.9651799346026202,457:1.9651684913901803,458:1.9651570982780076,459:1.9651457549378,460:1.9651344610441186,461:1.9651232162743548,462:1.9651120203087005,463:1.9651008728301178,464:1.9650897735243085,465:1.9650787220796855,466:1.9650677181873428,467:1.965056761541027,468:1.965045851837109,469:1.965034988774555,470:1.965024172054902,471:1.9650134013822251,472:1.9650026764631154,473:1.9649919970066518,474:1.9649813627243728,475:1.964970773330254,476:1.9649602285406784,477:1.9649497280744153,478:1.9649392716525922,479:1.964928858998672,480:1.9649184898384262,481:1.9649081638999137,482:1.9648978809134563,483:1.9648876406116125,484:1.9648774427291587,485:1.9648672870030628,486:1.9648571731724636,487:1.9648471009786466,488:1.9648370701650248,489:1.9648270804771135,490:1.9648171316625118,491:1.964807223470879,492:1.9647973556539153,493:1.9647875279653397,494:1.9647777401608706,495:1.9647679919982053,496:1.9647582832369994,497:1.9647486136388483,498:1.9647389829672652,499:1.9647293909876653,500:1.9647198374673442,501:1.9647103221754598,502:1.964700844883014,503:1.9646914053628335,504:1.9646820033895525,505:1.964672638739595,506:1.9646633111911553,507:1.9646540205241838,508:1.9646447665203655,509:1.964635548963106,510:1.9646263676375137,511:1.9646172223303833,512:1.9646081128301776,513:1.9645990389270147,514:1.9645900004126484,515:1.9645809970804544,516:1.9645720287254127,517:1.9645630951440949,518:1.964554196134645,519:1.9645453314967691,520:1.9645365010317148,521:1.9645277045422602,522:1.9645189418326983,523:1.964510212708822,524:1.964501516977911,525:1.964492854448715,526:1.9644842249314425,527:1.9644756282377454,528:1.9644670641807058,529:1.964458532574823,530:1.9644500332359982,531:1.9644415659815229,532:1.9644331306300662,533:1.9644247270016604,534:1.964416354917689,535:1.9644080142008735,536:1.9643997046752626,537:1.9643914261662165,538:1.9643831785003991,539:1.9643749615057613,540:1.9643667750115323,541:1.964358618848207,542:1.9643504928475335,543:1.964342396842502,544:1.9643343306673333,545:1.9643262941574684,546:1.9643182871495555,547:1.9643103094814403,548:1.964302360992155,549:1.9642944415219068,550:1.9642865509120675,551:1.9642786890051633,552:1.964270855644863,553:1.9642630506759702,554:1.9642552739444101,555:1.9642475252972216,556:1.9642398045825453,557:1.9642321116496164,558:1.9642244463487513,559:1.9642168085313412,560:1.9642091980498402,561:1.9642016147577568,562:1.964194058509645,563:1.9641865291610932,564:1.9641790265687171,565:1.964171550590149,566:1.9641641010840303,567:1.9641566779100006,568:1.9641492809286911,569:1.964141910001714,570:1.964134564991655,571:1.9641272457620647,572:1.9641199521774493,573:1.964112684103263,574:1.9641054414058998,575:1.9640982239526847,576:1.964091031611867,577:1.9640838642526093,578:1.964076721744983,579:1.9640696039599586,580:1.9640625107693983,581:1.9640554420460483,582:1.9640483976635308,583:1.9640413774963374,584:1.964034381419821,585:1.9640274093101877,586:1.9640204610444916,587:1.9640135365006257,588:1.9640066355573154,589:1.9639997580941106,590:1.963992903991381,591:1.9639860731303063,592:1.9639792653928712,593:1.9639724806618581,594:1.9639657188208401,595:1.9639589797541745,596:1.963952263346997,597:1.963945569485213,598:1.963938898055494,599:1.9639322489452695,600:1.96392562204272,601:1.9639190172367733,602:1.963912434417095,603:1.963905873474085,604:1.9638993342988706,605:1.9638928167832999,606:1.9638863208199362,607:1.9638798463020526,608:1.9638733931236256,609:1.9638669611793291,610:1.9638605503645292,611:1.9638541605752786,612:1.9638477917083106,613:1.963841443661033,614:1.9638351163315244,615:1.9638288096185263,616:1.9638225234214404,617:1.9638162576403206,618:1.96381001217587,619:1.9638037869294331,620:1.9637975818029945,621:1.9637913966991682,622:1.9637852315211985,623:1.9637790861729507,624:1.963772960558908,625:1.9637668545841658,626:1.9637607681544267,627:1.963754701175997,628:1.96374865355578,629:1.9637426252012729,630:1.9637366160205605,631:1.9637306259223126,632:1.9637246548157765,633:1.9637187026107747,634:1.9637127692177012,635:1.9637068545475131,636:1.9637009585117295,637:1.9636950810224274,638:1.9636892219922344,639:1.9636833813343266,640:1.963677558962424,641:1.9636717547907854,642:1.9636659687342057,643:1.96366020070801,644:1.9636544506280507,645:1.9636487184107032,646:1.9636430039728607,647:1.963637307231933,648:1.9636316281058388,649:1.9636259665130043,650:1.9636203223723585,651:1.9636146956033296,652:1.9636090861258415,653:1.9636034938603082,654:1.963597918727633,655:1.9635923606492014,656:1.9635868195468806,657:1.9635812953430134,658:1.9635757879604159,659:1.9635702973223736,660:1.9635648233526377,661:1.9635593659754214,662:1.9635539251153973,663:1.9635485006976923,664:1.9635430926478856,665:1.9635377008920054,666:1.9635323253565247,667:1.9635269659683576,668:1.9635216226548569,669:1.963516295343811,670:1.9635109839634397,671:1.9635056884423918,672:1.9635004087097414,673:1.9634951446949849,674:1.9634898963280374,675:1.9634846635392311,676:1.9634794462593101,677:1.9634742444194289,678:1.9634690579511493,679:1.9634638867864362,680:1.9634587308576554,681:1.9634535900975714,682:1.9634484644393435,683:1.9634433538165224,684:1.963438258163049,685:1.96343317741325,686:1.963428111501836,687:1.9634230603638985,688:1.9634180239349066,689:1.9634130021507055,690:1.9634079949475116,691:1.9634030022619122,692:1.9633980240308617,693:1.9633930601916791,694:1.963388110682045,695:1.9633831754399986,696:1.963378254403937,697:1.9633733475126116,698:1.9633684547051236,699:1.9633635759209254,700:1.9633587110998145,701:1.9633538601819331,702:1.9633490231077657,703:1.9633441998181338,704:1.9633393902541987,705:1.9633345943574538,706:1.9633298120697256,707:1.96332504333317,708:1.9633202880902698,709:1.9633155462838343,710:1.963310817856994,711:1.9633061027532,712:1.9633014009162226,713:1.9632967122901475,714:1.9632920368193745,715:1.963287374448614,716:1.9632827251228866,717:1.9632780887875207,718:1.9632734653881478,719:1.963268854870705,720:1.963264257181428,721:1.9632596722668525,722:1.9632551000738105,723:1.9632505405494287,724:1.963245993641126,725:1.963241459296613,726:1.9632369374638876,727:1.963232428091235,728:1.9632279311272245,729:1.963223446520709,730:1.9632189742208208,731:1.963214514176972,732:1.9632100663388516,733:1.9632056306564227,734:1.9632012070799227,735:1.9631967955598593,736:1.9631923960470097,737:1.9631880084924196,738:1.9631836328473993,739:1.9631792690635235,740:1.9631749170926298,741:1.9631705768868148,742:1.9631662483984351,743:1.9631619315801037,744:1.9631576263846882,745:1.9631533327653103,746:1.9631490506753435,747:1.963144780068411,748:1.963140520898385,749:1.9631362731193833,750:1.9631320366857699,751:1.9631278115521522,752:1.9631235976733785,753:1.9631193950045382,754:1.963115203500959,755:1.963111023118206,756:1.9631068538120793,757:1.963102695538613,758:1.963098548254074,759:1.963094411914959,760:1.963090286477995,761:1.9630861719001376,762:1.9630820681385661,763:1.963077975150687,764:1.963073892894129,765:1.9630698213267435,766:1.9630657604066017,767:1.9630617100919938,768:1.9630576703414275,769:1.9630536411136277,770:1.9630496223675324,771:1.963045614062295,772:1.963041616157278,773:1.9630376286120574,774:1.9630336513864166,775:1.9630296844403485,776:1.9630257277340504,777:1.9630217812279265,778:1.9630178448825841,779:1.963013918658834,780:1.9630100025176869,781:1.9630060964203544,782:1.9630022003282468,783:1.9629983142029712,784:1.9629944380063318,785:1.962990571700327,786:1.9629867152471494,787:1.9629828686091835,788:1.9629790317490055,789:1.962975204629381,790:1.9629713872132657,791:1.9629675794638015,792:1.962963781344317,793:1.9629599928183272,794:1.9629562138495296,795:1.9629524444018054,796:1.9629486844392179,797:1.9629449339260105,798:1.9629411928266058,799:1.962937461105606,800:1.9629337387277892,801:1.9629300256581104,802:1.9629263218616995,803:1.9629226273038602,804:1.9629189419500692,805:1.9629152657659752,806:1.9629115987173975,807:1.9629079407703247,808:1.9629042918909145,809:1.9629006520454917,810:1.9628970212005485,811:1.9628933993227415,812:1.9628897863788926,813:1.9628861823359869,814:1.962882587161172,815:1.9628790008217571,816:1.9628754232852115,817:1.9628718545191641,818:1.9628682944914029,819:1.9628647431698727,820:1.9628612005226753,821:1.9628576665180681,822:1.9628541411244633,823:1.9628506243104265,824:1.962847116044676,825:1.962843616296083,826:1.9628401250336684,827:1.9628366422266041,828:1.9628331678442101,829:1.962829701855956,830:1.9628262442314577,831:1.9628227949404782,832:1.9628193539529253,833:1.962815921238852,834:1.9628124967684557,835:1.962809080512076,836:1.9628056724401943,837:1.962802272523434,838:1.9627988807325591,839:1.9627954970384724,840:1.9627921214122162,841:1.96278875382497,842:1.9627853942480507,843:1.9627820426529121,844:1.9627786990111424,845:1.9627753632944653,846:1.962772035474738,847:1.962768715523951,848:1.962765403414227,849:1.9627620991178198,850:1.9627588026071152,851:1.9627555138546275,852:1.9627522328330012,853:1.962748959515009,854:1.962745693873551,855:1.9627424358816548,856:1.9627391855124732,857:1.9627359427392859,858:1.9627327075354966,859:1.9627294798746329,860:1.9627262597303463,861:1.9627230470764099,862:1.962719841886719,863:1.962716644135291,864:1.9627134537962623,865:1.9627102708438906,866:1.9627070952525512,867:1.9627039269967388,868:1.9627007660510651,869:1.9626976123902597,870:1.9626944659891674,871:1.9626913268227497,872:1.9626881948660826,873:1.9626850700943568,874:1.9626819524828756,875:1.9626788420070573,876:1.962675738642431,877:1.9626726423646375,878:1.9626695531494305,879:1.962666470972672,880:1.9626633958103352,881:1.9626603276385024,882:1.962657266433364,883:1.962654212171219,884:1.962651164828473,885:1.962648124381639,886:1.962645090807336,887:1.9626420640822897,888:1.9626390441833281,889:1.9626360310873863,890:1.9626330247715016,891:1.962630025212815,892:1.962627032388571,893:1.9626240462761142,894:1.9626210668528927,895:1.9626180940964544,896:1.9626151279844477,897:1.9626121684946207,898:1.9626092156048216,899:1.9626062692929966,900:1.9626033295371899,901:1.9626003963155434,902:1.9625974696062964,903:1.9625945493877848,904:1.9625916356384394,905:1.9625887283367882,906:1.9625858274614525,907:1.962582932991149,908:1.9625800449046875,909:1.9625771631809725,910:1.962574287799,911:1.9625714187378587,912:1.9625685559767294,913:1.9625656994948841,914:1.9625628492716856,915:1.9625600052865868,916:1.9625571675191313,917:1.9625543359489512,918:1.9625515105557676,919:1.9625486913193901,920:1.9625458782197165,921:1.9625430712367309,922:1.962540270350506,923:1.9625374755412,924:1.962534686789057,925:1.962531904074407,926:1.9625291273776646,927:1.96252635667933,928:1.9625235919599864,929:1.962520833200302,930:1.9625180803810265,931:1.962515333482994,932:1.9625125924871198,933:1.9625098573744026,934:1.9625071281259212,935:1.962504404722836,936:1.9625016871463874,937:1.9624989753778976,938:1.9624962693987664,939:1.9624935691904748,940:1.9624908747345817,941:1.9624881860127243,942:1.9624855030066184,943:1.9624828256980582,944:1.962480154068913,945:1.962477488101131,946:1.962474827776736,947:1.9624721730778274,948:1.962469523986581,949:1.9624668804852476,950:1.9624642425561525,951:1.962461610181696,952:1.9624589833443515,953:1.9624563620266673,954:1.9624537462112641,955:1.9624511358808356,956:1.9624485310181483,957:1.9624459316060407,958:1.9624433376274224,959:1.9624407490652758,960:1.9624381659026522,961:1.9624355881226763,962:1.962433015708541,963:1.9624304486435091,964:1.9624278869109137,965:1.9624253304941575,966:1.9624227793767104,967:1.9624202335421121,968:1.9624176929739703,969:1.9624151576559599,970:1.962412627571823,971:1.9624101027053702,972:1.9624075830404768,973:1.9624050685610865,974:1.962402559251207,975:1.9624000550949139,976:1.9623975560763454,977:1.962395062179708,978:1.9623925733892695,979:1.9623900896893647,980:1.9623876110643914,981:1.9623851374988106,982:1.9623826689771475,983:1.96238020548399,984:1.9623777470039887,985:1.962375293521857,986:1.9623728450223694,987:1.9623704014903631,988:1.9623679629107367,989:1.9623655292684494,990:1.9623631005485223,991:1.9623606767360353,992:1.9623582578161303,993:1.9623558437740083,994:1.9623534345949294,995:1.9623510302642144,996:1.9623486307672415,997:1.9623462360894495,998:1.962343846216334,999:1.962341461133449,1000:1.9623390808264078,1001:1.9623367052808791,1002:1.9623343344825908,1003:1.962331968417326,1004:1.9623296070709262,1005:1.9623272504292881,1006:1.9623248984783654,1007:1.9623225512041673,1008:1.9623202085927578,1009:1.9623178706302578,1010:1.9623155373028418,1011:1.9623132085967403,1012:1.962310884498237,1013:1.962308564993671,1014:1.962306250069434,1015:1.9623039397119733,1016:1.9623016339077874,1017:1.9622993326434304,1018:1.962297035905507,1019:1.9622947436806755,1020:1.9622924559556474,1021:1.962290172717185,1022:1.9622878939521027,1023:1.9622856196472673,1024:1.962283349789597,infinity:1.96}),K6=128,j=128,v=1e9,Q6=12,F=8;var{spawnSync:Z$}=(()=>({}));var{setFlagsFromString:L$}=(()=>({}));var{runInNewContext:W$}=(()=>({}));var g6=!!globalThis.Bun||!!globalThis.process?.versions?.bun,y6=!!globalThis.Deno,u6=globalThis.process?.release?.name==="node",d6=!!globalThis.navigator,W=(()=>{if(g6)return S.bun;if(y6)return S.deno;if(u6)return S.node;if(d6)return S.browser;return"unknown"})();var k6=(X)=>X!==null&&typeof X==="object"&&typeof X.then==="function",Q=(X)=>{return typeof X==="function"},N=(X)=>{return(async()=>{}).constructor===X?.constructor},g=(X)=>{if(X==null)return!1;if(N(X))return!0;try{let U=X(),V=k6(U);if(V)try{U.then(()=>{})?.catch(()=>{})}catch{}return V}catch{return!1}},A=(X)=>{return Object.prototype.toString.call(X).slice(8,-1)==="Object"};function o(X){if(X<1)return(X*1000).toFixed(2);if(X<1000)return X.toFixed(2);if(X/=1000,X<1000)return X.toFixed(2);if(X/=1000,X<1000)return X.toFixed(2);if(X/=1000,X<1000)return X.toFixed(2);if(X/=60,X<1000)return X.toFixed(2);return X/=60,X.toFixed(2)}var C=(X)=>{if(X==null)throw new TypeError(`Invalid dividend: ${X}`);if(typeof X!=="number")throw new TypeError(`expected number, got ${X.constructor.name}`);if(X===0||Number.isNaN(X))throw new RangeError(`Invalid dividend: ${X}`);return X};var Y6=(X,U=l(X))=>{return X.reduce((V,_)=>V+(_-U)**2,0)/C(X.length-1)},y=(X,U)=>{if(!Array.isArray(X))throw new TypeError(`expected array, got ${X.constructor.name}`);if(X.length===0)throw new Error("expected non-empty array, got empty array");if(U<0||U>1)throw new Error("q must be between 0 and 1");if(U===0)return X[0];if(U===1)return X[X.length-1];let V=(X.length-1)*U,_=Math.floor(V);if(X[_+1]!=null)return X[_]+(V-_)*(X[_+1]-X[_]);return X[_]},s=(X)=>y(X,0.5),l=(X)=>{if(!Array.isArray(X))throw new TypeError(`expected array, got ${X.constructor.name}`);if(X.length===0)throw new Error("expected non-empty array, got empty array");return X.reduce((U,V)=>U+V,0)/X.length},$6=(X,U,V=U(X))=>{let _=[];for(let H of X)_.push(Math.abs(H-V));return U(_)},Z6=(X,U,V,_)=>{return X/C(V)*Math.sqrt((U/C(X))**2+(_/C(V))**2)};var B=(()=>{return{unknown:()=>{try{let X=performance.now.bind(performance);return X(),()=>1e6*X()}catch{return()=>1e6*Date.now()}},browser:()=>{try{return $.agent.monotonicNow(),()=>1e6*$.agent.monotonicNow()}catch{}try{return $262.agent.monotonicNow(),()=>1e6*$262.agent.monotonicNow()}catch{}return()=>1e6*performance.now()},node:()=>()=>Number(process.hrtime.bigint()),deno:()=>()=>1e6*performance.now(),bun:()=>Bun.nanoseconds}[W]()})();var G6=(()=>{return{unknown:()=>"",browser:()=>"",node:()=>globalThis.process.version,deno:()=>globalThis.Deno.version.deno,bun:()=>globalThis.process.versions.bun}[W]()})(),T6=(()=>{return{unknown:()=>"unknown",browser:()=>"unknown",node:()=>`${globalThis.process.arch}-${globalThis.process.platform}`,deno:()=>Deno.build.target,bun:()=>`${globalThis.process.arch}-${globalThis.process.platform}`}[W]()})(),N6=await(async()=>{return await{unknown:()=>"unknown",browser:()=>"unknown",node:async()=>(await Promise.resolve().then(() => (c(),i)))?.cpus?.()?.[0]?.model,deno:async()=>(await Promise.resolve().then(() => (c(),i)))?.cpus?.()?.[0]?.model,bun:async()=>(await Promise.resolve().then(() => (c(),i)))?.cpus?.()?.[0]?.model}[W]()})(),O6=(()=>{return{unknown:()=>globalThis.process?.env?.FORCE_COLOR!=null||!globalThis.process?.env?.NO_COLOR&&!globalThis.process?.env?.NODE_DISABLE_COLORS,browser:()=>!1,node:()=>globalThis.process.env.FORCE_COLOR!=null||!globalThis.process.env.NO_COLOR&&!globalThis.process.env.NODE_DISABLE_COLORS,deno:()=>!Deno.noColor,bun:()=>globalThis.process.env.FORCE_COLOR!=null||!globalThis.process.env.NO_COLOR&&!globalThis.process.env.NODE_DISABLE_COLORS}[W]()})(),z6=await(async()=>{return await{unknown:async()=>{try{return await import("node:fs"),(await import("node:fs")).writeFileSync}catch{return K}},browser:()=>K,node:async()=>(await import("node:fs")).writeFileSync,deno:()=>Deno.writeTextFileSync,bun:async()=>(await import("node:fs")).writeFileSync}[W]()})(),k$=(()=>{return{unknown:()=>K,browser:()=>K,node:()=>(X)=>Z$(X.trim().split(/\s+/)[0],X.trim().split(/\s+/).slice(1)),deno:()=>(X)=>{new Deno.Command(X.trim().split(/\s+/)[0],{args:X.trim().split(/\s+/).slice(1)}).outputSync()},bun:()=>(X)=>Bun.spawnSync(X.trim().split(/\s+/))}[W]()})(),w6=(()=>{return{unknown:()=>Q(globalThis.gc)?()=>globalThis.gc():K,browser:()=>{try{return globalThis.$262.gc(),()=>globalThis.$262.gc()}catch{return K}},node:()=>()=>{L$("--expose_gc"),W$("gc")()},deno:()=>Q(globalThis.gc)?()=>globalThis.gc():K,bun:()=>()=>Bun.gc(!0)}[W]()})(),r=(X,U={})=>{if(!Q(X))throw new TypeError(`expected function, got ${X.constructor.name}`);if(!A(U))throw new TypeError(`expected object, got ${U.constructor.name}`);if(U.samples!=null&&typeof U.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${U.samples.constructor.name}`);if(U.time!=null&&typeof U.time!=="number")throw new TypeError(`expected number as 'time' option, got ${U.time.constructor.name}`);if(U.warmup!=null&&typeof U.warmup!=="number"&&typeof U.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${U.warmup.constructor.name}`);if(U.now!=null&&!Q(U.now))throw new TypeError(`expected function as 'now' option, got ${U.now.constructor.name}`);if(U.before!=null&&!Q(U.before))throw new TypeError(`expected function as 'before' option, got ${U.before.constructor.name}`);if(U.beforeEach!=null&&!Q(U.beforeEach))throw new TypeError(`expected function as 'beforeEach' option, got ${U.beforeEach.constructor.name}`);if(U.after!=null&&!Q(U.after))throw new TypeError(`expected function as 'after' option, got ${U.after.constructor.name}`);if(U.afterEach!=null&&!Q(U.afterEach))throw new TypeError(`expected function as 'afterEach' option, got ${U.afterEach.constructor.name}`)},X6=(X,U)=>{X.now=U.now??X.now,X.samples=U.samples??X.samples,X.time=U.time??X.time,X.warmup=U.warmup??X.warmup};async function q6(X,U={}){if(r(X,U),U.async!=null&&typeof U.async!=="boolean")throw new TypeError(`expected boolean as 'async' option, got ${U.async.constructor.name}`);U.async=U.async??g(X),U.time=U.time??v,U.samples=U.samples??j,U.warmup=typeof U.warmup==="number"?U.warmup:U.warmup===!0?Q6:0,U.now=U.now??B,U.before=U.before??K,U.beforeEach=U.beforeEach??K,U.after=U.after??K,U.afterEach=U.afterEach??K;let V=N(U.before),_=N(U.beforeEach),H=N(U.after),E=N(U.afterEach),J=async()=>{if(_)await U.beforeEach.call(this);else U.beforeEach.call(this);let L;if(U.async){let M=U.now();await X.call(this),L=U.now()-M}else{let M=U.now();X.call(this),L=U.now()-M}if(E)await U.afterEach.call(this);else U.afterEach.call(this);return L},Z=[],q=0;if(U.warmup){if(V)await U.before.call(this);else U.before.call(this);for(let L=0;L<U.warmup;L++){let M=await J();Z.push(M),q+=M}if(H)await U.after.call(this);else U.after.call(this)}if(Z=[],q=0,V)await U.before.call(this);else U.before.call(this);while(q<U.time||U.samples>Z.length){let L=await J();Z.push(L),q+=L}if(H)await U.after.call(this);else U.after.call(this);return C$(Z)}var C$=(X)=>{if(!Array.isArray(X))throw new TypeError(`expected array, got ${X.constructor.name}`);if(X.length===0)throw new Error("expected non-empty array, got empty array");X.sort((V,_)=>V-_);let U=X.map((V)=>V!==0?1e9/V:1e9/latencyAvg).sort((V,_)=>V-_);return{samples:X.length,ss:X.length>=K6,latency:C6(X),throughput:C6(U)}},C6=(X)=>{let U=l(X),V=Y6(X,U),_=Math.sqrt(V),H=_/Math.sqrt(X.length),E=X.length-1,J=P[(E||1).toString()]||P.infinity,Z=H*J,q=Z/C(U)*100,L=s(X);return{min:X[0],max:X[E],p50:L,p75:y(X,0.75),p99:y(X,0.99),p995:y(X,0.995),avg:U,vr:V,sd:_,moe:Z,rmoe:q,aad:$6(X,l,U),mad:$6(X,s,L)}};var G$=()=>{let X;if(typeof globalThis.console?.log==="function")X=globalThis.console.log;else if(typeof globalThis.print==="function")X=globalThis.print;else throw new Error("no logger function found");return X},D6=G$();function I(X,U){let V=new RegExp(`\\x1b\\[${U}m`,"g"),_=`\x1B[${X}m`,H=`\x1B[${U}m`;return(E,J)=>{if(!E||J==null)return J;return J=J.toString(),`${_}${J.includes(H)?J.replace(V,H+_):J}${H}`}}var l$=I(0,0),Y=I(1,22),u=I(2,22),R6=I(3,23),i$=I(4,24),c$=I(7,27),r$=I(8,28),m$=I(9,29),p$=I(30,39),G=I(31,39),D=I(32,39),z=I(33,39),m=I(34,39),M6=I(35,39),O=I(36,39),R=I(37,39),P6=I(90,39),a$=I(90,39),t$=I(91,39),e$=I(92,39),n$=I(93,39),o$=I(94,39),s$=I(95,39),$X=I(96,39),XX=I(97,39),UX=I(40,49),VX=I(41,49),_X=I(42,49),EX=I(43,49),HX=I(44,49),IX=I(45,49),JX=I(46,49),KX=I(47,49),QX=I(100,49),YX=I(101,49),ZX=I(102,49),LX=I(103,49),WX=I(104,49),CX=I(105,49),GX=I(106,49),TX=I(107,49);function T(X){if(X<1)return`${(X*1000).toFixed(2)} ps`;if(X<1000)return`${X.toFixed(2)} ns`;if(X/=1000,X<1000)return`${X.toFixed(2)} \xB5s`;if(X/=1000,X<1000)return`${X.toFixed(2)} ms`;if(X/=1000,X<1000)return`${X.toFixed(2)} s`;if(X/=60,X<1000)return`${X.toFixed(2)} m`;return X/=60,`${X.toFixed(2)} h`}function p(X){return`${X.toFixed(0)}`}function d(X){return`${X.toFixed(2)} %`}function U6(X){return`${X.toFixed(2)}`}function a(X){let U=9;for(let V of X)if(U<V.length)U=V.length;return 2+U}function t({size:X,latency:U=!0,throughput:V=!0,latencyMinMax:_=!0,latencyPercentiles:H=!0}){return`${"-".repeat(X+20*U+20*V+24*_)}${!H?"":` ${"-".repeat(50)}`}`}function V6(X,U,{size:V,colors:_=!0}){return`${X.padEnd(V," ")}${G(_,"error")}: ${U.message}${U.stack?`\n${P6(_,U.stack)}`:""}`}function _6({colors:X=!0}={}){return u(X,R(X,` | ||
1 ps = 1 picosecond = 1e-12s | ||
@@ -7,4 +7,4 @@ 1 ns = 1 nanosecond = 1'000ps = 1e-9s | ||
1 ms = 1 millisecond = 1'000\u03BCs = 1'000'000ns = 1e9ps = 1e-3s | ||
`))}function K6(X,{size:U,latency:_=!0,throughput:E=!0,colors:I=!0,latencyMinMax:H=!0,latencyPercentiles:K=!0}){return`${b(I,M(I,`cpu: ${X.cpu}`))}\n${b(I,M(I,`runtime: ${X.runtime}`))}\n\n${"benchmark".padEnd(U," ")}${!_?"":"time/iter".padStart(20," ")}${!E?"":"iters/s".padStart(20," ")}${!H?"":"(min \u2026 max time/iter)".padStart(24," ")}${!K?"":` ${"p50/median".padStart(20," ")} ${"p75".padStart(9," ")} ${"p99".padStart(9," ")} ${"p995".padStart(9," ")}`}`}function Q6(X,U={size:t,latency:!0,throughput:!0,colors:!0,latencyMinMax:!0,latencyPercentiles:!0}){if(X.startsWith(y))X=M6(U.colors,"unnamed");return`\u2022 ${Z(U.colors,X)}\n${b(U.colors,M(U.colors,o(U)))}`}function V6(X,U,{size:_,latency:E=!0,throughput:I=!0,colors:H=!0,latencyMixMax:K=!0,latencyPercentiles:W=!0}){return`${X.padEnd(_," ")}${!E?"":`${R(H,T(U.latency.avg))} \xB1 ${(U.latency.rmoe>d?N:n)(H,i(U.latency.rmoe))}`.padStart(20+20*H," ")}${!I?"":`${R(H,e(U.throughput.avg))} \xB1 ${(U.throughput.rmoe>d?N:n)(H,i(U.throughput.rmoe))}`.padStart(20+20*H," ")}${!K?"":`(${w(H,T(U.latency.min))} \u2026 ${B6(H,T(U.latency.max))})`.padStart(24+20*H," ")}${!W?"":` ${U6(U.latency.mad)>0?`${j(H,T(U.latency.p50))} \xB1 ${N(H,T(U.latency.mad))}`.padStart(20+20*H," "):j(H,T(U.latency.p50)).padStart(20+10*H," ")} ${j(H,T(U.latency.p75)).padStart(9+10*H," ")} ${j(H,T(U.latency.p99)).padStart(9+10*H," ")} ${j(H,T(U.latency.p995)).padStart(9+10*H," ")}`}`}function s(X,{latency:U=!0,throughput:_=!0,colors:E=!0}){if(X.some((H)=>H.error!=null))throw new Error("Cannot display warning on benchmarks with error");let I=[];for(let H of X){if(H.stats.ss===!1)I.push(`${Z(E,R(E,"Warning"))}: ${Z(E,w(E,H.name))} has a sample size below statistical significance: ${N(E,H.samples)}`);if(U&&H.stats.latency.rmoe>d)I.push(`${Z(E,R(E,"Warning"))}: ${Z(E,w(E,H.name))} has a high latency relative margin of error: ${N(E,i(H.stats.latency.rmoe))}`);if(_&&H.stats.throughput.rmoe>d)I.push(`${Z(E,R(E,"Warning"))}: ${Z(E,w(E,H.name))} has a high latency throughput margin of error: ${N(E,e(H.stats.throughput.rmoe))}`);if(U&&U6(H.stats.latency.mad)>0)I.push(`${Z(E,R(E,"Warning"))}: ${Z(E,w(E,H.name))} has a non zero latency median absolute deviation: ${N(E,T(H.stats.latency.mad))}`);if(_&&Math.trunc(H.stats.throughput.mad)>0)I.push(`${Z(E,R(E,"Warning"))}: ${Z(E,w(E,H.name))} has a non zero throughput median absolute deviation: ${N(E,e(H.stats.throughput.mad))}`)}return I.join("\n")}function Y6(X,{colors:U=!0}){if(X.some((E)=>E.error!=null))throw new Error("Cannot summarize benchmarks with error");if(X.length<2)throw new Error("Cannot summarize less than two benchmarks");X.sort((E,I)=>E.stats.latency.avg-I.stats.latency.avg);let _=X.find((E)=>E.baseline)??X[0];return`${`${_.group==null||_.group.startsWith(y)?"":`${Z(U,M(U,_.group.trim().split(/\s+/).length>1?`'${_.group}'`:`${_.group}`))} `}${Z(U,M(U,"summary"))}`}\n ${Z(U,w(U,_.name))}${X.filter((E)=>E!==_).map((E)=>{let I=E.stats.latency.avg/G(_.stats.latency.avg),K=C6(E.stats.latency.avg,E.stats.latency.sd,_.stats.latency.avg,_.stats.latency.sd)/G(Math.sqrt(_.stats.samples+E.stats.samples)),W=q[(_.stats.samples+E.stats.samples-1||1).toString()]||q.infinity,L=K*W/G(I)*100;return`\n ${(1>I?N:j)(U,1>I?H6(1/G(I)):H6(I))} \xB1 ${n(U,i(L))} times ${1>I?"slower":"faster"} than ${Z(U,w(U,E.name))}`}).join("")}`}var S=null,l=new Map,D=[];function P$(X,U=void 0){if(X!=null&&typeof X!=="string"&&!A(X)&&!V(X))throw new TypeError(`expected string, object or function, got ${X.constructor.name}`);if(V(X))U=X;if(!V(U))throw new TypeError(`expected function, got ${U.constructor.name}`);if(O(U))throw new TypeError(`expected synchronous function, got asynchronous function ${U.constructor.name}`);if(A(X)){if(X.name!=null&&typeof X.name!=="string")throw new TypeError(`expected string as 'name' option, got ${X.name.constructor.name}`);if(X.summary!=null&&typeof X.summary!=="boolean")throw new TypeError(`expected boolean as 'summary' option, got ${X.summary.constructor.name}`);if(X.samples!=null&&typeof X.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${X.samples.constructor.name}`);if(X.time!=null&&typeof X.time!=="number")throw new TypeError(`expected number as 'time' option, got ${X.time.constructor.name}`);if(X.warmup!=null&&typeof X.warmup!=="number"&&typeof X.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${X.warmup.constructor.name}`);if(X.now!=null&&Function!==X.now.constructor)throw new TypeError(`expected function as 'now' option, got ${X.now.constructor.name}`);if(X.before!=null&&!V(X.before))throw new TypeError(`expected function as 'before' option, got ${X.before.constructor.name}`);if(X.after!=null&&!V(X.after))throw new TypeError(`expected function as 'after' option, got ${X.after.constructor.name}`)}if(S=(typeof X==="string"?X.trim():X.name?.trim())||`${y}${l.size+1}`,!l.has(S))l.set(S,{summary:X.summary??!0,samples:X.samples??v,time:X.time??x,warmup:X.warmup??!0,now:X.now??F,before:X.before??Q,after:X.after??Q});U(),S=null}function R$(X,U=void 0,_={}){if(V(X))U=X,X=U.name;a(U,_),X=X.trim(),D.push({before:_.before??Q,beforeEach:_.beforeEach??Q,fn:U,afterEach:_.afterEach??Q,after:_.after??Q,name:X,now:_.now??F,group:S,time:_.time??x,samples:_.samples??v,warmup:_.warmup??!0,baseline:!1,async:k(U)})}function D$(X,U=void 0,_={}){if(V(X))U=X,X=U.name;a(U,_),X=X.trim(),D.push({before:_.before??Q,beforeEach:_.beforeEach??Q,fn:U,afterEach:_.afterEach??Q,after:_.after??Q,name:X,now:_.now??F,group:S,time:_.time??x,samples:_.samples??v,warmup:_.warmup??!0,baseline:!0,async:k(U)})}function j$(){l.clear(),D.length=0}var x6=async(X,U,_={},E={})=>{let I=!1;for(let H of X){I=!0,E6(H,E),E6(H,_);try{if(R6(),H.stats=await D6(H.fn,{async:H.async,samples:H.samples,time:H.time,warmup:H.warmup,now:H.now,before:H.before,after:H.after,beforeEach:H.beforeEach,afterEach:H.afterEach}),!_.json)U(V6(H.name,H.stats,_))}catch(K){if(H.error=K,!_.json)U(I6(H.name,H.error,_))}}if(X=X.filter((H)=>H.error==null),!_.json&&s(X,_))U(""),U(s(X,_));if((Object.keys(E).length===0||E.summary===!0)&&!_.json&&X.length>1)U(""),U(Y6(X,_));return I};async function M$(X={}){if(!A(X))throw new TypeError(`expected object, got ${X.constructor.name}`);if(X.samples!=null&&typeof X.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${X.samples.constructor.name}`);if(X.time!=null&&typeof X.time!=="number")throw new TypeError(`expected number as 'time' option, got ${X.time.constructor.name}`);if(X.warmup!=null&&typeof X.warmup!=="number"&&typeof X.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${X.warmup.constructor.name}`);if(X.json!=null&&typeof X.json!=="number"&&typeof X.json!=="boolean")throw new TypeError(`expected number or boolean as 'json' option, got ${X.json.constructor.name}`);if(X.reporter!=null&&!V(X.reporter))throw new TypeError(`expected function as 'reporter' option, got ${X.reporter.constructor.name}`);if(X.file!=null&&typeof X.file!=="string")throw new TypeError(`expected string as 'file' option, got ${X.file.constructor.name}`);if(typeof X.file==="string"&&X.file.trim().length===0)throw new TypeError("expected non-empty string as 'file' option");if(X.now!=null&&!V(X.now))throw new TypeError(`expected function as 'now' option, got ${X.now.constructor.name}`);X.silent=X.silent??!1,X.units=X.units??!1,X.colors=X.colors??q6,X.size=t(D.map((H)=>H.name));let U=X.silent===!0?Q:j6,_={benchmarks:D,cpu:`${w6}`,runtime:`${C} ${O6} (${z6})`};if(!X.json&&D.length>0)U(K6(_,X)),U(o(X));let E=await x6(D.filter((H)=>H.group==null),U,X);for(let[H,K]of l){if(!X.json){if(E)U("");U(Q6(H,X))}O(K.before)?await K.before.call(this):K.before.call(this),E=await x6(D.filter((W)=>W.group===H),U,X,K),O(K.after)?await K.after.call(this):K.after.call(this)}if(_=V(X.reporter)?X.reporter(_):_,!X.json&&X.units)U(J6(X));if(X.json||X.file){let H=JSON.stringify(_,void 0,typeof X.json!=="number"?0:X.json);if(X.json)U(H);if(X.file)P6(X.file,H)}let I=JSON.parse(JSON.stringify(_));return j$(),I}var A6=(X)=>{return X.benchmarks.filter((U)=>U.error==null).map(({name:U,stats:_})=>{return{[U]:{latency:{value:_?.latency?.avg,lower_value:_?.latency?.avg-_?.latency?.sd,upper_value:_?.latency?.avg+_?.latency?.sd},throughput:{value:_?.throughput?.avg,lower_value:_?.throughput?.avg-_?.throughput?.sd,upper_value:_?.throughput?.avg+_?.throughput?.sd}}}}).reduce((U,_)=>Object.assign(U,_),{})};export{M$ as run,P$ as group,A6 as bmf,R$ as bench,D$ as baseline}; | ||
`))}function E6(X,{size:U,latency:V=!0,throughput:_=!0,colors:H=!0,latencyMinMax:E=!0,latencyPercentiles:J=!0}){return`${u(H,R(H,`cpu: ${X.cpu}`))}\n${u(H,R(H,`runtime: ${X.runtime}`))}\n\n${"benchmark".padEnd(U," ")}${!V?"":"time/iter".padStart(20," ")}${!_?"":"iters/s".padStart(20," ")}${!E?"":"(min \u2026 max time/iter)".padStart(24," ")}${!J?"":` ${"p50/median".padStart(20," ")} ${"p75".padStart(9," ")} ${"p99".padStart(9," ")} ${"p995".padStart(9," ")}`}`}function H6(X,U={size:a,latency:!0,throughput:!0,colors:!0,latencyMinMax:!0,latencyPercentiles:!0}){if(X.startsWith(f))X=R6(U.colors,"unnamed");return`\u2022 ${Y(U.colors,X)}\n${u(U.colors,R(U.colors,t(U)))}`}function I6(X,U,{size:V,latency:_=!0,throughput:H=!0,colors:E=!0,latencyMixMax:J=!0,latencyPercentiles:Z=!0}){return`${X.padEnd(V," ")}${!_?"":`${z(E,T(U.latency.avg))} \xB1 ${(U.latency.rmoe>F?G:m)(E,d(U.latency.rmoe))}`.padStart(20+20*E," ")}${!H?"":`${z(E,p(U.throughput.avg))} \xB1 ${(U.throughput.rmoe>F?G:m)(E,d(U.throughput.rmoe))}`.padStart(20+20*E," ")}${!J?"":`(${O(E,T(U.latency.min))} \u2026 ${M6(E,T(U.latency.max))})`.padStart(24+20*E," ")}${!Z?"":` ${o(U.latency.mad)>0?`${D(E,T(U.latency.p50))} \xB1 ${G(E,T(U.latency.mad))}`.padStart(20+20*E," "):D(E,T(U.latency.p50)).padStart(20+10*E," ")} ${D(E,T(U.latency.p75)).padStart(9+10*E," ")} ${D(E,T(U.latency.p99)).padStart(9+10*E," ")} ${D(E,T(U.latency.p995)).padStart(9+10*E," ")}`}`}function e(X,{latency:U=!0,throughput:V=!0,colors:_=!0}){if(X.some((E)=>E.error!=null))throw new Error("Cannot display warning on benchmarks with error");let H=[];for(let E of X){if(E.stats.ss===!1)H.push(`${Y(_,z(_,"Warning"))}: ${Y(_,O(_,E.name))} has a sample size below statistical significance: ${G(_,E.samples)}`);if(U&&E.stats.latency.rmoe>F)H.push(`${Y(_,z(_,"Warning"))}: ${Y(_,O(_,E.name))} has a high latency relative margin of error: ${G(_,d(E.stats.latency.rmoe))}`);if(V&&E.stats.throughput.rmoe>F)H.push(`${Y(_,z(_,"Warning"))}: ${Y(_,O(_,E.name))} has a high latency throughput margin of error: ${G(_,p(E.stats.throughput.rmoe))}`);if(U&&o(E.stats.latency.mad)>0)H.push(`${Y(_,z(_,"Warning"))}: ${Y(_,O(_,E.name))} has a non zero latency median absolute deviation: ${G(_,T(E.stats.latency.mad))}`);if(V&&Math.trunc(E.stats.throughput.mad)>0)H.push(`${Y(_,z(_,"Warning"))}: ${Y(_,O(_,E.name))} has a non zero throughput median absolute deviation: ${G(_,p(E.stats.throughput.mad))}`)}return H.join("\n")}function J6(X,{colors:U=!0}){if(X.some((_)=>_.error!=null))throw new Error("Cannot summarize benchmarks with error");if(X.length<2)throw new Error("Cannot summarize less than two benchmarks");X.sort((_,H)=>_.stats.latency.avg-H.stats.latency.avg);let V=X.find((_)=>_.baseline)??X[0];return`${`${V.group==null||V.group.startsWith(f)?"":`${Y(U,R(U,V.group.trim().split(/\s+/).length>1?`'${V.group}'`:`${V.group}`))} `}${Y(U,R(U,"summary"))}`}\n ${Y(U,O(U,V.name))}${X.filter((_)=>_!==V).map((_)=>{let H=_.stats.latency.avg/C(V.stats.latency.avg),J=Z6(_.stats.latency.avg,_.stats.latency.sd,V.stats.latency.avg,V.stats.latency.sd)/C(Math.sqrt(V.stats.samples+_.stats.samples)),Z=P[(V.stats.samples+_.stats.samples-1||1).toString()]||P.infinity,L=J*Z/C(H)*100;return`\n ${(1>H?G:D)(U,1>H?U6(1/C(H)):U6(H))} \xB1 ${m(U,d(L))} times ${1>H?"slower":"faster"} than ${Y(U,O(U,_.name))}`}).join("")}`}var x=null,k=new Map,w=[];function T$(X,U=void 0){if(X!=null&&typeof X!=="string"&&!A(X)&&!Q(X))throw new TypeError(`expected string, object or function, got ${X.constructor.name}`);if(Q(X))U=X;if(!Q(U))throw new TypeError(`expected function, got ${U.constructor.name}`);if(N(U))throw new TypeError(`expected synchronous function, got asynchronous function ${U.constructor.name}`);if(A(X)){if(X.name!=null&&typeof X.name!=="string")throw new TypeError(`expected string as 'name' option, got ${X.name.constructor.name}`);if(X.summary!=null&&typeof X.summary!=="boolean")throw new TypeError(`expected boolean as 'summary' option, got ${X.summary.constructor.name}`);if(X.samples!=null&&typeof X.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${X.samples.constructor.name}`);if(X.time!=null&&typeof X.time!=="number")throw new TypeError(`expected number as 'time' option, got ${X.time.constructor.name}`);if(X.warmup!=null&&typeof X.warmup!=="number"&&typeof X.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${X.warmup.constructor.name}`);if(X.now!=null&&Function!==X.now.constructor)throw new TypeError(`expected function as 'now' option, got ${X.now.constructor.name}`);if(X.before!=null&&!Q(X.before))throw new TypeError(`expected function as 'before' option, got ${X.before.constructor.name}`);if(X.after!=null&&!Q(X.after))throw new TypeError(`expected function as 'after' option, got ${X.after.constructor.name}`)}if(x=(typeof X==="string"?X.trim():X.name?.trim())||`${f}${k.size+1}`,!k.has(x))k.set(x,{summary:X.summary??!0,samples:X.samples??j,time:X.time??v,warmup:X.warmup??!0,now:X.now??B,before:X.before??K,after:X.after??K});U(),x=null}function N$(X,U=void 0,V={}){if(Q(X))U=X,X=U.name;r(U,V),X=X.trim(),w.push({before:V.before??K,beforeEach:V.beforeEach??K,fn:U,afterEach:V.afterEach??K,after:V.after??K,name:X,now:V.now??B,group:x,time:V.time??v,samples:V.samples??j,warmup:V.warmup??!0,baseline:!1,async:g(U)})}function O$(X,U=void 0,V={}){if(Q(X))U=X,X=U.name;r(U,V),X=X.trim(),w.push({before:V.before??K,beforeEach:V.beforeEach??K,fn:U,afterEach:V.afterEach??K,after:V.after??K,name:X,now:V.now??B,group:x,time:V.time??v,samples:V.samples??j,warmup:V.warmup??!0,baseline:!0,async:g(U)})}function z$(){k.clear(),w.length=0}var j6=async(X,U,V={},_={})=>{let H=!1;for(let E of X){H=!0,X6(E,_),X6(E,V);try{if(w6(),E.stats=await q6(E.fn,{async:E.async,samples:E.samples,time:E.time,warmup:E.warmup,now:E.now,before:E.before,after:E.after,beforeEach:E.beforeEach,afterEach:E.afterEach}),!V.json)U(I6(E.name,E.stats,V))}catch(J){if(E.error=J,!V.json)U(V6(E.name,E.error,V))}}if(X=X.filter((E)=>E.error==null),!V.json&&e(X,V))U(""),U(e(X,V));if((Object.keys(_).length===0||_.summary===!0)&&!V.json&&X.length>1)U(""),U(J6(X,V));return H};async function w$(X={}){if(!A(X))throw new TypeError(`expected object, got ${X.constructor.name}`);if(X.samples!=null&&typeof X.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${X.samples.constructor.name}`);if(X.time!=null&&typeof X.time!=="number")throw new TypeError(`expected number as 'time' option, got ${X.time.constructor.name}`);if(X.warmup!=null&&typeof X.warmup!=="number"&&typeof X.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${X.warmup.constructor.name}`);if(X.json!=null&&typeof X.json!=="number"&&typeof X.json!=="boolean")throw new TypeError(`expected number or boolean as 'json' option, got ${X.json.constructor.name}`);if(X.reporter!=null&&!Q(X.reporter))throw new TypeError(`expected function as 'reporter' option, got ${X.reporter.constructor.name}`);if(X.file!=null&&typeof X.file!=="string")throw new TypeError(`expected string as 'file' option, got ${X.file.constructor.name}`);if(typeof X.file==="string"&&X.file.trim().length===0)throw new TypeError("expected non-empty string as 'file' option");if(X.now!=null&&!Q(X.now))throw new TypeError(`expected function as 'now' option, got ${X.now.constructor.name}`);X.silent=X.silent??!1,X.units=X.units??!1,X.colors=X.colors??O6,X.size=a(w.map((E)=>E.name));let U=X.silent===!0?K:D6,V={benchmarks:w,cpu:`${N6}`,runtime:`${W} ${G6} (${T6})`};if(!X.json&&w.length>0)U(E6(V,X)),U(t(X));let _=await j6(w.filter((E)=>E.group==null),U,X);for(let[E,J]of k){if(!X.json){if(_)U("");U(H6(E,X))}N(J.before)?await J.before.call(this):J.before.call(this),_=await j6(w.filter((Z)=>Z.group===E),U,X,J),N(J.after)?await J.after.call(this):J.after.call(this)}if(V=Q(X.reporter)?X.reporter(V):V,!X.json&&X.units)U(_6(X));if(X.json||X.file){let E=JSON.stringify(V,void 0,typeof X.json!=="number"?0:X.json);if(X.json)U(E);if(X.file)z6(X.file,E)}let H=JSON.parse(JSON.stringify(V));return z$(),H}var v6=(X)=>{return X.benchmarks.filter((U)=>U.error==null).map(({name:U,stats:V})=>{return{[U]:{latency:{value:V?.latency?.avg,lower_value:V?.latency?.avg-V?.latency?.sd,upper_value:V?.latency?.avg+V?.latency?.sd},throughput:{value:V?.throughput?.avg,lower_value:V?.throughput?.avg-V?.throughput?.sd,upper_value:V?.throughput?.avg+V?.throughput?.sd}}}}).reduce((U,V)=>Object.assign(U,V),{})};export{w$ as run,T$ as group,v6 as bmf,N$ as bench,O$ as baseline}; | ||
//# debugId=0A0926AE2FB0456C64756E2164756E21 | ||
//# debugId=982089266F68CA4064756E2164756E21 |
@@ -1,2 +0,2 @@ | ||
var b6=Object.create;var{getPrototypeOf:u6,defineProperty:y,getOwnPropertyNames:C6,getOwnPropertyDescriptor:i6}=Object,E6=Object.prototype.hasOwnProperty;var M=(H,J,K)=>{K=H!=null?b6(u6(H)):{};let Q=J||!H||!H.__esModule?y(K,"default",{value:H,enumerable:!0}):K;for(let Y of C6(H))if(!E6.call(Q,Y))y(Q,Y,{get:()=>H[Y],enumerable:!0});return Q},V6=new WeakMap,l6=(H)=>{var J=V6.get(H),K;if(J)return J;if(J=y({},"__esModule",{value:!0}),H&&typeof H==="object"||typeof H==="function")C6(H).map((Q)=>!E6.call(J,Q)&&y(J,Q,{get:()=>H[Q],enumerable:!(K=i6(H,Q))||K.enumerable}));return V6.set(H,J),J};var c6=(H,J)=>{for(var K in J)y(H,K,{get:J[K],enumerable:!0,configurable:!0,set:(Q)=>J[K]=()=>Q})};var s6={};c6(s6,{run:()=>y6,group:()=>f6,bmf:()=>W6,bench:()=>S6,baseline:()=>g6});module.exports=l6(s6);var k={bun:"bun",deno:"deno",node:"node",hermes:"hermes",workerd:"workerd",browser:"browser"},W=()=>{},d="$tatami-ng_group",D=Object.freeze({1:12.706204736432102,2:4.3026527299112765,3:3.182446305284264,4:2.7764451051977996,5:2.57058183661474,6:2.446911848791681,7:2.3646242510102997,8:2.306004135033371,9:2.262157162740992,10:2.2281388519649385,11:2.200985160082949,12:2.178812829663418,13:2.160368656461013,14:2.1447866879169277,15:2.131449545559323,16:2.1199052992210112,17:2.109815577833181,18:2.10092204024096,19:2.0930240544082634,20:2.085963447265837,21:2.0796138447276626,22:2.073873067904015,23:2.068657610419041,24:2.063898561628021,25:2.0595385527532946,26:2.0555294386428713,27:2.0518305164802837,28:2.048407141795244,29:2.0452296421327034,30:2.042272456301238,31:2.0395134463964077,32:2.0369333434601016,33:2.0345152974493383,34:2.0322445093177186,35:2.030107928250343,36:2.0280940009804507,37:2.0261924630291097,38:2.0243941645751367,39:2.0226909117347285,40:2.021075382995338,41:2.019540963982894,42:2.0180816970958815,43:2.0166921941428138,44:2.0153675699129416,45:2.0141033848332928,46:2.012895595294589,47:2.011740510475755,48:2.010634754696446,49:2.0095752344892093,50:2.0085591097152062,51:2.0075837681558824,52:2.0066468031022118,53:2.00574599353695,54:2.0048792865665233,55:2.0040447818101814,56:2.003240717496698,57:2.002465458054599,58:2.0017174830120927,59:2.0009953770482105,60:2.000297821058262,61:1.9996235841149783,62:1.9989715162223116,63:1.998340541772196,64:1.9977296536259739,65:1.9971379077520126,66:1.9965644183594748,67:1.996008353475506,68:1.9954689309194023,69:1.994945414632814,70:1.9944371113297732,71:1.9939433674345044,72:1.9934635662785831,73:1.9929971255321668,74:1.9925434948468204,75:1.9921021536898658,76:1.9916726093523491,77:1.9912543951146042,78:1.9908470685550523,79:1.9904502099893606,80:1.9900634210283845,81:1.9896863232444832,82:1.989318556936819,83:1.9889597799871794,84:1.9886096667986737,85:1.988267907310378,86:1.9879342060816723,87:1.9876082814405773,88:1.987289864690939,89:1.9869786993737681,90:1.9866745405784685,91:1.9863771543000652,92:1.9860863168388938,93:1.985801814239503,94:1.9855234417658303,95:1.9852510034099267,96:1.9849843114317696,97:1.9847231859278835,98:1.9844674544266925,99:1.9842169515086832,100:1.983971518449634,101:1.9837310028852815,102:1.9834952584959407,103:1.9832641447097104,104:1.9830375264229902,105:1.9828152737371547,106:1.9825972617102912,107:1.9823833701230178,108:1.9821734832574516,109:1.9819674896884745,110:1.9817652820865104,111:1.981566757031071,112:1.9813718148344008,113:1.9811803593745805,114:1.9809922979375068,115:1.9808075410672004,116:1.980626002423938,117:1.9804475986497296,118:1.9802722492407063,119:1.9800998764260065,120:1.979930405052777,121:1.9797637624769306,122:1.9795998784593314,123:1.97943868506709,124:1.979280116579683,125:1.9791241093996175,126:1.9789706019673938,127:1.978819534680521,128:1.9786708498163625,129:1.9785244914586055,130:1.9783804054271532,131:1.9782385392112587,132:1.9780988419057237,133:1.977961264150002,134:1.9778257580700531,135:1.9776922772228045,136:1.9775607765430836,137:1.977431212292894,138:1.9773035420129166,139:1.9771777244761224,140:1.9770537196433886,141:1.9769314886210223,142:1.97681099362009,143:1.9766921979174685,144:1.9765750658185368,145:1.9764595626214163,146:1.9763456545827007,147:1.9762333088845883,148:1.9761224936033637,149:1.9760131776791554,150:1.9759053308869141,151:1.9757989238085507,152:1.975693927806187,153:1.9755903149964589,154:1.9754880582258323,155:1.9753871310468787,156:1.9752875076954728,157:1.9751891630688665,158:1.9750920727046015,159:1.9749962127602256,160:1.9749015599937723,161:1.9748080917449764,162:1.9747157859171882,163:1.9746246209599583,164:1.9745345758522659,165:1.9744456300863593,166:1.9743577636521858,167:1.9742709570223849,168:1.974185191137821,169:1.9741004473936339,170:1.9740167076257829,171:1.9739339540980692,172:1.9738521694896138,173:1.9737713368827694,174:1.9736914397514562,175:1.9736124619498976,176:1.9735343877017435,177:1.9734572015895646,178:1.9733808885447033,179:1.9733054338374667,180:1.973230823067649,181:1.9731570421553692,182:1.9730840773322162,183:1.9730119151326795,184:1.9729405423858692,185:1.9728699462074992,186:1.9728001139921352,187:1.9727310334056907,188:1.9726626923781656,189:1.9725950790966158,190:1.9725281819983451,191:1.972461989764315,192:1.9723964913127596,193:1.9723316757930012,194:1.9722675325794565,195:1.972204051265833,196:1.9721412216594971,197:1.9720790337760221,198:1.972017477833896,199:1.9719565442493954,200:1.9718962236316093,201:1.9718365067776158,202:1.971777384667801,203:1.971718848461318,204:1.9716608894916787,205:1.971603499262479,206:1.9715466694432433,207:1.9714903918653972,208:1.9714346585183509,209:1.9713794615456992,210:1.9713247932415296,211:1.9712706460468354,212:1.9712170125460335,213:1.9711638854635767,214:1.971111257660664,215:1.9710591221320446,216:1.9710074720029072,217:1.97095630052586,218:1.9709056010779908,219:1.9708553671580111,220:1.9708055923834753,221:1.970756270488079,222:1.9707073953190282,223:1.9706589608344816,224:1.9706109611010594,225:1.9705633902914228,226:1.9705162426819125,227:1.9704695126502556,228:1.9704231946733297,229:1.9703772833249869,230:1.9703317732739336,231:1.9702866592816697,232:1.9702419362004757,233:1.9701975989714555,234:1.9701536426226303,235:1.9701100622670775,236:1.9700668531011214,237:1.9700240104025675,238:1.9699815295289818,239:1.969939405916016,240:1.9698976350757686,241:1.9698562125951948,242:1.9698151341345516,243:1.9697743954258797,244:1.9697339922715287,245:1.9696939205427133,246:1.9696541761781068,247:1.9696147551824699,248:1.9695756536253115,249:1.9695368676395828,250:1.9694983934204007,251:1.9694602272238055,252:1.9694223653655467,253:1.969384804219895,254:1.9693475402184863,255:1.9693105698491933,256:1.9692738896550193,257:1.9692374962330224,258:1.9692013862332616,259:1.9691655563577715,260:1.9691300033595551,261:1.9690947240416052,262:1.9690597152559448,263:1.9690249739026924,264:1.9689904969291443,265:1.968956281328883,266:1.9689223241409022,267:1.9688886224487527,268:1.9688551733797075,269:1.968821974103945,270:1.9687890218337525,271:1.968756313822743,272:1.968723847365097,273:1.9686916197948103,274:1.9686596284849691,275:1.9686278708470335,276:1.9685963443301415,277:1.968565046420423,278:1.9685339746403347,279:1.9685031265480044,280:1.9684724997365923,281:1.968442091833664,282:1.968411900500579,283:1.9683819234318907,284:1.9683521583547587,285:1.9683226030283762,286:1.9682932552434063,287:1.968264112821431,288:1.9682351736144144,289:1.9682064355041722,290:1.968177896401857,291:1.968149554247451,292:1.9681214070092705,293:1.9680934526834821,294:1.9680656892936232,295:1.968038114890141,296:1.9680107275499321,297:1.9679835253758984,298:1.967956506496507,299:1.9679296690653623,300:1.9679030112607847,301:1.9678765312853979,302:1.967850227365727,303:1.9678240977517998,304:1.967798140716761,305:1.9677723545564905,306:1.967746737589231,307:1.9677212881552217,308:1.967696004616341,309:1.967670885355754,310:1.9676459287775685,311:1.9676211333064957,312:1.9675964973875213,313:1.967572019485578,314:1.967547698085227,315:1.9675235316903468,316:1.9674995188238256,317:1.9674756580272583,318:1.9674519478606556,319:1.96742838690215,320:1.9674049737477135,321:1.9673817070108799,322:1.9673585853224684,323:1.9673356073303163,324:1.9673127716990173,325:1.9672900771096589,326:1.9672675222595717,327:1.9672451058620788,328:1.9672228266462515,329:1.9672006833566689,330:1.9671786747531816,331:1.9671567996106818,332:1.967135056718874,333:1.9671134448820529,334:1.9670919629188843,335:1.9670706096621893,336:1.967049383958733,337:1.9670282846690177,338:1.9670073106670771,339:1.9669864608402783,340:1.966965734089124,341:1.9669451293270586,342:1.9669246454802793,343:1.9669042814875488,344:1.9668840363000124,345:1.966863908881019,346:1.9668438982059417,347:1.966824003262006,348:1.9668042230481186,349:1.9667845565746986,350:1.9667650028635129,351:1.9667455609475144,352:1.9667262298706825,353:1.966707008687866,354:1.9666878964646288,355:1.9666688922770996,356:1.9666499952118222,357:1.9666312043656085,358:1.9666125188453965,359:1.9665939377681074,360:1.9665754602605063,361:1.9665570854590666,362:1.9665388125098342,363:1.966520640568296,364:1.9665025687992495,365:1.966484596376675,366:1.9664667224836099,367:1.9664489463120245,368:1.9664312670626998,369:1.9664136839451096,370:1.9663961961773,371:1.966378802985776,372:1.9663615036053859,373:1.9663442972792093,374:1.9663271832584475,375:1.9663101608023135,376:1.966293229177927,377:1.9662763876602067,378:1.96625963553177,379:1.9662429720828285,380:1.9662263966110878,381:1.9662099084216513,382:1.9661935068269203,383:1.9661771911465,384:1.9661609607071053,385:1.9661448148424667,386:1.9661287528932416,387:1.9661127742069229,388:1.9660968781377508,389:1.966081064046626,390:1.966065331301024,391:1.966049679274911,392:1.9660341073486605,393:1.9660186149089722,394:1.9660032013487905,395:1.9659878660672256,396:1.9659726084694753,397:1.9659574279667498,398:1.965942323976193,399:1.9659272959208094,400:1.9659123432293915,401:1.9658974653364458,402:1.9658826616821223,403:1.965867931712145,404:1.9658532748777406,405:1.9658386906355727,406:1.9658241784476738,407:1.965809737781378,408:1.9657953681092573,409:1.9657810689090576,410:1.9657668396636336,411:1.965752679860889,412:1.9657385889937122,413:1.9657245665599175,414:1.9657106120621863,415:1.9656967250080057,416:1.9656829049096134,417:1.9656691512839384,418:1.965655463652545,419:1.9656418415415793,420:1.9656282844817121,421:1.9656147920080864,422:1.9656013636602634,423:1.9655879989821707,424:1.9655746975220507,425:1.9655614588324102,426:1.965548282469968,427:1.9655351679956077,428:1.9655221149743287,429:1.9655091229751978,430:1.9654961915712998,431:1.9654833203396942,432:1.9654705088613673,433:1.9654577567211857,434:1.965445063507854,435:1.965432428813868,436:1.9654198522354724,437:1.9654073333726187,438:1.9653948718289207,439:1.9653824672116142,440:1.9653701191315152,441:1.9653578272029781,442:1.9653455910438589,443:1.9653334102754718,444:1.9653212845225516,445:1.9653092134132164,446:1.9652971965789277,447:1.9652852336544535,448:1.9652733242778317,449:1.9652614680903338,450:1.9652496647364275,451:1.9652379138637432,452:1.9652262151230366,453:1.9652145681681563,454:1.9652029726560083,455:1.9651914282465226,456:1.9651799346026202,457:1.9651684913901803,458:1.9651570982780076,459:1.9651457549378,460:1.9651344610441186,461:1.9651232162743548,462:1.9651120203087005,463:1.9651008728301178,464:1.9650897735243085,465:1.9650787220796855,466:1.9650677181873428,467:1.965056761541027,468:1.965045851837109,469:1.965034988774555,470:1.965024172054902,471:1.9650134013822251,472:1.9650026764631154,473:1.9649919970066518,474:1.9649813627243728,475:1.964970773330254,476:1.9649602285406784,477:1.9649497280744153,478:1.9649392716525922,479:1.964928858998672,480:1.9649184898384262,481:1.9649081638999137,482:1.9648978809134563,483:1.9648876406116125,484:1.9648774427291587,485:1.9648672870030628,486:1.9648571731724636,487:1.9648471009786466,488:1.9648370701650248,489:1.9648270804771135,490:1.9648171316625118,491:1.964807223470879,492:1.9647973556539153,493:1.9647875279653397,494:1.9647777401608706,495:1.9647679919982053,496:1.9647582832369994,497:1.9647486136388483,498:1.9647389829672652,499:1.9647293909876653,500:1.9647198374673442,501:1.9647103221754598,502:1.964700844883014,503:1.9646914053628335,504:1.9646820033895525,505:1.964672638739595,506:1.9646633111911553,507:1.9646540205241838,508:1.9646447665203655,509:1.964635548963106,510:1.9646263676375137,511:1.9646172223303833,512:1.9646081128301776,513:1.9645990389270147,514:1.9645900004126484,515:1.9645809970804544,516:1.9645720287254127,517:1.9645630951440949,518:1.964554196134645,519:1.9645453314967691,520:1.9645365010317148,521:1.9645277045422602,522:1.9645189418326983,523:1.964510212708822,524:1.964501516977911,525:1.964492854448715,526:1.9644842249314425,527:1.9644756282377454,528:1.9644670641807058,529:1.964458532574823,530:1.9644500332359982,531:1.9644415659815229,532:1.9644331306300662,533:1.9644247270016604,534:1.964416354917689,535:1.9644080142008735,536:1.9643997046752626,537:1.9643914261662165,538:1.9643831785003991,539:1.9643749615057613,540:1.9643667750115323,541:1.964358618848207,542:1.9643504928475335,543:1.964342396842502,544:1.9643343306673333,545:1.9643262941574684,546:1.9643182871495555,547:1.9643103094814403,548:1.964302360992155,549:1.9642944415219068,550:1.9642865509120675,551:1.9642786890051633,552:1.964270855644863,553:1.9642630506759702,554:1.9642552739444101,555:1.9642475252972216,556:1.9642398045825453,557:1.9642321116496164,558:1.9642244463487513,559:1.9642168085313412,560:1.9642091980498402,561:1.9642016147577568,562:1.964194058509645,563:1.9641865291610932,564:1.9641790265687171,565:1.964171550590149,566:1.9641641010840303,567:1.9641566779100006,568:1.9641492809286911,569:1.964141910001714,570:1.964134564991655,571:1.9641272457620647,572:1.9641199521774493,573:1.964112684103263,574:1.9641054414058998,575:1.9640982239526847,576:1.964091031611867,577:1.9640838642526093,578:1.964076721744983,579:1.9640696039599586,580:1.9640625107693983,581:1.9640554420460483,582:1.9640483976635308,583:1.9640413774963374,584:1.964034381419821,585:1.9640274093101877,586:1.9640204610444916,587:1.9640135365006257,588:1.9640066355573154,589:1.9639997580941106,590:1.963992903991381,591:1.9639860731303063,592:1.9639792653928712,593:1.9639724806618581,594:1.9639657188208401,595:1.9639589797541745,596:1.963952263346997,597:1.963945569485213,598:1.963938898055494,599:1.9639322489452695,600:1.96392562204272,601:1.9639190172367733,602:1.963912434417095,603:1.963905873474085,604:1.9638993342988706,605:1.9638928167832999,606:1.9638863208199362,607:1.9638798463020526,608:1.9638733931236256,609:1.9638669611793291,610:1.9638605503645292,611:1.9638541605752786,612:1.9638477917083106,613:1.963841443661033,614:1.9638351163315244,615:1.9638288096185263,616:1.9638225234214404,617:1.9638162576403206,618:1.96381001217587,619:1.9638037869294331,620:1.9637975818029945,621:1.9637913966991682,622:1.9637852315211985,623:1.9637790861729507,624:1.963772960558908,625:1.9637668545841658,626:1.9637607681544267,627:1.963754701175997,628:1.96374865355578,629:1.9637426252012729,630:1.9637366160205605,631:1.9637306259223126,632:1.9637246548157765,633:1.9637187026107747,634:1.9637127692177012,635:1.9637068545475131,636:1.9637009585117295,637:1.9636950810224274,638:1.9636892219922344,639:1.9636833813343266,640:1.963677558962424,641:1.9636717547907854,642:1.9636659687342057,643:1.96366020070801,644:1.9636544506280507,645:1.9636487184107032,646:1.9636430039728607,647:1.963637307231933,648:1.9636316281058388,649:1.9636259665130043,650:1.9636203223723585,651:1.9636146956033296,652:1.9636090861258415,653:1.9636034938603082,654:1.963597918727633,655:1.9635923606492014,656:1.9635868195468806,657:1.9635812953430134,658:1.9635757879604159,659:1.9635702973223736,660:1.9635648233526377,661:1.9635593659754214,662:1.9635539251153973,663:1.9635485006976923,664:1.9635430926478856,665:1.9635377008920054,666:1.9635323253565247,667:1.9635269659683576,668:1.9635216226548569,669:1.963516295343811,670:1.9635109839634397,671:1.9635056884423918,672:1.9635004087097414,673:1.9634951446949849,674:1.9634898963280374,675:1.9634846635392311,676:1.9634794462593101,677:1.9634742444194289,678:1.9634690579511493,679:1.9634638867864362,680:1.9634587308576554,681:1.9634535900975714,682:1.9634484644393435,683:1.9634433538165224,684:1.963438258163049,685:1.96343317741325,686:1.963428111501836,687:1.9634230603638985,688:1.9634180239349066,689:1.9634130021507055,690:1.9634079949475116,691:1.9634030022619122,692:1.9633980240308617,693:1.9633930601916791,694:1.963388110682045,695:1.9633831754399986,696:1.963378254403937,697:1.9633733475126116,698:1.9633684547051236,699:1.9633635759209254,700:1.9633587110998145,701:1.9633538601819331,702:1.9633490231077657,703:1.9633441998181338,704:1.9633393902541987,705:1.9633345943574538,706:1.9633298120697256,707:1.96332504333317,708:1.9633202880902698,709:1.9633155462838343,710:1.963310817856994,711:1.9633061027532,712:1.9633014009162226,713:1.9632967122901475,714:1.9632920368193745,715:1.963287374448614,716:1.9632827251228866,717:1.9632780887875207,718:1.9632734653881478,719:1.963268854870705,720:1.963264257181428,721:1.9632596722668525,722:1.9632551000738105,723:1.9632505405494287,724:1.963245993641126,725:1.963241459296613,726:1.9632369374638876,727:1.963232428091235,728:1.9632279311272245,729:1.963223446520709,730:1.9632189742208208,731:1.963214514176972,732:1.9632100663388516,733:1.9632056306564227,734:1.9632012070799227,735:1.9631967955598593,736:1.9631923960470097,737:1.9631880084924196,738:1.9631836328473993,739:1.9631792690635235,740:1.9631749170926298,741:1.9631705768868148,742:1.9631662483984351,743:1.9631619315801037,744:1.9631576263846882,745:1.9631533327653103,746:1.9631490506753435,747:1.963144780068411,748:1.963140520898385,749:1.9631362731193833,750:1.9631320366857699,751:1.9631278115521522,752:1.9631235976733785,753:1.9631193950045382,754:1.963115203500959,755:1.963111023118206,756:1.9631068538120793,757:1.963102695538613,758:1.963098548254074,759:1.963094411914959,760:1.963090286477995,761:1.9630861719001376,762:1.9630820681385661,763:1.963077975150687,764:1.963073892894129,765:1.9630698213267435,766:1.9630657604066017,767:1.9630617100919938,768:1.9630576703414275,769:1.9630536411136277,770:1.9630496223675324,771:1.963045614062295,772:1.963041616157278,773:1.9630376286120574,774:1.9630336513864166,775:1.9630296844403485,776:1.9630257277340504,777:1.9630217812279265,778:1.9630178448825841,779:1.963013918658834,780:1.9630100025176869,781:1.9630060964203544,782:1.9630022003282468,783:1.9629983142029712,784:1.9629944380063318,785:1.962990571700327,786:1.9629867152471494,787:1.9629828686091835,788:1.9629790317490055,789:1.962975204629381,790:1.9629713872132657,791:1.9629675794638015,792:1.962963781344317,793:1.9629599928183272,794:1.9629562138495296,795:1.9629524444018054,796:1.9629486844392179,797:1.9629449339260105,798:1.9629411928266058,799:1.962937461105606,800:1.9629337387277892,801:1.9629300256581104,802:1.9629263218616995,803:1.9629226273038602,804:1.9629189419500692,805:1.9629152657659752,806:1.9629115987173975,807:1.9629079407703247,808:1.9629042918909145,809:1.9629006520454917,810:1.9628970212005485,811:1.9628933993227415,812:1.9628897863788926,813:1.9628861823359869,814:1.962882587161172,815:1.9628790008217571,816:1.9628754232852115,817:1.9628718545191641,818:1.9628682944914029,819:1.9628647431698727,820:1.9628612005226753,821:1.9628576665180681,822:1.9628541411244633,823:1.9628506243104265,824:1.962847116044676,825:1.962843616296083,826:1.9628401250336684,827:1.9628366422266041,828:1.9628331678442101,829:1.962829701855956,830:1.9628262442314577,831:1.9628227949404782,832:1.9628193539529253,833:1.962815921238852,834:1.9628124967684557,835:1.962809080512076,836:1.9628056724401943,837:1.962802272523434,838:1.9627988807325591,839:1.9627954970384724,840:1.9627921214122162,841:1.96278875382497,842:1.9627853942480507,843:1.9627820426529121,844:1.9627786990111424,845:1.9627753632944653,846:1.962772035474738,847:1.962768715523951,848:1.962765403414227,849:1.9627620991178198,850:1.9627588026071152,851:1.9627555138546275,852:1.9627522328330012,853:1.962748959515009,854:1.962745693873551,855:1.9627424358816548,856:1.9627391855124732,857:1.9627359427392859,858:1.9627327075354966,859:1.9627294798746329,860:1.9627262597303463,861:1.9627230470764099,862:1.962719841886719,863:1.962716644135291,864:1.9627134537962623,865:1.9627102708438906,866:1.9627070952525512,867:1.9627039269967388,868:1.9627007660510651,869:1.9626976123902597,870:1.9626944659891674,871:1.9626913268227497,872:1.9626881948660826,873:1.9626850700943568,874:1.9626819524828756,875:1.9626788420070573,876:1.962675738642431,877:1.9626726423646375,878:1.9626695531494305,879:1.962666470972672,880:1.9626633958103352,881:1.9626603276385024,882:1.962657266433364,883:1.962654212171219,884:1.962651164828473,885:1.962648124381639,886:1.962645090807336,887:1.9626420640822897,888:1.9626390441833281,889:1.9626360310873863,890:1.9626330247715016,891:1.962630025212815,892:1.962627032388571,893:1.9626240462761142,894:1.9626210668528927,895:1.9626180940964544,896:1.9626151279844477,897:1.9626121684946207,898:1.9626092156048216,899:1.9626062692929966,900:1.9626033295371899,901:1.9626003963155434,902:1.9625974696062964,903:1.9625945493877848,904:1.9625916356384394,905:1.9625887283367882,906:1.9625858274614525,907:1.962582932991149,908:1.9625800449046875,909:1.9625771631809725,910:1.962574287799,911:1.9625714187378587,912:1.9625685559767294,913:1.9625656994948841,914:1.9625628492716856,915:1.9625600052865868,916:1.9625571675191313,917:1.9625543359489512,918:1.9625515105557676,919:1.9625486913193901,920:1.9625458782197165,921:1.9625430712367309,922:1.962540270350506,923:1.9625374755412,924:1.962534686789057,925:1.962531904074407,926:1.9625291273776646,927:1.96252635667933,928:1.9625235919599864,929:1.962520833200302,930:1.9625180803810265,931:1.962515333482994,932:1.9625125924871198,933:1.9625098573744026,934:1.9625071281259212,935:1.962504404722836,936:1.9625016871463874,937:1.9624989753778976,938:1.9624962693987664,939:1.9624935691904748,940:1.9624908747345817,941:1.9624881860127243,942:1.9624855030066184,943:1.9624828256980582,944:1.962480154068913,945:1.962477488101131,946:1.962474827776736,947:1.9624721730778274,948:1.962469523986581,949:1.9624668804852476,950:1.9624642425561525,951:1.962461610181696,952:1.9624589833443515,953:1.9624563620266673,954:1.9624537462112641,955:1.9624511358808356,956:1.9624485310181483,957:1.9624459316060407,958:1.9624433376274224,959:1.9624407490652758,960:1.9624381659026522,961:1.9624355881226763,962:1.962433015708541,963:1.9624304486435091,964:1.9624278869109137,965:1.9624253304941575,966:1.9624227793767104,967:1.9624202335421121,968:1.9624176929739703,969:1.9624151576559599,970:1.962412627571823,971:1.9624101027053702,972:1.9624075830404768,973:1.9624050685610865,974:1.962402559251207,975:1.9624000550949139,976:1.9623975560763454,977:1.962395062179708,978:1.9623925733892695,979:1.9623900896893647,980:1.9623876110643914,981:1.9623851374988106,982:1.9623826689771475,983:1.96238020548399,984:1.9623777470039887,985:1.962375293521857,986:1.9623728450223694,987:1.9623704014903631,988:1.9623679629107367,989:1.9623655292684494,990:1.9623631005485223,991:1.9623606767360353,992:1.9623582578161303,993:1.9623558437740083,994:1.9623534345949294,995:1.9623510302642144,996:1.9623486307672415,997:1.9623462360894495,998:1.962343846216334,999:1.962341461133449,1000:1.9623390808264078,1001:1.9623367052808791,1002:1.9623343344825908,1003:1.962331968417326,1004:1.9623296070709262,1005:1.9623272504292881,1006:1.9623248984783654,1007:1.9623225512041673,1008:1.9623202085927578,1009:1.9623178706302578,1010:1.9623155373028418,1011:1.9623132085967403,1012:1.962310884498237,1013:1.962308564993671,1014:1.962306250069434,1015:1.9623039397119733,1016:1.9623016339077874,1017:1.9622993326434304,1018:1.962297035905507,1019:1.9622947436806755,1020:1.9622924559556474,1021:1.962290172717185,1022:1.9622878939521027,1023:1.9622856196472673,1024:1.962283349789597,infinity:1.96}),I6=128,A=128,v=1e9,T6=12,h=8;var z6=require("node:child_process"),N6=require("node:v8"),q6=require("node:vm");var m6=!!globalThis.Bun||!!globalThis.process?.versions?.bun,r6=!!globalThis.Deno,p6=globalThis.process?.release?.name==="node",a6=!!globalThis.navigator,T=(()=>{if(m6)return k.bun;if(r6)return k.deno;if(p6)return k.node;if(a6)return k.browser;return"unknown"})();var n6=(H)=>H!==null&&typeof H==="object"&&typeof H.then==="function",G=(H)=>{return typeof H==="function"},N=(H)=>{return(async()=>{}).constructor===H?.constructor},b=(H)=>{if(H==null)return!1;if(N(H))return!0;try{let J=H(),K=n6(J);if(K)try{J.then(()=>{})?.catch(()=>{})}catch{}return K}catch{return!1}},F=(H)=>{return Object.prototype.toString.call(H).slice(8,-1)==="Object"};function s(H){if(H<1)return(H*1000).toFixed(2);if(H<1000)return H.toFixed(2);if(H/=1000,H<1000)return H.toFixed(2);if(H/=1000,H<1000)return H.toFixed(2);if(H/=1000,H<1000)return H.toFixed(2);if(H/=60,H<1000)return H.toFixed(2);return H/=60,H.toFixed(2)}var I=(H)=>{if(H==null)throw new TypeError(`Invalid dividend: ${H}`);if(typeof H!=="number")throw new TypeError(`expected number, got ${H.constructor.name}`);if(H===0||Number.isNaN(H))throw new RangeError(`Invalid dividend: ${H}`);return H};var $6=(H,J=f(H))=>{return H.reduce((K,Q)=>K+(Q-J)**2,0)/I(H.length-1)},O=(H,J)=>{if(!Array.isArray(H))throw new TypeError(`expected array, got ${H.constructor.name}`);if(H.length===0)throw new Error("expected non-empty array, got empty array");if(J<0||J>1)throw new Error("q must be between 0 and 1");if(J===0)return H[0];if(J===1)return H[H.length-1];let K=(H.length-1)*J,Q=Math.floor(K);if(H[Q+1]!=null)return H[Q]+(K-Q)*(H[Q+1]-H[Q]);return H[Q]},u=(H)=>O(H,0.5),f=(H)=>{if(!Array.isArray(H))throw new TypeError(`expected array, got ${H.constructor.name}`);if(H.length===0)throw new Error("expected non-empty array, got empty array");return H.reduce((J,K)=>J+K,0)/H.length},i=(H,J)=>{let K=J(H),Q=[];for(let Y of H)Q.push(Math.abs(Y-K));return J(Q)},L6=(H,J,K,Q)=>{return H/I(K)*Math.sqrt((J/I(H))**2+(Q/I(K))**2)};var S=(()=>{return{unknown:()=>{try{let H=performance.now.bind(performance);return H(),()=>1e6*H()}catch{return()=>1e6*Date.now()}},browser:()=>{try{return $.agent.monotonicNow(),()=>1e6*$.agent.monotonicNow()}catch{}try{return $262.agent.monotonicNow(),()=>1e6*$262.agent.monotonicNow()}catch{}return()=>1e6*performance.now()},node:()=>()=>Number(process.hrtime.bigint()),deno:()=>()=>1e6*performance.now(),bun:()=>Bun.nanoseconds}[T]()})();var R6=(()=>{return{unknown:()=>"",browser:()=>"",node:()=>globalThis.process.version,deno:()=>globalThis.Deno.version.deno,bun:()=>globalThis.process.versions.bun}[T]()})(),D6=(()=>{return{unknown:()=>"unknown",browser:()=>"unknown",node:()=>`${globalThis.process.arch}-${globalThis.process.platform}`,deno:()=>Deno.build.target,bun:()=>`${globalThis.process.arch}-${globalThis.process.platform}`}[T]()})(),O6=await(async()=>{return await{unknown:()=>"unknown",browser:()=>"unknown",node:async()=>(await import("node:os"))?.cpus?.()?.[0]?.model,deno:async()=>(await import("node:os"))?.cpus?.()?.[0]?.model,bun:async()=>(await import("node:os"))?.cpus?.()?.[0]?.model}[T]()})(),P6=(()=>{return{unknown:()=>globalThis.process?.env?.FORCE_COLOR!=null||!globalThis.process?.env?.NO_COLOR&&!globalThis.process?.env?.NODE_DISABLE_COLORS,browser:()=>!1,node:()=>globalThis.process.env.FORCE_COLOR!=null||!globalThis.process.env.NO_COLOR&&!globalThis.process.env.NODE_DISABLE_COLORS,deno:()=>!Deno.noColor,bun:()=>globalThis.process.env.FORCE_COLOR!=null||!globalThis.process.env.NO_COLOR&&!globalThis.process.env.NODE_DISABLE_COLORS}[T]()})(),w6=await(async()=>{return await{unknown:async()=>{try{return await import("node:fs"),(await import("node:fs")).writeFileSync}catch{return W}},browser:()=>W,node:async()=>(await import("node:fs")).writeFileSync,deno:()=>Deno.writeTextFileSync,bun:async()=>(await import("node:fs")).writeFileSync}[T]()})(),E$=(()=>{return{unknown:()=>W,browser:()=>W,node:()=>(H)=>z6.spawnSync(H.trim().split(/\s+/)[0],H.trim().split(/\s+/).slice(1)),deno:()=>(H)=>{new Deno.Command(H.trim().split(/\s+/)[0],{args:H.trim().split(/\s+/).slice(1)}).outputSync()},bun:()=>(H)=>Bun.spawnSync(H.trim().split(/\s+/))}[T]()})(),M6=(()=>{return{unknown:()=>G(globalThis.gc)?()=>globalThis.gc():W,browser:()=>{try{return globalThis.$262.gc(),()=>globalThis.$262.gc()}catch{return W}},node:()=>()=>{N6.setFlagsFromString("--expose_gc"),q6.runInNewContext("gc")()},deno:()=>G(globalThis.gc)?()=>globalThis.gc():W,bun:()=>()=>Bun.gc(!0)}[T]()})(),r=(H,J={})=>{if(!G(H))throw new TypeError(`expected function, got ${H.constructor.name}`);if(!F(J))throw new TypeError(`expected object, got ${J.constructor.name}`);if(J.samples!=null&&typeof J.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${J.samples.constructor.name}`);if(J.time!=null&&typeof J.time!=="number")throw new TypeError(`expected number as 'time' option, got ${J.time.constructor.name}`);if(J.warmup!=null&&typeof J.warmup!=="number"&&typeof J.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${J.warmup.constructor.name}`);if(J.now!=null&&!G(J.now))throw new TypeError(`expected function as 'now' option, got ${J.now.constructor.name}`);if(J.before!=null&&!G(J.before))throw new TypeError(`expected function as 'before' option, got ${J.before.constructor.name}`);if(J.beforeEach!=null&&!G(J.beforeEach))throw new TypeError(`expected function as 'beforeEach' option, got ${J.beforeEach.constructor.name}`);if(J.after!=null&&!G(J.after))throw new TypeError(`expected function as 'after' option, got ${J.after.constructor.name}`);if(J.afterEach!=null&&!G(J.afterEach))throw new TypeError(`expected function as 'afterEach' option, got ${J.afterEach.constructor.name}`)},H6=(H,J)=>{H.now=J.now??H.now,H.samples=J.samples??H.samples,H.time=J.time??H.time,H.warmup=J.warmup??H.warmup};async function B6(H,J={}){if(r(H,J),J.async!=null&&typeof J.async!=="boolean")throw new TypeError(`expected boolean as 'async' option, got ${J.async.constructor.name}`);J.async=J.async??b(H),J.time=J.time??v,J.samples=J.samples??A,J.warmup=typeof J.warmup==="number"?J.warmup:J.warmup===!0?T6:0,J.now=J.now??S,J.before=J.before??W,J.beforeEach=J.beforeEach??W,J.after=J.after??W,J.afterEach=J.afterEach??W;let K=N(J.before),Q=N(J.beforeEach),Y=N(J.after),X=N(J.afterEach),U=async()=>{if(Q)await J.beforeEach.call(this);else J.beforeEach.call(this);let C;if(J.async){let q=J.now();await H.call(this),C=J.now()-q}else{let q=J.now();H.call(this),C=J.now()-q}if(X)await J.afterEach.call(this);else J.afterEach.call(this);return C},E=[],_=0;if(J.warmup){if(K)await J.before.call(this);else J.before.call(this);for(let C=0;C<J.warmup;C++){let q=await U();E.push(q),_+=q}if(Y)await J.after.call(this);else J.after.call(this)}if(E=[],_=0,K)await J.before.call(this);else J.before.call(this);while(_<J.time||J.samples>E.length){let C=await U();E.push(C),_+=C}if(Y)await J.after.call(this);else J.after.call(this);return t6(E)}var t6=(H)=>{if(!Array.isArray(H))throw new TypeError(`expected array, got ${H.constructor.name}`);if(H.length===0)throw new Error("expected non-empty array, got empty array");H.sort((x,o)=>x-o);let J=f(H),K=$6(H,J),Q=Math.sqrt(K),Y=Q/Math.sqrt(H.length),X=D[(H.length-1||1).toString()]||D.infinity,U=Y*X,E=U/I(J)*100,_=H.map((x)=>x!==0?1e9/x:1e9/J).sort((x,o)=>x-o),C=f(_),q=$6(_,C),G6=Math.sqrt(q),k6=G6/Math.sqrt(_.length),d6=D[(_.length-1||1).toString()]||D.infinity,_6=k6*d6,h6=_6/I(C)*100;return{samples:H.length,ss:H.length>=I6,latency:{min:H[0],max:H[H.length-1],p50:u(H),p75:O(H,0.75),p99:O(H,0.99),p995:O(H,0.995),avg:J,vr:K,sd:Q,moe:U,rmoe:E,aad:i(H,f),mad:i(H,u)},throughput:{min:_[0],max:_[H.length-1],p50:u(_),p75:O(_,0.75),p99:O(_,0.99),p995:O(_,0.995),avg:C,vr:q,sd:G6,moe:_6,rmoe:h6,aad:i(_,f),mad:i(_,u)}}};var e6=()=>{let H;if(typeof globalThis.console?.log==="function")H=globalThis.console.log;else if(typeof globalThis.print==="function")H=globalThis.print;else throw new Error("no logger function found");return H},j6=e6();function Z(H,J){let K=new RegExp(`\\x1b\\[${J}m`,"g"),Q=`\x1B[${H}m`,Y=`\x1B[${J}m`;return(X,U)=>{if(!X||U==null)return U;return U=U.toString(),`${Q}${U.includes(Y)?U.replace(K,Y+Q):U}${Y}`}}var L$=Z(0,0),V=Z(1,22),l=Z(2,22),x6=Z(3,23),z$=Z(4,24),N$=Z(7,27),q$=Z(8,28),R$=Z(9,29),D$=Z(30,39),L=Z(31,39),B=Z(32,39),P=Z(33,39),p=Z(34,39),A6=Z(35,39),R=Z(36,39),j=Z(37,39),v6=Z(90,39),O$=Z(90,39),P$=Z(91,39),w$=Z(92,39),M$=Z(93,39),B$=Z(94,39),j$=Z(95,39),x$=Z(96,39),A$=Z(97,39),v$=Z(40,49),F$=Z(41,49),f$=Z(42,49),S$=Z(43,49),g$=Z(44,49),y$=Z(45,49),k$=Z(46,49),d$=Z(47,49),h$=Z(100,49),b$=Z(101,49),u$=Z(102,49),i$=Z(103,49),l$=Z(104,49),c$=Z(105,49),m$=Z(106,49),r$=Z(107,49);function z(H){if(H<1)return`${(H*1000).toFixed(2)} ps`;if(H<1000)return`${H.toFixed(2)} ns`;if(H/=1000,H<1000)return`${H.toFixed(2)} \xB5s`;if(H/=1000,H<1000)return`${H.toFixed(2)} ms`;if(H/=1000,H<1000)return`${H.toFixed(2)} s`;if(H/=60,H<1000)return`${H.toFixed(2)} m`;return H/=60,`${H.toFixed(2)} h`}function a(H){return`${H.toFixed(0)}`}function c(H){return`${H.toFixed(2)} %`}function J6(H){return`${H.toFixed(2)}`}function n(H){let J=9;for(let K of H)if(J<K.length)J=K.length;return 2+J}function t({size:H,latency:J=!0,throughput:K=!0,latencyMinMax:Q=!0,latencyPercentiles:Y=!0}){return`${"-".repeat(H+20*J+20*K+24*Q)}${!Y?"":` ${"-".repeat(50)}`}`}function K6(H,J,{size:K,colors:Q=!0}){return`${H.padEnd(K," ")}${L(Q,"error")}: ${J.message}${J.stack?`\n${v6(Q,J.stack)}`:""}`}function Q6({colors:H=!0}={}){return l(H,j(H,` | ||
var f6=Object.create;var{getPrototypeOf:g6,defineProperty:F,getOwnPropertyNames:U6,getOwnPropertyDescriptor:y6}=Object,V6=Object.prototype.hasOwnProperty;var M=(H,J,K)=>{K=H!=null?f6(g6(H)):{};let Q=J||!H||!H.__esModule?F(K,"default",{value:H,enumerable:!0}):K;for(let Y of U6(H))if(!V6.call(Q,Y))F(Q,Y,{get:()=>H[Y],enumerable:!0});return Q},Z6=new WeakMap,k6=(H)=>{var J=Z6.get(H),K;if(J)return J;if(J=F({},"__esModule",{value:!0}),H&&typeof H==="object"||typeof H==="function")U6(H).map((Q)=>!V6.call(J,Q)&&F(J,Q,{get:()=>H[Q],enumerable:!(K=y6(H,Q))||K.enumerable}));return Z6.set(H,J),J};var d6=(H,J)=>{for(var K in J)F(H,K,{get:J[K],enumerable:!0,configurable:!0,set:(Q)=>J[K]=()=>Q})};var p6={};d6(p6,{run:()=>F6,group:()=>x6,bmf:()=>Y6,bench:()=>v6,baseline:()=>S6});module.exports=k6(p6);var f={bun:"bun",deno:"deno",node:"node",hermes:"hermes",workerd:"workerd",browser:"browser"},V=()=>{},g="$tatami-ng_group",B=Object.freeze({1:12.706204736432102,2:4.3026527299112765,3:3.182446305284264,4:2.7764451051977996,5:2.57058183661474,6:2.446911848791681,7:2.3646242510102997,8:2.306004135033371,9:2.262157162740992,10:2.2281388519649385,11:2.200985160082949,12:2.178812829663418,13:2.160368656461013,14:2.1447866879169277,15:2.131449545559323,16:2.1199052992210112,17:2.109815577833181,18:2.10092204024096,19:2.0930240544082634,20:2.085963447265837,21:2.0796138447276626,22:2.073873067904015,23:2.068657610419041,24:2.063898561628021,25:2.0595385527532946,26:2.0555294386428713,27:2.0518305164802837,28:2.048407141795244,29:2.0452296421327034,30:2.042272456301238,31:2.0395134463964077,32:2.0369333434601016,33:2.0345152974493383,34:2.0322445093177186,35:2.030107928250343,36:2.0280940009804507,37:2.0261924630291097,38:2.0243941645751367,39:2.0226909117347285,40:2.021075382995338,41:2.019540963982894,42:2.0180816970958815,43:2.0166921941428138,44:2.0153675699129416,45:2.0141033848332928,46:2.012895595294589,47:2.011740510475755,48:2.010634754696446,49:2.0095752344892093,50:2.0085591097152062,51:2.0075837681558824,52:2.0066468031022118,53:2.00574599353695,54:2.0048792865665233,55:2.0040447818101814,56:2.003240717496698,57:2.002465458054599,58:2.0017174830120927,59:2.0009953770482105,60:2.000297821058262,61:1.9996235841149783,62:1.9989715162223116,63:1.998340541772196,64:1.9977296536259739,65:1.9971379077520126,66:1.9965644183594748,67:1.996008353475506,68:1.9954689309194023,69:1.994945414632814,70:1.9944371113297732,71:1.9939433674345044,72:1.9934635662785831,73:1.9929971255321668,74:1.9925434948468204,75:1.9921021536898658,76:1.9916726093523491,77:1.9912543951146042,78:1.9908470685550523,79:1.9904502099893606,80:1.9900634210283845,81:1.9896863232444832,82:1.989318556936819,83:1.9889597799871794,84:1.9886096667986737,85:1.988267907310378,86:1.9879342060816723,87:1.9876082814405773,88:1.987289864690939,89:1.9869786993737681,90:1.9866745405784685,91:1.9863771543000652,92:1.9860863168388938,93:1.985801814239503,94:1.9855234417658303,95:1.9852510034099267,96:1.9849843114317696,97:1.9847231859278835,98:1.9844674544266925,99:1.9842169515086832,100:1.983971518449634,101:1.9837310028852815,102:1.9834952584959407,103:1.9832641447097104,104:1.9830375264229902,105:1.9828152737371547,106:1.9825972617102912,107:1.9823833701230178,108:1.9821734832574516,109:1.9819674896884745,110:1.9817652820865104,111:1.981566757031071,112:1.9813718148344008,113:1.9811803593745805,114:1.9809922979375068,115:1.9808075410672004,116:1.980626002423938,117:1.9804475986497296,118:1.9802722492407063,119:1.9800998764260065,120:1.979930405052777,121:1.9797637624769306,122:1.9795998784593314,123:1.97943868506709,124:1.979280116579683,125:1.9791241093996175,126:1.9789706019673938,127:1.978819534680521,128:1.9786708498163625,129:1.9785244914586055,130:1.9783804054271532,131:1.9782385392112587,132:1.9780988419057237,133:1.977961264150002,134:1.9778257580700531,135:1.9776922772228045,136:1.9775607765430836,137:1.977431212292894,138:1.9773035420129166,139:1.9771777244761224,140:1.9770537196433886,141:1.9769314886210223,142:1.97681099362009,143:1.9766921979174685,144:1.9765750658185368,145:1.9764595626214163,146:1.9763456545827007,147:1.9762333088845883,148:1.9761224936033637,149:1.9760131776791554,150:1.9759053308869141,151:1.9757989238085507,152:1.975693927806187,153:1.9755903149964589,154:1.9754880582258323,155:1.9753871310468787,156:1.9752875076954728,157:1.9751891630688665,158:1.9750920727046015,159:1.9749962127602256,160:1.9749015599937723,161:1.9748080917449764,162:1.9747157859171882,163:1.9746246209599583,164:1.9745345758522659,165:1.9744456300863593,166:1.9743577636521858,167:1.9742709570223849,168:1.974185191137821,169:1.9741004473936339,170:1.9740167076257829,171:1.9739339540980692,172:1.9738521694896138,173:1.9737713368827694,174:1.9736914397514562,175:1.9736124619498976,176:1.9735343877017435,177:1.9734572015895646,178:1.9733808885447033,179:1.9733054338374667,180:1.973230823067649,181:1.9731570421553692,182:1.9730840773322162,183:1.9730119151326795,184:1.9729405423858692,185:1.9728699462074992,186:1.9728001139921352,187:1.9727310334056907,188:1.9726626923781656,189:1.9725950790966158,190:1.9725281819983451,191:1.972461989764315,192:1.9723964913127596,193:1.9723316757930012,194:1.9722675325794565,195:1.972204051265833,196:1.9721412216594971,197:1.9720790337760221,198:1.972017477833896,199:1.9719565442493954,200:1.9718962236316093,201:1.9718365067776158,202:1.971777384667801,203:1.971718848461318,204:1.9716608894916787,205:1.971603499262479,206:1.9715466694432433,207:1.9714903918653972,208:1.9714346585183509,209:1.9713794615456992,210:1.9713247932415296,211:1.9712706460468354,212:1.9712170125460335,213:1.9711638854635767,214:1.971111257660664,215:1.9710591221320446,216:1.9710074720029072,217:1.97095630052586,218:1.9709056010779908,219:1.9708553671580111,220:1.9708055923834753,221:1.970756270488079,222:1.9707073953190282,223:1.9706589608344816,224:1.9706109611010594,225:1.9705633902914228,226:1.9705162426819125,227:1.9704695126502556,228:1.9704231946733297,229:1.9703772833249869,230:1.9703317732739336,231:1.9702866592816697,232:1.9702419362004757,233:1.9701975989714555,234:1.9701536426226303,235:1.9701100622670775,236:1.9700668531011214,237:1.9700240104025675,238:1.9699815295289818,239:1.969939405916016,240:1.9698976350757686,241:1.9698562125951948,242:1.9698151341345516,243:1.9697743954258797,244:1.9697339922715287,245:1.9696939205427133,246:1.9696541761781068,247:1.9696147551824699,248:1.9695756536253115,249:1.9695368676395828,250:1.9694983934204007,251:1.9694602272238055,252:1.9694223653655467,253:1.969384804219895,254:1.9693475402184863,255:1.9693105698491933,256:1.9692738896550193,257:1.9692374962330224,258:1.9692013862332616,259:1.9691655563577715,260:1.9691300033595551,261:1.9690947240416052,262:1.9690597152559448,263:1.9690249739026924,264:1.9689904969291443,265:1.968956281328883,266:1.9689223241409022,267:1.9688886224487527,268:1.9688551733797075,269:1.968821974103945,270:1.9687890218337525,271:1.968756313822743,272:1.968723847365097,273:1.9686916197948103,274:1.9686596284849691,275:1.9686278708470335,276:1.9685963443301415,277:1.968565046420423,278:1.9685339746403347,279:1.9685031265480044,280:1.9684724997365923,281:1.968442091833664,282:1.968411900500579,283:1.9683819234318907,284:1.9683521583547587,285:1.9683226030283762,286:1.9682932552434063,287:1.968264112821431,288:1.9682351736144144,289:1.9682064355041722,290:1.968177896401857,291:1.968149554247451,292:1.9681214070092705,293:1.9680934526834821,294:1.9680656892936232,295:1.968038114890141,296:1.9680107275499321,297:1.9679835253758984,298:1.967956506496507,299:1.9679296690653623,300:1.9679030112607847,301:1.9678765312853979,302:1.967850227365727,303:1.9678240977517998,304:1.967798140716761,305:1.9677723545564905,306:1.967746737589231,307:1.9677212881552217,308:1.967696004616341,309:1.967670885355754,310:1.9676459287775685,311:1.9676211333064957,312:1.9675964973875213,313:1.967572019485578,314:1.967547698085227,315:1.9675235316903468,316:1.9674995188238256,317:1.9674756580272583,318:1.9674519478606556,319:1.96742838690215,320:1.9674049737477135,321:1.9673817070108799,322:1.9673585853224684,323:1.9673356073303163,324:1.9673127716990173,325:1.9672900771096589,326:1.9672675222595717,327:1.9672451058620788,328:1.9672228266462515,329:1.9672006833566689,330:1.9671786747531816,331:1.9671567996106818,332:1.967135056718874,333:1.9671134448820529,334:1.9670919629188843,335:1.9670706096621893,336:1.967049383958733,337:1.9670282846690177,338:1.9670073106670771,339:1.9669864608402783,340:1.966965734089124,341:1.9669451293270586,342:1.9669246454802793,343:1.9669042814875488,344:1.9668840363000124,345:1.966863908881019,346:1.9668438982059417,347:1.966824003262006,348:1.9668042230481186,349:1.9667845565746986,350:1.9667650028635129,351:1.9667455609475144,352:1.9667262298706825,353:1.966707008687866,354:1.9666878964646288,355:1.9666688922770996,356:1.9666499952118222,357:1.9666312043656085,358:1.9666125188453965,359:1.9665939377681074,360:1.9665754602605063,361:1.9665570854590666,362:1.9665388125098342,363:1.966520640568296,364:1.9665025687992495,365:1.966484596376675,366:1.9664667224836099,367:1.9664489463120245,368:1.9664312670626998,369:1.9664136839451096,370:1.9663961961773,371:1.966378802985776,372:1.9663615036053859,373:1.9663442972792093,374:1.9663271832584475,375:1.9663101608023135,376:1.966293229177927,377:1.9662763876602067,378:1.96625963553177,379:1.9662429720828285,380:1.9662263966110878,381:1.9662099084216513,382:1.9661935068269203,383:1.9661771911465,384:1.9661609607071053,385:1.9661448148424667,386:1.9661287528932416,387:1.9661127742069229,388:1.9660968781377508,389:1.966081064046626,390:1.966065331301024,391:1.966049679274911,392:1.9660341073486605,393:1.9660186149089722,394:1.9660032013487905,395:1.9659878660672256,396:1.9659726084694753,397:1.9659574279667498,398:1.965942323976193,399:1.9659272959208094,400:1.9659123432293915,401:1.9658974653364458,402:1.9658826616821223,403:1.965867931712145,404:1.9658532748777406,405:1.9658386906355727,406:1.9658241784476738,407:1.965809737781378,408:1.9657953681092573,409:1.9657810689090576,410:1.9657668396636336,411:1.965752679860889,412:1.9657385889937122,413:1.9657245665599175,414:1.9657106120621863,415:1.9656967250080057,416:1.9656829049096134,417:1.9656691512839384,418:1.965655463652545,419:1.9656418415415793,420:1.9656282844817121,421:1.9656147920080864,422:1.9656013636602634,423:1.9655879989821707,424:1.9655746975220507,425:1.9655614588324102,426:1.965548282469968,427:1.9655351679956077,428:1.9655221149743287,429:1.9655091229751978,430:1.9654961915712998,431:1.9654833203396942,432:1.9654705088613673,433:1.9654577567211857,434:1.965445063507854,435:1.965432428813868,436:1.9654198522354724,437:1.9654073333726187,438:1.9653948718289207,439:1.9653824672116142,440:1.9653701191315152,441:1.9653578272029781,442:1.9653455910438589,443:1.9653334102754718,444:1.9653212845225516,445:1.9653092134132164,446:1.9652971965789277,447:1.9652852336544535,448:1.9652733242778317,449:1.9652614680903338,450:1.9652496647364275,451:1.9652379138637432,452:1.9652262151230366,453:1.9652145681681563,454:1.9652029726560083,455:1.9651914282465226,456:1.9651799346026202,457:1.9651684913901803,458:1.9651570982780076,459:1.9651457549378,460:1.9651344610441186,461:1.9651232162743548,462:1.9651120203087005,463:1.9651008728301178,464:1.9650897735243085,465:1.9650787220796855,466:1.9650677181873428,467:1.965056761541027,468:1.965045851837109,469:1.965034988774555,470:1.965024172054902,471:1.9650134013822251,472:1.9650026764631154,473:1.9649919970066518,474:1.9649813627243728,475:1.964970773330254,476:1.9649602285406784,477:1.9649497280744153,478:1.9649392716525922,479:1.964928858998672,480:1.9649184898384262,481:1.9649081638999137,482:1.9648978809134563,483:1.9648876406116125,484:1.9648774427291587,485:1.9648672870030628,486:1.9648571731724636,487:1.9648471009786466,488:1.9648370701650248,489:1.9648270804771135,490:1.9648171316625118,491:1.964807223470879,492:1.9647973556539153,493:1.9647875279653397,494:1.9647777401608706,495:1.9647679919982053,496:1.9647582832369994,497:1.9647486136388483,498:1.9647389829672652,499:1.9647293909876653,500:1.9647198374673442,501:1.9647103221754598,502:1.964700844883014,503:1.9646914053628335,504:1.9646820033895525,505:1.964672638739595,506:1.9646633111911553,507:1.9646540205241838,508:1.9646447665203655,509:1.964635548963106,510:1.9646263676375137,511:1.9646172223303833,512:1.9646081128301776,513:1.9645990389270147,514:1.9645900004126484,515:1.9645809970804544,516:1.9645720287254127,517:1.9645630951440949,518:1.964554196134645,519:1.9645453314967691,520:1.9645365010317148,521:1.9645277045422602,522:1.9645189418326983,523:1.964510212708822,524:1.964501516977911,525:1.964492854448715,526:1.9644842249314425,527:1.9644756282377454,528:1.9644670641807058,529:1.964458532574823,530:1.9644500332359982,531:1.9644415659815229,532:1.9644331306300662,533:1.9644247270016604,534:1.964416354917689,535:1.9644080142008735,536:1.9643997046752626,537:1.9643914261662165,538:1.9643831785003991,539:1.9643749615057613,540:1.9643667750115323,541:1.964358618848207,542:1.9643504928475335,543:1.964342396842502,544:1.9643343306673333,545:1.9643262941574684,546:1.9643182871495555,547:1.9643103094814403,548:1.964302360992155,549:1.9642944415219068,550:1.9642865509120675,551:1.9642786890051633,552:1.964270855644863,553:1.9642630506759702,554:1.9642552739444101,555:1.9642475252972216,556:1.9642398045825453,557:1.9642321116496164,558:1.9642244463487513,559:1.9642168085313412,560:1.9642091980498402,561:1.9642016147577568,562:1.964194058509645,563:1.9641865291610932,564:1.9641790265687171,565:1.964171550590149,566:1.9641641010840303,567:1.9641566779100006,568:1.9641492809286911,569:1.964141910001714,570:1.964134564991655,571:1.9641272457620647,572:1.9641199521774493,573:1.964112684103263,574:1.9641054414058998,575:1.9640982239526847,576:1.964091031611867,577:1.9640838642526093,578:1.964076721744983,579:1.9640696039599586,580:1.9640625107693983,581:1.9640554420460483,582:1.9640483976635308,583:1.9640413774963374,584:1.964034381419821,585:1.9640274093101877,586:1.9640204610444916,587:1.9640135365006257,588:1.9640066355573154,589:1.9639997580941106,590:1.963992903991381,591:1.9639860731303063,592:1.9639792653928712,593:1.9639724806618581,594:1.9639657188208401,595:1.9639589797541745,596:1.963952263346997,597:1.963945569485213,598:1.963938898055494,599:1.9639322489452695,600:1.96392562204272,601:1.9639190172367733,602:1.963912434417095,603:1.963905873474085,604:1.9638993342988706,605:1.9638928167832999,606:1.9638863208199362,607:1.9638798463020526,608:1.9638733931236256,609:1.9638669611793291,610:1.9638605503645292,611:1.9638541605752786,612:1.9638477917083106,613:1.963841443661033,614:1.9638351163315244,615:1.9638288096185263,616:1.9638225234214404,617:1.9638162576403206,618:1.96381001217587,619:1.9638037869294331,620:1.9637975818029945,621:1.9637913966991682,622:1.9637852315211985,623:1.9637790861729507,624:1.963772960558908,625:1.9637668545841658,626:1.9637607681544267,627:1.963754701175997,628:1.96374865355578,629:1.9637426252012729,630:1.9637366160205605,631:1.9637306259223126,632:1.9637246548157765,633:1.9637187026107747,634:1.9637127692177012,635:1.9637068545475131,636:1.9637009585117295,637:1.9636950810224274,638:1.9636892219922344,639:1.9636833813343266,640:1.963677558962424,641:1.9636717547907854,642:1.9636659687342057,643:1.96366020070801,644:1.9636544506280507,645:1.9636487184107032,646:1.9636430039728607,647:1.963637307231933,648:1.9636316281058388,649:1.9636259665130043,650:1.9636203223723585,651:1.9636146956033296,652:1.9636090861258415,653:1.9636034938603082,654:1.963597918727633,655:1.9635923606492014,656:1.9635868195468806,657:1.9635812953430134,658:1.9635757879604159,659:1.9635702973223736,660:1.9635648233526377,661:1.9635593659754214,662:1.9635539251153973,663:1.9635485006976923,664:1.9635430926478856,665:1.9635377008920054,666:1.9635323253565247,667:1.9635269659683576,668:1.9635216226548569,669:1.963516295343811,670:1.9635109839634397,671:1.9635056884423918,672:1.9635004087097414,673:1.9634951446949849,674:1.9634898963280374,675:1.9634846635392311,676:1.9634794462593101,677:1.9634742444194289,678:1.9634690579511493,679:1.9634638867864362,680:1.9634587308576554,681:1.9634535900975714,682:1.9634484644393435,683:1.9634433538165224,684:1.963438258163049,685:1.96343317741325,686:1.963428111501836,687:1.9634230603638985,688:1.9634180239349066,689:1.9634130021507055,690:1.9634079949475116,691:1.9634030022619122,692:1.9633980240308617,693:1.9633930601916791,694:1.963388110682045,695:1.9633831754399986,696:1.963378254403937,697:1.9633733475126116,698:1.9633684547051236,699:1.9633635759209254,700:1.9633587110998145,701:1.9633538601819331,702:1.9633490231077657,703:1.9633441998181338,704:1.9633393902541987,705:1.9633345943574538,706:1.9633298120697256,707:1.96332504333317,708:1.9633202880902698,709:1.9633155462838343,710:1.963310817856994,711:1.9633061027532,712:1.9633014009162226,713:1.9632967122901475,714:1.9632920368193745,715:1.963287374448614,716:1.9632827251228866,717:1.9632780887875207,718:1.9632734653881478,719:1.963268854870705,720:1.963264257181428,721:1.9632596722668525,722:1.9632551000738105,723:1.9632505405494287,724:1.963245993641126,725:1.963241459296613,726:1.9632369374638876,727:1.963232428091235,728:1.9632279311272245,729:1.963223446520709,730:1.9632189742208208,731:1.963214514176972,732:1.9632100663388516,733:1.9632056306564227,734:1.9632012070799227,735:1.9631967955598593,736:1.9631923960470097,737:1.9631880084924196,738:1.9631836328473993,739:1.9631792690635235,740:1.9631749170926298,741:1.9631705768868148,742:1.9631662483984351,743:1.9631619315801037,744:1.9631576263846882,745:1.9631533327653103,746:1.9631490506753435,747:1.963144780068411,748:1.963140520898385,749:1.9631362731193833,750:1.9631320366857699,751:1.9631278115521522,752:1.9631235976733785,753:1.9631193950045382,754:1.963115203500959,755:1.963111023118206,756:1.9631068538120793,757:1.963102695538613,758:1.963098548254074,759:1.963094411914959,760:1.963090286477995,761:1.9630861719001376,762:1.9630820681385661,763:1.963077975150687,764:1.963073892894129,765:1.9630698213267435,766:1.9630657604066017,767:1.9630617100919938,768:1.9630576703414275,769:1.9630536411136277,770:1.9630496223675324,771:1.963045614062295,772:1.963041616157278,773:1.9630376286120574,774:1.9630336513864166,775:1.9630296844403485,776:1.9630257277340504,777:1.9630217812279265,778:1.9630178448825841,779:1.963013918658834,780:1.9630100025176869,781:1.9630060964203544,782:1.9630022003282468,783:1.9629983142029712,784:1.9629944380063318,785:1.962990571700327,786:1.9629867152471494,787:1.9629828686091835,788:1.9629790317490055,789:1.962975204629381,790:1.9629713872132657,791:1.9629675794638015,792:1.962963781344317,793:1.9629599928183272,794:1.9629562138495296,795:1.9629524444018054,796:1.9629486844392179,797:1.9629449339260105,798:1.9629411928266058,799:1.962937461105606,800:1.9629337387277892,801:1.9629300256581104,802:1.9629263218616995,803:1.9629226273038602,804:1.9629189419500692,805:1.9629152657659752,806:1.9629115987173975,807:1.9629079407703247,808:1.9629042918909145,809:1.9629006520454917,810:1.9628970212005485,811:1.9628933993227415,812:1.9628897863788926,813:1.9628861823359869,814:1.962882587161172,815:1.9628790008217571,816:1.9628754232852115,817:1.9628718545191641,818:1.9628682944914029,819:1.9628647431698727,820:1.9628612005226753,821:1.9628576665180681,822:1.9628541411244633,823:1.9628506243104265,824:1.962847116044676,825:1.962843616296083,826:1.9628401250336684,827:1.9628366422266041,828:1.9628331678442101,829:1.962829701855956,830:1.9628262442314577,831:1.9628227949404782,832:1.9628193539529253,833:1.962815921238852,834:1.9628124967684557,835:1.962809080512076,836:1.9628056724401943,837:1.962802272523434,838:1.9627988807325591,839:1.9627954970384724,840:1.9627921214122162,841:1.96278875382497,842:1.9627853942480507,843:1.9627820426529121,844:1.9627786990111424,845:1.9627753632944653,846:1.962772035474738,847:1.962768715523951,848:1.962765403414227,849:1.9627620991178198,850:1.9627588026071152,851:1.9627555138546275,852:1.9627522328330012,853:1.962748959515009,854:1.962745693873551,855:1.9627424358816548,856:1.9627391855124732,857:1.9627359427392859,858:1.9627327075354966,859:1.9627294798746329,860:1.9627262597303463,861:1.9627230470764099,862:1.962719841886719,863:1.962716644135291,864:1.9627134537962623,865:1.9627102708438906,866:1.9627070952525512,867:1.9627039269967388,868:1.9627007660510651,869:1.9626976123902597,870:1.9626944659891674,871:1.9626913268227497,872:1.9626881948660826,873:1.9626850700943568,874:1.9626819524828756,875:1.9626788420070573,876:1.962675738642431,877:1.9626726423646375,878:1.9626695531494305,879:1.962666470972672,880:1.9626633958103352,881:1.9626603276385024,882:1.962657266433364,883:1.962654212171219,884:1.962651164828473,885:1.962648124381639,886:1.962645090807336,887:1.9626420640822897,888:1.9626390441833281,889:1.9626360310873863,890:1.9626330247715016,891:1.962630025212815,892:1.962627032388571,893:1.9626240462761142,894:1.9626210668528927,895:1.9626180940964544,896:1.9626151279844477,897:1.9626121684946207,898:1.9626092156048216,899:1.9626062692929966,900:1.9626033295371899,901:1.9626003963155434,902:1.9625974696062964,903:1.9625945493877848,904:1.9625916356384394,905:1.9625887283367882,906:1.9625858274614525,907:1.962582932991149,908:1.9625800449046875,909:1.9625771631809725,910:1.962574287799,911:1.9625714187378587,912:1.9625685559767294,913:1.9625656994948841,914:1.9625628492716856,915:1.9625600052865868,916:1.9625571675191313,917:1.9625543359489512,918:1.9625515105557676,919:1.9625486913193901,920:1.9625458782197165,921:1.9625430712367309,922:1.962540270350506,923:1.9625374755412,924:1.962534686789057,925:1.962531904074407,926:1.9625291273776646,927:1.96252635667933,928:1.9625235919599864,929:1.962520833200302,930:1.9625180803810265,931:1.962515333482994,932:1.9625125924871198,933:1.9625098573744026,934:1.9625071281259212,935:1.962504404722836,936:1.9625016871463874,937:1.9624989753778976,938:1.9624962693987664,939:1.9624935691904748,940:1.9624908747345817,941:1.9624881860127243,942:1.9624855030066184,943:1.9624828256980582,944:1.962480154068913,945:1.962477488101131,946:1.962474827776736,947:1.9624721730778274,948:1.962469523986581,949:1.9624668804852476,950:1.9624642425561525,951:1.962461610181696,952:1.9624589833443515,953:1.9624563620266673,954:1.9624537462112641,955:1.9624511358808356,956:1.9624485310181483,957:1.9624459316060407,958:1.9624433376274224,959:1.9624407490652758,960:1.9624381659026522,961:1.9624355881226763,962:1.962433015708541,963:1.9624304486435091,964:1.9624278869109137,965:1.9624253304941575,966:1.9624227793767104,967:1.9624202335421121,968:1.9624176929739703,969:1.9624151576559599,970:1.962412627571823,971:1.9624101027053702,972:1.9624075830404768,973:1.9624050685610865,974:1.962402559251207,975:1.9624000550949139,976:1.9623975560763454,977:1.962395062179708,978:1.9623925733892695,979:1.9623900896893647,980:1.9623876110643914,981:1.9623851374988106,982:1.9623826689771475,983:1.96238020548399,984:1.9623777470039887,985:1.962375293521857,986:1.9623728450223694,987:1.9623704014903631,988:1.9623679629107367,989:1.9623655292684494,990:1.9623631005485223,991:1.9623606767360353,992:1.9623582578161303,993:1.9623558437740083,994:1.9623534345949294,995:1.9623510302642144,996:1.9623486307672415,997:1.9623462360894495,998:1.962343846216334,999:1.962341461133449,1000:1.9623390808264078,1001:1.9623367052808791,1002:1.9623343344825908,1003:1.962331968417326,1004:1.9623296070709262,1005:1.9623272504292881,1006:1.9623248984783654,1007:1.9623225512041673,1008:1.9623202085927578,1009:1.9623178706302578,1010:1.9623155373028418,1011:1.9623132085967403,1012:1.962310884498237,1013:1.962308564993671,1014:1.962306250069434,1015:1.9623039397119733,1016:1.9623016339077874,1017:1.9622993326434304,1018:1.962297035905507,1019:1.9622947436806755,1020:1.9622924559556474,1021:1.962290172717185,1022:1.9622878939521027,1023:1.9622856196472673,1024:1.962283349789597,infinity:1.96}),W6=128,j=128,A=1e9,C6=12,y=8;var E6=require("node:child_process"),I6=require("node:v8"),L6=require("node:vm");var h6=!!globalThis.Bun||!!globalThis.process?.versions?.bun,u6=!!globalThis.Deno,b6=globalThis.process?.release?.name==="node",l6=!!globalThis.navigator,T=(()=>{if(h6)return f.bun;if(u6)return f.deno;if(b6)return f.node;if(l6)return f.browser;return"unknown"})();var i6=(H)=>H!==null&&typeof H==="object"&&typeof H.then==="function",W=(H)=>{return typeof H==="function"},z=(H)=>{return(async()=>{}).constructor===H?.constructor},k=(H)=>{if(H==null)return!1;if(z(H))return!0;try{let J=H(),K=i6(J);if(K)try{J.then(()=>{})?.catch(()=>{})}catch{}return K}catch{return!1}},x=(H)=>{return Object.prototype.toString.call(H).slice(8,-1)==="Object"};function n(H){if(H<1)return(H*1000).toFixed(2);if(H<1000)return H.toFixed(2);if(H/=1000,H<1000)return H.toFixed(2);if(H/=1000,H<1000)return H.toFixed(2);if(H/=1000,H<1000)return H.toFixed(2);if(H/=60,H<1000)return H.toFixed(2);return H/=60,H.toFixed(2)}var E=(H)=>{if(H==null)throw new TypeError(`Invalid dividend: ${H}`);if(typeof H!=="number")throw new TypeError(`expected number, got ${H.constructor.name}`);if(H===0||Number.isNaN(H))throw new RangeError(`Invalid dividend: ${H}`);return H};var G6=(H,J=l(H))=>{return H.reduce((K,Q)=>K+(Q-J)**2,0)/E(H.length-1)},d=(H,J)=>{if(!Array.isArray(H))throw new TypeError(`expected array, got ${H.constructor.name}`);if(H.length===0)throw new Error("expected non-empty array, got empty array");if(J<0||J>1)throw new Error("q must be between 0 and 1");if(J===0)return H[0];if(J===1)return H[H.length-1];let K=(H.length-1)*J,Q=Math.floor(K);if(H[Q+1]!=null)return H[Q]+(K-Q)*(H[Q+1]-H[Q]);return H[Q]},t=(H)=>d(H,0.5),l=(H)=>{if(!Array.isArray(H))throw new TypeError(`expected array, got ${H.constructor.name}`);if(H.length===0)throw new Error("expected non-empty array, got empty array");return H.reduce((J,K)=>J+K,0)/H.length},e=(H,J,K=J(H))=>{let Q=[];for(let Y of H)Q.push(Math.abs(Y-K));return J(Q)},_6=(H,J,K,Q)=>{return H/E(K)*Math.sqrt((J/E(H))**2+(Q/E(K))**2)};var v=(()=>{return{unknown:()=>{try{let H=performance.now.bind(performance);return H(),()=>1e6*H()}catch{return()=>1e6*Date.now()}},browser:()=>{try{return $.agent.monotonicNow(),()=>1e6*$.agent.monotonicNow()}catch{}try{return $262.agent.monotonicNow(),()=>1e6*$262.agent.monotonicNow()}catch{}return()=>1e6*performance.now()},node:()=>()=>Number(process.hrtime.bigint()),deno:()=>()=>1e6*performance.now(),bun:()=>Bun.nanoseconds}[T]()})();var z6=(()=>{return{unknown:()=>"",browser:()=>"",node:()=>globalThis.process.version,deno:()=>globalThis.Deno.version.deno,bun:()=>globalThis.process.versions.bun}[T]()})(),N6=(()=>{return{unknown:()=>"unknown",browser:()=>"unknown",node:()=>`${globalThis.process.arch}-${globalThis.process.platform}`,deno:()=>Deno.build.target,bun:()=>`${globalThis.process.arch}-${globalThis.process.platform}`}[T]()})(),q6=await(async()=>{return await{unknown:()=>"unknown",browser:()=>"unknown",node:async()=>(await import("node:os"))?.cpus?.()?.[0]?.model,deno:async()=>(await import("node:os"))?.cpus?.()?.[0]?.model,bun:async()=>(await import("node:os"))?.cpus?.()?.[0]?.model}[T]()})(),R6=(()=>{return{unknown:()=>globalThis.process?.env?.FORCE_COLOR!=null||!globalThis.process?.env?.NO_COLOR&&!globalThis.process?.env?.NODE_DISABLE_COLORS,browser:()=>!1,node:()=>globalThis.process.env.FORCE_COLOR!=null||!globalThis.process.env.NO_COLOR&&!globalThis.process.env.NODE_DISABLE_COLORS,deno:()=>!Deno.noColor,bun:()=>globalThis.process.env.FORCE_COLOR!=null||!globalThis.process.env.NO_COLOR&&!globalThis.process.env.NODE_DISABLE_COLORS}[T]()})(),D6=await(async()=>{return await{unknown:async()=>{try{return await import("node:fs"),(await import("node:fs")).writeFileSync}catch{return V}},browser:()=>V,node:async()=>(await import("node:fs")).writeFileSync,deno:()=>Deno.writeTextFileSync,bun:async()=>(await import("node:fs")).writeFileSync}[T]()})(),U$=(()=>{return{unknown:()=>V,browser:()=>V,node:()=>(H)=>E6.spawnSync(H.trim().split(/\s+/)[0],H.trim().split(/\s+/).slice(1)),deno:()=>(H)=>{new Deno.Command(H.trim().split(/\s+/)[0],{args:H.trim().split(/\s+/).slice(1)}).outputSync()},bun:()=>(H)=>Bun.spawnSync(H.trim().split(/\s+/))}[T]()})(),M6=(()=>{return{unknown:()=>W(globalThis.gc)?()=>globalThis.gc():V,browser:()=>{try{return globalThis.$262.gc(),()=>globalThis.$262.gc()}catch{return V}},node:()=>()=>{I6.setFlagsFromString("--expose_gc"),L6.runInNewContext("gc")()},deno:()=>W(globalThis.gc)?()=>globalThis.gc():V,bun:()=>()=>Bun.gc(!0)}[T]()})(),i=(H,J={})=>{if(!W(H))throw new TypeError(`expected function, got ${H.constructor.name}`);if(!x(J))throw new TypeError(`expected object, got ${J.constructor.name}`);if(J.samples!=null&&typeof J.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${J.samples.constructor.name}`);if(J.time!=null&&typeof J.time!=="number")throw new TypeError(`expected number as 'time' option, got ${J.time.constructor.name}`);if(J.warmup!=null&&typeof J.warmup!=="number"&&typeof J.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${J.warmup.constructor.name}`);if(J.now!=null&&!W(J.now))throw new TypeError(`expected function as 'now' option, got ${J.now.constructor.name}`);if(J.before!=null&&!W(J.before))throw new TypeError(`expected function as 'before' option, got ${J.before.constructor.name}`);if(J.beforeEach!=null&&!W(J.beforeEach))throw new TypeError(`expected function as 'beforeEach' option, got ${J.beforeEach.constructor.name}`);if(J.after!=null&&!W(J.after))throw new TypeError(`expected function as 'after' option, got ${J.after.constructor.name}`);if(J.afterEach!=null&&!W(J.afterEach))throw new TypeError(`expected function as 'afterEach' option, got ${J.afterEach.constructor.name}`)},o=(H,J)=>{H.now=J.now??H.now,H.samples=J.samples??H.samples,H.time=J.time??H.time,H.warmup=J.warmup??H.warmup};async function O6(H,J={}){if(i(H,J),J.async!=null&&typeof J.async!=="boolean")throw new TypeError(`expected boolean as 'async' option, got ${J.async.constructor.name}`);J.async=J.async??k(H),J.time=J.time??A,J.samples=J.samples??j,J.warmup=typeof J.warmup==="number"?J.warmup:J.warmup===!0?C6:0,J.now=J.now??v,J.before=J.before??V,J.beforeEach=J.beforeEach??V,J.after=J.after??V,J.afterEach=J.afterEach??V;let K=z(J.before),Q=z(J.beforeEach),Y=z(J.after),X=z(J.afterEach),U=async()=>{if(Q)await J.beforeEach.call(this);else J.beforeEach.call(this);let _;if(J.async){let w=J.now();await H.call(this),_=J.now()-w}else{let w=J.now();H.call(this),_=J.now()-w}if(X)await J.afterEach.call(this);else J.afterEach.call(this);return _},G=[],D=0;if(J.warmup){if(K)await J.before.call(this);else J.before.call(this);for(let _=0;_<J.warmup;_++){let w=await U();G.push(w),D+=w}if(Y)await J.after.call(this);else J.after.call(this)}if(G=[],D=0,K)await J.before.call(this);else J.before.call(this);while(D<J.time||J.samples>G.length){let _=await U();G.push(_),D+=_}if(Y)await J.after.call(this);else J.after.call(this);return c6(G)}var c6=(H)=>{if(!Array.isArray(H))throw new TypeError(`expected array, got ${H.constructor.name}`);if(H.length===0)throw new Error("expected non-empty array, got empty array");H.sort((K,Q)=>K-Q);let J=H.map((K)=>K!==0?1e9/K:1e9/latencyAvg).sort((K,Q)=>K-Q);return{samples:H.length,ss:H.length>=W6,latency:T6(H),throughput:T6(J)}},T6=(H)=>{let J=l(H),K=G6(H,J),Q=Math.sqrt(K),Y=Q/Math.sqrt(H.length),X=H.length-1,U=B[(X||1).toString()]||B.infinity,G=Y*U,D=G/E(J)*100,_=t(H);return{min:H[0],max:H[X],p50:_,p75:d(H,0.75),p99:d(H,0.99),p995:d(H,0.995),avg:J,vr:K,sd:Q,moe:G,rmoe:D,aad:e(H,l,J),mad:e(H,t,_)}};var m6=()=>{let H;if(typeof globalThis.console?.log==="function")H=globalThis.console.log;else if(typeof globalThis.print==="function")H=globalThis.print;else throw new Error("no logger function found");return H},P6=m6();function Z(H,J){let K=new RegExp(`\\x1b\\[${J}m`,"g"),Q=`\x1B[${H}m`,Y=`\x1B[${J}m`;return(X,U)=>{if(!X||U==null)return U;return U=U.toString(),`${Q}${U.includes(Y)?U.replace(K,Y+Q):U}${Y}`}}var C$=Z(0,0),C=Z(1,22),h=Z(2,22),w6=Z(3,23),G$=Z(4,24),_$=Z(7,27),T$=Z(8,28),E$=Z(9,29),I$=Z(30,39),I=Z(31,39),O=Z(32,39),q=Z(33,39),c=Z(34,39),B6=Z(35,39),N=Z(36,39),P=Z(37,39),j6=Z(90,39),L$=Z(90,39),z$=Z(91,39),N$=Z(92,39),q$=Z(93,39),R$=Z(94,39),D$=Z(95,39),M$=Z(96,39),O$=Z(97,39),P$=Z(40,49),w$=Z(41,49),B$=Z(42,49),j$=Z(43,49),A$=Z(44,49),x$=Z(45,49),v$=Z(46,49),S$=Z(47,49),F$=Z(100,49),f$=Z(101,49),g$=Z(102,49),y$=Z(103,49),k$=Z(104,49),d$=Z(105,49),h$=Z(106,49),u$=Z(107,49);function L(H){if(H<1)return`${(H*1000).toFixed(2)} ps`;if(H<1000)return`${H.toFixed(2)} ns`;if(H/=1000,H<1000)return`${H.toFixed(2)} \xB5s`;if(H/=1000,H<1000)return`${H.toFixed(2)} ms`;if(H/=1000,H<1000)return`${H.toFixed(2)} s`;if(H/=60,H<1000)return`${H.toFixed(2)} m`;return H/=60,`${H.toFixed(2)} h`}function m(H){return`${H.toFixed(0)}`}function u(H){return`${H.toFixed(2)} %`}function s(H){return`${H.toFixed(2)}`}function r(H){let J=9;for(let K of H)if(J<K.length)J=K.length;return 2+J}function p({size:H,latency:J=!0,throughput:K=!0,latencyMinMax:Q=!0,latencyPercentiles:Y=!0}){return`${"-".repeat(H+20*J+20*K+24*Q)}${!Y?"":` ${"-".repeat(50)}`}`}function $6(H,J,{size:K,colors:Q=!0}){return`${H.padEnd(K," ")}${I(Q,"error")}: ${J.message}${J.stack?`\n${j6(Q,J.stack)}`:""}`}function H6({colors:H=!0}={}){return h(H,P(H,` | ||
1 ps = 1 picosecond = 1e-12s | ||
@@ -6,4 +6,4 @@ 1 ns = 1 nanosecond = 1'000ps = 1e-9s | ||
1 ms = 1 millisecond = 1'000\u03BCs = 1'000'000ns = 1e9ps = 1e-3s | ||
`))}function X6(H,{size:J,latency:K=!0,throughput:Q=!0,colors:Y=!0,latencyMinMax:X=!0,latencyPercentiles:U=!0}){return`${l(Y,j(Y,`cpu: ${H.cpu}`))}\n${l(Y,j(Y,`runtime: ${H.runtime}`))}\n\n${"benchmark".padEnd(J," ")}${!K?"":"time/iter".padStart(20," ")}${!Q?"":"iters/s".padStart(20," ")}${!X?"":"(min \u2026 max time/iter)".padStart(24," ")}${!U?"":` ${"p50/median".padStart(20," ")} ${"p75".padStart(9," ")} ${"p99".padStart(9," ")} ${"p995".padStart(9," ")}`}`}function Y6(H,J={size:n,latency:!0,throughput:!0,colors:!0,latencyMinMax:!0,latencyPercentiles:!0}){if(H.startsWith(d))H=x6(J.colors,"unnamed");return`\u2022 ${V(J.colors,H)}\n${l(J.colors,j(J.colors,t(J)))}`}function Z6(H,J,{size:K,latency:Q=!0,throughput:Y=!0,colors:X=!0,latencyMixMax:U=!0,latencyPercentiles:E=!0}){return`${H.padEnd(K," ")}${!Q?"":`${P(X,z(J.latency.avg))} \xB1 ${(J.latency.rmoe>h?L:p)(X,c(J.latency.rmoe))}`.padStart(20+20*X," ")}${!Y?"":`${P(X,a(J.throughput.avg))} \xB1 ${(J.throughput.rmoe>h?L:p)(X,c(J.throughput.rmoe))}`.padStart(20+20*X," ")}${!U?"":`(${R(X,z(J.latency.min))} \u2026 ${A6(X,z(J.latency.max))})`.padStart(24+20*X," ")}${!E?"":` ${s(J.latency.mad)>0?`${B(X,z(J.latency.p50))} \xB1 ${L(X,z(J.latency.mad))}`.padStart(20+20*X," "):B(X,z(J.latency.p50)).padStart(20+10*X," ")} ${B(X,z(J.latency.p75)).padStart(9+10*X," ")} ${B(X,z(J.latency.p99)).padStart(9+10*X," ")} ${B(X,z(J.latency.p995)).padStart(9+10*X," ")}`}`}function e(H,{latency:J=!0,throughput:K=!0,colors:Q=!0}){if(H.some((X)=>X.error!=null))throw new Error("Cannot display warning on benchmarks with error");let Y=[];for(let X of H){if(X.stats.ss===!1)Y.push(`${V(Q,P(Q,"Warning"))}: ${V(Q,R(Q,X.name))} has a sample size below statistical significance: ${L(Q,X.samples)}`);if(J&&X.stats.latency.rmoe>h)Y.push(`${V(Q,P(Q,"Warning"))}: ${V(Q,R(Q,X.name))} has a high latency relative margin of error: ${L(Q,c(X.stats.latency.rmoe))}`);if(K&&X.stats.throughput.rmoe>h)Y.push(`${V(Q,P(Q,"Warning"))}: ${V(Q,R(Q,X.name))} has a high latency throughput margin of error: ${L(Q,a(X.stats.throughput.rmoe))}`);if(J&&s(X.stats.latency.mad)>0)Y.push(`${V(Q,P(Q,"Warning"))}: ${V(Q,R(Q,X.name))} has a non zero latency median absolute deviation: ${L(Q,z(X.stats.latency.mad))}`);if(K&&Math.trunc(X.stats.throughput.mad)>0)Y.push(`${V(Q,P(Q,"Warning"))}: ${V(Q,R(Q,X.name))} has a non zero throughput median absolute deviation: ${L(Q,a(X.stats.throughput.mad))}`)}return Y.join("\n")}function U6(H,{colors:J=!0}){if(H.some((Q)=>Q.error!=null))throw new Error("Cannot summarize benchmarks with error");if(H.length<2)throw new Error("Cannot summarize less than two benchmarks");H.sort((Q,Y)=>Q.stats.latency.avg-Y.stats.latency.avg);let K=H.find((Q)=>Q.baseline)??H[0];return`${`${K.group==null||K.group.startsWith(d)?"":`${V(J,j(J,K.group.trim().split(/\s+/).length>1?`'${K.group}'`:`${K.group}`))} `}${V(J,j(J,"summary"))}`}\n ${V(J,R(J,K.name))}${H.filter((Q)=>Q!==K).map((Q)=>{let Y=Q.stats.latency.avg/I(K.stats.latency.avg),U=L6(Q.stats.latency.avg,Q.stats.latency.sd,K.stats.latency.avg,K.stats.latency.sd)/I(Math.sqrt(K.stats.samples+Q.stats.samples)),E=D[(K.stats.samples+Q.stats.samples-1||1).toString()]||D.infinity,C=U*E/I(Y)*100;return`\n ${(1>Y?L:B)(J,1>Y?J6(1/I(Y)):J6(Y))} \xB1 ${p(J,c(C))} times ${1>Y?"slower":"faster"} than ${V(J,R(J,Q.name))}`}).join("")}`}var g=null,m=new Map,w=[];function f6(H,J=void 0){if(H!=null&&typeof H!=="string"&&!F(H)&&!G(H))throw new TypeError(`expected string, object or function, got ${H.constructor.name}`);if(G(H))J=H;if(!G(J))throw new TypeError(`expected function, got ${J.constructor.name}`);if(N(J))throw new TypeError(`expected synchronous function, got asynchronous function ${J.constructor.name}`);if(F(H)){if(H.name!=null&&typeof H.name!=="string")throw new TypeError(`expected string as 'name' option, got ${H.name.constructor.name}`);if(H.summary!=null&&typeof H.summary!=="boolean")throw new TypeError(`expected boolean as 'summary' option, got ${H.summary.constructor.name}`);if(H.samples!=null&&typeof H.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${H.samples.constructor.name}`);if(H.time!=null&&typeof H.time!=="number")throw new TypeError(`expected number as 'time' option, got ${H.time.constructor.name}`);if(H.warmup!=null&&typeof H.warmup!=="number"&&typeof H.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${H.warmup.constructor.name}`);if(H.now!=null&&Function!==H.now.constructor)throw new TypeError(`expected function as 'now' option, got ${H.now.constructor.name}`);if(H.before!=null&&!G(H.before))throw new TypeError(`expected function as 'before' option, got ${H.before.constructor.name}`);if(H.after!=null&&!G(H.after))throw new TypeError(`expected function as 'after' option, got ${H.after.constructor.name}`)}if(g=(typeof H==="string"?H.trim():H.name?.trim())||`${d}${m.size+1}`,!m.has(g))m.set(g,{summary:H.summary??!0,samples:H.samples??A,time:H.time??v,warmup:H.warmup??!0,now:H.now??S,before:H.before??W,after:H.after??W});J(),g=null}function S6(H,J=void 0,K={}){if(G(H))J=H,H=J.name;r(J,K),H=H.trim(),w.push({before:K.before??W,beforeEach:K.beforeEach??W,fn:J,afterEach:K.afterEach??W,after:K.after??W,name:H,now:K.now??S,group:g,time:K.time??v,samples:K.samples??A,warmup:K.warmup??!0,baseline:!1,async:b(J)})}function g6(H,J=void 0,K={}){if(G(H))J=H,H=J.name;r(J,K),H=H.trim(),w.push({before:K.before??W,beforeEach:K.beforeEach??W,fn:J,afterEach:K.afterEach??W,after:K.after??W,name:H,now:K.now??S,group:g,time:K.time??v,samples:K.samples??A,warmup:K.warmup??!0,baseline:!0,async:b(J)})}function o6(){m.clear(),w.length=0}var F6=async(H,J,K={},Q={})=>{let Y=!1;for(let X of H){Y=!0,H6(X,Q),H6(X,K);try{if(M6(),X.stats=await B6(X.fn,{async:X.async,samples:X.samples,time:X.time,warmup:X.warmup,now:X.now,before:X.before,after:X.after,beforeEach:X.beforeEach,afterEach:X.afterEach}),!K.json)J(Z6(X.name,X.stats,K))}catch(U){if(X.error=U,!K.json)J(K6(X.name,X.error,K))}}if(H=H.filter((X)=>X.error==null),!K.json&&e(H,K))J(""),J(e(H,K));if((Object.keys(Q).length===0||Q.summary===!0)&&!K.json&&H.length>1)J(""),J(U6(H,K));return Y};async function y6(H={}){if(!F(H))throw new TypeError(`expected object, got ${H.constructor.name}`);if(H.samples!=null&&typeof H.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${H.samples.constructor.name}`);if(H.time!=null&&typeof H.time!=="number")throw new TypeError(`expected number as 'time' option, got ${H.time.constructor.name}`);if(H.warmup!=null&&typeof H.warmup!=="number"&&typeof H.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${H.warmup.constructor.name}`);if(H.json!=null&&typeof H.json!=="number"&&typeof H.json!=="boolean")throw new TypeError(`expected number or boolean as 'json' option, got ${H.json.constructor.name}`);if(H.reporter!=null&&!G(H.reporter))throw new TypeError(`expected function as 'reporter' option, got ${H.reporter.constructor.name}`);if(H.file!=null&&typeof H.file!=="string")throw new TypeError(`expected string as 'file' option, got ${H.file.constructor.name}`);if(typeof H.file==="string"&&H.file.trim().length===0)throw new TypeError("expected non-empty string as 'file' option");if(H.now!=null&&!G(H.now))throw new TypeError(`expected function as 'now' option, got ${H.now.constructor.name}`);H.silent=H.silent??!1,H.units=H.units??!1,H.colors=H.colors??P6,H.size=n(w.map((X)=>X.name));let J=H.silent===!0?W:j6,K={benchmarks:w,cpu:`${O6}`,runtime:`${T} ${R6} (${D6})`};if(!H.json&&w.length>0)J(X6(K,H)),J(t(H));let Q=await F6(w.filter((X)=>X.group==null),J,H);for(let[X,U]of m){if(!H.json){if(Q)J("");J(Y6(X,H))}N(U.before)?await U.before.call(this):U.before.call(this),Q=await F6(w.filter((E)=>E.group===X),J,H,U),N(U.after)?await U.after.call(this):U.after.call(this)}if(K=G(H.reporter)?H.reporter(K):K,!H.json&&H.units)J(Q6(H));if(H.json||H.file){let X=JSON.stringify(K,void 0,typeof H.json!=="number"?0:H.json);if(H.json)J(X);if(H.file)w6(H.file,X)}let Y=JSON.parse(JSON.stringify(K));return o6(),Y}var W6=(H)=>{return H.benchmarks.filter((J)=>J.error==null).map(({name:J,stats:K})=>{return{[J]:{latency:{value:K?.latency?.avg,lower_value:K?.latency?.avg-K?.latency?.sd,upper_value:K?.latency?.avg+K?.latency?.sd},throughput:{value:K?.throughput?.avg,lower_value:K?.throughput?.avg-K?.throughput?.sd,upper_value:K?.throughput?.avg+K?.throughput?.sd}}}}).reduce((J,K)=>Object.assign(J,K),{})}; | ||
`))}function J6(H,{size:J,latency:K=!0,throughput:Q=!0,colors:Y=!0,latencyMinMax:X=!0,latencyPercentiles:U=!0}){return`${h(Y,P(Y,`cpu: ${H.cpu}`))}\n${h(Y,P(Y,`runtime: ${H.runtime}`))}\n\n${"benchmark".padEnd(J," ")}${!K?"":"time/iter".padStart(20," ")}${!Q?"":"iters/s".padStart(20," ")}${!X?"":"(min \u2026 max time/iter)".padStart(24," ")}${!U?"":` ${"p50/median".padStart(20," ")} ${"p75".padStart(9," ")} ${"p99".padStart(9," ")} ${"p995".padStart(9," ")}`}`}function K6(H,J={size:r,latency:!0,throughput:!0,colors:!0,latencyMinMax:!0,latencyPercentiles:!0}){if(H.startsWith(g))H=w6(J.colors,"unnamed");return`\u2022 ${C(J.colors,H)}\n${h(J.colors,P(J.colors,p(J)))}`}function Q6(H,J,{size:K,latency:Q=!0,throughput:Y=!0,colors:X=!0,latencyMixMax:U=!0,latencyPercentiles:G=!0}){return`${H.padEnd(K," ")}${!Q?"":`${q(X,L(J.latency.avg))} \xB1 ${(J.latency.rmoe>y?I:c)(X,u(J.latency.rmoe))}`.padStart(20+20*X," ")}${!Y?"":`${q(X,m(J.throughput.avg))} \xB1 ${(J.throughput.rmoe>y?I:c)(X,u(J.throughput.rmoe))}`.padStart(20+20*X," ")}${!U?"":`(${N(X,L(J.latency.min))} \u2026 ${B6(X,L(J.latency.max))})`.padStart(24+20*X," ")}${!G?"":` ${n(J.latency.mad)>0?`${O(X,L(J.latency.p50))} \xB1 ${I(X,L(J.latency.mad))}`.padStart(20+20*X," "):O(X,L(J.latency.p50)).padStart(20+10*X," ")} ${O(X,L(J.latency.p75)).padStart(9+10*X," ")} ${O(X,L(J.latency.p99)).padStart(9+10*X," ")} ${O(X,L(J.latency.p995)).padStart(9+10*X," ")}`}`}function a(H,{latency:J=!0,throughput:K=!0,colors:Q=!0}){if(H.some((X)=>X.error!=null))throw new Error("Cannot display warning on benchmarks with error");let Y=[];for(let X of H){if(X.stats.ss===!1)Y.push(`${C(Q,q(Q,"Warning"))}: ${C(Q,N(Q,X.name))} has a sample size below statistical significance: ${I(Q,X.samples)}`);if(J&&X.stats.latency.rmoe>y)Y.push(`${C(Q,q(Q,"Warning"))}: ${C(Q,N(Q,X.name))} has a high latency relative margin of error: ${I(Q,u(X.stats.latency.rmoe))}`);if(K&&X.stats.throughput.rmoe>y)Y.push(`${C(Q,q(Q,"Warning"))}: ${C(Q,N(Q,X.name))} has a high latency throughput margin of error: ${I(Q,m(X.stats.throughput.rmoe))}`);if(J&&n(X.stats.latency.mad)>0)Y.push(`${C(Q,q(Q,"Warning"))}: ${C(Q,N(Q,X.name))} has a non zero latency median absolute deviation: ${I(Q,L(X.stats.latency.mad))}`);if(K&&Math.trunc(X.stats.throughput.mad)>0)Y.push(`${C(Q,q(Q,"Warning"))}: ${C(Q,N(Q,X.name))} has a non zero throughput median absolute deviation: ${I(Q,m(X.stats.throughput.mad))}`)}return Y.join("\n")}function X6(H,{colors:J=!0}){if(H.some((Q)=>Q.error!=null))throw new Error("Cannot summarize benchmarks with error");if(H.length<2)throw new Error("Cannot summarize less than two benchmarks");H.sort((Q,Y)=>Q.stats.latency.avg-Y.stats.latency.avg);let K=H.find((Q)=>Q.baseline)??H[0];return`${`${K.group==null||K.group.startsWith(g)?"":`${C(J,P(J,K.group.trim().split(/\s+/).length>1?`'${K.group}'`:`${K.group}`))} `}${C(J,P(J,"summary"))}`}\n ${C(J,N(J,K.name))}${H.filter((Q)=>Q!==K).map((Q)=>{let Y=Q.stats.latency.avg/E(K.stats.latency.avg),U=_6(Q.stats.latency.avg,Q.stats.latency.sd,K.stats.latency.avg,K.stats.latency.sd)/E(Math.sqrt(K.stats.samples+Q.stats.samples)),G=B[(K.stats.samples+Q.stats.samples-1||1).toString()]||B.infinity,_=U*G/E(Y)*100;return`\n ${(1>Y?I:O)(J,1>Y?s(1/E(Y)):s(Y))} \xB1 ${c(J,u(_))} times ${1>Y?"slower":"faster"} than ${C(J,N(J,Q.name))}`}).join("")}`}var S=null,b=new Map,R=[];function x6(H,J=void 0){if(H!=null&&typeof H!=="string"&&!x(H)&&!W(H))throw new TypeError(`expected string, object or function, got ${H.constructor.name}`);if(W(H))J=H;if(!W(J))throw new TypeError(`expected function, got ${J.constructor.name}`);if(z(J))throw new TypeError(`expected synchronous function, got asynchronous function ${J.constructor.name}`);if(x(H)){if(H.name!=null&&typeof H.name!=="string")throw new TypeError(`expected string as 'name' option, got ${H.name.constructor.name}`);if(H.summary!=null&&typeof H.summary!=="boolean")throw new TypeError(`expected boolean as 'summary' option, got ${H.summary.constructor.name}`);if(H.samples!=null&&typeof H.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${H.samples.constructor.name}`);if(H.time!=null&&typeof H.time!=="number")throw new TypeError(`expected number as 'time' option, got ${H.time.constructor.name}`);if(H.warmup!=null&&typeof H.warmup!=="number"&&typeof H.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${H.warmup.constructor.name}`);if(H.now!=null&&Function!==H.now.constructor)throw new TypeError(`expected function as 'now' option, got ${H.now.constructor.name}`);if(H.before!=null&&!W(H.before))throw new TypeError(`expected function as 'before' option, got ${H.before.constructor.name}`);if(H.after!=null&&!W(H.after))throw new TypeError(`expected function as 'after' option, got ${H.after.constructor.name}`)}if(S=(typeof H==="string"?H.trim():H.name?.trim())||`${g}${b.size+1}`,!b.has(S))b.set(S,{summary:H.summary??!0,samples:H.samples??j,time:H.time??A,warmup:H.warmup??!0,now:H.now??v,before:H.before??V,after:H.after??V});J(),S=null}function v6(H,J=void 0,K={}){if(W(H))J=H,H=J.name;i(J,K),H=H.trim(),R.push({before:K.before??V,beforeEach:K.beforeEach??V,fn:J,afterEach:K.afterEach??V,after:K.after??V,name:H,now:K.now??v,group:S,time:K.time??A,samples:K.samples??j,warmup:K.warmup??!0,baseline:!1,async:k(J)})}function S6(H,J=void 0,K={}){if(W(H))J=H,H=J.name;i(J,K),H=H.trim(),R.push({before:K.before??V,beforeEach:K.beforeEach??V,fn:J,afterEach:K.afterEach??V,after:K.after??V,name:H,now:K.now??v,group:S,time:K.time??A,samples:K.samples??j,warmup:K.warmup??!0,baseline:!0,async:k(J)})}function r6(){b.clear(),R.length=0}var A6=async(H,J,K={},Q={})=>{let Y=!1;for(let X of H){Y=!0,o(X,Q),o(X,K);try{if(M6(),X.stats=await O6(X.fn,{async:X.async,samples:X.samples,time:X.time,warmup:X.warmup,now:X.now,before:X.before,after:X.after,beforeEach:X.beforeEach,afterEach:X.afterEach}),!K.json)J(Q6(X.name,X.stats,K))}catch(U){if(X.error=U,!K.json)J($6(X.name,X.error,K))}}if(H=H.filter((X)=>X.error==null),!K.json&&a(H,K))J(""),J(a(H,K));if((Object.keys(Q).length===0||Q.summary===!0)&&!K.json&&H.length>1)J(""),J(X6(H,K));return Y};async function F6(H={}){if(!x(H))throw new TypeError(`expected object, got ${H.constructor.name}`);if(H.samples!=null&&typeof H.samples!=="number")throw new TypeError(`expected number as 'samples' option, got ${H.samples.constructor.name}`);if(H.time!=null&&typeof H.time!=="number")throw new TypeError(`expected number as 'time' option, got ${H.time.constructor.name}`);if(H.warmup!=null&&typeof H.warmup!=="number"&&typeof H.warmup!=="boolean")throw new TypeError(`expected number or boolean as 'warmup' option, got ${H.warmup.constructor.name}`);if(H.json!=null&&typeof H.json!=="number"&&typeof H.json!=="boolean")throw new TypeError(`expected number or boolean as 'json' option, got ${H.json.constructor.name}`);if(H.reporter!=null&&!W(H.reporter))throw new TypeError(`expected function as 'reporter' option, got ${H.reporter.constructor.name}`);if(H.file!=null&&typeof H.file!=="string")throw new TypeError(`expected string as 'file' option, got ${H.file.constructor.name}`);if(typeof H.file==="string"&&H.file.trim().length===0)throw new TypeError("expected non-empty string as 'file' option");if(H.now!=null&&!W(H.now))throw new TypeError(`expected function as 'now' option, got ${H.now.constructor.name}`);H.silent=H.silent??!1,H.units=H.units??!1,H.colors=H.colors??R6,H.size=r(R.map((X)=>X.name));let J=H.silent===!0?V:P6,K={benchmarks:R,cpu:`${q6}`,runtime:`${T} ${z6} (${N6})`};if(!H.json&&R.length>0)J(J6(K,H)),J(p(H));let Q=await A6(R.filter((X)=>X.group==null),J,H);for(let[X,U]of b){if(!H.json){if(Q)J("");J(K6(X,H))}z(U.before)?await U.before.call(this):U.before.call(this),Q=await A6(R.filter((G)=>G.group===X),J,H,U),z(U.after)?await U.after.call(this):U.after.call(this)}if(K=W(H.reporter)?H.reporter(K):K,!H.json&&H.units)J(H6(H));if(H.json||H.file){let X=JSON.stringify(K,void 0,typeof H.json!=="number"?0:H.json);if(H.json)J(X);if(H.file)D6(H.file,X)}let Y=JSON.parse(JSON.stringify(K));return r6(),Y}var Y6=(H)=>{return H.benchmarks.filter((J)=>J.error==null).map(({name:J,stats:K})=>{return{[J]:{latency:{value:K?.latency?.avg,lower_value:K?.latency?.avg-K?.latency?.sd,upper_value:K?.latency?.avg+K?.latency?.sd},throughput:{value:K?.throughput?.avg,lower_value:K?.throughput?.avg-K?.throughput?.sd,upper_value:K?.throughput?.avg+K?.throughput?.sd}}}}).reduce((J,K)=>Object.assign(J,K),{})}; | ||
//# debugId=0AE515F52113B3DB64756E2164756E21 | ||
//# debugId=ABD7D8EFE705412D64756E2164756E21 |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.8.9", | ||
"version": "0.8.10", | ||
"packageManager": "bun@1.1.31", | ||
@@ -9,0 +9,0 @@ "bin": { |
@@ -96,3 +96,3 @@ <h1 align=center>tatami-ng</h1> | ||
... | ||
} from 'https://cdn.jsdelivr.net/npm/tatami-ng@0.8.9/dist/browser/index.js' | ||
} from 'https://cdn.jsdelivr.net/npm/tatami-ng@0.8.10/dist/browser/index.js' | ||
</script> | ||
@@ -99,0 +99,0 @@ ``` |
@@ -313,10 +313,2 @@ import { spawnSync as nodeSpawnSync } from 'node:child_process' | ||
latencySamples.sort((a, b) => a - b) | ||
const latencyAvg = average(latencySamples) | ||
const latencyVr = variance(latencySamples, latencyAvg) | ||
const latencySd = Math.sqrt(latencyVr) | ||
const latencySem = latencySd / Math.sqrt(latencySamples.length) | ||
const latencyCritical = | ||
tTable[(latencySamples.length - 1 || 1).toString()] || tTable.infinity | ||
const latencyMoe = latencySem * latencyCritical | ||
const latencyRmoe = (latencyMoe / checkDividend(latencyAvg)) * 100 | ||
@@ -329,10 +321,2 @@ // Throughput | ||
.sort((a, b) => a - b) | ||
const throughputAvg = average(throughputSamples) | ||
const throughputVr = variance(throughputSamples, throughputAvg) | ||
const throughputSd = Math.sqrt(throughputVr) | ||
const throughputSem = throughputSd / Math.sqrt(throughputSamples.length) | ||
const throughputCritical = | ||
tTable[(throughputSamples.length - 1 || 1).toString()] || tTable.infinity | ||
const throughputMoe = throughputSem * throughputCritical | ||
const throughputRmoe = (throughputMoe / checkDividend(throughputAvg)) * 100 | ||
@@ -342,33 +326,33 @@ return { | ||
ss: latencySamples.length >= minimumSamples, | ||
latency: { | ||
min: latencySamples[0], | ||
max: latencySamples[latencySamples.length - 1], | ||
p50: medianSorted(latencySamples), | ||
p75: quantileSorted(latencySamples, 0.75), | ||
p99: quantileSorted(latencySamples, 0.99), | ||
p995: quantileSorted(latencySamples, 0.995), | ||
avg: latencyAvg, | ||
vr: latencyVr, | ||
sd: latencySd, | ||
moe: latencyMoe, | ||
rmoe: latencyRmoe, | ||
aad: absoluteDeviation(latencySamples, average), | ||
mad: absoluteDeviation(latencySamples, medianSorted), | ||
}, | ||
throughput: { | ||
min: throughputSamples[0], | ||
max: throughputSamples[latencySamples.length - 1], | ||
p50: medianSorted(throughputSamples), | ||
p75: quantileSorted(throughputSamples, 0.75), | ||
p99: quantileSorted(throughputSamples, 0.99), | ||
p995: quantileSorted(throughputSamples, 0.995), | ||
avg: throughputAvg, | ||
vr: throughputVr, | ||
sd: throughputSd, | ||
moe: throughputMoe, | ||
rmoe: throughputRmoe, | ||
aad: absoluteDeviation(throughputSamples, average), | ||
mad: absoluteDeviation(throughputSamples, medianSorted), | ||
}, | ||
latency: getStatsSorted(latencySamples), | ||
throughput: getStatsSorted(throughputSamples), | ||
} | ||
} | ||
const getStatsSorted = samples => { | ||
const avg = average(samples) | ||
const vr = variance(samples, avg) | ||
const sd = Math.sqrt(vr) | ||
const sem = sd / Math.sqrt(samples.length) | ||
const df = samples.length - 1 | ||
const critical = tTable[(df || 1).toString()] || tTable.infinity | ||
const moe = sem * critical | ||
const rmoe = (moe / checkDividend(avg)) * 100 | ||
const p50 = medianSorted(samples) | ||
return { | ||
min: samples[0], | ||
max: samples[df], | ||
p50, | ||
p75: quantileSorted(samples, 0.75), | ||
p99: quantileSorted(samples, 0.99), | ||
p995: quantileSorted(samples, 0.995), | ||
avg, | ||
vr, | ||
sd, | ||
moe, | ||
rmoe, | ||
aad: absoluteDeviation(samples, average, avg), | ||
mad: absoluteDeviation(samples, medianSorted, p50), | ||
} | ||
} |
@@ -50,8 +50,11 @@ import { checkDividend } from './utils.js' | ||
export const absoluteDeviation = (samples, aggFn) => { | ||
const value = aggFn(samples) | ||
export const absoluteDeviation = ( | ||
samples, | ||
aggFn, | ||
aggValue = aggFn(samples) | ||
) => { | ||
const absoluteDeviations = [] | ||
for (const sample of samples) { | ||
absoluteDeviations.push(Math.abs(sample - value)) | ||
absoluteDeviations.push(Math.abs(sample - aggValue)) | ||
} | ||
@@ -58,0 +61,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
388638
2963