securityos/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js.map

1 line
8.2 KiB
Plaintext

{"version":3,"sources":["../../../src/server/stream-utils/node-web-streams-helper.ts"],"names":["streamToBufferedResult","cloneTransformStream","chainStreams","streamFromString","streamToString","createBufferedTransformStream","createInsertedHTMLStream","renderToInitialFizzStream","createRootLayoutValidatorStream","continueFizzStream","queueTask","process","env","NEXT_RUNTIME","globalThis","setTimeout","setImmediate","renderResult","textDecoder","TextDecoder","concatenatedString","writable","write","chunk","decodeText","end","on","off","pipe","source","sourceReader","readable","getReader","clone","TransformStream","start","controller","done","value","read","enqueue","transform","streams","promise","Promise","resolve","i","length","then","pipeTo","preventClose","str","ReadableStream","encodeText","close","stream","reader","bufferedString","bufferedBytes","Uint8Array","pendingFlush","flushBuffer","newBufferedBytes","byteLength","set","flush","getServerInsertedHTML","insertedHTMLChunk","ReactDOMServer","element","streamOptions","getTracer","trace","AppRenderSpan","renderToReadableStream","createHeadInsertionTransformStream","insert","inserted","freezing","insertion","content","index","indexOf","insertedHeadContent","slice","createDeferredSuffixStream","suffix","suffixFlushed","suffixFlushTask","res","createMergedTransformStream","dataStream","dataStreamFinished","dataStreamReader","err","error","createMoveSuffixStream","foundSuffix","endsWith","contentWithoutSuffix","assetPrefix","getTree","foundHtml","foundBody","includes","missingTags","filter","nonNullable","JSON","stringify","tree","renderStream","inlinedDataStream","generateStaticHTML","serverInsertedHTMLToHead","validateRootLayout","closeTag","suffixUnclosed","split","allReady","transforms","reduce","pipeThrough"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;IAeaA,sBAAsB;eAAtBA;;IAoBGC,oBAAoB;eAApBA;;IAmBAC,YAAY;eAAZA;;IAeAC,gBAAgB;eAAhBA;;IASMC,cAAc;eAAdA;;IAmBNC,6BAA6B;eAA7BA;;IAuCAC,wBAAwB;eAAxBA;;IAYAC,yBAAyB;eAAzBA;;IAwLAC,+BAA+B;eAA/BA;;IA0CMC,kBAAkB;eAAlBA;;;6BAnXM;wBAC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