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5sB,YAAemJ,SAAS8P,MAC1D5C,GAAeuW,GACnB,EAAA/f,EAAA/C,SAAgB6iB,EAAKnJ,IAErB,EAAA3W,EAAAhF,QAAO8kB,EAAKnJ,GAEbnN,GAAc,CACf,CuCaA,CAAQ2B,EAAC0U,GAAA","sources":["node_modules/@parcel/runtime-js/lib/helpers/bundle-manifest.js","node_modules/preact/src/util.js","node_modules/preact/src/options.js","node_modules/preact/src/create-element.js","node_modules/preact/src/component.js","node_modules/preact/src/create-context.js","node_modules/preact/src/constants.js","node_modules/preact/src/diff/children.js","node_modules/preact/src/diff/props.js","node_modules/preact/src/diff/index.js","node_modules/preact/src/render.js","node_modules/preact/src/clone-element.js","node_modules/preact/src/diff/catch-error.js","node_modules/@parcel/runtime-js/lib/runtime-d2ca0ff3d25d17ae.js","node_modules/@parcel/runtime-js/lib/runtime-912dd09d4e2c1a23.js","node_modules/preact/jsx-runtime/src/index.js","node_modules/preact-iso/router.js","node_modules/preact/hooks/src/index.js","node_modules/preact-iso/lazy.js","node_modules/preact-iso/hydrate.js","public/pages/home/index.tsx","public/util/zh-cn.json5","public/util/stringUtil.ts","public/util/en-us.json5","public/util/language.ts","public/pages/_404.tsx","public/pages/about/index.tsx","node_modules/@swc/helpers/src/_define_property.mjs","public/components/logo.tsx","public/util/mduiHelper.ts","mdui.js","public/util/theme.ts","public/components/headbar.tsx","public/components/plugin/pluginCard.module.css","public/components/plugin/pluginCard.tsx","public/util/apiUtil.ts","public/util/timeUtil.ts","public/util/languageColor.json","public/data/RepoDataBean.ts","public/util/commonUtil.ts","public/components/plugin/pluginDrawer.tsx","public/pages/plugin/style.module.css","node_modules/preact/compat/src/util.js","node_modules/preact/compat/src/PureComponent.js","node_modules/preact/compat/src/forwardRef.js","node_modules/preact/compat/src/Children.js","node_modules/preact/compat/src/suspense.js","node_modules/preact/compat/src/suspense-list.js","node_modules/preact/compat/src/render.js","node_modules/preact/compat/src/index.js","public/components/dialog/sliderChooseDialog.module.css","public/components/dialog/sliderChooseDialog.tsx","public/components/plugin/pluginDetail.module.css","public/components/dialog/loadingDialog.module.css","public/components/dialog/loadingDialog.tsx","public/components/plugin/pluginDependencies.tsx","public/components/plugin/pluginDetail.tsx","public/pages/plugin/index.tsx","public/index.tsx"],"sourcesContent":["\"use strict\";\n\nvar mapping = {};\n\nfunction register(pairs) {\n var keys = Object.keys(pairs);\n\n for (var i = 0; i < keys.length; i++) {\n mapping[keys[i]] = pairs[keys[i]];\n }\n}\n\nfunction resolve(id) {\n var resolved = mapping[id];\n\n if (resolved == null) {\n throw new Error('Could not resolve bundle with id ' + id);\n }\n\n return resolved;\n}\n\nmodule.exports.register = register;\nmodule.exports.resolve = resolve;","import { EMPTY_ARR } from \"./constants\";\n\n/**\n * Assign properties from `props` to `obj`\n * @template O, P The obj and props types\n * @param {O} obj The object to copy properties to\n * @param {P} props The object to copy properties from\n * @returns {O & P}\n */\nexport function assign(obj, props) {\n\t// @ts-ignore We change the type of `obj` to be `O & P`\n\tfor (let i in props) obj[i] = props[i];\n\treturn /** @type {O & P} */ (obj);\n}\n\n/**\n * Remove a child node from its parent if attached. This is a workaround for\n * IE11 which doesn't support `Element.prototype.remove()`. Using this function\n * is smaller than including a dedicated polyfill.\n * @param {Node} node The node to remove\n */\nexport function removeNode(node) {\n\tlet parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nexport const slice = EMPTY_ARR.slice;\n","import { _catchError } from './diff/catch-error';\n\n/**\n * The `option` object can potentially contain callback functions\n * that are called during various stages of our renderer. This is the\n * foundation on which all our addons like `preact/debug`, `preact/compat`,\n * and `preact/hooks` are based on. See the `Options` type in `internal.d.ts`\n * for a full list of available option hooks (most editors/IDEs allow you to\n * ctrl+click or cmd+click on mac the type definition below).\n * @type {import('./internal').Options}\n */\nconst options = {\n\t_catchError\n};\n\nexport default options;\n","import { slice } from './util';\nimport options from './options';\n\nlet vnodeId = 0;\n\n/**\n * Create an virtual node (used for JSX)\n * @param {import('./internal').VNode[\"type\"]} type The node name or Component\n * constructor for this virtual node\n * @param {object | null | undefined} [props] The properties of the virtual node\n * @param {Array} [children] The children of the virtual node\n * @returns {import('./internal').VNode}\n */\nexport function createElement(type, props, children) {\n\tlet normalizedProps = {},\n\t\tkey,\n\t\tref,\n\t\ti;\n\tfor (i in props) {\n\t\tif (i == 'key') key = props[i];\n\t\telse if (i == 'ref') ref = props[i];\n\t\telse normalizedProps[i] = props[i];\n\t}\n\n\tif (arguments.length > 2) {\n\t\tnormalizedProps.children =\n\t\t\targuments.length > 3 ? slice.call(arguments, 2) : children;\n\t}\n\n\t// If a Component VNode, check for and apply defaultProps\n\t// Note: type may be undefined in development, must never error here.\n\tif (typeof type == 'function' && type.defaultProps != null) {\n\t\tfor (i in type.defaultProps) {\n\t\t\tif (normalizedProps[i] === undefined) {\n\t\t\t\tnormalizedProps[i] = type.defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn createVNode(type, normalizedProps, key, ref, null);\n}\n\n/**\n * Create a VNode (used internally by Preact)\n * @param {import('./internal').VNode[\"type\"]} type The node name or Component\n * Constructor for this virtual node\n * @param {object | string | number | null} props The properties of this virtual node.\n * If this virtual node represents a text node, this is the text of the node (string or number).\n * @param {string | number | null} key The key for this virtual node, used when\n * diffing it against its children\n * @param {import('./internal').VNode[\"ref\"]} ref The ref property that will\n * receive a reference to its created child\n * @returns {import('./internal').VNode}\n */\nexport function createVNode(type, props, key, ref, original) {\n\t// V8 seems to be better at detecting type shapes if the object is allocated from the same call site\n\t// Do not inline into createElement and coerceToVNode!\n\tconst vnode = {\n\t\ttype,\n\t\tprops,\n\t\tkey,\n\t\tref,\n\t\t_children: null,\n\t\t_parent: null,\n\t\t_depth: 0,\n\t\t_dom: null,\n\t\t// _nextDom must be initialized to undefined b/c it will eventually\n\t\t// be set to dom.nextSibling which can return `null` and it is important\n\t\t// to be able to distinguish between an uninitialized _nextDom and\n\t\t// a _nextDom that has been set to `null`\n\t\t_nextDom: undefined,\n\t\t_component: null,\n\t\t_hydrating: null,\n\t\tconstructor: undefined,\n\t\t_original: original == null ? ++vnodeId : original\n\t};\n\n\t// Only invoke the vnode hook if this was *not* a direct copy:\n\tif (original == null && options.vnode != null) options.vnode(vnode);\n\n\treturn vnode;\n}\n\nexport function createRef() {\n\treturn { current: null };\n}\n\nexport function Fragment(props) {\n\treturn props.children;\n}\n\n/**\n * Check if a the argument is a valid Preact VNode.\n * @param {*} vnode\n * @returns {vnode is import('./internal').VNode}\n */\nexport const isValidElement = vnode =>\n\tvnode != null && vnode.constructor === undefined;\n","import { assign } from './util';\nimport { diff, commitRoot } from './diff/index';\nimport options from './options';\nimport { Fragment } from './create-element';\n\n/**\n * Base Component class. Provides `setState()` and `forceUpdate()`, which\n * trigger rendering\n * @param {object} props The initial component props\n * @param {object} context The initial context from parent components'\n * getChildContext\n */\nexport function Component(props, context) {\n\tthis.props = props;\n\tthis.context = context;\n}\n\n/**\n * Update component state and schedule a re-render.\n * @this {import('./internal').Component}\n * @param {object | ((s: object, p: object) => object)} update A hash of state\n * properties to update with new values or a function that given the current\n * state and props returns a new partial state\n * @param {() => void} [callback] A function to be called once component state is\n * updated\n */\nComponent.prototype.setState = function(update, callback) {\n\t// only clone state when copying to nextState the first time.\n\tlet s;\n\tif (this._nextState != null && this._nextState !== this.state) {\n\t\ts = this._nextState;\n\t} else {\n\t\ts = this._nextState = assign({}, this.state);\n\t}\n\n\tif (typeof update == 'function') {\n\t\t// Some libraries like `immer` mark the current state as readonly,\n\t\t// preventing us from mutating it, so we need to clone it. See #2716\n\t\tupdate = update(assign({}, s), this.props);\n\t}\n\n\tif (update) {\n\t\tassign(s, update);\n\t}\n\n\t// Skip update if updater function returned null\n\tif (update == null) return;\n\n\tif (this._vnode) {\n\t\tif (callback) {\n\t\t\tthis._stateCallbacks.push(callback);\n\t\t}\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Immediately perform a synchronous re-render of the component\n * @this {import('./internal').Component}\n * @param {() => void} [callback] A function to be called after component is\n * re-rendered\n */\nComponent.prototype.forceUpdate = function(callback) {\n\tif (this._vnode) {\n\t\t// Set render mode so that we can differentiate where the render request\n\t\t// is coming from. We need this because forceUpdate should never call\n\t\t// shouldComponentUpdate\n\t\tthis._force = true;\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t}\n};\n\n/**\n * Accepts `props` and `state`, and returns a new Virtual DOM tree to build.\n * Virtual DOM is generally constructed via [JSX](http://jasonformat.com/wtf-is-jsx).\n * @param {object} props Props (eg: JSX attributes) received from parent\n * element/component\n * @param {object} state The component's current state\n * @param {object} context Context object, as returned by the nearest\n * ancestor's `getChildContext()`\n * @returns {import('./index').ComponentChildren | void}\n */\nComponent.prototype.render = Fragment;\n\n/**\n * @param {import('./internal').VNode} vnode\n * @param {number | null} [childIndex]\n */\nexport function getDomSibling(vnode, childIndex) {\n\tif (childIndex == null) {\n\t\t// Use childIndex==null as a signal to resume the search from the vnode's sibling\n\t\treturn vnode._parent\n\t\t\t? getDomSibling(vnode._parent, vnode._parent._children.indexOf(vnode) + 1)\n\t\t\t: null;\n\t}\n\n\tlet sibling;\n\tfor (; childIndex < vnode._children.length; childIndex++) {\n\t\tsibling = vnode._children[childIndex];\n\n\t\tif (sibling != null && sibling._dom != null) {\n\t\t\t// Since updateParentDomPointers keeps _dom pointer correct,\n\t\t\t// we can rely on _dom to tell us if this subtree contains a\n\t\t\t// rendered DOM node, and what the first rendered DOM node is\n\t\t\treturn sibling._dom;\n\t\t}\n\t}\n\n\t// If we get here, we have not found a DOM node in this vnode's children.\n\t// We must resume from this vnode's sibling (in it's parent _children array)\n\t// Only climb up and search the parent if we aren't searching through a DOM\n\t// VNode (meaning we reached the DOM parent of the original vnode that began\n\t// the search)\n\treturn typeof vnode.type == 'function' ? getDomSibling(vnode) : null;\n}\n\n/**\n * Trigger in-place re-rendering of a component.\n * @param {import('./internal').Component} component The component to rerender\n */\nfunction renderComponent(component) {\n\tlet vnode = component._vnode,\n\t\toldDom = vnode._dom,\n\t\tparentDom = component._parentDom;\n\n\tif (parentDom) {\n\t\tlet commitQueue = [];\n\t\tconst oldVNode = assign({}, vnode);\n\t\toldVNode._original = vnode._original + 1;\n\n\t\tdiff(\n\t\t\tparentDom,\n\t\t\tvnode,\n\t\t\toldVNode,\n\t\t\tcomponent._globalContext,\n\t\t\tparentDom.ownerSVGElement !== undefined,\n\t\t\tvnode._hydrating != null ? [oldDom] : null,\n\t\t\tcommitQueue,\n\t\t\toldDom == null ? getDomSibling(vnode) : oldDom,\n\t\t\tvnode._hydrating\n\t\t);\n\t\tcommitRoot(commitQueue, vnode);\n\n\t\tif (vnode._dom != oldDom) {\n\t\t\tupdateParentDomPointers(vnode);\n\t\t}\n\t}\n}\n\n/**\n * @param {import('./internal').VNode} vnode\n */\nfunction updateParentDomPointers(vnode) {\n\tif ((vnode = vnode._parent) != null && vnode._component != null) {\n\t\tvnode._dom = vnode._component.base = null;\n\t\tfor (let i = 0; i < vnode._children.length; i++) {\n\t\t\tlet child = vnode._children[i];\n\t\t\tif (child != null && child._dom != null) {\n\t\t\t\tvnode._dom = vnode._component.base = child._dom;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn updateParentDomPointers(vnode);\n\t}\n}\n\n/**\n * The render queue\n * @type {Array}\n */\nlet rerenderQueue = [];\n\n/*\n * The value of `Component.debounce` must asynchronously invoke the passed in callback. It is\n * important that contributors to Preact can consistently reason about what calls to `setState`, etc.\n * do, and when their effects will be applied. See the links below for some further reading on designing\n * asynchronous APIs.\n * * [Designing APIs for Asynchrony](https://blog.izs.me/2013/08/designing-apis-for-asynchrony)\n * * [Callbacks synchronous and asynchronous](https://blog.ometer.com/2011/07/24/callbacks-synchronous-and-asynchronous/)\n */\n\nlet prevDebounce;\n\nconst defer =\n\ttypeof Promise == 'function'\n\t\t? Promise.prototype.then.bind(Promise.resolve())\n\t\t: setTimeout;\n\n/**\n * Enqueue a rerender of a component\n * @param {import('./internal').Component} c The component to rerender\n */\nexport function enqueueRender(c) {\n\tif (\n\t\t(!c._dirty &&\n\t\t\t(c._dirty = true) &&\n\t\t\trerenderQueue.push(c) &&\n\t\t\t!process._rerenderCount++) ||\n\t\tprevDebounce !== options.debounceRendering\n\t) {\n\t\tprevDebounce = options.debounceRendering;\n\t\t(prevDebounce || defer)(process);\n\t}\n}\n\n/** Flush the render queue by rerendering all queued components */\nfunction process() {\n\tlet c;\n\trerenderQueue.sort((a, b) => a._vnode._depth - b._vnode._depth);\n\t// Don't update `renderCount` yet. Keep its value non-zero to prevent unnecessary\n\t// process() calls from getting scheduled while `queue` is still being consumed.\n\twhile ((c = rerenderQueue.shift())) {\n\t\tif (c._dirty) {\n\t\t\tlet renderQueueLength = rerenderQueue.length;\n\t\t\trenderComponent(c);\n\t\t\tif (rerenderQueue.length > renderQueueLength) {\n\t\t\t\t// When i.e. rerendering a provider additional new items can be injected, we want to\n\t\t\t\t// keep the order from top to bottom with those new items so we can handle them in a\n\t\t\t\t// single pass\n\t\t\t\trerenderQueue.sort((a, b) => a._vnode._depth - b._vnode._depth);\n\t\t\t}\n\t\t}\n\t}\n\tprocess._rerenderCount = 0;\n}\n\nprocess._rerenderCount = 0;\n","import { enqueueRender } from './component';\n\nexport let i = 0;\n\nexport function createContext(defaultValue, contextId) {\n\tcontextId = '__cC' + i++;\n\n\tconst context = {\n\t\t_id: contextId,\n\t\t_defaultValue: defaultValue,\n\t\t/** @type {import('./internal').FunctionComponent} */\n\t\tConsumer(props, contextValue) {\n\t\t\t// return props.children(\n\t\t\t// \tcontext[contextId] ? context[contextId].props.value : defaultValue\n\t\t\t// );\n\t\t\treturn props.children(contextValue);\n\t\t},\n\t\t/** @type {import('./internal').FunctionComponent} */\n\t\tProvider(props) {\n\t\t\tif (!this.getChildContext) {\n\t\t\t\t/** @type {import('./internal').Component[]} */\n\t\t\t\tlet subs = [];\n\t\t\t\tlet ctx = {};\n\t\t\t\tctx[contextId] = this;\n\n\t\t\t\tthis.getChildContext = () => ctx;\n\n\t\t\t\tthis.shouldComponentUpdate = function(_props) {\n\t\t\t\t\tif (this.props.value !== _props.value) {\n\t\t\t\t\t\t// I think the forced value propagation here was only needed when `options.debounceRendering` was being bypassed:\n\t\t\t\t\t\t// https://github.com/preactjs/preact/commit/4d339fb803bea09e9f198abf38ca1bf8ea4b7771#diff-54682ce380935a717e41b8bfc54737f6R358\n\t\t\t\t\t\t// In those cases though, even with the value corrected, we're double-rendering all nodes.\n\t\t\t\t\t\t// It might be better to just tell folks not to use force-sync mode.\n\t\t\t\t\t\t// Currently, using `useContext()` in a class component will overwrite its `this.context` value.\n\t\t\t\t\t\t// subs.some(c => {\n\t\t\t\t\t\t// \tc.context = _props.value;\n\t\t\t\t\t\t// \tenqueueRender(c);\n\t\t\t\t\t\t// });\n\n\t\t\t\t\t\t// subs.some(c => {\n\t\t\t\t\t\t// \tc.context[contextId] = _props.value;\n\t\t\t\t\t\t// \tenqueueRender(c);\n\t\t\t\t\t\t// });\n\t\t\t\t\t\tsubs.some(c => {\n\t\t\t\t\t\t\tc._force = true;\n\t\t\t\t\t\t\tenqueueRender(c);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tthis.sub = c => {\n\t\t\t\t\tsubs.push(c);\n\t\t\t\t\tlet old = c.componentWillUnmount;\n\t\t\t\t\tc.componentWillUnmount = () => {\n\t\t\t\t\t\tsubs.splice(subs.indexOf(c), 1);\n\t\t\t\t\t\tif (old) old.call(c);\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn props.children;\n\t\t}\n\t};\n\n\t// Devtools needs access to the context object when it\n\t// encounters a Provider. This is necessary to support\n\t// setting `displayName` on the context object instead\n\t// of on the component itself. See:\n\t// https://reactjs.org/docs/context.html#contextdisplayname\n\n\treturn (context.Provider._contextRef = context.Consumer.contextType = context);\n}\n","export const EMPTY_OBJ = {};\nexport const EMPTY_ARR = [];\nexport const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;\n","import { diff, unmount, applyRef } from './index';\nimport { createVNode, Fragment } from '../create-element';\nimport { EMPTY_OBJ, EMPTY_ARR } from '../constants';\nimport { getDomSibling } from '../component';\n\n/**\n * Diff the children of a virtual node\n * @param {import('../internal').PreactElement} parentDom The DOM element whose\n * children are being diffed\n * @param {import('../internal').ComponentChildren[]} renderResult\n * @param {import('../internal').VNode} newParentVNode The new virtual\n * node whose children should be diff'ed against oldParentVNode\n * @param {import('../internal').VNode} oldParentVNode The old virtual\n * node whose children should be diff'ed against newParentVNode\n * @param {object} globalContext The current context object - modified by getChildContext\n * @param {boolean} isSvg Whether or not this DOM node is an SVG node\n * @param {Array} excessDomChildren\n * @param {Array} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {import('../internal').PreactElement} oldDom The current attached DOM\n * element any new dom elements should be placed around. Likely `null` on first\n * render (except when hydrating). Can be a sibling DOM element when diffing\n * Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.\n * @param {boolean} isHydrating Whether or not we are in hydration\n */\nexport function diffChildren(\n\tparentDom,\n\trenderResult,\n\tnewParentVNode,\n\toldParentVNode,\n\tglobalContext,\n\tisSvg,\n\texcessDomChildren,\n\tcommitQueue,\n\toldDom,\n\tisHydrating\n) {\n\tlet i, j, oldVNode, childVNode, newDom, firstChildDom, refs;\n\n\t// This is a compression of oldParentVNode!=null && oldParentVNode != EMPTY_OBJ && oldParentVNode._children || EMPTY_ARR\n\t// as EMPTY_OBJ._children should be `undefined`.\n\tlet oldChildren = (oldParentVNode && oldParentVNode._children) || EMPTY_ARR;\n\n\tlet oldChildrenLength = oldChildren.length;\n\n\tnewParentVNode._children = [];\n\tfor (i = 0; i < renderResult.length; i++) {\n\t\tchildVNode = renderResult[i];\n\n\t\tif (childVNode == null || typeof childVNode == 'boolean') {\n\t\t\tchildVNode = newParentVNode._children[i] = null;\n\t\t}\n\t\t// If this newVNode is being reused (e.g.
{reuse}{reuse}
) in the same diff,\n\t\t// or we are rendering a component (e.g. setState) copy the oldVNodes so it can have\n\t\t// it's own DOM & etc. pointers\n\t\telse if (\n\t\t\ttypeof childVNode == 'string' ||\n\t\t\ttypeof childVNode == 'number' ||\n\t\t\t// eslint-disable-next-line valid-typeof\n\t\t\ttypeof childVNode == 'bigint'\n\t\t) {\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tnull,\n\t\t\t\tchildVNode,\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tchildVNode\n\t\t\t);\n\t\t} else if (Array.isArray(childVNode)) {\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tFragment,\n\t\t\t\t{ children: childVNode },\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnull\n\t\t\t);\n\t\t} else if (childVNode._depth > 0) {\n\t\t\t// VNode is already in use, clone it. This can happen in the following\n\t\t\t// scenario:\n\t\t\t// const reuse =
\n\t\t\t//
{reuse}{reuse}
\n\t\t\tchildVNode = newParentVNode._children[i] = createVNode(\n\t\t\t\tchildVNode.type,\n\t\t\t\tchildVNode.props,\n\t\t\t\tchildVNode.key,\n\t\t\t\tchildVNode.ref ? childVNode.ref : null,\n\t\t\t\tchildVNode._original\n\t\t\t);\n\t\t} else {\n\t\t\tchildVNode = newParentVNode._children[i] = childVNode;\n\t\t}\n\n\t\t// Terser removes the `continue` here and wraps the loop body\n\t\t// in a `if (childVNode) { ... } condition\n\t\tif (childVNode == null) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tchildVNode._parent = newParentVNode;\n\t\tchildVNode._depth = newParentVNode._depth + 1;\n\n\t\t// Check if we find a corresponding element in oldChildren.\n\t\t// If found, delete the array item by setting to `undefined`.\n\t\t// We use `undefined`, as `null` is reserved for empty placeholders\n\t\t// (holes).\n\t\toldVNode = oldChildren[i];\n\n\t\tif (\n\t\t\toldVNode === null ||\n\t\t\t(oldVNode &&\n\t\t\t\tchildVNode.key == oldVNode.key &&\n\t\t\t\tchildVNode.type === oldVNode.type)\n\t\t) {\n\t\t\toldChildren[i] = undefined;\n\t\t} else {\n\t\t\t// Either oldVNode === undefined or oldChildrenLength > 0,\n\t\t\t// so after this loop oldVNode == null or oldVNode is a valid value.\n\t\t\tfor (j = 0; j < oldChildrenLength; j++) {\n\t\t\t\toldVNode = oldChildren[j];\n\t\t\t\t// If childVNode is unkeyed, we only match similarly unkeyed nodes, otherwise we match by key.\n\t\t\t\t// We always match by type (in either case).\n\t\t\t\tif (\n\t\t\t\t\toldVNode &&\n\t\t\t\t\tchildVNode.key == oldVNode.key &&\n\t\t\t\t\tchildVNode.type === oldVNode.type\n\t\t\t\t) {\n\t\t\t\t\toldChildren[j] = undefined;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\toldVNode = null;\n\t\t\t}\n\t\t}\n\n\t\toldVNode = oldVNode || EMPTY_OBJ;\n\n\t\t// Morph the old element into the new one, but don't append it to the dom yet\n\t\tdiff(\n\t\t\tparentDom,\n\t\t\tchildVNode,\n\t\t\toldVNode,\n\t\t\tglobalContext,\n\t\t\tisSvg,\n\t\t\texcessDomChildren,\n\t\t\tcommitQueue,\n\t\t\toldDom,\n\t\t\tisHydrating\n\t\t);\n\n\t\tnewDom = childVNode._dom;\n\n\t\tif ((j = childVNode.ref) && oldVNode.ref != j) {\n\t\t\tif (!refs) refs = [];\n\t\t\tif (oldVNode.ref) refs.push(oldVNode.ref, null, childVNode);\n\t\t\trefs.push(j, childVNode._component || newDom, childVNode);\n\t\t}\n\n\t\tif (newDom != null) {\n\t\t\tif (firstChildDom == null) {\n\t\t\t\tfirstChildDom = newDom;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\ttypeof childVNode.type == 'function' &&\n\t\t\t\tchildVNode._children === oldVNode._children\n\t\t\t) {\n\t\t\t\tchildVNode._nextDom = oldDom = reorderChildren(\n\t\t\t\t\tchildVNode,\n\t\t\t\t\toldDom,\n\t\t\t\t\tparentDom\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\toldDom = placeChild(\n\t\t\t\t\tparentDom,\n\t\t\t\t\tchildVNode,\n\t\t\t\t\toldVNode,\n\t\t\t\t\toldChildren,\n\t\t\t\t\tnewDom,\n\t\t\t\t\toldDom\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (typeof newParentVNode.type == 'function') {\n\t\t\t\t// Because the newParentVNode is Fragment-like, we need to set it's\n\t\t\t\t// _nextDom property to the nextSibling of its last child DOM node.\n\t\t\t\t//\n\t\t\t\t// `oldDom` contains the correct value here because if the last child\n\t\t\t\t// is a Fragment-like, then oldDom has already been set to that child's _nextDom.\n\t\t\t\t// If the last child is a DOM VNode, then oldDom will be set to that DOM\n\t\t\t\t// node's nextSibling.\n\t\t\t\tnewParentVNode._nextDom = oldDom;\n\t\t\t}\n\t\t} else if (\n\t\t\toldDom &&\n\t\t\toldVNode._dom == oldDom &&\n\t\t\toldDom.parentNode != parentDom\n\t\t) {\n\t\t\t// The above condition is to handle null placeholders. See test in placeholder.test.js:\n\t\t\t// `efficiently replace null placeholders in parent rerenders`\n\t\t\toldDom = getDomSibling(oldVNode);\n\t\t}\n\t}\n\n\tnewParentVNode._dom = firstChildDom;\n\n\t// Remove remaining oldChildren if there are any.\n\tfor (i = oldChildrenLength; i--; ) {\n\t\tif (oldChildren[i] != null) {\n\t\t\tif (\n\t\t\t\ttypeof newParentVNode.type == 'function' &&\n\t\t\t\toldChildren[i]._dom != null &&\n\t\t\t\toldChildren[i]._dom == newParentVNode._nextDom\n\t\t\t) {\n\t\t\t\t// If the newParentVNode.__nextDom points to a dom node that is about to\n\t\t\t\t// be unmounted, then get the next sibling of that vnode and set\n\t\t\t\t// _nextDom to it\n\t\t\t\tnewParentVNode._nextDom = getLastDom(oldParentVNode).nextSibling;\n\t\t\t}\n\n\t\t\tunmount(oldChildren[i], oldChildren[i]);\n\t\t}\n\t}\n\n\t// Set refs only after unmount\n\tif (refs) {\n\t\tfor (i = 0; i < refs.length; i++) {\n\t\t\tapplyRef(refs[i], refs[++i], refs[++i]);\n\t\t}\n\t}\n}\n\nfunction reorderChildren(childVNode, oldDom, parentDom) {\n\t// Note: VNodes in nested suspended trees may be missing _children.\n\tlet c = childVNode._children;\n\tlet tmp = 0;\n\tfor (; c && tmp < c.length; tmp++) {\n\t\tlet vnode = c[tmp];\n\t\tif (vnode) {\n\t\t\t// We typically enter this code path on sCU bailout, where we copy\n\t\t\t// oldVNode._children to newVNode._children. If that is the case, we need\n\t\t\t// to update the old children's _parent pointer to point to the newVNode\n\t\t\t// (childVNode here).\n\t\t\tvnode._parent = childVNode;\n\n\t\t\tif (typeof vnode.type == 'function') {\n\t\t\t\toldDom = reorderChildren(vnode, oldDom, parentDom);\n\t\t\t} else {\n\t\t\t\toldDom = placeChild(parentDom, vnode, vnode, c, vnode._dom, oldDom);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn oldDom;\n}\n\n/**\n * Flatten and loop through the children of a virtual node\n * @param {import('../index').ComponentChildren} children The unflattened\n * children of a virtual node\n * @returns {import('../internal').VNode[]}\n */\nexport function toChildArray(children, out) {\n\tout = out || [];\n\tif (children == null || typeof children == 'boolean') {\n\t} else if (Array.isArray(children)) {\n\t\tchildren.some(child => {\n\t\t\ttoChildArray(child, out);\n\t\t});\n\t} else {\n\t\tout.push(children);\n\t}\n\treturn out;\n}\n\nfunction placeChild(\n\tparentDom,\n\tchildVNode,\n\toldVNode,\n\toldChildren,\n\tnewDom,\n\toldDom\n) {\n\tlet nextDom;\n\tif (childVNode._nextDom !== undefined) {\n\t\t// Only Fragments or components that return Fragment like VNodes will\n\t\t// have a non-undefined _nextDom. Continue the diff from the sibling\n\t\t// of last DOM child of this child VNode\n\t\tnextDom = childVNode._nextDom;\n\n\t\t// Eagerly cleanup _nextDom. We don't need to persist the value because\n\t\t// it is only used by `diffChildren` to determine where to resume the diff after\n\t\t// diffing Components and Fragments. Once we store it the nextDOM local var, we\n\t\t// can clean up the property\n\t\tchildVNode._nextDom = undefined;\n\t} else if (\n\t\toldVNode == null ||\n\t\tnewDom != oldDom ||\n\t\tnewDom.parentNode == null\n\t) {\n\t\touter: if (oldDom == null || oldDom.parentNode !== parentDom) {\n\t\t\tparentDom.appendChild(newDom);\n\t\t\tnextDom = null;\n\t\t} else {\n\t\t\t// `j= 0; i--) {\n\t\t\tlet child = vnode._children[i];\n\t\t\tif (child) {\n\t\t\t\tlet lastDom = getLastDom(child);\n\t\t\t\tif (lastDom) {\n\t\t\t\t\treturn lastDom;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn null;\n}\n","import { IS_NON_DIMENSIONAL } from '../constants';\nimport options from '../options';\n\n/**\n * Diff the old and new properties of a VNode and apply changes to the DOM node\n * @param {import('../internal').PreactElement} dom The DOM node to apply\n * changes to\n * @param {object} newProps The new props\n * @param {object} oldProps The old props\n * @param {boolean} isSvg Whether or not this node is an SVG node\n * @param {boolean} hydrate Whether or not we are in hydration mode\n */\nexport function diffProps(dom, newProps, oldProps, isSvg, hydrate) {\n\tlet i;\n\n\tfor (i in oldProps) {\n\t\tif (i !== 'children' && i !== 'key' && !(i in newProps)) {\n\t\t\tsetProperty(dom, i, null, oldProps[i], isSvg);\n\t\t}\n\t}\n\n\tfor (i in newProps) {\n\t\tif (\n\t\t\t(!hydrate || typeof newProps[i] == 'function') &&\n\t\t\ti !== 'children' &&\n\t\t\ti !== 'key' &&\n\t\t\ti !== 'value' &&\n\t\t\ti !== 'checked' &&\n\t\t\toldProps[i] !== newProps[i]\n\t\t) {\n\t\t\tsetProperty(dom, i, newProps[i], oldProps[i], isSvg);\n\t\t}\n\t}\n}\n\nfunction setStyle(style, key, value) {\n\tif (key[0] === '-') {\n\t\tstyle.setProperty(key, value == null ? '' : value);\n\t} else if (value == null) {\n\t\tstyle[key] = '';\n\t} else if (typeof value != 'number' || IS_NON_DIMENSIONAL.test(key)) {\n\t\tstyle[key] = value;\n\t} else {\n\t\tstyle[key] = value + 'px';\n\t}\n}\n\n/**\n * Set a property value on a DOM node\n * @param {import('../internal').PreactElement} dom The DOM node to modify\n * @param {string} name The name of the property to set\n * @param {*} value The value to set the property to\n * @param {*} oldValue The old value the property had\n * @param {boolean} isSvg Whether or not this DOM node is an SVG node or not\n */\nexport function setProperty(dom, name, value, oldValue, isSvg) {\n\tlet useCapture;\n\n\to: if (name === 'style') {\n\t\tif (typeof value == 'string') {\n\t\t\tdom.style.cssText = value;\n\t\t} else {\n\t\t\tif (typeof oldValue == 'string') {\n\t\t\t\tdom.style.cssText = oldValue = '';\n\t\t\t}\n\n\t\t\tif (oldValue) {\n\t\t\t\tfor (name in oldValue) {\n\t\t\t\t\tif (!(value && name in value)) {\n\t\t\t\t\t\tsetStyle(dom.style, name, '');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (value) {\n\t\t\t\tfor (name in value) {\n\t\t\t\t\tif (!oldValue || value[name] !== oldValue[name]) {\n\t\t\t\t\t\tsetStyle(dom.style, name, value[name]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Benchmark for comparison: https://esbench.com/bench/574c954bdb965b9a00965ac6\n\telse if (name[0] === 'o' && name[1] === 'n') {\n\t\tuseCapture = name !== (name = name.replace(/Capture$/, ''));\n\n\t\t// Infer correct casing for DOM built-in events:\n\t\tif (name.toLowerCase() in dom) name = name.toLowerCase().slice(2);\n\t\telse name = name.slice(2);\n\n\t\tif (!dom._listeners) dom._listeners = {};\n\t\tdom._listeners[name + useCapture] = value;\n\n\t\tif (value) {\n\t\t\tif (!oldValue) {\n\t\t\t\tconst handler = useCapture ? eventProxyCapture : eventProxy;\n\t\t\t\tdom.addEventListener(name, handler, useCapture);\n\t\t\t}\n\t\t} else {\n\t\t\tconst handler = useCapture ? eventProxyCapture : eventProxy;\n\t\t\tdom.removeEventListener(name, handler, useCapture);\n\t\t}\n\t} else if (name !== 'dangerouslySetInnerHTML') {\n\t\tif (isSvg) {\n\t\t\t// Normalize incorrect prop usage for SVG:\n\t\t\t// - xlink:href / xlinkHref --> href (xlink:href was removed from SVG and isn't needed)\n\t\t\t// - className --> class\n\t\t\tname = name.replace(/xlink(H|:h)/, 'h').replace(/sName$/, 's');\n\t\t} else if (\n\t\t\tname !== 'width' &&\n\t\t\tname !== 'height' &&\n\t\t\tname !== 'href' &&\n\t\t\tname !== 'list' &&\n\t\t\tname !== 'form' &&\n\t\t\t// Default value in browsers is `-1` and an empty string is\n\t\t\t// cast to `0` instead\n\t\t\tname !== 'tabIndex' &&\n\t\t\tname !== 'download' &&\n\t\t\tname in dom\n\t\t) {\n\t\t\ttry {\n\t\t\t\tdom[name] = value == null ? '' : value;\n\t\t\t\t// labelled break is 1b smaller here than a return statement (sorry)\n\t\t\t\tbreak o;\n\t\t\t} catch (e) {}\n\t\t}\n\n\t\t// ARIA-attributes have a different notion of boolean values.\n\t\t// The value `false` is different from the attribute not\n\t\t// existing on the DOM, so we can't remove it. For non-boolean\n\t\t// ARIA-attributes we could treat false as a removal, but the\n\t\t// amount of exceptions would cost us too many bytes. On top of\n\t\t// that other VDOM frameworks also always stringify `false`.\n\n\t\tif (typeof value === 'function') {\n\t\t\t// never serialize functions as attribute values\n\t\t} else if (value != null && (value !== false || name.indexOf('-') != -1)) {\n\t\t\tdom.setAttribute(name, value);\n\t\t} else {\n\t\t\tdom.removeAttribute(name);\n\t\t}\n\t}\n}\n\n/**\n * Proxy an event to hooked event handlers\n * @param {Event} e The event object from the browser\n * @private\n */\nfunction eventProxy(e) {\n\treturn this._listeners[e.type + false](options.event ? options.event(e) : e);\n}\n\nfunction eventProxyCapture(e) {\n\treturn this._listeners[e.type + true](options.event ? options.event(e) : e);\n}\n","import { EMPTY_OBJ } from '../constants';\nimport { Component, getDomSibling } from '../component';\nimport { Fragment } from '../create-element';\nimport { diffChildren } from './children';\nimport { diffProps, setProperty } from './props';\nimport { assign, removeNode, slice } from '../util';\nimport options from '../options';\n\n/**\n * Diff two virtual nodes and apply proper changes to the DOM\n * @param {import('../internal').PreactElement} parentDom The parent of the DOM element\n * @param {import('../internal').VNode} newVNode The new virtual node\n * @param {import('../internal').VNode} oldVNode The old virtual node\n * @param {object} globalContext The current context object. Modified by getChildContext\n * @param {boolean} isSvg Whether or not this element is an SVG node\n * @param {Array} excessDomChildren\n * @param {Array} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {import('../internal').PreactElement} oldDom The current attached DOM\n * element any new dom elements should be placed around. Likely `null` on first\n * render (except when hydrating). Can be a sibling DOM element when diffing\n * Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.\n * @param {boolean} [isHydrating] Whether or not we are in hydration\n */\nexport function diff(\n\tparentDom,\n\tnewVNode,\n\toldVNode,\n\tglobalContext,\n\tisSvg,\n\texcessDomChildren,\n\tcommitQueue,\n\toldDom,\n\tisHydrating\n) {\n\tlet tmp,\n\t\tnewType = newVNode.type;\n\n\t// When passing through createElement it assigns the object\n\t// constructor as undefined. This to prevent JSON-injection.\n\tif (newVNode.constructor !== undefined) return null;\n\n\t// If the previous diff bailed out, resume creating/hydrating.\n\tif (oldVNode._hydrating != null) {\n\t\tisHydrating = oldVNode._hydrating;\n\t\toldDom = newVNode._dom = oldVNode._dom;\n\t\t// if we resume, we want the tree to be \"unlocked\"\n\t\tnewVNode._hydrating = null;\n\t\texcessDomChildren = [oldDom];\n\t}\n\n\tif ((tmp = options._diff)) tmp(newVNode);\n\n\ttry {\n\t\touter: if (typeof newType == 'function') {\n\t\t\tlet c, isNew, oldProps, oldState, snapshot, clearProcessingException;\n\t\t\tlet newProps = newVNode.props;\n\n\t\t\t// Necessary for createContext api. Setting this property will pass\n\t\t\t// the context value as `this.context` just for this component.\n\t\t\ttmp = newType.contextType;\n\t\t\tlet provider = tmp && globalContext[tmp._id];\n\t\t\tlet componentContext = tmp\n\t\t\t\t? provider\n\t\t\t\t\t? provider.props.value\n\t\t\t\t\t: tmp._defaultValue\n\t\t\t\t: globalContext;\n\n\t\t\t// Get component and set it to `c`\n\t\t\tif (oldVNode._component) {\n\t\t\t\tc = newVNode._component = oldVNode._component;\n\t\t\t\tclearProcessingException = c._processingException = c._pendingError;\n\t\t\t} else {\n\t\t\t\t// Instantiate the new component\n\t\t\t\tif ('prototype' in newType && newType.prototype.render) {\n\t\t\t\t\t// @ts-ignore The check above verifies that newType is suppose to be constructed\n\t\t\t\t\tnewVNode._component = c = new newType(newProps, componentContext); // eslint-disable-line new-cap\n\t\t\t\t} else {\n\t\t\t\t\t// @ts-ignore Trust me, Component implements the interface we want\n\t\t\t\t\tnewVNode._component = c = new Component(newProps, componentContext);\n\t\t\t\t\tc.constructor = newType;\n\t\t\t\t\tc.render = doRender;\n\t\t\t\t}\n\t\t\t\tif (provider) provider.sub(c);\n\n\t\t\t\tc.props = newProps;\n\t\t\t\tif (!c.state) c.state = {};\n\t\t\t\tc.context = componentContext;\n\t\t\t\tc._globalContext = globalContext;\n\t\t\t\tisNew = c._dirty = true;\n\t\t\t\tc._renderCallbacks = [];\n\t\t\t\tc._stateCallbacks = [];\n\t\t\t}\n\n\t\t\t// Invoke getDerivedStateFromProps\n\t\t\tif (c._nextState == null) {\n\t\t\t\tc._nextState = c.state;\n\t\t\t}\n\n\t\t\tif (newType.getDerivedStateFromProps != null) {\n\t\t\t\tif (c._nextState == c.state) {\n\t\t\t\t\tc._nextState = assign({}, c._nextState);\n\t\t\t\t}\n\n\t\t\t\tassign(\n\t\t\t\t\tc._nextState,\n\t\t\t\t\tnewType.getDerivedStateFromProps(newProps, c._nextState)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\toldProps = c.props;\n\t\t\toldState = c.state;\n\t\t\tc._vnode = newVNode;\n\n\t\t\t// Invoke pre-render lifecycle methods\n\t\t\tif (isNew) {\n\t\t\t\tif (\n\t\t\t\t\tnewType.getDerivedStateFromProps == null &&\n\t\t\t\t\tc.componentWillMount != null\n\t\t\t\t) {\n\t\t\t\t\tc.componentWillMount();\n\t\t\t\t}\n\n\t\t\t\tif (c.componentDidMount != null) {\n\t\t\t\t\tc._renderCallbacks.push(c.componentDidMount);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (\n\t\t\t\t\tnewType.getDerivedStateFromProps == null &&\n\t\t\t\t\tnewProps !== oldProps &&\n\t\t\t\t\tc.componentWillReceiveProps != null\n\t\t\t\t) {\n\t\t\t\t\tc.componentWillReceiveProps(newProps, componentContext);\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\t(!c._force &&\n\t\t\t\t\t\tc.shouldComponentUpdate != null &&\n\t\t\t\t\t\tc.shouldComponentUpdate(\n\t\t\t\t\t\t\tnewProps,\n\t\t\t\t\t\t\tc._nextState,\n\t\t\t\t\t\t\tcomponentContext\n\t\t\t\t\t\t) === false) ||\n\t\t\t\t\tnewVNode._original === oldVNode._original\n\t\t\t\t) {\n\t\t\t\t\t// More info about this here: https://gist.github.com/JoviDeCroock/bec5f2ce93544d2e6070ef8e0036e4e8\n\t\t\t\t\tif (newVNode._original !== oldVNode._original) {\n\t\t\t\t\t\t// When we are dealing with a bail because of sCU we have to update\n\t\t\t\t\t\t// the props, state and dirty-state.\n\t\t\t\t\t\t// when we are dealing with strict-equality we don't as the child could still\n\t\t\t\t\t\t// be dirtied see #3883\n\t\t\t\t\t\tc.props = newProps;\n\t\t\t\t\t\tc.state = c._nextState;\n\t\t\t\t\t\tc._dirty = false;\n\t\t\t\t\t}\n\n\t\t\t\t\t// In cases of bailing due to strict-equality we have to reset force as well\n\t\t\t\t\tc._force = false;\n\t\t\t\t\tnewVNode._dom = oldVNode._dom;\n\t\t\t\t\tnewVNode._children = oldVNode._children;\n\t\t\t\t\tnewVNode._children.forEach(vnode => {\n\t\t\t\t\t\tif (vnode) vnode._parent = newVNode;\n\t\t\t\t\t});\n\n\t\t\t\t\tfor (let i = 0; i < c._stateCallbacks.length; i++) {\n\t\t\t\t\t\tc._renderCallbacks.push(c._stateCallbacks[i]);\n\t\t\t\t\t}\n\t\t\t\t\tc._stateCallbacks = [];\n\n\t\t\t\t\tif (c._renderCallbacks.length) {\n\t\t\t\t\t\tcommitQueue.push(c);\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak outer;\n\t\t\t\t}\n\n\t\t\t\tif (c.componentWillUpdate != null) {\n\t\t\t\t\tc.componentWillUpdate(newProps, c._nextState, componentContext);\n\t\t\t\t}\n\n\t\t\t\tif (c.componentDidUpdate != null) {\n\t\t\t\t\tc._renderCallbacks.push(() => {\n\t\t\t\t\t\tc.componentDidUpdate(oldProps, oldState, snapshot);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tc.context = componentContext;\n\t\t\tc.props = newProps;\n\t\t\tc._parentDom = parentDom;\n\n\t\t\tlet renderHook = options._render,\n\t\t\t\tcount = 0;\n\t\t\tif ('prototype' in newType && newType.prototype.render) {\n\t\t\t\tc.state = c._nextState;\n\t\t\t\tc._dirty = false;\n\n\t\t\t\tif (renderHook) renderHook(newVNode);\n\n\t\t\t\ttmp = c.render(c.props, c.state, c.context);\n\n\t\t\t\tfor (let i = 0; i < c._stateCallbacks.length; i++) {\n\t\t\t\t\tc._renderCallbacks.push(c._stateCallbacks[i]);\n\t\t\t\t}\n\t\t\t\tc._stateCallbacks = [];\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tc._dirty = false;\n\t\t\t\t\tif (renderHook) renderHook(newVNode);\n\n\t\t\t\t\ttmp = c.render(c.props, c.state, c.context);\n\n\t\t\t\t\t// Handle setState called in render, see #2553\n\t\t\t\t\tc.state = c._nextState;\n\t\t\t\t} while (c._dirty && ++count < 25);\n\t\t\t}\n\n\t\t\t// Handle setState called in render, see #2553\n\t\t\tc.state = c._nextState;\n\n\t\t\tif (c.getChildContext != null) {\n\t\t\t\tglobalContext = assign(assign({}, globalContext), c.getChildContext());\n\t\t\t}\n\n\t\t\tif (!isNew && c.getSnapshotBeforeUpdate != null) {\n\t\t\t\tsnapshot = c.getSnapshotBeforeUpdate(oldProps, oldState);\n\t\t\t}\n\n\t\t\tlet isTopLevelFragment =\n\t\t\t\ttmp != null && tmp.type === Fragment && tmp.key == null;\n\t\t\tlet renderResult = isTopLevelFragment ? tmp.props.children : tmp;\n\n\t\t\tdiffChildren(\n\t\t\t\tparentDom,\n\t\t\t\tArray.isArray(renderResult) ? renderResult : [renderResult],\n\t\t\t\tnewVNode,\n\t\t\t\toldVNode,\n\t\t\t\tglobalContext,\n\t\t\t\tisSvg,\n\t\t\t\texcessDomChildren,\n\t\t\t\tcommitQueue,\n\t\t\t\toldDom,\n\t\t\t\tisHydrating\n\t\t\t);\n\n\t\t\tc.base = newVNode._dom;\n\n\t\t\t// We successfully rendered this VNode, unset any stored hydration/bailout state:\n\t\t\tnewVNode._hydrating = null;\n\n\t\t\tif (c._renderCallbacks.length) {\n\t\t\t\tcommitQueue.push(c);\n\t\t\t}\n\n\t\t\tif (clearProcessingException) {\n\t\t\t\tc._pendingError = c._processingException = null;\n\t\t\t}\n\n\t\t\tc._force = false;\n\t\t} else if (\n\t\t\texcessDomChildren == null &&\n\t\t\tnewVNode._original === oldVNode._original\n\t\t) {\n\t\t\tnewVNode._children = oldVNode._children;\n\t\t\tnewVNode._dom = oldVNode._dom;\n\t\t} else {\n\t\t\tnewVNode._dom = diffElementNodes(\n\t\t\t\toldVNode._dom,\n\t\t\t\tnewVNode,\n\t\t\t\toldVNode,\n\t\t\t\tglobalContext,\n\t\t\t\tisSvg,\n\t\t\t\texcessDomChildren,\n\t\t\t\tcommitQueue,\n\t\t\t\tisHydrating\n\t\t\t);\n\t\t}\n\n\t\tif ((tmp = options.diffed)) tmp(newVNode);\n\t} catch (e) {\n\t\tnewVNode._original = null;\n\t\t// if hydrating or creating initial tree, bailout preserves DOM:\n\t\tif (isHydrating || excessDomChildren != null) {\n\t\t\tnewVNode._dom = oldDom;\n\t\t\tnewVNode._hydrating = !!isHydrating;\n\t\t\texcessDomChildren[excessDomChildren.indexOf(oldDom)] = null;\n\t\t\t// ^ could possibly be simplified to:\n\t\t\t// excessDomChildren.length = 0;\n\t\t}\n\t\toptions._catchError(e, newVNode, oldVNode);\n\t}\n}\n\n/**\n * @param {Array} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {import('../internal').VNode} root\n */\nexport function commitRoot(commitQueue, root) {\n\tif (options._commit) options._commit(root, commitQueue);\n\n\tcommitQueue.some(c => {\n\t\ttry {\n\t\t\t// @ts-ignore Reuse the commitQueue variable here so the type changes\n\t\t\tcommitQueue = c._renderCallbacks;\n\t\t\tc._renderCallbacks = [];\n\t\t\tcommitQueue.some(cb => {\n\t\t\t\t// @ts-ignore See above ts-ignore on commitQueue\n\t\t\t\tcb.call(c);\n\t\t\t});\n\t\t} catch (e) {\n\t\t\toptions._catchError(e, c._vnode);\n\t\t}\n\t});\n}\n\n/**\n * Diff two virtual nodes representing DOM element\n * @param {import('../internal').PreactElement} dom The DOM element representing\n * the virtual nodes being diffed\n * @param {import('../internal').VNode} newVNode The new virtual node\n * @param {import('../internal').VNode} oldVNode The old virtual node\n * @param {object} globalContext The current context object\n * @param {boolean} isSvg Whether or not this DOM node is an SVG node\n * @param {*} excessDomChildren\n * @param {Array} commitQueue List of components\n * which have callbacks to invoke in commitRoot\n * @param {boolean} isHydrating Whether or not we are in hydration\n * @returns {import('../internal').PreactElement}\n */\nfunction diffElementNodes(\n\tdom,\n\tnewVNode,\n\toldVNode,\n\tglobalContext,\n\tisSvg,\n\texcessDomChildren,\n\tcommitQueue,\n\tisHydrating\n) {\n\tlet oldProps = oldVNode.props;\n\tlet newProps = newVNode.props;\n\tlet nodeType = newVNode.type;\n\tlet i = 0;\n\n\t// Tracks entering and exiting SVG namespace when descending through the tree.\n\tif (nodeType === 'svg') isSvg = true;\n\n\tif (excessDomChildren != null) {\n\t\tfor (; i < excessDomChildren.length; i++) {\n\t\t\tconst child = excessDomChildren[i];\n\n\t\t\t// if newVNode matches an element in excessDomChildren or the `dom`\n\t\t\t// argument matches an element in excessDomChildren, remove it from\n\t\t\t// excessDomChildren so it isn't later removed in diffChildren\n\t\t\tif (\n\t\t\t\tchild &&\n\t\t\t\t'setAttribute' in child === !!nodeType &&\n\t\t\t\t(nodeType ? child.localName === nodeType : child.nodeType === 3)\n\t\t\t) {\n\t\t\t\tdom = child;\n\t\t\t\texcessDomChildren[i] = null;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (dom == null) {\n\t\tif (nodeType === null) {\n\t\t\t// @ts-ignore createTextNode returns Text, we expect PreactElement\n\t\t\treturn document.createTextNode(newProps);\n\t\t}\n\n\t\tif (isSvg) {\n\t\t\tdom = document.createElementNS(\n\t\t\t\t'http://www.w3.org/2000/svg',\n\t\t\t\t// @ts-ignore We know `newVNode.type` is a string\n\t\t\t\tnodeType\n\t\t\t);\n\t\t} else {\n\t\t\tdom = document.createElement(\n\t\t\t\t// @ts-ignore We know `newVNode.type` is a string\n\t\t\t\tnodeType,\n\t\t\t\tnewProps.is && newProps\n\t\t\t);\n\t\t}\n\n\t\t// we created a new parent, so none of the previously attached children can be reused:\n\t\texcessDomChildren = null;\n\t\t// we are creating a new node, so we can assume this is a new subtree (in case we are hydrating), this deopts the hydrate\n\t\tisHydrating = false;\n\t}\n\n\tif (nodeType === null) {\n\t\t// During hydration, we still have to split merged text from SSR'd HTML.\n\t\tif (oldProps !== newProps && (!isHydrating || dom.data !== newProps)) {\n\t\t\tdom.data = newProps;\n\t\t}\n\t} else {\n\t\t// If excessDomChildren was not null, repopulate it with the current element's children:\n\t\texcessDomChildren = excessDomChildren && slice.call(dom.childNodes);\n\n\t\toldProps = oldVNode.props || EMPTY_OBJ;\n\n\t\tlet oldHtml = oldProps.dangerouslySetInnerHTML;\n\t\tlet newHtml = newProps.dangerouslySetInnerHTML;\n\n\t\t// During hydration, props are not diffed at all (including dangerouslySetInnerHTML)\n\t\t// @TODO we should warn in debug mode when props don't match here.\n\t\tif (!isHydrating) {\n\t\t\t// But, if we are in a situation where we are using existing DOM (e.g. replaceNode)\n\t\t\t// we should read the existing DOM attributes to diff them\n\t\t\tif (excessDomChildren != null) {\n\t\t\t\toldProps = {};\n\t\t\t\tfor (i = 0; i < dom.attributes.length; i++) {\n\t\t\t\t\toldProps[dom.attributes[i].name] = dom.attributes[i].value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (newHtml || oldHtml) {\n\t\t\t\t// Avoid re-applying the same '__html' if it did not changed between re-render\n\t\t\t\tif (\n\t\t\t\t\t!newHtml ||\n\t\t\t\t\t((!oldHtml || newHtml.__html != oldHtml.__html) &&\n\t\t\t\t\t\tnewHtml.__html !== dom.innerHTML)\n\t\t\t\t) {\n\t\t\t\t\tdom.innerHTML = (newHtml && newHtml.__html) || '';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdiffProps(dom, newProps, oldProps, isSvg, isHydrating);\n\n\t\t// If the new vnode didn't have dangerouslySetInnerHTML, diff its children\n\t\tif (newHtml) {\n\t\t\tnewVNode._children = [];\n\t\t} else {\n\t\t\ti = newVNode.props.children;\n\t\t\tdiffChildren(\n\t\t\t\tdom,\n\t\t\t\tArray.isArray(i) ? i : [i],\n\t\t\t\tnewVNode,\n\t\t\t\toldVNode,\n\t\t\t\tglobalContext,\n\t\t\t\tisSvg && nodeType !== 'foreignObject',\n\t\t\t\texcessDomChildren,\n\t\t\t\tcommitQueue,\n\t\t\t\texcessDomChildren\n\t\t\t\t\t? excessDomChildren[0]\n\t\t\t\t\t: oldVNode._children && getDomSibling(oldVNode, 0),\n\t\t\t\tisHydrating\n\t\t\t);\n\n\t\t\t// Remove children that are not part of any vnode.\n\t\t\tif (excessDomChildren != null) {\n\t\t\t\tfor (i = excessDomChildren.length; i--; ) {\n\t\t\t\t\tif (excessDomChildren[i] != null) removeNode(excessDomChildren[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// (as above, don't diff props during hydration)\n\t\tif (!isHydrating) {\n\t\t\tif (\n\t\t\t\t'value' in newProps &&\n\t\t\t\t(i = newProps.value) !== undefined &&\n\t\t\t\t// #2756 For the -element the initial value is 0,\n\t\t\t\t// despite the attribute not being present. When the attribute\n\t\t\t\t// is missing the progress bar is treated as indeterminate.\n\t\t\t\t// To fix that we'll always update it when it is 0 for progress elements\n\t\t\t\t(i !== dom.value ||\n\t\t\t\t\t(nodeType === 'progress' && !i) ||\n\t\t\t\t\t// This is only for IE 11 to fix \n\t\tif (\n\t\t\ttype == 'select' &&\n\t\t\tnormalizedProps.multiple &&\n\t\t\tArray.isArray(normalizedProps.value)\n\t\t) {\n\t\t\t// forEach() always returns undefined, which we abuse here to unset the value prop.\n\t\t\tnormalizedProps.value = toChildArray(props.children).forEach(child => {\n\t\t\t\tchild.props.selected =\n\t\t\t\t\tnormalizedProps.value.indexOf(child.props.value) != -1;\n\t\t\t});\n\t\t}\n\n\t\t// Adding support for defaultValue in select tag\n\t\tif (type == 'select' && normalizedProps.defaultValue != null) {\n\t\t\tnormalizedProps.value = toChildArray(props.children).forEach(child => {\n\t\t\t\tif (normalizedProps.multiple) {\n\t\t\t\t\tchild.props.selected =\n\t\t\t\t\t\tnormalizedProps.defaultValue.indexOf(child.props.value) != -1;\n\t\t\t\t} else {\n\t\t\t\t\tchild.props.selected =\n\t\t\t\t\t\tnormalizedProps.defaultValue == child.props.value;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tvnode.props = normalizedProps;\n\n\t\tif (props.class != props.className) {\n\t\t\tclassNameDescriptor.enumerable = 'className' in props;\n\t\t\tif (props.className != null) normalizedProps.class = props.className;\n\t\t\tObject.defineProperty(normalizedProps, 'className', classNameDescriptor);\n\t\t}\n\t}\n\n\tvnode.$$typeof = REACT_ELEMENT_TYPE;\n\n\tif (oldVNodeHook) oldVNodeHook(vnode);\n};\n\n// Only needed for react-relay\nlet currentComponent;\nconst oldBeforeRender = options._render;\noptions._render = function(vnode) {\n\tif (oldBeforeRender) {\n\t\toldBeforeRender(vnode);\n\t}\n\tcurrentComponent = vnode._component;\n};\n\nconst oldDiffed = options.diffed;\n/** @type {(vnode: import('./internal').VNode)} */\noptions.diffed = function(vnode) {\n\tif (oldDiffed) {\n\t\toldDiffed(vnode);\n\t}\n\n\tconst props = vnode.props;\n\tconst dom = vnode._dom;\n\tif (\n\t\tdom != null &&\n\t\tvnode.type === 'textarea' &&\n\t\t'value' in props &&\n\t\tprops.value !== dom.value\n\t) {\n\t\tdom.value = props.value == null ? '' : props.value;\n\t}\n\n\tcurrentComponent = null;\n};\n\n// This is a very very private internal function for React it\n// is used to sort-of do runtime dependency injection. So far\n// only `react-relay` makes use of it. It uses it to read the\n// context value.\nexport const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {\n\tReactCurrentDispatcher: {\n\t\tcurrent: {\n\t\t\treadContext(context) {\n\t\t\t\treturn currentComponent._globalContext[context._id].props.value;\n\t\t\t}\n\t\t}\n\t}\n};\n","import {\n\tcreateElement,\n\trender as preactRender,\n\tcloneElement as preactCloneElement,\n\tcreateRef,\n\tComponent,\n\tcreateContext,\n\tFragment\n} from 'preact';\nimport {\n\tuseState,\n\tuseId,\n\tuseReducer,\n\tuseEffect,\n\tuseLayoutEffect,\n\tuseRef,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseCallback,\n\tuseContext,\n\tuseDebugValue\n} from 'preact/hooks';\nimport { PureComponent } from './PureComponent';\nimport { memo } from './memo';\nimport { forwardRef } from './forwardRef';\nimport { Children } from './Children';\nimport { Suspense, lazy } from './suspense';\nimport { SuspenseList } from './suspense-list';\nimport { createPortal } from './portals';\nimport { is } from './util';\nimport {\n\thydrate,\n\trender,\n\tREACT_ELEMENT_TYPE,\n\t__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED\n} from './render';\n\nconst version = '17.0.2'; // trick libraries to think we are react\n\n/**\n * Legacy version of createElement.\n * @param {import('./internal').VNode[\"type\"]} type The node name or Component constructor\n */\nfunction createFactory(type) {\n\treturn createElement.bind(null, type);\n}\n\n/**\n * Check if the passed element is a valid (p)react node.\n * @param {*} element The element to check\n * @returns {boolean}\n */\nfunction isValidElement(element) {\n\treturn !!element && element.$$typeof === REACT_ELEMENT_TYPE;\n}\n\n/**\n * Wrap `cloneElement` to abort if the passed element is not a valid element and apply\n * all vnode normalizations.\n * @param {import('./internal').VNode} element The vnode to clone\n * @param {object} props Props to add when cloning\n * @param {Array} rest Optional component children\n */\nfunction cloneElement(element) {\n\tif (!isValidElement(element)) return element;\n\treturn preactCloneElement.apply(null, arguments);\n}\n\n/**\n * Remove a component tree from the DOM, including state and event handlers.\n * @param {import('./internal').PreactElement} container\n * @returns {boolean}\n */\nfunction unmountComponentAtNode(container) {\n\tif (container._children) {\n\t\tpreactRender(null, container);\n\t\treturn true;\n\t}\n\treturn false;\n}\n\n/**\n * Get the matching DOM node for a component\n * @param {import('./internal').Component} component\n * @returns {import('./internal').PreactElement | null}\n */\nfunction findDOMNode(component) {\n\treturn (\n\t\t(component &&\n\t\t\t(component.base || (component.nodeType === 1 && component))) ||\n\t\tnull\n\t);\n}\n\n/**\n * Deprecated way to control batched rendering inside the reconciler, but we\n * already schedule in batches inside our rendering code\n * @template Arg\n * @param {(arg: Arg) => void} callback function that triggers the updated\n * @param {Arg} [arg] Optional argument that can be passed to the callback\n */\n// eslint-disable-next-line camelcase\nconst unstable_batchedUpdates = (callback, arg) => callback(arg);\n\n/**\n * In React, `flushSync` flushes the entire tree and forces a rerender. It's\n * implmented here as a no-op.\n * @template Arg\n * @template Result\n * @param {(arg: Arg) => Result} callback function that runs before the flush\n * @param {Arg} [arg] Optional argument that can be passed to the callback\n * @returns\n */\nconst flushSync = (callback, arg) => callback(arg);\n\n/**\n * Strict Mode is not implemented in Preact, so we provide a stand-in for it\n * that just renders its children without imposing any restrictions.\n */\nconst StrictMode = Fragment;\n\nexport function startTransition(cb) {\n\tcb();\n}\n\nexport function useDeferredValue(val) {\n\treturn val;\n}\n\nexport function useTransition() {\n\treturn [false, startTransition];\n}\n\n// TODO: in theory this should be done after a VNode is diffed as we want to insert\n// styles/... before it attaches\nexport const useInsertionEffect = useLayoutEffect;\n\n/**\n * This is taken from https://github.com/facebook/react/blob/main/packages/use-sync-external-store/src/useSyncExternalStoreShimClient.js#L84\n * on a high level this cuts out the warnings, ... and attempts a smaller implementation\n */\nexport function useSyncExternalStore(subscribe, getSnapshot) {\n\tconst value = getSnapshot();\n\n\tconst [{ _instance }, forceUpdate] = useState({\n\t\t_instance: { _value: value, _getSnapshot: getSnapshot }\n\t});\n\n\tuseLayoutEffect(() => {\n\t\t_instance._value = value;\n\t\t_instance._getSnapshot = getSnapshot;\n\n\t\tif (!is(_instance._value, getSnapshot())) {\n\t\t\tforceUpdate({ _instance });\n\t\t}\n\t}, [subscribe, value, getSnapshot]);\n\n\tuseEffect(() => {\n\t\tif (!is(_instance._value, _instance._getSnapshot())) {\n\t\t\tforceUpdate({ _instance });\n\t\t}\n\n\t\treturn subscribe(() => {\n\t\t\tif (!is(_instance._value, _instance._getSnapshot())) {\n\t\t\t\tforceUpdate({ _instance });\n\t\t\t}\n\t\t});\n\t}, [subscribe]);\n\n\treturn value;\n}\n\nexport * from 'preact/hooks';\nexport {\n\tversion,\n\tChildren,\n\trender,\n\thydrate,\n\tunmountComponentAtNode,\n\tcreatePortal,\n\tcreateElement,\n\tcreateContext,\n\tcreateFactory,\n\tcloneElement,\n\tcreateRef,\n\tFragment,\n\tisValidElement,\n\tfindDOMNode,\n\tComponent,\n\tPureComponent,\n\tmemo,\n\tforwardRef,\n\tflushSync,\n\t// eslint-disable-next-line camelcase\n\tunstable_batchedUpdates,\n\tStrictMode,\n\tSuspense,\n\tSuspenseList,\n\tlazy,\n\t__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED\n};\n\n// React copies the named exports to the default one.\nexport default {\n\tuseState,\n\tuseId,\n\tuseReducer,\n\tuseEffect,\n\tuseLayoutEffect,\n\tuseInsertionEffect,\n\tuseTransition,\n\tuseDeferredValue,\n\tuseSyncExternalStore,\n\tstartTransition,\n\tuseRef,\n\tuseImperativeHandle,\n\tuseMemo,\n\tuseCallback,\n\tuseContext,\n\tuseDebugValue,\n\tversion,\n\tChildren,\n\trender,\n\thydrate,\n\tunmountComponentAtNode,\n\tcreatePortal,\n\tcreateElement,\n\tcreateContext,\n\tcreateFactory,\n\tcloneElement,\n\tcreateRef,\n\tFragment,\n\tisValidElement,\n\tfindDOMNode,\n\tComponent,\n\tPureComponent,\n\tmemo,\n\tforwardRef,\n\tflushSync,\n\tunstable_batchedUpdates,\n\tStrictMode,\n\tSuspense,\n\tSuspenseList,\n\tlazy,\n\t__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED\n};\n",".sliderDialogContent {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding: 24px;\n font-size: 15px;\n line-height: 1.5;\n -webkit-overflow-scrolling: touch;\n}","import {translate} from \"../../util/language\";\nimport {render} from \"preact/compat\";\nimport mdui from \"mdui\";\n// @ts-ignore\nimport * as style from './sliderChooseDialog.module.css';\n\nlet tmpElement: HTMLDivElement | null = null;\n\nexport default function slideChooseDialog(title: string, current: number, min: number, max: number, step: number): Promise {\n const id = \"slideChooseDialog-\" + Math.random().toString(36).substring(2);\n const fragment =
\n
{title}
\n
\n \n
\n
\n \n \n
\n
\n if (tmpElement === null) {\n tmpElement = document.createElement(\"div\");\n } else {\n while (tmpElement.firstChild) {\n tmpElement.removeChild(tmpElement.firstChild);\n }\n }\n document.body.append(tmpElement);\n render(fragment, tmpElement);\n mdui.mutation(\"#\" + id);\n mdui.updateSliders(\"#slider-\" + id);\n return new Promise((resolve, reject) => {\n const dialog = new mdui.Dialog(\"#\" + id);\n dialog.$element.on(\"confirm.mdui.dialog\", () => {\n const value = parseInt(dialog.$element.find(\"input\").val() as string);\n dialog.close();\n if (resolve) resolve(value);\n });\n dialog.$element.on(\"close.mdui.dialog\", () => {\n if (reject) reject();\n });\n dialog.$element.on(\"cancel.mdui.dialog\", () => {\n if (reject) reject();\n });\n dialog.open();\n })\n}",".detailContainer {\n margin-left: 8px;\n margin-right: 8px;\n}\n\n.noLeftPaddingValign span[style] {\n margin-left: 0;\n flex-wrap: wrap;\n}\n\n.noLeftPaddingValign {\n flex-wrap: wrap;\n}\n\n.componentLabel {\n margin-left: 4px;\n margin-right: 12px;\n font-size: 14px;\n height: 26px;\n text-overflow: ellipsis;\n overflow: hidden;\n overflow-wrap: normal;\n}\n\n.componentIcon {\n font-size: 20px;\n opacity: 0.54;\n}\n\n.downloadList {\n flex-wrap: wrap;\n}\n\n.downloadList > li > div {\n flex-wrap: wrap;\n}\n\n.downloadList > li > div > span {\n margin-bottom: 4px;\n transform: translateY(2px);\n}\n\n.downloadList .fileName {\n margin-right: 12px;\n}\n\n.downloadList i {\n margin-left: 0;\n}\n\n.downloadList i+span {\n height: auto;\n}\n\n.centerActionLink {\n cursor: pointer;\n text-align: center;\n display: block;\n margin-top: 4px;\n}",".loadingBox {\n margin-top: 48px;\n margin-bottom: 48px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n}\n\n.loadingSpin {\n margin-right: 24px;\n width: 36px;\n height: 36px;\n margin-left: 48px;\n}\n\n.loadingFailedIcon {\n margin-right: 24px;\n width: 36px;\n height: 36px;\n margin-left: 48px;\n font-size: 36px;\n opacity: 0.54;\n}","// TODO 实现加载对话框并实现其API,在合适的地方使用它\n\nimport { render } from \"preact/compat\";\n// @ts-ignore\nimport * as style from \"./loadingDialog.module.css\";\nimport mdui from \"mdui\";\nimport { translate } from \"../../util/language\";\n\nlet tmpElement: HTMLDivElement | null = null;\n\nexport default function loadingDialog(promise?: Promise | null | undefined, content?: string) {\n const id = \"slideChooseDialog-\" + Math.random().toString(36).substring(2);\n const fragment =
\n
\n \n {translate(\"loading-sth\", content ?? \"\")}\n
\n
\n \n {translate(\"loading-failed\")}\n
\n
\n if (tmpElement === null) {\n tmpElement = document.createElement(\"div\");\n } else {\n while (tmpElement.firstChild) {\n tmpElement.removeChild(tmpElement.firstChild);\n }\n }\n document.body.append(tmpElement);\n render(fragment, tmpElement);\n mdui.mutation(\"#\" + id);\n const dialog = new mdui.Dialog(\"#\" + id, {\n history: false\n });\n dialog.open();\n if (promise) {\n promise.then(() => {\n dialog.close();\n }).catch(() => {\n (document.getElementById(id).children[0] as HTMLDivElement).style.display = \"none\";\n (document.getElementById(id).children[1] as HTMLDivElement).style.display = \"flex\";\n });\n }\n}","import React, { useEffect, useState } from \"preact/compat\";\nimport { apiDelayedReturn } from \"../../util/apiUtil\";\nimport { DependenciesDataBean } from \"../../data/DependenciesDataBean\";\nimport { translate } from \"../../util/language\";\nimport loadingDialog from \"../dialog/loadingDialog\";\n\nexport function PluginDependencies(props: { pluginName: string }) {\n if (props.pluginName) {\n const [dependencies, setDependencies] = useState(null);\n useEffect(() => {\n const promise = getPluginDependencies(props.pluginName);\n loadingDialog(promise, translate(\"dependency-graph\"));\n promise.then((data) => {\n setDependencies(data);\n });\n }, [props.pluginName]);\n if (dependencies?.mermaid) {\n // 如果是手机端,将TD改为LR\n if (window.innerWidth < 768) {\n dependencies.mermaid = dependencies.mermaid.replace(/TD/g, 'LR');\n } else {\n dependencies.mermaid = dependencies.mermaid.replace(/TD/g, '');\n }\n // 等待MermaidDiagram渲染完成\n return (\n
\n {(() => {\n setTimeout(() => {\n window['renderMermaid'](\".mermaid\");\n (document.querySelector(\".mermaid\") as HTMLDivElement).style.opacity = \"1\";\n }, 50);\n return dependencies.mermaid\n })()}\n
\n );\n }\n return
{translate(\"loading\")}
\n }\n\n}\n\n// 请求插件依赖关系图\nconst getPluginDependencies = async (pluginName: string) => {\n return await apiDelayedReturn({\n url: \"/plugin/dependency-graph/\" + pluginName,\n });\n}","// noinspection HtmlUnknownAnchorTarget\n\nimport { Component, createRef, RefObject, RenderableProps } from \"preact\";\nimport RepoDataBean from \"../../data/RepoDataBean\";\nimport MDUI from \"../../util/mduiHelper\";\nimport { translate } from \"../../util/language\";\nimport { apiGetJson, apiPostRaw, getApiURL } from \"../../util/apiUtil\";\nimport { ReadmeDataBean } from \"../../data/ReadmeDataBean\";\nimport { LanguageComponent, StarComponent, TimeComponent } from \"./pluginCard\";\n// @ts-ignore\nimport * as style from \"./pluginDetail.module.css\";\nimport ReleaseDataBean from \"../../data/ReleaseDataBean\";\nimport { time2AgoString } from \"../../util/timeUtil\";\nimport { useState } from \"preact/compat\";\nimport { sizeToString } from \"../../util/stringUtil\";\nimport { PluginDependencies } from \"./pluginDependencies\";\nimport loadingDialog from \"../dialog/loadingDialog\";\n\ninterface Props {\n path: string\n}\n\ninterface State {\n repoData: RepoDataBean | null | undefined\n renderedReadme: string | null | undefined\n lastUpdateTime: Date | null | undefined\n releases: Array\n displayAllReleases: boolean,\n tab: any\n}\n\nexport default class PluginDetail extends Component {\n private readonly ref: RefObject = createRef();\n\n constructor() {\n super();\n this.setState({\n repoData: null,\n renderedReadme: null,\n lastUpdateTime: null,\n releases: [],\n displayAllReleases: false,\n tab: null\n })\n }\n\n setDisplayTab(index: number) {\n this.state.tab.show(index);\n }\n\n get pluginID(): string {\n const path = this.props.path;\n if (path.endsWith(\"/\")) {\n return path.substring(0, path.length - 1);\n }\n return path.substring(8);\n }\n\n componentDidMount() {\n this.updateInfo(false, false).catch(e => {\n console.error(e);\n MDUI.snackbar({\n message: translate(\"error-get-data\"),\n buttonText: translate(\"ok\")\n })\n });\n MDUI.mutation(\"#\" + this.ref.current.id);\n }\n\n async updateInfo(force: boolean, displayAllReleases: boolean) {\n if (!this.state) return;\n const now = new Date();\n if (this.state.lastUpdateTime && now.getTime() - this.state.lastUpdateTime.getTime() < 1000) {\n MDUI.snackbar({\n message: translate(\"update-too-frequent\"),\n buttonText: translate(\"ok\")\n });\n return;\n }\n try {\n if (!this.state.repoData || force) {\n const responsePromise = apiGetJson({\n url: \"/plugin/get/\" + this.pluginID\n });\n loadingDialog(responsePromise, translate(\"plugin-info\"))\n const repoData = await responsePromise;\n this.setState({\n repoData: repoData\n })\n }\n if (!this.state.renderedReadme || force) {\n const readmeData = await apiGetJson({\n url: \"/git/readme/\" + this.pluginID\n });\n if (\"Markdown\" === readmeData.format) {\n const responsePromise = apiPostRaw({\n url: \"/git/markdown/\" + this.pluginID,\n contentType: \"text/plain\",\n data: readmeData.content\n });\n loadingDialog(responsePromise, translate(\"plugin-description\"));\n this.setState({\n renderedReadme: await responsePromise\n })\n } else {\n this.setState({\n renderedReadme: translate(\"this-plugin-has-no-description\")\n })\n }\n }\n if (displayAllReleases || this.state.displayAllReleases) {\n if (!this.state.releases || this.state.releases.length <= 1 || force) {\n const releaseData = await apiGetJson>({\n url: \"/git/all-releases/\" + this.pluginID\n });\n this.setState({\n releases: releaseData\n })\n }\n } else {\n if (!this.state.releases || this.state.releases.length === 0 || force) {\n const releaseData = await apiGetJson({\n url: \"/git/latest-release/\" + this.pluginID\n });\n this.setState({\n releases: [releaseData]\n })\n }\n }\n } catch (e) {\n console.error(e);\n MDUI.snackbar({\n message: translate(\"error-get-data\"),\n buttonText: translate(\"ok\")\n })\n }\n }\n\n displayTab(index: number) {\n if (this.state?.tab) {\n // 忽略重复点击\n if (this.state.tab.activeIndex === index) return;\n this.state.tab.show(index);\n // 重新渲染\n this.setState({\n ...this.state,\n tab: this.state.tab\n })\n }\n }\n\n render(props: RenderableProps | undefined, state: Readonly | undefined) {\n // 渲染时检查tab\n if (!state?.tab || state.tab.activeIndex === -1) {\n const tab = new MDUI.Tab(\"#pluginDetailTab\");\n this.setState({\n tab: tab\n })\n }\n return (\n
\n
\n
\n
\n \n \n
\n
\n
\n
\n {state?.repoData?.name ?? translate(\"loading\")}\n
\n
\n
\n \n \n \n \n
\n \n {/*TODO 修复错误的图片相对链接(将相对链接指向GitHub而非PNXHub)*/}\n {/*检查tab是否选中这个, 否则不渲染 */}\n {\n state?.tab?.activeIndex === 0 ?\n
\n
\n
\n : <>\n }\n {\n state?.tab?.activeIndex === 1 ?\n
\n
\n
{translate(\"release\")}
\n {\n this.setState({\n displayAllReleases: true\n });\n return this.updateInfo(false, true)\n }}/>\n
\n : <>\n }\n {\n state?.tab?.activeIndex === 2 ?\n
\n
\n
{translate(\"dependencies\")}
\n
\n \n
\n : <>\n }\n
\n
\n
\n );\n }\n}\n\nexport function AuthorComponent(props: { author: string }) {\n return (\n \n \n {props.author}\n \n )\n}\n\nexport function FileSizeComponent(props: { size: number }) {\n return (\n \n \n {sizeToString(props.size)}\n \n )\n}\n\nfunction copyJsonObj(obj: T): T {\n return JSON.parse(JSON.stringify(obj));\n}\n\nexport class ReleaseComponent extends Component<{ pluginID: string, releaseDataBeans: Array, loadAllCallback?: () => Promise | null | undefined }> {\n render() {\n const [state, updater] = useState({});\n console.log(\"render\", this.props)\n for (const releaseDataBean of this.props.releaseDataBeans) {\n // TODO 多次渲染Markdown结果进行缓存,避免不必要的请求\n if (releaseDataBean && releaseDataBean.body && !state['renderedReadme_' + releaseDataBean.tagName]) {\n apiPostRaw({\n url: \"/git/markdown/\" + this.props.pluginID,\n contentType: \"text/plain\",\n data: releaseDataBean.body\n }).then(value => {\n const tmp = copyJsonObj(state);\n tmp['renderedReadme_' + releaseDataBean.tagName] = value;\n updater(tmp);\n }).catch(() => {\n const tmp = copyJsonObj(state);\n tmp['renderedReadme_' + releaseDataBean.tagName] = translate(\"error-get-data\");\n updater(tmp);\n })\n }\n }\n return (\n <>\n
\n {this.props.releaseDataBeans.map((releaseDataBean, index) => {\n if (!releaseDataBean || !releaseDataBean.name) return <>\n return (\n
\n
\n
{releaseDataBean.name}
\n {time2AgoString(releaseDataBean.publishedAt)}
\n keyboard_arrow_down\n
\n
\n
\n
\n
    \n {releaseDataBean.artifacts.map((artifact) => {\n if (!artifact.name) return <>\n return (\n
  • \n
    \n {artifact.name}\n \n \n
    \n {/*TODO 优化下载按钮样式*/}\n \n \n \n
  • \n )\n })}\n
\n
\n
\n )\n })}\n {\n (() => {\n if (this.props.releaseDataBeans.filter(value => value?.name).length !== 0) {\n return (<>\n {/*TODO 使用LoadingDialog来提示用户正在加载*/}\n {/*TODO 如果一共只有一个发行版给出用户提示,不要让用户以为是加载失败*/}\n \n )\n }\n return <>\n })()\n }\n
\n
\n {\n // TODO 在合适的时候显示正在加载\n // TODO 目前的实现方式会导致在加载完成之后仍然显示正在加载,所以目前什么也不显示\n (() => {\n if ((this.props.releaseDataBeans.length === 1 && this.props.releaseDataBeans[0]\n && !this.props.releaseDataBeans[0].name)) {\n return {translate(\"no-release\")}\n }\n return <>\n })()\n }\n
\n \n )\n }\n\n componentDidMount() {\n MDUI.mutation(\"#latest-release-panel\")\n }\n}\n","import { PluginCard } from \"../../components/plugin/pluginCard\";\nimport RepoDataBean from \"../../data/RepoDataBean\";\nimport PluginDrawer from \"../../components/plugin/pluginDrawer\";\nimport NotFound from \"../_404\";\nimport { Router } from \"preact-iso\";\nimport { translate } from \"../../util/language\";\nimport { Component, JSX } from \"preact\";\nimport MDUI from \"../../util/mduiHelper\";\nimport { apiGetJson, getApiURL } from \"../../util/apiUtil\";\n// @ts-ignore\nimport * as style from \"./style.module.css\";\nimport slideChooseDialog from \"../../components/dialog/sliderChooseDialog\";\nimport PluginDetail from \"../../components/plugin/pluginDetail\";\nimport loadingDialog from \"../../components/dialog/loadingDialog\";\n\nexport default function PluginHub() {\n return (\n <>\n \n \n \n \n \n \n \n \n )\n}\n\nlet queryFrom = 0;\n\nclass Hub extends Component<{ path: string }, {\n updating: boolean,\n updatingProcess: number, // 0-100 如果 <0 说明请求出错\n errorReason: string,\n updateQuery: {\n from: number,\n size: number,\n sort: \"recommend\" | \"lastUpdate\" | \"star\",\n order: \"asc\" | \"desc\",\n keywords: string\n }\n}> {\n private repoData: RepoDataBean[] = [];\n private totalSize: number = 1;\n private pluginCards: JSX.Element[] = [];\n private lastUpdateTime: number = 0;\n\n constructor() {\n super();\n const clientWidth = document.body.clientWidth;\n let pageSize;\n if (clientWidth <= 600) {\n pageSize = 4;\n } else if (clientWidth <= 1024) {\n pageSize = 8;\n } else if (clientWidth <= 1440) {\n pageSize = 12;\n } else {\n pageSize = 16;\n }\n this.setState({\n updating: false,\n updatingProcess: 0,\n errorReason: null,\n updateQuery: {\n from: queryFrom,\n size: pageSize,\n sort: (localStorage.getItem(\"pluginHubSort\") as \"recommend\" | \"lastUpdate\" | \"star\") || \"recommend\",\n order: (localStorage.getItem(\"pluginHubOrder\") as \"asc\" | \"desc\") || \"desc\",\n keywords: null\n }\n })\n }\n\n shouldComponentUpdate(nextProps: Readonly<{ path: string }>,\n nextState: Readonly<{ updating: boolean; updatingProcess: number; errorReason: string; updateQuery: { from: number; size: number; sort: \"recommend\" | \"lastUpdate\" | \"star\"; order: \"asc\" | \"desc\"; keywords: string } }>, nextContext: any): boolean {\n if (this.state.updating || this.state.updating !== nextState.updating) {\n console.log(\"ture\")\n return true;\n }\n if (!Hub.isObjEqual(this.state.updateQuery, nextState.updateQuery)) {\n console.log(\"ture\")\n return true;\n }\n console.log(\"false\")\n return false;\n }\n\n private static isObjEqual(object1, object2) {\n const o1keys = Object.keys(object1);\n const o2keys = Object.keys(object2);\n if (o2keys.length !== o1keys.length) return false;\n for (let i = 0; i <= o1keys.length - 1; i++) {\n let key = o1keys[i];\n if (!o2keys.includes(key)) return false;\n if (object2[key] !== object1[key]) return false;\n }\n return true;\n }\n\n /**\n * @returns If we successfully send a request to update plugin list.\n */\n updatePlugins(): boolean {\n // 三秒以内不重复更新\n const currentTime = new Date().getTime();\n if (currentTime - this.lastUpdateTime < 1000) {\n MDUI.snackbar({\n message: translate(\"update-too-frequent\"),\n buttonText: translate(\"ok\")\n })\n return false;\n }\n this.lastUpdateTime = currentTime;\n // 设置正在更新\n this.setState({\n updating: true\n })\n loadingDialog(\n apiGetJson({\n url: this.processURL(),\n beforeSend: xhr => {\n xhr.upload.addEventListener(\"progress\", e => {\n this.setState({\n updatingProcess: e.loaded / e.total * 100\n })\n console.log(\"update\")\n })\n },\n error: (xhr, textStatus) => {\n this.setState({\n updating: false,\n updatingProcess: -1,\n errorReason: textStatus\n })\n }\n }).then(dataObj => {\n this.setState({\n updating: false,\n updatingProcess: 0,\n errorReason: null\n });\n if (dataObj.size === 0) {\n this.setState({\n updatingProcess: -1,\n errorReason: \"No plugins matched\"\n });\n } else {\n const dataArray = [];\n for (const each of dataObj.plugins) {\n dataArray.push(RepoDataBean.fromJSON(each));\n }\n this.repoData = dataArray;\n this.totalSize = dataObj.totalSize;\n }\n }), translate(\"plugin-list\")\n );\n return true;\n }\n\n renderPluginCards(): void {\n this.pluginCards = [];\n for (const each of this.repoData) {\n this.pluginCards.push()\n }\n }\n\n processURL(): string {\n let root = getApiURL();\n const queryData = this.state.updateQuery;\n if (queryData.keywords) {\n root += \"/plugin/search\"\n if (queryData.order) {\n root += \"/\" + queryData.order\n }\n root += \"?keywords\" + queryData.keywords\n if (queryData.from) {\n root += \"&from=\" + queryData.from\n }\n if (queryData.size) {\n root += \"&size=\" + queryData.size\n }\n } else {\n root += \"/plugin/list\"\n if (queryData.sort) {\n root += \"/\" + queryData.sort\n if (queryData.order) {\n root += \"/\" + queryData.order\n }\n } else {\n if (queryData.order) {\n root += \"/recommend/\" + queryData.order\n }\n }\n if (queryData.from && queryData.size) {\n root += \"?from=\" + queryData.from + \"&size=\" + queryData.size\n } else if (queryData.from) {\n root += \"?from=\" + queryData.from\n } else if (queryData.size) {\n root += \"?size=\" + queryData.size\n }\n }\n return root;\n }\n\n turnPageDelta(deltaPage: number): void {\n const queryData = this.state.updateQuery;\n const previousFrom = queryData.from;\n queryData.from += deltaPage * queryData.size;\n if (queryData.from < 0) {\n queryData.from = 0;\n }\n if (queryData.from + 1 > this.totalSize) {\n queryData.from = previousFrom;\n }\n if (queryData.from !== previousFrom) {\n if (!this.updatePlugins()) {\n queryData.from = previousFrom;\n }\n }\n }\n\n get currentPage(): number {\n return Math.floor(this.state.updateQuery.from / this.state.updateQuery.size) + 1\n }\n\n get maxPage(): number {\n return Math.ceil(this.totalSize / this.state.updateQuery.size)\n }\n\n render() {\n this.renderPluginCards();\n return (\n <>\n
\n
\n

{translate(\"plugin-hub\")}

\n
\n
\n
\n \n
\n {translate(\"order\")}\n
\n {/*TODO 在切换推荐方式后立即更新插件列表*/}\n \n {/*TODO 在切换排序方式后立即更新插件列表*/}\n \n
\n
\n
\n {this.pluginCards}\n
\n
\n
\n {/*Page Up*/}\n \n {/*TODO 这里翻页的翻译漏掉了*/}\n \n {/*Page Down*/}\n \n
\n
\n
\n \n )\n }\n\n componentDidUpdate(previousProps: Readonly<{ path: string }>,\n previousState: Readonly<{ updating: boolean; updatingProcess: number; errorReason: string; updateQuery: { from: number; size: number; sort: \"recommend\" | \"lastUpdate\" | \"star\"; order: \"asc\" | \"desc\"; keywords: string } }>, snapshot: any) {\n MDUI.mutation(\".\" + style.pluginButtonBar);\n }\n\n componentWillMount() {\n const queryData = this.state.updateQuery;\n if (queryData) {\n queryData.from = queryFrom;\n this.setState({\n updateQuery: queryData\n })\n }\n }\n\n componentDidMount() {\n if (this.repoData.length === 0) {\n this.updatePlugins();\n }\n MDUI.mutation(\".\" + style.pluginButtonBar);\n }\n\n componentWillUnmount() {\n queryFrom = this.state.updateQuery.from;\n }\n}","import {LocationProvider, Router, Route, ErrorBoundary, hydrate} from 'preact-iso';\nimport Home from './pages/home';\nimport NotFound from './pages/_404';\nimport About from \"./pages/about\";\nimport HeadBar from './components/headbar';\nimport PluginHub from \"./pages/plugin\";\nimport {initDefaultTheme} from \"./util/theme\";\n\nexport function App() {\n initDefaultTheme();\n return (\n \n \n
\n \n \n \n \n \n \n \n \n \n \n
\n
\n );\n}\n\nhydrate();\n"],"names":["$df8c2dbae978f2f4$export$6503ec6e8aabbaf","$df8c2dbae978f2f4$export$f7ad0328861e2f03","$df8c2dbae978f2f4$var$mapping","pairs","keys","Object","i","length","id","resolved","Error","slice","options","vnodeId","rerenderQueue","prevDebounce","defer","EMPTY_OBJ","EMPTY_ARR","IS_NON_DIMENSIONAL","assign","obj","props","removeNode","node","parentNode","removeChild","createElement","type","children","key","ref","normalizedProps","arguments","call","defaultProps","createVNode","original","vnode","__k","__","__b","__e","__d","__c","__h","constructor","__v","createRef","current","Fragment","Component","context","this","getDomSibling","childIndex","indexOf","sibling","updateParentDomPointers","child","base","enqueueRender","c","push","process","__r","debounceRendering","renderQueueLength","component","commitQueue","oldVNode","oldDom","parentDom","sort","a","b","shift","diff","ownerSVGElement","commitRoot","diffChildren","renderResult","newParentVNode","oldParentVNode","globalContext","isSvg","excessDomChildren","isHydrating","j","childVNode","newDom","firstChildDom","refs","oldChildren","oldChildrenLength","Array","isArray","reorderChildren","placeChild","getLastDom","nextSibling","unmount","applyRef","tmp","toChildArray","out","some","nextDom","sibDom","outer","appendChild","insertBefore","lastDom","setStyle","style","value","setProperty","test","dom","name","oldValue","useCapture","o","cssText","replace","toLowerCase","l","addEventListener","eventProxyCapture","eventProxy","removeEventListener","e","removeAttribute","setAttribute","event","newVNode","isNew","oldProps","oldState","snapshot","clearProcessingException","newProps","provider","componentContext","renderHook","count","newType","contextType","__E","prototype","render","doRender","sub","state","__n","_sb","__s","getDerivedStateFromProps","componentWillMount","componentDidMount","componentWillReceiveProps","shouldComponentUpdate","forEach","componentWillUpdate","componentDidUpdate","__P","getChildContext","getSnapshotBeforeUpdate","oldHtml","newHtml","nodeType","localName","document","createTextNode","createElementNS","is","data","childNodes","dangerouslySetInnerHTML","attributes","__html","innerHTML","diffProps","hydrate","checked","diffElementNodes","diffed","root","cb","parentVNode","skipRemove","r","componentWillUnmount","replaceNode","firstChild","cloneElement","createContext","defaultValue","contextId","Consumer","contextValue","Provider","subs","ctx","_props","old","splice","error","errorInfo","ctor","handled","getDerivedStateFromError","setState","componentDidCatch","update","callback","s","forceUpdate","Promise","then","bind","resolve","setTimeout","module","exports","import","parcelRequire","register","JSON","parse","$9nRFg","isStaticChildren","__source","__self","currentIndex","currentComponent","previousComponent","prevRaf","currentHook","afterPaintEffects","EMPTY","oldBeforeDiff","oldBeforeRender","oldAfterDiff","oldCommit","oldBeforeUnmount","getHookState","index","hooks","__H","__V","useState","initialState","useReducer","invokeOrReturn","reducer","init","hookState","_reducer","action","currentValue","__N","nextValue","_hasScuFromHooks","prevScu","p","stateHooks","filter","x","every","shouldUpdate","hookItem","useEffect","args","argsChanged","_pendingArgs","useLayoutEffect","useRef","initialValue","useMemo","factory","useContext","flushAfterPaintEffects","invokeCleanup","invokeEffect","requestAnimationFrame","afterNextFrame","hasErrored","HAS_RAF","raf","done","clearTimeout","timeout","cancelAnimationFrame","hook","comp","cleanup","oldArgs","newArgs","arg","f","$dc5ac2656c03ca44$var$push","$dc5ac2656c03ca44$var$UPDATE","url","undefined","ctrlKey","metaKey","altKey","shiftKey","button","link","target","closest","origin","location","getAttribute","preventDefault","href","pathname","search","history","pushState","replaceState","$dc5ac2656c03ca44$export$78e3044358792147","route","matches","split","Boolean","val","rest","Math","max","m","param","flag","match","map","decodeURIComponent","join","params","$dc5ac2656c03ca44$export$5af065edda80e75c","$befa1cbb53cb5e70$export$13e3392192263954","wasPush","$befa1cbb53cb5e70$export$1538c33de8887b59","u","URL","path","query","fromEntries","searchParams","$befa1cbb53cb5e70$export$e5c5a5f917a5871c","h","$dc5ac2656c03ca44$var$RESOLVED","$dc5ac2656c03ca44$export$55185c17a0fcbe46","$dc5ac2656c03ca44$export$45d76561a5302f2b","$befa1cbb53cb5e70$export$fae74005e78b1a27","$dc5ac2656c03ca44$var$RouteContext","isLoading","$befa1cbb53cb5e70$export$b8f5890fc79d6aca","prevRoute","cur","prev","pendingBase","hasEverCommitted","didSuspend","d","reverse","default","onLoadStart","currentDom","remove","scrollTo","onLoadEnd","onRouteChange","$dc5ac2656c03ca44$var$RenderRef","$dc5ac2656c03ca44$export$e7b0ac011bb776c6","$af2abf65bf63fa72$var$oldCatchError","$af2abf65bf63fa72$export$e926676385687eaf","$af2abf65bf63fa72$var$childDidSuspend","onError","err","v","$d6ebad3cbaed4023$var$initialized","$f6e330c04e9ec55f$exports","$a3b4ff789d68ed3d$export$2e25566eb172a258","str","lines","sb","line","trimEnd","$95eed150a01fcc7b$exports","$e69a074a0ea6ddb8$var$languageId","window","localStorage","getItem","navigator","language","$e69a074a0ea6ddb8$var$getLanguageMap","languageId","$parcel$interopDefault","$e69a074a0ea6ddb8$var$translators","startsWith","translate","substring","innerWidth","$e69a074a0ea6ddb8$export$d73ee8ef04f5226a","trim","translator","$9610bc972ce6e702$export$2e2bcd8739ae039","$b61d1e0beae6a51f$export$34b9dba7ce09269b","className","$99308e43e41648d1$export$2e2bcd8739ae039","class","$03479b0291f8c0ca$export$2e2bcd8739ae039","$bf6e1eab0f874598$export$2e2bcd8739ae039","defineProperty","enumerable","configurable","writable","$3c958f05b2f0d87a$export$f65d88c3974284dc","$ece1c4589bfe9b5b$export$2e2bcd8739ae039","$e7eab1da9baf0051$exports","mdui","$1773b2992cfd5f88$export$6856b73e98185bff","noNotice","clazz","body","classList","contains","add","snackbar","buttonText","setItem","$1773b2992cfd5f88$export$201eaf2f9c1b0b4c","$ecb7d97d529f5508$export$2e2bcd8739ae039","renderButtonFragments","width","toolbarRef","clientWidth","eachEle","itemCount","min","pageInfos","oldItemCount","floor","buttonFragments","listMenuFragments","infoEntry","icon","needsMutation","resizeUpdate","windowSizeListener","onClick","mutation","super","$d973b95735b1ec85$export$28f1d87b2c222810","$d973b95735b1ec85$export$54df52f2b9f10b68","$d973b95735b1ec85$export$5d1a719b881044d9","$d973b95735b1ec85$export$aa3e815946b80764","$d973b95735b1ec85$export$57cb25781891beab","$d973b95735b1ec85$export$3d215540e7cc85f5","$d973b95735b1ec85$export$c89915e2373763c7","$d973b95735b1ec85$export$33962d11e6aa1fef","$7f044ff8a85e365e$export$d9a9b8215fab3078","hostname","$7f044ff8a85e365e$var$processCommonAjaxOptions","async","cache","apiURL","$7f044ff8a85e365e$export$415b389fbad9f621","method","reject","$","ajax","catch","$7f044ff8a85e365e$export$3457f041ce616cc2","$64106795d3b8098a$export$31b620d6bd883150","time","Date","getTime","seconds","minutes","hours","days","months","years","$0ff5a71b66720015$exports","$c77807907c2bcb6b$export$62a9e2a05a54be64","repo","openDetail","alt","src","iconDownloadID","owner","description","$c77807907c2bcb6b$export$b8f95bae3eec617","mainLanguage","$c77807907c2bcb6b$export$2ce247c189e46443","star","$c77807907c2bcb6b$export$ef6ddd4748dac183","lastUpdateAt","$c77807907c2bcb6b$var$CardMenuComponent","backgroundColor","openMenu","open","$8ba5ee92f34300bf$export$2e2bcd8739ae039","static","json","bean","topics","String","pluginName","mainClass","dependencies","softDependencies","banned","qualityScore","editorRecommendScore","lastFullIndexTime","jsonString","fromJSON","$ae27c5e9e303d52d$export$4be65e66cfa2648a","reg","RegExp","cookie","$ae27c5e9e303d52d$export$110700823644f4a6","expires","now","toUTCString","encodeURIComponent","$45675d46bb18c490$export$2e2bcd8739ae039","paddingLeft","drawer","Drawer","swipe","mduiDrawer","endsWith","$element","on","message","close","$14e657444de824e9$export$1d68b40ac09cb092","shallowDiffers","PureComponent","isPureReactComponent","oldDiffHook","__f","Symbol","for","mapFn","fn","oldCatchError","oldUnmount","detachedClone","detachedParent","effect","removeOriginal","originalParent","Suspense","__u","_suspenders","suspended","__a","SuspenseList","_next","_map","__R","promise","suspendingVNode","suspendingComponent","onResolved","onSuspensionComplete","suspendedVNode","pop","wasHydrating","detachedComponent","__O","fallback","list","delete","revealOrder","size","delegated","get","unsuspend","wrappedUnsuspend","Map","set","_this","REACT_ELEMENT_TYPE","CAMEL_PROPS","IS_DOM","onChangeInputType","parent","textContent","preactRender","isReactComponent","oldEventHook","empty","isPropagationStopped","cancelBubble","isDefaultPrevented","defaultPrevented","persist","nativeEvent","classNameDescriptor","oldVNodeHook","nonCustomElement","multiple","selected","$$typeof","oldDiffed","$65636e1b0ce39862$export$79956d59571aed6d","$4b19b9a581bdedbb$var$tmpElement","$4b19b9a581bdedbb$export$2e2bcd8739ae039","title","step","random","toString","fragment","append","$1f9289a3b9cfe613$export$b3890eb0ae9dca99","updateSliders","dialog","Dialog","parseInt","find","$054bf1f991256d7a$export$cbd8ee103f8ca93c","$054bf1f991256d7a$export$6e4d26bc0085642f","$8b00ce8effe6acaa$export$3bcf18f7e1b94062","$8b00ce8effe6acaa$export$8ed145b1251a6e01","$8b00ce8effe6acaa$export$ef356052e476684e","$cbb6775bc6fa6d95$var$tmpElement","$cbb6775bc6fa6d95$export$2e2bcd8739ae039","content","display","getElementById","$0fa1866f62f1f816$export$94e59c7802483e92","setDependencies","$befa1cbb53cb5e70$export$60241385465d0a34","$befa1cbb53cb5e70$export$6d9c69b0de29b591","$0fa1866f62f1f816$var$getPluginDependencies","mermaid","opacity","querySelector","uuid","interval","setInterval","clearInterval","$9d8867708d0e3698$export$2e2bcd8739ae039","setDisplayTab","tab","show","pluginID","updateInfo","console","force","displayAllReleases","lastUpdateTime","repoData","responsePromise","renderedReadme","readmeData","format","contentType","releases","releaseData","displayTab","activeIndex","Tab","back","$9d8867708d0e3698$export$1db4df78e9460a1a","author","$9d8867708d0e3698$export$a01530fb84d2ad23","releaseDataBeans","loadAllCallback","$9d8867708d0e3698$export$cb1af5ffd11ea6ae","toFixed","$9d8867708d0e3698$var$copyJsonObj","stringify","updater","log","releaseDataBean","tagName","publishedAt","artifacts","artifact","createAt","sizeInBytes","downloadId","download","$0bcf66f09eda0a0f$export$2e2bcd8739ae039","$0bcf66f09eda0a0f$var$Hub","$0bcf66f09eda0a0f$var$queryFrom","nextProps","nextState","nextContext","updating","isObjEqual","updateQuery","object1","object2","o1keys","o2keys","includes","updatePlugins","currentTime","processURL","beforeSend","xhr","upload","updatingProcess","loaded","total","textStatus","errorReason","dataObj","dataArray","each","plugins","totalSize","renderPluginCards","pluginCards","queryData","keywords","order","from","turnPageDelta","deltaPage","previousFrom","currentPage","maxPage","ceil","onChange","temp","page","previousProps","previousState","pageSize","$224f4c8803bfe295$export$86fbec116b87613f","jsx","isodata"],"version":3,"file":"index.675f4210.js.map"}