/** * @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 n=require("util"),p=require("react-dom"),q=require("react"),t={stream:!0};function u(a,b){var c=a[b.id];if(a=c[b.name])c=a.name;else{a=c["*"];if(!a)throw Error('Could not find the module "'+b.id+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');c=b.name}return{specifier:a.specifier,name:c,async:b.async}}var v=new Map; function w(a){var b=v.get(a.specifier);if(b)return"fulfilled"===b.status?null:b;var c=import(a.specifier);a.async&&(c=c.then(function(d){return d.default}));c.then(function(d){var e=c;e.status="fulfilled";e.value=d},function(d){var e=c;e.status="rejected";e.reason=d});v.set(a.specifier,c);return c}var A=p.__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.for("react.postpone"),F=Symbol.iterator; function aa(a){if(null===a||"object"!==typeof a)return null;a=F&&a[F]||a["@@iterator"];return"function"===typeof a?a:null}var ba=Array.isArray,G=new WeakMap;function ca(a){return Number.isFinite(a)?0===a&&-Infinity===1/a?"$-0":a:Infinity===a?"$Infinity":-Infinity===a?"$-Infinity":"$NaN"} function da(a,b,c,d){function e(l,h){if(null===h)return null;if("object"===typeof h){if("function"===typeof h.then){null===k&&(k=new FormData);g++;var x=f++;h.then(function(r){r=JSON.stringify(r,e);var y=k;y.append(b+x,r);g--;0===g&&c(y)},function(r){d(r)});return"$@"+x.toString(16)}if(h instanceof FormData){null===k&&(k=new FormData);var m=k;l=f++;var z=b+l+"_";h.forEach(function(r,y){m.append(z+y,r)});return"$K"+l.toString(16)}return h instanceof Map?(h=JSON.stringify(Array.from(h),e),null===k&& (k=new FormData),l=f++,k.append(b+l,h),"$Q"+l.toString(16)):h instanceof Set?(h=JSON.stringify(Array.from(h),e),null===k&&(k=new FormData),l=f++,k.append(b+l,h),"$W"+l.toString(16)):!ba(h)&&aa(h)?Array.from(h):h}if("string"===typeof h){if("Z"===h[h.length-1]&&this[l]instanceof Date)return"$D"+h;h="$"===h[0]?"$"+h:h;return h}if("boolean"===typeof h)return h;if("number"===typeof h)return ca(h);if("undefined"===typeof h)return"$undefined";if("function"===typeof h){h=G.get(h);if(void 0!==h)return h=JSON.stringify(h, e),null===k&&(k=new FormData),l=f++,k.set(b+l,h),"$F"+l.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 h){l=h.description;if(Symbol.for(l)!==h)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(h.description+") cannot be found among global symbols."));return"$S"+l}if("bigint"===typeof h)return"$n"+ h.toString(10);throw Error("Type "+typeof h+" is not supported as an argument to a Server Function.");}var f=1,g=0,k=null;a=JSON.stringify(a,e);null===k?c(a):(k.set(b+"0",a),0===g&&c(k))}var H=new WeakMap;function ea(a){var b,c,d=new Promise(function(e,f){b=e;c=f});da(a,"",function(e){if("string"===typeof e){var f=new FormData;f.append("0",e);e=f}d.status="fulfilled";d.value=e;b(e)},function(e){d.status="rejected";d.reason=e;c(e)});return d} function fa(a){var b=G.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.");var c=null;if(null!==b.bound){c=H.get(b);c||(c=ea(b),H.set(b,c));if("rejected"===c.status)throw c.reason;if("fulfilled"!==c.status)throw c;b=c.value;var d=new FormData;b.forEach(function(e,f){d.append("$ACTION_"+a+":"+f,e)});c=d;b="$ACTION_REF_"+a}else b="$ACTION_ID_"+b.id;return{name:b,method:"POST",encType:"multipart/form-data",data:c}} function ha(a,b){var c=G.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.");if(c.id!==a)return!1;var d=c.bound;if(null===d)return 0===b;switch(d.status){case "fulfilled":return d.value.length===b;case "pending":throw d;case "rejected":throw d.reason;default:throw"string"!==typeof d.status&&(d.status="pending",d.then(function(e){d.status="fulfilled";d.value=e},function(e){d.status="rejected";d.reason=e})),d;}} function I(a,b){Object.defineProperties(a,{$$FORM_ACTION:{value:fa},$$IS_SIGNATURE_EQUAL:{value:ha},bind:{value:ia}});G.set(a,b)}var ja=Function.prototype.bind,ka=Array.prototype.slice;function ia(){var a=ja.apply(this,arguments),b=G.get(this);if(b){var c=ka.call(arguments,1),d=null;d=null!==b.bound?Promise.resolve(b.bound).then(function(e){return e.concat(c)}):Promise.resolve(c);I(a,{id:b.id,bound:d})}return a} function la(a,b){function c(){var d=Array.prototype.slice.call(arguments);return b(a,d)}I(c,{id:a,bound:null});return c}var J=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function K(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}K.prototype=Object.create(Promise.prototype); K.prototype.then=function(a,b){switch(this.status){case "resolved_model":L(this);break;case "resolved_module":M(this)}switch(this.status){case "fulfilled":a(this.value);break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}}; function ma(a){switch(a.status){case "resolved_model":L(a);break;case "resolved_module":M(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function N(a,b){for(var c=0;cf?(k=f,f=3,e++):(k=0,f=3);continue;case 2:m=d[e++];44===m?f=4:l=l<<4|(96d.length&&(m=-1)}var z=d.byteOffset+e;if(-1