UNPKG

intlayer-editor

Version:

Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.

1,218 lines 2.26 MB
function _mergeNamespaces(n2, m2) { for (var i2 = 0; i2 < m2.length; i2++) { const e = m2[i2]; if (typeof e !== "string" && !Array.isArray(e)) { for (const k2 in e) { if (k2 !== "default" && !(k2 in n2)) { const d = Object.getOwnPropertyDescriptor(e, k2); if (d) { Object.defineProperty(n2, k2, d.get ? d : { enumerable: true, get: () => e[k2] }); } } } } } return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" })); } (function polyfill() { const relList = document.createElement("link").relList; if (relList && relList.supports && relList.supports("modulepreload")) return; for (const link of document.querySelectorAll('link[rel="modulepreload"]')) processPreload(link); new MutationObserver((mutations) => { for (const mutation of mutations) { if (mutation.type !== "childList") continue; for (const node of mutation.addedNodes) if (node.tagName === "LINK" && node.rel === "modulepreload") processPreload(node); } }).observe(document, { childList: true, subtree: true }); function getFetchOpts(link) { const fetchOpts = {}; if (link.integrity) fetchOpts.integrity = link.integrity; if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy; if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include"; else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit"; else fetchOpts.credentials = "same-origin"; return fetchOpts; } function processPreload(link) { if (link.ep) return; link.ep = true; const fetchOpts = getFetchOpts(link); fetch(link.href, fetchOpts); } })(); function getDefaultExportFromCjs(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; } var jsxRuntime = { exports: {} }; var reactJsxRuntime_production = {}; var hasRequiredReactJsxRuntime_production; function requireReactJsxRuntime_production() { if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production; hasRequiredReactJsxRuntime_production = 1; var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"); function jsxProd(type, config2, maybeKey) { var key2 = null; void 0 !== maybeKey && (key2 = "" + maybeKey); void 0 !== config2.key && (key2 = "" + config2.key); if ("key" in config2) { maybeKey = {}; for (var propName in config2) "key" !== propName && (maybeKey[propName] = config2[propName]); } else maybeKey = config2; config2 = maybeKey.ref; return { $$typeof: REACT_ELEMENT_TYPE, type, key: key2, ref: void 0 !== config2 ? config2 : null, props: maybeKey }; } reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE; reactJsxRuntime_production.jsx = jsxProd; reactJsxRuntime_production.jsxs = jsxProd; return reactJsxRuntime_production; } var hasRequiredJsxRuntime; function requireJsxRuntime() { if (hasRequiredJsxRuntime) return jsxRuntime.exports; hasRequiredJsxRuntime = 1; { jsxRuntime.exports = /* @__PURE__ */ requireReactJsxRuntime_production(); } return jsxRuntime.exports; } var jsxRuntimeExports = /* @__PURE__ */ requireJsxRuntime(); var react = { exports: {} }; var react_production = {}; var hasRequiredReact_production; function requireReact_production() { if (hasRequiredReact_production) return react_production; hasRequiredReact_production = 1; var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE2 = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator; function getIteratorFn(maybeIterable) { if (null === maybeIterable || "object" !== typeof maybeIterable) return null; maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; return "function" === typeof maybeIterable ? maybeIterable : null; } var ReactNoopUpdateQueue = { isMounted: function() { return false; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, assign = Object.assign, emptyObject = {}; function Component(props, context, updater) { this.props = props; this.context = context; this.refs = emptyObject; this.updater = updater || ReactNoopUpdateQueue; } Component.prototype.isReactComponent = {}; Component.prototype.setState = function(partialState, callback) { if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error( "takes an object of state variables to update or a function which returns an object of state variables." ); this.updater.enqueueSetState(this, partialState, callback, "setState"); }; Component.prototype.forceUpdate = function(callback) { this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); }; function ComponentDummy() { } ComponentDummy.prototype = Component.prototype; function PureComponent(props, context, updater) { this.props = props; this.context = context; this.refs = emptyObject; this.updater = updater || ReactNoopUpdateQueue; } var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); pureComponentPrototype.constructor = PureComponent; assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = true; var isArrayImpl = Array.isArray; function noop3() { } var ReactSharedInternals = { H: null, A: null, T: null, S: null }, hasOwnProperty2 = Object.prototype.hasOwnProperty; function ReactElement(type, key2, props) { var refProp = props.ref; return { $$typeof: REACT_ELEMENT_TYPE, type, key: key2, ref: void 0 !== refProp ? refProp : null, props }; } function cloneAndReplaceKey(oldElement, newKey) { return ReactElement(oldElement.type, newKey, oldElement.props); } function isValidElement2(object2) { return "object" === typeof object2 && null !== object2 && object2.$$typeof === REACT_ELEMENT_TYPE; } function escape(key2) { var escaperLookup = { "=": "=0", ":": "=2" }; return "$" + key2.replace(/[=:]/g, function(match) { return escaperLookup[match]; }); } var userProvidedKeyEscapeRegex = /\/+/g; function getElementKey(element, index2) { return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index2.toString(36); } function resolveThenable(thenable) { switch (thenable.status) { case "fulfilled": return thenable.value; case "rejected": throw thenable.reason; default: switch ("string" === typeof thenable.status ? thenable.then(noop3, noop3) : (thenable.status = "pending", thenable.then( function(fulfilledValue) { "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue); }, function(error) { "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error); } )), thenable.status) { case "fulfilled": return thenable.value; case "rejected": throw thenable.reason; } } throw thenable; } function mapIntoArray(children, array2, escapedPrefix, nameSoFar, callback) { var type = typeof children; if ("undefined" === type || "boolean" === type) children = null; var invokeCallback = false; if (null === children) invokeCallback = true; else switch (type) { case "bigint": case "string": case "number": invokeCallback = true; break; case "object": switch (children.$$typeof) { case REACT_ELEMENT_TYPE: case REACT_PORTAL_TYPE: invokeCallback = true; break; case REACT_LAZY_TYPE2: return invokeCallback = children._init, mapIntoArray( invokeCallback(children._payload), array2, escapedPrefix, nameSoFar, callback ); } } if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array2, escapedPrefix, "", function(c) { return c; })) : null != callback && (isValidElement2(callback) && (callback = cloneAndReplaceKey( callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace( userProvidedKeyEscapeRegex, "$&/" ) + "/") + invokeCallback )), array2.push(callback)), 1; invokeCallback = 0; var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":"; if (isArrayImpl(children)) for (var i2 = 0; i2 < children.length; i2++) nameSoFar = children[i2], type = nextNamePrefix + getElementKey(nameSoFar, i2), invokeCallback += mapIntoArray( nameSoFar, array2, escapedPrefix, type, callback ); else if (i2 = getIteratorFn(children), "function" === typeof i2) for (children = i2.call(children), i2 = 0; !(nameSoFar = children.next()).done; ) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i2++), invokeCallback += mapIntoArray( nameSoFar, array2, escapedPrefix, type, callback ); else if ("object" === type) { if ("function" === typeof children.then) return mapIntoArray( resolveThenable(children), array2, escapedPrefix, nameSoFar, callback ); array2 = String(children); throw Error( "Objects are not valid as a React child (found: " + ("[object Object]" === array2 ? "object with keys {" + Object.keys(children).join(", ") + "}" : array2) + "). If you meant to render a collection of children, use an array instead." ); } return invokeCallback; } function mapChildren(children, func, context) { if (null == children) return children; var result = [], count2 = 0; mapIntoArray(children, result, "", "", function(child) { return func.call(context, child, count2++); }); return result; } function lazyInitializer(payload) { if (-1 === payload._status) { var ctor = payload._result; ctor = ctor(); ctor.then( function(moduleObject) { if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject; }, function(error) { if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error; } ); -1 === payload._status && (payload._status = 0, payload._result = ctor); } if (1 === payload._status) return payload._result.default; throw payload._result; } var reportGlobalError = "function" === typeof reportError ? reportError : function(error) { if ("object" === typeof window && "function" === typeof window.ErrorEvent) { var event = new window.ErrorEvent("error", { bubbles: true, cancelable: true, message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error), error }); if (!window.dispatchEvent(event)) return; } else if ("object" === typeof process && "function" === typeof process.emit) { process.emit("uncaughtException", error); return; } console.error(error); }, Children = { map: mapChildren, forEach: function(children, forEachFunc, forEachContext) { mapChildren( children, function() { forEachFunc.apply(this, arguments); }, forEachContext ); }, count: function(children) { var n2 = 0; mapChildren(children, function() { n2++; }); return n2; }, toArray: function(children) { return mapChildren(children, function(child) { return child; }) || []; }, only: function(children) { if (!isValidElement2(children)) throw Error( "React.Children.only expected to receive a single React element child." ); return children; } }; react_production.Activity = REACT_ACTIVITY_TYPE; react_production.Children = Children; react_production.Component = Component; react_production.Fragment = REACT_FRAGMENT_TYPE; react_production.Profiler = REACT_PROFILER_TYPE; react_production.PureComponent = PureComponent; react_production.StrictMode = REACT_STRICT_MODE_TYPE; react_production.Suspense = REACT_SUSPENSE_TYPE; react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals; react_production.__COMPILER_RUNTIME = { __proto__: null, c: function(size2) { return ReactSharedInternals.H.useMemoCache(size2); } }; react_production.cache = function(fn) { return function() { return fn.apply(null, arguments); }; }; react_production.cacheSignal = function() { return null; }; react_production.cloneElement = function(element, config2, children) { if (null === element || void 0 === element) throw Error( "The argument must be a React element, but you passed " + element + "." ); var props = assign({}, element.props), key2 = element.key; if (null != config2) for (propName in void 0 !== config2.key && (key2 = "" + config2.key), config2) !hasOwnProperty2.call(config2, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config2.ref || (props[propName] = config2[propName]); var propName = arguments.length - 2; if (1 === propName) props.children = children; else if (1 < propName) { for (var childArray = Array(propName), i2 = 0; i2 < propName; i2++) childArray[i2] = arguments[i2 + 2]; props.children = childArray; } return ReactElement(element.type, key2, props); }; react_production.createContext = function(defaultValue) { defaultValue = { $$typeof: REACT_CONTEXT_TYPE, _currentValue: defaultValue, _currentValue2: defaultValue, _threadCount: 0, Provider: null, Consumer: null }; defaultValue.Provider = defaultValue; defaultValue.Consumer = { $$typeof: REACT_CONSUMER_TYPE, _context: defaultValue }; return defaultValue; }; react_production.createElement = function(type, config2, children) { var propName, props = {}, key2 = null; if (null != config2) for (propName in void 0 !== config2.key && (key2 = "" + config2.key), config2) hasOwnProperty2.call(config2, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config2[propName]); var childrenLength = arguments.length - 2; if (1 === childrenLength) props.children = children; else if (1 < childrenLength) { for (var childArray = Array(childrenLength), i2 = 0; i2 < childrenLength; i2++) childArray[i2] = arguments[i2 + 2]; props.children = childArray; } if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]); return ReactElement(type, key2, props); }; react_production.createRef = function() { return { current: null }; }; react_production.forwardRef = function(render) { return { $$typeof: REACT_FORWARD_REF_TYPE, render }; }; react_production.isValidElement = isValidElement2; react_production.lazy = function(ctor) { return { $$typeof: REACT_LAZY_TYPE2, _payload: { _status: -1, _result: ctor }, _init: lazyInitializer }; }; react_production.memo = function(type, compare) { return { $$typeof: REACT_MEMO_TYPE, type, compare: void 0 === compare ? null : compare }; }; react_production.startTransition = function(scope) { var prevTransition = ReactSharedInternals.T, currentTransition = {}; ReactSharedInternals.T = currentTransition; try { var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S; null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop3, reportGlobalError); } catch (error) { reportGlobalError(error); } finally { null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition; } }; react_production.unstable_useCacheRefresh = function() { return ReactSharedInternals.H.useCacheRefresh(); }; react_production.use = function(usable) { return ReactSharedInternals.H.use(usable); }; react_production.useActionState = function(action, initialState, permalink) { return ReactSharedInternals.H.useActionState(action, initialState, permalink); }; react_production.useCallback = function(callback, deps) { return ReactSharedInternals.H.useCallback(callback, deps); }; react_production.useContext = function(Context) { return ReactSharedInternals.H.useContext(Context); }; react_production.useDebugValue = function() { }; react_production.useDeferredValue = function(value, initialValue) { return ReactSharedInternals.H.useDeferredValue(value, initialValue); }; react_production.useEffect = function(create2, deps) { return ReactSharedInternals.H.useEffect(create2, deps); }; react_production.useEffectEvent = function(callback) { return ReactSharedInternals.H.useEffectEvent(callback); }; react_production.useId = function() { return ReactSharedInternals.H.useId(); }; react_production.useImperativeHandle = function(ref, create2, deps) { return ReactSharedInternals.H.useImperativeHandle(ref, create2, deps); }; react_production.useInsertionEffect = function(create2, deps) { return ReactSharedInternals.H.useInsertionEffect(create2, deps); }; react_production.useLayoutEffect = function(create2, deps) { return ReactSharedInternals.H.useLayoutEffect(create2, deps); }; react_production.useMemo = function(create2, deps) { return ReactSharedInternals.H.useMemo(create2, deps); }; react_production.useOptimistic = function(passthrough, reducer2) { return ReactSharedInternals.H.useOptimistic(passthrough, reducer2); }; react_production.useReducer = function(reducer2, initialArg, init2) { return ReactSharedInternals.H.useReducer(reducer2, initialArg, init2); }; react_production.useRef = function(initialValue) { return ReactSharedInternals.H.useRef(initialValue); }; react_production.useState = function(initialState) { return ReactSharedInternals.H.useState(initialState); }; react_production.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) { return ReactSharedInternals.H.useSyncExternalStore( subscribe, getSnapshot, getServerSnapshot ); }; react_production.useTransition = function() { return ReactSharedInternals.H.useTransition(); }; react_production.version = "19.2.3"; return react_production; } var hasRequiredReact; function requireReact() { if (hasRequiredReact) return react.exports; hasRequiredReact = 1; { react.exports = /* @__PURE__ */ requireReact_production(); } return react.exports; } var reactExports = /* @__PURE__ */ requireReact(); const We = /* @__PURE__ */ getDefaultExportFromCjs(reactExports); const React = /* @__PURE__ */ _mergeNamespaces({ __proto__: null, default: We }, [reactExports]); var client = { exports: {} }; var reactDomClient_production = {}; var scheduler = { exports: {} }; var scheduler_production = {}; var hasRequiredScheduler_production; function requireScheduler_production() { if (hasRequiredScheduler_production) return scheduler_production; hasRequiredScheduler_production = 1; (function(exports$1) { function push(heap, node) { var index2 = heap.length; heap.push(node); a: for (; 0 < index2; ) { var parentIndex = index2 - 1 >>> 1, parent = heap[parentIndex]; if (0 < compare(parent, node)) heap[parentIndex] = node, heap[index2] = parent, index2 = parentIndex; else break a; } } function peek(heap) { return 0 === heap.length ? null : heap[0]; } function pop(heap) { if (0 === heap.length) return null; var first = heap[0], last = heap.pop(); if (last !== first) { heap[0] = last; a: for (var index2 = 0, length = heap.length, halfLength = length >>> 1; index2 < halfLength; ) { var leftIndex = 2 * (index2 + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex]; if (0 > compare(left, last)) rightIndex < length && 0 > compare(right, left) ? (heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex) : (heap[index2] = left, heap[leftIndex] = last, index2 = leftIndex); else if (rightIndex < length && 0 > compare(right, last)) heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex; else break a; } } return first; } function compare(a2, b) { var diff = a2.sortIndex - b.sortIndex; return 0 !== diff ? diff : a2.id - b.id; } exports$1.unstable_now = void 0; if ("object" === typeof performance && "function" === typeof performance.now) { var localPerformance = performance; exports$1.unstable_now = function() { return localPerformance.now(); }; } else { var localDate = Date, initialTime = localDate.now(); exports$1.unstable_now = function() { return localDate.now() - initialTime; }; } var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null; function advanceTimers(currentTime) { for (var timer = peek(timerQueue); null !== timer; ) { if (null === timer.callback) pop(timerQueue); else if (timer.startTime <= currentTime) pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer); else break; timer = peek(timerQueue); } } function handleTimeout(currentTime) { isHostTimeoutScheduled = false; advanceTimers(currentTime); if (!isHostCallbackScheduled) if (null !== peek(taskQueue)) isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline()); else { var firstTimer = peek(timerQueue); null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); } } var isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1; function shouldYieldToHost() { return needsPaint ? true : exports$1.unstable_now() - startTime < frameInterval ? false : true; } function performWorkUntilDeadline() { needsPaint = false; if (isMessageLoopRunning) { var currentTime = exports$1.unstable_now(); startTime = currentTime; var hasMoreWork = true; try { a: { isHostCallbackScheduled = false; isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1); isPerformingWork = true; var previousPriorityLevel = currentPriorityLevel; try { b: { advanceTimers(currentTime); for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) { var callback = currentTask.callback; if ("function" === typeof callback) { currentTask.callback = null; currentPriorityLevel = currentTask.priorityLevel; var continuationCallback = callback( currentTask.expirationTime <= currentTime ); currentTime = exports$1.unstable_now(); if ("function" === typeof continuationCallback) { currentTask.callback = continuationCallback; advanceTimers(currentTime); hasMoreWork = true; break b; } currentTask === peek(taskQueue) && pop(taskQueue); advanceTimers(currentTime); } else pop(taskQueue); currentTask = peek(taskQueue); } if (null !== currentTask) hasMoreWork = true; else { var firstTimer = peek(timerQueue); null !== firstTimer && requestHostTimeout( handleTimeout, firstTimer.startTime - currentTime ); hasMoreWork = false; } } break a; } finally { currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false; } hasMoreWork = void 0; } } finally { hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false; } } } var schedulePerformWorkUntilDeadline; if ("function" === typeof localSetImmediate) schedulePerformWorkUntilDeadline = function() { localSetImmediate(performWorkUntilDeadline); }; else if ("undefined" !== typeof MessageChannel) { var channel = new MessageChannel(), port = channel.port2; channel.port1.onmessage = performWorkUntilDeadline; schedulePerformWorkUntilDeadline = function() { port.postMessage(null); }; } else schedulePerformWorkUntilDeadline = function() { localSetTimeout(performWorkUntilDeadline, 0); }; function requestHostTimeout(callback, ms) { taskTimeoutID = localSetTimeout(function() { callback(exports$1.unstable_now()); }, ms); } exports$1.unstable_IdlePriority = 5; exports$1.unstable_ImmediatePriority = 1; exports$1.unstable_LowPriority = 4; exports$1.unstable_NormalPriority = 3; exports$1.unstable_Profiling = null; exports$1.unstable_UserBlockingPriority = 2; exports$1.unstable_cancelCallback = function(task) { task.callback = null; }; exports$1.unstable_forceFrameRate = function(fps) { 0 > fps || 125 < fps ? console.error( "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5; }; exports$1.unstable_getCurrentPriorityLevel = function() { return currentPriorityLevel; }; exports$1.unstable_next = function(eventHandler) { switch (currentPriorityLevel) { case 1: case 2: case 3: var priorityLevel = 3; break; default: priorityLevel = currentPriorityLevel; } var previousPriorityLevel = currentPriorityLevel; currentPriorityLevel = priorityLevel; try { return eventHandler(); } finally { currentPriorityLevel = previousPriorityLevel; } }; exports$1.unstable_requestPaint = function() { needsPaint = true; }; exports$1.unstable_runWithPriority = function(priorityLevel, eventHandler) { switch (priorityLevel) { case 1: case 2: case 3: case 4: case 5: break; default: priorityLevel = 3; } var previousPriorityLevel = currentPriorityLevel; currentPriorityLevel = priorityLevel; try { return eventHandler(); } finally { currentPriorityLevel = previousPriorityLevel; } }; exports$1.unstable_scheduleCallback = function(priorityLevel, callback, options) { var currentTime = exports$1.unstable_now(); "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime; switch (priorityLevel) { case 1: var timeout = -1; break; case 2: timeout = 250; break; case 5: timeout = 1073741823; break; case 4: timeout = 1e4; break; default: timeout = 5e3; } timeout = options + timeout; priorityLevel = { id: taskIdCounter++, callback, priorityLevel, startTime: options, expirationTime: timeout, sortIndex: -1 }; options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline()))); return priorityLevel; }; exports$1.unstable_shouldYield = shouldYieldToHost; exports$1.unstable_wrapCallback = function(callback) { var parentPriorityLevel = currentPriorityLevel; return function() { var previousPriorityLevel = currentPriorityLevel; currentPriorityLevel = parentPriorityLevel; try { return callback.apply(this, arguments); } finally { currentPriorityLevel = previousPriorityLevel; } }; }; })(scheduler_production); return scheduler_production; } var hasRequiredScheduler; function requireScheduler() { if (hasRequiredScheduler) return scheduler.exports; hasRequiredScheduler = 1; { scheduler.exports = /* @__PURE__ */ requireScheduler_production(); } return scheduler.exports; } var reactDom = { exports: {} }; var reactDom_production = {}; var hasRequiredReactDom_production; function requireReactDom_production() { if (hasRequiredReactDom_production) return reactDom_production; hasRequiredReactDom_production = 1; var React2 = /* @__PURE__ */ requireReact(); function formatProdErrorMessage(code) { var url = "https://react.dev/errors/" + code; if (1 < arguments.length) { url += "?args[]=" + encodeURIComponent(arguments[1]); for (var i2 = 2; i2 < arguments.length; i2++) url += "&args[]=" + encodeURIComponent(arguments[i2]); } return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } function noop3() { } var Internals = { d: { f: noop3, r: function() { throw Error(formatProdErrorMessage(522)); }, D: noop3, C: noop3, L: noop3, m: noop3, X: noop3, S: noop3, M: noop3 }, p: 0, findDOMNode: null }, REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"); function createPortal$1(children, containerInfo, implementation) { var key2 = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { $$typeof: REACT_PORTAL_TYPE, key: null == key2 ? null : "" + key2, children, containerInfo, implementation }; } var ReactSharedInternals = React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; function getCrossOriginStringAs(as, input) { if ("font" === as) return ""; if ("string" === typeof input) return "use-credentials" === input ? input : ""; } reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals; reactDom_production.createPortal = function(children, container) { var key2 = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType) throw Error(formatProdErrorMessage(299)); return createPortal$1(children, container, null, key2); }; reactDom_production.flushSync = function(fn) { var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p; try { if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn(); } finally { ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f(); } }; reactDom_production.preconnect = function(href, options) { "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options)); }; reactDom_production.prefetchDNS = function(href) { "string" === typeof href && Internals.d.D(href); }; reactDom_production.preinit = function(href, options) { if ("string" === typeof href && options && "string" === typeof options.as) { var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0; "style" === as ? Internals.d.S( href, "string" === typeof options.precedence ? options.precedence : void 0, { crossOrigin, integrity, fetchPriority } ) : "script" === as && Internals.d.X(href, { crossOrigin, integrity, fetchPriority, nonce: "string" === typeof options.nonce ? options.nonce : void 0 }); } }; reactDom_production.preinitModule = function(href, options) { if ("string" === typeof href) if ("object" === typeof options && null !== options) { if (null == options.as || "script" === options.as) { var crossOrigin = getCrossOriginStringAs( options.as, options.crossOrigin ); Internals.d.M(href, { crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, nonce: "string" === typeof options.nonce ? options.nonce : void 0 }); } } else null == options && Internals.d.M(href); }; reactDom_production.preload = function(href, options) { if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) { var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); Internals.d.L(href, as, { crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, nonce: "string" === typeof options.nonce ? options.nonce : void 0, type: "string" === typeof options.type ? options.type : void 0, fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0, referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0, imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0, imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0, media: "string" === typeof options.media ? options.media : void 0 }); } }; reactDom_production.preloadModule = function(href, options) { if ("string" === typeof href) if (options) { var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin); Internals.d.m(href, { as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0, crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0 }); } else Internals.d.m(href); }; reactDom_production.requestFormReset = function(form) { Internals.d.r(form); }; reactDom_production.unstable_batchedUpdates = function(fn, a2) { return fn(a2); }; reactDom_production.useFormState = function(action, initialState, permalink) { return ReactSharedInternals.H.useFormState(action, initialState, permalink); }; reactDom_production.useFormStatus = function() { return ReactSharedInternals.H.useHostTransitionStatus(); }; reactDom_production.version = "19.2.3"; return reactDom_production; } var hasRequiredReactDom; function requireReactDom() { if (hasRequiredReactDom) return reactDom.exports; hasRequiredReactDom = 1; function checkDCE() { if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") { return; } try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); } catch (err) { console.error(err); } } { checkDCE(); reactDom.exports = /* @__PURE__ */ requireReactDom_production(); } return reactDom.exports; } var hasRequiredReactDomClient_production; function requireReactDomClient_production() { if (hasRequiredReactDomClient_production) return reactDomClient_production; hasRequiredReactDomClient_production = 1; var Scheduler = /* @__PURE__ */ requireScheduler(), React2 = /* @__PURE__ */ requireReact(), ReactDOM2 = /* @__PURE__ */ requireReactDom(); function formatProdErrorMessage(code) { var url = "https://react.dev/errors/" + code; if (1 < arguments.length) { url += "?args[]=" + encodeURIComponent(arguments[1]); for (var i2 = 2; i2 < arguments.length; i2++) url += "&args[]=" + encodeURIComponent(arguments[i2]); } return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } function isValidContainer(node) { return !(!node || 1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType); } function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; if (fiber.alternate) for (; node.return; ) node = node.return; else { fiber = node; do node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; while (fiber); } return 3 === node.tag ? nearestMounted : null; } function getSuspenseInstanceFromFiber(fiber) { if (13 === fiber.tag) { var suspenseState = fiber.memoizedState; null === suspenseState && (fiber = fiber.alternate, null !== fiber && (suspenseState = fiber.memoizedState)); if (null !== suspenseState) return suspenseState.dehydrated; } return null; } function getActivityInstanceFromFiber(fiber) { if (31 === fiber.tag) { var activityState = fiber.memoizedState; null === activityState && (fiber = fiber.alternate, null !== fiber && (activityState = fiber.memoizedState)); if (null !== activityState) return activityState.dehydrated; } return null; } function assertIsMounted(fiber) { if (getNearestMountedFiber(fiber) !== fiber) throw Error(formatProdErrorMessage(188)); } function findCurrentFiberUsingSlowPath(fiber) { var alternate = fiber.alternate; if (!alternate) { alternate = getNearestMountedFiber(fiber); if (null === alternate) throw Error(formatProdErrorMessage(188)); return alternate !== fiber ? null : fiber; } for (var a2 = fiber, b = alternate; ; ) { var parentA = a2.return; if (null === parentA) break; var parentB = parentA.alternate; if (null === parentB) { b = parentA.return; if (null !== b) { a2 = b; continue; } break; } if (parentA.child === parentB.child) { for (parentB = parentA.child; parentB; ) { if (parentB === a2) return assertIsMounted(parentA), fiber; if (parentB === b) return assertIsMounted(parentA), alternate; parentB = parentB.sibling; } throw Error(formatProdErrorMessage(188)); } if (a2.return !== b.return) a2 = parentA, b = parentB; else { for (var didFindChild = false, child$0 = parentA.child; child$0; ) { if (child$0 === a2) { didFindChild = true; a2 = parentA; b = parentB; break; } if (child$0 === b) { didFindChild = true; b = parentA; a2 = parentB; break; } child$0 = child$0.sibling; } if (!didFindChild) { for (child$0 = parentB.child; child$0; ) { if (child$0 === a2) { didFindChild = true; a2 = parentB; b = parentA; break; } if (child$0 === b) { didFindChild = true; b = parentB; a2 = parentA; break; } child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } } if (a2.alternate !== b) throw Error(formatProdErrorMessage(190)); } if (3 !== a2.tag) throw Error(formatProdErrorMessage(188)); return a2.stateNode.current === a2 ? fiber : alternate; } function findCurrentHostFiberImpl(node) { var tag = node.tag; if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; for (node = node.child; null !== node; ) { tag = findCurrentHostFiberImpl(node); if (null !== tag) return tag; node = node.sibling; } return null; } var assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE2 = /* @__PURE__ */ Symbol.for("react.lazy"); var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"); var REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel"); var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; function getIteratorFn(maybeIterable) { if (null === maybeIterable || "object" !== typeof maybeIterable) return null; maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; return "function" === typeof maybeIterable ? maybeIterable : null; } var REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"); function getComponentNameFromType(type) { if (null == type) return null; if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; if ("string" === typeof type) return type; switch (type) { case REACT_FRAGMENT_TYPE: return "Fragment"; case REACT_PROFILER_TYPE: return "Profiler"; case REACT_STRICT_MODE_TYPE: return "StrictMode"; case REACT_SUSPENSE_TYPE: return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; case REACT_ACTIVITY_TYPE: return "Activity"; } if ("object" === typeof type) switch (type.$$typeof) { case REACT_PORTAL_TYPE: return "Portal"; case REACT_CONTEXT_TYPE: return type.displayName || "Context"; case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer"; case REACT_FORWARD_REF_TYPE: var innerType = type.render; type = type.displayName; type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); return type; case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; case REACT_LAZY_TYPE2: innerType = type._payload; type = type._init; try { return getComponentNameFromType(type(innerType)); } catch (x) { } } return null; } var isArrayImpl = Array.isArray, ReactSharedInternals = React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM2.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, sharedNotPendingObject = { pending: false, data: null, method: null, action: null }, valueStack = [], index2 = -1; function createCursor(defaultValue) { return { current: defaultValue }; } function pop(cursor) { 0 > index2 || (cursor.current = valueStack[index2], valueStack[index2] = null, index2--); } function push(cursor, value) { index2++; valueStack[index2] = cursor.current; cursor.current = value; } var contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null); function pushHostContainer(fiber, nextRootInstance) { push(rootInstanceStackCursor, nextRootInstance); push(contextFiberStackCursor, fiber); push(contextStackCursor, null); switch (nextRootInstance.nodeType) { case 9: case 11: fiber = (fiber = nextRootInstance.documentElement) ? (fiber = fiber.namespaceURI) ? getOwnHostContext(fiber) : 0 : 0; break; default: if (fiber = nextRootInstance.tagName, nextRootInstance = nextRootInstance.namespaceURI) nextRootInstance = getOwnHostContext(nextRootInstance), fiber = getChildHostContextProd(nextRootInstance, fiber); else switch (fiber) { case "svg": fiber = 1; break; case "math": fiber = 2; break; default: fiber = 0; } } pop(contextStackCursor); push(contextStackCursor, fiber); } function popHostContainer() { pop(contextStackCursor); pop(contextFiberStackCursor); pop(rootInstanceStackCursor); } function pushHostContext(fiber) { null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber); var context = contextStackCursor.current; var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type); context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor, JSCompiler_inline_result)); } function popHostContext(fiber) { contextFiberStackCursor.current === fiber && (pop(contextStackCursor), pop(contextFiberStackCursor)); hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor), HostTransitionContext._currentValue = sharedNotPendingObject); } var prefix, suffix; function describeBuiltInComponentFrame(name) { if (void 0 === prefix) try { throw Error(); } catch (x) { var match = x.stack.trim().match(/\n( *(at )?)/); prefix = match && match[1] || ""; suffix = -1