diff --git a/package.json b/package.json index d2660dfade581..b12733f7562b7 100644 --- a/package.json +++ b/package.json @@ -194,16 +194,16 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-6c3b8dbfe-20240226", + "react-builtin": "npm:react@18.3.0-canary-14898b6a9-20240318", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-6c3b8dbfe-20240226", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-6c3b8dbfe-20240226", - "react-experimental-builtin": "npm:react@0.0.0-experimental-6c3b8dbfe-20240226", - "react-server-dom-turbopack": "18.3.0-canary-6c3b8dbfe-20240226", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-6c3b8dbfe-20240226", - "react-server-dom-webpack": "18.3.0-canary-6c3b8dbfe-20240226", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-6c3b8dbfe-20240226", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-14898b6a9-20240318", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-14898b6a9-20240318", + "react-experimental-builtin": "npm:react@0.0.0-experimental-14898b6a9-20240318", + "react-server-dom-turbopack": "18.3.0-canary-14898b6a9-20240318", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-14898b6a9-20240318", + "react-server-dom-webpack": "18.3.0-canary-14898b6a9-20240318", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-14898b6a9-20240318", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -213,8 +213,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.9", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-6c3b8dbfe-20240226", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-6c3b8dbfe-20240226", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-14898b6a9-20240318", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-14898b6a9-20240318", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index 6ead0128d8502..bd07a7b8066b7 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-6c3b8dbfe-20240226'; +var ReactVersion = '18.3.0-experimental-14898b6a9-20240318'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -506,9 +506,6 @@ function stringToChunk(content) { function stringToPrecomputedChunk(content) { return content; } -function clonePrecomputedChunk(chunk) { - return chunk; -} function closeWithError(destination, error) { // $FlowFixMe[incompatible-call]: This is an Error object or the destination accepts other types. destination.destroy(error); @@ -5124,7 +5121,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js index 23654f0590a27..29bb83f9278a5 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js @@ -30,7 +30,7 @@ function formatProdErrorMessage(code) { return "Minified React error #" + code + "; visit " + url + " for the full message or " + 'use the non-minified dev environment for full errors and additional ' + 'helpful warnings.'; } -var ReactVersion = '18.3.0-experimental-6c3b8dbfe-20240226'; +var ReactVersion = '18.3.0-experimental-14898b6a9-20240318'; // ATTENTION // When adding new symbols to this file, @@ -191,9 +191,6 @@ function stringToChunk(content) { function stringToPrecomputedChunk(content) { return content; } -function clonePrecomputedChunk(chunk) { - return chunk; -} function closeWithError(destination, error) { // $FlowFixMe[incompatible-call]: This is an Error object or the destination accepts other types. destination.destroy(error); @@ -3240,7 +3237,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js index 1fcbae06ca6bf..4934a8bf84267 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js @@ -210,6 +210,6 @@ function $c(a){if(!1===a.flushScheduled&&0===a.pingedTasks.length&&null!==a.dest function If(a,b){try{var c=a.abortableTasks;if(0 VIEW_SIZE) { - { - if (precomputedChunkSet.has(chunk)) { - error('A large precomputed chunk was passed to writeChunk without being copied.' + ' Large chunks get enqueued directly and are not copied. This is incompatible with precomputed chunks because you cannot enqueue the same precomputed chunk twice.' + ' Use "cloneChunk" to make a copy of this large precomputed chunk before writing it. This is a bug in React.'); - } - } // this chunk may overflow a single view which implies it was not + // this chunk may overflow a single view which implies it was not // one that is cached by the streaming renderer. We will enqueu // it directly and expect it is not re-used - - if (writtenBytes > 0) { destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes)); currentView = new Uint8Array(VIEW_SIZE); @@ -565,19 +559,17 @@ var textEncoder = new TextEncoder(); function stringToChunk(content) { return textEncoder.encode(content); } -var precomputedChunkSet = new Set() ; function stringToPrecomputedChunk(content) { var precomputedChunk = textEncoder.encode(content); { - precomputedChunkSet.add(precomputedChunk); + if (precomputedChunk.byteLength > VIEW_SIZE) { + error('precomputed chunks must be smaller than the view size configured for this host. This is a bug in React.'); + } } return precomputedChunk; } -function clonePrecomputedChunk(precomputedChunk) { - return precomputedChunk.byteLength > VIEW_SIZE ? precomputedChunk.slice() : precomputedChunk; -} function closeWithError(destination, error) { // $FlowFixMe[method-unbinding] if (typeof destination.error === 'function') { @@ -5232,7 +5224,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js index 3ccc8d37ee756..d506ef9ace5ea 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js @@ -13,7 +13,7 @@ var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-6c3b8dbfe-20240226'; +var ReactVersion = '18.3.0-experimental-14898b6a9-20240318'; // Do not require this module directly! Use normal `invariant` calls with // template literal strings. The messages will be replaced with error codes @@ -174,7 +174,7 @@ function murmurhash3_32_gc(key, seed) { function scheduleWork(callback) { callback(); } -const VIEW_SIZE = 512; +const VIEW_SIZE = 2048; let currentView = null; let writtenBytes = 0; function beginWriting(destination) { @@ -187,10 +187,9 @@ function writeChunk(destination, chunk) { } if (chunk.byteLength > VIEW_SIZE) { + // this chunk may overflow a single view which implies it was not // one that is cached by the streaming renderer. We will enqueu // it directly and expect it is not re-used - - if (writtenBytes > 0) { destination.enqueue(new Uint8Array(currentView.buffer, 0, writtenBytes)); currentView = new Uint8Array(VIEW_SIZE); @@ -250,9 +249,6 @@ function stringToPrecomputedChunk(content) { return precomputedChunk; } -function clonePrecomputedChunk(precomputedChunk) { - return precomputedChunk.byteLength > VIEW_SIZE ? precomputedChunk.slice() : precomputedChunk; -} function closeWithError(destination, error) { // $FlowFixMe[method-unbinding] if (typeof destination.error === 'function') { @@ -3340,7 +3336,7 @@ function writeCompletedBoundaryInstruction(destination, resumableState, renderSt if (requiresStyleInsertion) { if ((resumableState.instructions & SentCompleteBoundaryFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction | SentCompleteBoundaryFunction; - writeChunk(destination, clonePrecomputedChunk(completeBoundaryWithStylesScript1FullBoth)); + writeChunk(destination, completeBoundaryWithStylesScript1FullBoth); } else if ((resumableState.instructions & SentStyleInsertionFunction) === NothingSent) { resumableState.instructions |= SentStyleInsertionFunction; writeChunk(destination, completeBoundaryWithStylesScript1FullPartial); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js index 2be0753a704f2..686277e2ddfb0 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.min.js @@ -34,7 +34,7 @@ var ca=Symbol.for("react.element"),da=Symbol.for("react.portal"),ea=Symbol.for(" La=Symbol.for("react.legacy_hidden"),Ma=Symbol.for("react.cache"),Na=Symbol.for("react.memo_cache_sentinel"),Oa=Symbol.for("react.postpone"),Pa=Symbol.iterator,Qa=Array.isArray; function Xa(a,b){var c=a.length&3;var d=a.length-c;var e=b;for(b=0;b>>16)&65535)<<16)&4294967295;f=f<<15|f>>>17;f=461845907*(f&65535)+((461845907*(f>>>16)&65535)<<16)&4294967295;e^=f;e=e<<13|e>>>19;e=5*(e&65535)+((5*(e>>>16)&65535)<<16)&4294967295;e=(e&65535)+27492+(((e>>>16)+58964&65535)<<16)}f=0;switch(c){case 3:f^=(a.charCodeAt(b+2)&255)<< 16;case 2:f^=(a.charCodeAt(b+1)&255)<<8;case 1:f^=a.charCodeAt(b)&255,f=3432918353*(f&65535)+((3432918353*(f>>>16)&65535)<<16)&4294967295,f=f<<15|f>>>17,e^=461845907*(f&65535)+((461845907*(f>>>16)&65535)<<16)&4294967295}e^=a.length;e^=e>>>16;e=2246822507*(e&65535)+((2246822507*(e>>>16)&65535)<<16)&4294967295;e^=e>>>13;e=3266489909*(e&65535)+((3266489909*(e>>>16)&65535)<<16)&4294967295;return(e^e>>>16)>>>0}var p=null,r=0; -function u(a,b){if(0!==b.byteLength)if(512Ta.length?Ta[0]:null:Ta;"function"!==typeof pb&&"symbol"!==typeof pb&&null!==pb&&void 0!==pb&&a.push(z(J(""+pb)));Uc(a,ue,Ta);a.push(bd("style"));var ve=null}else{var Ha=e.styles.get(Nb);if(null!==(d.styleResources.hasOwnProperty(Ga)?d.styleResources[Ga]:void 0)){d.styleResources[Ga]=null;Ha?Ha.hrefs.push(z(J(Ga))):(Ha={precedence:z(J(Nb)),rules:[],hrefs:[z(J(Ga))],sheets:new Map},e.styles.set(Nb,Ha));var we=Ha.rules,Ua=null,xe=null,Pb;for(Pb in c)if(F.call(c,Pb)){var Hc= -c[Pb];if(null!=Hc)switch(Pb){case "children":Ua=Hc;break;case "dangerouslySetInnerHTML":xe=Hc}}var qb=Array.isArray(Ua)?2>Ua.length?Ua[0]:null:Ua;"function"!==typeof qb&&"symbol"!==typeof qb&&null!==qb&&void 0!==qb&&we.push(z(J(""+qb)));Uc(we,xe,Ua)}Ha&&f&&f.styles.add(Ha);h&&a.push(nc);ve=void 0}return ve;case "meta":if(3===g.insertionMode||g.tagScope&1||null!=c.itemProp)var ye=$c(a,c,"meta");else h&&a.push(nc),ye=k?null:"string"===typeof c.charSet?$c(e.charsetChunks,c,"meta"):"viewport"===c.name? -$c(e.viewportChunks,c,"meta"):$c(e.hoistableChunks,c,"meta");return ye;case "listing":case "pre":a.push(W(b));var rb=null,sb=null,tb;for(tb in c)if(F.call(c,tb)){var Qb=c[tb];if(null!=Qb)switch(tb){case "children":rb=Qb;break;case "dangerouslySetInnerHTML":sb=Qb;break;default:U(a,tb,Qb)}}a.push(V);if(null!=sb){if(null!=rb)throw Error(l(60));if("object"!==typeof sb||!("__html"in sb))throw Error(l(61));var Ia=sb.__html;null!==Ia&&void 0!==Ia&&("string"===typeof Ia&&0Ta.length?Ta[0]:null:Ta;"function"!==typeof pb&&"symbol"!==typeof pb&&null!==pb&&void 0!==pb&&a.push(z(J(""+pb)));Uc(a,te,Ta);a.push(bd("style"));var ue=null}else{var Ha=e.styles.get(Nb);if(null!==(d.styleResources.hasOwnProperty(Ga)?d.styleResources[Ga]:void 0)){d.styleResources[Ga]=null;Ha?Ha.hrefs.push(z(J(Ga))):(Ha={precedence:z(J(Nb)),rules:[],hrefs:[z(J(Ga))],sheets:new Map},e.styles.set(Nb,Ha));var ve=Ha.rules,Ua=null,we=null,Pb;for(Pb in c)if(F.call(c,Pb)){var Hc= +c[Pb];if(null!=Hc)switch(Pb){case "children":Ua=Hc;break;case "dangerouslySetInnerHTML":we=Hc}}var qb=Array.isArray(Ua)?2>Ua.length?Ua[0]:null:Ua;"function"!==typeof qb&&"symbol"!==typeof qb&&null!==qb&&void 0!==qb&&ve.push(z(J(""+qb)));Uc(ve,we,Ua)}Ha&&f&&f.styles.add(Ha);h&&a.push(nc);ue=void 0}return ue;case "meta":if(3===g.insertionMode||g.tagScope&1||null!=c.itemProp)var xe=$c(a,c,"meta");else h&&a.push(nc),xe=k?null:"string"===typeof c.charSet?$c(e.charsetChunks,c,"meta"):"viewport"===c.name? +$c(e.viewportChunks,c,"meta"):$c(e.hoistableChunks,c,"meta");return xe;case "listing":case "pre":a.push(W(b));var rb=null,sb=null,tb;for(tb in c)if(F.call(c,tb)){var Qb=c[tb];if(null!=Qb)switch(tb){case "children":rb=Qb;break;case "dangerouslySetInnerHTML":sb=Qb;break;default:U(a,tb,Qb)}}a.push(V);if(null!=sb){if(null!=rb)throw Error(l(60));if("object"!==typeof sb||!("__html"in sb))throw Error(l(61));var Ia=sb.__html;null!==Ia&&void 0!==Ia&&("string"===typeof Ia&&0e.highImagePreloads.size)Ic.delete(Va),e.highImagePreloads.add(Ja)}else if(!d.imageResources.hasOwnProperty(Va)){d.imageResources[Va]=Vb;var Jc=c.crossOrigin;var Ae="string"===typeof Jc?"use-credentials"===Jc?Jc:"":void 0;var ma=e.headers,Kc;ma&&0ma.highImagePreloads.length)&&(Kc=jd(S, -"image",{imageSrcSet:c.srcSet,imageSizes:c.sizes,crossOrigin:Ae,integrity:c.integrity,nonce:c.nonce,type:c.type,fetchPriority:c.fetchPriority,referrerPolicy:c.refererPolicy}),2<=(ma.remainingCapacity-=Kc.length))?(e.resets.image[Va]=Vb,ma.highImagePreloads&&(ma.highImagePreloads+=", "),ma.highImagePreloads+=Kc):(Ja=[],N(Ja,{rel:"preload",as:"image",href:M?void 0:S,imageSrcSet:M,imageSizes:ze,crossOrigin:Ae,integrity:c.integrity,type:c.type,fetchPriority:c.fetchPriority,referrerPolicy:c.referrerPolicy}), +M[3]&&"A"!==M[3])){var ye="string"===typeof c.sizes?c.sizes:void 0,Va=M?M+"\n"+(ye||""):S,Ic=e.preloads.images,Ja=Ic.get(Va);if(Ja){if("high"===c.fetchPriority||10>e.highImagePreloads.size)Ic.delete(Va),e.highImagePreloads.add(Ja)}else if(!d.imageResources.hasOwnProperty(Va)){d.imageResources[Va]=Vb;var Jc=c.crossOrigin;var ze="string"===typeof Jc?"use-credentials"===Jc?Jc:"":void 0;var ma=e.headers,Kc;ma&&0ma.highImagePreloads.length)&&(Kc=jd(S, +"image",{imageSrcSet:c.srcSet,imageSizes:c.sizes,crossOrigin:ze,integrity:c.integrity,nonce:c.nonce,type:c.type,fetchPriority:c.fetchPriority,referrerPolicy:c.refererPolicy}),2<=(ma.remainingCapacity-=Kc.length))?(e.resets.image[Va]=Vb,ma.highImagePreloads&&(ma.highImagePreloads+=", "),ma.highImagePreloads+=Kc):(Ja=[],N(Ja,{rel:"preload",as:"image",href:M?void 0:S,imageSrcSet:M,imageSizes:ye,crossOrigin:ze,integrity:c.integrity,type:c.type,fetchPriority:c.fetchPriority,referrerPolicy:c.referrerPolicy}), "high"===c.fetchPriority||10>e.highImagePreloads.size?e.highImagePreloads.add(Ja):(e.bulkPreloads.add(Ja),Ic.set(Va,Ja)))}}return $c(a,c,"img");case "base":case "area":case "br":case "col":case "embed":case "hr":case "keygen":case "param":case "source":case "track":case "wbr":return $c(a,c,b);case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":break;case "head":if(2>g.insertionMode&& -null===e.headChunks){e.headChunks=[];var Be=cd(e.headChunks,c,"head")}else Be=cd(a,c,"head");return Be;case "html":if(0===g.insertionMode&&null===e.htmlChunks){e.htmlChunks=[gd];var Ce=cd(e.htmlChunks,c,"html")}else Ce=cd(a,c,"html");return Ce;default:if(-1!==b.indexOf("-")){a.push(W(b));var Lc=null,De=null,Wa;for(Wa in c)if(F.call(c,Wa)){var ia=c[Wa];if(null!=ia){var Ee=Wa;switch(Wa){case "children":Lc=ia;break;case "dangerouslySetInnerHTML":De=ia;break;case "style":tc(a,ia);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "ref":break; -case "className":Ee="class";default:if(nb(Wa)&&"function"!==typeof ia&&"symbol"!==typeof ia&&!1!==ia){if(!0===ia)ia="";else if("object"===typeof ia)continue;a.push(P,z(Ee),vc,z(J(ia)),uc)}}}}a.push(V);Uc(a,De,Lc);return Lc}}return cd(a,c,b)}var kd=new Map;function bd(a){var b=kd.get(a);void 0===b&&(b=C(""),kd.set(a,b));return b}function ld(a,b){b=b.bootstrapChunks;for(var c=0;c"),kd.set(a,b));return b}function ld(a,b){b=b.bootstrapChunks;for(var c=0;c'),od=C("\x3c!--$--\x3e"),pd=C('\x3c!--$?--\x3e'),rd=C("\x3c!--$!--\x3e"),sd=C("\x3c!--/$--\x3e"),td=C("");function xd(a,b,c){u(a,pd);if(null===c)throw Error(l(395));u(a,b.boundaryPrefix);u(a,z(c.toString(16)));return x(a,qd)} var yd=C('"),Bd=C('"),Ed=C('"),Hd=C(''),Jd=C(""),Kd=C(''),Md=C(""),Nd=C(''),Pd=C(""),Qd=C(''),Sd=C(""); function Td(a,b,c,d){switch(c.insertionMode){case 0:case 1:case 2:return u(a,yd),u(a,b.segmentPrefix),u(a,z(d.toString(16))),x(a,zd);case 3:return u(a,Bd),u(a,b.segmentPrefix),u(a,z(d.toString(16))),x(a,Cd);case 4:return u(a,Ed),u(a,b.segmentPrefix),u(a,z(d.toString(16))),x(a,Fd);case 5:return u(a,Hd),u(a,b.segmentPrefix),u(a,z(d.toString(16))),x(a,Id);case 6:return u(a,Kd),u(a,b.segmentPrefix),u(a,z(d.toString(16))),x(a,Ld);case 7:return u(a,Nd),u(a,b.segmentPrefix),u(a,z(d.toString(16))),x(a,Od); case 8:return u(a,Qd),u(a,b.segmentPrefix),u(a,z(d.toString(16))),x(a,Rd);default:throw Error(l(397));}}function Ud(a,b){switch(b.insertionMode){case 0:case 1:case 2:return x(a,Ad);case 3:return x(a,Dd);case 4:return x(a,Gd);case 5:return x(a,Jd);case 6:return x(a,Md);case 7:return x(a,Pd);case 8:return x(a,Sd);default:throw Error(l(397));}} -var Vd=C('$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("'),Wd=C('$RS("'),Xd=C('","'),Yd=C('")\x3c/script>'),Zd=C('