Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1/**2 * @license React3 * react-dom-server.browser.development.js4 *5 * Copyright (c) Meta Platforms, Inc. and affiliates.6 *7 * This source code is licensed under the MIT license found in the8 * LICENSE file in the root directory of this source tree.9 */10 11/*12 13 14 JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)15 16 Copyright (c) 2011 Gary Court17 Permission is hereby granted, free of charge, to any person obtaining a copy18 of this software and associated documentation files (the "Software"), to deal19 in the Software without restriction, including without limitation the rights20 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell21 copies of the Software, and to permit persons to whom the Software is22 furnished to do so, subject to the following conditions:23 24 The above copyright notice and this permission notice shall be included in25 all copies or substantial portions of the Software.26 27 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR28 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,29 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE30 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER31 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,32 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE33 SOFTWARE.34*/35"use strict";36"production" !== process.env.NODE_ENV &&37 (function () {38 function styleReplacer(match, prefix, s, suffix) {39 return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;40 }41 function scriptReplacer(match, prefix, s, suffix) {42 return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;43 }44 function getIteratorFn(maybeIterable) {45 if (null === maybeIterable || "object" !== typeof maybeIterable)46 return null;47 maybeIterable =48 (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||49 maybeIterable["@@iterator"];50 return "function" === typeof maybeIterable ? maybeIterable : null;51 }52 function objectName(object) {53 object = Object.prototype.toString.call(object);54 return object.slice(8, object.length - 1);55 }56 function describeKeyForErrorMessage(key) {57 var encodedKey = JSON.stringify(key);58 return '"' + key + '"' === encodedKey ? key : encodedKey;59 }60 function describeValueForErrorMessage(value) {61 switch (typeof value) {62 case "string":63 return JSON.stringify(64 10 >= value.length ? value : value.slice(0, 10) + "..."65 );66 case "object":67 if (isArrayImpl(value)) return "[...]";68 if (null !== value && value.$$typeof === CLIENT_REFERENCE_TAG)69 return "client";70 value = objectName(value);71 return "Object" === value ? "{...}" : value;72 case "function":73 return value.$$typeof === CLIENT_REFERENCE_TAG74 ? "client"75 : (value = value.displayName || value.name)76 ? "function " + value77 : "function";78 default:79 return String(value);80 }81 }82 function describeElementType(type) {83 if ("string" === typeof type) return type;84 switch (type) {85 case REACT_SUSPENSE_TYPE:86 return "Suspense";87 case REACT_SUSPENSE_LIST_TYPE:88 return "SuspenseList";89 }90 if ("object" === typeof type)91 switch (type.$$typeof) {92 case REACT_FORWARD_REF_TYPE:93 return describeElementType(type.render);94 case REACT_MEMO_TYPE:95 return describeElementType(type.type);96 case REACT_LAZY_TYPE:97 var payload = type._payload;98 type = type._init;99 try {100 return describeElementType(type(payload));101 } catch (x) {}102 }103 return "";104 }105 function describeObjectForErrorMessage(objectOrArray, expandedName) {106 var objKind = objectName(objectOrArray);107 if ("Object" !== objKind && "Array" !== objKind) return objKind;108 var start = -1,109 length = 0;110 if (isArrayImpl(objectOrArray))111 if (jsxChildrenParents.has(objectOrArray)) {112 var type = jsxChildrenParents.get(objectOrArray);113 objKind = "<" + describeElementType(type) + ">";114 for (var i = 0; i < objectOrArray.length; i++) {115 var value = objectOrArray[i];116 value =117 "string" === typeof value118 ? value119 : "object" === typeof value && null !== value120 ? "{" + describeObjectForErrorMessage(value) + "}"121 : "{" + describeValueForErrorMessage(value) + "}";122 "" + i === expandedName123 ? ((start = objKind.length),124 (length = value.length),125 (objKind += value))126 : (objKind =127 15 > value.length && 40 > objKind.length + value.length128 ? objKind + value129 : objKind + "{...}");130 }131 objKind += "</" + describeElementType(type) + ">";132 } else {133 objKind = "[";134 for (type = 0; type < objectOrArray.length; type++)135 0 < type && (objKind += ", "),136 (i = objectOrArray[type]),137 (i =138 "object" === typeof i && null !== i139 ? describeObjectForErrorMessage(i)140 : describeValueForErrorMessage(i)),141 "" + type === expandedName142 ? ((start = objKind.length),143 (length = i.length),144 (objKind += i))145 : (objKind =146 10 > i.length && 40 > objKind.length + i.length147 ? objKind + i148 : objKind + "...");149 objKind += "]";150 }151 else if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE)152 objKind = "<" + describeElementType(objectOrArray.type) + "/>";153 else {154 if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) return "client";155 if (jsxPropsParents.has(objectOrArray)) {156 objKind = jsxPropsParents.get(objectOrArray);157 objKind = "<" + (describeElementType(objKind) || "...");158 type = Object.keys(objectOrArray);159 for (i = 0; i < type.length; i++) {160 objKind += " ";161 value = type[i];162 objKind += describeKeyForErrorMessage(value) + "=";163 var _value2 = objectOrArray[value];164 var _substr2 =165 value === expandedName &&166 "object" === typeof _value2 &&167 null !== _value2168 ? describeObjectForErrorMessage(_value2)169 : describeValueForErrorMessage(_value2);170 "string" !== typeof _value2 && (_substr2 = "{" + _substr2 + "}");171 value === expandedName172 ? ((start = objKind.length),173 (length = _substr2.length),174 (objKind += _substr2))175 : (objKind =176 10 > _substr2.length && 40 > objKind.length + _substr2.length177 ? objKind + _substr2178 : objKind + "...");179 }180 objKind += ">";181 } else {182 objKind = "{";183 type = Object.keys(objectOrArray);184 for (i = 0; i < type.length; i++)185 0 < i && (objKind += ", "),186 (value = type[i]),187 (objKind += describeKeyForErrorMessage(value) + ": "),188 (_value2 = objectOrArray[value]),189 (_value2 =190 "object" === typeof _value2 && null !== _value2191 ? describeObjectForErrorMessage(_value2)192 : describeValueForErrorMessage(_value2)),193 value === expandedName194 ? ((start = objKind.length),195 (length = _value2.length),196 (objKind += _value2))197 : (objKind =198 10 > _value2.length && 40 > objKind.length + _value2.length199 ? objKind + _value2200 : objKind + "...");201 objKind += "}";202 }203 }204 return void 0 === expandedName205 ? objKind206 : -1 < start && 0 < length207 ? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),208 "\n " + objKind + "\n " + objectOrArray)209 : "\n " + objKind;210 }211 function murmurhash3_32_gc(key, seed) {212 var remainder = key.length & 3;213 var bytes = key.length - remainder;214 var h1 = seed;215 for (seed = 0; seed < bytes; ) {216 var k1 =217 (key.charCodeAt(seed) & 255) |218 ((key.charCodeAt(++seed) & 255) << 8) |219 ((key.charCodeAt(++seed) & 255) << 16) |220 ((key.charCodeAt(++seed) & 255) << 24);221 ++seed;222 k1 =223 (3432918353 * (k1 & 65535) +224 (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &225 4294967295;226 k1 = (k1 << 15) | (k1 >>> 17);227 k1 =228 (461845907 * (k1 & 65535) +229 (((461845907 * (k1 >>> 16)) & 65535) << 16)) &230 4294967295;231 h1 ^= k1;232 h1 = (h1 << 13) | (h1 >>> 19);233 h1 =234 (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295;235 h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16);236 }237 k1 = 0;238 switch (remainder) {239 case 3:240 k1 ^= (key.charCodeAt(seed + 2) & 255) << 16;241 case 2:242 k1 ^= (key.charCodeAt(seed + 1) & 255) << 8;243 case 1:244 (k1 ^= key.charCodeAt(seed) & 255),245 (k1 =246 (3432918353 * (k1 & 65535) +247 (((3432918353 * (k1 >>> 16)) & 65535) << 16)) &248 4294967295),249 (k1 = (k1 << 15) | (k1 >>> 17)),250 (h1 ^=251 (461845907 * (k1 & 65535) +252 (((461845907 * (k1 >>> 16)) & 65535) << 16)) &253 4294967295);254 }255 h1 ^= key.length;256 h1 ^= h1 >>> 16;257 h1 =258 (2246822507 * (h1 & 65535) +259 (((2246822507 * (h1 >>> 16)) & 65535) << 16)) &260 4294967295;261 h1 ^= h1 >>> 13;262 h1 =263 (3266489909 * (h1 & 65535) +264 (((3266489909 * (h1 >>> 16)) & 65535) << 16)) &265 4294967295;266 return (h1 ^ (h1 >>> 16)) >>> 0;267 }268 function scheduleWork(callback) {269 taskQueue.push(callback);270 channel.port2.postMessage(null);271 }272 function handleErrorInNextTick(error) {273 setTimeout(function () {274 throw error;275 });276 }277 function writeChunk(destination, chunk) {278 if (0 !== chunk.byteLength)279 if (2048 < chunk.byteLength)280 0 < writtenBytes &&281 (destination.enqueue(282 new Uint8Array(currentView.buffer, 0, writtenBytes)283 ),284 (currentView = new Uint8Array(2048)),285 (writtenBytes = 0)),286 destination.enqueue(chunk);287 else {288 var allowableBytes = currentView.length - writtenBytes;289 allowableBytes < chunk.byteLength &&290 (0 === allowableBytes291 ? destination.enqueue(currentView)292 : (currentView.set(293 chunk.subarray(0, allowableBytes),294 writtenBytes295 ),296 destination.enqueue(currentView),297 (chunk = chunk.subarray(allowableBytes))),298 (currentView = new Uint8Array(2048)),299 (writtenBytes = 0));300 currentView.set(chunk, writtenBytes);301 writtenBytes += chunk.byteLength;302 }303 }304 function writeChunkAndReturn(destination, chunk) {305 writeChunk(destination, chunk);306 return !0;307 }308 function completeWriting(destination) {309 currentView &&310 0 < writtenBytes &&311 (destination.enqueue(312 new Uint8Array(currentView.buffer, 0, writtenBytes)313 ),314 (currentView = null),315 (writtenBytes = 0));316 }317 function stringToChunk(content) {318 return textEncoder.encode(content);319 }320 function stringToPrecomputedChunk(content) {321 content = textEncoder.encode(content);322 2048 < content.byteLength &&323 console.error(324 "precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."325 );326 return content;327 }328 function byteLengthOfChunk(chunk) {329 return chunk.byteLength;330 }331 function closeWithError(destination, error) {332 "function" === typeof destination.error333 ? destination.error(error)334 : destination.close();335 }336 function typeName(value) {337 return (338 ("function" === typeof Symbol &&339 Symbol.toStringTag &&340 value[Symbol.toStringTag]) ||341 value.constructor.name ||342 "Object"343 );344 }345 function willCoercionThrow(value) {346 try {347 return testStringCoercion(value), !1;348 } catch (e) {349 return !0;350 }351 }352 function testStringCoercion(value) {353 return "" + value;354 }355 function checkAttributeStringCoercion(value, attributeName) {356 if (willCoercionThrow(value))357 return (358 console.error(359 "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",360 attributeName,361 typeName(value)362 ),363 testStringCoercion(value)364 );365 }366 function checkCSSPropertyStringCoercion(value, propName) {367 if (willCoercionThrow(value))368 return (369 console.error(370 "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",371 propName,372 typeName(value)373 ),374 testStringCoercion(value)375 );376 }377 function checkHtmlStringCoercion(value) {378 if (willCoercionThrow(value))379 return (380 console.error(381 "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",382 typeName(value)383 ),384 testStringCoercion(value)385 );386 }387 function isAttributeNameSafe(attributeName) {388 if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))389 return !0;390 if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))391 return !1;392 if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))393 return (validatedAttributeNameCache[attributeName] = !0);394 illegalAttributeNameCache[attributeName] = !0;395 console.error("Invalid attribute name: `%s`", attributeName);396 return !1;397 }398 function checkControlledValueProps(tagName, props) {399 hasReadOnlyValue[props.type] ||400 props.onChange ||401 props.onInput ||402 props.readOnly ||403 props.disabled ||404 null == props.value ||405 ("select" === tagName406 ? console.error(407 "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."408 )409 : console.error(410 "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."411 ));412 props.onChange ||413 props.readOnly ||414 props.disabled ||415 null == props.checked ||416 console.error(417 "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."418 );419 }420 function validateProperty$1(tagName, name) {421 if (422 hasOwnProperty.call(warnedProperties$1, name) &&423 warnedProperties$1[name]424 )425 return !0;426 if (rARIACamel$1.test(name)) {427 tagName = "aria-" + name.slice(4).toLowerCase();428 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;429 if (null == tagName)430 return (431 console.error(432 "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",433 name434 ),435 (warnedProperties$1[name] = !0)436 );437 if (name !== tagName)438 return (439 console.error(440 "Invalid ARIA attribute `%s`. Did you mean `%s`?",441 name,442 tagName443 ),444 (warnedProperties$1[name] = !0)445 );446 }447 if (rARIA$1.test(name)) {448 tagName = name.toLowerCase();449 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;450 if (null == tagName) return (warnedProperties$1[name] = !0), !1;451 name !== tagName &&452 (console.error(453 "Unknown ARIA attribute `%s`. Did you mean `%s`?",454 name,455 tagName456 ),457 (warnedProperties$1[name] = !0));458 }459 return !0;460 }461 function validateProperties$2(type, props) {462 var invalidProps = [],463 key;464 for (key in props)465 validateProperty$1(type, key) || invalidProps.push(key);466 props = invalidProps467 .map(function (prop) {468 return "`" + prop + "`";469 })470 .join(", ");471 1 === invalidProps.length472 ? console.error(473 "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",474 props,475 type476 )477 : 1 < invalidProps.length &&478 console.error(479 "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",480 props,481 type482 );483 }484 function validateProperty(tagName, name, value, eventRegistry) {485 if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name])486 return !0;487 var lowerCasedName = name.toLowerCase();488 if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName)489 return (490 console.error(491 "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."492 ),493 (warnedProperties[name] = !0)494 );495 if (496 "function" === typeof value &&497 (("form" === tagName && "action" === name) ||498 ("input" === tagName && "formAction" === name) ||499 ("button" === tagName && "formAction" === name))500 )501 return !0;502 if (null != eventRegistry) {503 tagName = eventRegistry.possibleRegistrationNames;504 if (eventRegistry.registrationNameDependencies.hasOwnProperty(name))505 return !0;506 eventRegistry = tagName.hasOwnProperty(lowerCasedName)507 ? tagName[lowerCasedName]508 : null;509 if (null != eventRegistry)510 return (511 console.error(512 "Invalid event handler property `%s`. Did you mean `%s`?",513 name,514 eventRegistry515 ),516 (warnedProperties[name] = !0)517 );518 if (EVENT_NAME_REGEX.test(name))519 return (520 console.error(521 "Unknown event handler property `%s`. It will be ignored.",522 name523 ),524 (warnedProperties[name] = !0)525 );526 } else if (EVENT_NAME_REGEX.test(name))527 return (528 INVALID_EVENT_NAME_REGEX.test(name) &&529 console.error(530 "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",531 name532 ),533 (warnedProperties[name] = !0)534 );535 if (rARIA.test(name) || rARIACamel.test(name)) return !0;536 if ("innerhtml" === lowerCasedName)537 return (538 console.error(539 "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."540 ),541 (warnedProperties[name] = !0)542 );543 if ("aria" === lowerCasedName)544 return (545 console.error(546 "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."547 ),548 (warnedProperties[name] = !0)549 );550 if (551 "is" === lowerCasedName &&552 null !== value &&553 void 0 !== value &&554 "string" !== typeof value555 )556 return (557 console.error(558 "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",559 typeof value560 ),561 (warnedProperties[name] = !0)562 );563 if ("number" === typeof value && isNaN(value))564 return (565 console.error(566 "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",567 name568 ),569 (warnedProperties[name] = !0)570 );571 if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {572 if (573 ((lowerCasedName = possibleStandardNames[lowerCasedName]),574 lowerCasedName !== name)575 )576 return (577 console.error(578 "Invalid DOM property `%s`. Did you mean `%s`?",579 name,580 lowerCasedName581 ),582 (warnedProperties[name] = !0)583 );584 } else if (name !== lowerCasedName)585 return (586 console.error(587 "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",588 name,589 lowerCasedName590 ),591 (warnedProperties[name] = !0)592 );593 switch (name) {594 case "dangerouslySetInnerHTML":595 case "children":596 case "style":597 case "suppressContentEditableWarning":598 case "suppressHydrationWarning":599 case "defaultValue":600 case "defaultChecked":601 case "innerHTML":602 case "ref":603 return !0;604 case "innerText":605 case "textContent":606 return !0;607 }608 switch (typeof value) {609 case "boolean":610 switch (name) {611 case "autoFocus":612 case "checked":613 case "multiple":614 case "muted":615 case "selected":616 case "contentEditable":617 case "spellCheck":618 case "draggable":619 case "value":620 case "autoReverse":621 case "externalResourcesRequired":622 case "focusable":623 case "preserveAlpha":624 case "allowFullScreen":625 case "async":626 case "autoPlay":627 case "controls":628 case "default":629 case "defer":630 case "disabled":631 case "disablePictureInPicture":632 case "disableRemotePlayback":633 case "formNoValidate":634 case "hidden":635 case "loop":636 case "noModule":637 case "noValidate":638 case "open":639 case "playsInline":640 case "readOnly":641 case "required":642 case "reversed":643 case "scoped":644 case "seamless":645 case "itemScope":646 case "capture":647 case "download":648 case "inert":649 return !0;650 default:651 lowerCasedName = name.toLowerCase().slice(0, 5);652 if ("data-" === lowerCasedName || "aria-" === lowerCasedName)653 return !0;654 value655 ? console.error(656 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',657 value,658 name,659 name,660 value,661 name662 )663 : console.error(664 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',665 value,666 name,667 name,668 value,669 name,670 name,671 name672 );673 return (warnedProperties[name] = !0);674 }675 case "function":676 case "symbol":677 return (warnedProperties[name] = !0), !1;678 case "string":679 if ("false" === value || "true" === value) {680 switch (name) {681 case "checked":682 case "selected":683 case "multiple":684 case "muted":685 case "allowFullScreen":686 case "async":687 case "autoPlay":688 case "controls":689 case "default":690 case "defer":691 case "disabled":692 case "disablePictureInPicture":693 case "disableRemotePlayback":694 case "formNoValidate":695 case "hidden":696 case "loop":697 case "noModule":698 case "noValidate":699 case "open":700 case "playsInline":701 case "readOnly":702 case "required":703 case "reversed":704 case "scoped":705 case "seamless":706 case "itemScope":707 case "inert":708 break;709 default:710 return !0;711 }712 console.error(713 "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",714 value,715 name,716 "false" === value717 ? "The browser will interpret it as a truthy value."718 : 'Although this works, it will not work as expected if you pass the string "false".',719 name,720 value721 );722 warnedProperties[name] = !0;723 }724 }725 return !0;726 }727 function warnUnknownProperties(type, props, eventRegistry) {728 var unknownProps = [],729 key;730 for (key in props)731 validateProperty(type, key, props[key], eventRegistry) ||732 unknownProps.push(key);733 props = unknownProps734 .map(function (prop) {735 return "`" + prop + "`";736 })737 .join(", ");738 1 === unknownProps.length739 ? console.error(740 "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",741 props,742 type743 )744 : 1 < unknownProps.length &&745 console.error(746 "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",747 props,748 type749 );750 }751 function camelize(string) {752 return string.replace(hyphenPattern, function (_, character) {753 return character.toUpperCase();754 });755 }756 function escapeTextForBrowser(text) {757 if (758 "boolean" === typeof text ||759 "number" === typeof text ||760 "bigint" === typeof text761 )762 return "" + text;763 checkHtmlStringCoercion(text);764 text = "" + text;765 var match = matchHtmlRegExp.exec(text);766 if (match) {767 var html = "",768 index,769 lastIndex = 0;770 for (index = match.index; index < text.length; index++) {771 switch (text.charCodeAt(index)) {772 case 34:773 match = """;774 break;775 case 38:776 match = "&";777 break;778 case 39:779 match = "'";780 break;781 case 60:782 match = "<";783 break;784 case 62:785 match = ">";786 break;787 default:788 continue;789 }790 lastIndex !== index && (html += text.slice(lastIndex, index));791 lastIndex = index + 1;792 html += match;793 }794 text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;795 }796 return text;797 }798 function sanitizeURL(url) {799 return isJavaScriptProtocol.test("" + url)800 ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"801 : url;802 }803 function escapeEntireInlineScriptContent(scriptText) {804 checkHtmlStringCoercion(scriptText);805 return ("" + scriptText).replace(scriptRegex, scriptReplacer);806 }807 function createRenderState(808 resumableState,809 nonce,810 externalRuntimeConfig,811 importMap,812 onHeaders,813 maxHeadersLength814 ) {815 externalRuntimeConfig =816 "string" === typeof nonce ? nonce : nonce && nonce.script;817 var inlineScriptWithNonce =818 void 0 === externalRuntimeConfig819 ? startInlineScript820 : stringToPrecomputedChunk(821 '<script nonce="' +822 escapeTextForBrowser(externalRuntimeConfig) +823 '"'824 ),825 nonceStyle = "string" === typeof nonce ? void 0 : nonce && nonce.style,826 inlineStyleWithNonce =827 void 0 === nonceStyle828 ? startInlineStyle829 : stringToPrecomputedChunk(830 '<style nonce="' + escapeTextForBrowser(nonceStyle) + '"'831 ),832 idPrefix = resumableState.idPrefix,833 bootstrapChunks = [],834 bootstrapScriptContent = resumableState.bootstrapScriptContent,835 bootstrapScripts = resumableState.bootstrapScripts,836 bootstrapModules = resumableState.bootstrapModules;837 void 0 !== bootstrapScriptContent &&838 (bootstrapChunks.push(inlineScriptWithNonce),839 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),840 bootstrapChunks.push(841 endOfStartTag,842 stringToChunk(843 escapeEntireInlineScriptContent(bootstrapScriptContent)844 ),845 endInlineScript846 ));847 bootstrapScriptContent = [];848 void 0 !== importMap &&849 (bootstrapScriptContent.push(importMapScriptStart),850 bootstrapScriptContent.push(851 stringToChunk(852 escapeEntireInlineScriptContent(JSON.stringify(importMap))853 )854 ),855 bootstrapScriptContent.push(importMapScriptEnd));856 onHeaders &&857 "number" === typeof maxHeadersLength &&858 0 >= maxHeadersLength &&859 console.error(860 "React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",861 0 === maxHeadersLength ? "zero" : maxHeadersLength862 );863 importMap = onHeaders864 ? {865 preconnects: "",866 fontPreloads: "",867 highImagePreloads: "",868 remainingCapacity:869 2 +870 ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)871 }872 : null;873 onHeaders = {874 placeholderPrefix: stringToPrecomputedChunk(idPrefix + "P:"),875 segmentPrefix: stringToPrecomputedChunk(idPrefix + "S:"),876 boundaryPrefix: stringToPrecomputedChunk(idPrefix + "B:"),877 startInlineScript: inlineScriptWithNonce,878 startInlineStyle: inlineStyleWithNonce,879 preamble: createPreambleState(),880 externalRuntimeScript: null,881 bootstrapChunks: bootstrapChunks,882 importMapChunks: bootstrapScriptContent,883 onHeaders: onHeaders,884 headers: importMap,885 resets: {886 font: {},887 dns: {},888 connect: { default: {}, anonymous: {}, credentials: {} },889 image: {},890 style: {}891 },892 charsetChunks: [],893 viewportChunks: [],894 hoistableChunks: [],895 preconnects: new Set(),896 fontPreloads: new Set(),897 highImagePreloads: new Set(),898 styles: new Map(),899 bootstrapScripts: new Set(),900 scripts: new Set(),901 bulkPreloads: new Set(),902 preloads: {903 images: new Map(),904 stylesheets: new Map(),905 scripts: new Map(),906 moduleScripts: new Map()907 },908 nonce: { script: externalRuntimeConfig, style: nonceStyle },909 hoistableState: null,910 stylesToHoist: !1911 };912 if (void 0 !== bootstrapScripts)913 for (importMap = 0; importMap < bootstrapScripts.length; importMap++)914 (maxHeadersLength = bootstrapScripts[importMap]),915 (inlineStyleWithNonce = nonceStyle = void 0),916 (idPrefix = {917 rel: "preload",918 as: "script",919 fetchPriority: "low",920 nonce: nonce921 }),922 "string" === typeof maxHeadersLength923 ? (idPrefix.href = inlineScriptWithNonce = maxHeadersLength)924 : ((idPrefix.href = inlineScriptWithNonce = maxHeadersLength.src),925 (idPrefix.integrity = inlineStyleWithNonce =926 "string" === typeof maxHeadersLength.integrity927 ? maxHeadersLength.integrity928 : void 0),929 (idPrefix.crossOrigin = nonceStyle =930 "string" === typeof maxHeadersLength ||931 null == maxHeadersLength.crossOrigin932 ? void 0933 : "use-credentials" === maxHeadersLength.crossOrigin934 ? "use-credentials"935 : "")),936 preloadBootstrapScriptOrModule(937 resumableState,938 onHeaders,939 inlineScriptWithNonce,940 idPrefix941 ),942 bootstrapChunks.push(943 startScriptSrc,944 stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),945 attributeEnd946 ),947 externalRuntimeConfig &&948 bootstrapChunks.push(949 scriptNonce,950 stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),951 attributeEnd952 ),953 "string" === typeof inlineStyleWithNonce &&954 bootstrapChunks.push(955 scriptIntegirty,956 stringToChunk(escapeTextForBrowser(inlineStyleWithNonce)),957 attributeEnd958 ),959 "string" === typeof nonceStyle &&960 bootstrapChunks.push(961 scriptCrossOrigin,962 stringToChunk(escapeTextForBrowser(nonceStyle)),963 attributeEnd964 ),965 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),966 bootstrapChunks.push(endAsyncScript);967 if (void 0 !== bootstrapModules)968 for (nonce = 0; nonce < bootstrapModules.length; nonce++)969 (bootstrapScripts = bootstrapModules[nonce]),970 (inlineScriptWithNonce = maxHeadersLength = void 0),971 (nonceStyle = {972 rel: "modulepreload",973 fetchPriority: "low",974 nonce: externalRuntimeConfig975 }),976 "string" === typeof bootstrapScripts977 ? (nonceStyle.href = importMap = bootstrapScripts)978 : ((nonceStyle.href = importMap = bootstrapScripts.src),979 (nonceStyle.integrity = inlineScriptWithNonce =980 "string" === typeof bootstrapScripts.integrity981 ? bootstrapScripts.integrity982 : void 0),983 (nonceStyle.crossOrigin = maxHeadersLength =984 "string" === typeof bootstrapScripts ||985 null == bootstrapScripts.crossOrigin986 ? void 0987 : "use-credentials" === bootstrapScripts.crossOrigin988 ? "use-credentials"989 : "")),990 preloadBootstrapScriptOrModule(991 resumableState,992 onHeaders,993 importMap,994 nonceStyle995 ),996 bootstrapChunks.push(997 startModuleSrc,998 stringToChunk(escapeTextForBrowser(importMap)),999 attributeEnd1000 ),1001 externalRuntimeConfig &&1002 bootstrapChunks.push(1003 scriptNonce,1004 stringToChunk(escapeTextForBrowser(externalRuntimeConfig)),1005 attributeEnd1006 ),1007 "string" === typeof inlineScriptWithNonce &&1008 bootstrapChunks.push(1009 scriptIntegirty,1010 stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),1011 attributeEnd1012 ),1013 "string" === typeof maxHeadersLength &&1014 bootstrapChunks.push(1015 scriptCrossOrigin,1016 stringToChunk(escapeTextForBrowser(maxHeadersLength)),1017 attributeEnd1018 ),1019 pushCompletedShellIdAttribute(bootstrapChunks, resumableState),1020 bootstrapChunks.push(endAsyncScript);1021 return onHeaders;1022 }1023 function createResumableState(1024 identifierPrefix,1025 externalRuntimeConfig,1026 bootstrapScriptContent,1027 bootstrapScripts,1028 bootstrapModules1029 ) {1030 return {1031 idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix,1032 nextFormID: 0,1033 streamingFormat: 0,1034 bootstrapScriptContent: bootstrapScriptContent,1035 bootstrapScripts: bootstrapScripts,1036 bootstrapModules: bootstrapModules,1037 instructions: NothingSent,1038 hasBody: !1,1039 hasHtml: !1,1040 unknownResources: {},1041 dnsResources: {},1042 connectResources: { default: {}, anonymous: {}, credentials: {} },1043 imageResources: {},1044 styleResources: {},1045 scriptResources: {},1046 moduleUnknownResources: {},1047 moduleScriptResources: {}1048 };1049 }1050 function createPreambleState() {1051 return { htmlChunks: null, headChunks: null, bodyChunks: null };1052 }1053 function createFormatContext(1054 insertionMode,1055 selectedValue,1056 tagScope,1057 viewTransition1058 ) {1059 return {1060 insertionMode: insertionMode,1061 selectedValue: selectedValue,1062 tagScope: tagScope,1063 viewTransition: viewTransition1064 };1065 }1066 function createRootFormatContext(namespaceURI) {1067 return createFormatContext(1068 "http://www.w3.org/2000/svg" === namespaceURI1069 ? SVG_MODE1070 : "http://www.w3.org/1998/Math/MathML" === namespaceURI1071 ? MATHML_MODE1072 : ROOT_HTML_MODE,1073 null,1074 0,1075 null1076 );1077 }1078 function getChildFormatContext(parentContext, type, props) {1079 var subtreeScope = parentContext.tagScope & -25;1080 switch (type) {1081 case "noscript":1082 return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);1083 case "select":1084 return createFormatContext(1085 HTML_MODE,1086 null != props.value ? props.value : props.defaultValue,1087 subtreeScope,1088 null1089 );1090 case "svg":1091 return createFormatContext(SVG_MODE, null, subtreeScope, null);1092 case "picture":1093 return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);1094 case "math":1095 return createFormatContext(MATHML_MODE, null, subtreeScope, null);1096 case "foreignObject":1097 return createFormatContext(HTML_MODE, null, subtreeScope, null);1098 case "table":1099 return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);1100 case "thead":1101 case "tbody":1102 case "tfoot":1103 return createFormatContext(1104 HTML_TABLE_BODY_MODE,1105 null,1106 subtreeScope,1107 null1108 );1109 case "colgroup":1110 return createFormatContext(1111 HTML_COLGROUP_MODE,1112 null,1113 subtreeScope,1114 null1115 );1116 case "tr":1117 return createFormatContext(1118 HTML_TABLE_ROW_MODE,1119 null,1120 subtreeScope,1121 null1122 );1123 case "head":1124 if (parentContext.insertionMode < HTML_MODE)1125 return createFormatContext(1126 HTML_HEAD_MODE,1127 null,1128 subtreeScope,1129 null1130 );1131 break;1132 case "html":1133 if (parentContext.insertionMode === ROOT_HTML_MODE)1134 return createFormatContext(1135 HTML_HTML_MODE,1136 null,1137 subtreeScope,1138 null1139 );1140 }1141 return parentContext.insertionMode >= HTML_TABLE_MODE ||1142 parentContext.insertionMode < HTML_MODE1143 ? createFormatContext(HTML_MODE, null, subtreeScope, null)1144 : parentContext.tagScope !== subtreeScope1145 ? createFormatContext(1146 parentContext.insertionMode,1147 parentContext.selectedValue,1148 subtreeScope,1149 null1150 )1151 : parentContext;1152 }1153 function getSuspenseViewTransition(parentViewTransition) {1154 return null === parentViewTransition1155 ? null1156 : {1157 update: parentViewTransition.update,1158 enter: "none",1159 exit: "none",1160 share: parentViewTransition.update,1161 name: parentViewTransition.autoName,1162 autoName: parentViewTransition.autoName,1163 nameIdx: 01164 };1165 }1166 function getSuspenseFallbackFormatContext(resumableState, parentContext) {1167 parentContext.tagScope & 32 && (resumableState.instructions |= 128);1168 return createFormatContext(1169 parentContext.insertionMode,1170 parentContext.selectedValue,1171 parentContext.tagScope | 12,1172 getSuspenseViewTransition(parentContext.viewTransition)1173 );1174 }1175 function getSuspenseContentFormatContext(resumableState, parentContext) {1176 resumableState = getSuspenseViewTransition(parentContext.viewTransition);1177 var subtreeScope = parentContext.tagScope | 16;1178 null !== resumableState &&1179 "none" !== resumableState.share &&1180 (subtreeScope |= 64);1181 return createFormatContext(1182 parentContext.insertionMode,1183 parentContext.selectedValue,1184 subtreeScope,1185 resumableState1186 );1187 }1188 function pushTextInstance(target, text, renderState, textEmbedded) {1189 if ("" === text) return textEmbedded;1190 textEmbedded && target.push(textSeparator);1191 target.push(stringToChunk(escapeTextForBrowser(text)));1192 return !0;1193 }1194 function pushStyleAttribute(target, style) {1195 if ("object" !== typeof style)1196 throw Error(1197 "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."1198 );1199 var isFirst = !0,1200 styleName;