ct__namespace.createElement(Insertion, { cache, serialized, isStringTag: typeof WrappedComponent === "string" }), /* @__PURE__ */ React__namespace.createElement(WrappedComponent, newProps)); }); var Emotion$1 = Emotion; var jsx = function jsx2(type, props) { var args = arguments; if (props == null || !hasOwn.call(props, "css")) { return React__namespace.createElement.apply(void 0, args); } var argsLength = args.length; var createElementArgArray = new Array(argsLength); createElementArgArray[0] = Emotion$1; createElementArgArray[1] = createEmotionProps(type, props); for (var i2 = 2; i2 < argsLength; i2++) { createElementArgArray[i2] = args[i2]; } return React__namespace.createElement.apply(null, createElementArgArray); }; (function(_jsx) { var JSX; /* @__PURE__ */ (function(_JSX) { })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {}))); })(jsx || (jsx = {})); function css() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return serializeStyles(args); } function keyframes() { var insertable = css.apply(void 0, arguments); var name = "animation-" + insertable.name; return { name, styles: "@keyframes " + name + "{" + insertable.styles + "}", anim: 1, toString: function toString() { return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; } }; } function _taggedTemplateLiteral(e2, t2) { return t2 || (t2 = e2.slice(0)), Object.freeze(Object.defineProperties(e2, { raw: { value: Object.freeze(t2) } })); } const min = Math.min; const max = Math.max; const round = Math.round; const floor = Math.floor; const createCoords = (v2) => ({ x: v2, y: v2 }); function rectToClientRect(rect) { const { x: x2, y: y2, width, height } = rect; return { width, height, top: y2, left: x2, right: x2 + width, bottom: y2 + height, x: x2, y: y2 }; } function hasWindow() { return typeof window !== "undefined"; } function getNodeName(node2) { if (isNode(node2)) { return (node2.nodeName || "").toLowerCase(); } return "#document"; } function getWindow(node2) { var _node$ownerDocument; return (node2 == null || (_node$ownerDocument = node2.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window; } function getDocumentElement(node2) { var _ref3; return (_ref3 = (isNode(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref3.documentElement; } function isNode(value) { if (!hasWindow()) { return false; } return value instanceof Node || value instanceof getWindow(value).Node; } function isElement(value) { if (!hasWindow()) { return false; } return value instanceof Element || value instanceof getWindow(value).Element; } function isHTMLElement(value) { if (!hasWindow()) { return false; } return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement; } function isShadowRoot(value) { if (!hasWindow() || typeof ShadowRoot === "undefined") { return false; } return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot; } const invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]); function isOverflowElement(element) { const { overflow, overflowX, overflowY, display } = getComputedStyle$1(element); return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display); } function isWebKit() { if (typeof CSS === "undefined" || !CSS.supports) return false; return CSS.supports("-webkit-backdrop-filter", "none"); } const lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]); function isLastTraversableNode(node2) { return lastTraversableNodeNames.has(getNodeName(node2)); } function getComputedStyle$1(element) { return getWindow(element).getComputedStyle(element); } function getParentNode(node2) { if (getNodeName(node2) === "html") { return node2; } const result = ( // Step into the shadow DOM of the parent of a slotted node. node2.assignedSlot || // DOM Element detected. node2.parentNode || // ShadowRoot detected. isShadowRoot(node2) && node2.host || // Fallback. getDocumentElement(node2) ); return isShadowRoot(result) ? result.host : result; } function getNearestOverflowAncestor(node2) { const parentNode = getParentNode(node2); if (isLastTraversableNode(parentNode)) { return node2.ownerDocument ? node2.ownerDocument.body : node2.body; } if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) { return parentNode; } return getNearestOverflowAncestor(parentNode); } function getOverflowAncestors(node2, list, traverseIframes) { var _node$ownerDocument2; if (list === void 0) { list = []; } if (traverseIframes === void 0) { traverseIframes = true; } const scrollableAncestor = getNearestOverflowAncestor(node2); const isBody = scrollableAncestor === ((_node$ownerDocument2 = node2.ownerDocument) == null ? void 0 : _node$ownerDocument2.body); const win2 = getWindow(scrollableAncestor); if (isBody) { const frameElement = getFrameElement(win2); return list.concat(win2, win2.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []); } return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes)); } function getFrameElement(win2) { return win2.parent && Object.getPrototypeOf(win2.parent) ? win2.frameElement : null; } function getCssDimensions(element) { const css3 = getComputedStyle$1(element); let width = parseFloat(css3.width) || 0; let height = parseFloat(css3.height) || 0; const hasOffset = isHTMLElement(element); const offsetWidth = hasOffset ? element.offsetWidth : width; const offsetHeight = hasOffset ? element.offsetHeight : height; const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight; if (shouldFallback) { width = offsetWidth; height = offsetHeight; } return { width, height, $: shouldFallback }; } function unwrapElement(element) { return !isElement(element) ? element.contextElement : element; } function getScale(element) { const domElement = unwrapElement(element); if (!isHTMLElement(domElement)) { return createCoords(1); } const rect = domElement.getBoundingClientRect(); const { width, height, $ } = getCssDimensions(domElement); let x2 = ($ ? round(rect.width) : rect.width) / width; let y2 = ($ ? round(rect.height) : rect.height) / height; if (!x2 || !Number.isFinite(x2)) { x2 = 1; } if (!y2 || !Number.isFinite(y2)) { y2 = 1; } return { x: x2, y: y2 }; } const noOffsets = /* @__PURE__ */ createCoords(0); function getVisualOffsets(element) { const win2 = getWindow(element); if (!isWebKit() || !win2.visualViewport) { return noOffsets; } return { x: win2.visualViewport.offsetLeft, y: win2.visualViewport.offsetTop }; } function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) { { return false; } } function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) { if (includeScale === void 0) { includeScale = false; } const clientRect = element.getBoundingClientRect(); const domElement = unwrapElement(element); let scale = createCoords(1); if (includeScale) { { scale = getScale(element); } } const visualOffsets = shouldAddVisualOffsets() ? getVisualOffsets(domElement) : createCoords(0); let x2 = (clientRect.left + visualOffsets.x) / scale.x; let y2 = (clientRect.top + visualOffsets.y) / scale.y; let width = clientRect.width / scale.x; let height = clientRect.height / scale.y; if (domElement) { const win2 = getWindow(domElement); const offsetWin = offsetParent; let currentWin = win2; let currentIFrame = getFrameElement(currentWin); while (currentIFrame && offsetParent && offsetWin !== currentWin) { const iframeScale = getScale(currentIFrame); const iframeRect = currentIFrame.getBoundingClientRect(); const css3 = getComputedStyle$1(currentIFrame); const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css3.paddingLeft)) * iframeScale.x; const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css3.paddingTop)) * iframeScale.y; x2 *= iframeScale.x; y2 *= iframeScale.y; width *= iframeScale.x; height *= iframeScale.y; x2 += left; y2 += top; currentWin = getWindow(currentIFrame); currentIFrame = getFrameElement(currentWin); } } return rectToClientRect({ width, height, x: x2, y: y2 }); } function rectsAreEqual(a, b2) { return a.x === b2.x && a.y === b2.y && a.width === b2.width && a.height === b2.height; } function observeMove(element, onMove) { let io = null; let timeoutId; const root = getDocumentElement(element); function cleanup() { var _io; clearTimeout(timeoutId); (_io = io) == null || _io.disconnect(); io = null; } function refresh(skip, threshold) { if (skip === void 0) { skip = false; } if (threshold === void 0) { threshold = 1; } cleanup(); const elementRectForRootMargin = element.getBoundingClientRect(); const { left, top, width, height } = elementRectForRootMargin; if (!skip) { onMove(); } if (!width || !height) { return; } const insetTop = floor(top); const insetRight = floor(root.clientWidth - (left + width)); const insetBottom = floor(root.clientHeight - (top + height)); const insetLeft = floor(left); const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px"; const options2 = { rootMargin, threshold: max(0, min(1, threshold)) || 1 }; let isFirstUpdate = true; function handleObserve(entries) { const ratio = entries[0].intersectionRatio; if (ratio !== threshold) { if (!isFirstUpdate) { return refresh(); } if (!ratio) { timeoutId = setTimeout(() => { refresh(false, 1e-7); }, 1e3); } else { refresh(false, ratio); } } if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) { refresh(); } isFirstUpdate = false; } try { io = new IntersectionObserver(handleObserve, __spreadProps(__spreadValues({}, options2), { // Handle