react-server-dom-webpack 18.3.0-next-85de6fde5-20230328 → 18.3.0-next-1308e49a6-20230330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-server-dom-webpack-client.browser.development.js +11 -1
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +3 -3
- package/cjs/react-server-dom-webpack-client.edge.development.js +6 -0
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +4 -3
- package/cjs/react-server-dom-webpack-client.node.development.js +6 -0
- package/cjs/react-server-dom-webpack-client.node.production.min.js +2 -2
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +6 -0
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2 -2
- package/cjs/react-server-dom-webpack-node-register.js +1 -1
- package/cjs/react-server-dom-webpack-plugin.js +9 -8
- package/cjs/react-server-dom-webpack-server.browser.development.js +19 -91
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +48 -50
- package/cjs/react-server-dom-webpack-server.edge.development.js +19 -91
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +48 -50
- package/cjs/react-server-dom-webpack-server.node.development.js +19 -91
- package/cjs/react-server-dom-webpack-server.node.production.min.js +50 -52
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +19 -91
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +49 -51
- package/esm/react-server-dom-webpack-node-loader.production.min.js +1 -1
- package/package.json +4 -4
- package/umd/react-server-dom-webpack-client.browser.development.js +11 -1
- package/umd/react-server-dom-webpack-client.browser.production.min.js +10 -10
- package/umd/react-server-dom-webpack-server.browser.development.js +19 -91
- package/umd/react-server-dom-webpack-server.browser.production.min.js +42 -43
@@ -9,63 +9,61 @@
|
|
9
9
|
*/
|
10
10
|
'use strict';var aa=require("react"),f="function"===typeof AsyncLocalStorage,ba=f?new AsyncLocalStorage:null,m=null,n=0;function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(512),n=0),a.enqueue(b);else{var d=m.length-n;d<b.length&&(0===d?a.enqueue(m):(m.set(b.subarray(0,d),n),a.enqueue(m),b=b.subarray(d)),m=new Uint8Array(512),n=0);m.set(b,n);n+=b.length}return!0}var q=new TextEncoder;function r(a){return q.encode(a)}
|
11
11
|
function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var t=JSON.stringify;function da(a,b,d){a=t(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return q.encode(b)}function u(a,b,d){a=t(d);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
|
12
|
-
var w=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),
|
13
|
-
function A(a,b,d,c,e
|
14
|
-
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new A(
|
12
|
+
var w=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),y=Symbol.for("react.element"),fa=Symbol.for("react.fragment"),ha=Symbol.for("react.provider"),ia=Symbol.for("react.server_context"),ja=Symbol.for("react.forward_ref"),ka=Symbol.for("react.suspense"),la=Symbol.for("react.suspense_list"),ma=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
|
13
|
+
function A(a,b,d,c,e){this.acceptsBooleans=2===a||3===a||4===a;this.attributeName=b;this.attributeNamespace=d;this.type=a;this.sanitizeURL=c;this.removeEmptyString=e}["contentEditable","draggable","spellCheck","value"].forEach(function(a){new A(2,a.toLowerCase(),null,!1,!1)});
|
14
|
+
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new A(3,a.toLowerCase(),null,!1,!1)});["rowSpan","start"].forEach(function(a){new A(5,a.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function C(a){return a[1].toUpperCase()}
|
15
15
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){a.replace(B,C)});
|
16
|
-
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(B,C)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(B,C)});["tabIndex","crossOrigin"].forEach(function(a){new A(
|
17
|
-
|
18
|
-
|
19
|
-
r(
|
20
|
-
r('">');r("</math>");r('<table hidden id="');r('">');r("</table>");r('<table hidden><tbody id="');r('">');r("</tbody></table>");r('<table hidden><tr id="');r('">');r("</tr></table>");r('<table hidden><colgroup id="');r('">');r("</colgroup></table>");r('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("');r('$RS("');r('","');r('")\x3c/script>');r('<template data-rsi="" data-sid="');
|
21
|
-
r('" data-pid="');r('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("');
|
16
|
+
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){a.replace(B,C)});["xml:base","xml:lang","xml:space"].forEach(function(a){a.replace(B,C)});["tabIndex","crossOrigin"].forEach(function(a){new A(1,a.toLowerCase(),null,!1,!1)});["src","href","action"].forEach(function(a){new A(1,a.toLowerCase(),null,!0,!0)});var sa=Array.isArray;r('"></template>');r("<script>");r("\x3c/script>");r('<script src="');r('<script type="module" src="');r('" integrity="');
|
17
|
+
r('" async="">\x3c/script>');r("\x3c!-- --\x3e");r(' style="');r(":");r(";");r(" ");r('="');r('"');r('=""');r(">");r("/>");r(' selected=""');r("\n");r("<!DOCTYPE html>");r("</");r(">");r('<template id="');r('"></template>');r("\x3c!--$--\x3e");r('\x3c!--$?--\x3e<template id="');r('"></template>');r("\x3c!--$!--\x3e");r("\x3c!--/$--\x3e");r("<template");r('"');r(' data-dgst="');r(' data-msg="');r(' data-stck="');r("></template>");r('<div hidden id="');r('">');r("</div>");r('<svg aria-hidden="true" style="display:none" id="');
|
18
|
+
r('">');r("</svg>");r('<math aria-hidden="true" style="display:none" id="');r('">');r("</math>");r('<table hidden id="');r('">');r("</table>");r('<table hidden><tbody id="');r('">');r("</tbody></table>");r('<table hidden><tr id="');r('">');r("</tr></table>");r('<table hidden><colgroup id="');r('">');r("</colgroup></table>");r('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};;$RS("');
|
19
|
+
r('$RS("');r('","');r('")\x3c/script>');r('<template data-rsi="" data-sid="');r('" data-pid="');r('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("');
|
22
20
|
r('$RC("');r('$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("');
|
23
21
|
r('$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("');
|
24
22
|
r('$RR("');r('","');r('",');r('"');r(")\x3c/script>");r('<template data-rci="" data-bid="');r('<template data-rri="" data-bid="');r('" data-sid="');r('" data-sty="');r('$RX=function(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};;$RX("');r('$RX("');r('"');r(",");r(")\x3c/script>");r('<template data-rxi="" data-bid="');r('" data-dgst="');r('" data-msg="');r('" data-stck="');r('<style media="not all" data-precedence="');
|
25
23
|
r('" data-href="');r('">');r("</style>");r('<style data-precedence="');r('" data-href="');r(" ");r('">');r("</style>");r("[");r(",[");r(",");r("]");var D=null;
|
26
|
-
function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function
|
27
|
-
function
|
28
|
-
function
|
29
|
-
function
|
30
|
-
function
|
31
|
-
var
|
32
|
-
function K(){throw Error("This Hook is not supported in Server Components.");}function
|
33
|
-
function
|
34
|
-
var
|
35
|
-
function
|
24
|
+
function E(a,b){if(a!==b){a.context._currentValue=a.parentValue;a=a.parent;var d=b.parent;if(null===a){if(null!==d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");}else{if(null===d)throw Error("The stacks must reach the root at the same time. This is a bug in React.");E(a,d);b.context._currentValue=b.value}}}function ta(a){a.context._currentValue=a.parentValue;a=a.parent;null!==a&&ta(a)}
|
25
|
+
function ua(a){var b=a.parent;null!==b&&ua(b);a.context._currentValue=a.value}function va(a,b){a.context._currentValue=a.parentValue;a=a.parent;if(null===a)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?E(a,b):va(a,b)}
|
26
|
+
function wa(a,b){var d=b.parent;if(null===d)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===d.depth?E(a,d):wa(a,d);b.context._currentValue=b.value}function xa(a){var b=D;b!==a&&(null===b?ua(a):null===a?ta(b):b.depth===a.depth?E(b,a):b.depth>a.depth?va(b,a):wa(b,a),D=a)}function ya(a,b){var d=a._currentValue;a._currentValue=b;var c=D;return D=a={parent:c,depth:null===c?0:c.depth+1,context:a,parentValue:d,value:b}}var za=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`");
|
27
|
+
function Aa(){}function Ba(a,b,d){d=a[d];void 0===d?a.push(b):d!==b&&(b.then(Aa,Aa),b=d);switch(b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;default:if("string"!==typeof b.status)switch(a=b,a.status="pending",a.then(function(c){if("pending"===b.status){var e=b;e.status="fulfilled";e.value=c}},function(c){if("pending"===b.status){var e=b;e.status="rejected";e.reason=c}}),b.status){case "fulfilled":return b.value;case "rejected":throw b.reason;}F=b;throw za;}}var F=null;
|
28
|
+
function Ca(){if(null===F)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=F;F=null;return a}var H=null,I=0,J=null;function Da(){var a=J;J=null;return a}function Ea(a){return a._currentValue}
|
29
|
+
var Ia={useMemo:function(a){return a()},useCallback:function(a){return a},useDebugValue:function(){},useDeferredValue:K,useTransition:K,readContext:Ea,useContext:Ea,useReducer:K,useRef:K,useState:K,useInsertionEffect:K,useLayoutEffect:K,useImperativeHandle:K,useEffect:K,useId:Fa,useMutableSource:K,useSyncExternalStore:K,useCacheRefresh:function(){return Ga},useMemoCache:function(a){for(var b=Array(a),d=0;d<a;d++)b[d]=qa;return b},use:Ha};
|
30
|
+
function K(){throw Error("This Hook is not supported in Server Components.");}function Ga(){throw Error("Refreshing the cache is not supported in Server Components.");}function Fa(){if(null===H)throw Error("useId can only be used while React is rendering");var a=H.identifierCount++;return":"+H.identifierPrefix+"S"+a.toString(32)+":"}
|
31
|
+
function Ha(a){if(null!==a&&"object"===typeof a||"function"===typeof a){if("function"===typeof a.then){var b=I;I+=1;null===J&&(J=[]);return Ba(J,a,b)}if(a.$$typeof===ia)return a._currentValue}throw Error("An unsupported type was passed to use(): "+String(a));}function Ja(){return(new AbortController).signal}function Ka(){if(L)return L;if(f){var a=ba.getStore();if(a)return a}return new Map}
|
32
|
+
var La={getCacheSignal:function(){var a=Ka(),b=a.get(Ja);void 0===b&&(b=Ja(),a.set(Ja,b));return b},getCacheForType:function(a){var b=Ka(),d=b.get(a);void 0===d&&(d=a(),b.set(a,d));return d}},L=null;function Ma(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(b,d){return d})}
|
33
|
+
function Na(a){switch(typeof a){case "string":return JSON.stringify(10>=a.length?a:a.substr(0,10)+"...");case "object":if(sa(a))return"[...]";a=Ma(a);return"Object"===a?"{...}":a;case "function":return"function";default:return String(a)}}
|
36
34
|
function M(a){if("string"===typeof a)return a;switch(a){case ka:return"Suspense";case la:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case ja:return M(a.render);case ma:return M(a.type);case z:var b=a._payload;a=a._init;try{return M(a(b))}catch(d){}}return""}
|
37
|
-
function N(a,b){var d=
|
38
|
-
|
39
|
-
function
|
40
|
-
"",identifierCount:1,onError:void 0===d?
|
41
|
-
function
|
42
|
-
R(a,a.destination)});return d.id}function
|
43
|
-
function S(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===w)return[
|
44
|
-
b._init;b=h(b._payload);return S(a,b,d,c,e,g);case ja:return a=b.render,I=0,J=g,a(e,void 0);case ma:return S(a,b.type,d,c,e,g);case ha:return
|
45
|
-
function
|
46
|
-
function
|
47
|
-
b=a.nextChunkId++,d=O(a,
|
48
|
-
function
|
49
|
-
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===w)return
|
50
|
-
c===
|
35
|
+
function N(a,b){var d=Ma(a);if("Object"!==d&&"Array"!==d)return d;d=-1;var c=0;if(sa(a)){var e="[";for(var g=0;g<a.length;g++){0<g&&(e+=", ");var h=a[g];h="object"===typeof h&&null!==h?N(h):Na(h);""+g===b?(d=e.length,c=h.length,e+=h):e=10>h.length&&40>e.length+h.length?e+h:e+"..."}e+="]"}else if(a.$$typeof===y)e="<"+M(a.type)+"/>";else{e="{";g=Object.keys(a);for(h=0;h<g.length;h++){0<h&&(e+=", ");var k=g[h],l=JSON.stringify(k);e+=('"'+k+'"'===l?k:l)+": ";l=a[k];l="object"===typeof l&&null!==l?N(l):
|
36
|
+
Na(l);k===b?(d=e.length,c=l.length,e+=l):e=10>l.length&&40>e.length+l.length?e+l:e+"..."}e+="}"}return void 0===b?e:-1<d&&0<c?(a=" ".repeat(d)+"^".repeat(c),"\n "+e+"\n "+a):"\n "+e}var Oa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pa=Oa.ContextRegistry,Qa=Oa.ReactCurrentDispatcher,Ra=Oa.ReactCurrentCache;function Sa(a){console.error(a)}
|
37
|
+
function Ta(a,b,d,c,e){if(null!==Ra.current&&Ra.current!==La)throw Error("Currently React only supports one RSC renderer at a time.");Ra.current=La;var g=new Set,h=[],k={status:0,fatalError:null,destination:null,bundlerConfig:b,cache:new Map,nextChunkId:0,pendingChunks:0,abortableTasks:g,pingedTasks:h,completedImportChunks:[],completedJSONChunks:[],completedErrorChunks:[],writtenSymbols:new Map,writtenClientReferences:new Map,writtenServerReferences:new Map,writtenProviders:new Map,identifierPrefix:e||
|
38
|
+
"",identifierCount:1,onError:void 0===d?Sa:d,toJSON:function(l,v){return Ua(k,this,l,v)}};k.pendingChunks++;b=Va(c);a=Wa(k,a,b,g);h.push(a);return k}var Xa={};
|
39
|
+
function Ya(a,b){a.pendingChunks++;var d=Wa(a,null,D,a.abortableTasks);switch(b.status){case "fulfilled":return d.model=b.value,Za(a,d),d.id;case "rejected":var c=O(a,b.reason);Q(a,d.id,c);return d.id;default:"string"!==typeof b.status&&(b.status="pending",b.then(function(e){"pending"===b.status&&(b.status="fulfilled",b.value=e)},function(e){"pending"===b.status&&(b.status="rejected",b.reason=e)}))}b.then(function(e){d.model=e;Za(a,d)},function(e){d.status=4;e=O(a,e);Q(a,d.id,e);null!==a.destination&&
|
40
|
+
R(a,a.destination)});return d.id}function $a(a){if("fulfilled"===a.status)return a.value;if("rejected"===a.status)throw a.reason;throw a;}function ab(a){switch(a.status){case "fulfilled":case "rejected":break;default:"string"!==typeof a.status&&(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)}))}return{$$typeof:z,_payload:a,_init:$a}}
|
41
|
+
function S(a,b,d,c,e,g){if(null!==c&&void 0!==c)throw Error("Refs cannot be used in Server Components, nor passed to Client Components.");if("function"===typeof b){if(b.$$typeof===w)return[y,b,d,e];I=0;J=g;e=b(e);return"object"===typeof e&&null!==e&&"function"===typeof e.then?"fulfilled"===e.status?e.value:ab(e):e}if("string"===typeof b)return[y,b,d,e];if("symbol"===typeof b)return b===fa?e.children:[y,b,d,e];if(null!=b&&"object"===typeof b){if(b.$$typeof===w)return[y,b,d,e];switch(b.$$typeof){case z:var h=
|
42
|
+
b._init;b=h(b._payload);return S(a,b,d,c,e,g);case ja:return a=b.render,I=0,J=g,a(e,void 0);case ma:return S(a,b.type,d,c,e,g);case ha:return ya(b._context,e.value),[y,b,d,{value:e.value,children:e.children,__pop:Xa}]}}throw Error("Unsupported Server Component type: "+Na(b));}function Za(a,b){var d=a.pingedTasks;d.push(b);1===d.length&&setTimeout(function(){return bb(a)},0)}
|
43
|
+
function Wa(a,b,d,c){var e={id:a.nextChunkId++,status:0,model:b,context:d,ping:function(){return Za(a,e)},thenableState:null};c.add(e);return e}
|
44
|
+
function cb(a,b,d,c){var e=c.$$async?c.$$id+"#async":c.$$id,g=a.writtenClientReferences,h=g.get(e);if(void 0!==h)return b[0]===y&&"1"===d?"$L"+h.toString(16):"$"+h.toString(16);try{var k=a.bundlerConfig[c.$$id];var l=c.$$async?{id:k.id,chunks:k.chunks,name:k.name,async:!0}:k;a.pendingChunks++;var v=a.nextChunkId++,na=t(l),x=v.toString(16)+":I"+na+"\n";var P=q.encode(x);a.completedImportChunks.push(P);g.set(e,v);return b[0]===y&&"1"===d?"$L"+v.toString(16):"$"+v.toString(16)}catch(oa){return a.pendingChunks++,
|
45
|
+
b=a.nextChunkId++,d=O(a,oa),Q(a,b,d),"$"+b.toString(16)}}
|
46
|
+
function Ua(a,b,d,c){switch(c){case y:return"$"}for(;"object"===typeof c&&null!==c&&(c.$$typeof===y||c.$$typeof===z);)try{switch(c.$$typeof){case y:var e=c;c=S(a,e.type,e.key,e.ref,e.props,null);break;case z:var g=c._init;c=g(c._payload)}}catch(h){d=h===za?Ca():h;if("object"===typeof d&&null!==d&&"function"===typeof d.then)return a.pendingChunks++,a=Wa(a,c,D,a.abortableTasks),c=a.ping,d.then(c,c),a.thenableState=Da(),"$L"+a.id.toString(16);a.pendingChunks++;c=a.nextChunkId++;d=O(a,d);Q(a,c,d);return"$L"+
|
47
|
+
c.toString(16)}if(null===c)return null;if("object"===typeof c){if(c.$$typeof===w)return cb(a,b,d,c);if("function"===typeof c.then)return"$@"+Ya(a,c).toString(16);if(c.$$typeof===ha)return c=c._context._globalName,b=a.writtenProviders,d=b.get(d),void 0===d&&(a.pendingChunks++,d=a.nextChunkId++,b.set(c,d),c=u(a,d,"$P"+c),a.completedJSONChunks.push(c)),"$"+d.toString(16);if(c===Xa){a=D;if(null===a)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");c=a.parentValue;a.context._currentValue=
|
48
|
+
c===pa?a.context._defaultValue:c;D=a.parent;return}return!sa(c)&&(null===c||"object"!==typeof c?a=null:(a=ra&&c[ra]||c["@@iterator"],a="function"===typeof a?a:null),a)?Array.from(c):c}if("string"===typeof c)return a="$"===c[0]?"$"+c:c,a;if("boolean"===typeof c||"number"===typeof c)return c;if("undefined"===typeof c)return"$undefined";if("function"===typeof c){if(c.$$typeof===w)return cb(a,b,d,c);if(c.$$typeof===ea)return d=a.writtenServerReferences,b=d.get(c),void 0!==b?a="$F"+b.toString(16):(b=c.$$bound,
|
51
49
|
e={id:c.$$id,bound:b?Promise.resolve(b):null},a.pendingChunks++,b=a.nextChunkId++,e=da(a,b,e),a.completedJSONChunks.push(e),d.set(c,b),a="$F"+b.toString(16)),a;if(/^on[A-Z]/.test(d))throw Error("Event handlers cannot be passed to Client Component props."+N(b,d)+"\nIf you need interactivity, consider converting part of this to a Client Component.");throw Error('Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".'+N(b,d));}if("symbol"===
|
52
|
-
typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=u(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)throw Error("
|
53
|
-
|
50
|
+
typeof c){e=a.writtenSymbols;g=e.get(c);if(void 0!==g)return"$"+g.toString(16);g=c.description;if(Symbol.for(g)!==c)throw Error("Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for("+(c.description+") cannot be found among global symbols.")+N(b,d));a.pendingChunks++;d=a.nextChunkId++;b=u(a,d,"$S"+g);a.completedImportChunks.push(b);e.set(c,d);return"$"+d.toString(16)}if("bigint"===typeof c)return"$n"+c.toString(10);throw Error("Type "+typeof c+
|
51
|
+
" is not supported in Client Component props."+N(b,d));}function O(a,b){a=a.onError;b=a(b);if(null!=b&&"string"!==typeof b)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b||""}function db(a,b){null!==a.destination?(a.status=2,ca(a.destination,b)):(a.status=1,a.fatalError=b)}
|
54
52
|
function Q(a,b,d){d={digest:d};b=b.toString(16)+":E"+t(d)+"\n";b=q.encode(b);a.completedErrorChunks.push(b)}
|
55
|
-
function
|
56
|
-
g.status=1}catch(G){var
|
53
|
+
function bb(a){var b=Qa.current,d=L;Qa.current=Ia;L=a.cache;H=a;try{var c=a.pingedTasks;a.pingedTasks=[];for(var e=0;e<c.length;e++){var g=c[e];var h=a;if(0===g.status){xa(g.context);try{var k=g.model;if("object"===typeof k&&null!==k&&k.$$typeof===y){var l=k,v=g.thenableState;g.model=k;k=S(h,l.type,l.key,l.ref,l.props,v);for(g.thenableState=null;"object"===typeof k&&null!==k&&k.$$typeof===y;)l=k,g.model=k,k=S(h,l.type,l.key,l.ref,l.props,null)}var na=da(h,g.id,k);h.completedJSONChunks.push(na);h.abortableTasks.delete(g);
|
54
|
+
g.status=1}catch(G){var x=G===za?Ca():G;if("object"===typeof x&&null!==x&&"function"===typeof x.then){var P=g.ping;x.then(P,P);g.thenableState=Da()}else{h.abortableTasks.delete(g);g.status=4;var oa=O(h,x);Q(h,g.id,oa)}}}}null!==a.destination&&R(a,a.destination)}catch(G){O(a,G),db(a,G)}finally{Qa.current=b,L=d,H=null}}
|
57
55
|
function R(a,b){m=new Uint8Array(512);n=0;try{for(var d=a.completedImportChunks,c=0;c<d.length;c++)a.pendingChunks--,p(b,d[c]);d.splice(0,c);var e=a.completedJSONChunks;for(c=0;c<e.length;c++)a.pendingChunks--,p(b,e[c]);e.splice(0,c);var g=a.completedErrorChunks;for(c=0;c<g.length;c++)a.pendingChunks--,p(b,g[c]);g.splice(0,c)}finally{m&&0<n&&(b.enqueue(new Uint8Array(m.buffer,0,n)),m=null,n=0)}0===a.pendingChunks&&b.close()}
|
58
|
-
function
|
59
|
-
function
|
60
|
-
function
|
61
|
-
null}function
|
56
|
+
function eb(a){f?setTimeout(function(){return ba.run(a.cache,bb,a)},0):setTimeout(function(){return bb(a)},0)}function fb(a,b){try{var d=a.abortableTasks;if(0<d.size){var c=O(a,void 0===b?Error("The render was aborted by the server without a reason."):b);a.pendingChunks++;var e=a.nextChunkId++;Q(a,e,c);d.forEach(function(g){g.status=3;var h="$"+e.toString(16);g=u(a,g.id,h);a.completedErrorChunks.push(g)});d.clear()}null!==a.destination&&R(a,a.destination)}catch(g){O(a,g),db(a,g)}}
|
57
|
+
function Va(a){if(a){var b=D;xa(null);for(var d=0;d<a.length;d++){var c=a[d],e=c[0];c=c[1];Pa[e]||(Pa[e]=aa.createServerContext(e,pa));ya(Pa[e],c)}a=D;xa(b);return a}return null}var T=new Map,gb=new Map;function hb(){}
|
58
|
+
function ib(a){for(var b=a.chunks,d=[],c=0;c<b.length;c++){var e=b[c],g=T.get(e);if(void 0===g){g=__webpack_chunk_load__(e);d.push(g);var h=T.set.bind(T,e,null);g.then(h,hb);T.set(e,g)}else null!==g&&d.push(g)}if(a.async){if(b=gb.get(a.id))return"fulfilled"===b.status?null:b;var k=Promise.all(d).then(function(){return __webpack_require__(a.id)});k.then(function(l){k.status="fulfilled";k.value=l},function(l){k.status="rejected";k.reason=l});gb.set(a.id,k);return k}return 0<d.length?Promise.all(d):
|
59
|
+
null}function jb(a){if(a.async){var b=gb.get(a.id);if("fulfilled"===b.status)b=b.value;else throw b.reason;}else b=__webpack_require__(a.id);return"*"===a.name?b:""===a.name?b.__esModule?b.default:b:b[a.name]}function U(a,b,d,c){this.status=a;this.value=b;this.reason=d;this._response=c}U.prototype=Object.create(Promise.prototype);
|
62
60
|
U.prototype.then=function(a,b){switch(this.status){case "resolved_model":V(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 W(a,b){for(var d=0;d<a.length;d++)(0,a[d])(b)}
|
63
|
-
function
|
64
|
-
function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function
|
65
|
-
function
|
66
|
-
function
|
67
|
-
X,a.then(
|
68
|
-
function
|
69
|
-
exports.decodeReply=function(a,b){var d=
|
70
|
-
exports.renderToReadableStream=function(a,b,d){var c=
|
71
|
-
|
61
|
+
function kb(a,b){if("pending"===a.status||"blocked"===a.status){var d=a.reason;a.status="rejected";a.reason=b;null!==d&&W(d,b)}}function lb(a,b,d,c,e,g){var h=a._bundlerConfig[b];a=ib(h);if(d)d=Promise.all([d,a]).then(function(k){k=k[0];var l=jb(h);return l.bind.apply(l,[null].concat(k))});else if(a)d=Promise.resolve(a).then(function(){return jb(h)});else return jb(h);d.then(mb(c,e,g),nb(c));return null}var X=null,Y=null;
|
62
|
+
function V(a){var b=X,d=Y;X=a;Y=null;try{var c=JSON.parse(a.value,a._response._fromJSON);null!==Y&&0<Y.deps?(Y.value=c,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=c)}catch(e){a.status="rejected",a.reason=e}finally{X=b,Y=d}}function ob(a,b){a._chunks.forEach(function(d){"pending"===d.status&&kb(d,b)})}function Z(a,b){var d=a._chunks,c=d.get(b);c||(c=new U("pending",null,null,a),d.set(b,c));return c}
|
63
|
+
function mb(a,b,d){if(Y){var c=Y;c.deps++}else c=Y={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&W(e,c.value))}}function nb(a){return function(b){return kb(a,b)}}
|
64
|
+
function pb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),Z(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),16);c=Z(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return lb(a,c.id,c.bound,X,b,d);case "u":return;case "n":return BigInt(c.substring(2));default:c=parseInt(c.substring(1),16);a=Z(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;
|
65
|
+
case "pending":case "blocked":return c=X,a.then(mb(c,b,d),nb(c)),null;default:throw a.reason;}}return c}function qb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?pb(d,this,c,e):e}};return d}
|
66
|
+
function rb(a,b,d){var c=a._chunks,e=c.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=d,null!==a))switch(V(e),e.status){case "fulfilled":W(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&W(b,e.reason)}}else c.set(b,new U("resolved_model",d,null,a))}
|
67
|
+
exports.decodeReply=function(a,b){var d=qb(b);"string"===typeof a?rb(d,0,a):a.forEach(function(c,e){if("string"===typeof c)rb(d,+e,c);else throw Error("Not implemented.");});ob(d,Error("Connection closed."));return Z(d,0)};
|
68
|
+
exports.renderToReadableStream=function(a,b,d){var c=Ta(a,b,d?d.onError:void 0,d?d.context:void 0,d?d.identifierPrefix:void 0);if(d&&d.signal){var e=d.signal;if(e.aborted)fb(c,e.reason);else{var g=function(){fb(c,e.reason);e.removeEventListener("abort",g)};e.addEventListener("abort",g)}}return new ReadableStream({type:"bytes",start:function(){eb(c)},pull:function(h){if(1===c.status)c.status=2,ca(h,c.fatalError);else if(2!==c.status&&null===c.destination){c.destination=h;try{R(c,h)}catch(k){O(c,k),
|
69
|
+
db(c,k)}}},cancel:function(){}},{highWaterMark:0})};
|
@@ -335,8 +335,8 @@ function getIteratorFn(maybeIterable) {
|
|
335
335
|
return null;
|
336
336
|
}
|
337
337
|
|
338
|
+
// A simple string attribute.
|
338
339
|
// Attributes that aren't in the filter are presumed to have this type.
|
339
|
-
|
340
340
|
var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
|
341
341
|
// "enumerated" attributes with "true" and "false" as possible values.
|
342
342
|
// When true, it should be set to a "true" string.
|
@@ -356,12 +356,10 @@ var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a n
|
|
356
356
|
|
357
357
|
var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
|
358
358
|
|
359
|
-
function PropertyInfoRecord(
|
359
|
+
function PropertyInfoRecord(type, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
|
360
360
|
this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
|
361
361
|
this.attributeName = attributeName;
|
362
362
|
this.attributeNamespace = attributeNamespace;
|
363
|
-
this.mustUseProperty = mustUseProperty;
|
364
|
-
this.propertyName = name;
|
365
363
|
this.type = type;
|
366
364
|
this.sanitizeURL = sanitizeURL;
|
367
365
|
this.removeEmptyString = removeEmptyString;
|
@@ -371,8 +369,7 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
|
|
371
369
|
|
372
370
|
['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
|
373
371
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
374
|
-
new PropertyInfoRecord(
|
375
|
-
name.toLowerCase(), // attributeName
|
372
|
+
new PropertyInfoRecord(BOOLEANISH_STRING, name.toLowerCase(), // attributeName
|
376
373
|
null, // attributeNamespace
|
377
374
|
false, // sanitizeURL
|
378
375
|
false);
|
@@ -383,17 +380,15 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
|
|
383
380
|
'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
|
384
381
|
'itemScope'].forEach(function (name) {
|
385
382
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
386
|
-
new PropertyInfoRecord(
|
387
|
-
name.toLowerCase(), // attributeName
|
383
|
+
new PropertyInfoRecord(BOOLEAN, name.toLowerCase(), // attributeName
|
388
384
|
null, // attributeNamespace
|
389
385
|
false, // sanitizeURL
|
390
386
|
false);
|
391
|
-
}); // These are
|
387
|
+
}); // These are HTML attributes that are "overloaded booleans": they behave like
|
392
388
|
|
393
389
|
['rowSpan', 'start'].forEach(function (name) {
|
394
390
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
395
|
-
new PropertyInfoRecord(
|
396
|
-
name.toLowerCase(), // attributeName
|
391
|
+
new PropertyInfoRecord(NUMERIC, name.toLowerCase(), // attributeName
|
397
392
|
null, // attributeNamespace
|
398
393
|
false, // sanitizeURL
|
399
394
|
false);
|
@@ -434,96 +429,19 @@ var capitalize = function (token) {
|
|
434
429
|
|
435
430
|
['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
|
436
431
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
437
|
-
new PropertyInfoRecord(
|
438
|
-
attributeName.toLowerCase(), // attributeName
|
432
|
+
new PropertyInfoRecord(STRING, attributeName.toLowerCase(), // attributeName
|
439
433
|
null, // attributeNamespace
|
440
434
|
false, // sanitizeURL
|
441
435
|
false);
|
442
436
|
}); // These attributes accept URLs. These must not allow javascript: URLS.
|
443
437
|
['src', 'href', 'action'].forEach(function (attributeName) {
|
444
438
|
// $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
|
445
|
-
new PropertyInfoRecord(
|
446
|
-
attributeName.toLowerCase(), // attributeName
|
439
|
+
new PropertyInfoRecord(STRING, attributeName.toLowerCase(), // attributeName
|
447
440
|
null, // attributeNamespace
|
448
441
|
true, // sanitizeURL
|
449
442
|
true);
|
450
443
|
});
|
451
444
|
|
452
|
-
/**
|
453
|
-
* CSS properties which accept numbers but are not in units of "px".
|
454
|
-
*/
|
455
|
-
var isUnitlessNumber = {
|
456
|
-
animationIterationCount: true,
|
457
|
-
aspectRatio: true,
|
458
|
-
borderImageOutset: true,
|
459
|
-
borderImageSlice: true,
|
460
|
-
borderImageWidth: true,
|
461
|
-
boxFlex: true,
|
462
|
-
boxFlexGroup: true,
|
463
|
-
boxOrdinalGroup: true,
|
464
|
-
columnCount: true,
|
465
|
-
columns: true,
|
466
|
-
flex: true,
|
467
|
-
flexGrow: true,
|
468
|
-
flexPositive: true,
|
469
|
-
flexShrink: true,
|
470
|
-
flexNegative: true,
|
471
|
-
flexOrder: true,
|
472
|
-
gridArea: true,
|
473
|
-
gridRow: true,
|
474
|
-
gridRowEnd: true,
|
475
|
-
gridRowSpan: true,
|
476
|
-
gridRowStart: true,
|
477
|
-
gridColumn: true,
|
478
|
-
gridColumnEnd: true,
|
479
|
-
gridColumnSpan: true,
|
480
|
-
gridColumnStart: true,
|
481
|
-
fontWeight: true,
|
482
|
-
lineClamp: true,
|
483
|
-
lineHeight: true,
|
484
|
-
opacity: true,
|
485
|
-
order: true,
|
486
|
-
orphans: true,
|
487
|
-
scale: true,
|
488
|
-
tabSize: true,
|
489
|
-
widows: true,
|
490
|
-
zIndex: true,
|
491
|
-
zoom: true,
|
492
|
-
// SVG-related properties
|
493
|
-
fillOpacity: true,
|
494
|
-
floodOpacity: true,
|
495
|
-
stopOpacity: true,
|
496
|
-
strokeDasharray: true,
|
497
|
-
strokeDashoffset: true,
|
498
|
-
strokeMiterlimit: true,
|
499
|
-
strokeOpacity: true,
|
500
|
-
strokeWidth: true
|
501
|
-
};
|
502
|
-
/**
|
503
|
-
* @param {string} prefix vendor-specific prefix, eg: Webkit
|
504
|
-
* @param {string} key style name, eg: transitionDuration
|
505
|
-
* @return {string} style name prefixed with `prefix`, properly camelCased, eg:
|
506
|
-
* WebkitTransitionDuration
|
507
|
-
*/
|
508
|
-
|
509
|
-
function prefixKey(prefix, key) {
|
510
|
-
return prefix + key.charAt(0).toUpperCase() + key.substring(1);
|
511
|
-
}
|
512
|
-
/**
|
513
|
-
* Support style names that may come passed in prefixed by adding permutations
|
514
|
-
* of vendor prefixes.
|
515
|
-
*/
|
516
|
-
|
517
|
-
|
518
|
-
var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
|
519
|
-
// infinite loop, because it iterates over the newly added props too.
|
520
|
-
|
521
|
-
Object.keys(isUnitlessNumber).forEach(function (prop) {
|
522
|
-
prefixes.forEach(function (prefix) {
|
523
|
-
isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
|
524
|
-
});
|
525
|
-
});
|
526
|
-
|
527
445
|
var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
|
528
446
|
|
529
447
|
function isArray(a) {
|
@@ -1821,6 +1739,10 @@ function serializeUndefined() {
|
|
1821
1739
|
return '$undefined';
|
1822
1740
|
}
|
1823
1741
|
|
1742
|
+
function serializeBigInt(n) {
|
1743
|
+
return '$n' + n.toString(10);
|
1744
|
+
}
|
1745
|
+
|
1824
1746
|
function serializeClientReference(request, parent, key, clientReference) {
|
1825
1747
|
var clientReferenceKey = getClientReferenceKey(clientReference);
|
1826
1748
|
var writtenClientReferences = request.writtenClientReferences;
|
@@ -2124,7 +2046,7 @@ function resolveModelToJSON(request, parent, key, value) {
|
|
2124
2046
|
}
|
2125
2047
|
|
2126
2048
|
if (typeof value === 'bigint') {
|
2127
|
-
|
2049
|
+
return serializeBigInt(value);
|
2128
2050
|
}
|
2129
2051
|
|
2130
2052
|
throw new Error("Type " + typeof value + " is not supported in Client Component props." + describeObjectForErrorMessage(parent, key));
|
@@ -2901,6 +2823,12 @@ function parseModelString(response, parentObject, key, value) {
|
|
2901
2823
|
return undefined;
|
2902
2824
|
}
|
2903
2825
|
|
2826
|
+
case 'n':
|
2827
|
+
{
|
2828
|
+
// BigInt
|
2829
|
+
return BigInt(value.substring(2));
|
2830
|
+
}
|
2831
|
+
|
2904
2832
|
default:
|
2905
2833
|
{
|
2906
2834
|
// We assume that anything else is a reference ID.
|