UNPKG

nhfs

Version:

NHFS — A sleek HTTP file server for the web built with Next.js and HeroUI. (Alpha)

3 lines (2 loc) 14.1 kB
module.exports={603408:a=>{a.n(a.i(435178))},16745:a=>{a.n(a.i(127143))},288259:a=>{a.n(a.i(579706))},825750:a=>{a.n(a.i(542227))},263933:a=>{a.n(a.i(590702))},660874:a=>{var{m:b,e:c}=a;b.exports=a.r(929549)},715847:a=>{a.n(a.i(103439))},473452:a=>{var{m:b,e:c}=a;(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/next/dist/compiled/cookie/");var a={};(()=>{a.parse=function(a,c){if("string"!=typeof a)throw TypeError("argument str must be a string");for(var e={},f=a.split(d),g=(c||{}).decode||b,h=0;h<f.length;h++){var i=f[h],j=i.indexOf("=");if(!(j<0)){var k=i.substr(0,j).trim(),l=i.substr(++j,i.length).trim();'"'==l[0]&&(l=l.slice(1,-1)),void 0==e[k]&&(e[k]=function(a,b){try{return b(a)}catch(b){return a}}(l,g))}}return e},a.serialize=function(a,b,d){var f=d||{},g=f.encode||c;if("function"!=typeof g)throw TypeError("option encode is invalid");if(!e.test(a))throw TypeError("argument name is invalid");var h=g(b);if(h&&!e.test(h))throw TypeError("argument val is invalid");var i=a+"="+h;if(null!=f.maxAge){var j=f.maxAge-0;if(isNaN(j)||!isFinite(j))throw TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(j)}if(f.domain){if(!e.test(f.domain))throw TypeError("option domain is invalid");i+="; Domain="+f.domain}if(f.path){if(!e.test(f.path))throw TypeError("option path is invalid");i+="; Path="+f.path}if(f.expires){if("function"!=typeof f.expires.toUTCString)throw TypeError("option expires is invalid");i+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(i+="; HttpOnly"),f.secure&&(i+="; Secure"),f.sameSite)switch("string"==typeof f.sameSite?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return i};var b=decodeURIComponent,c=encodeURIComponent,d=/; */,e=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/})(),b.exports=a})()},231250:a=>{var{m:b,e:c}=a;(()=>{"use strict";var a={695:a=>{var b=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;function c(a){var b=a&&Date.parse(a);return"number"==typeof b?b:NaN}a.exports=function(a,d){var e=a["if-modified-since"],f=a["if-none-match"];if(!e&&!f)return!1;var g=a["cache-control"];if(g&&b.test(g))return!1;if(f&&"*"!==f){var h=d.etag;if(!h)return!1;for(var i=!0,j=function(a){for(var b=0,c=[],d=0,e=0,f=a.length;e<f;e++)switch(a.charCodeAt(e)){case 32:d===b&&(d=b=e+1);break;case 44:c.push(a.substring(d,b)),d=b=e+1;break;default:b=e+1}return c.push(a.substring(d,b)),c}(f),k=0;k<j.length;k++){var l=j[k];if(l===h||l==="W/"+h||"W/"+l===h){i=!1;break}}if(i)return!1}if(e){var m=d["last-modified"];if(!m||!(c(m)<=c(e)))return!1}return!0}}},c={};function d(b){var e=c[b];if(void 0!==e)return e.exports;var f=c[b]={exports:{}},g=!0;try{a[b](f,f.exports,d),g=!1}finally{g&&delete c[b]}return f.exports}d.ab="/ROOT/node_modules/next/dist/compiled/fresh/",b.exports=d(695)})()},906648:[a=>{"use strict";function b(a){return a.isOnDemandRevalidate?"on-demand":a.isRevalidate?"stale":void 0}function c(a){return a.default||a}a.s({getRevalidateReason:()=>b},906648),a.s({interopDefault:()=>c},84132),a.s({NodeNextRequest:()=>n,NodeNextResponse:()=>o},508061);var d,e=a.i(330529);class f extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new f}}class g extends Headers{constructor(a){super(),this.headers=new Proxy(a,{get(b,c,d){if("symbol"==typeof c)return e.ReflectAdapter.get(b,c,d);let f=c.toLowerCase(),g=Object.keys(a).find(a=>a.toLowerCase()===f);if(void 0!==g)return e.ReflectAdapter.get(b,g,d)},set(b,c,d,f){if("symbol"==typeof c)return e.ReflectAdapter.set(b,c,d,f);let g=c.toLowerCase(),h=Object.keys(a).find(a=>a.toLowerCase()===g);return e.ReflectAdapter.set(b,h??c,d,f)},has(b,c){if("symbol"==typeof c)return e.ReflectAdapter.has(b,c);let d=c.toLowerCase(),f=Object.keys(a).find(a=>a.toLowerCase()===d);return void 0!==f&&e.ReflectAdapter.has(b,f)},deleteProperty(b,c){if("symbol"==typeof c)return e.ReflectAdapter.deleteProperty(b,c);let d=c.toLowerCase(),f=Object.keys(a).find(a=>a.toLowerCase()===d);return void 0===f||e.ReflectAdapter.deleteProperty(b,f)}})}static seal(a){return new Proxy(a,{get(a,b,c){switch(b){case"append":case"delete":case"set":return f.callable;default:return e.ReflectAdapter.get(a,b,c)}}})}merge(a){return Array.isArray(a)?a.join(", "):a}static from(a){return a instanceof Headers?a:new g(a)}append(a,b){let c=this.headers[a];"string"==typeof c?this.headers[a]=[c,b]:Array.isArray(c)?c.push(b):this.headers[a]=b}delete(a){delete this.headers[a]}get(a){let b=this.headers[a];return void 0!==b?this.merge(b):null}has(a){return void 0!==this.headers[a]}set(a,b){this.headers[a]=b}forEach(a,b){for(let[c,d]of this.entries())a.call(b,d,c,this)}*entries(){for(let a of Object.keys(this.headers)){let b=a.toLowerCase(),c=this.get(b);yield[b,c]}}*keys(){for(let a of Object.keys(this.headers)){let b=a.toLowerCase();yield b}}*values(){for(let a of Object.keys(this.headers)){let b=this.get(a);yield b}}[Symbol.iterator](){return this.entries()}}var h=a.i(101943);a.i(677180),a.i(881338),Symbol("__next_preview_data");let i=Symbol("__prerender_bypass");var j=a.i(36090),k=a.i(534181);class l{constructor(a,b,c){this.method=a,this.url=b,this.body=c}get cookies(){var b;return this._cookies?this._cookies:this._cookies=(b=this.headers,function(){let{cookie:c}=b;if(!c)return{};let{parse:d}=a.r(473452);return d(Array.isArray(c)?c.join("; "):c)})()}}class m{constructor(a){this.destination=a}redirect(a,b){return this.setHeader("Location",a),this.statusCode=b,b===k.RedirectStatusCode.PermanentRedirect&&this.setHeader("Refresh",`0;url=${a}`),this}}class n extends l{static #a=d=j.NEXT_REQUEST_META;constructor(a){var b;super(a.method.toUpperCase(),a.url,a),this._req=a,this.headers=this._req.headers,this.fetchMetrics=null==(b=this._req)?void 0:b.fetchMetrics,this[d]=this._req[j.NEXT_REQUEST_META]||{},this.streaming=!1}get originalRequest(){return this._req[j.NEXT_REQUEST_META]=this[j.NEXT_REQUEST_META],this._req.url=this.url,this._req.cookies=this.cookies,this._req}set originalRequest(a){this._req=a}stream(){if(this.streaming)throw Object.defineProperty(Error("Invariant: NodeNextRequest.stream() can only be called once"),"__NEXT_ERROR_CODE",{value:"E467",enumerable:!1,configurable:!0});return this.streaming=!0,new ReadableStream({start:a=>{this._req.on("data",b=>{a.enqueue(new Uint8Array(b))}),this._req.on("end",()=>{a.close()}),this._req.on("error",b=>{a.error(b)})}})}}class o extends m{get originalResponse(){return i in this&&(this._res[i]=this[i]),this._res}constructor(a){super(a),this._res=a,this.textBody=void 0}get sent(){return this._res.finished||this._res.headersSent}get statusCode(){return this._res.statusCode}set statusCode(a){this._res.statusCode=a}get statusMessage(){return this._res.statusMessage}set statusMessage(a){this._res.statusMessage=a}setHeader(a,b){return this._res.setHeader(a,b),this}removeHeader(a){return this._res.removeHeader(a),this}getHeaderValues(a){let b=this._res.getHeader(a);if(void 0!==b)return(Array.isArray(b)?b:[b]).map(a=>a.toString())}hasHeader(a){return this._res.hasHeader(a)}getHeader(a){let b=this.getHeaderValues(a);return Array.isArray(b)?b.join(","):void 0}getHeaders(){return this._res.getHeaders()}appendHeader(a,b){let c=this.getHeaderValues(a)??[];return c.includes(b)||this._res.setHeader(a,[...c,b]),this}body(a){return this.textBody=a,this}send(){this._res.end(this.textBody)}onClose(a){this.originalResponse.on("close",a)}}function p(a){return void 0!==a&&("boolean"==typeof a?a:"incremental"===a)}a.s({checkIsAppPPREnabled:()=>p},506674),a.s({getFallbackRouteParams:()=>A},617084),"undefined"!=typeof performance&&["mark","measure","getEntriesByName"].every(a=>"function"==typeof performance[a]);class q extends Error{}a.s({normalizeAppPath:()=>s},739203);var r=a.i(559189);function s(a){var b;return(b=a.split("/").reduce((a,b,c,d)=>!b||(0,r.isGroupSegment)(b)||"@"===b[0]||("page"===b||"route"===b)&&c===d.length-1?a:a+"/"+b,"")).startsWith("/")?b:"/"+b}let t=["(..)(..)","(.)","(..)","(...)"],u=/[|\\{}()[\]^$+*?.-]/,v=/[|\\{}()[\]^$+*?.-]/g;function w(a){return u.test(a)?a.replace(v,"\\$&"):a}var x=a.i(118412);let y=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function z(a){let b=a.startsWith("[")&&a.endsWith("]");b&&(a=a.slice(1,-1));let c=a.startsWith("...");return c&&(a=a.slice(3)),{key:a,repeat:c,optional:b}}function A(a){let b;if("string"==typeof a)b=Object.keys((function(a){let{re:b,groups:c}=a;return a=>{let d=b.exec(a);if(!d)return!1;let e=a=>{try{return decodeURIComponent(a)}catch(a){throw Object.defineProperty(new q("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},f={};for(let[a,b]of Object.entries(c)){let c=d[b.pos];void 0!==c&&(b.repeat?f[a]=c.split("/").map(a=>e(a)):f[a]=e(c))}return f}})(function(a,b){let{includeSuffix:c=!1,includePrefix:d=!1,excludeOptionalTrailingSlash:e=!1}={},{parameterizedRoute:f,groups:g}=function(a,b,c){let d={},e=1,f=[];for(let g of(0,x.removeTrailingSlash)(a).slice(1).split("/")){let a=t.find(a=>g.startsWith(a)),h=g.match(y);if(a&&h&&h[2]){let{key:b,optional:c,repeat:g}=z(h[2]);d[b]={pos:e++,repeat:g,optional:c},f.push("/"+w(a)+"([^/]+?)")}else if(h&&h[2]){let{key:a,repeat:b,optional:g}=z(h[2]);d[a]={pos:e++,repeat:b,optional:g},c&&h[1]&&f.push("/"+w(h[1]));let i=b?g?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";c&&h[1]&&(i=i.substring(1)),f.push(i)}else f.push("/"+w(g));b&&h&&h[3]&&f.push(w(h[3]))}return{parameterizedRoute:f.join(""),groups:d}}(a,c,d),h=f;return e||(h+="(?:/)?"),{re:RegExp("^"+h+"$"),groups:g}}(a))(a));else b=a;if(0===b.length)return null;let c=new Map,d=Math.random().toString(16).slice(2);for(let a of b)c.set(a,`%%drp:${a}:${d}%%`);return c}a.s({setReferenceManifestsSingleton:()=>D},920365),a.i(266410);var B=a.i(86103);let C=Symbol.for("next.server.action-manifests");function D({page:a,clientReferenceManifest:b,serverActionsManifest:c,serverModuleMap:d}){var e;let f=null==(e=globalThis[C])?void 0:e.clientReferenceManifestsPerPage;globalThis[C]={clientReferenceManifestsPerPage:{...f,[s(a)]:b},serverActionsManifest:c,serverModuleMap:d}}a.s({isHtmlBotRequest:()=>K,shouldServeStreamingMetadata:()=>J},160567),a.s({},371150);let E=/Mediapartners-Google|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti/i;a.s({HTML_LIMITED_BOT_UA_RE_STRING:()=>G,getBotType:()=>I,isBot:()=>H},426854);let F=/google/i,G=E.source;function H(a){return F.test(a)||E.test(a)}function I(a){return F.test(a)?"dom":E.test(a)?"html":void 0}function J(a,b){let c=RegExp(b||G,"i");return!(a&&c.test(a))}function K(a){return"html"===I(a.headers["user-agent"]||"")}a.s({createServerModuleMap:()=>M},489994);var L=a.i(63838);function M({serverActionsManifest:a}){return new Proxy({},{get:(b,c)=>{var d,e,f;let g,h=null==(e=a.node)||null==(d=e[c])?void 0:d.workers;if(!h)return;let i=B.workAsyncStorage.getStore();if(!(g=i?h[f=i.page,(0,L.pathHasPrefix)(f,"app")?f:"app"+f]:Object.values(h).at(0)))return;let{moduleId:j,async:k}=g;return{id:j,name:c,chunks:[],async:k}}})}a.i(158384),a.s({getIsPossibleServerAction:()=>O},326774);var N=a.i(222794);function O(a){return function(a){let b,c;a.headers instanceof Headers?(b=a.headers.get(N.ACTION_HEADER.toLowerCase())??null,c=a.headers.get("content-type")):(b=a.headers[N.ACTION_HEADER.toLowerCase()]??null,c=a.headers["content-type"]??null);let d="POST"===a.method&&"application/x-www-form-urlencoded"===c,e=!!("POST"===a.method&&(null==c?void 0:c.startsWith("multipart/form-data"))),f=void 0!==b&&"string"==typeof b&&"POST"===a.method;return{actionId:b,isURLEncodedAction:d,isMultipartAction:e,isFetchAction:f,isPossibleServerAction:!!(f||d||e)}}(a).isPossibleServerAction}a.s({FallbackMode:()=>P,parseFallbackField:()=>Q},1147);var P=function(a){return a.BLOCKING_STATIC_RENDER="BLOCKING_STATIC_RENDER",a.PRERENDER="PRERENDER",a.NOT_FOUND="NOT_FOUND",a}({});function Q(a){if("string"==typeof a)return"PRERENDER";if(null===a)return"BLOCKING_STATIC_RENDER";if(!1===a)return"NOT_FOUND";if(void 0!==a)throw Object.defineProperty(Error(`Invalid fallback option: ${a}. Fallback option must be a string, null, undefined, or false.`),"__NEXT_ERROR_CODE",{value:"E285",enumerable:!1,configurable:!0})}a.s({sendRenderResult:()=>S},930819);var R=a.i(231250);async function S({req:a,res:b,result:c,type:d,generateEtags:e,poweredByHeader:f,cacheControl:g}){if(b.finished||b.headersSent)return;f&&"html"===d&&b.setHeader("X-Powered-By","Next.js"),g&&!b.getHeader("Cache-Control")&&b.setHeader("Cache-Control",function({revalidate:a,expire:b}){let c="number"==typeof a&&void 0!==b&&a<b?`, stale-while-revalidate=${b-a}`:"";return 0===a?"private, no-cache, no-store, max-age=0, must-revalidate":"number"==typeof a?`s-maxage=${a}${c}`:`s-maxage=${h.CACHE_ONE_YEAR}${c}`}(g));let i=c.isDynamic?null:c.toUnchunkedString();if(e&&null!==i){let c=((a,b=!1)=>(b?'W/"':'"')+(a=>{let b=a.length,c=0,d=0,e=8997,f=0,g=33826,h=0,i=40164,j=0,k=52210;for(;c<b;)e^=a.charCodeAt(c++),d=435*e,f=435*g,h=435*i,j=435*k,h+=e<<8,j+=g<<8,f+=d>>>16,e=65535&d,h+=f>>>16,g=65535&f,k=j+(h>>>16)&65535,i=65535&h;return(15&k)*0x1000000000000+0x100000000*i+65536*g+(e^k>>4)})(a).toString(36)+a.length.toString(36)+'"')(i);if(c&&b.setHeader("ETag",c),(0,R.default)(a.headers,{etag:c})&&(b.statusCode=304,b.end(),1))return}return(b.getHeader("Content-Type")||b.setHeader("Content-Type",c.contentType?c.contentType:"rsc"===d?N.RSC_CONTENT_TYPE_HEADER:"json"===d?"application/json":"text/html; charset=utf-8"),i&&b.setHeader("Content-Length",Buffer.byteLength(i)),"HEAD"===a.method)?void b.end(null):null!==i?void b.end(i):void await c.pipeToNodeResponse(b)}},[84132,508061,506674,739203,617084,920365,426854,371150,160567,489994,326774,1147,930819]],781045:a=>{a.n(a.i(909856))},913994:a=>{a.n(a.i(330020))}}; //# sourceMappingURL=_b4b83895._.js.map