// ==UserScript== // @name Pixiv Automatic exclusion search // @name:zh-CN Pixiv 自动排除搜索 // @name:ja Pixiv 自動で除外検索 // @version 0.1.0 // @license MIT // @author yakisova41 // @namespace https://yakisova.com/ // @description When you do a pixiv search, it automatically does an exclusion search. // @description:ja pixiv検索をした時に、自動的に除外検索をします。 // @description:zh-CN 当你进行pixiv搜索时,它会自动进行排除性搜索。 // @match https://www.pixiv.net/* // @downloadURL none // ==/UserScript== /* MIT License Copyright (c) 2022 yakisova41 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (() => { var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __esm = (fn, res) => function __init() { return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); // node_modules/react/cjs/react.production.min.js var require_react_production_min = __commonJS({ "node_modules/react/cjs/react.production.min.js"(exports) { "use strict"; var l = Symbol.for("react.element"); var n = Symbol.for("react.portal"); var p = Symbol.for("react.fragment"); var q = Symbol.for("react.strict_mode"); var r = Symbol.for("react.profiler"); var t = Symbol.for("react.provider"); var u = Symbol.for("react.context"); var v = Symbol.for("react.forward_ref"); var w = Symbol.for("react.suspense"); var x = Symbol.for("react.memo"); var y = Symbol.for("react.lazy"); var z = Symbol.iterator; function A(a) { if (null === a || "object" !== typeof a) return null; a = z && a[z] || a["@@iterator"]; return "function" === typeof a ? a : null; } var B = { isMounted: function() { return false; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }; var C = Object.assign; var D = {}; function E(a, b, e) { this.props = a; this.context = b; this.refs = D; this.updater = e || B; } E.prototype.isReactComponent = {}; E.prototype.setState = function(a, b) { if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, a, b, "setState"); }; E.prototype.forceUpdate = function(a) { this.updater.enqueueForceUpdate(this, a, "forceUpdate"); }; function F() { } F.prototype = E.prototype; function G(a, b, e) { this.props = a; this.context = b; this.refs = D; this.updater = e || B; } var H = G.prototype = new F(); H.constructor = G; C(H, E.prototype); H.isPureReactComponent = true; var I = Array.isArray; var J = Object.prototype.hasOwnProperty; var K = { current: null }; var L = { key: true, ref: true, __self: true, __source: true }; function M(a, b, e) { var d, c = {}, k = null, h = null; if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); var g = arguments.length - 2; if (1 === g) c.children = e; else if (1 < g) { for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2]; c.children = f; } if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]); return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current }; } function N(a, b) { return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner }; } function O(a) { return "object" === typeof a && null !== a && a.$$typeof === l; } function escape(a) { var b = { "=": "=0", ":": "=2" }; return "$" + a.replace(/[=:]/g, function(a2) { return b[a2]; }); } var P = /\/+/g; function Q(a, b) { return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); } function R(a, b, e, d, c) { var k = typeof a; if ("undefined" === k || "boolean" === k) a = null; var h = false; if (null === a) h = true; else switch (k) { case "string": case "number": h = true; break; case "object": switch (a.$$typeof) { case l: case n: h = true; } } if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) { return a2; })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1; h = 0; d = "" === d ? "." : d + ":"; if (I(a)) for (var g = 0; g < a.length; g++) { k = a[g]; var f = d + Q(k, g); h += R(k, b, e, f, c); } else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done; ) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c); else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); return h; } function S(a, b, e) { if (null == a) return a; var d = [], c = 0; R(a, d, "", "", function(a2) { return b.call(e, a2, c++); }); return d; } function T(a) { if (-1 === a._status) { var b = a._result; b = b(); b.then(function(b2) { if (0 === a._status || -1 === a._status) a._status = 1, a._result = b2; }, function(b2) { if (0 === a._status || -1 === a._status) a._status = 2, a._result = b2; }); -1 === a._status && (a._status = 0, a._result = b); } if (1 === a._status) return a._result.default; throw a._result; } var U = { current: null }; var V = { transition: null }; var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K }; exports.Children = { map: S, forEach: function(a, b, e) { S(a, function() { b.apply(this, arguments); }, e); }, count: function(a) { var b = 0; S(a, function() { b++; }); return b; }, toArray: function(a) { return S(a, function(a2) { return a2; }) || []; }, only: function(a) { if (!O(a)) throw Error("React.Children.only expected to receive a single React element child."); return a; } }; exports.Component = E; exports.Fragment = p; exports.Profiler = r; exports.PureComponent = G; exports.StrictMode = q; exports.Suspense = w; exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W; exports.cloneElement = function(a, b, e) { if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner; if (null != b) { void 0 !== b.ref && (k = b.ref, h = K.current); void 0 !== b.key && (c = "" + b.key); if (a.type && a.type.defaultProps) var g = a.type.defaultProps; for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); } var f = arguments.length - 2; if (1 === f) d.children = e; else if (1 < f) { g = Array(f); for (var m = 0; m < f; m++) g[m] = arguments[m + 2]; d.children = g; } return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h }; }; exports.createContext = function(a) { a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }; a.Provider = { $$typeof: t, _context: a }; return a.Consumer = a; }; exports.createElement = M; exports.createFactory = function(a) { var b = M.bind(null, a); b.type = a; return b; }; exports.createRef = function() { return { current: null }; }; exports.forwardRef = function(a) { return { $$typeof: v, render: a }; }; exports.isValidElement = O; exports.lazy = function(a) { return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T }; }; exports.memo = function(a, b) { return { $$typeof: x, type: a, compare: void 0 === b ? null : b }; }; exports.startTransition = function(a) { var b = V.transition; V.transition = {}; try { a(); } finally { V.transition = b; } }; exports.unstable_act = function() { throw Error("act(...) is not supported in production builds of React."); }; exports.useCallback = function(a, b) { return U.current.useCallback(a, b); }; exports.useContext = function(a) { return U.current.useContext(a); }; exports.useDebugValue = function() { }; exports.useDeferredValue = function(a) { return U.current.useDeferredValue(a); }; exports.useEffect = function(a, b) { return U.current.useEffect(a, b); }; exports.useId = function() { return U.current.useId(); }; exports.useImperativeHandle = function(a, b, e) { return U.current.useImperativeHandle(a, b, e); }; exports.useInsertionEffect = function(a, b) { return U.current.useInsertionEffect(a, b); }; exports.useLayoutEffect = function(a, b) { return U.current.useLayoutEffect(a, b); }; exports.useMemo = function(a, b) { return U.current.useMemo(a, b); }; exports.useReducer = function(a, b, e) { return U.current.useReducer(a, b, e); }; exports.useRef = function(a) { return U.current.useRef(a); }; exports.useState = function(a) { return U.current.useState(a); }; exports.useSyncExternalStore = function(a, b, e) { return U.current.useSyncExternalStore(a, b, e); }; exports.useTransition = function() { return U.current.useTransition(); }; exports.version = "18.2.0"; } }); // node_modules/react/index.js var require_react = __commonJS({ "node_modules/react/index.js"(exports, module) { "use strict"; if (true) { module.exports = require_react_production_min(); } else { module.exports = null; } } }); // node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js var require_react_dom_server_legacy_browser_production_min = __commonJS({ "node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js"(exports) { "use strict"; var aa = require_react(); function l(a) { for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]); return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var p = Object.prototype.hasOwnProperty; var fa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; var ha = {}; var ia = {}; function ja(a) { if (p.call(ia, a)) return true; if (p.call(ha, a)) return false; if (fa.test(a)) return ia[a] = true; ha[a] = true; return false; } function r(a, b, c, d, f, e, g) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b; this.attributeName = d; this.attributeNamespace = f; this.mustUseProperty = c; this.propertyName = a; this.type = b; this.sanitizeURL = e; this.removeEmptyString = g; } var t = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) { t[a] = new r(a, 0, false, a, null, false, false); }); [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a) { var b = a[0]; t[b] = new r(b, 1, false, a[1], null, false, false); }); ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a) { t[a] = new r(a, 2, false, a.toLowerCase(), null, false, false); }); ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a) { t[a] = new r(a, 2, false, a, null, false, false); }); "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) { t[a] = new r(a, 3, false, a.toLowerCase(), null, false, false); }); ["checked", "multiple", "muted", "selected"].forEach(function(a) { t[a] = new r(a, 3, true, a, null, false, false); }); ["capture", "download"].forEach(function(a) { t[a] = new r(a, 4, false, a, null, false, false); }); ["cols", "rows", "size", "span"].forEach(function(a) { t[a] = new r(a, 6, false, a, null, false, false); }); ["rowSpan", "start"].forEach(function(a) { t[a] = new r(a, 5, false, a.toLowerCase(), null, false, false); }); var ka = /[\-:]([a-z])/g; function la(a) { return a[1].toUpperCase(); } "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 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) { var b = a.replace( ka, la ); t[b] = new r(b, 1, false, a, null, false, false); }); "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) { var b = a.replace(ka, la); t[b] = new r(b, 1, false, a, "http://www.w3.org/1999/xlink", false, false); }); ["xml:base", "xml:lang", "xml:space"].forEach(function(a) { var b = a.replace(ka, la); t[b] = new r(b, 1, false, a, "http://www.w3.org/XML/1998/namespace", false, false); }); ["tabIndex", "crossOrigin"].forEach(function(a) { t[a] = new r(a, 1, false, a.toLowerCase(), null, false, false); }); t.xlinkHref = new r("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); ["src", "href", "action", "formAction"].forEach(function(a) { t[a] = new r(a, 1, false, a.toLowerCase(), null, true, true); }); var u = { animationIterationCount: true, aspectRatio: true, borderImageOutset: true, borderImageSlice: true, borderImageWidth: true, boxFlex: true, boxFlexGroup: true, boxOrdinalGroup: true, columnCount: true, columns: true, flex: true, flexGrow: true, flexPositive: true, flexShrink: true, flexNegative: true, flexOrder: true, gridArea: true, gridRow: true, gridRowEnd: true, gridRowSpan: true, gridRowStart: true, gridColumn: true, gridColumnEnd: true, gridColumnSpan: true, gridColumnStart: true, fontWeight: true, lineClamp: true, lineHeight: true, opacity: true, order: true, orphans: true, tabSize: true, widows: true, zIndex: true, zoom: true, fillOpacity: true, floodOpacity: true, stopOpacity: true, strokeDasharray: true, strokeDashoffset: true, strokeMiterlimit: true, strokeOpacity: true, strokeWidth: true }; var ma = ["Webkit", "ms", "Moz", "O"]; Object.keys(u).forEach(function(a) { ma.forEach(function(b) { b = b + a.charAt(0).toUpperCase() + a.substring(1); u[b] = u[a]; }); }); var na = /["'&<>]/; function v(a) { if ("boolean" === typeof a || "number" === typeof a) return "" + a; a = "" + a; var b = na.exec(a); if (b) { var c = "", d, f = 0; for (d = b.index; d < a.length; d++) { switch (a.charCodeAt(d)) { case 34: b = """; break; case 38: b = "&"; break; case 39: b = "'"; break; case 60: b = "<"; break; case 62: b = ">"; break; default: continue; } f !== d && (c += a.substring(f, d)); f = d + 1; c += b; } a = f !== d ? c + a.substring(f, d) : c; } return a; } var oa = /([A-Z])/g; var pa = /^ms-/; var qa = Array.isArray; function w(a, b) { return { insertionMode: a, selectedValue: b }; } function ra(a, b, c) { switch (b) { case "select": return w(1, null != c.value ? c.value : c.defaultValue); case "svg": return w(2, null); case "math": return w(3, null); case "foreignObject": return w(1, null); case "table": return w(4, null); case "thead": case "tbody": case "tfoot": return w(5, null); case "colgroup": return w(7, null); case "tr": return w(6, null); } return 4 <= a.insertionMode || 0 === a.insertionMode ? w(1, null) : a; } var sa = /* @__PURE__ */ new Map(); function ta(a, b, c) { if ("object" !== typeof c) throw Error(l(62)); b = true; for (var d in c) if (p.call(c, d)) { var f = c[d]; if (null != f && "boolean" !== typeof f && "" !== f) { if (0 === d.indexOf("--")) { var e = v(d); f = v(("" + f).trim()); } else { e = d; var g = sa.get(e); void 0 !== g ? e = g : (g = v(e.replace(oa, "-$1").toLowerCase().replace(pa, "-ms-")), sa.set(e, g), e = g); f = "number" === typeof f ? 0 === f || p.call(u, d) ? "" + f : f + "px" : v(("" + f).trim()); } b ? (b = false, a.push(' style="', e, ":", f)) : a.push(";", e, ":", f); } } b || a.push('"'); } function x(a, b, c, d) { switch (c) { case "style": ta(a, b, d); return; case "defaultValue": case "defaultChecked": case "innerHTML": case "suppressContentEditableWarning": case "suppressHydrationWarning": return; } if (!(2 < c.length) || "o" !== c[0] && "O" !== c[0] || "n" !== c[1] && "N" !== c[1]) { if (b = t.hasOwnProperty(c) ? t[c] : null, null !== b) { switch (typeof d) { case "function": case "symbol": return; case "boolean": if (!b.acceptsBooleans) return; } c = b.attributeName; switch (b.type) { case 3: d && a.push(" ", c, '=""'); break; case 4: true === d ? a.push(" ", c, '=""') : false !== d && a.push(" ", c, '="', v(d), '"'); break; case 5: isNaN(d) || a.push(" ", c, '="', v(d), '"'); break; case 6: !isNaN(d) && 1 <= d && a.push(" ", c, '="', v(d), '"'); break; default: b.sanitizeURL && (d = "" + d), a.push(" ", c, '="', v(d), '"'); } } else if (ja(c)) { switch (typeof d) { case "function": case "symbol": return; case "boolean": if (b = c.toLowerCase().slice(0, 5), "data-" !== b && "aria-" !== b) return; } a.push(" ", c, '="', v(d), '"'); } } } function y(a, b, c) { if (null != b) { if (null != c) throw Error(l(60)); if ("object" !== typeof b || !("__html" in b)) throw Error(l(61)); b = b.__html; null !== b && void 0 !== b && a.push("" + b); } } function ua(a) { var b = ""; aa.Children.forEach(a, function(a2) { null != a2 && (b += a2); }); return b; } function va(a, b, c, d) { a.push(A(c)); var f = c = null, e; for (e in b) if (p.call(b, e)) { var g = b[e]; if (null != g) switch (e) { case "children": c = g; break; case "dangerouslySetInnerHTML": f = g; break; default: x(a, d, e, g); } } a.push(">"); y(a, f, c); return "string" === typeof c ? (a.push(v(c)), null) : c; } var wa = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; var xa = /* @__PURE__ */ new Map(); function A(a) { var b = xa.get(a); if (void 0 === b) { if (!wa.test(a)) throw Error(l(65, a)); b = "<" + a; xa.set(a, b); } return b; } function ya(a, b, c, d, f) { switch (b) { case "select": a.push(A("select")); var e = null, g = null; for (n in c) if (p.call(c, n)) { var h = c[n]; if (null != h) switch (n) { case "children": e = h; break; case "dangerouslySetInnerHTML": g = h; break; case "defaultValue": case "value": break; default: x(a, d, n, h); } } a.push(">"); y(a, g, e); return e; case "option": g = f.selectedValue; a.push(A("option")); var k = h = null, m = null; var n = null; for (e in c) if (p.call(c, e)) { var q = c[e]; if (null != q) switch (e) { case "children": h = q; break; case "selected": m = q; break; case "dangerouslySetInnerHTML": n = q; break; case "value": k = q; default: x(a, d, e, q); } } if (null != g) if (c = null !== k ? "" + k : ua(h), qa(g)) for (d = 0; d < g.length; d++) { if ("" + g[d] === c) { a.push(' selected=""'); break; } } else "" + g === c && a.push(' selected=""'); else m && a.push(' selected=""'); a.push(">"); y(a, n, h); return h; case "textarea": a.push(A("textarea")); n = g = e = null; for (h in c) if (p.call(c, h) && (k = c[h], null != k)) switch (h) { case "children": n = k; break; case "value": e = k; break; case "defaultValue": g = k; break; case "dangerouslySetInnerHTML": throw Error(l(91)); default: x( a, d, h, k ); } null === e && null !== g && (e = g); a.push(">"); if (null != n) { if (null != e) throw Error(l(92)); if (qa(n) && 1 < n.length) throw Error(l(93)); e = "" + n; } "string" === typeof e && "\n" === e[0] && a.push("\n"); null !== e && a.push(v("" + e)); return null; case "input": a.push(A("input")); k = n = h = e = null; for (g in c) if (p.call(c, g) && (m = c[g], null != m)) switch (g) { case "children": case "dangerouslySetInnerHTML": throw Error(l(399, "input")); case "defaultChecked": k = m; break; case "defaultValue": h = m; break; case "checked": n = m; break; case "value": e = m; break; default: x(a, d, g, m); } null !== n ? x(a, d, "checked", n) : null !== k && x(a, d, "checked", k); null !== e ? x(a, d, "value", e) : null !== h && x(a, d, "value", h); a.push("/>"); return null; case "menuitem": a.push(A("menuitem")); for (var C in c) if (p.call(c, C) && (e = c[C], null != e)) switch (C) { case "children": case "dangerouslySetInnerHTML": throw Error(l(400)); default: x(a, d, C, e); } a.push(">"); return null; case "title": a.push(A("title")); e = null; for (q in c) if (p.call(c, q) && (g = c[q], null != g)) switch (q) { case "children": e = g; break; case "dangerouslySetInnerHTML": throw Error(l(434)); default: x(a, d, q, g); } a.push(">"); return e; case "listing": case "pre": a.push(A(b)); g = e = null; for (k in c) if (p.call(c, k) && (h = c[k], null != h)) switch (k) { case "children": e = h; break; case "dangerouslySetInnerHTML": g = h; break; default: x(a, d, k, h); } a.push(">"); if (null != g) { if (null != e) throw Error(l(60)); if ("object" !== typeof g || !("__html" in g)) throw Error(l(61)); c = g.__html; null !== c && void 0 !== c && ("string" === typeof c && 0 < c.length && "\n" === c[0] ? a.push("\n", c) : a.push("" + c)); } "string" === typeof e && "\n" === e[0] && a.push("\n"); return e; case "area": case "base": case "br": case "col": case "embed": case "hr": case "img": case "keygen": case "link": case "meta": case "param": case "source": case "track": case "wbr": a.push(A(b)); for (var D in c) if (p.call(c, D) && (e = c[D], null != e)) switch (D) { case "children": case "dangerouslySetInnerHTML": throw Error(l(399, b)); default: x(a, d, D, e); } a.push("/>"); return null; 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": return va( a, c, b, d ); case "html": return 0 === f.insertionMode && a.push(""), va(a, c, b, d); default: if (-1 === b.indexOf("-") && "string" !== typeof c.is) return va(a, c, b, d); a.push(A(b)); g = e = null; for (m in c) if (p.call(c, m) && (h = c[m], null != h)) switch (m) { case "children": e = h; break; case "dangerouslySetInnerHTML": g = h; break; case "style": ta(a, d, h); break; case "suppressContentEditableWarning": case "suppressHydrationWarning": break; default: ja(m) && "function" !== typeof h && "symbol" !== typeof h && a.push(" ", m, '="', v(h), '"'); } a.push(">"); y(a, g, e); return e; } } function za(a, b, c) { a.push(''); } function Aa(a, b, c, d) { switch (c.insertionMode) { case 0: case 1: return a.push('