/** * @license React * react-server-dom-webpack-client.node.unbundled.production.min.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict';var p=require("util"),q=require("react-dom"),t=require("react"),u={stream:!0};function v(a,c){var b=a[c.id];if(a=b[c.name])b=a.name;else{a=b["*"];if(!a)throw Error('Could not find the module "'+c.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');b=c.name}return{specifier:a.specifier,name:b,async:c.async}}var y=new Map; function z(a){var c=y.get(a.specifier);if(c)return"fulfilled"===c.status?null:c;var b=import(a.specifier);a.async&&(b=b.then(function(d){return d.default}));b.then(function(d){var f=b;f.status="fulfilled";f.value=d},function(d){var f=b;f.status="rejected";f.reason=d});y.set(a.specifier,b);return b}var A=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,B=Symbol.for("react.element"),C=Symbol.for("react.lazy"),D=Symbol.for("react.default_value"),E=Symbol.iterator; function F(a){if(null===a||"object"!==typeof a)return null;a=E&&a[E]||a["@@iterator"];return"function"===typeof a?a:null}var G=Array.isArray,H=new WeakMap;function I(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} function J(a,c,b,d){function f(h,g){if(null===g)return null;if("object"===typeof g){if("function"===typeof g.then){null===e&&(e=new FormData);l++;var w=k++;g.then(function(n){n=JSON.stringify(n,f);var x=e;x.append(c+w,n);l--;0===l&&b(x)},function(n){d(n)});return"$@"+w.toString(16)}if(g instanceof FormData){null===e&&(e=new FormData);var m=e;h=k++;var r=c+h+"_";g.forEach(function(n,x){m.append(r+x,n)});return"$K"+h.toString(16)}return g instanceof Map?(g=JSON.stringify(Array.from(g),f),null===e&& (e=new FormData),h=k++,e.append(c+h,g),"$Q"+h.toString(16)):g instanceof Set?(g=JSON.stringify(Array.from(g),f),null===e&&(e=new FormData),h=k++,e.append(c+h,g),"$W"+h.toString(16)):!G(g)&&F(g)?Array.from(g):g}if("string"===typeof g){if("Z"===g[g.length-1]&&this[h]instanceof Date)return"$D"+g;g="$"===g[0]?"$"+g:g;return g}if("boolean"===typeof g)return g;if("number"===typeof g)return I(g);if("undefined"===typeof g)return"$undefined";if("function"===typeof g){g=H.get(g);if(void 0!==g)return g=JSON.stringify(g, f),null===e&&(e=new FormData),h=k++,e.set(c+h,g),"$F"+h.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");}if("symbol"===typeof g){h=g.description;if(Symbol.for(h)!==g)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(g.description+") cannot be found among global symbols."));return"$S"+h}if("bigint"===typeof g)return"$n"+ g.toString(10);throw Error("Type "+typeof g+" is not supported as an argument to a Server Function.");}var k=1,l=0,e=null;a=JSON.stringify(a,f);null===e?b(a):(e.set(c+"0",a),0===l&&b(e))}var K=new WeakMap;function aa(a){var c,b,d=new Promise(function(f,k){c=f;b=k});J(a,"",function(f){if("string"===typeof f){var k=new FormData;k.append("0",f);f=k}d.status="fulfilled";d.value=f;c(f)},function(f){d.status="rejected";d.reason=f;b(f)});return d} function ba(a){var c=H.get(this);if(!c)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var b=null;if(null!==c.bound){b=K.get(c);b||(b=aa(c),K.set(c,b));if("rejected"===b.status)throw b.reason;if("fulfilled"!==b.status)throw b;c=b.value;var d=new FormData;c.forEach(function(f,k){d.append("$ACTION_"+a+":"+k,f)});b=d;c="$ACTION_REF_"+a}else c="$ACTION_ID_"+c.id;return{name:c,method:"POST",encType:"multipart/form-data",data:b}} function ca(a,c){var b=H.get(this);if(!b)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");if(b.id!==a)return!1;var d=b.bound;if(null===d)return 0===c;switch(d.status){case "fulfilled":return d.value.length===c;case "pending":throw d;case "rejected":throw d.reason;default:throw"string"!==typeof d.status&&(d.status="pending",d.then(function(f){d.status="fulfilled";d.value=f},function(f){d.status="rejected";d.reason=f})),d;}} function L(a,c){Object.defineProperties(a,{$$FORM_ACTION:{value:ba},$$IS_SIGNATURE_EQUAL:{value:ca},bind:{value:da}});H.set(a,c)}var ea=Function.prototype.bind,fa=Array.prototype.slice;function da(){var a=ea.apply(this,arguments),c=H.get(this);if(c){var b=fa.call(arguments,1),d=null;d=null!==c.bound?Promise.resolve(c.bound).then(function(f){return f.concat(b)}):Promise.resolve(b);L(a,{id:c.id,bound:d})}return a} function ha(a,c){function b(){var d=Array.prototype.slice.call(arguments);return c(a,d)}L(b,{id:a,bound:null});return b}var M=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function N(a,c,b,d){this.status=a;this.value=c;this.reason=b;this._response=d}N.prototype=Object.create(Promise.prototype); N.prototype.then=function(a,c){switch(this.status){case "resolved_model":O(this);break;case "resolved_module":P(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));c&&(null===this.reason&&(this.reason=[]),this.reason.push(c));break;default:c(this.reason)}}; function ia(a){switch(a.status){case "resolved_model":O(a);break;case "resolved_module":P(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function Q(a,c){for(var b=0;bk?(e=k,k=3,f++):(e=0,k=3);continue;case 2:m=d[f++];44===m?k=4:h=h<<4|(96d.length&&(m=-1)}var r=d.byteOffset+f;if(-1