MCPcopy Index your code
hub / github.com/ChinaSiro/claude-code-sourcemap / CD6

Function CD6

package/cli.js:201–201  ·  view source on GitHub ↗
(q,K,_)

Source from the content-addressed store, hash-verified

199`)||q.includes("\r")||q.includes("\x00"))===!1}function _x5(q,K){let{headersList:_}=K,z=(_.get("referrer-policy",!0)??"").split(","),Y="";if(z.length>0)for(let $=z.length;$!==0;$--){let A=z[$-1].trim();if(Fb5.has(A)){Y=A;break}}if(Y!=="")q.referrerPolicy=Y}function zx5(){return"allowed"}function Yx5(){return"success"}function $x5(){return"success"}function Ax5(q){let K=null;K=q.mode,q.headersList.set("sec-fetch-mode",K,!0)}function Ox5(q){let K=q.origin;if(K==="client"||K===void 0)return;if(q.responseTainting==="cors"||q.mode==="websocket")q.headersList.append("origin",K,!0);else if(q.method!=="GET"&&q.method!=="HEAD"){switch(q.referrerPolicy){case"no-referrer":K=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(q.origin&&j51(q.origin)&&!j51(mp6(q)))K=null;break;case"same-origin":if(!sA8(q,mp6(q)))K=null;break;default:}q.headersList.append("origin",K,!0)}}function hD6(q,K){return q}function wx5(q,K,_){if(!q?.startTime||q.startTime<K)return{domainLookupStartTime:K,domainLookupEndTime:K,connectionStartTime:K,connectionEndTime:K,secureConnectionStartTime:K,ALPNNegotiatedProtocol:q?.ALPNNegotiatedProtocol};return{domainLookupStartTime:hD6(q.domainLookupStartTime,_),domainLookupEndTime:hD6(q.domainLookupEndTime,_),connectionStartTime:hD6(q.connectionStartTime,_),connectionEndTime:hD6(q.connectionEndTime,_),secureConnectionStartTime:hD6(q.secureConnectionStartTime,_),ALPNNegotiatedProtocol:q.ALPNNegotiatedProtocol}}function jx5(q){return hD6(lb5.now(),q)}function Hx5(q){return{startTime:q.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:q.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function Sx7(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Jx5(q){return{referrerPolicy:q.referrerPolicy}}function Mx5(q){let K=q.referrerPolicy;h_6(K);let _=null;if(q.referrer==="client"){let O=Nx7();if(!O||O.origin==="null")return"no-referrer";_=new URL(O)}else if(q.referrer instanceof URL)_=q.referrer;let z=w51(_),Y=w51(_,!0);if(z.toString().length>4096)z=Y;let $=sA8(q,z),A=up6(z)&&!up6(q.url);switch(K){case"origin":return Y!=null?Y:w51(_,!0);case"unsafe-url":return z;case"same-origin":return $?Y:"no-referrer";case"origin-when-cross-origin":return $?z:Y;case"strict-origin-when-cross-origin":{let O=mp6(q);if(sA8(z,O))return z;if(up6(z)&&!up6(O))return"no-referrer";return Y}case"strict-origin":case"no-referrer-when-downgrade":default:return A?"no-referrer":Y}}function w51(q,K){if(h_6(q instanceof URL),q=new URL(q),q.protocol==="file:"||q.protocol==="about:"||q.protocol==="blank:")return"no-referrer";if(q.username="",q.password="",q.hash="",K)q.pathname="",q.search="";return q}function up6(q){if(!(q instanceof URL))return!1;if(q.href==="about:blank"||q.href==="about:srcdoc")return!0;if(q.protocol==="data:")return!0;if(q.protocol==="file:")return!0;return K(q.origin);function K(_){if(_==null||_==="null")return!1;let z=new URL(_);if(z.protocol==="https:"||z.protocol==="wss:")return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(z.hostname)||(z.hostname==="localhost"||z.hostname.includes("localhost."))||z.hostname.endsWith(".localhost"))return!0;return!1}}function Xx5(q,K){if(aA8===void 0)return!0;let _=Cx7(K);if(_==="no metadata")return!0;if(_.length===0)return!0;let z=Wx5(_),Y=Dx5(_,z);for(let $ of Y){let{algo:A,hash:O}=$,w=aA8.createHash(A).update(q).digest("base64");if(w[w.length-1]==="=")if(w[w.length-2]==="=")w=w.slice(0,-2);else w=w.slice(0,-1);if(fx5(w,O))return!0}return!1}var Px5=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Cx7(q){let K=[],_=!0;for(let z of q.split(" ")){_=!1;let Y=Px5.exec(z);if(Y===null||Y.groups===void 0||Y.groups.algo===void 0)continue;let $=Y.groups.algo.toLowerCase();if(Ex7.includes($))K.push(Y.groups)}if(_===!0)return"no metadata";return K}function Wx5(q){let K=q[0].algo;if(K[3]==="5")return K;for(let _=1;_<q.length;++_){let z=q[_];if(z.algo[3]==="5"){K="sha512";break}else if(K[3]==="3")continue;else if(z.algo[3]==="3")K="sha384"}return K}function Dx5(q,K){if(q.length===1)return q;let _=0;for(let z=0;z<q.length;++z)if(q[z].algo===K)q[_++]=q[z];return q.length=_,q}function fx5(q,K){if(q.length!==K.length)return!1;for(let _=0;_<q.length;++_)if(q[_]!==K[_]){if(q[_]==="+"&&K[_]==="-"||q[_]==="/"&&K[_]==="_")continue;return!1}return!0}function Zx5(q){}function sA8(q,K){if(q.origin===K.origin&&q.origin==="null")return!0;if(q.protocol===K.protocol&&q.hostname===K.hostname&&q.port===K.port)return!0;return!1}function Gx5(){let q,K;return{promise:new Promise((z,Y)=>{q=z,K=Y}),resolve:q,reject:K}}function Tx5(q){return q.controller.state==="aborted"}function vx5(q){return q.controller.state==="aborted"||q.controller.state==="terminated"}function kx5(q){return rb5[q.toLowerCase()]??q}function Vx5(q){let K=JSON.stringify(q);if(K===void 0)throw TypeError("Value is not JSON serializable");return h_6(typeof K==="string"),K}var Nx5=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function bx7(q,K,_=0,z=1){class Y{#q;#K;#_;constructor($,A){this.#q=$,this.#K=A,this.#_=0}next(){if(typeof this!=="object"||this===null||!(#q in this))throw TypeError(`'next' called on an object that does not implement interface ${q} Iterator.`);let $=this.#_,A=this.#q[K],O=A.length;if($>=O)return{value:void 0,done:!0};let{[_]:w,[z]:j}=A[$];this.#_=$+1;let H;switch(this.#K){case"key":H=w;break;case"value":H=j;break;case"key+value":H=[w,j];break}return{value:H,done:!1}}}return delete Y.prototype.constructor,Object.setPrototypeOf(Y.prototype,Nx5),Object.defineProperties(Y.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${q} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function($,A){return new Y($,A)}}function yx5(q,K,_,z=0,Y=1){let $=bx7(q,_,z,Y),A={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Ip6.brandCheck(this,K),$(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Ip6.brandCheck(this,K),$(this,"value")}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Ip6.brandCheck(this,K),$(this,"key+value")}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(w,j=globalThis){if(Ip6.brandCheck(this,K),Ip6.argumentLengthCheck(arguments,1,`${q}.forEach`),typeof w!=="function")throw TypeError(`Failed to execute 'forEach' on '${q}': parameter 1 is not of type 'Function'.`);for(let{0:H,1:J}of $(this,"key+value"))w.call(j,J,H,this)}}};return Object.defineProperties(K.prototype,{...A,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:A.entries.value}})}async function Ex5(q,K,_){let z=K,Y=_,$;try{$=q.stream.getReader()}catch(A){Y(A);return}try{z(await xx7($))}catch(A){Y(A)}}function Lx5(q){return q instanceof ReadableStream||q[Symbol.toStringTag]==="ReadableStream"&&typeof q.tee==="function"}function Rx5(q){try{q.close(),q.byobRequest?.respond(0)}catch(K){if(!K.message.includes("Controller is already closed")&&!K.message.includes("ReadableStream is already closed"))throw K}}var hx5=/[^\x00-\xFF]/;function oA8(q){return h_6(!hx5.test(q)),q}async function xx7(q){let K=[],_=0;while(!0){let{done:z,value:Y}=await q.read();if(z)return Buffer.concat(K,_);if(!ob5(Y))throw TypeError("Received non-Uint8Array chunk");K.push(Y),_+=Y.length}}function Sx5(q){h_6("protocol"in q);let K=q.protocol;return K==="about:"||K==="blob:"||K==="data:"}function j51(q){return typeof q==="string"&&q[5]===":"&&q[0]==="h"&&q[1]==="t"&&q[2]==="t"&&q[3]==="p"&&q[4]==="s"||q.protocol==="https:"}function Ix7(q){h_6("protocol"in q);let K=q.protocol;return K==="http:"||K==="https:"}function Cx5(q,K){let _=q;if(!_.startsWith("bytes"))return"failure";let z={position:5};if(K)R_6((w)=>w==="\t"||w===" ",_,z);if(_.charCodeAt(z.position)!==61)return"failure";if(z.position++,K)R_6((w)=>w==="\t"||w===" ",_,z);let Y=R_6((w)=>{let j=w.charCodeAt(0);return j>=48&&j<=57},_,z),$=Y.length?Number(Y):null;if(K)R_6((w)=>w==="\t"||w===" ",_,z);if(_.charCodeAt(z.position)!==45)return"failure";if(z.position++,K)R_6((w)=>w==="\t"||w===" ",_,z);let A=R_6((w)=>{let j=w.charCodeAt(0);return j>=48&&j<=57},_,z),O=A.length?Number(A):null;if(z.position<_.length)return"failure";if(O===null&&$===null)return"failure";if($>O)return"failure";return{rangeStartValue:$,rangeEndValue:O}}function bx5(q,K,_){let z="bytes ";return z+=oA8(`${q}`),z+="-",z+=oA8(`${K}`),z+="/",z+=oA8(`${_}`),z}class ux7 extends Bb5{#q;constructor(q){super();this.#q=q}_transform(q,K,_){if(!this._inflateStream){if(q.length===0){_();return}this._inflateStream=(q[0]&15)===8?Vx7.createInflate(this.#q):Vx7.createInflateRaw(this.#q),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",(z)=>this.destroy(z))}this._inflateStream.write(q,K,_)}_final(q){if(this._inflateStream)this._inflateStream.end(),this._inflateStream=null;q()}}function xx5(q){return new ux7(q)}function Ix5(q){let K=null,_=null,z=null,Y=mx7("content-type",q);if(Y===null)return"failure";for(let $ of Y){let A=cb5($);if(A==="failure"||A.essence==="*/*")continue;if(z=A,z.essence!==_){if(K=null,z.parameters.has("charset"))K=z.parameters.get("charset");_=z.essence}else if(!z.parameters.has("charset")&&K!==null)z.parameters.set("charset",K)}if(z==null)return"failure";return z}function ux5(q){let K=q,_={position:0},z=[],Y="";while(_.position<K.length){if(Y+=R_6(($)=>$!=='"'&&$!==",",K,_),_.position<K.length)if(K.charCodeAt(_.position)===34){if(Y+=Qb5(K,_),_.position<K.length)continue}else h_6(K.charCodeAt(_.position)===44),_.position++;Y=db5(Y,!0,!0,($)=>$===9||$===32),z.push(Y),Y=""}return z}function mx7(q,K){let _=K.get(q,!0);if(_===null)return null;return ux5(_)}var mx5=new TextDecoder;function px5(q){if(q.length===0)return"";if(q[0]===239&&q[1]===187&&q[2]===191)q=q.subarray(3);return mx5.decode(q)}class px7{get baseUrl(){return Nx7()}get origin(){return this.baseUrl?.origin}policyContainer=Sx7()}class Bx7{settingsObject=new px7}var Bx5=new Bx7;gx7.exports={isAborted:Tx5,isCancelled:vx5,isValidEncodedURL:Rx7,createDeferredPromise:Gx5,ReadableStreamFrom:ib5,tryUpgradeRequestToAPotentiallyTrustworthyURL:Zx5,clampAndCoarsenConnectionTimingInfo:wx5,coarsenedSharedCurrentTime:jx5,determineRequestsReferrer:Mx5,makePolicyContainer:Sx7,clonePolicyContainer:Jx5,appendFetchMetadata:Ax5,appendRequestOriginHeader:Ox5,TAOCheck:$x5,corsCheck:Yx5,crossOriginResourcePolicyCheck:zx5,createOpaqueTimingInfo:Hx5,setRequestReferrerPolicyOnRedirect:_x5,isValidHTTPToken:yx7,requestBadPort:tb5,requestCurrentURL:mp6,responseURL:Lx7,responseLocationURL:ab5,isBlobLike:nb5,isURLPotentiallyTrustworthy:up6,isValidReasonPhrase:qx5,sameOrigin:sA8,normalizeMethod:kx5,serializeJavascriptValueToJSONString:Vx5,iteratorMixin:yx5,createIterator:bx7,isValidHeaderName:Kx5,isValidHeaderValue:hx7,isErrorLike:eb5,fullyReadBody:Ex5,bytesMatch:Xx5,isReadableStreamLike:Lx5,readableStreamClose:Rx5,isomorphicEncode:oA8,urlIsLocal:Sx5,urlHasHttpsScheme:j51,urlIsHttpHttpsScheme:Ix7,readAllBytes:xx7,simpleRangeHeaderValue:Cx5,buildContentRange:bx5,parseMetadata:Cx7,createInflate:xx5,extractMimeType:Ix5,getDecodeSplit:mx7,utf8DecodeBytes:px5,environmentSettingsObject:Bx5}});var ne=m((gp$,Fx7)=>{Fx7.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var H51=m((Fp$,Ux7)=>{var{Blob:gx5,File:Fx5}=U6("node:buffer"),{kState:kl}=ne(),{webidl:uB}=vf();class mB{constructor(q,K,_={}){let z=K,Y=_.type,$=_.lastModified??Date.now();this[kl]={blobLike:q,name:z,type:Y,lastModified:$}}stream(...q){return uB.brandCheck(this,mB),this[kl].blobLike.stream(...q)}arrayBuffer(...q){return uB.brandCheck(this,mB),this[kl].blobLike.arrayBuffer(...q)}slice(...q){return uB.brandCheck(this,mB),this[kl].blobLike.slice(...q)}text(...q){return uB.brandCheck(this,mB),this[kl].blobLike.text(...q)}get size(){return uB.brandCheck(this,mB),this[kl].blobLike.size}get type(){return uB.brandCheck(this,mB),this[kl].blobLike.type}get name(){return uB.brandCheck(this,mB),this[kl].name}get lastModified(){return uB.brandCheck(this,mB),this[kl].lastModified}get[Symbol.toStringTag](){return"File"}}uB.converters.Blob=uB.interfaceConverter(gx5);function Ux5(q){return q instanceof Fx5||q&&(typeof q.stream==="function"||typeof q.arrayBuffer==="function")&&q[Symbol.toStringTag]==="File"}Ux7.exports={FileLike:mB,isFileLike:Ux5}});var pp6=m((Up$,nx7)=>{var{isBlobLike:tA8,iteratorMixin:Qx5}=NE(),{kState:iT}=ne(),{kEnumerableProperty:SD6}=Yz(),{FileLike:Qx7,isFileLike:dx5}=H51(),{webidl:Fw}=vf(),{File:lx7}=U6("node:buffer"),dx7=U6("node:util"),cx7=globalThis.File??lx7;class pB{constructor(q){if(Fw.util.markAsUncloneable(this),q!==void 0)throw Fw.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[iT]=[]}append(q,K,_=void 0){Fw.brandCheck(this,pB);let z="FormData.append";if(Fw.argumentLengthCheck(arguments,2,z),arguments.length===3&&!tA8(K))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");q=Fw.converters.USVString(q,z,"name"),K=tA8(K)?Fw.converters.Blob(K,z,"value",{strict:!1}):Fw.converters.USVString(K,z,"value"),_=arguments.length===3?Fw.converters.USVString(_,z,"filename"):void 0;let Y=J51(q,K,_);this[iT].push(Y)}delete(q){Fw.brandCheck(this,pB);let K="FormData.delete";Fw.argumentLengthCheck(arguments,1,K),q=Fw.converters.USVString(q,K,"name"),this[iT]=this[iT].filter((_)=>_.name!==q)}get(q){Fw.brandCheck(this,pB);let K="FormData.get";Fw.argumentLengthCheck(arguments,1,K),q=Fw.converters.USVString(q,K,"name");let _=this[iT].findIndex((z)=>z.name===q);if(_===-1)return null;return this[iT][_].value}getAll(q){Fw.brandCheck(this,pB);let K="FormData.getAll";return Fw.argumentLengthCheck(arguments,1,K),q=Fw.converters.USVString(q,K,"name"),this[iT].filter((_)=>_.name===q).map((_)=>_.value)}has(q){Fw.brandCheck(this,pB);let K="FormData.has";return Fw.argumentLengthCheck(arguments,1,K),q=Fw.converters.USVString(q,K,"name"),this[iT].findIndex((_)=>_.name===q)!==-1}set(q,K,_=void 0){Fw.brandCheck(this,pB);let z="FormData.set";if(Fw.argumentLengthCheck(arguments,2,z),arguments.length===3&&!tA8(K))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");q=Fw.converters.USVString(q,z,"name"),K=tA8(K)?Fw.converters.Blob(K,z,"name",{strict:!1}):Fw.converters.USVString(K,z,"name"),_=arguments.length===3?Fw.converters.USVString(_,z,"name"):void 0;let Y=J51(q,K,_),$=this[iT].findIndex((A)=>A.name===q);if($!==-1)this[iT]=[...this[iT].slice(0,$),Y,...this[iT].slice($+1).filter((A)=>A.name!==q)];else this[iT].push(Y)}[dx7.inspect.custom](q,K){let _=this[iT].reduce((Y,$)=>{if(Y[$.name])if(Array.isArray(Y[$.name]))Y[$.name].push($.value);else Y[$.name]=[Y[$.name],$.value];else Y[$.name]=$.value;return Y},{__proto__:null});K.depth??=q,K.colors??=!0;let z=dx7.formatWithOptions(K,_);return`FormData ${z.slice(z.indexOf("]")+2)}`}}Qx5("FormData",pB,iT,"name","value");Object.defineProperties(pB.prototype,{append:SD6,delete:SD6,get:SD6,getAll:SD6,has:SD6,set:SD6,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function J51(q,K,_){if(typeof K==="string");else{if(!dx5(K))K=K instanceof Blob?new cx7([K],"blob",{type:K.type}):new Qx7(K,"blob",{type:K.type});if(_!==void 0){let z={type:K.type,lastModified:K.lastModified};K=K instanceof lx7?new cx7([K],_,z):new Qx7(K,_,z)}}return{name:q,value:K}}nx7.exports={FormData:pB,makeEntry:J51}});var tx7=m((Qp$,sx7)=>{var{isUSVString:ix7,bufferToLowerCasedHeaderName:cx5}=Yz(),{utf8DecodeBytes:lx5}=NE(),{HTTP_TOKEN_CODEPOINTS:nx5,isomorphicDecode:rx7}=tk(),{isFileLike:ix5}=H51(),{makeEntry:rx5}=pp6(),eA8=U6("node:assert"),{File:ox5}=U6("node:buffer"),ax5=globalThis.File??ox5,sx5=Buffer.from('form-data; name="'),ox7=Buffer.from("; filename"),tx5=Buffer.from("--"),ex5=Buffer.from(`--\r
200`);function qI5(q){for(let K=0;K<q.length;++K)if((q.charCodeAt(K)&-128)!==0)return!1;return!0}function KI5(q){let K=q.length;if(K<27||K>70)return!1;for(let _=0;_<K;++_){let z=q.charCodeAt(_);if(!(z>=48&&z<=57||z>=65&&z<=90||z>=97&&z<=122||z===39||z===45||z===95))return!1}return!0}function _I5(q,K){eA8(K!=="failure"&&K.essence==="multipart/form-data");let _=K.parameters.get("boundary");if(_===void 0)return"failure";let z=Buffer.from(`--${_}`,"utf8"),Y=[],$={position:0};while(q[$.position]===13&&q[$.position+1]===10)$.position+=2;let A=q.length;while(q[A-1]===10&&q[A-2]===13)A-=2;if(A!==q.length)q=q.subarray(0,A);while(!0){if(q.subarray($.position,$.position+z.length).equals(z))$.position+=z.length;else return"failure";if($.position===q.length-2&&qO8(q,tx5,$)||$.position===q.length-4&&qO8(q,ex5,$))return Y;if(q[$.position]!==13||q[$.position+1]!==10)return"failure";$.position+=2;let O=zI5(q,$);if(O==="failure")return"failure";let{name:w,filename:j,contentType:H,encoding:J}=O;$.position+=2;let M;{let P=q.indexOf(z.subarray(2),$.position);if(P===-1)return"failure";if(M=q.subarray($.position,P-4),$.position+=M.length,J==="base64")M=Buffer.from(M.toString(),"base64")}if(q[$.position]!==13||q[$.position+1]!==10)return"failure";else $.position+=2;let X;if(j!==null){if(H??="text/plain",!qI5(H))H="";X=new ax5([M],j,{type:H})}else X=lx5(Buffer.from(M));eA8(ix7(w)),eA8(typeof X==="string"&&ix7(X)||ix5(X)),Y.push(rx5(w,X,j))}}function zI5(q,K){let _=null,z=null,Y=null,$=null;while(!0){if(q[K.position]===13&&q[K.position+1]===10){if(_===null)return"failure";return{name:_,filename:z,contentType:Y,encoding:$}}let A=CD6((O)=>O!==10&&O!==13&&O!==58,q,K);if(A=M51(A,!0,!0,(O)=>O===9||O===32),!nx5.test(A.toString()))return"failure";if(q[K.position]!==58)return"failure";switch(K.position++,CD6((O)=>O===32||O===9,q,K),cx5(A)){case"content-disposition":{if(_=z=null,!qO8(q,sx5,K))return"failure";if(K.position+=17,_=ax7(q,K),_===null)return"failure";if(qO8(q,ox7,K)){let O=K.position+ox7.length;if(q[O]===42)K.position+=1,O+=1;if(q[O]!==61||q[O+1]!==34)return"failure";if(K.position+=12,z=ax7(q,K),z===null)return"failure"}break}case"content-type":{let O=CD6((w)=>w!==10&&w!==13,q,K);O=M51(O,!1,!0,(w)=>w===9||w===32),Y=rx7(O);break}case"content-transfer-encoding":{let O=CD6((w)=>w!==10&&w!==13,q,K);O=M51(O,!1,!0,(w)=>w===9||w===32),$=rx7(O);break}default:CD6((O)=>O!==10&&O!==13,q,K)}if(q[K.position]!==13&&q[K.position+1]!==10)return"failure";else K.position+=2}}function ax7(q,K){eA8(q[K.position-1]===34);let _=CD6((z)=>z!==10&&z!==13&&z!==34,q,K);if(q[K.position]!==34)return null;else K.position++;return _=new TextDecoder().decode(_).replace(/%0A/ig,`
201`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),_}function CD6(q,K,_){let z=_.position;while(z<K.length&&q(K[z]))++z;return K.subarray(_.position,_.position=z)}function M51(q,K,_,z){let Y=0,$=q.length-1;if(K)while(Y<q.length&&z(q[Y]))Y++;if(_)while($>0&&z(q[$]))$--;return Y===0&&$===q.length-1?q:q.subarray(Y,$+1)}function qO8(q,K,_){if(q.length<K.length)return!1;for(let z=0;z<K.length;z++)if(K[z]!==q[_.position+z])return!1;return!0}sx7.exports={multipartFormDataParser:_I5,validateBoundary:KI5}});var ID6=m((dp$,wI7)=>{var Bp6=Yz(),{ReadableStreamFrom:YI5,isBlobLike:ex7,isReadableStreamLike:$I5,readableStreamClose:AI5,createDeferredPromise:OI5,fullyReadBody:wI5,extractMimeType:jI5,utf8DecodeBytes:_I7}=NE(),{FormData:qI7}=pp6(),{kState:xD6}=ne(),{webidl:HI5}=vf(),{Blob:JI5}=U6("node:buffer"),X51=U6("node:assert"),{isErrored:zI7,isDisturbed:MI5}=U6("node:stream"),{isArrayBuffer:XI5}=U6("node:util/types"),{serializeAMimeType:PI5}=tk(),{multipartFormDataParser:WI5}=tx7(),P51;try{let q=U6("node:crypto");P51=(K)=>q.randomInt(0,K)}catch{P51=(q)=>Math.floor(Math.random(q))}var KO8=new TextEncoder;function DI5(){}var YI7=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,$I7;if(YI7)$I7=new FinalizationRegistry((q)=>{let K=q.deref();if(K&&!K.locked&&!MI5(K)&&!zI7(K))K.cancel("Response object has been garbage collected").catch(DI5)});function AI7(q,K=!1){let _=null;if(q instanceof ReadableStream)_=q;else if(ex7(q))_=q.stream();else _=new ReadableStream({async pull(w){let j=typeof Y==="string"?KO8.encode(Y):Y;if(j.byteLength)w.enqueue(j);queueMicrotask(()=>AI5(w))},start(){},type:"bytes"});X51($I5(_));let z=null,Y=null,$=null,A=null;if(typeof q==="string")Y=q,A="text/plain;charset=UTF-8";else if(q instanceof URLSearchParams)Y=q.toString(),A="application/x-www-form-urlencoded;charset=UTF-8";else if(XI5(q))Y=new Uint8Array(q.slice());else if(ArrayBuffer.isView(q))Y=new Uint8Array(q.buffer.slice(q.byteOffset,q.byteOffset+q.byteLength));else if(Bp6.isFormDataLike(q)){let w=`----formdata-undici-0${`${P51(100000000000)}`.padStart(11,"0")}`,j=`--${w}\r
202Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */let H=(D)=>D.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),J=(D)=>D.replace(/\r?\n|\r/g,`\r
203`),M=[],X=new Uint8Array([13,10]);$=0;let P=!1;for(let[D,f]of q)if(typeof f==="string"){let G=KO8.encode(j+`; name="${H(J(D))}"\r
204\r

Callers 2

zI5Function · 0.85
ax7Function · 0.85

Calls 1

qFunction · 0.70

Tested by

no test coverage detected