var __webpack_modules__={"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/devtools-indicator/devtools-indicator.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`[data-nextjs-toast] { &[data-hidden='true'] { display: none; } } .dev-tools-indicator-menu { display: flex; flex-direction: column; align-items: flex-start; background: var(--color-background-100); border: 1px solid var(--color-gray-alpha-400); background-clip: padding-box; box-shadow: var(--shadow-menu); border-radius: var(--rounded-xl); position: absolute; font-family: var(--font-stack-sans); z-index: 3; overflow: hidden; opacity: 0; outline: 0; min-width: 248px; transition: opacity var(--animate-out-duration-ms) var(--animate-out-timing-function); &[data-rendered='true'] { opacity: 1; scale: 1; } } .dev-tools-indicator-inner { padding: 6px; width: 100%; } .dev-tools-indicator-item { display: flex; align-items: center; padding: 8px 6px; height: var(--size-36); border-radius: 6px; text-decoration: none !important; user-select: none; white-space: nowrap; svg { width: var(--size-16); height: var(--size-16); } &:focus-visible { outline: 0; } } .dev-tools-indicator-footer { background: var(--color-background-200); padding: 6px; border-top: 1px solid var(--color-gray-400); width: 100%; } .dev-tools-indicator-item[data-selected='true'] { cursor: pointer; background-color: var(--color-gray-200); } .dev-tools-indicator-label { font-size: var(--size-14); line-height: var(--size-20); color: var(--color-gray-1000); } .dev-tools-indicator-value { font-size: var(--size-14); line-height: var(--size-20); color: var(--color-gray-900); margin-left: auto; } .dev-tools-indicator-issue-count { --color-primary: var(--color-gray-800); --color-secondary: var(--color-gray-100); display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; min-width: var(--size-40); height: var(--size-24); background: var(--color-background-100); border: 1px solid var(--color-gray-alpha-400); background-clip: padding-box; box-shadow: var(--shadow-small); padding: 2px; color: var(--color-gray-1000); border-radius: 128px; font-weight: 500; font-size: var(--size-13); font-variant-numeric: tabular-nums; &[data-has-issues='true'] { --color-primary: var(--color-red-800); --color-secondary: var(--color-red-100); } .dev-tools-indicator-issue-count-indicator { width: var(--size-8); height: var(--size-8); background: var(--color-primary); box-shadow: 0 0 0 2px var(--color-secondary); border-radius: 50%; } } .dev-tools-indicator-shortcut { display: flex; gap: 4px; kbd { width: var(--size-20); height: var(--size-20); display: flex; justify-content: center; align-items: center; border-radius: var(--rounded-md); border: 1px solid var(--color-gray-400); font-family: var(--font-stack-sans); background: var(--color-background-100); color: var(--color-gray-1000); text-align: center; font-size: var(--size-12); line-height: var(--size-16); } } .dev-tools-grabbing { cursor: grabbing; > * { pointer-events: none; } } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/devtools-panel/resize/resize-handle.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`.resize-container { position: absolute; /* todo: better z index */ z-index: 10; /* todo: is this needed */ background: transparent; } .resize-line { position: absolute; /* todo smarter z index */ z-index: -1; pointer-events: none; /* a normal exit animation curve- at this point the exit animation is */ /* immediately responsive so we don't need a bespoke curve */ transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* todo: better var? */ border: 1px solid var(--color-gray-400); } /* start really fast because we start super hidden initially behind the panel, otherwise feels like an unintended animation delay */ .resize-container:hover ~ .resize-line { transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 0.9); } .resize-container.right, .resize-container.left { top: 0; height: 100%; width: 22px; cursor: ew-resize; } /* todo: don't hard code all these values/use vars */ .resize-container.bottom, .resize-container.top { left: 0; width: 100%; height: 22px; cursor: ns-resize; } .resize-container.top { top: -7px; } .resize-container.bottom { bottom: -7px; } .resize-container.left { left: -7px; } .resize-container.right { right: -7px; } .resize-container.top-left, .resize-container.top-right, .resize-container.bottom-left, .resize-container.bottom-right { width: 26px; height: 26px; z-index: 15; } .resize-container.top-left { top: -5px; left: -5px; cursor: nwse-resize; } .resize-container.top-right { top: -5px; right: -5px; cursor: nesw-resize; } .resize-container.bottom-left { bottom: -5px; left: -5px; cursor: nesw-resize; } .resize-container.bottom-right { bottom: -5px; right: -5px; cursor: nwse-resize; } .resize-line.top, .resize-line.bottom { height: 18px; width: 100%; background-color: var(--color-background-200); } .resize-line.left, .resize-line.right { width: 18px; height: 100%; background-color: var(--color-background-200); } .resize-line.top { top: -7px; left: calc(-1 * var(--border-left, 2px)); width: calc(100% + var(--border-horizontal, 4px)); border-radius: var(--rounded-lg) var(--rounded-lg) 0 0; transform: translateY(18px); } .resize-line.bottom { bottom: -7px; left: calc(-1 * var(--border-left, 2px)); width: calc(100% + var(--border-horizontal, 4px)); border-radius: 0 0 var(--rounded-lg) var(--rounded-lg); transform: translateY(-18px); } .resize-line.left { top: calc(-1 * var(--border-top, 2px)); left: -7px; height: calc(100% + var(--border-vertical, 4px)); border-radius: var(--rounded-lg) 0 0 var(--rounded-lg); transform: translateX(18px); } .resize-line.right { top: calc(-1 * var(--border-top, 2px)); right: -7px; height: calc(100% + var(--border-vertical, 4px)); border-radius: 0 var(--rounded-lg) var(--rounded-lg) 0; transform: translateX(-18px); } .resize-container.right:hover ~ .resize-line.right, .resize-container.left:hover ~ .resize-line.left, .resize-line.right.dragging, .resize-line.left.dragging { transform: translateX(0); } .resize-container.bottom:hover ~ .resize-line.bottom, .resize-container.top:hover ~ .resize-line.top, .resize-line.bottom.dragging, .resize-line.top.dragging { transform: translateY(0); } /* make sure that we don't show multiple handles at once * we should only ever show the currently resizing handle * regardless of hover state */ .resize-container.no-hover.right:hover ~ .resize-line.right { transform: translateX(-20px); } .resize-container.no-hover.left:hover ~ .resize-line.left { transform: translateX(20px); } .resize-container.no-hover.bottom:hover ~ .resize-line.bottom { transform: translateY(-20px); } .resize-container.no-hover.top:hover ~ .resize-line.top { transform: translateY(20px); } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/overview/segment-boundary-trigger.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`.segment-boundary-trigger { display: flex; align-items: center; gap: 4px; padding: 4px 6px; line-height: 16px; font-weight: 500; color: var(--color-gray-1000); border-radius: 999px; border: none; font-size: var(--size-12); cursor: pointer; transition: background-color 0.15s ease; } .segment-boundary-trigger-text { font-size: var(--size-12); font-weight: 500; user-select: none; display: inline-flex; align-items: center; justify-content: center; } .segment-boundary-trigger-text .plus-icon { transition: transform 0.25s ease; } .segment-boundary-trigger-text:hover .plus-icon { color: var(--color-gray-800); } .segment-boundary-trigger svg { width: 14px; height: 14px; flex-shrink: 0; vertical-align: middle; } .segment-boundary-trigger:hover svg { color: var(--color-gray-700); } .segment-boundary-trigger[disabled] svg, .segment-boundary-trigger[disabled]:hover svg { color: var(--color-gray-400); cursor: not-allowed; } .segment-boundary-dropdown { padding: 8px; background: var(--color-background-100); border: 1px solid var(--color-gray-400); border-radius: 16px; min-width: 120px; user-select: none; cursor: default; box-shadow: 0px 4px 8px -4px color-mix(in srgb, var(--color-gray-900) 4%, transparent); } .segment-boundary-dropdown-positioner { z-index: var(--top-z-index); } .segment-boundary-dropdown-item { display: flex; align-items: center; padding: 8px; line-height: 20px; font-size: 14px; border-radius: 6px; color: var(--color-gray-1000); cursor: pointer; min-width: 220px; border: none; background: none; width: 100%; } .segment-boundary-dropdown-item[data-disabled] { color: var(--color-gray-400); cursor: not-allowed; } .segment-boundary-dropdown-item svg { margin-right: 12px; color: currentColor; } .segment-boundary-dropdown-item:hover { background: var(--color-gray-200); } .segment-boundary-dropdown-item:first-child { border-top-left-radius: 4px; border-top-right-radius: 4px; } .segment-boundary-dropdown-item:last-child { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; } .segment-boundary-group-label { padding: 8px; font-size: 13px; line-height: 16px; font-weight: 400; color: var(--color-gray-900); } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/overview/segment-explorer.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`.segment-explorer-content { font-size: var(--size-14); padding: 0 8px; width: 100%; height: 100%; } .segment-explorer-page-route-bar { display: flex; align-items: center; padding: 14px 16px; background-color: var(--color-background-200); gap: 12px; } .segment-explorer-page-route-bar-path { font-size: var(--size-14); font-weight: 500; color: var(--color-gray-1000); font-family: var(--font-mono); white-space: nowrap; line-height: 20px; } .segment-explorer-item { margin: 4px 0; border-radius: 6px; } .segment-explorer-item:nth-child(even) { background-color: var(--color-background-200); } .segment-explorer-item-row { display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 10px; padding-right: 4px; } .segment-explorer-item-row-main { display: flex; align-items: center; white-space: pre; color: var(--color-gray-1000); } .segment-explorer-children--intended { padding-left: 16px; } .segment-explorer-filename { display: inline-flex; width: 100%; align-items: center; } .segment-explorer-filename select { margin-left: auto; } .segment-explorer-filename--path { margin-right: 8px; } .segment-explorer-filename--path small { display: inline-block; width: 0; opacity: 0; } .segment-explorer-filename--name { color: var(--color-gray-800); } .segment-explorer-files { display: inline-flex; gap: 8px; margin-left: auto; } .segment-explorer-files + .segment-boundary-trigger { margin-left: 8px; } .segment-explorer-file-label { display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; height: 20px; border-radius: 16px; line-height: 16px; font-size: var(--size-12); font-weight: 500; background-color: var(--color-gray-300); color: var(--color-gray-1000); } .segment-explorer-file-label-text { display: inline-flex; align-items: center; } .segment-explorer-file-label--overridden { background-color: var(--color-amber-300); color: var(--color-amber-900); } .segment-explorer-file-label .code-icon { opacity: 0; margin-left: 0; width: 0; transition: all 0.15s ease-in-out; } .segment-explorer-file-label:hover .code-icon { opacity: 1; width: 12px; margin-left: 4px; } .segment-explorer-file-label:hover { filter: brightness(0.95); } .segment-explorer-file-label--builtin { background-color: transparent; color: var(--color-gray-900); border: 1px dashed var(--color-gray-500); height: 24px; cursor: default; } .segment-explorer-file-label--builtin svg { margin-left: 4px; margin-right: -4px; } /* Footer styles */ .segment-explorer-footer { padding: 8px; border-top: 1px solid var(--color-gray-400); user-select: none; } .segment-explorer-footer-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 6px; background: var(--color-background-100); border: 1px solid var(--color-gray-400); border-radius: 6px; color: var(--color-gray-1000); font-size: var(--size-14); font-weight: 500; cursor: pointer; transition: background-color 0.15s ease; } .segment-explorer-footer-button:hover:not(:disabled) { background: var(--color-gray-200); } .segment-explorer-footer-button--disabled { cursor: not-allowed; } .segment-explorer-footer-text { text-align: center; } .segment-explorer-footer-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--color-amber-300); color: var(--color-amber-900); border-radius: 10px; font-size: var(--size-12); font-weight: 600; line-height: 1; } .segment-explorer-file-label-tooltip--sm { white-space: nowrap; } .segment-explorer-file-label-tooltip--lg { min-width: 200px; } .segment-explorer-suggestions { display: inline-flex; gap: 8px; } .segment-explorer-suggestions-tooltip { width: 200px; } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/toast/style.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`.nextjs-toast { position: fixed; z-index: var(--top-z-index); max-width: 420px; box-shadow: 0px 16px 32px rgba(0, 0, 0, 0.25); } .nextjs-toast-errors-parent { padding: 16px; border-radius: var(--rounded-4xl); font-weight: 500; color: var(--color-ansi-bright-white); background-color: var(--color-ansi-red); } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/tooltip/tooltip.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`.tooltip-wrapper { position: relative; display: inline-block; line-height: 1; } .tooltip { position: relative; padding: 6px 12px; border-radius: 8px; font-size: 14px; line-height: 1.4; pointer-events: none; color: var(--color-gray-100); background-color: var(--color-gray-1000); } .tooltip-arrow { position: absolute; width: 0; height: 0; border-style: solid; border-width: var(--arrow-size, 6px); border-color: transparent; } .tooltip-arrow--top { border-width: var(--arrow-size, 6px) var(--arrow-size, 6px) 0 var(--arrow-size, 6px); border-top-color: var(--color-gray-1000); bottom: 0; transform: translateY(100%); } .tooltip-arrow--bottom { border-width: 0 var(--arrow-size, 6px) var(--arrow-size, 6px) var(--arrow-size, 6px); border-bottom-color: var(--color-gray-1000); top: 0; transform: translateY(-100%); } .tooltip-arrow--left { border-width: var(--arrow-size, 6px) 0 var(--arrow-size, 6px) var(--arrow-size, 6px); border-left-color: var(--color-gray-1000); right: 0; transform: translateX(100%); } .tooltip-arrow--right { border-width: var(--arrow-size, 6px) var(--arrow-size, 6px) var(--arrow-size, 6px) 0; border-right-color: var(--color-gray-1000); left: 0; transform: translateX(-100%); } .tooltip-positioner { z-index: var(--top-z-index); } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/global.css"(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a),l=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/normalize.css"),s=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/styles/default-theme.css"),c=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/styles/dark-theme.css"),u=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/styles/colors.css"),d=i()(o());d.i(l.A),d.i(s.A),d.i(c.A),d.i(u.A),d.push([e.id,`/* devtool global css variables */ :host { /* variables */ --top-z-index: 2147483647; } /* global styles */ * { -webkit-font-smoothing: antialiased; } /* global reset for draggable content scrollbar styles */ [data-nextjs-scrollable-content], [data-nextjs-scrollable-content] * { &::-webkit-scrollbar { width: 6px; height: 6px; border-radius: 0 0 1rem 1rem; margin-bottom: 1rem; } &::-webkit-scrollbar-button { display: none; } &::-webkit-scrollbar-track { border-radius: 0 0 1rem 1rem; background-color: var(--color-background-100); } &::-webkit-scrollbar-thumb { border-radius: 1rem; background-color: var(--color-gray-500); } } /* Place overflow: hidden on this so we can break out from [data-nextjs-dialog] */ [data-nextjs-scrollable-content] { overflow: hidden; border-radius: inherit; } `,""]);let f=d},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/menu/panel-router.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`/* Panel content padding styles */ .panel-content { padding: 16px; padding-top: 8px; overflow: hidden; } /* User preferences wrapper styles */ .user-preferences-wrapper { padding: 20px; padding-top: 8px; overflow: hidden; } /* Panel route base styles */ .panel-route { opacity: var(--panel-opacity); transition: var(--panel-transition); } .turbopack-upgrade-link { text-decoration: underline; font-weight: 500; } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/normalize.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`:host { all: initial; /* the direction property is not reset by 'all' */ direction: ltr; } /*! * Bootstrap Reboot v4.4.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) */ *, *::before, *::after { box-sizing: border-box; } :host { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; } :host { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-font); text-align: left; } :host:not(button) { background-color: #fff; } [tabindex='-1']:focus:not(:focus-visible) { outline: 0 !important; } hr { box-sizing: content-box; height: 0; overflow: visible; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 8px; } p { margin-top: 0; margin-bottom: 16px; } abbr[title], abbr[data-original-title] { text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; cursor: help; border-bottom: 0; -webkit-text-decoration-skip-ink: none; text-decoration-skip-ink: none; } address { margin-bottom: 16px; font-style: normal; line-height: inherit; } ol, ul, dl { margin-top: 0; margin-bottom: 16px; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: 700; } dd { margin-bottom: 8px; margin-left: 0; } blockquote { margin: 0 0 16px; } b, strong { font-weight: bolder; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } a { color: #007bff; text-decoration: none; background-color: transparent; } a:hover { color: #0056b3; text-decoration: underline; } a:not([href]) { color: inherit; text-decoration: none; } a:not([href]):hover { color: inherit; text-decoration: none; } pre, code, kbd, samp { font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 1em; } pre { margin-top: 0; margin-bottom: 16px; overflow: auto; } figure { margin: 0 0 16px; } img { vertical-align: middle; border-style: none; } svg { overflow: hidden; vertical-align: middle; } table { border-collapse: collapse; } caption { padding-top: 12px; padding-bottom: 12px; color: #6c757d; text-align: left; caption-side: bottom; } th { text-align: inherit; } label { display: inline-block; margin-bottom: 8px; } button { border-radius: 0; border: 0; padding: 0; margin: 0; background: none; appearance: none; -webkit-appearance: none; } button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; } button:focus:not(:focus-visible) { outline: none; } input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; } button, input { overflow: visible; } button, select { text-transform: none; } select { word-wrap: normal; } button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; } button:not(:disabled), [type='button']:not(:disabled), [type='reset']:not(:disabled), [type='submit']:not(:disabled) { cursor: pointer; } button::-moz-focus-inner, [type='button']::-moz-focus-inner, [type='reset']::-moz-focus-inner, [type='submit']::-moz-focus-inner { padding: 0; border-style: none; } input[type='radio'], input[type='checkbox'] { box-sizing: border-box; padding: 0; } input[type='date'], input[type='time'], input[type='datetime-local'], input[type='month'] { -webkit-appearance: listbox; } textarea { overflow: auto; resize: vertical; } fieldset { min-width: 0; padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: 8px; font-size: 24px; line-height: inherit; color: inherit; white-space: normal; } progress { vertical-align: baseline; } [type='number']::-webkit-inner-spin-button, [type='number']::-webkit-outer-spin-button { height: auto; } [type='search'] { outline-offset: -2px; -webkit-appearance: none; } [type='search']::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; } output { display: inline-block; } summary { display: list-item; cursor: pointer; } template { display: none; } [hidden] { display: none !important; } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/panel/dynamic-panel.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`/* Panel container base styles with dynamic positioning and sizing */ .dynamic-panel-container { position: fixed; z-index: 2147483646; outline: none; top: var(--panel-top, auto); bottom: var(--panel-bottom, auto); left: var(--panel-left, auto); right: var(--panel-right, auto); width: var(--panel-width); height: var(--panel-height); min-width: var(--panel-min-width); min-height: var(--panel-min-height); max-width: var(--panel-max-width); max-height: var(--panel-max-height); } /* Panel content container styles */ .panel-content-container { position: relative; width: 100%; height: 100%; border: 1px solid var(--color-gray-alpha-400); border-radius: var(--rounded-xl); background: var(--color-background-100); display: flex; flex-direction: column; } /* Draggable content area styles */ .draggable-content { flex: 1; overflow: auto; } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/styles/colors.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`:host { /* * CAUTION: THIS IS A WORKAROUND! * For now, we use @babel/code-frame to parse the code frame which does not support option to change the color. * x-ref: https://github.com/babel/babel/blob/efa52324ff835b794c48080f14877b6caf32cd15/packages/babel-code-frame/src/defs.ts#L40-L54 * So, we do a workaround mapping to change the color matching the theme. * * For example, in @babel/code-frame, the "keyword" is mapped to ANSI "cyan". * We want the "keyword" to use the "syntax-keyword" color in the theme. * So, we map the "cyan" to the "syntax-keyword" in the theme. */ /* cyan: keyword */ --color-ansi-cyan: var(--color-syntax-keyword); /* yellow: capitalized, jsxIdentifier, punctuation */ --color-ansi-yellow: var(--color-syntax-function); /* magenta: number, regex */ --color-ansi-magenta: var(--color-syntax-keyword); /* green: string */ --color-ansi-green: var(--color-syntax-string); /* gray (bright black): comment, gutter */ --color-ansi-bright-black: var(--color-syntax-comment); /* Ansi - Temporary */ --color-ansi-selection: var(--color-gray-alpha-300); --color-ansi-bg: var(--color-background-200); --color-ansi-fg: var(--color-gray-1000); --color-ansi-white: var(--color-gray-700); --color-ansi-black: var(--color-gray-200); --color-ansi-blue: var(--color-blue-700); --color-ansi-red: var(--color-red-700); --color-ansi-bright-white: var(--color-gray-1000); --color-ansi-bright-blue: var(--color-blue-800); --color-ansi-bright-cyan: var(--color-blue-800); --color-ansi-bright-green: var(--color-green-800); --color-ansi-bright-magenta: var(--color-blue-800); --color-ansi-bright-red: var(--color-red-800); --color-ansi-bright-yellow: var(--color-amber-900); /* Background Light */ --color-background-100: #ffffff; --color-background-200: #fafafa; /* Syntax Light */ --color-syntax-comment: #545454; --color-syntax-constant: #171717; --color-syntax-function: #0054ad; --color-syntax-keyword: #a51850; --color-syntax-link: #066056; --color-syntax-parameter: #8f3e00; --color-syntax-punctuation: #171717; --color-syntax-string: #036157; --color-syntax-string-expression: #066056; /* Gray Scale Light */ --color-gray-100: #f2f2f2; --color-gray-200: #ebebeb; --color-gray-300: #e6e6e6; --color-gray-400: #eaeaea; --color-gray-500: #c9c9c9; --color-gray-600: #a8a8a8; --color-gray-700: #8f8f8f; --color-gray-800: #7d7d7d; --color-gray-900: #666666; --color-gray-1000: #171717; /* Gray Alpha Scale Light */ --color-gray-alpha-100: rgba(0, 0, 0, 0.05); --color-gray-alpha-200: rgba(0, 0, 0, 0.081); --color-gray-alpha-300: rgba(0, 0, 0, 0.1); --color-gray-alpha-400: rgba(0, 0, 0, 0.08); --color-gray-alpha-500: rgba(0, 0, 0, 0.21); --color-gray-alpha-600: rgba(0, 0, 0, 0.34); --color-gray-alpha-700: rgba(0, 0, 0, 0.44); --color-gray-alpha-800: rgba(0, 0, 0, 0.51); --color-gray-alpha-900: rgba(0, 0, 0, 0.605); --color-gray-alpha-1000: rgba(0, 0, 0, 0.91); /* Blue Scale Light */ --color-blue-100: #f0f7ff; --color-blue-200: #edf6ff; --color-blue-300: #e1f0ff; --color-blue-400: #cde7ff; --color-blue-500: #99ceff; --color-blue-600: #52aeff; --color-blue-700: #0070f3; --color-blue-800: #0060d1; --color-blue-900: #0067d6; --color-blue-1000: #0025ad; /* Red Scale Light */ --color-red-100: #fff0f0; --color-red-200: #ffebeb; --color-red-300: #ffe5e5; --color-red-400: #fdd8d8; --color-red-500: #f8baba; --color-red-600: #f87274; --color-red-700: #e5484d; --color-red-800: #da3036; --color-red-900: #ca2a30; --color-red-1000: #381316; /* Amber Scale Light */ --color-amber-100: #fff6e5; --color-amber-200: #fff4d5; --color-amber-300: #fef0cd; --color-amber-400: #ffddbf; --color-amber-500: #ffc96b; --color-amber-600: #f5b047; --color-amber-700: #ffb224; --color-amber-800: #ff990a; --color-amber-900: #a35200; --color-amber-1000: #4e2009; /* Green Scale Light */ --color-green-100: #effbef; --color-green-200: #eafaea; --color-green-300: #dcf6dc; --color-green-400: #c8f1c9; --color-green-500: #99e59f; --color-green-600: #6cda76; --color-green-700: #46a758; --color-green-800: #388e4a; --color-green-900: #297c3b; --color-green-1000: #18311e; /* Turbopack Light - Temporary */ --color-turbopack-text-red: #ff1e56; --color-turbopack-text-blue: #0096ff; --color-turbopack-border-red: #f0adbe; --color-turbopack-border-blue: #adccea; --color-turbopack-background-red: #fff7f9; --color-turbopack-background-blue: #f6fbff; } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/styles/dark-theme.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`:host(.dark) { --color-font: white; --color-backdrop: rgba(0, 0, 0, 0.8); --color-border-shadow: rgba(255, 255, 255, 0.145); --color-title-color: #fafafa; --color-stack-notes: #a9a9a9; /* Background Dark */ --color-background-100: #0a0a0a; --color-background-200: #000000; /* Syntax Dark */ --color-syntax-comment: #a0a0a0; --color-syntax-constant: #ededed; --color-syntax-function: #52a9ff; --color-syntax-keyword: #f76e99; --color-syntax-link: #0ac5b2; --color-syntax-parameter: #f1a10d; --color-syntax-punctuation: #ededed; --color-syntax-string: #0ac5b2; --color-syntax-string-expression: #0ac5b2; /* Gray Scale Dark */ --color-gray-100: #1a1a1a; --color-gray-200: #1f1f1f; --color-gray-300: #292929; --color-gray-400: #2e2e2e; --color-gray-500: #454545; --color-gray-600: #878787; --color-gray-700: #8f8f8f; --color-gray-800: #7d7d7d; --color-gray-900: #a0a0a0; --color-gray-1000: #ededed; /* Gray Alpha Scale Dark */ --color-gray-alpha-100: rgba(255, 255, 255, 0.066); --color-gray-alpha-200: rgba(255, 255, 255, 0.087); --color-gray-alpha-300: rgba(255, 255, 255, 0.125); --color-gray-alpha-400: rgba(255, 255, 255, 0.145); --color-gray-alpha-500: rgba(255, 255, 255, 0.239); --color-gray-alpha-600: rgba(255, 255, 255, 0.506); --color-gray-alpha-700: rgba(255, 255, 255, 0.54); --color-gray-alpha-800: rgba(255, 255, 255, 0.47); --color-gray-alpha-900: rgba(255, 255, 255, 0.61); --color-gray-alpha-1000: rgba(255, 255, 255, 0.923); /* Blue Scale Dark */ --color-blue-100: #0f1b2d; --color-blue-200: #10243e; --color-blue-300: #0f3058; --color-blue-400: #0d3868; --color-blue-500: #0a4481; --color-blue-600: #0091ff; --color-blue-700: #0070f3; --color-blue-800: #0060d1; --color-blue-900: #52a9ff; --color-blue-1000: #eaf6ff; /* Red Scale Dark */ --color-red-100: #2a1314; --color-red-200: #3d1719; --color-red-300: #551a1e; --color-red-400: #671e22; --color-red-500: #822025; --color-red-600: #e5484d; --color-red-700: #e5484d; --color-red-800: #da3036; --color-red-900: #ff6369; --color-red-1000: #ffecee; /* Amber Scale Dark */ --color-amber-100: #271700; --color-amber-200: #341c00; --color-amber-300: #4a2900; --color-amber-400: #573300; --color-amber-500: #693f05; --color-amber-600: #e79c13; --color-amber-700: #ffb224; --color-amber-800: #ff990a; --color-amber-900: #f1a10d; --color-amber-1000: #fef3dd; /* Green Scale Dark */ --color-green-100: #0b2211; --color-green-200: #0f2c17; --color-green-300: #11351b; --color-green-400: #0c461b; --color-green-500: #126427; --color-green-600: #1a9338; --color-green-700: #46a758; --color-green-800: #388e4a; --color-green-900: #63c174; --color-green-1000: #e5fbeb; /* Turbopack Dark - Temporary */ --color-turbopack-text-red: #ff6d92; --color-turbopack-text-blue: #45b2ff; --color-turbopack-border-red: #6e293b; --color-turbopack-border-blue: #284f80; --color-turbopack-background-red: #250d12; --color-turbopack-background-blue: #0a1723; } @media (prefers-color-scheme: dark) { :host(:not(.light)) { --color-font: white; --color-backdrop: rgba(0, 0, 0, 0.8); --color-border-shadow: rgba(255, 255, 255, 0.145); --color-title-color: #fafafa; --color-stack-notes: #a9a9a9; /* Background Dark */ --color-background-100: #0a0a0a; --color-background-200: #000000; /* Syntax Dark */ --color-syntax-comment: #a0a0a0; --color-syntax-constant: #ededed; --color-syntax-function: #52a9ff; --color-syntax-keyword: #f76e99; --color-syntax-link: #0ac5b2; --color-syntax-parameter: #f1a10d; --color-syntax-punctuation: #ededed; --color-syntax-string: #0ac5b2; --color-syntax-string-expression: #0ac5b2; /* Gray Scale Dark */ --color-gray-100: #1a1a1a; --color-gray-200: #1f1f1f; --color-gray-300: #292929; --color-gray-400: #2e2e2e; --color-gray-500: #454545; --color-gray-600: #878787; --color-gray-700: #8f8f8f; --color-gray-800: #7d7d7d; --color-gray-900: #a0a0a0; --color-gray-1000: #ededed; /* Gray Alpha Scale Dark */ --color-gray-alpha-100: rgba(255, 255, 255, 0.066); --color-gray-alpha-200: rgba(255, 255, 255, 0.087); --color-gray-alpha-300: rgba(255, 255, 255, 0.125); --color-gray-alpha-400: rgba(255, 255, 255, 0.145); --color-gray-alpha-500: rgba(255, 255, 255, 0.239); --color-gray-alpha-600: rgba(255, 255, 255, 0.506); --color-gray-alpha-700: rgba(255, 255, 255, 0.54); --color-gray-alpha-800: rgba(255, 255, 255, 0.47); --color-gray-alpha-900: rgba(255, 255, 255, 0.61); --color-gray-alpha-1000: rgba(255, 255, 255, 0.923); /* Blue Scale Dark */ --color-blue-100: #0f1b2d; --color-blue-200: #10243e; --color-blue-300: #0f3058; --color-blue-400: #0d3868; --color-blue-500: #0a4481; --color-blue-600: #0091ff; --color-blue-700: #0070f3; --color-blue-800: #0060d1; --color-blue-900: #52a9ff; --color-blue-1000: #eaf6ff; /* Red Scale Dark */ --color-red-100: #2a1314; --color-red-200: #3d1719; --color-red-300: #551a1e; --color-red-400: #671e22; --color-red-500: #822025; --color-red-600: #e5484d; --color-red-700: #e5484d; --color-red-800: #da3036; --color-red-900: #ff6369; --color-red-1000: #ffecee; /* Amber Scale Dark */ --color-amber-100: #271700; --color-amber-200: #341c00; --color-amber-300: #4a2900; --color-amber-400: #573300; --color-amber-500: #693f05; --color-amber-600: #e79c13; --color-amber-700: #ffb224; --color-amber-800: #ff990a; --color-amber-900: #f1a10d; --color-amber-1000: #fef3dd; /* Green Scale Dark */ --color-green-100: #0b2211; --color-green-200: #0f2c17; --color-green-300: #11351b; --color-green-400: #0c461b; --color-green-500: #126427; --color-green-600: #1a9338; --color-green-700: #46a758; --color-green-800: #388e4a; --color-green-900: #63c174; --color-green-1000: #e5fbeb; /* Turbopack Dark - Temporary */ --color-turbopack-text-red: #ff6d92; --color-turbopack-text-blue: #45b2ff; --color-turbopack-border-red: #6e293b; --color-turbopack-border-blue: #284f80; --color-turbopack-background-red: #250d12; --color-turbopack-background-blue: #0a1723; } } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/styles/default-theme.css"(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),a=n("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"),i=n.n(a)()(o());i.push([e.id,`:host { /* * Although the style applied to the shadow host is isolated, * the element that attached the shadow host (i.e. "nextjs-portal") * is still affected by the parent's style (e.g. "body"). This may * occur style conflicts like "display: flex", with other children * elements therefore give the shadow host an absolute position. */ position: absolute; --color-font: #757575; --color-backdrop: rgba(250, 250, 250, 0.8); --color-border-shadow: rgba(0, 0, 0, 0.145); --color-title-color: #1f1f1f; --color-stack-notes: #777; --color-accents-1: #808080; --color-accents-2: #222222; --color-accents-3: #404040; --font-stack-monospace: '__nextjs-Geist Mono', 'Geist Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; --font-stack-sans: '__nextjs-Geist', 'Geist', -apple-system, 'Source Sans Pro', sans-serif; font-family: var(--font-stack-sans); font-variant-ligatures: none; /* TODO: Remove replaced ones. */ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25); --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); --shadow-none: 0 0 #0000; --shadow-small: 0px 2px 2px rgba(0, 0, 0, 0.04); --shadow-menu: 0px 1px 1px rgba(0, 0, 0, 0.02), 0px 4px 8px -4px rgba(0, 0, 0, 0.04), 0px 16px 24px -8px rgba(0, 0, 0, 0.06); --focus-color: var(--color-blue-800); --focus-ring: 2px solid var(--focus-color); --timing-swift: cubic-bezier(0.23, 0.88, 0.26, 0.92); --timing-overlay: cubic-bezier(0.175, 0.885, 0.32, 1.1); /* prettier-ignore */ --timing-bounce: linear(0 0%, 0.005871 1%, 0.022058 2%, 0.046612 3%, 0.077823 4%, 0.114199 5%, 0.154441 6%, 0.197431 7.000000000000001%, 0.242208 8%, 0.287959 9%, 0.333995 10%, 0.379743 11%, 0.424732 12%, 0.46858 13%, 0.510982 14.000000000000002%, 0.551702 15%, 0.590564 16%, 0.627445 17%, 0.662261 18%, 0.694971 19%, 0.725561 20%, 0.754047 21%, 0.780462 22%, 0.804861 23%, 0.82731 24%, 0.847888 25%, 0.866679 26%, 0.883775 27%, 0.899272 28.000000000000004%, 0.913267 28.999999999999996%, 0.925856 30%, 0.937137 31%, 0.947205 32%, 0.956153 33%, 0.96407 34%, 0.971043 35%, 0.977153 36%, 0.982479 37%, 0.987094 38%, 0.991066 39%, 0.994462 40%, 0.997339 41%, 0.999755 42%, 1.001761 43%, 1.003404 44%, 1.004727 45%, 1.00577 46%, 1.006569 47%, 1.007157 48%, 1.007563 49%, 1.007813 50%, 1.007931 51%, 1.007939 52%, 1.007855 53%, 1.007697 54%, 1.007477 55.00000000000001%, 1.00721 56.00000000000001%, 1.006907 56.99999999999999%, 1.006576 57.99999999999999%, 1.006228 59%, 1.005868 60%, 1.005503 61%, 1.005137 62%, 1.004776 63%, 1.004422 64%, 1.004078 65%, 1.003746 66%, 1.003429 67%, 1.003127 68%, 1.00284 69%, 1.002571 70%, 1.002318 71%, 1.002082 72%, 1.001863 73%, 1.00166 74%, 1.001473 75%, 1.001301 76%, 1.001143 77%, 1.001 78%, 1.000869 79%, 1.000752 80%, 1.000645 81%, 1.00055 82%, 1.000464 83%, 1.000388 84%, 1.000321 85%, 1.000261 86%, 1.000209 87%, 1.000163 88%, 1.000123 89%, 1.000088 90%); --rounded-none: 0px; --rounded-sm: 2px; --rounded-md: 4px; --rounded-md-2: 6px; --rounded-lg: 8px; --rounded-xl: 12px; --rounded-2xl: 16px; --rounded-3xl: 24px; --rounded-4xl: 32px; --rounded-full: 9999px; /* This value gets set from the Dev Tools preferences, and we use the following --size-* variables to scale the relevant elements. The reason why we don't rely on rem values is because if an app sets their root font size to something tiny, it feels unexpected to have the app root size leak into a Next.js surface. https://github.com/vercel/next.js/discussions/76812 */ --nextjs-dev-tools-scale: 1; --size-1: calc(1px / var(--nextjs-dev-tools-scale)); --size-2: calc(2px / var(--nextjs-dev-tools-scale)); --size-3: calc(3px / var(--nextjs-dev-tools-scale)); --size-4: calc(4px / var(--nextjs-dev-tools-scale)); --size-5: calc(5px / var(--nextjs-dev-tools-scale)); --size-6: calc(6px / var(--nextjs-dev-tools-scale)); --size-7: calc(7px / var(--nextjs-dev-tools-scale)); --size-8: calc(8px / var(--nextjs-dev-tools-scale)); --size-9: calc(9px / var(--nextjs-dev-tools-scale)); --size-10: calc(10px / var(--nextjs-dev-tools-scale)); --size-11: calc(11px / var(--nextjs-dev-tools-scale)); --size-12: calc(12px / var(--nextjs-dev-tools-scale)); --size-13: calc(13px / var(--nextjs-dev-tools-scale)); --size-14: calc(14px / var(--nextjs-dev-tools-scale)); --size-15: calc(15px / var(--nextjs-dev-tools-scale)); --size-16: calc(16px / var(--nextjs-dev-tools-scale)); --size-17: calc(17px / var(--nextjs-dev-tools-scale)); --size-18: calc(18px / var(--nextjs-dev-tools-scale)); --size-20: calc(20px / var(--nextjs-dev-tools-scale)); --size-22: calc(22px / var(--nextjs-dev-tools-scale)); --size-24: calc(24px / var(--nextjs-dev-tools-scale)); --size-26: calc(26px / var(--nextjs-dev-tools-scale)); --size-28: calc(28px / var(--nextjs-dev-tools-scale)); --size-30: calc(30px / var(--nextjs-dev-tools-scale)); --size-32: calc(32px / var(--nextjs-dev-tools-scale)); --size-34: calc(34px / var(--nextjs-dev-tools-scale)); --size-36: calc(36px / var(--nextjs-dev-tools-scale)); --size-38: calc(38px / var(--nextjs-dev-tools-scale)); --size-40: calc(40px / var(--nextjs-dev-tools-scale)); --size-42: calc(42px / var(--nextjs-dev-tools-scale)); --size-44: calc(44px / var(--nextjs-dev-tools-scale)); --size-46: calc(46px / var(--nextjs-dev-tools-scale)); --size-48: calc(48px / var(--nextjs-dev-tools-scale)); @media print { display: none; } } h1, h2, h3, h4, h5, h6 { margin-bottom: 8px; font-weight: 500; line-height: 1.5; } a { color: var(--color-blue-900); &:hover { color: var(--color-blue-900); } &:focus-visible { outline: var(--focus-ring); } } `,""]);let l=i},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/api.js"(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},"../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/runtime/noSourceMaps.js"(e){"use strict";e.exports=function(e){return e[1]}},"../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}"),(a=n.sourceMap)&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},"../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/styleTagTransform.js"(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},"./dist/compiled/anser/index.js"(e){(()=>{"use strict";var t={211:e=>{var t=function(){function e(e,t){for(var n=0;n]/gm,function(e){return"&"==e?"&":"<"==e?"<":">"==e?">":""})}},{key:"linkify",value:function(e){return e.replace(/(https?:\/\/[^\s]+)/gm,function(e){return''+e+""})}},{key:"ansiToHtml",value:function(e,t){return this.process(e,t,!0)}},{key:"ansiToJson",value:function(e,t){return(t=t||{}).json=!0,t.clearLine=!1,this.process(e,t,!0)}},{key:"ansiToText",value:function(e){return this.process(e,{},!1)}},{key:"process",value:function(e,t,n){var r=this,o=e.split(/\033\[/),a=o.shift();null==t&&(t={}),t.clearLine=/\r/.test(e);var i=o.map(function(e){return r.processChunk(e,t,n)});if(t&&t.json){var l=this.processChunkJson("");return l.content=a,l.clearLine=t.clearLine,i.unshift(l),t.remove_empty&&(i=i.filter(function(e){return!e.isEmpty()})),i}return i.unshift(a),i.join("")}},{key:"processChunkJson",value:function(e,t,r){var o=(t=void 0===t?{}:t).use_classes=void 0!==t.use_classes&&t.use_classes,a=t.key=o?"class":"color",i={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,clearLine:t.clearLine,decoration:null,was_processed:!1,isEmpty:function(){return!i.content}},l=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!l)return i;i.content=l[4];var s=l[2].split(";");if(""!==l[1]||"m"!==l[3]||!r)return i;for(this.decoration=null;s.length>0;){var c=parseInt(s.shift());if(isNaN(c)||0===c)this.fg=this.bg=this.decoration=null;else if(1===c)this.decoration="bold";else if(2===c)this.decoration="dim";else if(3==c)this.decoration="italic";else if(4==c)this.decoration="underline";else if(5==c)this.decoration="blink";else if(7===c)this.decoration="reverse";else if(8===c)this.decoration="hidden";else if(9===c)this.decoration="strikethrough";else if(39==c)this.fg=null;else if(49==c)this.bg=null;else if(c>=30&&c<38)this.fg=n[0][c%10][a];else if(c>=90&&c<98)this.fg=n[1][c%10][a];else if(c>=40&&c<48)this.bg=n[0][c%10][a];else if(c>=100&&c<108)this.bg=n[1][c%10][a];else if(38===c||48===c){var u=38===c;if(s.length>=1){var d=s.shift();if("5"===d&&s.length>=1){var f=parseInt(s.shift());if(f>=0&&f<=255)if(o){var p=f>=16?"ansi-palette-"+f:n[+(f>7)][f%8].class;u?this.fg=p:this.bg=p}else this.PALETTE_COLORS||this.setupPalette(),u?this.fg=this.PALETTE_COLORS[f]:this.bg=this.PALETTE_COLORS[f]}else if("2"===d&&s.length>=3){var h=parseInt(s.shift()),m=parseInt(s.shift()),g=parseInt(s.shift());if(h>=0&&h<=255&&m>=0&&m<=255&&g>=0&&g<=255){var y=h+", "+m+", "+g;o?u?(this.fg="ansi-truecolor",this.fg_truecolor=y):(this.bg="ansi-truecolor",this.bg_truecolor=y):u?this.fg=y:this.bg=y}}}}}return null===this.fg&&null===this.bg&&null===this.decoration||(i.fg=this.fg,i.bg=this.bg,i.fg_truecolor=this.fg_truecolor,i.bg_truecolor=this.bg_truecolor,i.decoration=this.decoration,i.was_processed=!0),i}},{key:"processChunk",value:function(e,t,n){var r=this;t=t||{};var o=this.processChunkJson(e,t,n);if(t.json)return o;if(o.isEmpty())return"";if(!o.was_processed)return o.content;var a=t.use_classes,i=[],l=[],s={},c=function(e){var t=[],n=void 0;for(n in e)e.hasOwnProperty(n)&&t.push("data-"+n+'="'+r.escapeForHtml(e[n])+'"');return t.length>0?" "+t.join(" "):""};return(o.fg&&(a?(l.push(o.fg+"-fg"),null!==o.fg_truecolor&&(s["ansi-truecolor-fg"]=o.fg_truecolor,o.fg_truecolor=null)):i.push("color:rgb("+o.fg+")")),o.bg&&(a?(l.push(o.bg+"-bg"),null!==o.bg_truecolor&&(s["ansi-truecolor-bg"]=o.bg_truecolor,o.bg_truecolor=null)):i.push("background-color:rgb("+o.bg+")")),o.decoration&&(a?l.push("ansi-"+o.decoration):"bold"===o.decoration?i.push("font-weight:bold"):"dim"===o.decoration?i.push("opacity:0.5"):"italic"===o.decoration?i.push("font-style:italic"):"reverse"===o.decoration?i.push("filter:invert(100%)"):"hidden"===o.decoration?i.push("visibility:hidden"):"strikethrough"===o.decoration?i.push("text-decoration:line-through"):i.push("text-decoration:"+o.decoration)),a)?'"+o.content+"":'"+o.content+""}}]),e}()}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}},i=!0;try{t[e](a,a.exports,r),i=!1}finally{i&&delete n[e]}return a.exports}r.ab="//",e.exports=r(211)})()},"./dist/compiled/react-dom/cjs/react-dom-client.production.js"(e,t,n){"use strict";var r,o=n("./dist/compiled/scheduler/index.js"),a=n("./dist/compiled/react/index.js"),i=n("./dist/compiled/react-dom/index.js");function l(e){var t="https://react.dev/errors/"+e;if(1K||(e.current=W[K],W[K]=null,K--)}function G(e,t){W[++K]=e.current,e.current=t}var Q=Y(null),J=Y(null),ee=Y(null),et=Y(null);function en(e,t){switch(G(ee,t),G(J,e),G(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?uu(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=ud(t=uu(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(Q),G(Q,e)}function er(){X(Q),X(J),X(ee)}function eo(e){var t=e.memoizedState;null!==t&&(db._currentValue=t.memoizedState,G(et,e));var n=ud(t=Q.current,e.type);t!==n&&(G(J,e),G(Q,n))}function ea(e){J.current===e&&(X(Q),X(J)),et.current===e&&(X(et),db._currentValue=q)}function ei(e){if(void 0===tX)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);tX=t&&t[1]||"",tG=-1)":-1o||s[r]!==c[o]){var u="\n"+s[r].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=r&&0<=o);break}}}finally{el=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ei(n):""}function ec(e){try{var t="",n=null;do t+=function(e,t){switch(e.tag){case 26:case 27:case 5:return ei(e.type);case 16:return ei("Lazy");case 13:return e.child!==t&&null!==t?ei("Suspense Fallback"):ei("Suspense");case 19:return ei("SuspenseList");case 0:case 15:return es(e.type,!1);case 11:return es(e.type.render,!1);case 1:return es(e.type,!0);case 31:return ei("Activity");case 30:return ei("ViewTransition");default:return""}}(e,n),n=e,e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var eu=Object.prototype.hasOwnProperty,ed=o.unstable_scheduleCallback,ef=o.unstable_cancelCallback,ep=o.unstable_shouldYield,eh=o.unstable_requestPaint,em=o.unstable_now,eg=o.unstable_getCurrentPriorityLevel,ey=o.unstable_ImmediatePriority,ev=o.unstable_UserBlockingPriority,eb=o.unstable_NormalPriority,ex=o.unstable_LowPriority,ew=o.unstable_IdlePriority,e_=o.log,ej=o.unstable_setDisableYieldValue,ek=null,eS=null;function eO(e){if("function"==typeof e_&&ej(e),eS&&"function"==typeof eS.setStrictMode)try{eS.setStrictMode(ek,e)}catch(e){}}var eC=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eP(e)/eE|0)|0},eP=Math.log,eE=Math.LN2,eT=256,eN=262144,eI=4194304;function eL(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function eA(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,a=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=0x7ffffff&r;return 0!==l?0!=(r=l&~a)?o=eL(r):0!=(i&=l)?o=eL(i):n||0!=(n=l&~e)&&(o=eL(n)):0!=(l=r&~a)?o=eL(l):0!==i?o=eL(i):n||0!=(n=r&~e)&&(o=eL(n)),0===o?0:0!==t&&t!==o&&0==(t&a)&&((a=o&-o)>=(n=t&-t)||32===a&&0!=(4194048&n))?t:o}function ez(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function eR(){var e=eI;return 0==(0x3c00000&(eI<<=1))&&(eI=4194304),e}function eD(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eM(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eZ(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-eC(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|261930&n}function eU(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-eC(n),o=1<=nm),nv=!1;function nb(e,t){switch(e){case"keyup":return -1!==np.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nx(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nw=!1,n_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!n_[e.type]:"textarea"===t}function nk(e,t,n,r){tL?tA?tA.push(r):tA=[r]:tL=r,0<(t=c6(t,"onChange")).length&&(n=new t2("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nS=null,nO=null;function nC(e){cQ(e,0)}function nP(e){if(tf(e4(e)))return e}function nE(e,t){if("change"===e)return t}var nT=!1;if(tZ){if(tZ){var nN="oninput"in document;if(!nN){var nI=document.createElement("div");nI.setAttribute("oninput","return;"),nN="function"==typeof nI.oninput}r=nN}else r=!1;nT=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nF(r)}}function nV(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=tp(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=tp(e.document)}return t}function nB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var n$=tZ&&"documentMode"in document&&11>=document.documentMode,nq=null,nW=null,nK=null,nY=!1;function nX(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nY||null==nq||nq!==tp(r)||(r="selectionStart"in(r=nq)&&nB(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nK&&nU(nK,r)||(nK=r,0<(r=c6(nW,"onSelect")).length&&(t=new t2("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nq)))}function nG(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nQ={animationend:nG("Animation","AnimationEnd"),animationiteration:nG("Animation","AnimationIteration"),animationstart:nG("Animation","AnimationStart"),transitionrun:nG("Transition","TransitionRun"),transitionstart:nG("Transition","TransitionStart"),transitioncancel:nG("Transition","TransitionCancel"),transitionend:nG("Transition","TransitionEnd")},nJ={},n0={};function n1(e){if(nJ[e])return nJ[e];if(!nQ[e])return e;var t,n=nQ[e];for(t in n)if(n.hasOwnProperty(t)&&t in n0)return nJ[e]=n[t];return e}tZ&&(n0=document.createElement("div").style,"AnimationEvent"in window||(delete nQ.animationend.animation,delete nQ.animationiteration.animation,delete nQ.animationstart.animation),"TransitionEvent"in window||delete nQ.transitionend.transition);var n2=n1("animationend"),n3=n1("animationiteration"),n4=n1("animationstart"),n5=n1("transitionrun"),n6=n1("transitionstart"),n9=n1("transitioncancel"),n8=n1("transitionend"),n7=new Map,re="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function rt(e,t){n7.set(e,t),e7(t,[e])}re.push("scrollEnd");var rn=0;function rr(e,t){return null!=e.name&&"auto"!==e.name?e.name:null!==t.autoName?t.autoName:t.autoName=e="_"+(e=sK.identifierPrefix)+"t_"+(rn++).toString(32)+"_"}function ro(e){if(null==e||"string"==typeof e)return e;var t=null,n=s2;if(null!==n)for(var r=0;r>=i,o-=i,rR=1<<32-eC(t)+o|n<m?(g=d,d=null):g=d.sibling;var y=p(o,d,l[m],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),i=a(y,i,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===l.length)return n(o,d),r$&&rM(o,m),c;if(null===d){for(;mg?(y=m,m=null):y=m.sibling;var b=p(o,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),i=a(b,i,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return n(o,m),r$&&rM(o,g),u;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=f(o,v.value,c))&&(i=a(v,i,g),null===d?u=v:d.sibling=v,d=v);return r$&&rM(o,g),u}for(m=r(m);!v.done;g++,v=s.next())null!==(v=h(m,o,g,v.value,c))&&(e&&null!==(y=v.alternate)&&m.delete(null===y.key?g:y.key),i=a(v,i,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(o,e)}),r$&&rM(o,g),u}(c,u,d=g.call(d),m)}if("function"==typeof d.then)return s(c,u,oz(d),m);if(d.$$typeof===T)return s(c,u,or(c,d),m);oD(c,d)}return"string"==typeof d&&""!==d||"number"==typeof d||"bigint"==typeof d?(d=""+d,null!==u&&6===u.tag?(n(c,u.sibling),(m=o(u,d)).return=c):(n(c,u),(m=rk(d,c.mode,m)).return=c),i(c=m)):n(c,u)}(s,c,u,d);return oL=null,m}catch(e){if(e===oj||e===oS)throw e;var g=rv(29,e,null,s.mode);return g.lanes=d,g.return=s,g}finally{}}}var oZ=oM(!0),oU=oM(!1),oF=!1;function oH(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oV(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oB(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function o$(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&sj)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=rm(e),rh(e,null,n),t}return rd(e,r,t,n),rm(e)}function oq(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194048&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eU(e,n)}}function oW(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var oK=!1;function oY(){if(oK){var e=og;if(null!==e)throw e}}function oX(e,t,n,r){oK=!1;var o=e.updateQueue;oF=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s)}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var f=-0x20000001&l.lane,p=f!==l.lane;if(p?(sO&f)===f:(r&f)===f){0!==f&&f===om&&(oK=!0),null!==u&&(u=u.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var h=e,m=l;switch(f=t,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(n,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(n,d,f):h))break e;d=_({},d,f);break e;case 2:oF=!0}}null!==(f=l.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=o.callbacks)?o.callbacks=[f]:p.push(f))}else p={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,i|=f;if(null===(l=l.next))if(null===(l=o.shared.pending))break;else l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null===a&&(o.shared.lanes=0),sA|=i,e.lanes=i,e.memoizedState=d}}function oG(e,t){if("function"!=typeof e)throw Error(l(191,e));e.call(t)}function oQ(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;ea?a:8;var i=B.T,l={};l.types=null!==i?i.types:null,B.T=l,iw(e,!1,t,n);try{var s=o(),c=B.S;if(null!==c&&c(l,s),null!==s&&"object"==typeof s&&"function"==typeof s.then){var u,d,f=(u=[],d={status:"pending",value:null,reason:null,then:function(e){u.push(e)}},s.then(function(){d.status="fulfilled",d.value=r;for(var e=0;e title"))),ua(o,r,t),o[eW]=e,e6(o),r=o;break e;case"link":if(a=di("link","href",n).get(r+(t.href||""))){for(var i=0;il)break;var u=s.transferSize,d=s.initiatorType;u&&ui(d)&&(i+=u*((s=s.responseEnd)df?50:800)+m);return h.unsuspend=e,function(){h.unsuspend=null,clearTimeout(t),clearTimeout(n)}}:null))){sX=a,e.cancelPendingCommit=g(cg.bind(null,e,t,a,n,r,o,i,l,s,u,d,null,f,p)),ct(e,a,i,!c);return}cg(e,t,a,n,r,o,i,l,s,u,d)}function ct(e,t,n,r){t&=~sR,t&=~sz,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?i.createElement(o,{is:r.is}):i.createElement(o)}}a[eW]=t,a[eK]=r;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)a.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(t.stateNode=a,ua(a,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&lc(t)}}return lh(t),t.subtreeFlags&=-0x2000001,lu(t,t.type,null===e?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&lc(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));if(e=ee.current,rQ(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=rV))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[eW]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||un(e.nodeValue,n)))||rY(t,!0)}else(e=uc(e).createTextNode(r))[eW]=t,t.stateNode=e}return lh(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=rQ(t),null!==n){if(null===e){if(!r)throw Error(l(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(l(557));e[eW]=t}else rJ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lh(t),e=!1}else n=r0(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e){if(256&t.flags)return ae(t),t;return ae(t),null}if(0!=(128&t.flags))throw Error(l(558))}return lh(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=rQ(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(l(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(l(317));o[eW]=t}else rJ(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lh(t),o=!1}else o=r0(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o){if(256&t.flags)return ae(t),t;return ae(t),null}}if(ae(t),0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,o=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),lf(t,t.updateQueue),lh(t),null;case 4:return er(),null===e&&c2(t.stateNode.containerInfo),t.flags|=0x4000000,lh(t),null;case 10:return r6(t.type),lh(t),null;case 19:if(ar(t),null===(r=t.memoizedState))return lh(t),null;if(o=0!=(128&t.flags),null===(a=r.rendering))if(o)lp(r,!1);else{if(0!==sL||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ao(e))){for(t.flags|=128,lp(r,!1),t.updateQueue=e=a.updateQueue,lf(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)rw(n,e),n=n.sibling;return an(t,1&at.current|2),r$&&rM(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&em()>sB&&(t.flags|=128,o=!0,lp(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=ao(a))){if(t.flags|=128,o=!0,t.updateQueue=e=e.updateQueue,lf(t,e),lp(r,!0),null===r.tail&&"collapsed"!==r.tailMode&&"visible"!==r.tailMode&&!a.alternate&&!r$)return lh(t),null}else 2*em()-r.renderingStartTime>sB&&0x20000000!==n&&(t.flags|=128,o=!0,lp(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}if(null!==r.tail){e=r.tail;e:{for(n=e;null!==n;){if(null!==n.alternate){n=!1;break e}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=em(),e.sibling=null,a=at.current,a=o?1&a|2:1&a,"visible"===r.tailMode||"collapsed"===r.tailMode||!n||r$?an(t,a):(n=a,G(o4,t),G(at,n),null===o5&&(o5=t)),r$&&rM(t,r.treeForkCount),e}return lh(t),null;case 22:case 23:return ae(t),o3(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(lh(t),6&t.subtreeFlags&&(t.flags|=8192)):lh(t),null!==(n=t.updateQueue)&&lf(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&X(ob),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),r6(os),lh(t),null;case 25:return null;case 30:return t.flags|=0x2000000,lh(t),null}throw Error(l(156,t.tag))}(t.alternate,t,sI);if(null!==n){sS=n;return}if(null!==(t=t.sibling)){sS=t;return}sS=t=e}while(null!==t);0===sL&&(sL=5)}function cm(e,t){do{var n=function(e,t){switch(rF(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return r6(os),er(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ea(t),null;case 31:if(null!==t.memoizedState){if(ae(t),null===t.alternate)throw Error(l(340));rJ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(ae(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(l(340));rJ()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ar(t),65536&(e=t.flags)?(t.flags=-65537&e|128,null!==(e=t.memoizedState)&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return er(),null;case 10:return r6(t.type),null;case 22:case 23:return ae(t),o3(),null!==e&&X(ob),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return r6(os),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,sS=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){sS=e;return}sS=e=n}while(null!==e);sL=6,sS=null}function cg(e,t,n,r,o,a,i,s,c,u,d){e.cancelPendingCommit=null;do cj();while(0!==sW);if(0!=(6&sj))throw Error(l(327));if(null!==t){var f;if(t===e.current)throw Error(l(177));if(!function(e,t,n,r,o,a){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0df){l.length=i;break}f=new Promise(uC.bind(f)),l.push(f)}}}return 0g&&(i=g,g=m,m=i);var y=nH(l,m),v=nH(l,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;ln?32:n,B.T=null,n=sQ,sQ=null;var a=sK,i=sX;if(sW=0,sY=sK=null,sX=0,0!=(6&sj))throw Error(l(331));var s=sj;if(sj|=4,sb(a.current),sf(a,a.current,i,n),sj=s,cZ(0,!1),eS&&"function"==typeof eS.onPostCommitFiberRoot)try{eS.onPostCommitFiberRoot(ek,a)}catch(e){}return!0}finally{$.p=o,B.T=r,c_(e,t)}}function cS(e,t,n){t=rP(n,t),t=iZ(e.stateNode,t,2),null!==(e=o$(e,t,2))&&(eM(e,2),cM(e))}function cO(e,t,n){if(3===e.tag)cS(e,e,n);else for(;null!==t;){if(3===t.tag){cS(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===sq||!sq.has(r))){e=rP(n,e),null!==(r=o$(t,n=iU(2),2))&&(iF(n,r,t,e),eM(r,2),cM(r));break}}t=t.return}}function cC(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new s_;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(sN=!0,o.add(n),e=cP.bind(null,e,t,n),t.then(e,e))}function cP(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,sk===e&&(sO&n)===n&&(4===sL||3===sL&&(0x3c00000&sO)===sO&&300>em()-sH?0==(2&sj)&&co(e,0):sR|=n,sM===sO&&(sM=0)),cM(e)}function cE(e,t){0===t&&(t=eR()),null!==(e=rp(e,t))&&(eM(e,t),cM(e))}function cT(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),cE(e,n)}function cN(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}null!==r&&r.delete(t),cE(e,n)}var cI=null,cL=null,cA=!1,cz=!1,cR=!1,cD=0;function cM(e){e!==cL&&null===e.next&&(null===cL?cI=cL=e:cL=cL.next=e),cz=!0,cA||(cA=!0,uy(function(){0!=(6&sj)?ed(ey,cU):cF()}))}function cZ(e,t){if(!cR&&cz){cR=!0;do for(var n=!1,r=cI;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var a=0;else{var i=r.suspendedLanes,l=r.pingedLanes;a=0xc000095&(a=(1<<31-eC(42|e)+1)-1&(o&~(i&~l)))?0xc000095&a|1:a?2|a:0}0!==a&&(n=!0,cB(r,a))}else a=sO,0==(3&(a=eA(r,r===sk?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||ez(r,a)||(n=!0,cB(r,a));r=r.next}while(n);cR=!1}}function cU(){cF()}function cF(){cz=cA=!1;var e,t=0;0===cD||((e=window.event)&&"popstate"===e.type?e===up||(up=e,0):(up=null,1))||(t=cD);for(var n=em(),r=null,o=cI;null!==o;){var a=o.next,i=cH(o,n);0===i?(o.next=null,null===r?cI=a:r.next=a,null===a&&(cL=r)):(r=o,(0!==t||0!=(3&i))&&(cz=!0)),o=a}0!==sW&&5!==sW||cZ(t,!1),0!==cD&&(cD=0)}function cH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function ds(e,t){return"img"===e&&null!=t.src&&""!==t.src&&null==t.onLoad&&"lazy"!==t.loading}function dc(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}function du(e){return(e.width||100)*(e.height||100)*("number"==typeof devicePixelRatio?devicePixelRatio:1)*.25}function dd(e,t){"function"==typeof t.decode&&(e.imgCount++,t.complete||(e.imgBytes+=du(t),e.suspenseyImages.push(t)),e=dm.bind(e),t.decode().then(e,e))}var df=0;function dp(e){if(0===e.count&&(0===e.imgCount||!e.waitingForImages)){if(e.stylesheets)dy(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function dh(){this.count--,dp(this)}function dm(){this.imgCount--,dp(this)}var dg=null;function dy(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,dg=new Map,t.forEach(dv,e),dg=null,dh.call(e))}function dv(e,t){if(!(4&t.state.loading)){var n=dg.get(e);if(n)var r=n.get(null);else{n=new Map,dg.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a>>1,o=e[r];if(0>>1;ra(s,n))ca(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else if(ca(u,n))e[r]=u,e[c]=n,r=c;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i,l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var u=[],d=[],f=1,p=null,h=3,m=!1,g=!1,y=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,x="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(d);null!==t;){if(null===t.callback)o(d);else if(t.startTime<=e)o(d),t.sortIndex=t.expirationTime,n(u,t);else break;t=r(d)}}function j(e){if(y=!1,_(e),!g)if(null!==r(u))g=!0,k||(k=!0,i());else{var t=r(d);null!==t&&I(j,t.startTime-e)}}var k=!1,S=-1,O=5,C=-1;function P(){return!!v||!(t.unstable_now()-Ce&&P());){var l=p.callback;if("function"==typeof l){p.callback=null,h=p.priorityLevel;var s=l(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){p.callback=s,_(e),n=!0;break t}p===r(u)&&o(u),_(e)}else o(u);p=r(u)}if(null!==p)n=!0;else{var c=r(d);null!==c&&I(j,c.startTime-e),n=!1}}break e}finally{p=null,h=a,m=!1}}}finally{n?i():k=!1}}}if("function"==typeof w)i=function(){w(E)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,N=T.port2;T.port1.onmessage=E,i=function(){N.postMessage(null)}}else i=function(){b(E,0)};function I(e,n){S=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=a,n(d,e),null===r(u)&&e===r(d)&&(y?(x(S),S=-1):y=!0,I(j,a-l))):(e.sortIndex=s,n(u,e),g||m||(g=!0,k||(k=!0,i()))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},"./dist/compiled/scheduler/index.js"(e,t,n){"use strict";e.exports=n("./dist/compiled/scheduler/cjs/scheduler.production.js")},"./dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js"(e){(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t,n,r,o,a,i,l,s,c={};Object.defineProperty(c,"__esModule",{value:!0}),t="",n=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|webpack-internal|rsc|about|turbopack||\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/\((\S*)(?::(\d+))(?::(\d+))\)/,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|webpack-internal|rsc|about|turbopack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|webpack-internal|rsc|about|turbopack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,i=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i,c.parse=function(e){return e.split("\n").reduce(function(e,c){var u,d,f,p,h,m,g=function(e){var o=n.exec(e);if(!o)return null;var a=o[2]&&0===o[2].indexOf("native"),i=o[2]&&0===o[2].indexOf("eval"),l=r.exec(o[2]);return i&&null!=l&&(o[2]=l[1],o[3]=l[2],o[4]=l[3]),{file:a?null:o[2],methodName:o[1]||t,arguments:a?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}(c)||(u=c,(d=o.exec(u))?{file:d[2],methodName:d[1]||t,arguments:[],lineNumber:+d[3],column:d[4]?+d[4]:null}:null)||function(e){var n=a.exec(e);if(!n)return null;var r=n[3]&&n[3].indexOf(" > eval")>-1,o=i.exec(n[3]);return r&&null!=o&&(n[3]=o[1],n[4]=o[2],n[5]=null),{file:n[3],methodName:n[1]||t,arguments:n[2]?n[2].split(","):[],lineNumber:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}(c)||(f=c,(p=s.exec(f))?{file:p[2],methodName:p[1]||t,arguments:[],lineNumber:+p[3],column:p[4]?+p[4]:null}:null)||(h=c,(m=l.exec(h))?{file:m[3],methodName:m[1]||t,arguments:[],lineNumber:+m[4],column:m[5]?+m[5]:null}:null);return g&&e.push(g),e},[])},e.exports=c})()},"./dist/compiled/strip-ansi/index.js"(e){(()=>{"use strict";var t={511:e=>{e.exports=({onlyFirst:e=!1}={})=>RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",e?void 0:"g")},532:(e,t,n)=>{let r=n(511);e.exports=e=>"string"==typeof e?e.replace(r(),""):e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}},i=!0;try{t[e](a,a.exports,r),i=!1}finally{i&&delete n[e]}return a.exports}r.ab="//",e.exports=r(532)})()},"./src/build/webpack/loaders/devtool/devtool-style-inject.js"(e){function t(){let e=window._nextjsDevtoolsStyleCache;if(e.cachedShadowRoot)return e.cachedShadowRoot;let t=document.querySelector("nextjs-portal"),n=t?.shadowRoot||null;return n&&(e.cachedShadowRoot=n),n}function n(e,t){let n=window._nextjsDevtoolsStyleCache;n.lastInsertedElement?n.lastInsertedElement.nextSibling?t.insertBefore(e,n.lastInsertedElement.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),n.lastInsertedElement=e}function r(){let e=window._nextjsDevtoolsStyleCache,r=t();r&&(e.pendingElements.forEach(e=>{n(e,r)}),e.pendingElements=[])}"undefined"!=typeof window&&(window._nextjsDevtoolsStyleCache=window._nextjsDevtoolsStyleCache||{pendingElements:[],isObserving:!1,lastInsertedElement:null,cachedShadowRoot:null}),e.exports=function(e){e.setAttribute("data-nextjs-dev-tool-style","true");let o=t();o?n(e,o):(window._nextjsDevtoolsStyleCache.pendingElements.push(e),function(){let e=window._nextjsDevtoolsStyleCache;if(e.isObserving)return;if(e.isObserving=!0,t())return r();let n=new MutationObserver(o=>{if(0!==o.length){for(let a of o)if(0!==a.addedNodes.length)for(let o of a.addedNodes){if(o.nodeType!==Node.ELEMENT_NODE)continue;let a=null;if("SCRIPT"===o.tagName&&o.getAttribute("data-nextjs-dev-overlay")?a=o.firstChild:"NEXTJS-PORTAL"===o.tagName&&(a=o),a){let o=()=>{t()?(r(),n.disconnect(),e.isObserving=!1):setTimeout(o,20)};o();return}}}});n.observe(document.body,{childList:!0,subtree:!0})}())}},"./dist/compiled/zod/index.cjs"(e){(()=>{"use strict";var t={629:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;let l=a(n(923));t.z=l,i(n(923),t),t.default=l},348:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;let r=n(709);t.ZodIssueCode=r.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class o extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=o,o.create=e=>new o(e)},61:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultErrorMap=void 0,t.setErrorMap=function(e){a=e},t.getErrorMap=function(){return a};let o=r(n(871));t.defaultErrorMap=o.default;let a=o.default},923:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(61),t),o(n(818),t),o(n(515),t),o(n(709),t),o(n(155),t),o(n(348),t)},538:(e,t)=>{var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0,(r=n||(t.errorUtil=n={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},r.toString=e=>"string"==typeof e?e:e?.message},818:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.EMPTY_PATH=t.makeIssue=void 0,t.addIssueToContext=function(e,n){let r=(0,o.getErrorMap)(),i=(0,t.makeIssue)({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===a.default?void 0:a.default].filter(e=>!!e)});e.common.issues.push(i)};let o=n(61),a=r(n(871));t.makeIssue=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,a=[...n,...o.path||[]],i={...o,path:a};if(void 0!==o.message)return{...o,path:a,message:o.message};let l="";for(let e of r.filter(e=>!!e).slice().reverse())l=e(i,{data:t,defaultError:l}).message;return{...o,path:a,message:l}},t.EMPTY_PATH=[];class i{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,n){let r=[];for(let o of n){if("aborted"===o.status)return t.INVALID;"dirty"===o.status&&e.dirty(),r.push(o.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return i.mergeObjectSync(e,n)}static mergeObjectSync(e,n){let r={};for(let o of n){let{key:n,value:a}=o;if("aborted"===n.status||"aborted"===a.status)return t.INVALID;"dirty"===n.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==n.value&&(void 0!==a.value||o.alwaysSet)&&(r[n.value]=a.value)}return{status:e.value,value:r}}}t.ParseStatus=i,t.INVALID=Object.freeze({status:"aborted"}),t.DIRTY=e=>({status:"dirty",value:e}),t.OK=e=>({status:"valid",value:e}),t.isAborted=e=>"aborted"===e.status,t.isDirty=e=>"dirty"===e.status,t.isValid=e=>"valid"===e.status,t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise},515:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},709:(e,t)=>{var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0,(o=n||(t.util=n={})).assertEqual=e=>{},o.assertIs=function(e){},o.assertNever=function(e){throw Error()},o.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},o.getValidEnumValues=e=>{let t=o.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return o.objectValues(n)},o.objectValues=e=>o.objectKeys(e).map(function(t){return e[t]}),o.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},o.find=(e,t)=>{for(let n of e)if(t(n))return n},o.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,o.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},o.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(r||(t.objectUtil=r={})).mergeShapes=(e,t)=>({...e,...t}),t.ZodParsedType=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t.getParsedType=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return Number.isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":if(Array.isArray(e))return t.ZodParsedType.array;if(null===e)return t.ZodParsedType.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return t.ZodParsedType.promise;if("undefined"!=typeof Map&&e instanceof Map)return t.ZodParsedType.map;if("undefined"!=typeof Set&&e instanceof Set)return t.ZodParsedType.set;if("undefined"!=typeof Date&&e instanceof Date)return t.ZodParsedType.date;return t.ZodParsedType.object;default:return t.ZodParsedType.unknown}}},871:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});let r=n(348),o=n(709);t.default=(e,t)=>{let n;switch(e.code){case r.ZodIssueCode.invalid_type:n=e.received===o.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case r.ZodIssueCode.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,o.util.jsonStringifyReplacer)}`;break;case r.ZodIssueCode.unrecognized_keys:n=`Unrecognized key(s) in object: ${o.util.joinValues(e.keys,", ")}`;break;case r.ZodIssueCode.invalid_union:n="Invalid input";break;case r.ZodIssueCode.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${o.util.joinValues(e.options)}`;break;case r.ZodIssueCode.invalid_enum_value:n=`Invalid enum value. Expected ${o.util.joinValues(e.options)}, received '${e.received}'`;break;case r.ZodIssueCode.invalid_arguments:n="Invalid function arguments";break;case r.ZodIssueCode.invalid_return_type:n="Invalid function return type";break;case r.ZodIssueCode.invalid_date:n="Invalid date";break;case r.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:o.util.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case r.ZodIssueCode.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case r.ZodIssueCode.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case r.ZodIssueCode.custom:n="Invalid input";break;case r.ZodIssueCode.invalid_intersection_types:n="Intersection results could not be merged";break;case r.ZodIssueCode.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case r.ZodIssueCode.not_finite:n="Number must be finite";break;default:n=t.defaultError,o.util.assertNever(e)}return{message:n}}},155:(e,t,n)=>{var r,o;let a;Object.defineProperty(t,"__esModule",{value:!0}),t.discriminatedUnion=t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=void 0,t.datetimeRegex=I,t.custom=ev;let i=n(348),l=n(61),s=n(538),c=n(818),u=n(709);class d{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let f=(e,t)=>{if((0,c.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new i.ZodError(e.common.issues);return this._error=t,this._error}}};function p(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:o}:{errorMap:(t,o)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??o.defaultError}:void 0===o.data?{message:a??r??o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:a??n??o.defaultError}},description:o}}class h{get description(){return this._def.description}_getType(e){return(0,u.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,u.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,u.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,c.isAsync)(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)},r=this._parseSync({data:e,path:n.path,parent:n});return f(n,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:t});return(0,c.isValid)(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,c.isValid)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)},r=this._parse({data:e,path:n.path,parent:n});return f(n,await ((0,c.isAsync)(r)?r:Promise.resolve(r)))}refine(e,t){return this._refinement((n,r)=>{let o=e(n),a=()=>r.addIssue({code:i.ZodIssueCode.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(a(),!1)):!!o||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new es({schema:this,typeName:r.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ec.create(this,this._def)}nullable(){return eu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $.create(this)}promise(){return el.create(this,this._def)}or(e){return W.create([this,e],this._def)}and(e){return X.create(this,e,this._def)}transform(e){return new es({...p(this._def),schema:this,typeName:r.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ed({...p(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:r.ZodDefault})}brand(){return new eh({typeName:r.ZodBranded,type:this,...p(this._def)})}catch(e){return new ef({...p(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:r.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return em.create(this,e)}readonly(){return eg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=h,t.Schema=h,t.ZodSchema=h;let m=/^c[^\s-]{8,}$/i,g=/^[0-9a-z]+$/,y=/^[0-9A-HJKMNP-TV-Z]{26}$/i,v=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,b=/^[a-z0-9_-]{21}$/i,x=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,w=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,k=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,S=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,O=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,C=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,P=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,E="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",T=RegExp(`^${E}$`);function N(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function I(e){let t=`${E}T${N(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)}class L extends h{_parse(e){var t,n,r,o;let l;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.ZodParsedType.string){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.string,received:t.parsedType}),c.INVALID}let s=new c.ParseStatus;for(let d of this._def.checks)if("min"===d.kind)e.data.lengthd.value&&(l=this._getOrReturnCtx(e,l),(0,c.addIssueToContext)(l,{code:i.ZodIssueCode.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),s.dirty());else if("length"===d.kind){let t=e.data.length>d.value,n=e.data.lengthe.test(t),{validation:t,code:i.ZodIssueCode.invalid_string,...s.errorUtil.errToObj(n)})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...s.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...s.errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...s.errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...s.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...s.errorUtil.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...s.errorUtil.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...s.errorUtil.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...s.errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...s.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,s.errorUtil.errToObj(e))}trim(){return new L({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew L({checks:[],typeName:r.ZodString,coerce:e?.coerce??!1,...p(e)});class A extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.ZodParsedType.number){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.number,received:t.parsedType}),c.INVALID}let n=new c.ParseStatus;for(let r of this._def.checks)"int"===r.kind?u.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.not_finite,message:r.message}),n.dirty()):u.util.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,n,r){return new A({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:s.errorUtil.toString(r)}]})}_addCheck(e){return new A({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&u.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;else"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.valuenew A({checks:[],typeName:r.ZodNumber,coerce:e?.coerce||!1,...p(e)});class z extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.ZodParsedType.bigint)return this._getInvalidInput(e);let n=new c.ParseStatus;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):u.util.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.bigint,received:t.parsedType}),c.INVALID}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,n,r){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:s.errorUtil.toString(r)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew z({checks:[],typeName:r.ZodBigInt,coerce:e?.coerce??!1,...p(e)});class R extends h{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.ZodParsedType.boolean){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.boolean,received:t.parsedType}),c.INVALID}return(0,c.OK)(e.data)}}t.ZodBoolean=R,R.create=e=>new R({typeName:r.ZodBoolean,coerce:e?.coerce||!1,...p(e)});class D extends h{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.ZodParsedType.date){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.date,received:t.parsedType}),c.INVALID}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_date}),c.INVALID}let n=new c.ParseStatus;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(t=this._getOrReturnCtx(e,t),(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):u.util.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew D({checks:[],coerce:e?.coerce||!1,typeName:r.ZodDate,...p(e)});class M extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.symbol){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.symbol,received:t.parsedType}),c.INVALID}return(0,c.OK)(e.data)}}t.ZodSymbol=M,M.create=e=>new M({typeName:r.ZodSymbol,...p(e)});class Z extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.undefined,received:t.parsedType}),c.INVALID}return(0,c.OK)(e.data)}}t.ZodUndefined=Z,Z.create=e=>new Z({typeName:r.ZodUndefined,...p(e)});class U extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.null){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.null,received:t.parsedType}),c.INVALID}return(0,c.OK)(e.data)}}t.ZodNull=U,U.create=e=>new U({typeName:r.ZodNull,...p(e)});class F extends h{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,c.OK)(e.data)}}t.ZodAny=F,F.create=e=>new F({typeName:r.ZodAny,...p(e)});class H extends h{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,c.OK)(e.data)}}t.ZodUnknown=H,H.create=e=>new H({typeName:r.ZodUnknown,...p(e)});class V extends h{_parse(e){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.never,received:t.parsedType}),c.INVALID}}t.ZodNever=V,V.create=e=>new V({typeName:r.ZodNever,...p(e)});class B extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.void,received:t.parsedType}),c.INVALID}return(0,c.OK)(e.data)}}t.ZodVoid=B,B.create=e=>new B({typeName:r.ZodVoid,...p(e)});class $ extends h{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==u.ZodParsedType.array)return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:t.parsedType}),c.INVALID;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,o=t.data.lengthr.maxLength.value&&((0,c.addIssueToContext)(t,{code:i.ZodIssueCode.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new d(t,e,t.path,n)))).then(e=>c.ParseStatus.mergeArray(n,e));let o=[...t.data].map((e,n)=>r.type._parseSync(new d(t,e,t.path,n)));return c.ParseStatus.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new $({...this._def,minLength:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new $({...this._def,maxLength:{value:e,message:s.errorUtil.toString(t)}})}length(e,t){return new $({...this._def,exactLength:{value:e,message:s.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}t.ZodArray=$,$.create=(e,t)=>new $({type:e,minLength:null,maxLength:null,exactLength:null,typeName:r.ZodArray,...p(t)});class q extends h{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=u.util.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.ZodParsedType.object){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:t.parsedType}),c.INVALID}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof V&&"strip"===this._def.unknownKeys))for(let e in n.data)o.includes(e)||a.push(e);let l=[];for(let e of o){let t=r[e],o=n.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new d(n,o,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof V){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)l.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)a.length>0&&((0,c.addIssueToContext)(n,{code:i.ZodIssueCode.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new d(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>c.ParseStatus.mergeObjectSync(t,e)):c.ParseStatus.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return s.errorUtil.errToObj,new q({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{let r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:s.errorUtil.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new q({...this._def,unknownKeys:"strip"})}passthrough(){return new q({...this._def,unknownKeys:"passthrough"})}extend(e){return new q({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new q({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:r.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new q({...this._def,catchall:e})}pick(e){let t={};for(let n of u.util.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new q({...this._def,shape:()=>t})}omit(e){let t={};for(let n of u.util.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new q({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof q){let n={};for(let r in t.shape){let o=t.shape[r];n[r]=ec.create(e(o))}return new q({...t._def,shape:()=>n})}if(t instanceof $)return new $({...t._def,type:e(t.element)});if(t instanceof ec)return ec.create(e(t.unwrap()));if(t instanceof eu)return eu.create(e(t.unwrap()));if(t instanceof G)return G.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let n of u.util.objectKeys(this.shape)){let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new q({...this._def,shape:()=>t})}required(e){let t={};for(let n of u.util.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ec;)e=e._def.innerType;t[n]=e}return new q({...this._def,shape:()=>t})}keyof(){return eo(u.util.objectKeys(this.shape))}}t.ZodObject=q,q.create=(e,t)=>new q({shape:()=>e,unknownKeys:"strip",catchall:V.create(),typeName:r.ZodObject,...p(t)}),q.strictCreate=(e,t)=>new q({shape:()=>e,unknownKeys:"strict",catchall:V.create(),typeName:r.ZodObject,...p(t)}),q.lazycreate=(e,t)=>new q({shape:e,unknownKeys:"strip",catchall:V.create(),typeName:r.ZodObject,...p(t)});class W extends h{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new i.ZodError(e.ctx.common.issues));return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_union,unionErrors:n}),c.INVALID});{let e,r=[];for(let o of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let o=r.map(e=>new i.ZodError(e));return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_union,unionErrors:o}),c.INVALID}}get options(){return this._def.options}}t.ZodUnion=W,W.create=(e,t)=>new W({options:e,typeName:r.ZodUnion,...p(t)});let K=e=>{if(e instanceof en)return K(e.schema);if(e instanceof es)return K(e.innerType());if(e instanceof er)return[e.value];if(e instanceof ea)return e.options;if(e instanceof ei)return u.util.objectValues(e.enum);else if(e instanceof ed)return K(e._def.innerType);else if(e instanceof Z)return[void 0];else if(e instanceof U)return[null];else if(e instanceof ec)return[void 0,...K(e.unwrap())];else if(e instanceof eu)return[null,...K(e.unwrap())];else if(e instanceof eh)return K(e.unwrap());else if(e instanceof eg)return K(e.unwrap());else if(e instanceof ef)return K(e._def.innerType);else return[]};class Y extends h{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.object)return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:t.parsedType}),c.INVALID;let n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):((0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),c.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let o=new Map;for(let n of t){let t=K(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let r of t){if(o.has(r))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(r)}`);o.set(r,n)}}return new Y({typeName:r.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:o,...p(n)})}}t.ZodDiscriminatedUnion=Y;class X extends h{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if((0,c.isAborted)(e)||(0,c.isAborted)(r))return c.INVALID;let o=function e(t,n){let r=(0,u.getParsedType)(t),o=(0,u.getParsedType)(n);if(t===n)return{valid:!0,data:t};if(r===u.ZodParsedType.object&&o===u.ZodParsedType.object){let r=u.util.objectKeys(n),o=u.util.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of o){let o=e(t[r],n[r]);if(!o.valid)return{valid:!1};a[r]=o.data}return{valid:!0,data:a}}if(r===u.ZodParsedType.array&&o===u.ZodParsedType.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let o=0;or(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}t.ZodIntersection=X,X.create=(e,t,n)=>new X({left:e,right:t,typeName:r.ZodIntersection,...p(n)});class G extends h{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==u.ZodParsedType.array)return(0,c.addIssueToContext)(n,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:n.parsedType}),c.INVALID;if(n.data.lengththis._def.items.length&&((0,c.addIssueToContext)(n,{code:i.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new d(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>c.ParseStatus.mergeArray(t,e)):c.ParseStatus.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new G({...this._def,rest:e})}}t.ZodTuple=G,G.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new G({items:e,typeName:r.ZodTuple,rest:null,...p(t)})};class Q extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==u.ZodParsedType.object)return(0,c.addIssueToContext)(n,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:n.parsedType}),c.INVALID;let r=[],o=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:o._parse(new d(n,e,n.path,e)),value:a._parse(new d(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?c.ParseStatus.mergeObjectAsync(t,r):c.ParseStatus.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Q(t instanceof h?{keyType:e,valueType:t,typeName:r.ZodRecord,...p(n)}:{keyType:L.create(),valueType:e,typeName:r.ZodRecord,...p(t)})}}t.ZodRecord=Q;class J extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==u.ZodParsedType.map)return(0,c.addIssueToContext)(n,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.map,received:n.parsedType}),c.INVALID;let r=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new d(n,e,n.path,[a,"key"])),value:o._parse(new d(n,t,n.path,[a,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return c.INVALID;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return c.INVALID;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}t.ZodMap=J,J.create=(e,t,n)=>new J({valueType:t,keyType:e,typeName:r.ZodMap,...p(n)});class ee extends h{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==u.ZodParsedType.set)return(0,c.addIssueToContext)(n,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.set,received:n.parsedType}),c.INVALID;let r=this._def;null!==r.minSize&&n.data.sizer.maxSize.value&&((0,c.addIssueToContext)(n,{code:i.ZodIssueCode.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let o=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return c.INVALID;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let l=[...n.data.values()].map((e,t)=>o._parse(new d(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>a(e)):a(l)}min(e,t){return new ee({...this._def,minSize:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:s.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=ee,ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:r.ZodSet,...p(t)});class et extends h{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.function)return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.function,received:t.parsedType}),c.INVALID;function n(e,n){return(0,c.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,l.getErrorMap)(),l.defaultErrorMap].filter(e=>!!e),issueData:{code:i.ZodIssueCode.invalid_arguments,argumentsError:n}})}function r(e,n){return(0,c.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,l.getErrorMap)(),l.defaultErrorMap].filter(e=>!!e),issueData:{code:i.ZodIssueCode.invalid_return_type,returnTypeError:n}})}let o={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof el){let e=this;return(0,c.OK)(async function(...t){let l=new i.ZodError([]),s=await e._def.args.parseAsync(t,o).catch(e=>{throw l.addIssue(n(t,e)),l}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,o).catch(e=>{throw l.addIssue(r(c,e)),l})})}{let e=this;return(0,c.OK)(function(...t){let l=e._def.args.safeParse(t,o);if(!l.success)throw new i.ZodError([n(t,l.error)]);let s=Reflect.apply(a,this,l.data),c=e._def.returns.safeParse(s,o);if(!c.success)throw new i.ZodError([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:G.create(e).rest(H.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new et({args:e||G.create([]).rest(H.create()),returns:t||H.create(),typeName:r.ZodFunction,...p(n)})}}t.ZodFunction=et;class en extends h{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=en,en.create=(e,t)=>new en({getter:e,typeName:r.ZodLazy,...p(t)});class er extends h{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{received:t.data,code:i.ZodIssueCode.invalid_literal,expected:this._def.value}),c.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eo(e,t){return new ea({values:e,typeName:r.ZodEnum,...p(t)})}t.ZodLiteral=er,er.create=(e,t)=>new er({value:e,typeName:r.ZodLiteral,...p(t)});class ea extends h{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,c.addIssueToContext)(t,{expected:u.util.joinValues(n),received:t.parsedType,code:i.ZodIssueCode.invalid_type}),c.INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,c.addIssueToContext)(t,{received:t.data,code:i.ZodIssueCode.invalid_enum_value,options:n}),c.INVALID}return(0,c.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ea.create(e,{...this._def,...t})}exclude(e,t=this._def){return ea.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}t.ZodEnum=ea,ea.create=eo;class ei extends h{_parse(e){let t=u.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==u.ZodParsedType.string&&n.parsedType!==u.ZodParsedType.number){let e=u.util.objectValues(t);return(0,c.addIssueToContext)(n,{expected:u.util.joinValues(e),received:n.parsedType,code:i.ZodIssueCode.invalid_type}),c.INVALID}if(this._cache||(this._cache=new Set(u.util.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=u.util.objectValues(t);return(0,c.addIssueToContext)(n,{received:n.data,code:i.ZodIssueCode.invalid_enum_value,options:e}),c.INVALID}return(0,c.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=ei,ei.create=(e,t)=>new ei({values:e,typeName:r.ZodNativeEnum,...p(t)});class el extends h{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.promise&&!1===t.common.async)return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.promise,received:t.parsedType}),c.INVALID;let n=t.parsedType===u.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,c.OK)(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}t.ZodPromise=el,el.create=(e,t)=>new el({type:e,typeName:r.ZodPromise,...p(t)});class es extends h{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===r.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,o={addIssue:e=>{(0,c.addIssueToContext)(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===r.type){let e=r.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return c.INVALID;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?c.INVALID:"dirty"===r.status||"dirty"===t.value?(0,c.DIRTY)(r.value):r});{if("aborted"===t.value)return c.INVALID;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?c.INVALID:"dirty"===r.status||"dirty"===t.value?(0,c.DIRTY)(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?c.INVALID:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?c.INVALID:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type)if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>(0,c.isValid)(e)?Promise.resolve(r.transform(e.value,o)).then(e=>({status:t.value,value:e})):c.INVALID);else{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,c.isValid)(e))return c.INVALID;let a=r.transform(e.value,o);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}u.util.assertNever(r)}}t.ZodEffects=es,t.ZodTransformer=es,es.create=(e,t,n)=>new es({schema:e,typeName:r.ZodEffects,effect:t,...p(n)}),es.createWithPreprocess=(e,t,n)=>new es({schema:t,effect:{type:"preprocess",transform:e},typeName:r.ZodEffects,...p(n)});class ec extends h{_parse(e){return this._getType(e)===u.ZodParsedType.undefined?(0,c.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=ec,ec.create=(e,t)=>new ec({innerType:e,typeName:r.ZodOptional,...p(t)});class eu extends h{_parse(e){return this._getType(e)===u.ZodParsedType.null?(0,c.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=eu,eu.create=(e,t)=>new eu({innerType:e,typeName:r.ZodNullable,...p(t)});class ed extends h{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===u.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=ed,ed.create=(e,t)=>new ed({innerType:e,typeName:r.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...p(t)});class ef extends h{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,c.isAsync)(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new i.ZodError(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new i.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=ef,ef.create=(e,t)=>new ef({innerType:e,typeName:r.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...p(t)});class ep extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.nan){let t=this._getOrReturnCtx(e);return(0,c.addIssueToContext)(t,{code:i.ZodIssueCode.invalid_type,expected:u.ZodParsedType.nan,received:t.parsedType}),c.INVALID}return{status:"valid",value:e.data}}}t.ZodNaN=ep,ep.create=e=>new ep({typeName:r.ZodNaN,...p(e)}),t.BRAND=Symbol("zod_brand");class eh extends h{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=eh;class em extends h{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?c.INVALID:"dirty"===e.status?(t.dirty(),(0,c.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?c.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new em({in:e,out:t,typeName:r.ZodPipeline})}}t.ZodPipeline=em;class eg extends h{_parse(e){let t=this._def.innerType._parse(e),n=e=>((0,c.isValid)(e)&&(e.value=Object.freeze(e.value)),e);return(0,c.isAsync)(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function ey(e,t){let n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function ev(e,t={},n){return e?F.create().superRefine((r,o)=>{let a=e(r);if(a instanceof Promise)return a.then(e=>{if(!e){let e=ey(t,r),a=e.fatal??n??!0;o.addIssue({code:"custom",...e,fatal:a})}});if(!a){let e=ey(t,r),a=e.fatal??n??!0;o.addIssue({code:"custom",...e,fatal:a})}}):F.create()}t.ZodReadonly=eg,eg.create=(e,t)=>new eg({innerType:e,typeName:r.ZodReadonly,...p(t)}),t.late={object:q.lazycreate},(o=r||(t.ZodFirstPartyTypeKind=r={})).ZodString="ZodString",o.ZodNumber="ZodNumber",o.ZodNaN="ZodNaN",o.ZodBigInt="ZodBigInt",o.ZodBoolean="ZodBoolean",o.ZodDate="ZodDate",o.ZodSymbol="ZodSymbol",o.ZodUndefined="ZodUndefined",o.ZodNull="ZodNull",o.ZodAny="ZodAny",o.ZodUnknown="ZodUnknown",o.ZodNever="ZodNever",o.ZodVoid="ZodVoid",o.ZodArray="ZodArray",o.ZodObject="ZodObject",o.ZodUnion="ZodUnion",o.ZodDiscriminatedUnion="ZodDiscriminatedUnion",o.ZodIntersection="ZodIntersection",o.ZodTuple="ZodTuple",o.ZodRecord="ZodRecord",o.ZodMap="ZodMap",o.ZodSet="ZodSet",o.ZodFunction="ZodFunction",o.ZodLazy="ZodLazy",o.ZodLiteral="ZodLiteral",o.ZodEnum="ZodEnum",o.ZodEffects="ZodEffects",o.ZodNativeEnum="ZodNativeEnum",o.ZodOptional="ZodOptional",o.ZodNullable="ZodNullable",o.ZodDefault="ZodDefault",o.ZodCatch="ZodCatch",o.ZodPromise="ZodPromise",o.ZodBranded="ZodBranded",o.ZodPipeline="ZodPipeline",o.ZodReadonly="ZodReadonly",t.instanceof=(e,t={message:`Input not instance of ${e.name}`})=>ev(t=>t instanceof e,t);let eb=L.create;t.string=eb;let ex=A.create;t.number=ex,t.nan=ep.create,t.bigint=z.create;let ew=R.create;t.boolean=ew,t.date=D.create,t.symbol=M.create,t.undefined=Z.create,t.null=U.create,t.any=F.create,t.unknown=H.create,t.never=V.create,t.void=B.create,t.array=$.create,t.object=q.create,t.strictObject=q.strictCreate,t.union=W.create,t.discriminatedUnion=Y.create,t.intersection=X.create,t.tuple=G.create,t.record=Q.create,t.map=J.create,t.set=ee.create,t.function=et.create,t.lazy=en.create,t.literal=er.create,t.enum=ea.create,t.nativeEnum=ei.create,t.promise=el.create;let e_=es.create;t.effect=e_,t.transformer=e_,t.optional=ec.create,t.nullable=eu.create,t.preprocess=es.createWithPreprocess,t.pipeline=em.create,t.ostring=()=>eb().optional(),t.onumber=()=>ex().optional(),t.oboolean=()=>ew().optional(),t.coerce={string:e=>L.create({...e,coerce:!0}),number:e=>A.create({...e,coerce:!0}),boolean:e=>R.create({...e,coerce:!0}),bigint:e=>z.create({...e,coerce:!0}),date:e=>D.create({...e,coerce:!0})},t.NEVER=c.INVALID}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}},i=!0;try{t[e].call(a.exports,a,a.exports,r),i=!1}finally{i&&delete n[e]}return a.exports}r.ab="//",e.exports=r(629)})()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var o=Object.create(null);__webpack_require__.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>{a[e]=()=>n[e]});return a.default=()=>n,__webpack_require__.d(o,a),o}})(),__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nc=void 0;var __webpack_exports__={};for(var __rspack_i in(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DevOverlayContext:()=>dx,dispatcher:()=>dv,renderPagesDevOverlay:()=>dO,getSerializedOverlayState:()=>dm,useDevOverlayContext:()=>dw,renderAppDevOverlay:()=>dS,getSegmentTrieData:()=>dg});var e,t,n,r,o,a,i,l,s,c=__webpack_require__("../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),u=__webpack_require__.n(c),d=__webpack_require__("../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/styleDomAPI.js"),f=__webpack_require__.n(d),p=__webpack_require__("./src/build/webpack/loaders/devtool/devtool-style-inject.js"),h=__webpack_require__.n(p),m=__webpack_require__("../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),g=__webpack_require__.n(m),y=__webpack_require__("../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/insertStyleElement.js"),v=__webpack_require__.n(y),b=__webpack_require__("../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/styleTagTransform.js"),x=__webpack_require__.n(b),w=__webpack_require__("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/global.css"),_={};_.styleTagTransform=x(),_.setAttributes=g(),_.insert=h(),_.domAPI=f(),_.insertStyleElement=v(),u()(w.A,_),w.A&&w.A.locals&&w.A.locals;var j=__webpack_require__("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/toast/style.css"),k={};k.styleTagTransform=x(),k.setAttributes=g(),k.insert=h(),k.domAPI=f(),k.insertStyleElement=v(),u()(j.A,k),j.A&&j.A.locals&&j.A.locals;var S=__webpack_require__("./dist/compiled/react/jsx-runtime.js"),O=__webpack_require__("./dist/compiled/react/compiler-runtime.js"),C=__webpack_require__("./dist/compiled/react/index.js"),P=__webpack_require__.t(C,2),E=__webpack_require__("./dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js"),T=/\/_next(\/static\/.+)/,N=Symbol.for("next.console.error.digest");function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e){for(var t=1;t1?t-1:0),r=1;r]*)>/g,"").trim()}function eO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr){var c=t.substring(r,i);n.push(["raw",c])}try{var u=function(e){var t=e.match(ej);if(!t)return e;for(var n=t[1],r="",o=0,a="",i=0;i0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]"!==e.file&&(null!=e.column1?n+=" (".concat(e.line1,":").concat(e.column1,")"):n+=" (".concat(e.line1,")")),n}function eM(e){var t,n,r=(0,O.c)(6);r[0]!==e?(t=void 0===e?{}:e,r[0]=e,r[1]=t):t=r[1];var o=t.file,a=t.line1,i=t.column1;return r[2]!==i||r[3]!==o||r[4]!==a?(n=function(){if(null!=o&&null!=a&&null!=i){var e=new URLSearchParams;e.append("file",o),e.append("line1",String(a)),e.append("column1",String(i)),self.fetch("".concat(process.env.__NEXT_ROUTER_BASEPATH||"","/__nextjs_launch-editor?").concat(e.toString())).then(eZ,function(e){console.error('Failed to open file "'.concat(o," (").concat(a,":").concat(i,')" in your editor. Cause:'),e)})}},r[2]=i,r[3]=o,r[4]=a,r[5]=n):n=r[5],n}function eZ(){}function eU(e){for(var t=1;t? +\d+ +\| [ ]+/.exec(eJ()(e))?null:/^>? +\d+ +\| ( *)/.exec(eJ()(e))}).filter(Boolean).map(function(e){return e.pop()}).reduce(function(e,t){return isNaN(e)?t.length:Math.min(e,t.length)},NaN);return n>1?t.map(function(e,t){return~(t=e.indexOf("|"))?e.substring(0,t)+e.substring(t).replace("^\\ {".concat(n,"}"),""):e}).join("\n"):t.join("\n")}function e1(e){for(var t=1;t0&&n.push(r),n})(e0(a)).map(function(e){var t,n,r,a,i,l,s,c,u;return{line:e,parsedLine:(t=e,n=o,((null==(r=t[0])?void 0:r.content)===">"||(null==(a=t[0])?void 0:a.content)===" ")&&(s=null==(l=t[1])||null==(u=l.content)||null==(c=u.replace("|",""))?void 0:c.trim()),{lineNumber:s,isErroredLine:s===(null==(i=n.line1)?void 0:i.toString())})}})},[a,o]),l=eM({file:o.file,line1:null!=(n=o.line1)?n:1,column1:null!=(r=o.column1)?r:1}),s=null==o||null==(t=o.file)?void 0:t.split(".").pop();return(0,S.jsxs)("div",{"data-nextjs-codeframe":!0,children:[(0,S.jsx)("div",{className:"code-frame-header",children:(0,S.jsxs)("p",{className:"code-frame-link",children:[(0,S.jsx)("span",{className:"code-frame-icon",children:(0,S.jsx)(eB,{lang:s})}),(0,S.jsxs)("span",{"data-text":!0,children:[eD(o)," @"," ",(0,S.jsx)(eP,{text:o.methodName})]}),(0,S.jsx)("button",{"aria-label":"Open in editor","data-with-open-in-editor-link-source-file":!0,onClick:l,children:(0,S.jsx)("span",{className:"code-frame-icon","data-icon":"right",children:(0,S.jsx)(eH,{width:16,height:16})})})]})}),(0,S.jsx)("pre",{className:"code-frame-pre",children:(0,S.jsx)("div",{className:"code-frame-lines",children:i.map(function(e,t){var n,r,o=e.line,a=e.parsedLine,i=a.lineNumber,l=a.isErroredLine,s={};return i&&(s["data-nextjs-codeframe-line"]=i),l&&(s["data-nextjs-codeframe-line--errored"]=!0),(0,S.jsx)("div",(n=e1({},s),r=r={children:o.map(function(e,t){return(0,S.jsx)("span",{style:e1({color:e.fg?"var(--color-".concat(e.fg,")"):void 0},"bold"===e.decoration?{fontWeight:500}:"italic"===e.decoration?{fontStyle:"italic"}:void 0),children:e.content},"frame-".concat(t))})},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}),n),"line-".concat(t))})})})]})}var e3=function(e){var t,n,r,o,a,i,l=(0,O.c)(8);return(l[0]!==e?(a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]),r=e.children,o=e.className,l[0]=e,l[1]=r,l[2]=o,l[3]=a):(r=l[1],o=l[2],a=l[3]),l[4]!==r||l[5]!==o||l[6]!==a)?(i=(0,S.jsx)("div",(t=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className"]),r=e.children,o=e.className,l[0]=e,l[1]=r,l[2]=o,l[3]=a):(r=l[1],o=l[2],a=l[3]),l[4]!==r||l[5]!==o||l[6]!==a)?(i=(0,S.jsx)("div",(t=function(e){for(var t=1;t [data-nextjs-dialog-header] {\n flex-shrink: 0;\n margin-bottom: 8px;\n }\n\n [data-nextjs-dialog-content] > [data-nextjs-dialog-body] {\n position: relative;\n flex: 1 1 auto;\n }\n\n @media (max-height: 812px) {\n [data-nextjs-dialog-overlay] {\n max-height: calc(100% - 15px);\n }\n }\n\n @media (min-width: 576px) {\n [data-nextjs-dialog-root] {\n --next-dialog-max-width: 540px;\n }\n }\n\n @media (min-width: 768px) {\n [data-nextjs-dialog-root] {\n --next-dialog-max-width: 720px;\n }\n }\n\n @media (min-width: 992px) {\n [data-nextjs-dialog-root] {\n --next-dialog-max-width: 960px;\n }\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return e5=function(){return n},n}var e6=eg(e5());function e9(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["content","getContent","actionLabel","successLabel","icon","disabled"]),n=e.content,o=e.getContent,t=e.actionLabel,l=e.successLabel,a=e.icon,r=e.disabled,y[0]=e,y[1]=t,y[2]=n,y[3]=r,y[4]=o,y[5]=a,y[6]=i,y[7]=l):(t=y[1],n=y[2],r=y[3],o=y[4],a=y[5],i=y[6],l=y[7]),y[8]!==n||y[9]!==o?(s=n||(o?o():""),y[8]=n,y[9]=o,y[10]=s):s=y[10];var v=tt(ta(s),4),b=v[0],x=v[1],w=v[2],_=v[3],j="error"===b.state?b.error:null;y[11]!==j?(c=function(){null!==j&&console.warn(j)},u=[j],y[11]=j,y[12]=c,y[13]=u):(c=y[12],u=y[13]),C.useEffect(c,u),y[14]!==b.state||y[15]!==w?(d=function(){if("success"===b.state){var e=setTimeout(function(){w()},2e3);return function(){clearTimeout(e)}}},y[14]=b.state,y[15]=w,y[16]=d):d=y[16],y[17]!==b.state||y[18]!==_||y[19]!==w?(f=[_,b.state,w],y[17]=b.state,y[18]=_,y[19]=w,y[20]=f):f=y[20],C.useEffect(d,f);var k=!navigator.clipboard||_||r||!!j,P="success"===b.state?l:t;y[21]!==b.state||y[22]!==a?(p="success"===b.state?(0,S.jsx)(ts,{}):a||(0,S.jsx)(tl,{width:14,height:14,className:"error-overlay-toolbar-button-icon"}),y[21]=b.state,y[22]=a,y[23]=p):p=y[23];var E=p,T="nextjs-data-copy-button--".concat(b.state);y[24]!==e.className||y[25]!==T?(h=e9(e.className,"nextjs-data-copy-button",T),y[24]=e.className,y[25]=T,y[26]=h):h=y[26],y[27]!==x||y[28]!==k?(m=function(){k||x()},y[27]=x,y[28]=k,y[29]=m):m=y[29];var N="error"===b.state?" ".concat(b.error):null;return y[30]!==k||y[31]!==P||y[32]!==E||y[33]!==i||y[34]!==h||y[35]!==m||y[36]!==N?(g=(0,S.jsxs)("button",te(e7({},i),{type:"button",title:P,"aria-label":P,"aria-disabled":k,disabled:k,"data-nextjs-copy-button":!0,className:h,onClick:m,children:[E,N]})),y[30]=k,y[31]=P,y[32]=E,y[33]=i,y[34]=h,y[35]=m,y[36]=N,y[37]=g):g=y[37],g}function tl(e){var t,n,r=(0,O.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.406.438c-.845 0-1.531.685-1.531 1.53v6.563c0 .846.686 1.531 1.531 1.531H3.937V8.75H2.406a.219.219 0 0 1-.219-.219V1.97c0-.121.098-.219.22-.219h4.812c.12 0 .218.098.218.219v.656H8.75v-.656c0-.846-.686-1.532-1.531-1.532H2.406zm4.375 3.5c-.845 0-1.531.685-1.531 1.53v6.563c0 .846.686 1.531 1.531 1.531h4.813c.845 0 1.531-.685 1.531-1.53V5.468c0-.846-.686-1.532-1.531-1.532H6.78zm-.218 1.53c0-.12.097-.218.218-.218h4.813c.12 0 .219.098.219.219v6.562c0 .121-.098.219-.22.219H6.782a.219.219 0 0 1-.218-.219V5.47z",fill:"currentColor"}),r[0]=t):t=r[0],r[1]!==e?(n=(0,S.jsx)("svg",te(e7({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:t})),r[1]=e,r[2]=n):n=r[2],n}function ts(){var e,t=(0,O.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,S.jsx)("svg",{height:"16",xlinkTitle:"copied",viewBox:"0 0 16 16",width:"16",stroke:"currentColor",fill:"currentColor",children:(0,S.jsx)("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})}),t[0]=e):e=t[0],e}function tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n\.(.*)\nThis will cause a hydration error\.(.*)/,/^In HTML, (.+?) cannot be a descendant of <(.+?)>\.\nThis will cause a hydration error\.(.*)/,/^In HTML, text nodes cannot be a child of <(.+?)>\.\nThis will cause a hydration error\./,/^In HTML, whitespace text nodes cannot be a child of <(.+?)>\. Make sure you don't have any extra whitespace between tags on each line of your source code\.\nThis will cause a hydration error\./];function tO(e){return tS.some(function(t){return t.test(e)})}var tC=["https://nextjs.org","https://react.dev"];function tP(e){return tC.some(function(t){return e.startsWith(t)})}function tE(e){var t,n,r,o,a=(0,O.c)(6),i=e.errorMessage;a[0]!==i?(t=function(e){var t,n,r,o=(t=e,n=tP,r=Array.from(t.matchAll(/https?:\/\/[^\s/$.?#].[^\s)'"]*/gi),function(e){return e[0]}),n?r.filter(function(e){return n(e)}):r);if(0===o.length)return null;var a=o[0];return a===tj?tk:a}(i),a[0]=i,a[1]=t):t=a[1];var l=t;return l?(a[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,S.jsx)(tT,{className:"error-overlay-toolbar-button-icon",width:14,height:14}),a[3]=r):r=a[3],a[4]!==l?(o=(0,S.jsx)("a",{title:"Go to related documentation","aria-label":"Go to related documentation",className:"docs-link-button",href:l,target:"_blank",rel:"noopener noreferrer",children:r}),a[4]=l,a[5]=o):o=a[5],o):(a[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,S.jsx)("button",{title:"No related documentation found","aria-label":"No related documentation found",className:"docs-link-button",disabled:!0,children:(0,S.jsx)(tT,{className:"error-overlay-toolbar-button-icon",width:14,height:14})}),a[2]=n):n=a[2],n)}function tT(e){var t,n,r,o,a=(0,O.c)(3);return(a[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 .875h4.375C5.448.875 6.401 1.39 7 2.187A3.276 3.276 0 0 1 9.625.875H14v11.156H9.4c-.522 0-1.023.208-1.392.577l-.544.543h-.928l-.544-.543c-.369-.37-.87-.577-1.392-.577H0V.875zm6.344 3.281a1.969 1.969 0 0 0-1.969-1.968H1.312v8.53H4.6c.622 0 1.225.177 1.744.502V4.156zm1.312 7.064V4.156c0-1.087.882-1.968 1.969-1.968h3.063v8.53H9.4c-.622 0-1.225.177-1.744.502z",fill:"currentColor"}),a[0]=r):r=a[0],a[1]!==e)?(o=(0,S.jsx)("svg",(t=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]e.length)&&(t=e.length);for(var n=0,r=Array(t);n200)},i[0]=t):t=i[0],i[1]!==l?(n=[l],i[1]=l,i[2]=n):n=i[2],(0,C.useLayoutEffect)(t,n);var g=p&&"Blocking Route"!==s,y="nextjs__container_errors_desc ".concat(g&&!u?"truncated":"");return i[3]!==l||i[4]!==y?(r=(0,S.jsx)("div",{ref:m,id:"nextjs__container_errors_desc",className:y,children:l}),i[3]=l,i[4]=y,i[5]=r):r=i[5],i[6]!==u||i[7]!==g?(o=g&&!u&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"nextjs__container_errors_gradient_overlay"}),(0,S.jsx)("button",{onClick:function(){return d(!0)},className:"nextjs__container_errors_expand_button","aria-expanded":u,"aria-controls":"nextjs__container_errors_desc",children:"Show More"})]}),i[6]=u,i[7]=g,i[8]=o):o=i[8],i[9]!==r||i[10]!==o?(a=(0,S.jsxs)("div",{className:"nextjs__container_errors_wrapper",children:[r,o]}),i[9]=r,i[10]=o,i[11]=a):a=i[11],a}function tV(e){var t,n=(0,O.c)(3),r=e.errorType,o="nextjs__container_errors_label ".concat("Blocking Route"===r||"Ambiguous Metadata"===r?"nextjs__container_errors_label_blocking_page":"");return n[0]!==r||n[1]!==o?(t=(0,S.jsx)("span",{id:"nextjs__container_errors_label",className:o,children:r}),n[0]=r,n[1]=o,n[2]=t):t=n[2],t}function tB(e){var t,n,r=(0,O.c)(4),o=e.title,a=e.className;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.24996 12.0608L8.71963 11.5304L5.89641 8.70722C5.50588 8.3167 5.50588 7.68353 5.89641 7.29301L8.71963 4.46978L9.24996 3.93945L10.3106 5.00011L9.78029 5.53044L7.31062 8.00011L9.78029 10.4698L10.3106 11.0001L9.24996 12.0608Z",fill:"currentColor"}),r[0]=t):t=r[0],r[1]!==a||r[2]!==o?(n=(0,S.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":o,className:a,children:t}),r[1]=a,r[2]=o,r[3]=n):n=r[3],n}function t$(e){var t,n,r=(0,O.c)(4),o=e.title,a=e.className;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75011 3.93945L7.28044 4.46978L10.1037 7.29301C10.4942 7.68353 10.4942 8.3167 10.1037 8.70722L7.28044 11.5304L6.75011 12.0608L5.68945 11.0001L6.21978 10.4698L8.68945 8.00011L6.21978 5.53044L5.68945 5.00011L6.75011 3.93945Z",fill:"currentColor"}),r[0]=t):t=r[0],r[1]!==a||r[2]!==o?(n=(0,S.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"aria-label":o,children:t}),r[1]=a,r[2]=o,r[3]=n):n=r[3],n}function tq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(Math.max(0,b-1))})},y[0]=b,y[1]=x,y[2]=n):n=y[2];var w=n;y[3]!==b||y[4]!==x||y[5]!==v.length?(r=function(){return(0,C.startTransition)(function(){b=v.length-1,D=b>=v.length-1;return y[31]===Symbol.for("react.memo_cache_sentinel")?(h=(0,S.jsx)(t$,{title:"next",className:"error-overlay-pagination-button-icon"}),y[31]=h):h=y[31],y[32]!==_||y[33]!==R||y[34]!==D?(m=(0,S.jsx)("button",{ref:k,type:"button",disabled:R,"aria-disabled":D,onClick:_,"data-nextjs-dialog-error-next":!0,className:"error-overlay-pagination-button",children:h}),y[32]=_,y[33]=R,y[34]=D,y[35]=m):m=y[35],y[36]!==u||y[37]!==p||y[38]!==m?(g=(0,S.jsxs)("nav",{className:"error-overlay-pagination dialog-exclude-closing-from-outside-click",ref:N,children:[u,p,m]}),y[36]=u,y[37]=p,y[38]=m,y[39]=g):g=y[39],g}function tK(e){var t,n,r,o,a=(0,O.c)(3);return(a[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,S.jsx)("circle",{cx:"7",cy:"7",r:"5.5",strokeWidth:"3"}),a[0]=r):r=a[0],a[1]!==e)?(o=(0,S.jsx)("svg",(t=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","className","onClose","aria-labelledby","aria-describedby"]),f=e.children,p=e.className,h=e.onClose,d=e["aria-labelledby"],u=e["aria-describedby"],j[0]=e,j[1]=u,j[2]=d,j[3]=f,j[4]=p,j[5]=h,j[6]=m):(u=j[1],d=j[2],f=j[3],p=j[4],h=j[5],m=j[6]);var k=C.useRef(null),P=(t=C.useState("undefined"!=typeof document&&document.hasFocus()?"dialog":void 0),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),2!==a.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw r}}return a}}(t,2)||function(e,t){if(e){if("string"==typeof e)return t0(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t0(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=P[0],T=P[1];return(j[7]!==h?(g=function(e){return e.preventDefault(),null==h?void 0:h()},j[7]=h,j[8]=g):g=j[8],n=k,r=t1,o=g,(l=(0,O.c)(5))[0]!==r||l[1]!==n||l[2]!==o?(a=function(){var e=n&&"current"in n?n.current:n;if(null!=e&&null!=o){var t=function(t){!e||e.contains(t.target)||r.some(function(e){return t.target.closest(e)})||o(t)},a=e.getRootNode();return a.addEventListener("mouseup",t),a.addEventListener("touchend",t,{passive:!1}),function(){a.removeEventListener("mouseup",t),a.removeEventListener("touchend",t)}}},i=[o,n,r],l[0]=r,l[1]=n,l[2]=o,l[3]=a,l[4]=i):(a=l[3],i=l[4]),C.useEffect(a,i),j[9]===Symbol.for("react.memo_cache_sentinel")?(y=function(){if(null!=k.current){var e=function(){T(document.hasFocus()?"dialog":void 0)};return window.addEventListener("focus",e),window.addEventListener("blur",e),function(){window.removeEventListener("focus",e),window.removeEventListener("blur",e)}}},v=[],j[9]=y,j[10]=v):(y=j[9],v=j[10]),C.useEffect(y,v),j[11]===Symbol.for("react.memo_cache_sentinel")?(b=function(){var e,t,n=k.current,r=null==n?void 0:n.getRootNode(),o=(e=r,null!=(t=ShadowRoot)&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)?null==r?void 0:r.activeElement:null;return null==n||n.focus(),function(){null==n||n.blur(),null==o||o.focus()}},x=[],j[11]=b,j[12]=x):(b=j[11],x=j[12]),C.useEffect(b,x),j[13]!==h?(w=function(e){"Escape"===e.key&&(null==h||h())},j[13]=h,j[14]=w):w=j[14],j[15]!==u||j[16]!==d||j[17]!==f||j[18]!==p||j[19]!==m||j[20]!==E||j[21]!==w)?(_=(0,S.jsx)("div",(s=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","onClose","footer"]),r=e.children,a=e.onClose,o=e.footer,c[0]=e,c[1]=r,c[2]=o,c[3]=a,c[4]=i):(r=c[1],o=c[2],a=c[3],i=c[4]),c[5]!==r||c[6]!==a||c[7]!==i)?(l=(0,S.jsx)(t2,(t=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","children"]),o=e.className,r=e.children,s[0]=e,s[1]=r,s[2]=o,s[3]=a):(r=s[1],o=s[2],a=s[3]),s[4]===Symbol.for("react.memo_cache_sentinel")?(i=[],s[4]=i):i=s[4],C.useEffect(ne,i),s[5]!==r||s[6]!==o||s[7]!==a)?(l=(0,S.jsx)("div",(t=function(e){for(var t=1;t0)){var e=window.innerWidth-document.documentElement.clientWidth;e>0&&(l=document.body.style.paddingRight,document.body.style.paddingRight="".concat(e,"px")),s=document.body.style.overflow,document.body.style.overflow="hidden"}}),t7}function nt(){var e,t,n=(e=["\n [data-nextjs-dialog-overlay] {\n padding: initial;\n top: 10vh;\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return nt=function(){return n},n}function nn(e){var t,n,r,o,a,i=(0,O.c)(6);return(i[0]!==e?(o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children"]),r=e.children,i[0]=e,i[1]=r,i[2]=o):(r=i[1],o=i[2]),i[3]!==r||i[4]!==o)?(a=(0,S.jsx)(t8,(t=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.current.getBoundingClientRect().left-10&&n.clientX<=e.current.getBoundingClientRect().right+10&&n.clientY>=e.current.getBoundingClientRect().top-10&&n.clientY<=e.current.getBoundingClientRect().bottom+10||null!=(a=t.current)&&a.getBoundingClientRect()&&n.clientX>=t.current.getBoundingClientRect().left-10&&n.clientX<=t.current.getBoundingClientRect().right+10&&n.clientY>=t.current.getBoundingClientRect().top-10&&n.clientY<=t.current.getBoundingClientRect().bottom+10||r("outside"))},s=function(e){"Escape"===e.key&&r("escape")};return null==i||i.addEventListener("mousedown",l),null==i||i.addEventListener("keydown",s),function(){null==i||i.removeEventListener("mousedown",l),null==i||i.removeEventListener("keydown",s)}}},i=[n,r,o,e,t],l[0]=n,l[1]=r,l[2]=o,l[3]=e,l[4]=t,l[5]=a,l[6]=i):(a=l[5],i=l[6]),(0,C.useEffect)(a,i)}var nc="cubic-bezier(0.175, 0.885, 0.32, 1.1)",nu=(0,C.forwardRef)(function(e,t){var n,r,o=(0,O.c)(9),a=e.stop,i=e.blur,l=e.side,s=e.style,c=e.height,u="".concat(c,"px");o[0]!==i||o[1]!==a||o[2]!==s||o[3]!==u?(n=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","measure"]),g=e.children,y=e.measure,_[0]=e,_[1]=g,_[2]=y,_[3]=v):(g=_[1],y=_[2],v=_[3]);var j=nf((0,C.useState)(null),2),k=j[0],P=j[1],E=nf((n=k,r=y,l=(0,O.c)(7),c=(s=nf((0,C.useState)(0),2))[0],u=s[1],f=(d=nf((0,C.useState)(!0),2))[0],p=d[1],l[0]!==n||l[1]!==r?(o=function(){if(r&&n){var e,t=new ResizeObserver(function(t){var n=nf(t,1)[0].contentRect;clearTimeout(e),e=window.setTimeout(function(){p(!1)},100),u(n.height)});return t.observe(n),function(){return t.disconnect()}}},a=[r,n],l[0]=n,l[1]=r,l[2]=o,l[3]=a):(o=l[2],a=l[3]),(0,C.useEffect)(o,a),l[4]!==c||l[5]!==f?(i=[c,f],l[4]=c,l[5]=f,l[6]=i):i=l[6],i),2),T=E[0],N=E[1]?"auto":T;return(_[4]!==N?(b={height:N,transition:"height 250ms var(--timing-swift)"},_[4]=N,_[5]=b):b=_[5],_[6]!==g?(x=(0,S.jsx)("div",{ref:P,children:g}),_[6]=g,_[7]=x):x=_[7],_[8]!==v||_[9]!==t||_[10]!==b||_[11]!==x)?(w=(0,S.jsx)("div",(h=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["fixed"]),t=e.fixed,o[0]=e,o[1]=t,o[2]=n):(t=o[1],n=o[2]);var a=!!t||void 0;return o[3]!==n||o[4]!==a?(r=(0,S.jsx)("div",function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n h1 {\n font-size: var(--size-20);\n line-height: var(--size-24);\n font-weight: bold;\n margin: calc(16px * 1.5) 0;\n color: var(--color-title-h1);\n }\n .nextjs-container-errors-header small {\n font-size: var(--size-14);\n color: var(--color-accents-1);\n margin-left: 16px;\n }\n .nextjs-container-errors-header small > span {\n font-family: var(--font-stack-monospace);\n }\n .nextjs-container-errors-header > div > small {\n margin: 0;\n margin-top: 4px;\n }\n .nextjs-container-errors-header > p > a {\n color: inherit;\n font-weight: bold;\n }\n .nextjs-container-errors-header\n > .nextjs-container-build-error-version-status {\n position: absolute;\n top: 16px;\n right: 16px;\n }\n","\n ").concat("","\n\n ").concat("\n [data-nextjs-error-overlay-nav] {\n --stroke-color: var(--color-gray-400);\n --background-color: var(--color-background-100);\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n width: 100%;\n\n position: relative;\n z-index: 2;\n outline: none;\n translate: var(--next-dialog-border-width) var(--next-dialog-border-width);\n max-width: var(--next-dialog-max-width);\n\n .error-overlay-notch {\n translate: calc(var(--next-dialog-border-width) * -1);\n width: auto;\n height: var(--next-dialog-notch-height);\n padding: 12px;\n background: var(--background-color);\n border: var(--next-dialog-border-width) solid var(--stroke-color);\n border-bottom: none;\n position: relative;\n\n &[data-side='left'] {\n padding-right: 0;\n border-radius: var(--next-dialog-radius) 0 0 0;\n\n .error-overlay-notch-tail {\n right: -54px;\n }\n\n > *:not(.error-overlay-notch-tail) {\n margin-right: -10px;\n }\n }\n\n &[data-side='right'] {\n padding-left: 0;\n border-radius: 0 var(--next-dialog-radius) 0 0;\n\n .error-overlay-notch-tail {\n left: -54px;\n transform: rotateY(180deg);\n }\n\n > *:not(.error-overlay-notch-tail) {\n margin-left: -12px;\n }\n }\n\n .error-overlay-notch-tail {\n position: absolute;\n top: calc(var(--next-dialog-border-width) * -1);\n pointer-events: none;\n z-index: -1;\n height: calc(100% + var(--next-dialog-border-width));\n }\n }\n }\n\n @media (max-width: 600px) {\n [data-nextjs-error-overlay-nav] {\n background: var(--background-color);\n border-radius: var(--next-dialog-radius) var(--next-dialog-radius) 0 0;\n border: var(--next-dialog-border-width) solid var(--stroke-color);\n border-bottom: none;\n overflow: hidden;\n translate: 0 var(--next-dialog-border-width);\n \n .error-overlay-notch {\n border-radius: 0;\n border: 0;\n\n &[data-side=\"left\"], &[data-side=\"right\"] {\n border-radius: 0;\n }\n\n .error-overlay-notch-tail {\n display: none;\n }\n }\n }\n }\n","\n ").concat("\n .nextjs__container_errors_label {\n padding: 2px 6px;\n margin: 0;\n border-radius: var(--rounded-md-2);\n background: var(--color-red-100);\n font-weight: 600;\n font-size: var(--size-12);\n color: var(--color-red-900);\n font-family: var(--font-stack-monospace);\n line-height: var(--size-20);\n }\n\n .nextjs__container_errors_label_blocking_page {\n background: var(--color-blue-100);\n color: var(--color-blue-900);\n }\n","\n ").concat("\n .nextjs__container_errors_wrapper {\n position: relative;\n }\n\n .nextjs__container_errors_desc {\n margin: 0;\n margin-left: 4px;\n color: var(--color-red-900);\n font-weight: 500;\n font-size: var(--size-16);\n letter-spacing: -0.32px;\n line-height: var(--size-24);\n overflow-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .nextjs__container_errors_desc.truncated {\n max-height: 200px;\n overflow: hidden;\n }\n\n .nextjs__container_errors_gradient_overlay {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 85px;\n background: linear-gradient(\n 180deg,\n rgba(250, 250, 250, 0) 0%,\n var(--color-background-100) 100%\n );\n }\n\n .nextjs__container_errors_expand_button {\n position: absolute;\n bottom: 10px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n align-items: center;\n padding: 6px 8px;\n background: var(--color-background-100);\n border: 1px solid var(--color-gray-alpha-400);\n border-radius: 999px;\n box-shadow:\n 0px 2px 2px var(--color-gray-alpha-100),\n 0px 8px 8px -8px var(--color-gray-alpha-100);\n font-size: var(--size-13);\n cursor: pointer;\n color: var(--color-gray-900);\n font-weight: 500;\n transition: background-color 0.2s ease;\n }\n\n .nextjs__container_errors_expand_button:hover {\n background: var(--color-gray-100);\n }\n","\n ").concat("\n .error-overlay-toolbar {\n display: flex;\n gap: 6px;\n }\n\n .nodejs-inspector-button,\n .copy-error-button,\n .docs-link-button {\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: var(--size-28);\n height: var(--size-28);\n background: var(--color-background-100);\n background-clip: padding-box;\n border: 1px solid var(--color-gray-alpha-400);\n box-shadow: var(--shadow-small);\n border-radius: var(--rounded-full);\n\n svg {\n width: var(--size-14);\n height: var(--size-14);\n }\n\n &:focus {\n outline: var(--focus-ring);\n }\n\n &:not(:disabled):hover {\n background: var(--color-gray-alpha-100);\n }\n\n &:not(:disabled):active {\n background: var(--color-gray-alpha-200);\n }\n\n &:disabled {\n background-color: var(--color-gray-100);\n cursor: not-allowed;\n }\n }\n\n .nodejs-inspector-button[data-pending='true'] {\n cursor: wait;\n }\n\n .error-overlay-toolbar-button-icon {\n color: var(--color-gray-900);\n }\n","\n\n [data-nextjs-error-label-group] {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n");function nw(){var e,t,n=(e=["\n [data-nextjs-dialog-overlay] {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n /* secondary z-index, -1 than toast z-index */\n z-index: 2147483646;\n\n display: flex;\n align-content: center;\n align-items: center;\n flex-direction: column;\n padding: 10vh 15px 0;\n }\n\n @media (max-height: 812px) {\n [data-nextjs-dialog-overlay] {\n padding: 15px 15px 0;\n }\n }\n\n [data-nextjs-dialog-backdrop] {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--color-backdrop);\n backdrop-filter: blur(10px);\n pointer-events: all;\n z-index: -1;\n }\n\n [data-nextjs-dialog-backdrop-fixed] {\n cursor: not-allowed;\n -webkit-backdrop-filter: blur(8px);\n backdrop-filter: blur(8px);\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return nw=function(){return n},n}var n_=eg(nw());function nj(e){var t,n,r,o,a,i=(0,O.c)(9),l=e.file,s=e.location,c=null!=(t=null==s?void 0:s.line)?t:1,u=null!=(n=null==s?void 0:s.column)?n:1;i[0]!==l||i[1]!==c||i[2]!==u?(r={file:l,line1:c,column1:u},i[0]=l,i[1]=c,i[2]=u,i[3]=r):r=i[3];var d=eM(r),f=s?":".concat(s.line,":").concat(s.column):null;return i[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,S.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,S.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,S.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]}),i[4]=o):o=i[4],i[5]!==l||i[6]!==d||i[7]!==f?(a=(0,S.jsxs)("div",{"data-with-open-in-editor-link":!0,"data-with-open-in-editor-link-import-trace":!0,role:"link",onClick:d,title:"Click to open in your editor",children:[l,f,o]}),i[5]=l,i[6]=d,i[7]=f,i[8]=a):a=i[8],a}function nk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["message"]),r=e.message,u[0]=e,u[1]=r,u[2]=o):(r=u[1],o=u[2]),u[3]!==r?(a=Error(r),u[3]=r,u[4]=a):a=u[4];var d=a;u[5]!==r?(i=nO(r)||"Failed to compile",u[5]=r,u[6]=i):i=u[6];var f=i;u[7]!==f||u[8]!==r||u[9]!==o.versionInfo.installed?(l=function(){var e=[];if(e.push("## Error Type\nBuild Error"),f&&e.push("## Error Message\n".concat(f)),r){var t=eJ()(r);e.push("## Build Output\n".concat(t))}return"".concat(e.join("\n\n"),"\n\nNext.js version: ").concat(o.versionInfo.installed," (").concat(process.env.__NEXT_BUNDLER,")\n")},u[7]=f,u[8]=r,u[9]=o.versionInfo.installed,u[10]=l):l=u[10];var p=l;return(u[11]!==r?(s=(0,S.jsx)(nS,{content:r}),u[11]=r,u[12]=s):s=u[12],u[13]!==d||u[14]!==f||u[15]!==p||u[16]!==o||u[17]!==s)?(c=(0,S.jsx)(nb,(t=function(e){for(var t=1;t0&&(0,S.jsxs)("button",{"data-nextjs-call-stack-ignored-list-toggle-button":c,onClick:d,children:["".concat(c?"Hide":"Show"," ").concat(u," ignore-listed frame(s)"),(0,S.jsx)(nT,{})]}),l[2]=u,l[3]=c,l[4]=d,l[5]=n):n=l[5],l[6]!==t||l[7]!==n?(r=(0,S.jsxs)("div",{"data-nextjs-call-stack-header":!0,children:[t,n]}),l[6]=t,l[7]=n,l[8]=r):r=l[8],l[9]!==s||l[10]!==c?(l[12]!==c?(a=function(e,t){return!e.ignored||c?(0,S.jsx)(nE,{frame:e},t):null},l[12]=c,l[13]=a):a=l[13],o=s.map(a),l[9]=s,l[10]=c,l[11]=o):o=l[11],l[14]!==r||l[15]!==o?(i=(0,S.jsxs)("div",{"data-nextjs-call-stack-container":!0,children:[r,o]}),l[14]=r,l[15]=o,l[16]=i):i=l[16],i}var nL=eg(nN());function nA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n"===e[0],l=a||i,s=l?e[0]:"",c=l?e.indexOf(s):-1,u=nM(l?[e.slice(0,c),e.slice(c+1)]:[e,""],2),d=u[0],f=u[1];a?t.push((0,S.jsx)("span",{"data-nextjs-container-errors-pseudo-html-line":!0,"data-nextjs-container-errors-pseudo-html--diff":"+"===s?"add":"remove",children:(0,S.jsxs)("span",{children:[d,(0,S.jsx)("span",{"data-nextjs-container-errors-pseudo-html-line-sign":!0,children:s}),f,"\n"]})},"comp-diff"+n)):t.push((0,S.jsxs)("span",(r=function(e){for(var t=1;t0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&(0,S.jsx)(nz,{dialogResizerRef:l,frames:s}),a[2]=l,a[3]=s,a[4]=r):r=a[4],a[5]!==n||a[6]!==r?(o=(0,S.jsxs)(S.Fragment,{children:[n,r]}),a[5]=n,a[6]=r,a[7]=o):o=a[7],o}function nY(e){return!e.ignored&&!!e.originalCodeFrame&&!!e.originalStackFrame}var nX="\n ".concat("\n [data-nextjs-container-errors-pseudo-html] {\n padding: 8px 0;\n margin: 8px 0;\n border: 1px solid var(--color-gray-400);\n background: var(--color-background-200);\n color: var(--color-syntax-constant);\n font-family: var(--font-stack-monospace);\n font-size: var(--size-12);\n line-height: 1.33em; /* 16px in 12px font size */\n border-radius: var(--rounded-md-2);\n }\n [data-nextjs-container-errors-pseudo-html-line] {\n display: inline-block;\n width: 100%;\n padding-left: 40px;\n line-height: calc(5 / 3);\n }\n [data-nextjs-container-errors-pseudo-html--diff='error'] {\n background: var(--color-amber-100);\n box-shadow: 2px 0 0 0 var(--color-amber-900) inset;\n font-weight: bold;\n }\n [data-nextjs-container-errors-pseudo-html-collapse-button] {\n all: unset;\n margin-left: 12px;\n &:focus {\n outline: none;\n }\n }\n [data-nextjs-container-errors-pseudo-html--diff='add'] {\n background: var(--color-green-300);\n }\n [data-nextjs-container-errors-pseudo-html-line-sign] {\n margin-left: calc(24px * -1);\n margin-right: 24px;\n }\n [data-nextjs-container-errors-pseudo-html--diff='add']\n [data-nextjs-container-errors-pseudo-html-line-sign] {\n color: var(--color-green-900);\n }\n [data-nextjs-container-errors-pseudo-html--diff='remove'] {\n background: var(--color-red-300);\n }\n [data-nextjs-container-errors-pseudo-html--diff='remove']\n [data-nextjs-container-errors-pseudo-html-line-sign] {\n color: var(--color-red-900);\n margin-left: calc(24px * -1);\n margin-right: 24px;\n }\n [data-nextjs-container-errors-pseudo-html--diff='error']\n [data-nextjs-container-errors-pseudo-html-line-sign] {\n color: var(--color-amber-900);\n }\n \n [data-nextjs-container-errors-pseudo-html--hint] {\n display: inline-block;\n font-size: 0;\n height: 0;\n }\n [data-nextjs-container-errors-pseudo-html--tag-adjacent='false'] {\n color: var(--color-accents-1);\n }\n .nextjs__container_errors__component-stack {\n margin: 0;\n }\n [data-nextjs-container-errors-pseudo-html-collapse='true']\n .nextjs__container_errors__component-stack\n code {\n max-height: 120px;\n mask-image: linear-gradient(to bottom,rgba(0,0,0,0) 0%,black 10%);\n padding-bottom: 40px;\n }\n .nextjs__container_errors__component-stack code {\n display: block;\n width: 100%;\n white-space: pre-wrap;\n scroll-snap-type: y mandatory;\n overflow-y: hidden;\n }\n [data-nextjs-container-errors-pseudo-html--diff] {\n scroll-snap-align: center;\n }\n .error-overlay-hydration-error-diff-plus-icon {\n color: var(--color-green-900);\n }\n .error-overlay-hydration-error-diff-minus-icon {\n color: var(--color-red-900);\n }\n","\n");function nG(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function nQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n"})]})," ","somewhere in a Page or Layout. This tells Next.js that the page is intended to have some non-prerenderable parts."]}),w[8]=c):c=w[8],w[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,S.jsxs)("div",{className:"nextjs__blocking_page_load_error_description",children:[t,r,o,i,l,c,(0,S.jsxs)("p",{children:["Learn more:"," ",(0,S.jsx)("a",{href:"https://nextjs.org/docs/messages/next-prerender-dynamic-metadata",children:"https://nextjs.org/docs/messages/next-prerender-dynamic-metadata"})]})]}),w[9]=u):u=w[9],u):(w[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,S.jsxs)("h3",{className:"nextjs__blocking_page_load_error_description_title",children:["Runtime data was accessed inside ",(0,S.jsx)("code",{children:"generateMetadata()"})," or file-based metadata"]}),f=(0,S.jsx)("p",{children:"When Document metadata is the only part of a page that cannot be prerendered Next.js expects you to either make it prerenderable or make some other part of the page non-prerenderable to avoid unintentional partially dynamic pages."}),p=(0,S.jsx)("h4",{children:"To fix this:"}),w[10]=d,w[11]=f,w[12]=p):(d=w[10],f=w[11],p=w[12]),w[13]===Symbol.for("react.memo_cache_sentinel")?(h=(0,S.jsxs)("strong",{children:["Remove the Runtime data access from ",(0,S.jsx)("code",{children:"generateMetadata()"})]}),w[13]=h):h=w[13],w[14]===Symbol.for("react.memo_cache_sentinel")?(m=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[h,". This allows Next.js to statically prerender"," ",(0,S.jsx)("code",{children:"generateMetadata()"})," as part of the HTML document, so it's instantly visible to the user."]}),g=(0,S.jsx)("h4",{className:"nextjs__blocking_page_load_error_fix_option_separator",children:"or"}),w[14]=m,w[15]=g):(m=w[14],g=w[15]),w[16]===Symbol.for("react.memo_cache_sentinel")?(y=(0,S.jsx)("code",{children:"connection()"}),w[16]=y):y=w[16],w[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[(0,S.jsxs)("strong",{children:["add ",y," inside a ",(0,S.jsx)("code",{children:""})]})," ","somewhere in a Page or Layout. This tells Next.js that the page is intended to have some non-prerenderable parts."]}),b=(0,S.jsx)("p",{children:"Note that if you are using file-based metadata, such as icons, inside a route with dynamic params then the only recourse is to make some other part of the page non-prerenderable."}),w[17]=v,w[18]=b):(v=w[17],b=w[18]),w[19]===Symbol.for("react.memo_cache_sentinel")?(x=(0,S.jsxs)("div",{className:"nextjs__blocking_page_load_error_description",children:[d,f,p,m,g,v,b,(0,S.jsxs)("p",{children:["Learn more:"," ",(0,S.jsx)("a",{href:"https://nextjs.org/docs/messages/next-prerender-dynamic-metadata",children:"https://nextjs.org/docs/messages/next-prerender-dynamic-metadata"})]})]}),w[19]=x):x=w[19],x)}function n3(e){var t,n,r,o,a,i,l,s,c,u,d,f,p,h,m,g,y,v,b,x,w,_,j,k,C,P,E,T,N,I,L,A,z,R,D,M,Z,U,F,H,V,B,$,q,W,K,Y,X,G,Q,J,ee,et,en,er,eo,ea,ei,el,es,ec,eu,ed=(0,O.c)(62),ef=e.variant,ep=e.refinement;return"generateViewport"===ep?"navigation"===ef?(ed[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsxs)("h3",{className:"nextjs__blocking_page_load_error_description_title",children:["Data that blocks navigation was accessed inside"," ",(0,S.jsx)("code",{children:"generateViewport()"})]}),ed[0]=t):t=ed[0],ed[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,S.jsx)("code",{children:"fetch(...)"}),ed[1]=n):n=ed[1],ed[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,S.jsxs)("p",{children:["Viewport metadata needs to be available on page load so accessing data that waits for a user navigation while producing it prevents Next.js from prerendering an initial UI. Uncached data such as"," ",n,", cached data with a low expire time, or"," ",(0,S.jsx)("code",{children:"connection()"})," are all examples of data that only resolve on navigation."]}),o=(0,S.jsx)("h4",{children:"To fix this:"}),ed[2]=r,ed[3]=o):(r=ed[2],o=ed[3]),ed[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,S.jsxs)("strong",{children:["Move the asynchronous await into a Cache Component (",(0,S.jsx)("code",{children:'"use cache"'}),")"]}),ed[4]=a):a=ed[4],ed[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[a,". This allows Next.js to statically prerender"," ",(0,S.jsx)("code",{children:"generateViewport()"})," as part of the HTML document, so it's instantly visible to the user."]}),l=(0,S.jsx)("h4",{className:"nextjs__blocking_page_load_error_fix_option_separator",children:"or"}),ed[5]=i,ed[6]=l):(i=ed[5],l=ed[6]),ed[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,S.jsx)("code",{children:""}),ed[7]=s):s=ed[7],ed[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[(0,S.jsxs)("strong",{children:["Put a ",s," around your document"," ",(0,S.jsx)("code",{children:""}),"."]}),"This indicate to Next.js that you are opting into allowing blocking navigations for any page."]}),ed[8]=c):c=ed[8],ed[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,S.jsxs)("div",{className:"nextjs__blocking_page_load_error_description",children:[t,r,o,i,l,c,(0,S.jsxs)("p",{children:["Learn more:"," ",(0,S.jsx)("a",{href:"https://nextjs.org/docs/messages/next-prerender-dynamic-viewport",children:"https://nextjs.org/docs/messages/next-prerender-dynamic-viewport"})]})]}),ed[9]=u):u=ed[9],u):(ed[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,S.jsxs)("h3",{className:"nextjs__blocking_page_load_error_description_title",children:["Runtime data was accessed inside ",(0,S.jsx)("code",{children:"generateViewport()"})]}),ed[10]=d):d=ed[10],ed[11]===Symbol.for("react.memo_cache_sentinel")?(f=(0,S.jsx)("code",{children:"cookies()"}),ed[11]=f):f=ed[11],ed[12]===Symbol.for("react.memo_cache_sentinel")?(p=(0,S.jsx)("code",{children:"headers()"}),ed[12]=p):p=ed[12],ed[13]===Symbol.for("react.memo_cache_sentinel")?(h=(0,S.jsxs)("p",{children:["Viewport metadata needs to be available on page load so accessing data that comes from a user Request while producing it prevents Next.js from prerendering an initial UI.",f,", ",p,", and"," ",(0,S.jsx)("code",{children:"searchParams"}),", are examples of Runtime data that can only come from a user request."]}),m=(0,S.jsx)("h4",{children:"To fix this:"}),ed[13]=h,ed[14]=m):(h=ed[13],m=ed[14]),ed[15]===Symbol.for("react.memo_cache_sentinel")?(g=(0,S.jsx)("strong",{children:"Remove the Runtime data requirement"}),ed[15]=g):g=ed[15],ed[16]===Symbol.for("react.memo_cache_sentinel")?(y=(0,S.jsx)("code",{children:"generateViewport"}),ed[16]=y):y=ed[16],ed[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[g," from"," ",y,". This allows Next.js to statically prerender ",(0,S.jsx)("code",{children:"generateViewport()"})," as part of the HTML document, so it's instantly visible to the user."]}),b=(0,S.jsx)("h4",{className:"nextjs__blocking_page_load_error_fix_option_separator",children:"or"}),ed[17]=v,ed[18]=b):(v=ed[17],b=ed[18]),ed[19]===Symbol.for("react.memo_cache_sentinel")?(x=(0,S.jsx)("code",{children:""}),ed[19]=x):x=ed[19],ed[20]===Symbol.for("react.memo_cache_sentinel")?(w=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[(0,S.jsxs)("strong",{children:["Put a ",x," around your document"," ",(0,S.jsx)("code",{children:""}),"."]}),"This indicate to Next.js that you are opting into allowing blocking navigations for any page."]}),_=(0,S.jsx)("code",{children:"params"}),ed[20]=w,ed[21]=_):(w=ed[20],_=ed[21]),ed[22]===Symbol.for("react.memo_cache_sentinel")?(j=(0,S.jsxs)("p",{children:[_," are usually considered Runtime data but if all params are provided a value using ",(0,S.jsx)("code",{children:"generateStaticParams"})," ","they can be statically prerendered."]}),ed[22]=j):j=ed[22],ed[23]===Symbol.for("react.memo_cache_sentinel")?(k=(0,S.jsxs)("div",{className:"nextjs__blocking_page_load_error_description",children:[d,h,m,v,b,w,j,(0,S.jsxs)("p",{children:["Learn more:"," ",(0,S.jsx)("a",{href:"https://nextjs.org/docs/messages/next-prerender-dynamic-viewport",children:"https://nextjs.org/docs/messages/next-prerender-dynamic-viewport"})]})]}),ed[23]=k):k=ed[23],k):"generateMetadata"===ep?"navigation"===ef?(ed[24]===Symbol.for("react.memo_cache_sentinel")?(C=(0,S.jsxs)("h3",{className:"nextjs__blocking_page_load_error_description_title",children:["Data that blocks navigation was accessed inside"," ",(0,S.jsx)("code",{children:"generateMetadata()"})," in an otherwise prerenderable page"]}),ed[24]=C):C=ed[24],ed[25]===Symbol.for("react.memo_cache_sentinel")?(P=(0,S.jsx)("code",{children:"fetch(...)"}),ed[25]=P):P=ed[25],ed[26]===Symbol.for("react.memo_cache_sentinel")?(E=(0,S.jsxs)("p",{children:["When Document metadata is the only part of a page that cannot be prerendered Next.js expects you to either make it prerenderable or make some other part of the page non-prerenderable to avoid unintentional partially dynamic pages. Uncached data such as"," ",P,", cached data with a low expire time, or"," ",(0,S.jsx)("code",{children:"connection()"})," are all examples of data that only resolve on navigation."]}),T=(0,S.jsx)("h4",{children:"To fix this:"}),ed[26]=E,ed[27]=T):(E=ed[26],T=ed[27]),ed[28]===Symbol.for("react.memo_cache_sentinel")?(N=(0,S.jsxs)("strong",{children:["Move the asynchronous await into a Cache Component (",(0,S.jsx)("code",{children:'"use cache"'}),")"]}),ed[28]=N):N=ed[28],ed[29]===Symbol.for("react.memo_cache_sentinel")?(I=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[N,". This allows Next.js to statically prerender"," ",(0,S.jsx)("code",{children:"generateMetadata()"})," as part of the HTML document, so it's instantly visible to the user."]}),L=(0,S.jsx)("h4",{className:"nextjs__blocking_page_load_error_fix_option_separator",children:"or"}),ed[29]=I,ed[30]=L):(I=ed[29],L=ed[30]),ed[31]===Symbol.for("react.memo_cache_sentinel")?(A=(0,S.jsx)("code",{children:"connection()"}),ed[31]=A):A=ed[31],ed[32]===Symbol.for("react.memo_cache_sentinel")?(z=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[(0,S.jsxs)("strong",{children:["add ",A," inside a ",(0,S.jsx)("code",{children:""})]})," ","somewhere in a Page or Layout. This tells Next.js that the page is intended to have some non-prerenderable parts."]}),ed[32]=z):z=ed[32],ed[33]===Symbol.for("react.memo_cache_sentinel")?(R=(0,S.jsxs)("div",{className:"nextjs__blocking_page_load_error_description",children:[C,E,T,I,L,z,(0,S.jsxs)("p",{children:["Learn more:"," ",(0,S.jsx)("a",{href:"https://nextjs.org/docs/messages/next-prerender-dynamic-metadata",children:"https://nextjs.org/docs/messages/next-prerender-dynamic-metadata"})]})]}),ed[33]=R):R=ed[33],R):(ed[34]===Symbol.for("react.memo_cache_sentinel")?(D=(0,S.jsxs)("h3",{className:"nextjs__blocking_page_load_error_description_title",children:["Runtime data was accessed inside ",(0,S.jsx)("code",{children:"generateMetadata()"})," or file-based metadata"]}),M=(0,S.jsx)("p",{children:"When Document metadata is the only part of a page that cannot be prerendered Next.js expects you to either make it prerenderable or make some other part of the page non-prerenderable to avoid unintentional partially dynamic pages."}),Z=(0,S.jsx)("h4",{children:"To fix this:"}),ed[34]=D,ed[35]=M,ed[36]=Z):(D=ed[34],M=ed[35],Z=ed[36]),ed[37]===Symbol.for("react.memo_cache_sentinel")?(U=(0,S.jsxs)("strong",{children:["Remove the Runtime data access from"," ",(0,S.jsx)("code",{children:"generateMetadata()"})]}),ed[37]=U):U=ed[37],ed[38]===Symbol.for("react.memo_cache_sentinel")?(F=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[U,". This allows Next.js to statically prerender"," ",(0,S.jsx)("code",{children:"generateMetadata()"})," as part of the HTML document, so it's instantly visible to the user."]}),H=(0,S.jsx)("h4",{className:"nextjs__blocking_page_load_error_fix_option_separator",children:"or"}),ed[38]=F,ed[39]=H):(F=ed[38],H=ed[39]),ed[40]===Symbol.for("react.memo_cache_sentinel")?(V=(0,S.jsx)("code",{children:"connection()"}),ed[40]=V):V=ed[40],ed[41]===Symbol.for("react.memo_cache_sentinel")?(B=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[(0,S.jsxs)("strong",{children:["add ",V," inside a ",(0,S.jsx)("code",{children:""})]})," ","somewhere in a Page or Layout. This tells Next.js that the page is intended to have some non-prerenderable parts."]}),$=(0,S.jsx)("p",{children:"Note that if you are using file-based metadata, such as icons, inside a route with dynamic params then the only recourse is to make some other part of the page non-prerenderable."}),ed[41]=B,ed[42]=$):(B=ed[41],$=ed[42]),ed[43]===Symbol.for("react.memo_cache_sentinel")?(q=(0,S.jsxs)("div",{className:"nextjs__blocking_page_load_error_description",children:[D,M,Z,F,H,B,$,(0,S.jsxs)("p",{children:["Learn more:"," ",(0,S.jsx)("a",{href:"https://nextjs.org/docs/messages/next-prerender-dynamic-metadata",children:"https://nextjs.org/docs/messages/next-prerender-dynamic-metadata"})]})]}),ed[43]=q):q=ed[43],q):"runtime"===ef?(ed[44]===Symbol.for("react.memo_cache_sentinel")?(W=(0,S.jsxs)("h3",{className:"nextjs__blocking_page_load_error_description_title",children:["Runtime data was accessed outside of ",""]}),ed[44]=W):W=ed[44],ed[45]===Symbol.for("react.memo_cache_sentinel")?(K=(0,S.jsx)("code",{children:"cookies()"}),ed[45]=K):K=ed[45],ed[46]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,S.jsx)("code",{children:"headers()"}),ed[46]=Y):Y=ed[46],ed[47]===Symbol.for("react.memo_cache_sentinel")?(X=(0,S.jsxs)("p",{children:["This delays the entire page from rendering, resulting in a slow user experience. Next.js uses this error to ensure your app loads instantly on every navigation. ",K,", ",Y,", and ",(0,S.jsx)("code",{children:"searchParams"}),", are examples of Runtime data that can only come from a user request."]}),G=(0,S.jsx)("h4",{children:"To fix this:"}),ed[47]=X,ed[48]=G):(X=ed[47],G=ed[48]),ed[49]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[(0,S.jsxs)("strong",{children:["Provide a fallback UI using ",""]})," around this component."]}),J=(0,S.jsx)("h4",{className:"nextjs__blocking_page_load_error_fix_option_separator",children:"or"}),ed[49]=Q,ed[50]=J):(Q=ed[49],J=ed[50]),ed[51]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,S.jsx)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:(0,S.jsxs)("strong",{children:["Move the Runtime data access into a deeper component wrapped in"," ","","."]})}),et=(0,S.jsx)("p",{children:"In either case this allows Next.js to stream its contents to the user when they request the page, while still providing an initial UI that is prerendered and prefetchable for instant navigations."}),ed[51]=ee,ed[52]=et):(ee=ed[51],et=ed[52]),ed[53]===Symbol.for("react.memo_cache_sentinel")?(en=(0,S.jsxs)("div",{className:"nextjs__blocking_page_load_error_description",children:[W,X,G,Q,J,ee,et,(0,S.jsxs)("p",{children:["Learn more:"," ",(0,S.jsx)("a",{href:"https://nextjs.org/docs/messages/blocking-route",children:"https://nextjs.org/docs/messages/blocking-route"})]})]}),ed[53]=en):en=ed[53],en):(ed[54]===Symbol.for("react.memo_cache_sentinel")?(er=(0,S.jsxs)("h3",{className:"nextjs__blocking_page_load_error_description_title",children:["Data that blocks navigation was accessed outside of ",""]}),ed[54]=er):er=ed[54],ed[55]===Symbol.for("react.memo_cache_sentinel")?(eo=(0,S.jsx)("code",{children:"fetch(...)"}),ed[55]=eo):eo=ed[55],ed[56]===Symbol.for("react.memo_cache_sentinel")?(ea=(0,S.jsxs)("p",{children:["This delays the entire page from rendering, resulting in a slow user experience. Next.js uses this error to ensure your app loads instantly on every navigation. Uncached data such as ",eo,", cached data with a low expire time, or ",(0,S.jsx)("code",{children:"connection()"})," are all examples of data that only resolve on navigation."]}),ei=(0,S.jsx)("h4",{children:"To fix this, you can either:"}),ed[56]=ea,ed[57]=ei):(ea=ed[56],ei=ed[57]),ed[58]===Symbol.for("react.memo_cache_sentinel")?(el=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[(0,S.jsxs)("strong",{children:["Provide a fallback UI using ",""]})," around this component. This allows Next.js to stream its contents to the user as soon as it's ready, without blocking the rest of the app."]}),es=(0,S.jsx)("h4",{className:"nextjs__blocking_page_load_error_fix_option_separator",children:"or"}),ed[58]=el,ed[59]=es):(el=ed[58],es=ed[59]),ed[60]===Symbol.for("react.memo_cache_sentinel")?(ec=(0,S.jsxs)("p",{className:"nextjs__blocking_page_load_error_fix_option",children:[(0,S.jsxs)("strong",{children:["Move the asynchronous await into a Cache Component (",(0,S.jsx)("code",{children:'"use cache"'}),")"]}),". This allows Next.js to statically prerender the component as part of the HTML document, so it's instantly visible to the user."]}),ed[60]=ec):ec=ed[60],ed[61]===Symbol.for("react.memo_cache_sentinel")?(eu=(0,S.jsxs)("div",{className:"nextjs__blocking_page_load_error_description",children:[er,ea,ei,el,es,ec,(0,S.jsxs)("p",{children:["Learn more:"," ",(0,S.jsx)("a",{href:"https://nextjs.org/docs/messages/blocking-route",children:"https://nextjs.org/docs/messages/blocking-route"})]})]}),ed[61]=eu):eu=ed[61],eu)}var n4={type:"empty"};function n5(e){var t,n,r,o=e.getSquashedHydrationErrorDetails,a=e.runtimeErrors,i=e.debugInfo,l=e.onClose,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["getSquashedHydrationErrorDetails","runtimeErrors","debugInfo","onClose"]),c=(0,C.useRef)(null),u=function(e){var t,n,r,o,a,i,l,s,c,u,d=(0,O.c)(16),f=e.runtimeErrors,p=e.getSquashedHydrationErrorDetails,h=(o=(0,C.useState)(0),function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),2!==a.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw r}}return a}}(o,2)||function(e,t){if(e){if("string"==typeof e)return nQ(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nQ(e,2)}}(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=h[0],g=h[1],y=0===f.length,v=null!=(i=f[m])?i:null,b=function(e,t){var n=(0,O.c)(5);n:{if(void 0===e){o=n4;break n}n[0]!==e||n[1]!==t?(a=function(e,t){var n,r,o,a=t(e);if(null!==a)return{type:"hydration",warning:null!=(r=a.warning)?r:null,notes:null,reactOutputComponentDiff:null!=(o=a.reactOutputComponentDiff)?o:null};if(!(tO((n=e).message)||/Hydration failed because the server rendered (text|HTML) didn't match the client\./.test(n.message)||/A tree hydrated but some attributes of the server rendered HTML didn't match the client properties./.test(n.message)))return null;var i=function(e){var t=e.message;if(tO(t)){var n=tx(t.split("\n\n"),2),r=n[0],o=n[1],a=(void 0===o?"":o).trim();return{message:""===a?t.trim():r.trim(),diff:a,notes:null}}var i=tx(t.split("".concat(tj)),2),l=i[0],s=i[1],c=l.trim();if(void 0!==s&&s.length>1){var u=[];s.split("\n").forEach(function(e){""!==e.trim()&&(e.trim().startsWith("at ")||u.push(e))});var d=tw(c.split("\n\n")),f=d[0],p=d.slice(1);return{message:f,diff:u.join("\n"),notes:p.join("\n\n")||null}}var h=tw(c.split("\n\n"));return{message:h[0],diff:null,notes:h.slice(1).join("\n\n")}}(e),l=i.message,s=i.notes,c=i.diff;return null===l?null:{type:"hydration",warning:l,notes:s,reactOutputComponentDiff:c}}(e,t),n[0]=e,n[1]=t,n[2]=a):a=n[2];var r,o,a,i,l=a;if(l){o=l;break n}n[3]!==e?(i=(r=e).message.includes("/blocking-route")?{type:"blocking-route",variant:r.message.includes("cookies()")?"runtime":"navigation",refinement:""}:r.message.includes("/next-prerender-dynamic-metadata")?{type:"dynamic-metadata",variant:r.message.includes("cookies()")?"runtime":"navigation"}:r.message.includes("/next-prerender-dynamic-viewport")?{type:"blocking-route",variant:r.message.includes("cookies()")?"runtime":"navigation",refinement:"generateViewport"}:null,n[3]=e,n[4]=i):i=n[4];var s=i;if(s){o=s;break n}o=n4}return o}(null==v?void 0:v.error,p);if(y||!v)return d[0]!==m||d[1]!==y?(l={isLoading:y,activeIdx:m,setActiveIndex:g,activeError:null,errorDetails:null,errorCode:null,errorType:null},d[0]=m,d[1]=y,d[2]=l):l=d[2],l;var x=v.error;d[3]!==x?(s=(void 0===(a=x)?"undefined":nG(a))==="object"&&null!==a&&"__NEXT_ERROR_CODE"in a&&"string"==typeof a.__NEXT_ERROR_CODE?a.__NEXT_ERROR_CODE:(void 0===a?"undefined":nG(a))==="object"&&null!==a&&"digest"in a&&"string"==typeof a.digest?a.digest.split("@").find(function(e){return e.startsWith("E")}):void 0,d[3]=x,d[4]=s):s=d[4];var w=s;d[5]!==v.type||d[6]!==x||d[7]!==b?(t=x,n=v.type,c="blocking-route"===(r=b).type?"Blocking Route":"dynamic-metadata"===r.type?"Ambiguous Metadata":"recoverable"===n?"Recoverable ".concat(t.name):"console"===n?"Console ".concat(t.name):"Runtime ".concat(t.name),d[5]=v.type,d[6]=x,d[7]=b,d[8]=c):c=d[8];var _=c;return d[9]!==v||d[10]!==m||d[11]!==w||d[12]!==b||d[13]!==_||d[14]!==y?(u={isLoading:y,activeIdx:m,setActiveIndex:g,activeError:v,errorDetails:b,errorCode:w,errorType:_},d[9]=v,d[10]=m,d[11]=w,d[12]=b,d[13]=_,d[14]=y,d[15]=u):u=d[15],u}({runtimeErrors:a,getSquashedHydrationErrorDetails:o}),d=u.isLoading,f=u.errorCode,p=u.errorType,h=u.activeIdx,m=u.errorDetails,g=u.activeError,y=u.setActiveIndex,v=nW(g),b=(0,C.useMemo)(function(){var e,t=v.findIndex(function(e){return!e.ignored&&!!e.originalCodeFrame&&!!e.originalStackFrame});return null!=(e=v[t])?e:null},[v]),x=(0,C.useCallback)(function(){if(!g)return"";var e=[];p&&e.push("## Error Type\n".concat(p));var t=g.error,n=t.message;if("environmentName"in t&&t.environmentName){var r="[ ".concat(t.environmentName," ] ");n.startsWith(r)&&(n=n.slice(r.length))}if(n&&e.push("## Error Message\n".concat(n)),v.length>0){var o=v.filter(function(e){return!e.ignored});if(o.length>0){var a=o.map(function(e){if(e.originalStackFrame){var t=e.originalStackFrame,n=t.methodName,r=t.file,o=t.line1,a=t.column1;return" at ".concat(n," (").concat(r,":").concat(o,":").concat(a,")")}if(e.sourceStackFrame){var i=e.sourceStackFrame,l=i.methodName,s=i.file,c=i.line1,u=i.column1;return" at ".concat(l," (").concat(s,":").concat(c,":").concat(u,")")}return""}).filter(Boolean);a.length>0&&e.push("\n".concat(a.join("\n")))}}if(null==b?void 0:b.originalCodeFrame){var i=eJ()(e0(b.originalCodeFrame));e.push("## Code Frame\n".concat(i))}return"".concat(e.join("\n\n"),"\n\nNext.js version: ").concat(s.versionInfo.installed," (").concat(process.env.__NEXT_BUNDLER,")\n")},[g,p,b,v,s.versionInfo]);if(d)return(0,S.jsx)(t8,{children:(0,S.jsx)(nh,{})});if(!g)return null;var w=g.error,_=["server","edge-server"].includes(nF(w)||""),j=null,k=null;switch(m.type){case"hydration":r=m.warning?(0,S.jsx)(n0,{message:m.warning}):(0,S.jsx)(n1,{error:w}),j=(0,S.jsxs)("div",{className:"error-overlay-notes-container",children:[m.notes?(0,S.jsx)(S.Fragment,{children:(0,S.jsx)("p",{id:"nextjs__container_errors__notes",className:"nextjs__container_errors__notes",children:m.notes})}):null,m.warning?(0,S.jsx)("p",{id:"nextjs__container_errors__link",className:"nextjs__container_errors__link",children:(0,S.jsx)(eP,{text:"See more info here: ".concat(tk)})}):null]}),m.reactOutputComponentDiff&&(k=(0,S.jsx)(nZ,{reactOutputComponentDiff:m.reactOutputComponentDiff||""}));break;case"blocking-route":r=(0,S.jsx)(n3,{variant:m.variant,refinement:m.refinement});break;case"dynamic-metadata":r=(0,S.jsx)(n2,{variant:m.variant});break;case"empty":r=(0,S.jsx)(n1,{error:w})}return(0,S.jsxs)(nb,(t=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0;h[2]!==g||h[3]!==v||h[4]!==w?(n=function(e){if(e.target===L.current&&"Tab"!==e.key){I.current&&clearTimeout(I.current),w||_(!0),v&&(P([]),b(!1));var t=function(e){I.current=window.setTimeout(function(){N(!0),g(e.join("+")),I.current=window.setTimeout(function(){_(!1)},1e3)},180)};e.preventDefault(),e.stopPropagation(),P(function(n){if(n.includes(e.code)||n.includes(e.key))return n;if(!ra.includes(e.key)){var r=n.findIndex(rc);if(-1!==r){var o=rn(n);return o[r]=e.code,t(o),o}var a=rn(n).concat([e.code]);return t(a),a}for(var i=rn(n),l=ra.indexOf(e.key),s=0,c=0;c1?"⌘":"Ctrl";return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,S.jsx)("span",{style:{minWidth:"1em",display:"inline-block"},children:n}),t[0]=e):e=t[0],e}function rp(){var e,t=(0,O.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,S.jsx)("svg",{height:"16",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"16",children:(0,S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor"})}),t[0]=e):e=t[0],e}var rh=eg(ro());function rm(e){return null!=window.navigator?e.test(window.navigator.platform):void 0}function rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","prefix"]),r=e.children,o=e.prefix,c[0]=e,c[1]=r,c[2]=o,c[3]=a):(r=c[1],o=c[2],a=c[3]),c[4]!==r||c[5]!==a)?(i=(0,S.jsx)("select",(t=function(e){for(var t=1;t span { \n position: relative;\n z-index: 1;\n }\n\n &::after {\n content: "";\n width: calc(100% + var(--code-frame-padding) * 2);\n height: var(--code-frame-line-height);\n left: calc(-1 * var(--code-frame-padding));\n background: var(--color-red-200);\n box-shadow: 2px 0 0 0 var(--color-red-900) inset;\n position: absolute;\n }\n }\n\n\n [data-nextjs-codeframe] > * {\n margin: 0;\n }\n\n .code-frame-link {\n display: flex;\n margin: 0;\n outline: 0;\n }\n .code-frame-link [data-icon=\'right\'] {\n margin-left: auto;\n }\n\n [data-nextjs-codeframe] div > pre {\n overflow: hidden;\n display: inline-block;\n }\n\n [data-nextjs-codeframe] svg {\n color: var(--color-gray-900);\n }\n',"\n [data-nextjs-terminal]::selection,\n [data-nextjs-terminal] *::selection {\n background-color: var(--color-ansi-selection);\n }\n\n [data-nextjs-terminal] * {\n color: inherit;\n background-color: transparent;\n font-family: var(--font-stack-monospace);\n }\n\n [data-nextjs-terminal] > div > p {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n margin: 0;\n }\n [data-nextjs-terminal] > div > p:hover {\n text-decoration: underline dotted;\n }\n [data-nextjs-terminal] div > pre {\n overflow: hidden;\n display: inline-block;\n }\n","\n [data-with-open-in-editor-link] svg {\n width: auto;\n height: var(--size-14);\n margin-left: 8px;\n }\n [data-with-open-in-editor-link] {\n cursor: pointer;\n }\n [data-with-open-in-editor-link]:hover {\n text-decoration: underline dotted;\n }\n [data-with-open-in-editor-link-import-trace] {\n margin-left: 16px;\n }\n","","\n .nextjs-error-with-static {\n bottom: calc(16px * 4.5);\n }\n p.nextjs__container_errors__link {\n font-size: var(--size-14);\n }\n p.nextjs__container_errors__notes {\n color: var(--color-stack-notes);\n font-size: var(--size-14);\n line-height: 1.5;\n }\n .nextjs-container-errors-body > h2:not(:first-child) {\n margin-top: calc(16px + 8px);\n }\n .nextjs-container-errors-body > h2 {\n color: var(--color-title-color);\n margin-bottom: 8px;\n font-size: var(--size-20);\n }\n .nextjs-toast-errors-parent {\n cursor: pointer;\n transition: transform 0.2s ease;\n }\n .nextjs-toast-errors-parent:hover {\n transform: scale(1.1);\n }\n .nextjs-toast-errors {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n }\n .nextjs-toast-errors > svg {\n margin-right: 8px;\n }\n .nextjs-toast-hide-button {\n margin-left: 24px;\n border: none;\n background: none;\n color: var(--color-ansi-bright-white);\n padding: 0;\n transition: opacity 0.25s ease;\n opacity: 0.7;\n }\n .nextjs-toast-hide-button:hover {\n opacity: 1;\n }\n .nextjs__container_errors__error_title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 14px;\n }\n .error-overlay-notes-container {\n margin: 8px 2px;\n }\n .error-overlay-notes-container p {\n white-space: pre-wrap;\n }\n .nextjs__blocking_page_load_error_description {\n color: var(--color-stack-notes);\n }\n .nextjs__blocking_page_load_error_description_title {\n color: var(--color-title-color);\n }\n .nextjs__blocking_page_load_error_fix_option {\n background-color: var(--color-background-200);\n padding: 14px;\n border-radius: var(--rounded-md-2);\n border: 1px solid var(--color-gray-alpha-400);\n }\n .external-link, .external-link:hover {\n color:inherit;\n }\n",nX,"\n .nextjs-container-build-error-version-status {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 4px;\n\n height: var(--size-26);\n padding: 6px 8px 6px 6px;\n background: var(--color-background-100);\n background-clip: padding-box;\n border: 1px solid var(--color-gray-alpha-400);\n box-shadow: var(--shadow-small);\n border-radius: var(--rounded-full);\n\n color: var(--color-gray-900);\n font-size: var(--size-12);\n font-weight: 500;\n line-height: var(--size-16);\n }\n\n a.nextjs-container-build-error-version-status {\n text-decoration: none;\n color: var(--color-gray-900);\n\n &:hover {\n background: var(--color-gray-100);\n }\n\n &:focus {\n outline: var(--focus-ring);\n }\n }\n\n .version-staleness-indicator.fresh {\n fill: var(--color-green-800);\n stroke: var(--color-green-300);\n }\n .version-staleness-indicator.stale {\n fill: var(--color-amber-800);\n stroke: var(--color-amber-300);\n }\n .version-staleness-indicator.outdated {\n fill: var(--color-red-800);\n stroke: var(--color-red-300);\n }\n .version-staleness-indicator.unknown {\n fill: var(--color-gray-800);\n stroke: var(--color-gray-300);\n }\n\n .nextjs-container-build-error-version-status > .turbopack-text {\n background: linear-gradient(\n to right,\n var(--color-turbopack-text-red) 0%,\n var(--color-turbopack-text-blue) 100%\n );\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n",rN,'\n .nextjs-scroll-fader {\n --blur: 1px;\n --stop: 25%;\n --height: 150px;\n --color-bg: var(--color-background-100);\n position: absolute;\n pointer-events: none;\n user-select: none;\n width: 100%;\n height: var(--height);\n left: 0;\n backdrop-filter: blur(var(--blur));\n\n &[data-side="top"] {\n top: 0;\n background: linear-gradient(to top, transparent, var(--color-bg));\n mask-image: linear-gradient(to bottom, var(--color-bg) var(--stop), transparent);\n }\n }\n',rh)})}function rz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n * {\n white-space: nowrap;\n line-height: 1;\n }\n\n [data-status-text-enter] {\n animation: slotMachineEnter 150ms cubic-bezier(0, 0, 0.2, 1)\n forwards;\n }\n }\n\n [data-status-ellipsis] {\n display: inline-flex;\n margin-left: 2px;\n }\n\n [data-status-ellipsis] span {\n animation: ellipsisFade 1.2s infinite;\n margin: 0 1px;\n }\n\n [data-status-ellipsis] span:nth-child(2) {\n animation-delay: 0.2s;\n }\n\n [data-status-ellipsis] span:nth-child(3) {\n animation-delay: 0.4s;\n }\n\n @keyframes ellipsisFade {\n 0%,\n 60%,\n 100% {\n opacity: 0.2;\n }\n 30% {\n opacity: 1;\n }\n }\n\n @keyframes slotMachineEnter {\n 0% {\n transform: translateY(0.8em);\n opacity: 0;\n }\n 50% {\n opacity: 0.8;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return r6=function(){return n},n}var r9=((e={}).None="none",e.Rendering="rendering",e.Compiling="compiling",e.Prerendering="prerendering",e.CacheBypassing="cache-bypassing",e);function r8(e){var t,n,r,o,a,i,l,s,c=(0,O.c)(13),u=e.status,d=e.onClick;c[0]===Symbol.for("react.memo_cache_sentinel")?(r5(n={},"none",""),r5(n,"cache-bypassing","Cache disabled"),r5(n,"prerendering","Prerendering"),r5(n,"compiling","Compiling"),r5(n,"rendering","Rendering"),t=n,c[0]=t):t=c[0];var f=t;c[1]===Symbol.for("react.memo_cache_sentinel")?(r5(o={},"none",""),r5(o,"cache-bypassing",""),r5(o,"prerendering","#f5a623"),r5(o,"compiling","#f5a623"),r5(o,"rendering","#50e3c2"),r=o,c[1]=r):r=c[1];var p=r;if("none"===u)return null;c[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,S.jsx)("style",{children:eg(r6())}),c[2]=a):a=c[2],c[3]!==u?(i=p[u]&&(0,S.jsx)("div",{"data-status-dot":!0,style:{backgroundColor:p[u]}}),c[3]=u,c[4]=i):i=c[4];var h="cache-bypassing"!==u,m=f[u];return c[5]!==u||c[6]!==h||c[7]!==m?(l=(0,S.jsx)(r7,{statusKey:u,showEllipsis:h,children:m},u),c[5]=u,c[6]=h,c[7]=m,c[8]=l):l=c[8],c[9]!==d||c[10]!==i||c[11]!==l?(s=(0,S.jsxs)(S.Fragment,{children:[a,(0,S.jsxs)("button",{"data-indicator-status":!0,"data-nextjs-dev-tools-button":!0,onClick:d,"aria-label":"Open Next.js Dev Tools",children:[i,l]})]}),c[9]=d,c[10]=i,c[11]=l,c[12]=s):s=c[12],s}function r7(e){var t,n,r=(0,O.c)(5),o=e.children,a=e.showEllipsis,i=void 0===a||a;return r[0]!==i?(t=i&&(0,S.jsxs)("span",{"data-status-ellipsis":!0,children:[(0,S.jsx)("span",{children:"."}),(0,S.jsx)("span",{children:"."}),(0,S.jsx)("span",{children:"."})]}),r[0]=i,r[1]=t):t=r[1],r[2]!==t||r[3]!==o?(n=(0,S.jsx)("div",{"data-status-text-animation":!0,children:(0,S.jsxs)("div",{"data-status-text-enter":!0,children:[o,t]})}),r[2]=t,r[3]=o,r[4]=n):n=r[4],n}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oa(){var e,t,n=(e=["\n [data-next-badge-root] {\n --timing: cubic-bezier(0.23, 0.88, 0.26, 0.92);\n --duration-long: 250ms;\n --color-outer-border: #171717;\n --color-inner-border: hsla(0, 0%, 100%, 0.14);\n --color-hover-alpha-subtle: hsla(0, 0%, 100%, 0.13);\n --color-hover-alpha-error: hsla(0, 0%, 100%, 0.2);\n --color-hover-alpha-error-2: hsla(0, 0%, 100%, 0.25);\n --mark-size: calc(var(--size) - var(--size-2) * 2);\n\n --focus-color: var(--color-blue-800);\n --focus-ring: 2px solid var(--focus-color);\n\n &:has([data-next-badge][data-error='true']) {\n --focus-color: #fff;\n }\n }\n\n [data-disabled-icon] {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: 4px;\n }\n\n [data-next-badge] {\n width: var(--size);\n height: var(--size);\n display: flex;\n align-items: center;\n position: relative;\n background: rgba(0, 0, 0, 0.8);\n box-shadow:\n 0 0 0 1px var(--color-outer-border),\n inset 0 0 0 1px var(--color-inner-border),\n 0px 16px 32px -8px rgba(0, 0, 0, 0.24);\n backdrop-filter: blur(48px);\n border-radius: var(--rounded-full);\n user-select: none;\n cursor: pointer;\n scale: 1;\n overflow: hidden;\n will-change: scale, box-shadow, width, background;\n transition:\n scale var(--duration-short) var(--timing),\n width var(--duration-long) var(--timing),\n box-shadow var(--duration-long) var(--timing),\n background var(--duration-short) ease;\n\n &:active[data-error='false'] {\n scale: 0.95;\n }\n\n &[data-animate='true']:not(:hover) {\n scale: 1.02;\n }\n\n &[data-error='false']:has([data-next-mark]:focus-visible) {\n outline: var(--focus-ring);\n outline-offset: 3px;\n }\n\n &[data-error='true'] {\n background: #ca2a30;\n --color-inner-border: #e5484d;\n\n [data-next-mark] {\n background: var(--color-hover-alpha-error);\n outline-offset: 0px;\n\n &:focus-visible {\n outline: var(--focus-ring);\n outline-offset: -1px;\n }\n\n &:hover {\n background: var(--color-hover-alpha-error-2);\n }\n }\n }\n\n &[data-cache-bypassing='true']:not([data-error='true']) {\n background: rgba(217, 119, 6, 0.95);\n --color-inner-border: rgba(245, 158, 11, 0.9);\n\n [data-issues-open] {\n color: white;\n }\n }\n\n &[data-error-expanded='false'][data-error='true'] ~ [data-dot] {\n scale: 1;\n }\n\n > div {\n display: flex;\n }\n }\n\n [data-issues-collapse]:focus-visible {\n outline: var(--focus-ring);\n }\n\n [data-issues]:has([data-issues-open]:focus-visible) {\n outline: var(--focus-ring);\n outline-offset: -1px;\n }\n\n [data-dot] {\n content: '';\n width: var(--size-8);\n height: var(--size-8);\n background: #fff;\n box-shadow: 0 0 0 1px var(--color-outer-border);\n border-radius: 50%;\n position: absolute;\n top: 2px;\n right: 0px;\n scale: 0;\n pointer-events: none;\n transition: scale 200ms var(--timing);\n transition-delay: var(--duration-short);\n }\n\n [data-issues] {\n --padding-left: 8px;\n display: flex;\n gap: 2px;\n align-items: center;\n padding-left: 8px;\n padding-right: 8px;\n height: var(--size-32);\n margin-right: 2px;\n border-radius: var(--rounded-full);\n transition: background var(--duration-short) ease;\n\n &:has([data-issues-open]:hover) {\n background: var(--color-hover-alpha-error);\n }\n\n &:has([data-issues-collapse]) {\n padding-right: calc(var(--padding-left) / 2);\n }\n\n [data-cross] {\n translate: 0px -1px;\n }\n }\n\n [data-issues-open] {\n font-size: var(--size-13);\n color: white;\n width: fit-content;\n height: 100%;\n display: flex;\n gap: 2px;\n align-items: center;\n margin: 0;\n line-height: var(--size-36);\n font-weight: 500;\n z-index: 2;\n white-space: nowrap;\n\n &:focus-visible {\n outline: 0;\n }\n }\n\n [data-issues-collapse] {\n width: var(--size-24);\n height: var(--size-24);\n border-radius: var(--rounded-full);\n transition: background var(--duration-short) ease;\n\n &:hover {\n background: var(--color-hover-alpha-error);\n }\n }\n\n [data-cross] {\n color: #fff;\n width: var(--size-12);\n height: var(--size-12);\n }\n\n [data-next-mark] {\n width: var(--mark-size);\n height: var(--mark-size);\n margin: 0 2px;\n display: flex;\n align-items: center;\n border-radius: var(--rounded-full);\n transition: background var(--duration-long) var(--timing);\n\n &:focus-visible {\n outline: 0;\n }\n\n &:hover {\n background: var(--color-hover-alpha-subtle);\n }\n\n svg {\n flex-shrink: 0;\n width: var(--size-40);\n height: var(--size-40);\n }\n }\n\n [data-issues-count-animation] {\n display: grid;\n place-items: center center;\n font-variant-numeric: tabular-nums;\n\n &[data-animate='false'] {\n [data-issues-count-exit],\n [data-issues-count-enter] {\n animation-duration: 0ms;\n }\n }\n\n > * {\n grid-area: 1 / 1;\n }\n\n [data-issues-count-exit] {\n animation: fadeOut 300ms var(--timing) forwards;\n }\n\n [data-issues-count-enter] {\n animation: fadeIn 300ms var(--timing) forwards;\n }\n }\n\n [data-issues-count-plural] {\n display: inline-block;\n &[data-animate='true'] {\n animation: fadeIn 300ms var(--timing) forwards;\n }\n }\n\n .paused {\n stroke-dashoffset: 0;\n }\n\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n filter: blur(2px);\n transform: translateY(8px);\n }\n 100% {\n opacity: 1;\n filter: blur(0px);\n transform: translateY(0);\n }\n }\n\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n filter: blur(0px);\n transform: translateY(0);\n }\n 100% {\n opacity: 0;\n transform: translateY(-12px);\n filter: blur(2px);\n }\n }\n\n @media (prefers-reduced-motion) {\n [data-issues-count-exit],\n [data-issues-count-enter],\n [data-issues-count-plural] {\n animation-duration: 0ms !important;\n }\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return oa=function(){return n},n}function oi(e){var t,n,r,o,a,i,l,s,c,u,d,f,p,h,m,g,y,v,b,x,w,_,j,k,P,E,T,N,I,L,A,z,R,D=(0,O.c)(54);D[0]!==e?(w=or(e,["onTriggerClick"]),_=e.onTriggerClick,D[0]=e,D[1]=w,D[2]=_):(w=D[1],_=D[2]);var M=dw(),Z=M.state,U=M.dispatch,F=da().totalErrorCount,H=36/Z.scale,V=r3(),B=V.panel,$=V.triggerRef,q=V.setPanel,W="panel-selector"===B,X=F>0,G=oo((0,C.useState)(X),2),Q=G[0],J=G[1],ee=oo((0,C.useState)(X),2),et=ee[0],en=ee[1];et!==X&&(en(X),J(X));var er=oo((0,C.useState)(!1),2),eo=er[0],ea=er[1],ei=(t=F,o=(0,O.c)(4),a=150,i=(0,C.useRef)(null),c=(l=(0,C.useState)(!1),s=function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),2!==a.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw r}}return a}}(l,2)||function(e,t){if(e){if("string"==typeof e)return rG(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rG(e,2)}}(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],u=s[1],o[0]!==a||o[1]!==t?(n=function(){if(t>0){var e=i.current?Date.now()-i.current:-1;if(i.current=Date.now(),!(e<=a)){u(!0);var n=window.setTimeout(function(){u(!1)},a);return function(){clearTimeout(n)}}}},r=[t,a],o[0]=a,o[1]=t,o[2]=n,o[3]=r):(n=o[2],r=o[3]),(0,C.useEffect)(n,r),c),el="filling"===Z.cacheIndicator,es="bypass"===Z.cacheIndicator,ec=Z.buildingIndicator||Z.renderingIndicator||el;D[3]===Symbol.for("react.memo_cache_sentinel")?(j={enterDelay:400,exitDelay:500},D[3]=j):j=D[3];var eu=rD(ec,j).rendered,ed=(0,C.useRef)(null),ef=(d=ed,h=(0,O.c)(3),g=(m=rJ((0,C.useState)(0),2))[0],y=m[1],h[0]!==d?(f=function(){var e=d.current;if(e){var t=new ResizeObserver(function(e){y(rJ(e,1)[0].contentRect.width)});return t.observe(e),function(){return t.disconnect()}}},p=[d],h[0]=d,h[1]=f,h[2]=p):(f=h[1],p=h[2]),(0,C.useEffect)(f,p),g);D[4]!==Z.buildingIndicator||D[5]!==Z.cacheIndicator||D[6]!==Z.renderingIndicator?(v=Z.buildingIndicator,b=Z.renderingIndicator,x=Z.cacheIndicator,k=v?"compiling":"filling"===x?"prerendering":b?"rendering":"none",D[4]=Z.buildingIndicator,D[5]=Z.cacheIndicator,D[6]=Z.renderingIndicator,D[7]=k):k=D[7];var ep=k,eh=eu?ep:r9.None,em=Q||es||eu||Z.disableDevIndicator,ey=0===ef?"auto":ef,ev="".concat(H,"px"),eb=Z.disableDevIndicator&&(!X||eo)?"none":"block";D[8]!==ev||D[9]!==eb?(P={"--size":ev,"--duration-short":"".concat(150,"ms"),display:eb},D[8]=ev,D[9]=eb,D[10]=P):P=D[10];var ex=P;D[11]===Symbol.for("react.memo_cache_sentinel")?(E=(0,S.jsx)("style",{children:eg(oa())}),D[11]=E):E=D[11];var ew=X||es?r9.None:ep;return D[12]!==ey?(T={width:ey},D[12]=ey,D[13]=T):T=D[13],D[14]!==w||D[15]!==X||D[16]!==es||D[17]!==W||D[18]!==_||D[19]!==eu||D[20]!==Z.disableDevIndicator||D[21]!==$?(N=!Z.disableDevIndicator&&(0,S.jsx)("button",on(ot({id:"next-logo",ref:$,"data-next-mark":!0,onClick:_,disabled:Z.disableDevIndicator,"aria-haspopup":"menu","aria-expanded":W,"aria-controls":"nextjs-dev-tools-menu","aria-label":"".concat(W?"Close":"Open"," Next.js Dev Tools"),"data-nextjs-dev-tools-button":!0,style:{display:!eu||X||es?"flex":"none"}},w),{children:(0,S.jsx)(oc,{})})),D[14]=w,D[15]=X,D[16]=es,D[17]=W,D[18]=_,D[19]=eu,D[20]=Z.disableDevIndicator,D[21]=$,D[22]=N):N=D[22],D[23]!==U||D[24]!==eh||D[25]!==X||D[26]!==es||D[27]!==Q||D[28]!==em||D[29]!==ei||D[30]!==_||D[31]!==q||D[32]!==eu||D[33]!==Z.buildError||D[34]!==Z.disableDevIndicator||D[35]!==Z.isErrorOverlayOpen||D[36]!==F||D[37]!==$?(I=em&&(0,S.jsxs)(S.Fragment,{children:[(Q||Z.disableDevIndicator)&&(0,S.jsxs)("div",{"data-issues":!0,children:[(0,S.jsxs)("button",{"data-issues-open":!0,"aria-label":"Open issues overlay",onClick:function(){Z.isErrorOverlayOpen?U({type:Y}):(U({type:K}),q(null))},children:[Z.disableDevIndicator&&(0,S.jsx)("div",{"data-disabled-icon":!0,children:(0,S.jsx)(r1,{})}),(0,S.jsx)(ol,{animate:ei,"data-issues-count-animation":!0,children:F},F)," ",(0,S.jsxs)("div",{children:["Issue",F>1&&(0,S.jsx)("span",{"aria-hidden":!0,"data-issues-count-plural":!0,"data-animate":ei&&2===F,children:"s"})]})]}),!Z.buildError&&(0,S.jsx)("button",{"data-issues-collapse":!0,"aria-label":"Collapse issues badge",onClick:function(){var e;Z.disableDevIndicator?ea(!0):J(!1),null==(e=$.current)||e.focus()},children:(0,S.jsx)(r0,{"data-cross":!0})})]}),es&&!X&&!Z.disableDevIndicator&&(0,S.jsx)(os,{onTriggerClick:_,triggerRef:$}),eu&&!X&&!es&&!Z.disableDevIndicator&&(0,S.jsx)(r8,{status:eh,onClick:_})]}),D[23]=U,D[24]=eh,D[25]=X,D[26]=es,D[27]=Q,D[28]=em,D[29]=ei,D[30]=_,D[31]=q,D[32]=eu,D[33]=Z.buildError,D[34]=Z.disableDevIndicator,D[35]=Z.isErrorOverlayOpen,D[36]=F,D[37]=$,D[38]=I):I=D[38],D[39]!==N||D[40]!==I?(L=(0,S.jsxs)("div",{ref:ed,children:[N,I]}),D[39]=N,D[40]=I,D[41]=L):L=D[41],D[42]!==X||D[43]!==es||D[44]!==em||D[45]!==ei||D[46]!==L||D[47]!==ew||D[48]!==T?(A=(0,S.jsx)("div",{"data-next-badge":!0,"data-error":X,"data-error-expanded":em,"data-status":ew,"data-cache-bypassing":es,"data-animate":ei,style:T,children:L}),D[42]=X,D[43]=es,D[44]=em,D[45]=ei,D[46]=L,D[47]=ew,D[48]=T,D[49]=A):A=D[49],D[50]===Symbol.for("react.memo_cache_sentinel")?(z=(0,S.jsx)("div",{"aria-hidden":!0,"data-dot":!0}),D[50]=z):z=D[50],D[51]!==A||D[52]!==ex?(R=(0,S.jsxs)("div",{"data-next-badge-root":!0,style:ex,children:[E,A,z]}),D[51]=A,D[52]=ex,D[53]=R):R=D[53],R}function ol(e){var t,n,r,o,a,i,l=(0,O.c)(13);l[0]!==e?(n=or(e,["children","animate"]),t=e.children,r=e.animate,l[0]=e,l[1]=t,l[2]=n,l[3]=r):(t=l[1],n=l[2],r=l[3]);var s=void 0===r||r,c=t-1;return l[4]!==c?(o=(0,S.jsx)("div",{"aria-hidden":!0,"data-issues-count-exit":!0,children:c}),l[4]=c,l[5]=o):o=l[5],l[6]!==t?(a=(0,S.jsx)("div",{"data-issues-count":!0,"data-issues-count-enter":!0,children:t}),l[6]=t,l[7]=a):a=l[7],l[8]!==s||l[9]!==n||l[10]!==o||l[11]!==a?(i=(0,S.jsxs)("div",on(ot({},n),{"data-animate":s,children:[o,a]})),l[8]=s,l[9]=n,l[10]=o,l[11]=a,l[12]=i):i=l[12],i}function os(e){var t,n,r,o,a,i=(0,O.c)(10),l=e.onTriggerClick,s=e.triggerRef,c=oo((0,C.useState)(!1),2),u=c[0],d=c[1];return u?null:(i[0]!==l?(t=(0,S.jsx)("button",{"data-issues-open":!0,"data-nextjs-dev-tools-button":!0,"aria-label":"Open Next.js Dev Tools",onClick:l,children:"Cache disabled"}),i[0]=l,i[1]=t):t=i[1],i[2]!==s?(n=function(){var e;d(!0),null==(e=s.current)||e.focus()},i[2]=s,i[3]=n):n=i[3],i[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,S.jsx)(r0,{"data-cross":!0}),i[4]=r):r=i[4],i[5]!==n?(o=(0,S.jsx)("button",{"data-issues-collapse":!0,"aria-label":"Collapse cache bypass badge",onClick:n,children:r}),i[5]=n,i[6]=o):o=i[6],i[7]!==t||i[8]!==o?(a=(0,S.jsxs)("div",{"data-issues":!0,"data-cache-bypass-badge":!0,children:[t,o]}),i[7]=t,i[8]=o,i[9]=a):a=i[9],a)}function oc(){var e,t,n,r,o=(0,O.c)(4);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,S.jsxs)("g",{transform:"translate(8.5, 13)",children:[(0,S.jsx)("path",{className:"paused",d:"M13.3 15.2 L2.34 1 V12.6",fill:"none",stroke:"url(#next_logo_paint0_linear_1357_10853)",strokeWidth:"1.86",mask:"url(#next_logo_mask0)",strokeDasharray:"29.6",strokeDashoffset:"29.6"}),(0,S.jsx)("path",{className:"paused",d:"M11.825 1.5 V13.1",strokeWidth:"1.86",stroke:"url(#next_logo_paint1_linear_1357_10853)",strokeDasharray:"11.6",strokeDashoffset:"11.6"})]}),o[0]=e):e=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsxs)("linearGradient",{id:"next_logo_paint0_linear_1357_10853",x1:"9.95555",y1:"11.1226",x2:"15.4778",y2:"17.9671",gradientUnits:"userSpaceOnUse",children:[(0,S.jsx)("stop",{stopColor:"white"}),(0,S.jsx)("stop",{offset:"0.604072",stopColor:"white",stopOpacity:"0"}),(0,S.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),o[1]=t):t=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,S.jsxs)("linearGradient",{id:"next_logo_paint1_linear_1357_10853",x1:"11.8222",y1:"1.40039",x2:"11.791",y2:"9.62542",gradientUnits:"userSpaceOnUse",children:[(0,S.jsx)("stop",{stopColor:"white"}),(0,S.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),o[2]=n):n=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,S.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[e,(0,S.jsxs)("defs",{children:[t,n,(0,S.jsxs)("mask",{id:"next_logo_mask0",children:[(0,S.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,S.jsx)("rect",{width:"5",height:"1.5",fill:"black"})]})]})]}),o[3]=r):r=o[3],r}var ou=C.forwardRef(function(e,t){var n,r,o,a,i,l,s,c,u,d=(0,O.c)(15);return(d[0]!==e?(l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["onClick","children","className"]),i=e.onClick,o=e.children,a=e.className,d[0]=e,d[1]=o,d[2]=a,d[3]=i,d[4]=l):(o=d[1],a=d[2],i=d[3],l=d[4]),d[5]!==i?(s=function(e){return e.target.closest("a")||e.preventDefault(),null==i?void 0:i()},d[5]=i,d[6]=s):s=d[6],d[7]!==a?(c=e9("nextjs-toast",a),d[7]=a,d[8]=c):c=d[8],d[9]!==o||d[10]!==l||d[11]!==t||d[12]!==s||d[13]!==c)?(u=(0,S.jsx)("div",(n=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","ref"]),r=e.children,a=e.ref,f[0]=e,f[1]=r,f[2]=o,f[3]=a):(r=f[1],o=f[2],a=f[3]);var p=(0,C.useRef)(null),h=oh();f[4]!==a?(i=function(e){if(p.current=null!=e?e:null,"function"==typeof a)a(e);else{var t;a&&(void 0===a?"undefined":(t=a)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"&&(a.current=e)}},f[4]=a,f[5]=i):i=f[5];var m=i;f[6]!==h?(l=function(){if(h&&p.current&&!h.disabled){var e=p.current;return h.register(e),function(){return h.unregister(e)}}},s=[h],f[6]=h,f[7]=l,f[8]=s):(l=f[7],s=f[8]),(0,C.useEffect)(l,s);var g=(null==h?void 0:h.disabled)?"default":"grab";return(f[9]!==o.style?(c=o.style||{},f[9]=o.style,f[10]=c):c=f[10],f[11]!==g||f[12]!==c?(u=od({cursor:g},c),f[11]=g,f[12]=c,f[13]=u):u=f[13],f[14]!==r||f[15]!==o||f[16]!==m||f[17]!==u)?(d=(0,S.jsx)("div",(t=od({ref:m},o),n=n={style:u,children:r},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)),f[14]=r,f[15]=o,f[16]=m,f[17]=u,f[18]=d):d=f[18],d}function og(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ov(e){return function(e){if(Array.isArray(e))return og(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ob(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ob(e,t){if(e){if("string"==typeof e)return og(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return og(e,t)}}function ox(e){var t,n,r,o,a,i,l,s,c,u,d,f,p,h=(0,O.c)(15);h[0]!==e?(u=oy(e,["children","padding","position","setPosition","onDragStart","dragHandleSelector","disableDrag","avoidZone"]),a=e.children,c=e.padding,i=e.position,d=e.setPosition,s=e.onDragStart,l=e.dragHandleSelector,f=e.disableDrag,o=e.avoidZone,h[0]=e,h[1]=o,h[2]=a,h[3]=i,h[4]=l,h[5]=s,h[6]=c,h[7]=u,h[8]=d,h[9]=f):(o=h[1],a=h[2],i=h[3],l=h[4],s=h[5],c=h[6],u=h[7],d=h[8],f=h[9]);var m=function(e){var t=(0,C.useRef)(null),n=(0,C.useRef)({state:"idle"}),r=(0,C.useRef)(null),o=(0,C.useRef)({x:0,y:0}),a=(0,C.useRef)({x:0,y:0}),i=(0,C.useRef)(0),l=(0,C.useRef)([]),s=(0,C.useCallback)(function(){var e,o,a;"drag"===n.current.state&&(null==(a=t.current)||a.releasePointerCapture(n.current.pointerId)),n.current="drag"===n.current.state?{state:"drag-end"}:{state:"idle"},null!==r.current&&(r.current(),r.current=null),l.current=[],null==(e=t.current)||e.classList.remove("dev-tools-grabbing"),null==(o=t.current)||o.style.removeProperty("-webkit-user-select"),document.body.style.removeProperty("user-select"),document.body.style.removeProperty("-webkit-user-select")},[]);function c(e){t.current&&(a.current=e,t.current.style.translate="".concat(e.x,"px ").concat(e.y,"px"))}function u(n){var r=t.current;null!==r&&(r.style.transition="translate 491.22ms var(--timing-bounce)",r.addEventListener("transitionend",function t(o){if("translate"===o.propertyName){var i;null==(i=e.onAnimationEnd)||i.call(e,n),a.current={x:0,y:0},r.style.transition="",r.removeEventListener("transitionend",t)}}),c(n.translation))}function d(e){if("drag-end"===n.current.state){var r;e.preventDefault(),e.stopPropagation(),n.current={state:"idle"},null==(r=t.current)||r.removeEventListener("click",d)}}function f(r){if("press"===n.current.state){var s,u,d,f,p,h=r.clientX-o.current.x,m=r.clientY-o.current.y;Math.sqrt(h*h+m*m)>=e.threshold&&(n.current={state:"drag",pointerId:r.pointerId},null==(u=t.current)||u.setPointerCapture(r.pointerId),null==(d=t.current)||d.classList.add("dev-tools-grabbing"),null==(f=t.current)||f.style.setProperty("-webkit-user-select","none"),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",null==(p=e.onDragStart)||p.call(e))}if("drag"===n.current.state){var g={x:r.clientX,y:r.clientY},y=g.x-o.current.x,v=g.y-o.current.y;o.current=g,c({x:a.current.x+y,y:a.current.y+v});var b=Date.now();b-i.current>=10&&(l.current=ov(l.current.slice(-5)).concat([{position:g,timestamp:b}])),i.current=b,null==(s=e.onDrag)||s.call(e,a.current)}}function p(){var t,n=function(e){if(e.length<2)return{x:0,y:0};var t=e[0],n=e[e.length-1],r=n.timestamp-t.timestamp;return 0===r?{x:0,y:0}:{x:1e3*((n.position.x-t.position.x)/r),y:1e3*((n.position.y-t.position.y)/r)}}(l.current);s(),null==(t=e.onDragEnd)||t.call(e,a.current,n)}return(0,C.useLayoutEffect)(function(){e.disabled&&s()},[s,e.disabled]),e.disabled?{ref:t,animate:u}:{ref:t,onPointerDown:function(a){var i;0!==a.button||function(n){if(!n||!t.current)return!0;if(e.handles&&e.handles.size>0){for(var r=n;r&&r!==t.current;){if(e.handles.has(r))return!0;r=r.parentElement}return!1}return!e.dragHandleSelector||null!==n.closest(e.dragHandleSelector)}(a.target)&&(o.current={x:a.clientX,y:a.clientY},n.current={state:"press"},window.addEventListener("pointermove",f),window.addEventListener("pointerup",p),null!==r.current&&(r.current(),r.current=null),r.current=function(){window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",p)},null==(i=t.current)||i.addEventListener("click",d))},animate:u}}({disabled:void 0!==f&&f,handles:null==(r=oh())?void 0:r.handles,threshold:5,onDragStart:s,onDragEnd:function(e,t){var n,r,a,l,s,u,d,f,p,h,m,v,b,x,w,_,j,k;if(0===Math.sqrt(e.x*e.x+e.y*e.y)){null==(n=g.current)||n.style.removeProperty("translate");return}y((b=(r={x:e.x+o_(t.x),y:e.y+o_(t.y)}).x,x=r.y,_=Object.entries(w=(s=2*c,u=(null==(a=g.current)?void 0:a.offsetWidth)||0,d=(null==(l=g.current)?void 0:l.offsetHeight)||0,f=window.innerWidth-document.documentElement.clientWidth,h=(p=function(e){var t=e.includes("right"),n=e.includes("bottom"),r=t?window.innerWidth-f-s-u:0,a=n?window.innerHeight-s-d:0;if(o&&o.corner===e){var i=o.square+o.padding;n?a-=i:a+=i}return{x:r,y:a}})(i),{"top-left":(m=function(e){return{x:e.x-h.x,y:e.y-h.y}})(p("top-left")),"top-right":m(p("top-right")),"bottom-left":m(p("bottom-left")),"bottom-right":m(p("bottom-right"))})).map(function(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),2!==a.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw r}}return a}}(t,2)||ob(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return{key:r,distance:Math.sqrt(Math.pow(b-o.x,2)+Math.pow(x-o.y,2))}}),j=(v=Math).min.apply(v,ov(_.map(ow))),(k=_.find(function(e){return e.distance===j}))?{translation:w[k.key],corner:k.key}:{corner:i,translation:w[i]}))},onAnimationEnd:function(e){var t=e.corner;setTimeout(function(){var e;null==(e=g.current)||e.style.removeProperty("translate"),d(t)})},dragHandleSelector:l}),g=m.ref,y=m.animate,v=oy(m,["ref","animate"]);return h[10]!==a||h[11]!==v||h[12]!==u||h[13]!==g?(p=(0,S.jsx)("div",(t=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:.999;return e/1e3*t/(1-t)}function oj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["index","label","value","onClick","href"]),n=e.index,r=e.label,i=e.value,o=e.onClick,t=e.href,h[0]=e,h[1]=t,h[2]=n,h[3]=r,h[4]=o,h[5]=a,h[6]=i):(t=h[1],n=h[2],r=h[3],o=h[4],a=h[5],i=h[6]);var m="function"==typeof o||"string"==typeof t,g=(0,C.useContext)(oA),y=g.closeMenu,v=g.selectedIndex,b=g.setSelectedIndex,x=v===n;h[7]!==y||h[8]!==t||h[9]!==m||h[10]!==o?(l=function(){m&&(null==o||o(),null==y||y(),t&&window.open(t,"_blank","noopener, noreferrer"))},h[7]=y,h[8]=t,h[9]=m,h[10]=o,h[11]=l):l=h[11];var w=l;h[12]!==n||h[13]!==m||h[14]!==v||h[15]!==b?(s=function(){m&&void 0!==n&&v!==n&&b(n)},h[12]=n,h[13]=m,h[14]=v,h[15]=b,h[16]=s):s=h[16],h[17]!==b?(c=function(){return b(-1)},h[17]=b,h[18]=c):c=h[18],h[19]!==w?(u=function(e){("Enter"===e.key||" "===e.key)&&w()},h[19]=w,h[20]=u):u=h[20];var _=m?"menuitem":void 0,j=x?0:-1;return h[21]!==r?(d=(0,S.jsx)("span",{className:"dev-tools-indicator-label",children:r}),h[21]=r,h[22]=d):d=h[22],h[23]!==i?(f=(0,S.jsx)("span",{className:"dev-tools-indicator-value",children:i}),h[23]=i,h[24]=f):f=h[24],h[25]!==w||h[26]!==n||h[27]!==a||h[28]!==x||h[29]!==s||h[30]!==c||h[31]!==u||h[32]!==_||h[33]!==j||h[34]!==d||h[35]!==f?(p=(0,S.jsxs)("div",oI(oN({className:"dev-tools-indicator-item","data-index":n,"data-selected":x,onClick:w,onMouseMove:s,onMouseLeave:c,onKeyDown:u,role:_,tabIndex:j},a),{children:[d,f]})),h[25]=w,h[26]=n,h[27]=a,h[28]=x,h[29]=s,h[30]=c,h[31]=u,h[32]=_,h[33]=j,h[34]=d,h[35]=f,h[36]=p):p=h[36],p}var oR=function(e){var t,n=e.closeOnClickOutside,r=void 0===n||n,o=e.items,a=dw().state,i=r3(),l=i.setPanel,s=i.triggerRef,c=i.setSelectedIndex,u=i.selectedIndex,d=u9().mounted,f=oL(a.devToolsPosition.split("-",2),2),p=f[0],h=f[1],m=(0,C.useRef)(null);ns(m,s,r&&d,function(e){switch(e){case"escape":l(null),c(-1);return;case"outside":if(!r)return;l(null),c(-1);return;default:return null}});var g=(0,C.useEffectEvent)(function(){oU({index:-1===u?"first":u,menuRef:m,setSelectedIndex:c})});(0,C.useLayoutEffect)(function(){var e;null==(e=m.current)||e.focus(),g()},[]);var y=r4(a),v=oL(a.devToolsPosition.split("-",2),2),b=v[0],x=v[1],w=p===b&&h===x?y:oS,_=(oT(t={},p,"".concat(w,"px")),oT(t,h,"".concat(oS,"px")),oT(t,"top"===p?"bottom":"top","auto"),oT(t,"left"===h?"right":"left","auto"),t),j=o.filter(function(e){return!!e}),k=j.filter(function(e){return!e.footer}),O=j.filter(function(e){return e.footer});return(0,S.jsx)("div",{ref:m,onKeyDown:function(e){e.preventDefault();var t=j.filter(function(e){return e.onClick}).length;switch(e.key){case"ArrowDown":oU({index:u>=t-1?0:u+1,menuRef:m,setSelectedIndex:c});break;case"ArrowUp":oU({index:u<=0?t-1:u-1,menuRef:m,setSelectedIndex:c});break;case"Home":oU({index:"first",menuRef:m,setSelectedIndex:c});break;case"End":oU({index:"last",menuRef:m,setSelectedIndex:c});break;case"n":e.ctrlKey&&oU({index:u>=t-1?0:u+1,menuRef:m,setSelectedIndex:c});break;case"p":e.ctrlKey&&oU({index:u<=0?t-1:u-1,menuRef:m,setSelectedIndex:c})}},id:"nextjs-dev-tools-menu",role:"menu",dir:"ltr","aria-orientation":"vertical","aria-label":"Next.js Dev Tools Items",tabIndex:-1,style:oN({outline:0,WebkitFontSmoothing:"antialiased",display:"flex",flexDirection:"column",alignItems:"flex-start",background:"var(--color-background-100)",backgroundClip:"padding-box",boxShadow:"var(--shadow-menu)",borderRadius:"var(--rounded-xl)",position:"fixed",fontFamily:"var(--font-stack-sans)",zIndex:"var(--top-z-index)",overflow:"hidden",opacity:1,minWidth:"248px",transition:"opacity var(--animate-out-duration-ms) var(--animate-out-timing-function)",border:"1px solid var(--color-gray-alpha-400)"},_),children:(0,S.jsxs)(oA,{value:{selectedIndex:u,setSelectedIndex:c},children:[(0,S.jsx)("div",{style:{padding:"6px",width:"100%"},children:k.map(function(e,t){return(0,S.jsx)(oz,oN({title:e.title,label:e.label,value:e.value,onClick:e.onClick,index:e.onClick?oD(k,t):void 0},e.attributes),e.label)})}),(0,S.jsx)("div",{className:"dev-tools-indicator-footer",children:O.map(function(e,t){var n;return(0,S.jsx)(oz,oI(oN({title:e.title,label:e.label,value:e.value,onClick:e.onClick},e.attributes),{index:e.onClick?oD(O,t)+(n=k).filter(function(e){return e.onClick}).length:void 0}),e.label)})})]})})};function oD(e,t){for(var n=0,r=0;r<=t&&r0;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsx)("span",{className:"dev-tools-indicator-issue-count-indicator"}),r[0]=t):t=r[0],r[1]!==o||r[2]!==a?(n=(0,S.jsxs)("span",{className:"dev-tools-indicator-issue-count","data-has-issues":a,children:[t,o]}),r[1]=o,r[2]=a,r[3]=n):n=r[3],n}function oZ(){var e,t=(0,O.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,S.jsx)("path",{fill:"#666",fillRule:"evenodd",clipRule:"evenodd",d:"M5.50011 1.93945L6.03044 2.46978L10.8537 7.293C11.2442 7.68353 11.2442 8.31669 10.8537 8.70722L6.03044 13.5304L5.50011 14.0608L4.43945 13.0001L4.96978 12.4698L9.43945 8.00011L4.96978 3.53044L4.43945 3.00011L5.50011 1.93945Z"})}),t[0]=e):e=t[0],e}function oU(e){var t,n=e.index,r=e.menuRef,o=e.setSelectedIndex;if("first"===n)return void setTimeout(function(){var e,t=null==(e=r.current)?void 0:e.querySelectorAll('[role="menuitem"]');t&&oU({index:Number(t[0].getAttribute("data-index")),menuRef:r,setSelectedIndex:o})});if("last"===n)return void setTimeout(function(){var e,t=null==(e=r.current)?void 0:e.querySelectorAll('[role="menuitem"]');t&&oU({index:t.length-1,menuRef:r,setSelectedIndex:o})});var a=null==(t=r.current)?void 0:t.querySelector('[data-index="'.concat(n,'"]'));a&&(o(n),null==a||a.focus())}function oF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:"width";if("number"==typeof e)return e;var n=document.createElement("div");n.style.position="absolute",n.style.visibility="hidden","width"===t?n.style.width=e:n.style.height=e,document.body.appendChild(n);var r="width"===t?n.offsetWidth:n.offsetHeight;return document.body.removeChild(n),r}function o5(e){var t,n,r,o,a,i,l,s,c,u,d,f,p,h,m,g=e.header,y=e.children,v=e.draggable,b=void 0!==v&&v,x=e.sizeConfig,w=void 0===x?{kind:"resizable",minWidth:400,minHeight:350,maxWidth:1e3,maxHeight:1e3,initialSize:{height:400,width:500}}:x,_=e.closeOnClickOutside,j=void 0!==_&&_,k=e.sharePanelSizeGlobally,P=e.sharePanelPositionGlobally,E=e.containerProps,T=r3().setPanel,N=u9(),I=N.name,L=N.mounted,A=void 0===k||k?el:"".concat(ei,"_").concat(I),z=void 0===P||P?es:"".concat(ea,"_").concat(I),R=dw(),D=R.dispatch,M=R.state,Z=null!=(h=M.devToolsPanelPosition[z])?h:M.devToolsPosition,U=o3(Z.split("-",2),2),F=U[0],H=U[1],V=(0,C.useRef)(null);ns(V,r3().triggerRef,L,function(e){switch(e){case"escape":return void T("panel-selector");case"outside":j&&T("panel-selector");return;default:return null}});var B=r4(M),$=o3(M.devToolsPosition.split("-",2),2),q=$[0],W=$[1],K=F===q&&H===W?B:oS,Y=(o1(m={},F,"".concat(K,"px")),o1(m,H,"".concat(oS,"px")),o1(m,"top"===F?"bottom":"top","auto"),o1(m,"left"===H?"right":"left","auto"),m),X="resizable"===w.kind,G=(t=X?w.minWidth:void 0,n=X?w.minHeight:void 0,r=X?w.maxWidth:void 0,o=X?w.maxHeight:void 0,(s=(0,O.c)(11))[0]!==o||s[1]!==r||s[2]!==n||s[3]!==t?(a=function(){return{minWidth:t?o4(t,"width"):void 0,minHeight:n?o4(n,"height"):void 0,maxWidth:r?o4(r,"width"):void 0,maxHeight:o?o4(o,"height"):void 0}},s[0]=o,s[1]=r,s[2]=n,s[3]=t,s[4]=a):a=s[4],u=(c=o3((0,C.useState)(a),2))[0],d=c[1],s[5]!==o||s[6]!==r||s[7]!==n||s[8]!==t?(i=function(){var e=function(){d({minWidth:t?o4(t,"width"):void 0,minHeight:n?o4(n,"height"):void 0,maxWidth:r?o4(r,"width"):void 0,maxHeight:o?o4(o,"height"):void 0})};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},l=[t,n,r,o],s[5]=o,s[6]=r,s[7]=n,s[8]=t,s[9]=i,s[10]=l):(i=s[9],l=s[10]),(0,C.useEffect)(i,l),u),Q=G.minWidth,J=G.minHeight,ee=G.maxWidth,et=G.maxHeight,er=I?"".concat(ei,"_").concat(I):el,eo=M.devToolsPanelSize[er];return(0,S.jsx)(oB,{value:{resizeRef:V,initialSize:"resizable"===w.kind?w.initialSize:w,minWidth:Q,minHeight:J,maxWidth:ee,maxHeight:et,devToolsPosition:M.devToolsPosition,devToolsPanelSize:M.devToolsPanelSize,storageKey:A},children:(0,S.jsx)("div",{tabIndex:-1,ref:V,className:"dynamic-panel-container",style:o2({"--panel-top":Y.top,"--panel-bottom":Y.bottom,"--panel-left":Y.left,"--panel-right":Y.right},X?{"--panel-min-width":Q?"".concat(Q,"px"):void 0,"--panel-min-height":J?"".concat(J,"px"):void 0,"--panel-max-width":ee?"".concat(ee,"px"):void 0,"--panel-max-height":et?"".concat(et,"px"):void 0}:{"--panel-height":"".concat(eo?eo.height:w.height,"px"),"--panel-width":"".concat(eo?eo.width:w.width,"px")}),children:(0,S.jsx)(op,{disabled:!b,children:(0,S.jsx)(ox,{dragHandleSelector:".resize-container",avoidZone:{corner:M.devToolsPosition,square:25/M.scale,padding:oS},padding:oS,position:Z,setPosition:function(e){D({type:en,devToolsPanelPosition:e,key:z}),"resizable"===w.kind&&rk({devToolsPanelPosition:o1({},z,e)})},style:{overflow:"auto",width:"100%",height:"100%"},disableDrag:!b,children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",(f=o2({},E),p=p={className:"panel-content-container ".concat((null==E?void 0:E.className)||""),style:o2({},null==E?void 0:E.style),children:[(0,S.jsx)(om,{children:g}),(0,S.jsx)("div",{"data-nextjs-scrollable-content":!0,className:"draggable-content",children:y})]},Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(p)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(p)).forEach(function(e){Object.defineProperty(f,e,Object.getOwnPropertyDescriptor(p,e))}),f)),X&&(0,S.jsxs)(S.Fragment,{children:[(!w.sides||w.sides.includes("vertical"))&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(oY,{position:Z,direction:"top"}),(0,S.jsx)(oY,{position:Z,direction:"bottom"})]}),(!w.sides||w.sides.includes("horizontal"))&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(oY,{position:Z,direction:"right"}),(0,S.jsx)(oY,{position:Z,direction:"left"})]}),(!w.sides||w.sides.includes("diagonal"))&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(oY,{position:Z,direction:"top-left"}),(0,S.jsx)(oY,{position:Z,direction:"top-right"}),(0,S.jsx)(oY,{position:Z,direction:"bottom-left"}),(0,S.jsx)(oY,{position:Z,direction:"bottom-right"})]})]})]})})})})})}function o6(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o7(e){var t,n,r,o,a,i,l=(0,O.c)(10);l[0]!==e?(t=o8(e,["routerType"]),n=e.routerType,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,S.jsxs)("p",{className:"dev-tools-info-paragraph",children:["The path"," ",(0,S.jsx)("code",{className:"dev-tools-info-code",children:window.location.pathname})," ",'is marked as "static" since it will be prerendered during the build time.']}),l[3]=r):r=l[3];var s="pages"===n?"https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration":"https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration";return l[4]!==s?(o=(0,S.jsxs)("p",{className:"dev-tools-info-paragraph",children:["With Static Rendering, routes are rendered at build time, or in the background after"," ",(0,S.jsx)("a",{className:"dev-tools-info-link",href:s,target:"_blank",rel:"noopener noreferrer",children:"data revalidation"}),"."]}),l[4]=s,l[5]=o):o=l[5],l[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,S.jsx)("p",{className:"dev-tools-info-paragraph",children:"Static rendering is useful when a route has data that is not personalized to the user and can be known at build time, such as a static blog post or a product page."}),l[6]=a):a=l[6],l[7]!==t||l[8]!==o?(i=(0,S.jsxs)("article",o9(o6({className:"dev-tools-info-article"},t),{children:[r,o,a]})),l[7]=t,l[8]=o,l[9]=i):i=l[9],i}function ae(e){var t,n,r,o,a,i,l,s=(0,O.c)(11);return s[0]!==e?(t=o8(e,["routerType"]),n=e.routerType,s[0]=e,s[1]=t,s[2]=n):(t=s[1],n=s[2]),s[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,S.jsx)("code",{className:"dev-tools-info-code",children:window.location.pathname}),s[3]=r):r=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,S.jsxs)("p",{className:"dev-tools-info-paragraph",children:["The path"," ",r," ",'is marked as "dynamic" since it will be rendered for each user at'," ",(0,S.jsx)("strong",{children:"request time"}),"."]}),a=(0,S.jsx)("p",{className:"dev-tools-info-paragraph",children:"Dynamic rendering is useful when a route has data that is personalized to the user or has information that can only be known at request time, such as cookies or the URL's search params."}),s[4]=o,s[5]=a):(o=s[4],a=s[5]),s[6]!==n?(i="pages"===n?(0,S.jsxs)("p",{className:"dev-tools-info-pagraph",children:["Exporting the"," ",(0,S.jsx)("a",{className:"dev-tools-info-link",href:"https://nextjs.org/docs/pages/building-your-application/data-fetching/get-server-side-props",target:"_blank",rel:"noopener noreferrer",children:"getServerSideProps"})," ","function will opt the route into dynamic rendering. This function will be called by the server on every request."]}):(0,S.jsxs)("p",{className:"dev-tools-info-paragraph",children:["During rendering, if a"," ",(0,S.jsx)("a",{className:"dev-tools-info-link",href:"https://nextjs.org/docs/app/building-your-application/rendering/server-components#dynamic-apis",target:"_blank",rel:"noopener noreferrer",children:"Dynamic API"})," ","or a"," ",(0,S.jsx)("a",{className:"dev-tools-info-link",href:"https://nextjs.org/docs/app/api-reference/functions/fetch",target:"_blank",rel:"noopener noreferrer",children:"fetch"})," ","option of"," ",(0,S.jsx)("code",{className:"dev-tools-info-code",children:"{ cache: 'no-store' }"})," ","is discovered, Next.js will switch to dynamically rendering the whole route."]}),s[6]=n,s[7]=i):i=s[7],s[8]!==t||s[9]!==i?(l=(0,S.jsxs)("article",o9(o6({className:"dev-tools-info-article"},t),{children:[o,a,i]})),s[8]=t,s[9]=i,s[10]=l):l=s[10],l}oJ.styleTagTransform=x(),oJ.setAttributes=g(),oJ.insert=h(),oJ.domAPI=f(),oJ.insertStyleElement=v(),u()(oQ.A,oJ),oQ.A&&oQ.A.locals&&oQ.A.locals;var at={pages:{static:"https://nextjs.org/docs/pages/building-your-application/rendering/static-site-generation",dynamic:"https://nextjs.org/docs/pages/building-your-application/rendering/server-side-rendering"},app:{static:"https://nextjs.org/docs/app/building-your-application/rendering/server-components#static-rendering-default",dynamic:"https://nextjs.org/docs/app/building-your-application/rendering/server-components#dynamic-rendering"}};function an(e){var t,n,r,o,a=(0,O.c)(8);return a[0]!==e?(n=o8(e,["routerType","isStaticRoute"]),r=e.routerType,t=e.isStaticRoute,a[0]=e,a[1]=t,a[2]=n,a[3]=r):(t=a[1],n=a[2],r=a[3]),a[4]!==t||a[5]!==n||a[6]!==r?(o=t?(0,S.jsx)(o7,o6({routerType:r},n)):(0,S.jsx)(ae,o6({routerType:r},n)),a[4]=t,a[5]=n,a[6]=r,a[7]=o):o=a[7],o}var ar=__webpack_require__("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/overview/segment-explorer.css"),ao={};function aa(e){for(var t=1;t=0;m--){var g=l[m],y=r[m];0===Object.keys(g.children[y].children).length&&delete g.children[y]}a=aa({},a),i()}},getRoot:function(){return a}}}({compare:function(e,t){return!!e&&!!t&&e.pagePath===t.pagePath&&e.type===t.type&&e.boundaryType===t.boundaryType},getCharacters:function(e){return e.pagePath.split("/")}}),ad=au.insert,af=au.remove,ap=au.getRoot,ah=__webpack_require__("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/overview/segment-boundary-trigger.css"),am={};am.styleTagTransform=x(),am.setAttributes=g(),am.insert=h(),am.domAPI=f(),am.insertStyleElement=v(),u()(ah.A,am),ah.A&&ah.A.locals&&ah.A.locals;let ag={};function ay(e,t){let n=C.useRef(ag);return n.current===ag&&(n.current=e(t)),n}let av=[];function ab(e){C.useEffect(e,av)}class ax{static create(){return new ax}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function aw(){let e=ay(ax.create).current;return ab(e.disposeEffect),e}let a_=P[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],aj=a_&&a_!==C.useLayoutEffect?a_:e=>e();function ak(e){let t=ay(aS).current;return t.next=e,aj(t.effect),t.trampoline}function aS(){let e={next:void 0,callback:aO,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function aO(){}function aC({controlled:e,default:t,name:n,state:r="value"}){let{current:o}=C.useRef(void 0!==e),[a,i]=C.useState(t),l=C.useCallback(e=>{o||i(e)},[]);return[o?e:a,l]}let aP={...P},aE=0,aT=aP.useId;function aN(e,t){if(void 0!==aT){let n=aT();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){let[n,r]=C.useState(e),o=e||n;return C.useEffect(()=>{null==n&&(aE+=1,r(`${t}-${aE}`))},[n,t]),o}(e,t)}function aI(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}let aL="undefined"!=typeof document?C.useLayoutEffect:()=>{},aA=C.createContext(null),az=C.createContext(null),aR=()=>P.useContext(aA)?.id||null;function aD(e){let{children:t,id:n}=e,r=aR();return(0,S.jsx)(aA.Provider,{value:C.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function aM(e){let{children:t}=e,n=C.useRef([]),r=C.useCallback(e=>{n.current=[...n.current,e]},[]),o=C.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),[a]=C.useState(()=>aI());return(0,S.jsx)(az.Provider,{value:C.useMemo(()=>({nodesRef:n,addNode:r,removeNode:o,events:a}),[r,o,a]),children:t})}function aZ(e){let{open:t=!1,onOpenChange:n,elements:r}=e,o=aN(),a=C.useRef({}),[i]=C.useState(()=>aI()),l=null!=aR(),[s,c]=C.useState(r.reference),u=ak((e,t,r)=>{a.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:l}),n?.(e,t,r)}),d=C.useMemo(()=>({setPositionReference:c}),[]),f=C.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return C.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:i,floatingId:o,refs:d}),[t,u,f,i,o,d])}function aU(){return"undefined"!=typeof window}function aF(e){return aB(e)?(e.nodeName||"").toLowerCase():"#document"}function aH(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function aV(e){var t;return null==(t=(aB(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function aB(e){return!!aU()&&(e instanceof Node||e instanceof aH(e).Node)}function a$(e){return!!aU()&&(e instanceof Element||e instanceof aH(e).Element)}function aq(e){return!!aU()&&(e instanceof HTMLElement||e instanceof aH(e).HTMLElement)}function aW(e){return!!aU()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof aH(e).ShadowRoot)}let aK=new Set(["inline","contents"]);function aY(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=a6(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aK.has(o)}let aX=new Set(["table","td","th"]),aG=[":popover-open",":modal"];function aQ(e){return aG.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let aJ=["transform","translate","scale","rotate","perspective"],a0=["transform","translate","scale","rotate","perspective","filter"],a1=["paint","layout","strict","content"];function a2(e){let t=a3(),n=a$(e)?a6(e):e;return aJ.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||a0.some(e=>(n.willChange||"").includes(e))||a1.some(e=>(n.contain||"").includes(e))}function a3(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let a4=new Set(["html","body","#document"]);function a5(e){return a4.has(aF(e))}function a6(e){return aH(e).getComputedStyle(e)}function a9(e){return a$(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function a8(e){if("html"===aF(e))return e;let t=e.assignedSlot||e.parentNode||aW(e)&&e.host||aV(e);return aW(t)?t.host:t}function a7(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=a8(t);return a5(n)?t.ownerDocument?t.ownerDocument.body:t.body:aq(n)&&aY(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=aH(o);if(a){let e=ie(i);return t.concat(i,i.visualViewport||[],aY(o)?o:[],e&&n?a7(e):[])}return t.concat(o,a7(o,[],n))}function ie(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function it(e){let t=ay(ir,e).current;return t.next=e,aL(t.effect),t}function ir(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}let io="undefined"!=typeof navigator,ia=function(){if(!io)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),ii=function(){if(!io)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),il=function(){if(!io)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),is="undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),ic="MacIntel"===ia.platform&&ia.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(ia.platform);io&&/firefox/i.test(il);let iu=io&&/apple/i.test(navigator.vendor),id=io&&/android/i.test(ii)||/android/i.test(il),ip=io&&ii.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,ih=il.includes("jsdom/");function im(e){e.preventDefault(),e.stopPropagation()}function ig(e){return 0===e.mozInputSource&&!!e.isTrusted||(id&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function iy(e){return!ih&&(!id&&0===e.width&&0===e.height||id&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function iv(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}let ib="data-base-ui-focusable",ix="active",iw="selected",i_="ArrowLeft",ij="ArrowRight",ik="ArrowUp",iS="ArrowDown";function iO(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function iC(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&aW(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function iP(e){return"composedPath"in e?e.composedPath()[0]:e.target}function iE(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function iT(e){return e?.ownerDocument||document}function iN(e){return aq(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function iI(e){return!!e&&"combobox"===e.getAttribute("role")&&iN(e)}function iL(e){return e?e.hasAttribute(ib)?e:e.querySelector(`[${ib}]`)||e:null}function iA(e){return`data-base-ui-${e}`}let iz=iA("safe-polygon");function iR(e,t,n){if(n&&!iv(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:n?.[t]}return e?.[t]}function iD(e){return"function"==typeof e?e():e}function iM(e,t={}){let{open:n,onOpenChange:r,dataRef:o,events:a,elements:i}=e,{enabled:l=!0,delay:s=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=C.useContext(az),h=aR(),m=it(c),g=it(s),y=it(n),v=it(d),b=C.useRef(void 0),x=aw(),w=C.useRef(void 0),_=aw(),j=C.useRef(!0),k=C.useRef(!1),S=C.useRef(()=>{}),O=C.useRef(!1),P=ak(()=>{let e=o.current.openEvent?.type;return e?.includes("mouse")&&"mousedown"!==e});C.useEffect(()=>{if(l)return a.on("openchange",e),()=>{a.off("openchange",e)};function e({open:e}){e||(x.clear(),_.clear(),j.current=!0,O.current=!1)}},[l,a,x,_]),C.useEffect(()=>{if(!l||!m.current||!n)return;function e(e){P()&&r(!1,e,"hover")}let t=iT(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[i.floating,n,r,l,m,P]);let E=C.useCallback((e,t=!0,n="hover")=>{let o=iR(g.current,"close",b.current);o&&!w.current?x.start(o,()=>r(!1,e,n)):t&&(x.clear(),r(!1,e,n))},[g,r,x]),T=ak(()=>{S.current(),w.current=void 0}),N=ak(()=>{if(k.current){let e=iT(i.floating).body;e.style.pointerEvents="",e.removeAttribute(iz),k.current=!1}}),I=ak(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));C.useEffect(()=>{if(l&&a$(i.domReference)){let r=i.domReference,o=i.floating;return n&&r.addEventListener("mouseleave",a),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",a),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",a),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",a),o.removeEventListener("mouseenter",s),o.removeEventListener("mouseleave",c))}}function e(e){if(x.clear(),j.current=!1,u&&!iv(b.current)||iD(v.current)>0&&!iR(g.current,"open"))return;let t=iR(g.current,"open",b.current);t?x.start(t,()=>{y.current||r(!0,e,"hover")}):n||r(!0,e,"hover")}function t(e){if(I())return void N();S.current();let t=iT(i.floating);if(_.clear(),O.current=!1,m.current&&o.current.floatingContext){n||x.clear(),w.current=m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){N(),T(),I()||E(e,!0,"safe-polygon")}});let r=w.current;t.addEventListener("mousemove",r),S.current=()=>{t.removeEventListener("mousemove",r)};return}"touch"===b.current&&iC(i.floating,e.relatedTarget)||E(e)}function a(e){I()||o.current.floatingContext&&m.current?.({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){N(),T(),I()||E(e)}})(e)}function s(){x.clear()}function c(e){I()||E(e,!1)}},[i,l,e,u,f,E,T,N,r,n,y,p,g,m,o,I,v,x,_]),aL(()=>{if(l&&n&&m.current?.__options?.blockPointerEvents&&P()){k.current=!0;let e=i.floating;if(a$(i.domReference)&&e){let t=iT(i.floating).body;t.setAttribute(iz,"");let n=i.domReference,r=p?.nodesRef.current.find(e=>e.id===h)?.context?.elements.floating;return r&&(r.style.pointerEvents=""),t.style.pointerEvents="none",n.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{t.style.pointerEvents="",n.style.pointerEvents="",e.style.pointerEvents=""}}}},[l,n,h,i,p,m,P]),aL(()=>{n||(b.current=void 0,O.current=!1,T(),N())},[n,T,N]),C.useEffect(()=>()=>{T(),x.clear(),_.clear(),N()},[l,i.domReference,T,N,x,_]);let L=C.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function o(){j.current||y.current||r(!0,t,"hover")}u&&!iv(b.current)||n||0===iD(v.current)||O.current&&e.movementX**2+e.movementY**2<2||(_.clear(),"touch"===b.current?o():(O.current=!0,_.start(iD(v.current),o)))}}},[u,r,n,y,v,_]);return C.useMemo(()=>l?{reference:L}:{},[l,L])}function iZ(e,t,n=!0){return e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...iZ(e,t.id,n)])}function iU(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function iF(e,t){let[n,r]=e,o=!1,a=t.length;for(let e=0,i=a-1;e=r!=c>=r&&n<=(s-a)*(r-l)/(c-l)+a&&(o=!o)}return o}function iH(e={}){let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o=new ax,a=!1,i=null,l=null,s="undefined"!=typeof performance?performance.now():0,c=({x:e,y:n,placement:c,elements:u,onClose:d,nodeId:f,tree:p})=>function(h){var m,g;function y(){o.clear(),d()}if(o.clear(),!u.domReference||!u.floating||null==c||null==e||null==n)return;let{clientX:v,clientY:b}=h,x=[v,b],w=iP(h),_="mouseleave"===h.type,j=iC(u.floating,w),k=iC(u.domReference,w),S=u.domReference.getBoundingClientRect(),O=u.floating.getBoundingClientRect(),C=c.split("-")[0],P=e>O.right-O.width/2,E=n>O.bottom-O.height/2,T=(m=x,g=S,m[0]>=g.x&&m[0]<=g.x+g.width&&m[1]>=g.y&&m[1]<=g.y+g.height),N=O.width>S.width,I=O.height>S.height,L=(N?S:O).left,A=(N?S:O).right,z=(I?S:O).top,R=(I?S:O).bottom;if(j&&(a=!0,!_))return;if(k&&(a=!1),k&&!_){a=!0;return}if(_&&a$(h.relatedTarget)&&iC(u.floating,h.relatedTarget)||p&&iZ(p.nodesRef.current,f).some(({context:e})=>e?.open))return;if("top"===C&&n>=S.bottom-1||"bottom"===C&&n<=S.top+1||"left"===C&&e>=S.right-1||"right"===C&&e<=S.left+1)return y();let D=[];switch(C){case"top":D=[[L,S.top+1],[L,O.bottom-1],[A,O.bottom-1],[A,S.top+1]];break;case"bottom":D=[[L,O.top+1],[L,S.bottom-1],[A,S.bottom-1],[A,O.top+1]];break;case"left":D=[[O.right-1,R],[O.right-1,z],[S.left+1,z],[S.left+1,R]];break;case"right":D=[[S.right-1,R],[S.right-1,z],[O.left+1,z],[O.left+1,R]]}if(!iF([v,b],D)){if(a&&!T)return y();if(!_&&r){let e=function(e,t){let n=performance.now(),r=n-s;if(null===i||null===l||0===r)return i=e,l=t,s=n,null;let o=e-i,a=t-l,c=Math.sqrt(o*o+a*a);return i=e,l=t,s=n,c/r}(h.clientX,h.clientY);if(null!==e&&e<.1)return y()}iF([v,b],function([e,n]){switch(C){case"top":{let r=[[O.left,P||N?O.bottom-t:O.top],[O.right,P?N?O.bottom-t:O.top:O.bottom-t]];return[[N?e+t/2:P?e+4*t:e-4*t,n+t+1],[N?e-t/2:P?e+4*t:e-4*t,n+t+1],...r]}case"bottom":{let r=[[O.left,P||N?O.top+t:O.bottom],[O.right,P?N?O.top+t:O.bottom:O.top+t]];return[[N?e+t/2:P?e+4*t:e-4*t,n-t],[N?e-t/2:P?e+4*t:e-4*t,n-t],...r]}case"left":return[[E||I?O.right-t:O.left,O.top],[E?I?O.right-t:O.left:O.right-t,O.bottom],[e+t+1,I?n+t/2:E?n+4*t:n-4*t],[e+t+1,I?n-t/2:E?n+4*t:n-4*t]];case"right":{let r=[[E||I?O.left+t:O.right,O.top],[E?I?O.left+t:O.right:O.left+t,O.bottom]];return[[e-t,I?n+t/2:E?n+4*t:n-4*t],[e-t,I?n-t/2:E?n+4*t:n-4*t],...r]}default:return[]}}([e,n]))?!a&&r&&o.start(40,y):y()}};return c.__options={blockPointerEvents:n},c}let iV=ip&&iu;function iB(e,t={}){let{open:n,onOpenChange:r,events:o,dataRef:a,elements:i}=e,{enabled:l=!0,visibleOnly:s=!0}=t,c=C.useRef(!1),u=aw(),d=C.useRef(!0);C.useEffect(()=>{if(!l)return;let e=aH(i.domReference);function t(){!n&&aq(i.domReference)&&i.domReference===iO(iT(i.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),iV&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),iV&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[i.domReference,n,l]),C.useEffect(()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e({reason:e}){("reference-press"===e||"escape-key"===e)&&(c.current=!0)}},[o,l]);let f=C.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;let t=iP(e.nativeEvent);if(s&&a$(t)){if(iV&&!e.relatedTarget){if(!d.current&&!iN(t))return}else if(!function(e){if(!e||ih)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;let t=e.relatedTarget,n=e.nativeEvent,o=a$(t)&&t.hasAttribute(iA("focus-guard"))&&"outside"===t.getAttribute("data-type");u.start(0,()=>{let e=iO(i.domReference?i.domReference.ownerDocument:document);!t&&e===i.domReference||iC(a.current.floatingContext?.refs.floating.current,e)||iC(i.domReference,e)||o||r(!1,n,"focus")})}}),[a,i.domReference,r,s,u]);return C.useMemo(()=>l?{reference:f}:{},[l,f])}let i$=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class iq{static create(){return new iq}static request(e){return i$.request(e)}static cancel(e){return i$.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=i$.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(i$.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}function iW(){let e=ay(iq.create).current;return ab(e.disposeEffect),e}let iK={style:{transition:"none"}},iY={},iX=[],iG={fallbackAxisSide:"none"},iQ={fallbackAxisSide:"end"},iJ={intentional:"onClick",sloppy:"onPointerDown"};function i0(e){return{escapeKey:"boolean"==typeof e?e:e?.escapeKey??!1,outsidePress:"boolean"==typeof e?e:e?.outsidePress??!0}}function i1(e,t={}){let{open:n,onOpenChange:r,elements:o,dataRef:a}=e,{enabled:i=!0,escapeKey:l=!0,outsidePress:s=!0,outsidePressEvent:c="sloppy",referencePress:u=!1,referencePressEvent:d="sloppy",ancestorScroll:f=!1,bubbles:p,capture:h}=t,m=C.useContext(az),g=ak("function"==typeof s?s:()=>!1),y="function"==typeof s?g:s,v=C.useRef(!1),{escapeKey:b,outsidePress:x}=i0(p),{escapeKey:w,outsidePress:_}=i0(h),j=C.useRef(null),k=aw(),S=aw(),O=C.useRef(!1),P=C.useRef(""),E=ak(e=>{P.current=e.pointerType}),T=ak(()=>{let e=P.current;return"string"==typeof c?c:c["pen"!==e&&e?e:"mouse"]}),N=ak(e=>{if(!n||!i||!l||"Escape"!==e.key||O.current)return;let t=a.current.floatingContext?.nodeId,o=m?iZ(m.nodesRef.current,t):[];if(!b&&(e.stopPropagation(),o.length>0)){let e=!0;if(o.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}r(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),I=ak(e=>{let t=T();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}),L=ak(e=>{let t=()=>{N(e),iP(e)?.removeEventListener("keydown",t)};iP(e)?.addEventListener("keydown",t)}),A=ak(e=>{if(I(e))return;let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,"intentional"===T()&&n||t||"function"==typeof y&&!y(e))return;let i=iP(e),l=`[${iA("inert")}]`,s=iT(o.floating).querySelectorAll(l),c=a$(i)?i:null;for(;c&&!a5(c);){let e=a8(c);if(a5(e)||!a$(e))break;c=e}if(s.length&&a$(i)&&!i.matches("html,body")&&!iC(i,o.floating)&&Array.from(s).every(e=>!iC(c,e)))return;if(aq(i)){let t=a5(i),n=a6(i),r=/auto|scroll/,o=t||r.test(n.overflowX),a=t||r.test(n.overflowY),l=o&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,s=a&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,c="rtl"===n.direction,u=s&&(c?e.offsetX<=i.offsetWidth-i.clientWidth:e.offsetX>i.clientWidth),d=l&&e.offsetY>i.clientHeight;if(u||d)return}let u=a.current.floatingContext?.nodeId,d=m&&iZ(m.nodesRef.current,u).some(t=>iE(e,t.context?.elements.floating));if(iE(e,o.floating)||iE(e,o.domReference)||d)return;let f=m?iZ(m.nodesRef.current,u):[];if(f.length>0){let e=!0;if(f.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}r(!1,e,"outside-press")}),z=ak(e=>{if(!("sloppy"!==T()||!n||!i||iE(e,o.floating)||iE(e,o.domReference))){if("touch"===e.pointerType){j.current={startTime:Date.now(),startX:e.clientX,startY:e.clientY,dismissOnPointerUp:!1,dismissOnMouseDown:!0},k.start(1e3,()=>{j.current&&(j.current.dismissOnPointerUp=!1,j.current.dismissOnMouseDown=!1)});return}A(e)}}),R=ak(e=>{if(I(e)||(k.clear(),"mousedown"===e.type&&j.current&&!j.current.dismissOnMouseDown))return;let t=()=>{"pointerdown"===e.type?z(e):A(e),iP(e)?.removeEventListener(e.type,t)};iP(e)?.addEventListener(e.type,t)}),D=ak(e=>{if("sloppy"!==T()||"touch"!==e.pointerType||!j.current||iE(e,o.floating)||iE(e,o.domReference))return;let t=Math.abs(e.clientX-j.current.startX),n=Math.abs(e.clientY-j.current.startY),r=Math.sqrt(t*t+n*n);r>5&&(j.current.dismissOnPointerUp=!0),r>10&&(A(e),k.clear(),j.current=null)}),M=ak(e=>{"sloppy"!==T()||"touch"!==e.pointerType||!j.current||iE(e,o.floating)||iE(e,o.domReference)||(j.current.dismissOnPointerUp&&A(e),k.clear(),j.current=null)});C.useEffect(()=>{if(!n||!i)return;a.current.__escapeKeyBubbles=b,a.current.__outsidePressBubbles=x;let e=new ax;function t(e){r(!1,e,"ancestor-scroll")}function s(){e.clear(),O.current=!0}function c(){e.start(5*!!a3(),()=>{O.current=!1})}let u=iT(o.floating);u.addEventListener("pointerdown",E,!0),l&&(u.addEventListener("keydown",w?L:N,w),u.addEventListener("compositionstart",s),u.addEventListener("compositionend",c)),y&&(u.addEventListener("click",_?R:A,_),u.addEventListener("pointerdown",_?R:A,_),u.addEventListener("pointermove",D,_),u.addEventListener("pointerup",M,_),u.addEventListener("mousedown",R,_));let d=[];return f&&(a$(o.domReference)&&(d=a7(o.domReference)),a$(o.floating)&&(d=d.concat(a7(o.floating))),!a$(o.reference)&&o.reference&&o.reference.contextElement&&(d=d.concat(a7(o.reference.contextElement)))),(d=d.filter(e=>e!==u.defaultView?.visualViewport)).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{u.removeEventListener("pointerdown",E,!0),l&&(u.removeEventListener("keydown",w?L:N,w),u.removeEventListener("compositionstart",s),u.removeEventListener("compositionend",c)),y&&(u.removeEventListener("click",_?R:A,_),u.removeEventListener("pointerdown",_?R:A,_),u.removeEventListener("pointermove",D,_),u.removeEventListener("pointerup",M,_),u.removeEventListener("mousedown",R,_)),d.forEach(e=>{e.removeEventListener("scroll",t)}),e.clear()}},[a,o,l,y,c,n,r,f,i,b,x,N,w,L,A,_,R,z,D,M,E]),C.useEffect(()=>{a.current.insideReactTree=!1},[a,y]);let Z=C.useMemo(()=>({onKeyDown:N,...u&&{[iJ[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."intentional"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[N,r,u,d]),U=ak(e=>{let t=iP(e.nativeEvent);iC(o.floating,t)&&(v.current=!0)}),F=ak(()=>{a.current.insideReactTree=!0,S.start(0,()=>{a.current.insideReactTree=!1})}),H=C.useMemo(()=>({onKeyDown:N,onMouseDown:U,onMouseUp:U,onPointerDownCapture:F,onMouseDownCapture:F,onClickCapture:F}),[N,U,F]);return C.useMemo(()=>i?{reference:Z,floating:H}:{},[i,Z,H])}let i2=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]),i3=["top","right","bottom","left"],i4=Math.min,i5=Math.max,i6=Math.round,i9=Math.floor,i8=e=>({x:e,y:e}),i7={left:"right",right:"left",bottom:"top",top:"bottom"},le={start:"end",end:"start"};function lt(e,t){return"function"==typeof e?e(t):e}function ln(e){return e.split("-")[0]}function lr(e){return e.split("-")[1]}function lo(e){return"x"===e?"y":"x"}function la(e){return"y"===e?"height":"width"}let li=new Set(["top","bottom"]);function ll(e){return li.has(ln(e))?"y":"x"}function ls(e){return e.replace(/start|end/g,e=>le[e])}let lc=["left","right"],lu=["right","left"],ld=["top","bottom"],lf=["bottom","top"];function lp(e){return e.replace(/left|right|bottom|top/g,e=>i7[e])}function lh(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function lm(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function lg(e,t,n){return Math.floor(e/t)!==n}function ly(e,t){return t<0||t>=e.current.length}function lv(e,t){return lx(e,{disabledIndices:t})}function lb(e,t){return lx(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function lx(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let a=t;do a+=n?-o:o;while(a>=0&&a<=e.current.length-1&&lw(e,a,r));return a}function lw(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);let r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let l_=0;function lj(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(l_);let a=()=>e?.focus({preventScroll:n});o?a():l_=requestAnimationFrame(a)}function lk(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function lS(e,t){return lk(t,e===ik||e===iS,e===i_||e===ij)}function lO(e,t,n){return lk(t,e===iS,n?e===i_:e===ij)||"Enter"===e||" "===e||""===e}function lC(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),o=C.useCallback(t=>lP(t,e,"reference"),t),a=C.useCallback(t=>lP(t,e,"floating"),n),i=C.useCallback(t=>lP(t,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}function lP(e,t,n){let r=new Map,o="item"===n,a={};for(let t in"floating"===n&&(a.tabIndex=-1,a[ib]=""),e)o&&e&&(t===ix||t===iw)||(a[t]=e[t]);for(let i=0;ir.get(o)?.map(t=>t(...e)).find(e=>void 0!==e))):e[o]=a)}}let lT=C.createContext(void 0);function lN(e){let t=C.useContext(lT);if(void 0===t&&!e)throw Error("Base UI: MenuRootContext is missing. Menu parts must be placed within .");return t}let lI=C.createContext(null);function lL(e,t=!1,n=!1){let[r,o]=C.useState(e&&t?"idle":void 0),[a,i]=C.useState(e);return e&&!a&&(i(!0),o("starting")),e||!a||"ending"===r||n||o("ending"),e||a||"ending"!==r||o(void 0),aL(()=>{if(!e&&a&&"ending"!==r&&n){let e=iq.request(()=>{o("ending")});return()=>{iq.cancel(e)}}},[e,a,r,n]),aL(()=>{if(!e||t)return;let n=iq.request(()=>{ex.flushSync(()=>{o(void 0)})});return()=>{iq.cancel(n)}},[t,e]),aL(()=>{if(!e||!t)return;e&&a&&"idle"!==r&&o("starting");let n=iq.request(()=>{o("idle")});return()=>{iq.cancel(n)}},[t,e,a,o,r]),C.useMemo(()=>({mounted:a,setMounted:i,transitionStatus:r}),[a,r])}function lA(e){let{enabled:t=!0,open:n,ref:r,onComplete:o}=e,a=it(n),i=ak(o),l=function(e,t=!1){let n=iW();return ak((r,o=null)=>{let a;if(n.cancel(),null!=e){if("current"in e){if(null==e.current)return;a=e.current}else a=e;"function"!=typeof a.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED?r():n.request(()=>{function e(){a&&Promise.allSettled(a.getAnimations().map(e=>e.finished)).then(()=>{null!=o&&o.aborted||ex.flushSync(r)})}t?n.request(e):e()})}})}(r,n);C.useEffect(()=>{t&&l(()=>{n===a.current&&i()})},[t,n,i,l,a])}let lz=C.createContext(void 0);function lR(e=!0){let t=C.useContext(lz);if(void 0===t&&!e)throw Error("Base UI: DirectionContext is missing.");return t?.direction??"ltr"}function lD(e){return e?.ownerDocument||document}let lM=()=>{},lZ={},lU={},lF="";class lH{lockCount=0;restore=null;timeoutLock=ax.create();timeoutUnlock=ax.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,n;if(0===this.lockCount||null!==this.restore)return;let r=lD(e).documentElement,o=aH(r).getComputedStyle(r).overflowY;if("hidden"===o||"clip"===o){this.restore=lM;return}let a=ic||!function(e){if("undefined"==typeof document)return!1;let t=lD(e);return aH(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=a?(n=(t=lD(e).documentElement).style.overflow,t.style.overflow="hidden",()=>{t.style.overflow=n}):function(e){let t=lD(e),n=t.documentElement,r=t.body,o=aH(n),a=0,i=0,l=iq.create();if(is&&(o.visualViewport?.scale??1)!==1)return()=>{};function s(){let e=o.getComputedStyle(n),t=o.getComputedStyle(r);a=n.scrollTop,i=n.scrollLeft,lZ={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},lF=n.style.scrollBehavior,lU={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let l="undefined"!=typeof CSS&&CSS.supports?.("scrollbar-gutter","stable"),s=n.scrollHeight>n.clientHeight,c=n.scrollWidth>n.clientWidth,u="scroll"===e.overflowY||"scroll"===t.overflowY,d="scroll"===e.overflowX||"scroll"===t.overflowX,f=Math.max(0,o.innerWidth-n.clientWidth),p=Math.max(0,o.innerHeight-n.clientHeight),h=parseFloat(t.marginTop)+parseFloat(t.marginBottom),m=parseFloat(t.marginLeft)+parseFloat(t.marginRight);Object.assign(n.style,{scrollbarGutter:"stable",overflowY:!l&&(s||u)?"scroll":"hidden",overflowX:!l&&(c||d)?"scroll":"hidden"}),Object.assign(r.style,{position:"relative",height:h||p?`calc(100dvh - ${h+p}px)`:"100dvh",width:m||f?`calc(100vw - ${m+f}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=a,r.scrollLeft=i,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function c(){Object.assign(n.style,lZ),Object.assign(r.style,lU),n.scrollTop=a,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=lF}function u(){c(),l.request(s)}return s(),o.addEventListener("resize",u),()=>{l.cancel(),c(),o.removeEventListener("resize",u)}}(e)}}let lV=new lH;function lB(e){if(e)return({"focus-out":"focus-out","escape-key":"escape-key","outside-press":"outside-press","list-navigation":"list-navigation",click:"trigger-press",hover:"trigger-hover",focus:"trigger-focus","reference-press":"trigger-press","safe-polygon":"trigger-hover","ancestor-scroll":void 0})[e]}let l$=C.createContext(void 0);function lq(e=!0){let t=C.useContext(l$);if(void 0===t&&!e)throw Error("Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within .");return t}let lW=C.createContext(!1);function lK(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}let lY={};function lX(e,t,n,r,o){let a={...lJ(e,lY)};return t&&(a=lG(a,t)),n&&(a=lG(a,n)),r&&(a=lG(a,r)),o&&(a=lG(a,o)),a}function lG(e,t){return lQ(t)?t(e):function(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case"style":e[n]=lK(e.style,r);break;case"className":e[n]=l1(e.className,r);break;default:!function(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}(n,r)?e[n]=r:e[n]=function(e,t){return t?e?n=>{var r;if(null!=(r=n)&&"object"==typeof r&&"nativeEvent"in r){l0(n);let r=t(n);return n.baseUIHandlerPrevented||e?.(n),r}let o=t(n);return e?.(n),o}:t:e}(e[n],r)}}return e}(e,t)}function lQ(e){return"function"==typeof e}function lJ(e,t){return lQ(e)?e(t):e??lY}function l0(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function l1(e,t){return t?e?t+" "+e:t:e}let l2=[],l3={current:!1},l4=function(e){let t,n,{children:r,open:o,onOpenChange:a,onOpenChangeComplete:i,defaultOpen:l=!1,disabled:s=!1,modal:c,loop:u=!0,orientation:d="vertical",actionsRef:f,openOnHover:p,delay:h=100,closeDelay:m=0,closeParentOnEsc:g=!0}=e,[y,v]=C.useState(null),[b,x]=C.useState(null),[w,_]=C.useState(),[j,k]=C.useState(!0),[O,P]=C.useState(null),[E,T]=C.useState(null),[N,I]=C.useState(!0),[L,A]=C.useState(!1),z=C.useRef(null),R=C.useRef(null),D=C.useRef(null),M=C.useRef([]),Z=C.useRef([]),U=aw(),F=lq(!0),H=C.useContext(lW);{let e=lN(!0),n=function(e){let t=C.useContext(lI);if(null===t&&!e)throw Error("Base UI: MenubarContext is missing. Menubar parts must be placed within .");return t}(!0);t=H&&e?{type:"menu",context:e}:n?{type:"menubar",context:n}:F?{type:"context-menu",context:F}:{type:void 0}}let V=aN();void 0!==t.type&&(V=t.context.rootId);let B=(void 0===t.type||"context-menu"===t.type)&&(c??!0),$="menu"===t.type?t.context.allowMouseEnter:L,q="menu"===t.type?t.context.setAllowMouseEnter:A,W=p??("menu"===t.type||"menubar"===t.type&&t.context.hasSubmenuOpen),[K,Y]=aC({controlled:o,default:l,name:"MenuRoot",state:"open"}),X=C.useRef("context-menu"!==t.type),G=aw();C.useEffect(()=>{if(K||(z.current=null),"context-menu"===t.type){if(!K){G.clear(),X.current=!1;return}G.start(500,()=>{X.current=!0})}},[G,K,t.type]);let Q=C.useCallback(e=>{D.current=e,x(e)},[]),{mounted:J,setMounted:ee,transitionStatus:et}=lL(K),{openMethod:en,triggerProps:er,reset:eo}=function(e){var t;let n,r,[o,a]=C.useState(null),i=ak((t,n)=>{e||a(n)}),l=ak(()=>{a(null)}),{onClick:s,onPointerDown:c}=(t=i,n=C.useRef(""),r=C.useCallback(e=>{e.defaultPrevented||(n.current=e.pointerType,t(e,e.pointerType))},[t]),{onClick:C.useCallback(e=>{0===e.detail?t(e,"keyboard"):("pointerType"in e&&t(e,e.pointerType),t(e,n.current),n.current="")},[t]),onPointerDown:r});return C.useMemo(()=>({openMethod:o,reset:l,triggerProps:{onClick:s,onPointerDown:c}}),[o,l,s,c])}(K);!function(e){let{enabled:t=!0,mounted:n,open:r,referenceElement:o=null}=e;aL(()=>{if(t&&is&&n&&!r){let e=lD(o),t=e.body.style.userSelect,n=e.body.style.webkitUserSelect;return e.body.style.userSelect="none",e.body.style.webkitUserSelect="none",()=>{e.body.style.userSelect=t,e.body.style.webkitUserSelect=n}}},[t,n,r,o]),aL(()=>{if(t)return lV.acquire(o)},[t,o])}({enabled:K&&B&&"trigger-hover"!==E&&"touch"!==en,mounted:J,open:K,referenceElement:b}),K||j||k(!0);let ea=ak(()=>{ee(!1),I(!0),q(!1),i?.(!1),eo()});lA({enabled:!f,open:K,ref:R,onComplete(){K||ea()}});let ei=C.useRef(!0),el=aw(),es=ak((e,n,r)=>{if(K===e||!1===e&&n?.type==="click"&&"touch"===n.pointerType&&!ei.current)return;if(!e&&null!==O){let e=M.current[O];queueMicrotask(()=>{e?.setAttribute("tabindex","-1")})}e&&"trigger-focus"===r?(ei.current=!1,el.start(300,()=>{ei.current=!0})):(ei.current=!0,el.clear());let o=("trigger-press"===r||"item-press"===r)&&0===n.detail&&n?.isTrusted,i=!e&&("escape-key"===r||null==r);function l(){a?.(e,n,r),Y(e),T(r??null),z.current=n??null}"trigger-hover"===r?(I(!0),U.start(500,()=>{I(!1)}),ex.flushSync(l)):l(),"menubar"===t.type&&("trigger-focus"===r||"focus-out"===r||"trigger-hover"===r||"list-navigation"===r||"sibling-open"===r)?_("group"):o||i?_(o?"click":"dismiss"):_(void 0)});C.useImperativeHandle(f,()=>({unmount:ea}),[ea]),"context-menu"===t.type&&(n=t.context),C.useImperativeHandle(n?.positionerRef,()=>b,[b]),C.useImperativeHandle(n?.actionsRef,()=>({setOpen:es}),[es]),C.useEffect(()=>{K||U.clear()},[U,K]);let ec=aZ({elements:{reference:y,floating:b},open:K,onOpenChange(e,t,n){es(e,t,lB(n))}}),eu=iM(ec,{enabled:j&&W&&!s&&"context-menu"!==t.type&&("menubar"!==t.type||t.context.hasSubmenuOpen&&!K),handleClose:iH({blockPointerEvents:!0}),mouseOnly:!0,move:"menu"===t.type,restMs:void 0===t.type||"menu"===t.type&&$?h:void 0,delay:"menu"===t.type?{open:$?h:1e10,close:m}:{close:m}}),ed=iB(ec,{enabled:!s&&!K&&"menubar"===t.type&&t.context.hasSubmenuOpen&&!F}),ef=function(e,t={}){let{open:n,onOpenChange:r,dataRef:o}=e,{enabled:a=!0,event:i="click",toggle:l=!0,ignoreMouse:s=!1,stickIfOpen:c=!0}=t,u=C.useRef(void 0),d=iW(),f=C.useMemo(()=>({onPointerDown(e){u.current=e.pointerType},onMouseDown(e){let t=u.current,a=e.nativeEvent;if(0!==e.button||"click"===i||iv(t,!0)&&s)return;let f=o.current.openEvent,p=f?.type,h=!(n&&l&&(!f||!c||"click"===p||"mousedown"===p));d.request(()=>{r(h,a,"click")})},onClick(e){let t=u.current;if("mousedown"===i&&t){u.current=void 0;return}if(iv(t,!0)&&s)return;let a=o.current.openEvent,d=a?.type;r(!(n&&l&&(!a||!c||"click"===d||"mousedown"===d||"keydown"===d||"keyup"===d)),e.nativeEvent,"click")},onKeyDown(){u.current=void 0}}),[o,i,s,r,n,c,l,d]);return C.useMemo(()=>a?{reference:f}:iY,[a,f])}(ec,{enabled:!s&&"context-menu"!==t.type,event:K&&"menubar"===t.type?"click":"mousedown",toggle:!W||"menu"!==t.type,ignoreMouse:W&&"menu"===t.type,stickIfOpen:void 0===t.type&&N}),ep=i1(ec,{enabled:!s,bubbles:g&&"menu"===t.type,outsidePress:()=>"context-menu"!==t.type||z.current?.type==="contextmenu"||X.current}),eh=function(e,t={}){let{open:n,elements:r,floatingId:o}=e,{enabled:a=!0,role:i="dialog"}=t,l=aN(),s=r.domReference?.id||l,c=C.useMemo(()=>iL(r.floating)?.id||o,[r.floating,o]),u=i2.get(i)??i,d=null!=aR(),f=C.useMemo(()=>"tooltip"===u||"label"===i?{[`aria-${"label"===i?"labelledby":"describedby"}`]:n?c:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===u?"dialog":u,"aria-controls":n?c:void 0,..."listbox"===u&&{role:"combobox"},..."menu"===u&&{id:s},..."menu"===u&&d&&{role:"menuitem"},..."select"===i&&{"aria-autocomplete":"none"},..."combobox"===i&&{"aria-autocomplete":"list"}},[u,c,d,n,s,i]),p=C.useMemo(()=>{let e={id:c,...u&&{role:u}};return"tooltip"===u||"label"===i?e:{...e,..."menu"===u&&{"aria-labelledby":s}}},[u,c,s,i]),h=C.useCallback(({active:e,selected:t})=>{let n={role:"option",...e&&{id:`${c}-fui-option`}};switch(i){case"select":case"combobox":return{...n,"aria-selected":t}}return{}},[c,i]);return C.useMemo(()=>a?{reference:f,floating:p,item:h}:{},[a,f,p,h])}(ec,{role:"menu"}),em=lR(),eg=function(e,t){let{open:n,onOpenChange:r,elements:o,floatingId:a}=e,{listRef:i,activeIndex:l,onNavigate:s=()=>{},enabled:c=!0,selectedIndex:u=null,allowEscape:d=!1,loop:f=!1,nested:p=!1,rtl:h=!1,virtual:m=!1,focusItemOnOpen:g="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:v=!0,disabledIndices:b,orientation:x="vertical",parentOrientation:w,cols:_=1,scrollItemIntoView:j=!0,virtualItemRef:k,itemSizes:S,dense:O=!1}=t,P=it(iL(o.floating)),E=aR(),T=C.useContext(az);aL(()=>{e.dataRef.current.orientation=x},[e,x]);let N=iI(o.domReference),I=C.useRef(g),L=C.useRef(u??-1),A=C.useRef(null),z=C.useRef(!0),R=ak(()=>{s(-1===L.current?null:L.current)}),D=C.useRef(R),M=C.useRef(!!o.floating),Z=C.useRef(n),U=C.useRef(!1),F=C.useRef(!1),H=it(b),V=it(n),B=it(j),$=it(u),[q,W]=C.useState(),K=ak(()=>{function e(e){m?(e.id?.endsWith("-fui-option")&&(e.id=`${a}-${Math.random().toString(16).slice(2,10)}`),W(e.id),T?.events.emit("virtualfocus",e),k&&(k.current=e)):lj(e,{sync:U.current,preventScroll:!0})}let t=i.current[L.current],n=F.current;t&&e(t),(U.current?e=>e():requestAnimationFrame)(()=>{let r=i.current[L.current]||t;if(!r)return;t||e(r);let o=B.current;o&&X&&(n||!z.current)&&r.scrollIntoView?.("boolean"==typeof o?{block:"nearest",inline:"nearest"}:o)})});aL(()=>{c&&(n&&o.floating?I.current&&null!=u&&(F.current=!0,L.current=u,R()):M.current&&(L.current=-1,D.current()))},[c,n,o.floating,u,R]),aL(()=>{if(c&&n&&o.floating)if(null==l){if(U.current=!1,null!=$.current)return;if(M.current&&(L.current=-1,K()),(!Z.current||!M.current)&&I.current&&(null!=A.current||!0===I.current&&null==A.current)){let e=0,t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(L.current=null==A.current||lO(A.current,x,h)||p?lv(i,H.current):lb(i,H.current),A.current=null,R())};t()}}else ly(i,l)||(L.current=l,K(),F.current=!1)},[c,n,o.floating,l,$,p,i,x,h,R,K,H]),aL(()=>{if(!c||o.floating||!T||m||!M.current)return;let e=T.nodesRef.current,t=e.find(e=>e.id===E)?.context?.elements.floating,n=iO(iT(o.floating)),r=e.some(e=>e.context&&iC(e.context.elements.floating,n));t&&!r&&z.current&&t.focus({preventScroll:!0})},[c,o.floating,T,E,m]),aL(()=>{D.current=R,Z.current=n,M.current=!!o.floating}),aL(()=>{n||(A.current=null,I.current=g)},[n,g]);let Y=null!=l,X=C.useMemo(()=>{function e(e){if(!V.current)return;let t=i.current.indexOf(e);-1!==t&&L.current!==t&&(L.current=t,R())}return{onFocus({currentTarget:t}){U.current=!0,e(t)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove({currentTarget:t}){U.current=!0,F.current=!1,y&&e(t)},onPointerLeave({pointerType:e}){!z.current||"touch"===e||(U.current=!0,y&&(L.current=-1,R(),m||P.current?.focus({preventScroll:!0})))}}},[V,P,y,i,R,m]),G=C.useCallback(()=>w??T?.nodesRef.current.find(e=>e.id===E)?.context?.dataRef?.current.orientation,[E,T,w]),Q=ak(e=>{var t,a,l,s,c,u,g,y;if(z.current=!1,U.current=!0,229===e.which||!V.current&&e.currentTarget===P.current)return;if(p&&(t=e.key,a=x,l=h,s=_,"both"===a||"horizontal"===a&&s&&s>1?"Escape"===t:lk(a,l?t===ij:t===i_,t===ik))){lS(e.key,G())||im(e),r(!1,e.nativeEvent,"list-navigation"),aq(o.domReference)&&(m?T?.events.emit("virtualfocus",o.domReference):o.domReference.focus());return}let v=L.current,w=lv(i,b),j=lb(i,b);if(N||("Home"===e.key&&(im(e),L.current=w,R()),"End"===e.key&&(im(e),L.current=j,R())),_>1){let t,n,r=S||Array.from({length:i.current.length},()=>({width:1,height:1})),o=(c=r,u=_,g=O,t=[],n=0,c.forEach(({width:e,height:r},o)=>{let a=!1;for(g&&(n=0);!a;){let i=[];for(let t=0;tnull==t[e])?(i.forEach(e=>{t[e]=o}),a=!0):n+=1}}),[...t]),a=o.findIndex(e=>null!=e&&!lw(i,e,b)),l=o.reduce((e,t,n)=>null==t||lw(i,t,b)?e:n,-1),s=o[function(e,{event:t,orientation:n,loop:r,rtl:o,cols:a,disabledIndices:i,minIndex:l,maxIndex:s,prevIndex:c,stopEvent:u=!1}){let d=c;if(t.key===ik){if(u&&im(t),-1===c)d=s;else if(d=lx(e,{startingIndex:d,amount:a,decrement:!0,disabledIndices:i}),r&&(c-ae?n:n-a}ly(e,d)&&(d=c)}if(t.key===iS&&(u&&im(t),-1===c?d=l:(d=lx(e,{startingIndex:c,amount:a,disabledIndices:i}),r&&c+a>s&&(d=lx(e,{startingIndex:c%a-a,amount:a,disabledIndices:i}))),ly(e,d)&&(d=c)),"both"===n){let n=i9(c/a);t.key===(o?i_:ij)&&(u&&im(t),c%a!=a-1?(d=lx(e,{startingIndex:c,disabledIndices:i}),r&&lg(d,a,n)&&(d=lx(e,{startingIndex:c-c%a-1,disabledIndices:i}))):r&&(d=lx(e,{startingIndex:c-c%a-1,disabledIndices:i})),lg(d,a,n)&&(d=c)),t.key===(o?ij:i_)&&(u&&im(t),c%a!=0?(d=lx(e,{startingIndex:c,decrement:!0,disabledIndices:i}),r&&lg(d,a,n)&&(d=lx(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:i}))):r&&(d=lx(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:i})),lg(d,a,n)&&(d=c));let l=i9(s/a)===n;ly(e,d)&&(d=r&&l?t.key===(o?ij:i_)?s:lx(e,{startingIndex:c-c%a-1,disabledIndices:i}):c)}return d}({current:o.map(e=>null!=e?i.current[e]:null)},{event:e,orientation:x,loop:f,rtl:h,cols:_,disabledIndices:(y=[...("function"!=typeof b?b:null)||i.current.map((e,t)=>lw(i,t,b)?t:void 0),void 0],o.flatMap((e,t)=>y.includes(e)?[t]:[])),minIndex:a,maxIndex:l,prevIndex:function(e,t,n,r,o){if(-1===e)return -1;let a=n.indexOf(e),i=t[e];switch(o){case"tl":return a;case"tr":if(!i)return a;return a+i.width-1;case"bl":if(!i)return a;return a+(i.height-1)*r;case"br":return n.lastIndexOf(e);default:return -1}}(L.current>j?w:L.current,r,o,_,e.key===iS?"bl":e.key===(h?i_:ij)?"tr":"tl"),stopEvent:!0})];if(null!=s&&(L.current=s,R()),"both"===x)return}if(lS(e.key,x)){if(im(e),n&&!m&&iO(e.currentTarget.ownerDocument)===e.currentTarget){L.current=lO(e.key,x,h)?w:j,R();return}lO(e.key,x,h)?f?L.current=v>=j?d&&v!==i.current.length?-1:w:lx(i,{startingIndex:v,disabledIndices:b}):L.current=Math.min(j,lx(i,{startingIndex:v,disabledIndices:b})):f?L.current=v<=w?d&&-1!==v?i.current.length:j:lx(i,{startingIndex:v,decrement:!0,disabledIndices:b}):L.current=Math.max(w,lx(i,{startingIndex:v,decrement:!0,disabledIndices:b})),ly(i,L.current)&&(L.current=-1),R()}}),J=C.useMemo(()=>m&&n&&Y&&{"aria-activedescendant":q},[m,n,Y,q]),ee=C.useMemo(()=>({"aria-orientation":"both"===x?void 0:x,...!N?J:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&n&&!m){im(e),r(!1,e.nativeEvent,"list-navigation"),aq(o.domReference)&&o.domReference.focus();return}Q(e)},onPointerMove(){z.current=!0}}),[J,Q,x,N,r,n,m,o.domReference]),et=C.useMemo(()=>{function e(e){"auto"===g&&ig(e.nativeEvent)&&(I.current=!0)}function t(e){I.current=g,"auto"===g&&iy(e.nativeEvent)&&(I.current=!0)}return{...J,onKeyDown(e){var t,o;z.current=!1;let a=e.key.startsWith("Arrow"),l=(t=e.key,o=G(),lk(o,h?t===i_:t===ij,t===iS)),s=lS(e.key,x),c=(p?l:s)||"Enter"===e.key||""===e.key.trim();if(m&&n)return Q(e);if(n||v||!a){if(c){let t=lS(e.key,G());A.current=p&&t?null:e.key}if(p){l&&(im(e),n?(L.current=lv(i,H.current),R()):r(!0,e.nativeEvent,"list-navigation"));return}s&&(null!=u&&(L.current=u),im(e),!n&&v?r(!0,e.nativeEvent,"list-navigation"):Q(e),n&&R())}},onFocus(){n&&!m&&(L.current=-1,R())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[J,Q,H,g,i,p,R,r,n,v,x,G,h,u,m]);return C.useMemo(()=>c?{reference:et,floating:ee,item:X}:{},[c,et,ee,X])}(ec,{enabled:!s,listRef:M,activeIndex:O,nested:void 0!==t.type,loop:u,orientation:d,parentOrientation:"menubar"===t.type?t.context.orientation:void 0,rtl:"rtl"===em,disabledIndices:l2,onNavigate:P,openOnArrowKeyDown:"context-menu"!==t.type}),ey=C.useRef(!1),ev=function(e,t){let{open:n,dataRef:r}=e,{listRef:o,activeIndex:a,onMatch:i,onTypingChange:l,enabled:s=!0,findMatch:c=null,resetMs:u=750,ignoreKeys:d=[],selectedIndex:f=null}=t,p=aw(),h=C.useRef(""),m=C.useRef(f??a??-1),g=C.useRef(null),y=ak(i),v=ak(l),b=it(c),x=it(d);aL(()=>{n&&(p.clear(),g.current=null,h.current="")},[n,p]),aL(()=>{n&&""===h.current&&(m.current=f??a??-1)},[n,f,a]);let w=ak(e=>{e?r.current.typing||(r.current.typing=e,v(e)):r.current.typing&&(r.current.typing=e,v(e))}),_=ak(e=>{function t(e,t,n){let r=b.current?b.current(t,n):t.find(e=>e?.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())===0);return r?e.indexOf(r):-1}let r=o.current;if(h.current.length>0&&" "!==h.current[0]&&(-1===t(r,r,h.current)?w(!1):" "===e.key&&im(e)),null==r||x.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;n&&" "!==e.key&&(im(e),w(!0)),r.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&h.current===e.key&&(h.current="",m.current=g.current),h.current+=e.key,p.start(u,()=>{h.current="",m.current=g.current,w(!1)});let a=m.current,i=t(r,[...r.slice((a||0)+1),...r.slice(0,(a||0)+1)],h.current);-1!==i?(y(i),g.current=i):" "!==e.key&&(h.current="",w(!1))}),j=C.useMemo(()=>({onKeyDown:_}),[_]),k=C.useMemo(()=>({onKeyDown:_,onKeyUp(e){" "===e.key&&w(!1)}}),[_,w]);return C.useMemo(()=>s?{reference:j,floating:k}:{},[s,j,k])}(ec,{listRef:Z,activeIndex:O,resetMs:500,onMatch:e=>{K&&e!==O&&P(e)},onTypingChange:C.useCallback(e=>{ey.current=e},[])}),{getReferenceProps:eb,getFloatingProps:ew,getItemProps:e_}=lC([eu,ef,ep,ed,eh,eg,ev]),ej=function(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,o=C.useRef(!1);return C.useMemo(()=>t?{onMouseDown:e=>{("open"===n&&!r||"close"===n&&r)&&(o.current=!0,lD(e.currentTarget).addEventListener("click",()=>{o.current=!1},{once:!0}))},onClick:e=>{o.current&&(o.current=!1,e.preventBaseUIHandler())}}:iY,[t,n,r])}({open:K,enabled:"menubar"===t.type,mouseDownAction:"open"}),ek=C.useMemo(()=>{let e=lX(eb(),{onMouseEnter(){k(!0)},onMouseMove(){q(!0)}},er,ej);return delete e.role,e},[eb,ej,q,er]),eS=C.useMemo(()=>ew({onMouseEnter(){W&&"menu"!==t.type||k(!1)},onMouseMove(){q(!0)},onClick(){W&&k(!1)}}),[ew,W,t.type,q]),eO=C.useMemo(()=>e_(),[e_]),eC=C.useMemo(()=>({activeIndex:O,setActiveIndex:P,allowMouseUpTriggerRef:t.type?t.context.allowMouseUpTriggerRef:l3,floatingRootContext:ec,itemProps:eO,popupProps:eS,triggerProps:ek,itemDomElements:M,itemLabels:Z,mounted:J,open:K,popupRef:R,positionerRef:D,setOpen:es,setPositionerElement:Q,triggerElement:y,setTriggerElement:v,transitionStatus:et,lastOpenChangeReason:E,instantType:w,onOpenChangeComplete:i,setHoverEnabled:k,typingRef:ey,modal:B,disabled:s,parent:t,rootId:V,allowMouseEnter:$,setAllowMouseEnter:q}),[O,ec,eO,eS,ek,M,Z,J,K,D,es,et,y,Q,E,w,i,B,s,t,V,$,q]),eP=(0,S.jsx)(lT.Provider,{value:eC,children:r});return void 0===t.type||"context-menu"===t.type?(0,S.jsx)(aM,{children:eP}):eP};function l5(e,t,n,r){var o,a,i,l,s;let c=ay(l6).current;return o=c,a=e,i=t,l=n,s=r,(o.refs[0]!==a||o.refs[1]!==i||o.refs[2]!==l||o.refs[3]!==s)&&l9(c,[e,t,n,r]),c.callback}function l6(){return{callback:null,cleanup:null,refs:[]}}function l9(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e"starting"===e?l7:"ending"===e?se:null},sn=((n={}).open="data-open",n.closed="data-closed",n[n.startingStyle=l8.startingStyle]="startingStyle",n[n.endingStyle=l8.endingStyle]="endingStyle",n.anchorHidden="data-anchor-hidden",n),sr=((r={}).popupOpen="data-popup-open",r.pressed="data-pressed",r),so={[sr.popupOpen]:""},sa={[sr.popupOpen]:"",[sr.pressed]:""},si={[sn.open]:""},sl={[sn.closed]:""},ss={[sn.anchorHidden]:""},sc={open:e=>e?so:null},su={open:e=>e?sa:null},sd={open:e=>e?si:sl,anchorHidden:e=>e?ss:null},sf=parseInt(C.version,10);function sp(e,t,n={}){let r=t.render,o=function(e,t={}){var n,r,o,a,i;let l,{className:s,render:c}=e,{state:u=iY,ref:d,props:f,disableStyleHooks:p,customStyleHookMapping:h,enabled:m=!0}=t,g=m?(n=s,r=u,"function"==typeof n?n(r):n):void 0;!0!==p&&(l=C.useMemo(()=>m?function(e,t){let n={};for(let r in e){let o=e[r];if(t?.hasOwnProperty(r)){let e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(u,h):iY,[u,h,m]));let y=m?lK(l,Array.isArray(f)?function(e){if(0===e.length)return lY;if(1===e.length)return lJ(e[0],lY);let t={...lJ(e[0],lY)};for(let n=1;ne!==i[t]))&&l9(e,o),y.ref=e.callback}else y.ref=l5(y.ref,sh(c),d);else l5(null,null);return m?(void 0!==g&&(y.className=l1(y.className,g)),y):iY}(t,n);return!1===n.enabled?null:function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);let e=lX(n,t.props);return e.ref=n.ref,C.cloneElement(t,e)}if(e&&"string"==typeof e){var o,a;return o=e,a=n,"button"===o?(0,S.jsx)("button",{type:"button",...a}):"img"===o?(0,S.jsx)("img",{alt:"",...a}):C.createElement(o,a)}throw Error("Base UI: Render element or function are not defined.")}(e,r,o,n.state??iY)}function sh(e){return e&&"function"!=typeof e?sf>=19?e.props.ref:e.ref:null}let sm=C.createContext(void 0);function sg(e=!1){let t=C.useContext(sm);if(void 0===t&&!e)throw Error("Base UI: CompositeRootContext is missing. Composite parts must be placed within .");return t}function sy(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,a=C.useRef(null),i=void 0!==sg(!0),l=ak(()=>{let e=a.current;return!!(e?.tagName==="A"&&e?.href)}),{props:s}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:a}=e,i=r&&!1!==t,l=r&&!1===t;return{props:C.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=o,!a&&n&&(e.tabIndex=t?o:-1)),(a&&(t||i)||!a&&n)&&(e["aria-disabled"]=n),a&&(!t||l)&&(e.disabled=n),e},[r,n,t,i,l,a,o])}}({focusableWhenDisabled:n,disabled:t,composite:i,tabIndex:r,isNativeButton:o});return aL(()=>{let e=a.current;e instanceof HTMLButtonElement&&i&&t&&void 0===s.disabled&&e.disabled&&(e.disabled=!1)},[t,s.disabled,i]),{getButtonProps:C.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:i,onPointerDown:c,...u}=e;return lX({type:o?"button":void 0,onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(l0(e),i?.(e)),e.baseUIHandlerPrevented)return;let r=e.target===e.currentTarget&&!o&&!l()&&!t,a="Enter"===e.key,s=" "===e.key;r&&((s||a)&&e.preventDefault(),a&&n?.(e))},onKeyUp(e){t||(l0(e),a?.(e)),!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||o||t||" "!==e.key||n?.(e))},onPointerDown(e){t?e.preventDefault():c?.(e)}},o?void 0:{role:"button"},s,u)},[t,s,o,l]),buttonRef:a}}let sv=C.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}}),sb=((o={})[o.None=0]="None",o[o.GuessFromOrder=1]="GuessFromOrder",o);function sx(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:o}=e,{register:a,unregister:i,subscribeMapChange:l,elementsRef:s,labelsRef:c,nextIndexRef:u}=C.useContext(sv),d=C.useRef(-1),[f,p]=C.useState(o===sb.GuessFromOrder?()=>{if(-1===d.current){let e=u.current;u.current+=1,d.current=e}return d.current}:-1),h=C.useRef(null),m=C.useCallback(e=>{if(h.current=e,-1!==f&&null!==e&&(s.current[f]=e,c)){let n=void 0!==t;c.current[f]=n?t:r?.current?.textContent??e.textContent}},[f,s,c,t,r]);return aL(()=>{let e=h.current;if(e)return a(e,n),()=>{i(e)}},[a,i,n]),aL(()=>l(e=>{let t=h.current?e.get(h.current)?.index:null;null!=t&&p(t)}),[l,p]),C.useMemo(()=>({ref:m,index:f}),[f,m])}function sw(e){let{render:t,className:n,state:r=iY,props:o=iX,refs:a=iX,metadata:i,customStyleHookMapping:l,tag:s="div",...c}=e,{compositeProps:u,compositeRef:d}=function(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=sg(),{ref:o,index:a}=sx(e),i=n===a,l=C.useRef(null),s=l5(o,l);return{compositeProps:C.useMemo(()=>({tabIndex:i?0:-1,onFocus(){r(a)},onMouseMove(){let e=l.current;if(!t||!e)return;let n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;i||n||e.focus()}}),[i,r,a,t]),compositeRef:s,index:a}}({metadata:i});return sp(s,e,{state:r,ref:[...a,d],props:[u,...o,c],customStyleHookMapping:l})}let s_=C.forwardRef(function(e,t){let{render:n,className:r,disabled:o=!1,nativeButton:a=!0,...i}=e,{triggerProps:l,disabled:s,setTriggerElement:c,open:u,allowMouseUpTriggerRef:d,positionerRef:f,parent:p,lastOpenChangeReason:h,rootId:m}=lN(),g=o||s,y=C.useRef(null),v=aw(),{getButtonProps:b,buttonRef:x}=sy({disabled:g,native:a}),w=l5(x,c),{events:_}=C.useContext(az);C.useEffect(()=>{u||void 0!==p.type||(d.current=!1)},[d,u,p.type]);let j=ak(e=>{if(!y.current)return;v.clear(),d.current=!1;let t=e.target;if(iC(y.current,t)||iC(f.current,t)||t===y.current||null!=t&&function e(t){return aq(t)&&t.hasAttribute("data-rootownerid")?t.getAttribute("data-rootownerid")??void 0:a5(t)?void 0:e(a8(t))}(t)===m)return;let n=function(e){let t=e.getBoundingClientRect(),n=window.getComputedStyle(e,"::before"),r=window.getComputedStyle(e,"::after");if("none"===n.content&&"none"===r.content)return t;let o=parseFloat(n.width)||0,a=parseFloat(n.height)||0,i=parseFloat(r.width)||0,l=parseFloat(r.height)||0,s=Math.max(t.width,o,i),c=Math.max(t.height,a,l),u=s-t.width,d=c-t.height;return{left:t.left-u/2,right:t.right+u/2,top:t.top-d/2,bottom:t.bottom+d/2}}(y.current);e.clientX>=n.left-2&&e.clientX<=n.right+2&&e.clientY>=n.top-2&&e.clientY<=n.bottom+2||_.emit("close",{domEvent:e,reason:"cancel-open"})});C.useEffect(()=>{u&&"trigger-hover"===h&&lD(y.current).addEventListener("mouseup",j,{once:!0})},[u,j,h]);let k="menubar"===p.type,O=C.useCallback(e=>lX(k?{role:"menuitem"}:{},{"aria-haspopup":"menu",ref:w,onMouseDown:e=>{u||(v.start(200,()=>{d.current=!0}),lD(e.currentTarget).addEventListener("mouseup",j,{once:!0}))}},e,b),[b,w,u,d,v,j,k]),P=C.useMemo(()=>({disabled:g,open:u}),[g,u]),E=[y,t,x],T=[l,i,O],N=sp("button",e,{enabled:!k,customStyleHookMapping:su,state:P,ref:E,props:T});return k?(0,S.jsx)(sw,{tag:"button",render:n,className:r,state:P,refs:E,props:T,customStyleHookMapping:su}):N}),sj={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1},sk=C.forwardRef(function(e,t){let[n,r]=C.useState();return aL(()=>{iu&&r("button")},[]),(0,S.jsx)("span",{...e,ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,style:sj,"data-base-ui-focus-guard":""})});var sS='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',sO="undefined"==typeof Element,sC=sO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,sP=!sO&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},sE=function e(t,n){void 0===n&&(n=!0);var r,o=null==t||null==(r=t.getAttribute)?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},sT=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},sN=function(e,t,n){if(sE(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(sS));return t&&sC.call(e,sS)&&r.unshift(e),r=r.filter(n)},sI=function e(t,n,r){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!sE(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),s=e(l.length?l:i.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:i,candidates:s})}else{sC.call(i,sS)&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),u=!sE(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(c&&u){var d=e(!0===c?i.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},sL=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},sA=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||sT(e))&&!sL(e)?0:e.tabIndex},sz=function(e,t){var n=sA(e);return n<0&&t&&!sL(e)?0:n},sR=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},sD=function(e){return"INPUT"===e.tagName},sM=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(sC.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return sH(e)}else{if("function"==typeof r){for(var a=e;e;){var i=e.parentElement,l=sP(e);if(i&&!i.shadowRoot&&!0===r(i))return sH(e);e=e.assignedSlot?e.assignedSlot:i||l===e.ownerDocument?i:l.host}e=a}if(sF(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},sB=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;nsA(t))&&!!s$(e,t)},sW=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},sK=function e(t){var n=[],r=[];return t.forEach(function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,l=sz(i,a),s=a?e(t.candidates):i;0===l?a?n.push.apply(n,s):n.push(i):r.push({documentOrder:o,tabIndex:l,item:t,isScope:a,content:s})}),r.sort(sR).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},sY=function(e,t){return sK((t=t||{}).getShadowRoot?sI([e],t.includeContainer,{filter:sq.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:sW}):sN(e,t.includeContainer,sq.bind(null,t)))},sX=function(e,t){return(t=t||{}).getShadowRoot?sI([e],t.includeContainer,{filter:s$.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):sN(e,t.includeContainer,s$.bind(null,t))},sG=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==sC.call(e,sS)&&sq(t,e)};let sQ=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function sJ(e,t){let n=sY(e,sQ()),r=n.length;if(0===r)return;let o=iO(iT(e)),a=n.indexOf(o);return n[-1===a?1===t?0:r-1:a+t]}function s0(e){return sJ(iT(e).body,1)||e}function s1(e){return sJ(iT(e).body,-1)||e}function s2(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!iC(n,r)}function s3(e){sY(e,sQ()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function s4(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}let s5=C.createContext(null),s6=iA("portal");function s9(e={}){let{id:t,root:n}=e,r=aN(),o=C.useContext(s5),[a,i]=C.useState(null),l=C.useRef(null);return aL(()=>()=>{a?.remove(),queueMicrotask(()=>{l.current=null})},[a]),aL(()=>{if(!r||l.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(s6,""),e.appendChild(n),l.current=n,i(n)},[t,r]),aL(()=>{if(null===n||!r||l.current)return;let e=n||o?.portalNode;e&&!aB(e)&&(e=e.current),e=e||document.body;let a=null;t&&((a=document.createElement("div")).id=t,e.appendChild(a));let s=document.createElement("div");s.id=r,s.setAttribute(s6,""),(e=a||e).appendChild(s),l.current=s,i(s)},[t,n,r,o]),a}function s8(e){let{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,a=s9({id:n,root:r}),[i,l]=C.useState(null),s=C.useRef(null),c=C.useRef(null),u=C.useRef(null),d=C.useRef(null),f=i?.modal,p=i?.open,h=!!i&&!i.modal&&i.open&&o&&!!(r||a);return C.useEffect(()=>{if(a&&o&&!f)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&s2(e)){let t="focusin"===e.type;(t?s4:s3)(a)}}},[a,o,f]),C.useEffect(()=>{!a||p||s4(a)},[p,a]),(0,S.jsxs)(s5.Provider,{value:C.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:a,setFocusManagerState:l}),[o,a]),children:[h&&a&&(0,S.jsx)(sk,{"data-type":"outside",ref:s,onFocus:e=>{if(s2(e,a))u.current?.focus();else{let e=s1(i?i.domReference:null);e?.focus()}}}),h&&a&&(0,S.jsx)("span",{"aria-owns":a.id,style:sj}),a&&ex.createPortal(t,a),h&&a&&(0,S.jsx)(sk,{"data-type":"outside",ref:c,onFocus:e=>{if(s2(e,a))d.current?.focus();else{let t=s0(i?i.domReference:null);t?.focus(),i?.closeOnFocusOut&&i?.onOpenChange(!1,e.nativeEvent,"focus-out")}}})]})}let s7=C.createContext(void 0);function ce(e){let{children:t,keepMounted:n=!1,container:r}=e,{mounted:o}=lN();return o||n?(0,S.jsx)(s7.Provider,{value:n,children:(0,S.jsx)(s8,{root:r,children:t})}):null}let ct=C.createContext(void 0);function cn(e,t,n){let r,{reference:o,floating:a}=e,i=ll(t),l=lo(ll(t)),s=la(l),c=ln(t),u="y"===i,d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,p=o[s]/2-a[s]/2;switch(c){case"top":r={x:d,y:o.y-a.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-a.width,y:f};break;default:r={x:o.x,y:o.y}}switch(lr(t)){case"start":r[l]-=p*(n&&u?-1:1);break;case"end":r[l]+=p*(n&&u?-1:1)}return r}let cr=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,l=a.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=cn(c,r,s),f=r,p={},h=0;for(let n=0;ne[t]>=0)}let cl=new Set(["left","top"]);async function cs(e,t){let{placement:n,platform:r,elements:o}=e,a=await (null==r.isRTL?void 0:r.isRTL(o.floating)),i=ln(n),l=lr(n),s="y"===ll(n),c=cl.has(i)?-1:1,u=a&&s?-1:1,d=lt(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}function cc(e){let t=a6(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=aq(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=i6(n)!==a||i6(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function cu(e){return a$(e)?e:e.contextElement}function cd(e){let t=cu(e);if(!aq(t))return i8(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:a}=cc(t),i=(a?i6(n.width):n.width)/r,l=(a?i6(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}let cf=i8(0);function cp(e){let t=aH(e);return a3()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:cf}function ch(e,t,n,r){var o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),s=cu(e),c=i8(1);t&&(r?a$(r)&&(c=cd(r)):c=cd(e));let u=(o=s,void 0===(a=n)&&(a=!1),(i=r)&&(!a||i===aH(o))&&a)?cp(s):i8(0),d=(l.left+u.x)/c.x,f=(l.top+u.y)/c.y,p=l.width/c.x,h=l.height/c.y;if(s){let e=aH(s),t=r&&a$(r)?aH(r):r,n=e,o=ie(n);for(;o&&r&&t!==n;){let e=cd(o),t=o.getBoundingClientRect(),r=a6(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,f*=e.y,p*=e.x,h*=e.y,d+=a,f+=i,o=ie(n=aH(o))}}return lm({width:p,height:h,x:d,y:f})}function cm(e,t){let n=a9(e).scrollLeft;return t?t.left+n:ch(aV(e)).left+n}function cg(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:cm(e,r));return{x:o,y:r.top+t.scrollTop}}let cy=new Set(["absolute","fixed"]);function cv(e,t,n){var r,o;let a;if("viewport"===t)a=function(e,t){let n=aH(e),r=aV(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;let e=a3();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t){let t,n,o,i,l,s,c;r=aV(e),t=aV(r),n=a9(r),o=r.ownerDocument.body,i=i5(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=i5(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+cm(r),c=-n.scrollTop,"rtl"===a6(o).direction&&(s+=i5(t.clientWidth,o.clientWidth)-i),a={width:i,height:l,x:s,y:c}}else if(a$(t)){let e,r,i,l,s,c,u;r=(e=ch(o=t,!0,"fixed"===n)).top+o.clientTop,i=e.left+o.clientLeft,l=aq(o)?cd(o):i8(1),s=o.clientWidth*l.x,c=o.clientHeight*l.y,u=i*l.x,a={width:s,height:c,x:u,y:r*l.y}}else{let n=cp(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return lm(a)}function cb(e){return"static"===a6(e).position}function cx(e,t){if(!aq(e)||"fixed"===a6(e).position)return null;if(t)return t(e);let n=e.offsetParent;return aV(e)===n&&(n=n.ownerDocument.body),n}function cw(e,t){var n;let r=aH(e);if(aQ(e))return r;if(!aq(e)){let t=a8(e);for(;t&&!a5(t);){if(a$(t)&&!cb(t))return t;t=a8(t)}return r}let o=cx(e,t);for(;o&&(n=o,aX.has(aF(n)))&&cb(o);)o=cx(o,t);return o&&a5(o)&&cb(o)&&!a2(o)?r:o||function(e){let t=a8(e);for(;aq(t)&&!a5(t);){if(a2(t))return t;if(aQ(t))break;t=a8(t)}return null}(e)||r}let c_=async function(e){let t=this.getOffsetParent||cw,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=aq(t),o=aV(t),a="fixed"===n,i=ch(e,!0,a,t),l={scrollLeft:0,scrollTop:0},s=i8(0);if(r||!r&&!a)if(("body"!==aF(t)||aY(o))&&(l=a9(t)),r){let e=ch(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=cm(o));a&&!r&&o&&(s.x=cm(o));let c=!o||r||a?i8(0):cg(o,l),u=i.left+l.scrollLeft-s.x-c.x;return{x:u,y:i.top+l.scrollTop-s.y-c.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},cj={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a="fixed"===o,i=aV(r),l=!!t&&aQ(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},c=i8(1),u=i8(0),d=aq(r);if((d||!d&&!a)&&(("body"!==aF(r)||aY(i))&&(s=a9(r)),aq(r))){let e=ch(r);c=cd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!i||d||a?i8(0):cg(i,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:aV,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?aQ(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=a7(e,[],!1).filter(e=>a$(e)&&"body"!==aF(e)),o=null,a="fixed"===a6(e).position,i=a?a8(e):e;for(;a$(i)&&!a5(i);){let t=a6(i),n=a2(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&cy.has(o.position)||aY(i)&&!n&&function e(t,n){let r=a8(t);return!(r===n||!a$(r)||a5(r))&&("fixed"===a6(r).position||e(r,n))}(e,i))?r=r.filter(e=>e!==i):o=t,i=a8(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((e,n)=>{let r=cv(t,n,o);return e.top=i5(r.top,e.top),e.right=i4(r.right,e.right),e.bottom=i4(r.bottom,e.bottom),e.left=i5(r.left,e.left),e},cv(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:cw,getElementRects:c_,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=cc(e);return{width:t,height:n}},getScale:cd,isElement:a$,isRTL:function(e){return"rtl"===a6(e).direction}};function ck(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cS(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=cu(e),d=a||i?[...u?a7(u):[],...a7(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let f=u&&s?function(e,t){let n,r=null,o=aV(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;let h=i9(d),m=i9(o.clientWidth-(u+f)),g=i9(o.clientHeight-(d+p)),y={rootMargin:-h+"px "+-m+"px "+-g+"px "+-i9(u)+"px",threshold:i5(0,i4(1,s))||1},v=!0;function b(t){let r=t[0].intersectionRatio;if(r!==s){if(!v)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||ck(c,e.getBoundingClientRect())||i(),v=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),a}(u,n):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let m=c?ch(e):null;return c&&function t(){let r=ch(e);m&&!ck(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}}var cO="undefined"!=typeof document,cC=cO?C.useLayoutEffect:function(){};function cP(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!cP(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!cP(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function cE(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cT(e,t){let n=cE(e);return Math.round(t*n)/n}function cN(e){let t=C.useRef(e);return cC(()=>{t.current=e}),t}function cI(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function cL(e,t,n){let{rects:r,placement:o}=e;return{side:cI(t,ln(o),n),align:lr(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function cA(e){var t,n,r,o,a,i,l,s,c,u,d,f,p,h,m,g,y;let v,{anchor:b,positionMethod:x="absolute",side:w="bottom",sideOffset:_=0,align:j="center",alignOffset:k=0,collisionBoundary:S,collisionPadding:O=5,sticky:P=!1,arrowPadding:E=5,trackAnchor:T=!0,keepMounted:N=!1,floatingRootContext:I,mounted:L,collisionAvoidance:A,shiftCrossAxis:z=!1,nodeId:R,adaptiveOrigin:D}=e,M=A.side||"flip",Z=A.align||"flip",U=A.fallbackAxisSide||"end",F="function"==typeof b?b:void 0,H=ak(F),V=F?H:b,B=it(b),$="rtl"===lR(),q={top:"top",right:"right",bottom:"bottom",left:"left","inline-end":$?"left":"right","inline-start":$?"right":"left"}[w],W="center"===j?q:`${q}-${j}`,K={boundary:"clipping-ancestors"===S?"clippingAncestors":S,padding:O},Y=C.useRef(null),X=it(_),G=it(k),Q="function"!=typeof _?_:0,J=[(t=e=>{let t=cL(e,w,$),n="function"==typeof X.current?X.current(t):X.current,r="function"==typeof G.current?G.current(t):G.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},n=[Q,"function"!=typeof k?k:0,$,w],{...(void 0===(r=t)&&(r=0),{name:"offset",options:r,async fn(e){var t,n;let{x:o,y:a,placement:i,middlewareData:l}=e,s=await cs(e,r);return i===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}),options:[t,n]})],ee="none"===Z&&"shift"!==M,et=!ee&&(P||z||"shift"===M),en="none"===M?null:{...{name:"flip",options:i=o={...K,mainAxis:!z&&"flip"===M,crossAxis:"flip"===Z&&"alignment",fallbackAxisSideDirection:U},async fn(e){var t,n,r,o,a,l,s,c,u,d,f,p,h;let m,g,y,{placement:v,middlewareData:b,rects:x,initialPlacement:w,platform:_,elements:j}=e,{mainAxis:k=!0,crossAxis:S=!0,fallbackPlacements:O,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:E=!0,...T}=lt(i,e);if(null!=(t=b.arrow)&&t.alignmentOffset)return{};let N=ln(v),I=ll(w),L=ln(w)===w,A=await (null==_.isRTL?void 0:_.isRTL(j.floating)),z=O||(L||!E?[lp(w)]:(m=lp(l=w),[ls(l),m,ls(m)])),R="none"!==P;!O&&R&&z.push(...(s=w,c=E,u=P,d=A,g=lr(s),y=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?lu:lc;return t?lc:lu;case"left":case"right":return t?ld:lf;default:return[]}}(ln(s),"start"===u,d),g&&(y=y.map(e=>e+"-"+g),c&&(y=y.concat(y.map(ls)))),y));let D=[w,...z],M=await co(e,T),Z=[],U=(null==(n=b.flip)?void 0:n.overflows)||[];if(k&&Z.push(M[N]),S){let e,t,n,r,o=(f=v,p=x,void 0===(h=A)&&(h=!1),e=lr(f),t=lo(ll(f)),n=la(t),r="x"===t?e===(h?"end":"start")?"right":"left":"start"===e?"bottom":"top",p.reference[n]>p.floating[n]&&(r=lp(r)),[r,lp(r)]);Z.push(M[o[0]],M[o[1]])}if(U=[...U,{placement:v,overflows:Z}],!Z.every(e=>e<=0)){let e=((null==(r=b.flip)?void 0:r.index)||0)+1,t=D[e];if(t&&("alignment"!==S||I===ll(t)||U.every(e=>ll(e.placement)!==I||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let n=null==(o=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(C){case"bestFit":{let e=null==(a=U.filter(e=>{if(R){let t=ll(e.placement);return t===I||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=w}if(v!==n)return{reset:{placement:n}}}return{}}},options:[o,a]},er=ee?null:(l=e=>{var t,n,r;let o=lD(e.elements.floating).documentElement;return{...K,rootBoundary:z?{x:0,y:0,width:o.clientWidth,height:o.clientHeight}:void 0,mainAxis:"none"!==Z,crossAxis:et,limiter:P||z?void 0:{...(void 0===(r=t=()=>{if(!Y.current)return{};let{height:e}=Y.current.getBoundingClientRect();return{offset:e/2+("number"==typeof O?O:0)}})&&(r={}),{options:r,fn(e){let{x:t,y:n,placement:o,rects:a,middlewareData:i}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=lt(r,e),u={x:t,y:n},d=ll(o),f=lo(d),p=u[f],h=u[d],m=lt(l,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(c){var y,v;let e="y"===f?"width":"height",t=cl.has(ln(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(y=i.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);hr&&(h=r)}return{[f]:p,[d]:h}}}),options:[t,n]}}},s=[K,P,z,O,Z],{...(void 0===(c=l)&&(c={}),{name:"shift",options:c,async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:i={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=lt(c,e),s={x:t,y:n},u=await co(e,l),d=ll(ln(r)),f=lo(d),p=s[f],h=s[d];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+u[e],r=p-u[t];p=i5(n,i4(p,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+u[e],r=h-u[t];h=i5(n,i4(h,r))}let m=i.fn({...e,[f]:p,[d]:h});return{...m,data:{x:m.x-t,y:m.y-n,enabled:{[f]:o,[d]:a}}}}}),options:[l,s]});"shift"===M||"shift"===Z||"center"===j?J.push(er,en):J.push(en,er),J.push({...{name:"size",options:f=u={...K,apply({elements:{floating:e},rects:{reference:t},availableWidth:n,availableHeight:r}){Object.entries({"--available-width":`${n}px`,"--available-height":`${r}px`,"--anchor-width":`${t.width}px`,"--anchor-height":`${t.height}px`}).forEach(([t,n])=>{e.style.setProperty(t,n)})}},async fn(e){var t,n;let r,o,{placement:a,rects:i,platform:l,elements:s}=e,{apply:c=()=>{},...u}=lt(f,e),d=await co(e,u),p=ln(a),h=lr(a),m="y"===ll(a),{width:g,height:y}=i.floating;"top"===p||"bottom"===p?(r=p,o=h===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(o=p,r="end"===h?"top":"bottom");let v=y-d.top-d.bottom,b=g-d.left-d.right,x=i4(y-d[r],v),w=i4(g-d[o],b),_=!e.middlewareData.shift,j=x,k=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(k=b),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(j=v),_&&!h){let e=i5(d.left,0),t=i5(d.right,0),n=i5(d.top,0),r=i5(d.bottom,0);m?k=g-2*(0!==e||0!==t?e+t:i5(d.left,d.right)):j=y-2*(0!==n||0!==r?n+r:i5(d.top,d.bottom))}await c({...e,availableWidth:k,availableHeight:j});let S=await l.getDimensions(s.floating);return g!==S.width||y!==S.height?{reset:{rects:!0}}:{}}},options:[u,d]},(p=()=>({element:Y.current||document.createElement("div"),padding:E,offsetParent:"floating"}),h=[E],{...{name:"arrow",options:v=p,async fn(e){let{x:t,y:n,placement:r,rects:o,platform:a,elements:i,middlewareData:l}=e,{element:s,padding:c=0,offsetParent:u="real"}=lt(v,e)||{};if(null==s)return{};let d=lh(c),f={x:t,y:n},p=lo(ll(r)),h=la(p),m=await a.getDimensions(s),g="y"===p,y=g?"clientHeight":"clientWidth",b=o.reference[h]+o.reference[p]-f[p]-o.floating[h],x=f[p]-o.reference[p],w="real"===u?await a.getOffsetParent?.(s):i.floating,_=i.floating[y]||o.floating[h];_&&await a.isElement?.(w)||(_=i.floating[y]||o.floating[h]);let j=_/2-m[h]/2-1,k=Math.min(d[g?"top":"left"],j),S=Math.min(d[g?"bottom":"right"],j),O=_-m[h]-S,C=_/2-m[h]/2+(b/2-x/2),P=i5(k,i4(C,O)),E=!l.arrow&&null!=lr(r)&&C!==P&&o.reference[h]/2-(C("function"==typeof _?_(cL(e,w,$)):_),v={top:`${p}px calc(100% + ${_}px)`,bottom:`${p}px ${-_}px`,left:`calc(100% + ${_}px) ${h}px`,right:`${-_}px ${h}px`}[i],b=`${p}px ${o.reference.y+g-a}px`;return t.floating.style.setProperty("--transform-origin",et&&"y"===l&&y?b:v),{}}},D);let eo=I;!L&&I&&(eo={...I,elements:{reference:null,floating:null,domReference:null}});let ea=C.useMemo(()=>({elementResize:T&&"undefined"!=typeof ResizeObserver,layoutShift:T&&"undefined"!=typeof IntersectionObserver}),[T]),{refs:ei,elements:el,x:es,y:ec,middlewareData:eu,update:ed,placement:ef,context:ep,isPositioned:eh,floatingStyles:em}=function(e={}){let{nodeId:t}=e,n=aZ({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=C.useState(null),[l,s]=C.useState(null),c=o?.domReference||a,u=C.useRef(null),d=C.useContext(az);aL(()=>{c&&(u.current=c)},[c]);let f=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:s,open:c}=e,[u,d]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=C.useState(r);cP(f,r)||p(r);let[h,m]=C.useState(null),[g,y]=C.useState(null),v=C.useCallback(e=>{e!==_.current&&(_.current=e,m(e))},[]),b=C.useCallback(e=>{e!==j.current&&(j.current=e,y(e))},[]),x=a||h,w=i||g,_=C.useRef(null),j=C.useRef(null),k=C.useRef(u),S=null!=s,O=cN(s),P=cN(o),E=cN(c),T=C.useCallback(()=>{var e,r,o;let a,i,l;if(!_.current||!j.current)return;let s={placement:t,strategy:n,middleware:f};P.current&&(s.platform=P.current),(e=_.current,r=j.current,o=s,a=new Map,l={...(i={platform:cj,...o}).platform,_c:a},cr(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==E.current};N.current&&!cP(k.current,t)&&(k.current=t,ex.flushSync(()=>{d(t)}))})},[f,t,n,P,E]);cC(()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let N=C.useRef(!1);cC(()=>(N.current=!0,()=>{N.current=!1}),[]),cC(()=>{if(x&&(_.current=x),w&&(j.current=w),x&&w){if(O.current)return O.current(x,w,T);T()}},[x,w,T,O,S]);let I=C.useMemo(()=>({reference:_,floating:j,setReference:v,setFloating:b}),[v,b]),L=C.useMemo(()=>({reference:x,floating:w}),[x,w]),A=C.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=cT(L.floating,u.x),r=cT(L.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...cE(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,L.floating,u.x,u.y]);return C.useMemo(()=>({...u,update:T,refs:I,elements:L,floatingStyles:A}),[u,T,I,L,A])}({...e,elements:{...o,...l&&{reference:l}}}),p=C.useCallback(e=>{let t=a$(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),h=C.useCallback(e=>{(a$(e)||null===e)&&(u.current=e,i(e)),(a$(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!a$(e))&&f.refs.setReference(e)},[f.refs]),m=C.useMemo(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u}),[f.refs,h,p]),g=C.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=C.useMemo(()=>({...f,...r,refs:m,elements:g,nodeId:t}),[f,m,g,t,r]);return aL(()=>{r.dataRef.current.floatingContext=y;let e=d?.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),C.useMemo(()=>({...f,context:y,refs:m,elements:g}),[f,m,g,y])}({rootContext:eo,placement:W,middleware:J,strategy:x,whileElementsMounted:N?void 0:(...e)=>cS(...e,ea),nodeId:R}),{sideX:eg,sideY:ey}=eu.adaptiveOrigin||{},ev=C.useMemo(()=>D?{position:x,[eg]:`${es}px`,[ey]:`${ec}px`}:em,[D,eg,ey,x,es,ec,em]),eb=C.useRef(null);aL(()=>{if(!L)return;let e=B.current,t="function"==typeof e?e():e,n=(cz(t)?t.current:t)||null;n!==eb.current&&(ei.setPositionReference(n),eb.current=n)},[L,ei,V,B]),C.useEffect(()=>{if(!L)return;let e=B.current;"function"!=typeof e&&cz(e)&&e.current!==eb.current&&(ei.setPositionReference(e.current),eb.current=e.current)},[L,ei,V,B]),C.useEffect(()=>{if(N&&L&&el.domReference&&el.floating)return cS(el.domReference,el.floating,ed,ea)},[N,L,el,ed,ea]);let ew=cI(w,ln(ef),$),e_=lr(ef)||"center",ej=!!eu.hide?.referenceHidden,ek=C.useMemo(()=>({position:"absolute",top:eu.arrow?.y,left:eu.arrow?.x}),[eu.arrow]),eS=eu.arrow?.centerOffset!==0;return C.useMemo(()=>({positionerStyles:ev,arrowStyles:ek,arrowRef:Y,arrowUncentered:eS,side:ew,align:e_,anchorHidden:ej,refs:ei,context:ep,isPositioned:eh,update:ed}),[ev,ek,Y,eS,ew,e_,ej,ei,ep,eh,ed])}function cz(e){return null!=e&&"current"in e}function cR(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:o}=e,a=C.useRef(0),i=ay(cM).current,l=ay(cD).current,[s,c]=C.useState(0),u=C.useRef(s),d=ak((e,t)=>{l.set(e,t??null),u.current+=1,c(u.current)}),f=ak(e=>{l.delete(e),u.current+=1,c(u.current)}),p=C.useMemo(()=>{let e=new Map;return Array.from(l.keys()).sort(cZ).forEach((t,n)=>{let r=l.get(t)??{};e.set(t,{...r,index:n})}),e},[l,s]);aL(()=>{u.current===s&&(n.current.length!==p.size&&(n.current.length=p.size),r&&r.current.length!==p.size&&(r.current.length=p.size)),o?.(p)},[o,p,n,r,s,u]);let h=ak(e=>(i.add(e),()=>{i.delete(e)}));aL(()=>{i.forEach(e=>e(p))},[i,p]);let m=C.useMemo(()=>({register:d,unregister:f,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:a}),[d,f,h,n,r,a]);return(0,S.jsx)(sv.Provider,{value:m,children:t})}function cD(){return new Map}function cM(){return new Set}function cZ(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}let cU=C.forwardRef(function(e,t){let n,{cutout:r,...o}=e;if(r){let e=r?.getBoundingClientRect();n=`polygon( 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, ${e.left}px ${e.top}px, ${e.left}px ${e.bottom}px, ${e.right}px ${e.bottom}px, ${e.right}px ${e.top}px, ${e.left}px ${e.top}px )`}return(0,S.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})}),cF=C.forwardRef(function(e,t){var n;let r,o,a,i,{anchor:l,positionMethod:s="absolute",className:c,render:u,side:d,align:f,sideOffset:p=0,alignOffset:h=0,collisionBoundary:m="clipping-ancestors",collisionPadding:g=5,arrowPadding:y=5,sticky:v=!1,trackAnchor:b=!0,collisionAvoidance:x=iG,...w}=e,{open:_,setOpen:j,floatingRootContext:k,setPositionerElement:O,itemDomElements:P,itemLabels:E,mounted:T,modal:N,lastOpenChangeReason:I,parent:L,setHoverEnabled:A,triggerElement:z}=lN(),R=function(){let e=C.useContext(s7);if(void 0===e)throw Error("Base UI: is missing.");return e}(),D=(r=aN(),o=C.useContext(az),i=a=aR(),aL(()=>{if(!r)return;let e={id:r,parentId:i};return o?.addNode(e),()=>{o?.removeNode(e)}},[o,r,i]),r),M=aR(),Z=lq(!0),U=l,F=p,H=h,V=f;"context-menu"===L.type&&(U=L.context?.anchor??l,V=e.align??"start",H=e.alignOffset??2,F=e.sideOffset??-5);let B=d,$=V;"menu"===L.type?(B=B??"inline-end",$=$??"start"):"menubar"===L.type&&(B=B??"bottom",$=$??"start");let q="context-menu"===L.type,W=cA({anchor:U,floatingRootContext:k,positionMethod:Z?"fixed":s,mounted:T,side:B,sideOffset:F,align:$,alignOffset:H,arrowPadding:q?0:y,collisionBoundary:m,collisionPadding:g,sticky:v,nodeId:D,keepMounted:R,trackAnchor:b,collisionAvoidance:x,shiftCrossAxis:q}),{events:K}=C.useContext(az),Y=C.useMemo(()=>{let e={};return _||(e.pointerEvents="none"),{role:"presentation",hidden:!T,style:{...W.positionerStyles,...e}}},[_,T,W.positionerStyles]);C.useEffect(()=>{function e(e){e.open?(e.parentNodeId===D&&A(!1),e.nodeId!==D&&e.parentNodeId===M&&j(!1,void 0,"sibling-open")):e.parentNodeId===D&&A(!0)}return K.on("openchange",e),()=>{K.off("openchange",e)}},[K,D,M,j,A]),C.useEffect(()=>{K.emit("openchange",{open:_,nodeId:D,parentNodeId:M})},[K,_,D,M]);let X=C.useMemo(()=>({open:_,side:W.side,align:W.align,anchorHidden:W.anchorHidden,nested:"menu"===L.type}),[_,W.side,W.align,W.anchorHidden,L.type]),G=C.useMemo(()=>({side:W.side,align:W.align,arrowRef:W.arrowRef,arrowUncentered:W.arrowUncentered,arrowStyles:W.arrowStyles,floatingContext:W.context}),[W.side,W.align,W.arrowRef,W.arrowUncentered,W.arrowStyles,W.context]),Q=sp("div",e,{state:X,customStyleHookMapping:sd,ref:[t,O],props:{...Y,...w}}),J=T&&"menu"!==L.type&&("menubar"!==L.type&&N&&"trigger-hover"!==I||"menubar"===L.type&&L.context.modal),ee=null;return"menubar"===L.type?ee=L.context.contentElement:void 0===L.type&&(ee=z),(0,S.jsxs)(ct.Provider,{value:G,children:[J&&(0,S.jsx)(cU,{ref:"context-menu"===L.type||"nested-context-menu"===L.type?L.context.internalBackdropRef:null,inert:(n=!_,sf>=19?n:n?"true":void 0),cutout:ee}),(0,S.jsx)(aD,{id:D,children:(0,S.jsx)(cR,{elementsRef:P,labelsRef:E,children:Q})})]})}),cH={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function cV(e){return"inert"===e?cH.inert:"aria-hidden"===e?cH["aria-hidden"]:cH.none}let cB=new WeakSet,c$={},cq=0,cW=e=>e&&(e.host||cW(e.parentNode)),cK=[];function cY(){cK=cK.filter(e=>e.isConnected)}function cX(){return cY(),cK[cK.length-1]}function cG(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let n=sQ(),r=sX(e,n).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return sG(e,n)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),o=e.getAttribute("tabindex");t.current.includes("floating")||0===r.length?"0"!==o&&e.setAttribute("tabindex","0"):("-1"!==o||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function cQ(e){let{context:t,children:n,disabled:r=!1,order:o=["content"],initialFocus:a=0,returnFocus:i=!0,restoreFocus:l=!1,modal:s=!0,closeOnFocusOut:c=!0,getInsideElements:u=()=>[]}=e,{open:d,onOpenChange:f,events:p,dataRef:h,elements:{domReference:m,floating:g}}=t,y=ak(()=>h.current.floatingContext?.nodeId),v=ak(u),b="number"==typeof a&&a<0,x=iI(m)&&b,w=it(o),_=it(a),j=it(i),k=C.useContext(az),O=C.useContext(s5),P=C.useRef(null),E=C.useRef(null),T=C.useRef(!1),N=C.useRef(!1),I=C.useRef(-1),L=aw(),A=null!=O,z=iL(g),R=ak((e=z)=>e?sY(e,sQ()):[]),D=ak(e=>{let t=R(e);return w.current.map(()=>t).filter(Boolean).flat()});C.useEffect(()=>{if(r||!s)return;function e(e){"Tab"===e.key&&iC(z,iO(iT(z)))&&0===R().length&&!x&&im(e)}let t=iT(z);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,m,z,s,w,x,R,D]),C.useEffect(()=>{if(!r&&g)return g.addEventListener("focusin",e),()=>{g.removeEventListener("focusin",e)};function e(e){let t=iP(e),n=R().indexOf(t);-1!==n&&(I.current=n)}},[r,g,R]),C.useEffect(()=>{if(r||!c)return;function e(){N.current=!0}function t(e){let t=e.relatedTarget,n=e.currentTarget,r=iP(e);queueMicrotask(()=>{let o=y(),a=!(iC(m,t)||iC(g,t)||iC(t,g)||iC(O?.portalNode,t)||t?.hasAttribute(iA("focus-guard"))||k&&(iZ(k.nodesRef.current,o).find(e=>iC(e.context?.elements.floating,t)||iC(e.context?.elements.domReference,t))||iU(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,iL(e.context?.elements.floating)].includes(t)||e.context?.elements.domReference===t)));if(n===m&&z&&cG(z,w),l&&n!==m&&!r?.isConnected&&iO(iT(z))===iT(z).body){aq(z)&&z.focus();let e=I.current,t=R(),n=t[e]||t[t.length-1]||z;aq(n)&&n.focus()}if(h.current.insideReactTree){h.current.insideReactTree=!1;return}if(N.current){N.current=!1;return}(x||!s)&&t&&a&&t!==cX()&&(T.current=!0,f(!1,e,"focus-out"))})}let n=!!(!k&&O);function o(){h.current.insideReactTree=!0,L.start(0,()=>{h.current.insideReactTree=!1})}if(g&&aq(m))return m.addEventListener("focusout",t),m.addEventListener("pointerdown",e),g.addEventListener("focusout",t),n&&g.addEventListener("focusout",o,!0),()=>{m.removeEventListener("focusout",t),m.removeEventListener("pointerdown",e),g.removeEventListener("focusout",t),n&&g.removeEventListener("focusout",o,!0)}},[r,m,g,z,s,k,O,f,c,l,R,x,y,w,h,L]);let M=C.useRef(null),Z=C.useRef(null),U=l5(M,O?.beforeInsideRef),F=l5(Z,O?.afterInsideRef);C.useEffect(()=>{if(r||!g)return;let e=Array.from(O?.portalNode?.querySelectorAll(`[${iA("portal")}]`)||[]),t=k?iU(k.nodesRef.current,y()):[],n=function(e,t=!1,n=!1){var r,o,a;let i,l,s,c,u,d,f,p,h=iT(e[0]).body;return r=e.concat(Array.from(h.querySelectorAll("[aria-live]"))),o=h,a=t,i="data-base-ui-inert",l=n?"inert":a?"aria-hidden":null,s=o,c=r.map(e=>{if(s.contains(e))return e;let t=cW(e);return s.contains(t)?t:null}).filter(e=>null!=e),u=new Set,d=new Set(c),f=[],c$[i]||(c$[i]=new WeakMap),p=c$[i],c.forEach(function e(t){!(!t||u.has(t))&&(u.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||d.has(t)||[].forEach.call(t.children,t=>{if("script"!==aF(t))if(u.has(t))e(t);else{let e=l?t.getAttribute(l):null,n=null!==e&&"false"!==e,r=cV(l),o=(r.get(t)||0)+1,a=(p.get(t)||0)+1;r.set(t,o),p.set(t,a),f.push(t),1===o&&n&&cB.add(t),1===a&&t.setAttribute(i,""),!n&&l&&t.setAttribute(l,"inert"===l?"":"true")}})}(o),u.clear(),cq+=1,()=>{f.forEach(e=>{let t=cV(l),n=(t.get(e)||0)-1,r=(p.get(e)||0)-1;t.set(e,n),p.set(e,r),n||(!cB.has(e)&&l&&e.removeAttribute(l),cB.delete(e)),r||e.removeAttribute(i)}),(cq-=1)||(cH.inert=new WeakMap,cH["aria-hidden"]=new WeakMap,cH.none=new WeakMap,cB=new WeakSet,c$={})}}([g,t.find(e=>iI(e.context?.elements.domReference||null))?.context?.elements.domReference,...e,...v(),P.current,E.current,M.current,Z.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,x?m:null].filter(e=>null!=e),s||x);return()=>{n()}},[r,m,g,s,w,O,x,k,y,v]),aL(()=>{if(r||!aq(z))return;let e=iO(iT(z));queueMicrotask(()=>{let t=D(z),n=_.current,r=("number"==typeof n?t[n]:n.current)||z,o=iC(z,e);b||o||!d||lj(r,{preventScroll:r===z})})},[r,d,z,b,D,_]),aL(()=>{var e;if(r||!z)return;let t=iT(z);function n({reason:e,event:t,nested:n}){if(["hover","safe-polygon"].includes(e)&&"mouseleave"===t.type&&(T.current=!0),"outside-press"===e)if(n)T.current=!1;else if(ig(t)||iy(t))T.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?T.current=!1:T.current=!0}}e=iO(t),cY(),e&&"body"!==aF(e)&&(cK.push(e),cK.length>20&&(cK=cK.slice(-20))),p.on("openchange",n);let o=t.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,sj),A&&m&&m.insertAdjacentElement("afterend",o),()=>{p.off("openchange",n);let e=iO(t),r=iC(g,e)||k&&iZ(k.nodesRef.current,y(),!1).some(t=>iC(t.context?.elements.floating,e)),a=function(){if("boolean"==typeof j.current){let e=m||cX();return e&&e.isConnected?e:o}return j.current.current||o}();queueMicrotask(()=>{var n;let i,l=(n=a,i=sQ(),sG(n,i)?n:sY(n,i)[0]||n);j.current&&!T.current&&aq(l)&&(l===e||e===t.body||r)&&l.focus({preventScroll:!0}),o.remove()})}},[r,g,z,j,h,p,k,A,m,y]),C.useEffect(()=>{queueMicrotask(()=>{T.current=!1})},[r]),C.useEffect(()=>{if(r||!d)return;function e(e){let t=iP(e);t?.closest("[data-base-ui-click-trigger]")&&(N.current=!0)}let t=iT(z);return t.addEventListener("pointerdown",e,!0),()=>{t.removeEventListener("pointerdown",e,!0)}},[r,d,z]),aL(()=>{if(!r&&O)return O.setFocusManagerState({modal:s,closeOnFocusOut:c,open:d,onOpenChange:f,domReference:m}),()=>{O.setFocusManagerState(null)}},[r,O,s,d,f,c,m]),aL(()=>{if(!r&&z)return cG(z,w),()=>{queueMicrotask(cY)}},[r,z,w]);let H=!r&&(!s||!x)&&(A||s);return(0,S.jsxs)(C.Fragment,{children:[H&&(0,S.jsx)(sk,{"data-type":"inside",ref:U,onFocus:e=>{if(s){let e=D();lj(e[e.length-1])}else if(O?.preserveTabOrder&&O.portalNode)if(T.current=!1,s2(e,O.portalNode)){let e=s0(m);e?.focus()}else O.beforeOutsideRef.current?.focus()}}),n,H&&(0,S.jsx)(sk,{"data-type":"inside",ref:F,onFocus:e=>{if(s)lj(D()[0]);else if(O?.preserveTabOrder&&O.portalNode)if(c&&(T.current=!0),s2(e,O.portalNode)){let e=s1(m);e?.focus()}else O.afterOutsideRef.current?.focus()}})]})}let cJ={...sd,...st},c0=C.forwardRef(function(e,t){let{render:n,className:r,finalFocus:o,...a}=e,{open:i,setOpen:l,popupRef:s,transitionStatus:c,popupProps:u,mounted:d,instantType:f,onOpenChangeComplete:p,parent:h,lastOpenChangeReason:m,rootId:g}=lN(),{side:y,align:v,floatingContext:b}=function(){let e=C.useContext(ct);if(void 0===e)throw Error("Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within .");return e}();lA({open:i,ref:s,onComplete(){i&&p?.(!0)}});let{events:x}=C.useContext(az);C.useEffect(()=>{function e(e){l(!1,e.domEvent,e.reason)}return x.on("close",e),()=>{x.off("close",e)}},[x,l]);let w=sp("div",e,{state:C.useMemo(()=>({transitionStatus:c,side:y,align:v,open:i,nested:"menu"===h.type,instant:f}),[c,y,v,i,h.type,f]),ref:[t,s],customStyleHookMapping:cJ,props:[u,"starting"===c?iK:iY,a,{"data-rootownerid":g}]}),_=void 0===h.type||"context-menu"===h.type;return"menubar"===h.type&&"outside-press"!==m&&(_=!0),(0,S.jsx)(cQ,{context:b,modal:!1,disabled:!d,returnFocus:o||_,initialFocus:"menu"===h.type?-1:0,restoreFocus:!0,children:w})}),c1=C.createContext(void 0),c2=C.forwardRef(function(e,t){let{render:n,className:r,...o}=e,[a,i]=C.useState(void 0),l=C.useMemo(()=>({setLabelId:i}),[i]),s=sp("div",e,{ref:t,props:{role:"group","aria-labelledby":a,...o}});return(0,S.jsx)(c1.Provider,{value:l,children:s})});function c3(e){return aN(e,"base-ui")}let c4=C.forwardRef(function(e,t){let{className:n,render:r,id:o,...a}=e,i=c3(o),{setLabelId:l}=function(){let e=C.useContext(c1);if(void 0===e)throw Error("Base UI: MenuGroupRootContext is missing. Menu group parts must be used within .");return e}();return aL(()=>(l(i),()=>{l(void 0)}),[l,i]),sp("div",e,{ref:t,props:{id:i,role:"presentation",...a}})}),c5={type:"regular-item"},c6=C.memo(C.forwardRef(function(e,t){let{className:n,closeOnClick:r=!0,disabled:o=!1,highlighted:a,id:i,menuEvents:l,itemProps:s,render:c,allowMouseUpTriggerRef:u,typingRef:d,nativeButton:f,...p}=e,{getItemProps:h,itemRef:m}=function(e){let{closeOnClick:t,disabled:n=!1,highlighted:r,id:o,menuEvents:a,allowMouseUpTriggerRef:i,typingRef:l,nativeButton:s,itemMetadata:c}=e,u=C.useRef(null),{getButtonProps:d,buttonRef:f}=sy({disabled:n,focusableWhenDisabled:!0,native:s}),p=C.useCallback(e=>lX({id:o,role:"menuitem",tabIndex:r?0:-1,onMouseEnter(){"submenu-trigger"===c.type&&c.setActive()},onKeyUp:e=>{" "===e.key&&l.current&&e.preventBaseUIHandler()},onClick:e=>{t&&a.emit("close",{domEvent:e,reason:"item-press"})},onMouseUp:()=>{u.current&&i.current&&"regular-item"===c.type&&u.current.click()}},e,d),[o,r,d,l,t,a,i,c]),h=l5(u,f);return C.useMemo(()=>({getItemProps:p,itemRef:h}),[p,h])}({closeOnClick:r,disabled:o,highlighted:a,id:i,menuEvents:l,allowMouseUpTriggerRef:u,typingRef:d,nativeButton:f,itemMetadata:c5});return sp("div",e,{state:C.useMemo(()=>({disabled:o,highlighted:a}),[o,a]),ref:[m,t],props:[s,p,h]})})),c9=C.forwardRef(function(e,t){let{id:n,label:r,nativeButton:o=!1,...a}=e,i=C.useRef(null),l=sx({label:r}),s=l5(t,l.ref,i),{itemProps:c,activeIndex:u,allowMouseUpTriggerRef:d,typingRef:f}=lN(),p=c3(n),h=l.index===u,{events:m}=C.useContext(az);return(0,S.jsx)(c6,{...a,id:p,ref:s,highlighted:h,menuEvents:m,itemProps:c,allowMouseUpTriggerRef:d,typingRef:f,nativeButton:o})});var c8="__next_builtin__";function c7(e){return e.replace(new RegExp("^".concat(c8)),"").replace(new RegExp("".concat("@boundary","$")),"")}var ue="boundary:";function ut(e){return e.startsWith(ue)}function un(e){return e.replace(ue,"")}function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n.");return e}let uy=C.forwardRef(function(e,t){let{className:n,render:r,...o}=e,{open:a,setTriggerElement:i,triggerProps:l}=ug();return sp("button",e,{state:C.useMemo(()=>({open:a}),[a]),ref:[t,i],props:[l,o],customStyleHookMapping:sc})}),uv=C.createContext(void 0);function ub(){let e=C.useContext(uv);if(void 0===e)throw Error("Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within .");return e}let ux=C.forwardRef(function(e,t){let{className:n,render:r,...o}=e,{open:a,arrowRef:i,side:l,align:s,arrowUncentered:c,arrowStyles:u}=ub();return sp("div",e,{state:C.useMemo(()=>({open:a,side:l,align:s,uncentered:c}),[a,l,s,c]),ref:[t,i],props:[{style:u,"aria-hidden":!0},o],customStyleHookMapping:sd})}),uw={...sd,...st},u_=C.forwardRef(function(e,t){let{className:n,render:r,...o}=e,{open:a,instantType:i,transitionStatus:l,popupProps:s,popupRef:c,onOpenChangeComplete:u}=ug(),{side:d,align:f}=ub();return lA({open:a,ref:c,onComplete(){a&&u?.(!0)}}),sp("div",e,{state:C.useMemo(()=>({open:a,side:d,align:f,instant:i,transitionStatus:l}),[a,d,f,i,l]),ref:[t,c],props:[s,"starting"===l?iK:iY,o],customStyleHookMapping:uw})}),uj=C.createContext(void 0),uk=C.forwardRef(function(e,t){let{render:n,className:r,anchor:o,positionMethod:a="absolute",side:i="top",align:l="center",sideOffset:s=0,alignOffset:c=0,collisionBoundary:u="clipping-ancestors",collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,trackAnchor:h=!0,collisionAvoidance:m=iQ,...g}=e,{open:y,setPositionerElement:v,mounted:b,floatingRootContext:x,trackCursorAxis:w,hoverable:_}=ug(),j=cA({anchor:o,positionMethod:a,floatingRootContext:x,mounted:b,side:i,sideOffset:s,align:l,alignOffset:c,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,trackAnchor:h,keepMounted:function(){let e=C.useContext(uj);if(void 0===e)throw Error("Base UI: is missing.");return e}(),collisionAvoidance:m}),k=C.useMemo(()=>{let e={};return y&&"both"!==w&&_||(e.pointerEvents="none"),{role:"presentation",hidden:!b,style:{...j.positionerStyles,...e}}},[y,w,_,b,j.positionerStyles]),O=C.useMemo(()=>({props:k,...j}),[k,j]),P=C.useMemo(()=>({open:y,side:O.side,align:O.align,anchorHidden:O.anchorHidden}),[y,O.side,O.align,O.anchorHidden]),E=C.useMemo(()=>({...P,arrowRef:O.arrowRef,arrowStyles:O.arrowStyles,arrowUncentered:O.arrowUncentered}),[P,O.arrowRef,O.arrowStyles,O.arrowUncentered]),T=sp("div",e,{state:P,props:[O.props,g],ref:[t,v],customStyleHookMapping:sd});return(0,S.jsx)(uv.Provider,{value:E,children:T})});function uS(e){let t=s9({root:e.root});return t&&ex.createPortal(e.children,t)}function uO(e){let{children:t,keepMounted:n=!1,container:r}=e,{mounted:o}=ug();return o||n?(0,S.jsx)(uj.Provider,{value:n,children:(0,S.jsx)(uS,{root:r,children:t})}):null}let uC=C.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new ax,currentIdRef:{current:null},currentContextRef:{current:null}});function uP(e){let{children:t,delay:n,timeoutMs:r=0}=e,o=C.useRef(n),a=C.useRef(n),i=C.useRef(null),l=C.useRef(null),s=aw();return(0,S.jsx)(uC.Provider,{value:C.useMemo(()=>({hasProvider:!0,delayRef:o,initialDelayRef:a,currentIdRef:i,timeoutMs:r,currentContextRef:l,timeout:s}),[r,s]),children:t})}let uE=C.createContext(void 0),uT=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,o=C.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=C.useMemo(()=>({open:t,close:n}),[t,n]);return(0,S.jsx)(uE.Provider,{value:o,children:(0,S.jsx)(uP,{delay:a,timeoutMs:r,children:e.children})})};function uN(e){return null!=e&&null!=e.clientX}function uI(e){let{disabled:t=!1,defaultOpen:n=!1,onOpenChange:r,open:o,delay:a,closeDelay:i,hoverable:l=!0,trackCursorAxis:s="none",actionsRef:c,onOpenChangeComplete:u}=e,d=a??600,f=i??0,[p,h]=C.useState(null),[m,g]=C.useState(null),[y,v]=C.useState(),b=C.useRef(null),[x,w]=aC({controlled:o,default:n,name:"Tooltip",state:"open"}),_=!t&&x;function j(e,t,n){let o="trigger-hover"===n,a=e&&"trigger-focus"===n,i=!e&&("trigger-press"===n||"escape-key"===n);function l(){r?.(e,t,n),w(e)}o?ex.flushSync(l):l(),a||i?v(a?"focus":"dismiss"):"trigger-hover"===n&&v(void 0)}let k=ak(j);x&&t&&j(!1,void 0,"disabled");let{mounted:O,setMounted:P,transitionStatus:E}=lL(_),T=ak(()=>{P(!1),u?.(!1)});lA({enabled:!c,open:_,ref:b,onComplete(){_||T()}}),C.useImperativeHandle(c,()=>({unmount:T}),[T]);let N=aZ({elements:{reference:p,floating:m},open:_,onOpenChange(e,t,n){k(e,t,lB(n))}}),I=C.useContext(uE),{delayRef:L,isInstantPhase:A,hasProvider:z}=function(e,t={}){let{open:n,onOpenChange:r,floatingId:o}=e,{enabled:a=!0}=t,{currentIdRef:i,delayRef:l,timeoutMs:s,initialDelayRef:c,currentContextRef:u,hasProvider:d,timeout:f}=C.useContext(uC),[p,h]=C.useState(!1);return aL(()=>{function e(){h(!1),u.current?.setIsInstantPhase(!1),i.current=null,u.current=null,l.current=c.current}if(a&&i.current&&!n&&i.current===o){if(h(!1),s)return f.start(s,e),()=>{f.clear()};e()}},[a,n,o,i,l,s,c,u,f]),aL(()=>{if(!a||!n)return;let e=u.current,t=i.current;u.current={onOpenChange:r,setIsInstantPhase:h},i.current=o,l.current={open:0,close:iR(c.current,"close")},null!==t&&t!==o?(f.clear(),h(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1)):(h(!1),e?.setIsInstantPhase(!1))},[a,n,o,r,i,l,s,c,u,f]),aL(()=>()=>{u.current=null},[u]),C.useMemo(()=>({hasProvider:d,delayRef:l,isInstantPhase:p}),[d,l,p])}(N),R=A?"delay":y,D=iM(N,{enabled:!t,mouseOnly:!0,move:!1,handleClose:l&&"both"!==s?iH():null,restMs(){let e=I?.delay,t="object"==typeof L.current?L.current.open:void 0,n=d;return z&&(n=0!==t?a??e??d:0),n},delay(){let e="object"==typeof L.current?L.current.close:void 0,t=f;return null==i&&z&&(t=e),{close:t}}}),M=iB(N,{enabled:!t}),Z=i1(N,{enabled:!t,referencePress:!0}),{getReferenceProps:U,getFloatingProps:F}=lC([D,M,Z,function(e,t={}){let{open:n,dataRef:r,elements:{floating:o,domReference:a},refs:i}=e,{enabled:l=!0,axis:s="both",x:c=null,y:u=null}=t,d=C.useRef(!1),f=C.useRef(null),[p,h]=C.useState(),[m,g]=C.useState([]),y=ak((e,t)=>{if(!d.current&&(!r.current.openEvent||uN(r.current.openEvent))){var n,o;let l,c,u;i.setPositionReference((n=a,o={x:e,y:t,axis:s,dataRef:r,pointerType:p},l=null,c=null,u=!1,{contextElement:n||void 0,getBoundingClientRect(){let e=n?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===o.axis||"both"===o.axis,r="y"===o.axis||"both"===o.axis,a=["mouseenter","mousemove"].includes(o.dataRef.current.openEvent?.type||"")&&"touch"!==o.pointerType,i=e.width,s=e.height,d=e.x,f=e.y;return null==l&&o.x&&t&&(l=e.x-o.x),null==c&&o.y&&r&&(c=e.y-o.y),d-=l||0,f-=c||0,i=0,s=0,!u||a?(i="y"===o.axis?e.width:0,s="x"===o.axis?e.height:0,d=t&&null!=o.x?o.x:d,f=r&&null!=o.y?o.y:f):u&&!a&&(s="x"===o.axis?e.height:s,i="y"===o.axis?e.width:i),u=!0,{width:i,height:s,x:d,y:f,top:f,right:d+i,bottom:f+s,left:d}}}))}}),v=ak(e=>{null==c&&null==u&&(n?f.current||g([]):y(e.clientX,e.clientY))}),b=iv(p)?o:n,x=C.useCallback(()=>{if(!b||!l||null!=c||null!=u)return;let e=aH(o);function t(n){iC(o,iP(n))?(e.removeEventListener("mousemove",t),f.current=null):y(n.clientX,n.clientY)}if(!r.current.openEvent||uN(r.current.openEvent)){e.addEventListener("mousemove",t);let n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}i.setPositionReference(a)},[b,l,c,u,o,r,i,a,y]);C.useEffect(()=>x(),[x,m]),C.useEffect(()=>{l&&!o&&(d.current=!1)},[l,o]),C.useEffect(()=>{!l&&n&&(d.current=!0)},[l,n]),aL(()=>{l&&(null!=c||null!=u)&&(d.current=!1,y(c,u))},[l,c,u,y]);let w=C.useMemo(()=>{function e(e){h(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return C.useMemo(()=>l?{reference:w}:{},[l,w])}(N,{enabled:!t&&"none"!==s,axis:"none"===s?void 0:s})]),H=C.useMemo(()=>({open:_,setOpen:k,mounted:O,setMounted:P,setTriggerElement:h,positionerElement:m,setPositionerElement:g,popupRef:b,triggerProps:U(),popupProps:F(),floatingRootContext:N,instantType:R,transitionStatus:E,onOpenChangeComplete:u}),[_,k,O,P,h,m,g,b,U,F,N,R,E,u]),V=C.useMemo(()=>({...H,delay:d,closeDelay:f,trackCursorAxis:s,hoverable:l}),[H,d,f,s,l]);return(0,S.jsx)(um.Provider,{value:V,children:e.children})}var uL=__webpack_require__("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/components/tooltip/tooltip.css"),uA={};uA.styleTagTransform=x(),uA.setAttributes=g(),uA.insert=h(),uA.domAPI=f(),uA.insertStyleElement=v(),u()(uL.A,uA),uL.A&&uL.A.locals&&uL.A.locals;var uz=(0,C.forwardRef)(function(e,t){var n,r,o,a,i,l,s,c,u,d,f,p,h=(0,O.c)(35),m=e.className,g=e.children,y=e.title,v=e.direction,b=e.arrowSize,x=e.offset,w=void 0===v?"top":v,_=void 0===b?6:b,j=dw().shadowRoot;if(!y)return g;h[0]!==g?(n=function(e){var t,n;return(0,S.jsx)("span",(t=function(e){for(var t=1;t0,s="segment-explorer-footer-button ".concat(l?"":"segment-explorer-footer-button--disabled"),c=l?i:void 0,u=!l;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsx)("span",{className:"segment-explorer-footer-text",children:"Clear Segment Overrides"}),o[0]=t):t=o[0],o[1]!==a||o[2]!==l?(n=l&&(0,S.jsx)("span",{className:"segment-explorer-footer-badge",children:a}),o[1]=a,o[2]=l,o[3]=n):n=o[3],o[4]!==s||o[5]!==c||o[6]!==u||o[7]!==n?(r=(0,S.jsx)("div",{className:"segment-explorer-footer",children:(0,S.jsxs)("button",{className:s,onClick:c,disabled:u,type:"button",children:[t,n]})}),o[4]=s,o[5]=c,o[6]=u,o[7]=n,o[8]=r):r=o[8],r}function uH(e){var t,n,r,o,a,i=(0,O.c)(15),l=e.type,s=e.isBuiltin,c=e.isOverridden,u=e.filePath,d=e.fileName,f="segment-explorer-file-label--".concat(l),p=s&&"segment-explorer-file-label--builtin",h=c&&"segment-explorer-file-label--overridden";return i[0]!==f||i[1]!==p||i[2]!==h?(t=e9("segment-explorer-file-label",f,p,h),i[0]=f,i[1]=p,i[2]=h,i[3]=t):t=i[3],i[4]!==u?(n=function(){var e;e=new URLSearchParams({file:{filePath:u}.filePath,isAppRelativePath:"1"}),fetch("".concat(process.env.__NEXT_ROUTER_BASEPATH||"","/__nextjs_launch-editor?").concat(e.toString()))},i[4]=u,i[5]=n):n=i[5],i[6]!==d?(r=(0,S.jsx)("span",{className:"segment-explorer-file-label-text",children:d}),i[6]=d,i[7]=r):r=i[7],i[8]!==s?(o=s?(0,S.jsx)(uq,{}):(0,S.jsx)(uK,{className:"code-icon"}),i[8]=s,i[9]=o):o=i[9],i[10]!==t||i[11]!==n||i[12]!==r||i[13]!==o?(a=(0,S.jsxs)("span",{className:t,onClick:n,children:[r,o]}),i[10]=t,i[11]=n,i[12]=r,i[13]=o,i[14]=a):a=i[14],a}function uV(e){var t,n,r,o,a,i,l,s,c=(0,O.c)(17),u=e.page,d=(0,C.useSyncExternalStore)(al,as,ac);c[0]!==d?(t=function e(t){var n,r=0;return(null==(n=t.value)?void 0:n.setBoundaryType)&&null!==t.value.boundaryType&&!ut(t.value.type)&&r++,Object.values(t.children).forEach(function(t){t&&(r+=e(t))}),r}(d),c[0]=d,c[1]=t):t=c[1];var f=t;c[2]!==d?(n=function(){!function e(t){var n;(null==(n=t.value)?void 0:n.setBoundaryType)&&t.value.setBoundaryType(null),Object.values(t.children).forEach(function(t){t&&e(t)})}(d)},c[2]=d,c[3]=n):n=c[3];var p=n;return c[4]===Symbol.for("react.memo_cache_sentinel")?(r={display:"flex",flexDirection:"column",height:"100%"},c[4]=r):r=c[4],c[5]!==u?(o=(0,S.jsx)(uU,{page:u}),c[5]=u,c[6]=o):o=c[6],c[7]===Symbol.for("react.memo_cache_sentinel")?(a={flex:"1 1 auto",overflow:"auto"},c[7]=a):a=c[7],c[8]!==d?(i=(0,S.jsx)("div",{className:"segment-explorer-content","data-nextjs-devtool-segment-explorer":!0,style:a,children:(0,S.jsx)(u$,{node:d,level:0,segment:""})}),c[8]=d,c[9]=i):i=c[9],c[10]!==f||c[11]!==p?(l=(0,S.jsx)(uF,{activeBoundariesCount:f,onGlobalReset:p}),c[10]=f,c[11]=p,c[12]=l):l=c[12],c[13]!==o||c[14]!==i||c[15]!==l?(s=(0,S.jsxs)("div",{"data-nextjs-devtools-panel-segments-explorer":!0,style:r,children:[o,i,l]}),c[13]=o,c[14]=i,c[15]=l,c[16]=s):s=c[16],s}var uB="global-error";function u$(e){var t=e.segment,n=e.node,r=e.level,o=(0,C.useMemo)(function(){return Object.keys(n.children)},[n.children]),a=(0,C.useMemo)(function(){var e=[];return o.forEach(function(t){var r=n.children[t];if(r&&r.value){var o=un(r.value.type),a=o===uB;(a&&!r.value.pagePath.startsWith(c8)||!a&&ut(r.value.type))&&e.push(o)}}),0===r&&!e.includes(uB)},[n.children,o,r]),i=o.sort(function(e,t){var r=e.includes("."),o=t.includes(".");if(r&&!o)return -1;if(!r&&o)return 1;if(r&&o){var a,i,l,s,c,u,d,f,p=null==(i=n.children[e])||null==(a=i.value)?void 0:a.type,h=null==(s=n.children[t])||null==(l=s.value)?void 0:l.type,m=function(e){return e?"layout"===e?1:"template"===e?2:"page"===e?3:ut(e)?4:5:5},g=m(p),y=m(h);if(g!==y)return g-y;var v=(null==(u=n.children[e])||null==(c=u.value)?void 0:c.pagePath)||"",b=(null==(f=n.children[t])||null==(d=f.value)?void 0:d.pagePath)||"";return v.localeCompare(b)}return e.localeCompare(t)}),l=0!==r||t?t:"app",s=[],c=[],u=!0,d=!1,f=void 0;try{for(var p,h=i[Symbol.iterator]();!(u=(p=h.next()).done);u=!0){var m=p.value,g=n.children[m];if(g){if(uZ(g)){c.push(m);continue}s.push(m)}}}catch(e){d=!0,f=e}finally{try{u||null==h.return||h.return()}finally{if(d)throw f}}for(var y=c7(c[0]||"").split(".").pop()||"js",v=null,b=i.length-1;b>=0;b--){var x=n.children[i[b]];if(x&&x.value){var w=ut(x.value.type);if(!v&&!w){v=x;break}}}var _=null,j=!0,k=!1,O=void 0;try{for(var P,E=i[Symbol.iterator]();!(j=(P=E.next()).done);j=!0){var T=P.value,N=n.children[T];if(N&&N.value&&ut(N.value.type)){_=N;break}}}catch(e){k=!0,O=e}finally{try{j||null==E.return||E.return()}finally{if(k)throw O}}v=v||_;var I=c.length>0,L={"not-found":null,loading:null,error:null,"global-error":null};return c.forEach(function(e){var t=n.children[e];if(t&&t.value&&ut(t.value.type)){var r=un(t.value.type);r in L&&(L[r]=t.value.pagePath||null)}}),(0,S.jsxs)(S.Fragment,{children:[I&&(0,S.jsx)("div",{className:"segment-explorer-item","data-nextjs-devtool-segment-explorer-segment":t+"-"+r,children:(0,S.jsx)("div",{className:"segment-explorer-item-row",style:uD({},{paddingLeft:"".concat((r+1)*8,"px")}),children:(0,S.jsx)("div",{className:"segment-explorer-item-row-main",children:(0,S.jsxs)("div",{className:"segment-explorer-filename",children:[l&&(0,S.jsxs)("span",{className:"segment-explorer-filename--path",children:[l,(0,S.jsx)("small",{children:"/"})]}),a&&(0,S.jsx)(uR,{possibleExtension:y,missingGlobalError:a}),c.length>0&&(0,S.jsx)("span",{className:"segment-explorer-files",children:c.map(function(e){var t=n.children[e];if(!t||!t.value||ut(t.value.type))return null;var r=t.value.pagePath,o=r.split("/").pop()||"",a=r.startsWith(c8),i=c7(o),l=a?"The default Next.js ".concat(t.value.type," is being shown. You can customize this page by adding your own ").concat(i," file to the app/ directory."):null,s=null!==t.value.boundaryType;return(0,S.jsx)(uz,{className:"segment-explorer-file-label-tooltip--"+(a?"lg":"sm"),direction:a?"right":"top",title:l,offset:12,children:(0,S.jsx)(uH,{type:t.value.type,isBuiltin:a,isOverridden:s,filePath:r,fileName:i})},e)})}),v&&v.value&&(0,S.jsx)(us,{nodeState:v.value,boundaries:L})]})})})}),s.map(function(e){var o=n.children[e];if(!o)return null;var a=I?e:t+" / "+e;return(0,S.jsx)(u$,{segment:a,node:o,level:I?r+1:r},e)})]})}function uq(e){var t,n,r,o=(0,O.c)(4);return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsx)("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z",fill:"var(--color-gray-400)"}),n=(0,S.jsx)("path",{d:"M7.75 7C8.30228 7.00001 8.75 7.44772 8.75 8V11.25H7.25V8.5H6.25V7H7.75ZM8 4C8.55228 4 9 4.44772 9 5C9 5.55228 8.55228 6 8 6C7.44772 6 7 5.55228 7 5C7 4.44772 7.44772 4 8 4Z",fill:"var(--color-gray-900)"}),o[0]=t,o[1]=n):(t=o[0],n=o[1]),o[2]!==e?(r=(0,S.jsxs)("svg",uM(uD({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:[t,n]})),o[2]=e,o[3]=r):r=o[3],r}function uW(){var e,t=(0,O.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,S.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--color-gray-600)",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("path",{d:"M4.5 11.25C4.5 11.3881 4.61193 11.5 4.75 11.5H14.4395L11.9395 9L13 7.93945L16.7803 11.7197L16.832 11.7764C17.0723 12.0709 17.0549 12.5057 16.7803 12.7803L13 16.5605L11.9395 15.5L14.4395 13H4.75C3.7835 13 3 12.2165 3 11.25V4.25H4.5V11.25Z"})}),t[0]=e):e=t[0],e}function uK(e){var t,n,r=(0,O.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.22763 14.1819L10.2276 2.18193L10.4095 1.45432L8.95432 1.09052L8.77242 1.81812L5.77242 13.8181L5.59051 14.5457L7.04573 14.9095L7.22763 14.1819ZM3.75002 12.0607L3.21969 11.5304L0.39647 8.70713C0.00594559 8.31661 0.00594559 7.68344 0.39647 7.29292L3.21969 4.46969L3.75002 3.93936L4.81068 5.00002L4.28035 5.53035L1.81068 8.00003L4.28035 10.4697L4.81068 11L3.75002 12.0607ZM12.25 12.0607L12.7804 11.5304L15.6036 8.70713C15.9941 8.31661 15.9941 7.68344 15.6036 7.29292L12.7804 4.46969L12.25 3.93936L11.1894 5.00002L11.7197 5.53035L14.1894 8.00003L11.7197 10.4697L11.1894 11L12.25 12.0607Z",fill:"currentColor"}),r[0]=t):t=r[0],r[1]!==e?(n=(0,S.jsx)("svg",uM(uD({width:"12",height:"12",strokeLinejoin:"round",viewBox:"0 0 16 16",fill:"currentColor"},e),{children:t})),r[1]=e,r[2]=n):n=r[2],n}function uY(){var e,t,n=(e=["\n .dev-tools-info-close-button:focus-visible {\n outline: var(--focus-ring);\n }\n "],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return uY=function(){return n},n}function uX(e){var t,n,r,o,a,i,l,s,c,u,d,f=(0,O.c)(18),p=e.title,h=e.children,m=e.ref,g=r3().setPanel,y=(0,C.useRef)(null);return f[0]===Symbol.for("react.memo_cache_sentinel")?(t=function(){var e;null==(e=y.current)||e.focus()},n=[],f[0]=t,f[1]=n):(t=f[0],n=f[1]),(0,C.useLayoutEffect)(t,n),f[2]===Symbol.for("react.memo_cache_sentinel")?(r={width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 20px",userSelect:"none",WebkitUserSelect:"none",borderBottom:"1px solid var(--color-gray-alpha-400)"},f[2]=r):r=f[2],f[3]===Symbol.for("react.memo_cache_sentinel")?(o={margin:0,fontSize:"14px",color:"var(--color-text-primary)",fontWeight:"normal"},f[3]=o):o=f[3],f[4]!==p?(a=(0,S.jsx)("h3",{style:o,children:p}),f[4]=p,f[5]=a):a=f[5],f[6]!==g?(i=function(){g("panel-selector")},f[6]=g,f[7]=i):i=f[7],f[8]===Symbol.for("react.memo_cache_sentinel")?(l={background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",color:"var(--color-gray-900)"},s=(0,S.jsx)(uG,{}),f[8]=l,f[9]=s):(l=f[8],s=f[9]),f[10]!==i?(c=(0,S.jsx)("button",{ref:y,id:"_next-devtools-panel-close",className:"dev-tools-info-close-button",onClick:i,"aria-label":"Close devtools panel",style:l,children:s}),f[10]=i,f[11]=c):c=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(u=(0,S.jsx)("style",{children:eg(uY())}),f[12]=u):u=f[12],f[13]!==h||f[14]!==m||f[15]!==a||f[16]!==c?(d=(0,S.jsxs)("div",{style:r,ref:m,children:[a,h,c,u]}),f[13]=h,f[14]=m,f[15]=a,f[16]=c,f[17]=d):d=f[17],d}function uG(e){var t,n,r,o=(0,O.c)(4),a=e.size,i=void 0===a?22:a;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,S.jsx)("path",{d:"M18 6 6 18"}),n=(0,S.jsx)("path",{d:"m6 6 12 12"}),o[0]=t,o[1]=n):(t=o[0],n=o[1]),o[2]!==i?(r=(0,S.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t,n]}),o[2]=i,o[3]=r):r=o[3],r}function uQ(){var e,t=(0,O.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,S.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",children:(0,S.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m9.7 3.736.045-.236h.51l.044.236a2.024 2.024 0 0 0 1.334 1.536c.19.066.375.143.554.23.618.301 1.398.29 2.03-.143l.199-.136.36.361-.135.199a2.024 2.024 0 0 0-.143 2.03c.087.179.164.364.23.554.224.65.783 1.192 1.536 1.334l.236.044v.51l-.236.044a2.024 2.024 0 0 0-1.536 1.334 4.95 4.95 0 0 1-.23.554 2.024 2.024 0 0 0 .143 2.03l.136.199-.361.36-.199-.135a2.024 2.024 0 0 0-2.03-.143c-.179.087-.364.164-.554.23a2.024 2.024 0 0 0-1.334 1.536l-.044.236h-.51l-.044-.236a2.024 2.024 0 0 0-1.334-1.536 4.952 4.952 0 0 1-.554-.23 2.024 2.024 0 0 0-2.03.143l-.199.136-.36-.361.135-.199a2.024 2.024 0 0 0 .143-2.03 4.958 4.958 0 0 1-.23-.554 2.024 2.024 0 0 0-1.536-1.334l-.236-.044v-.51l.236-.044a2.024 2.024 0 0 0 1.536-1.334 4.96 4.96 0 0 1 .23-.554 2.024 2.024 0 0 0-.143-2.03l-.136-.199.361-.36.199.135a2.024 2.024 0 0 0 2.03.143c.179-.087.364-.164.554-.23a2.024 2.024 0 0 0 1.334-1.536ZM8.5 2h3l.274 1.46c.034.185.17.333.348.394.248.086.49.186.722.3.17.082.37.074.526-.033l1.226-.839 2.122 2.122-.84 1.226a.524.524 0 0 0-.032.526c.114.233.214.474.3.722.061.177.21.314.394.348L18 8.5v3l-1.46.274a.524.524 0 0 0-.394.348 6.47 6.47 0 0 1-.3.722.524.524 0 0 0 .033.526l.839 1.226-2.122 2.122-1.226-.84a.524.524 0 0 0-.526-.032 6.477 6.477 0 0 1-.722.3.524.524 0 0 0-.348.394L11.5 18h-3l-.274-1.46a.524.524 0 0 0-.348-.394 6.477 6.477 0 0 1-.722-.3.524.524 0 0 0-.526.033l-1.226.839-2.122-2.122.84-1.226a.524.524 0 0 0 .032-.526 6.453 6.453 0 0 1-.3-.722.524.524 0 0 0-.394-.348L2 11.5v-3l1.46-.274a.524.524 0 0 0 .394-.348c.086-.248.186-.49.3-.722a.524.524 0 0 0-.033-.526l-.839-1.226 2.122-2.122 1.226.84a.524.524 0 0 0 .526.032 6.46 6.46 0 0 1 .722-.3.524.524 0 0 0 .348-.394L8.5 2Zm3 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm1.5 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",clipRule:"evenodd"})}),t[0]=e):e=t[0],e}function uJ(){var e,t=(0,O.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,S.jsx)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsx)("circle",{cx:"10",cy:"10",r:"7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"32 12",opacity:"0.8",children:(0,S.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 10 10",to:"360 10 10",dur:"1s",repeatCount:"indefinite"})})}),t[0]=e):e=t[0],e}var u0=__webpack_require__("../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_@swc+helpers@0.5.15__webpack@5.98.0_@swc+core@1.11.24_@sw_bx7gx6l2cs2trwgqreijicltyy/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[3].use[1]!./src/next-devtools/dev-overlay/menu/panel-router.css"),u1={};u1.styleTagTransform=x(),u1.setAttributes=g(),u1.insert=h(),u1.domAPI=f(),u1.insertStyleElement=v(),u()(u0.A,u1),u0.A&&u0.A.locals&&u0.A.locals;var u2=function(){var e,t,n,r,o,a,i,l,s,c,u=(0,O.c)(25),d=r3(),f=d.setPanel,p=d.setSelectedIndex,h=dw(),m=h.state,g=h.dispatch,y=da().totalErrorCount,v="app"===m.routerType;return u[0]!==g||u[1]!==f||u[2]!==p||u[3]!==m.isErrorOverlayOpen||u[4]!==y?(e=y>0&&{title:"".concat(y," ").concat(1===y?"issue":"issues"," found. Click to view details in the dev overlay."),label:"Issues",value:(0,S.jsx)(oM,{children:y}),onClick:function(){if(m.isErrorOverlayOpen){g({type:Y}),f(null);return}f(null),p(-1),y>0&&g({type:K})}},u[0]=g,u[1]=f,u[2]=p,u[3]=m.isErrorOverlayOpen,u[4]=y,u[5]=e):e=u[5],u[6]!==f||u[7]!==m.staticIndicator?(t="disabled"===m.staticIndicator?void 0:"pending"===m.staticIndicator?{title:"Loading...",label:"Route",value:(0,S.jsx)(uJ,{})}:{title:"Current route is ".concat(m.staticIndicator,"."),label:"Route",value:"static"===m.staticIndicator?"Static":"Dynamic",onClick:function(){return f("route-type")},attributes:{"data-nextjs-route-type":m.staticIndicator}},u[6]=f,u[7]=m.staticIndicator,u[8]=t):t=u[8],u[9]===Symbol.for("react.memo_cache_sentinel")?(n=process.env.TURBOPACK?{title:"Turbopack is enabled.",label:"Bundler",value:"Turbopack"}:{title:"Learn about Turbopack and how to enable it in your application.",label:"Bundler",value:(0,S.jsx)("a",{href:"https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack",target:"_blank",rel:"noreferrer noopener",className:"turbopack-upgrade-link",children:process.env.__NEXT_BUNDLER||"Turbopack"})},r=!!process.env.__NEXT_CACHE_COMPONENTS&&{title:"Cache Components is enabled.",label:"Cache Components",value:"Enabled"},u[9]=n,u[10]=r):(n=u[9],r=u[10]),u[11]!==v||u[12]!==f?(o=v&&{label:"Route Info",value:(0,S.jsx)(oZ,{}),onClick:function(){return f("segment-explorer")},attributes:{"data-segment-explorer":!0}},u[11]=v,u[12]=f,u[13]=o):o=u[13],u[14]===Symbol.for("react.memo_cache_sentinel")?(a=(0,S.jsx)(uQ,{}),u[14]=a):a=u[14],u[15]!==f?(i=function(){return f("preferences")},u[15]=f,u[16]=i):i=u[16],u[17]===Symbol.for("react.memo_cache_sentinel")?(l={"data-preferences":!0},u[17]=l):l=u[17],u[18]!==i?(s={label:"Preferences",value:a,onClick:i,footer:!0,attributes:l},u[18]=i,u[19]=s):s=u[19],u[20]!==e||u[21]!==t||u[22]!==o||u[23]!==s?(c=(0,S.jsx)(oR,{items:[e,t,n,r,o,s]}),u[20]=e,u[21]=t,u[22]=o,u[23]=s,u[24]=c):c=u[24],c},u3=function(){var e,t=(0,O.c)(4),n=dw(),r=n.state,o=n.dispatch,a=n.shadowRoot;return t[0]!==o||t[1]!==a||t[2]!==r.disableDevIndicator?(e=function(){o({type:W,disabled:!r.disableDevIndicator});var e=a.getElementById("panel-route"),t=a.getElementById("data-devtools-indicator");if(e&&e.firstElementChild){var n=e.firstElementChild,i="none"===n.style.display;n.style.display=i?"":"none"}if(t){var l="none"===t.style.display;t.style.display=l?"":"none"}},t[0]=o,t[1]=a,t[2]=r.disableDevIndicator,t[3]=e):e=t[3],e},u4=function(){var e,t,n,r,o,a,i,l,s,c,u,d,f,p,h,m,g,y=(0,O.c)(22),v=dw().state,b=r3().triggerRef,x=u3(),w="app"===v.routerType;y[0]!==v.hideShortcut||y[1]!==x?(s=v.hideShortcut?(e={},t=v.hideShortcut,n=x,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e):{},y[0]=v.hideShortcut,y[1]=x,y[2]=s):s=y[2],r=s,o=b,(l=(0,O.c)(4))[0]!==o||l[1]!==r?(a=function(){var e=function(e){if(!((n=nl((t=o).current))&&("true"===n.contentEditable||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SELECT"===n.tagName||"true"===n.dataset["shortcut-recorder"])&&!n.hasAttribute("readonly"))){var t,n,a=[];e.metaKey&&a.push("Meta"),e.ctrlKey&&a.push("Control"),e.altKey&&a.push("Alt"),e.shiftKey&&a.push("Shift"),"Meta"!==e.key&&"Control"!==e.key&&"Alt"!==e.key&&"Shift"!==e.key&&a.push(e.code);var i=a.join("+");r[i]&&(e.preventDefault(),r[i]())}};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},i=[o,r],l[0]=o,l[1]=r,l[2]=a,l[3]=i):(a=l[2],i=l[3]),(0,C.useEffect)(a,i),y[3]===Symbol.for("react.memo_cache_sentinel")?(c=(0,S.jsx)(u7,{name:"panel-selector",children:(0,S.jsx)(u2,{})}),y[3]=c):c=y[3];var _=500/v.scale;return y[4]!==_?(u={kind:"fixed",height:_,width:512},y[4]=_,y[5]=u):u=y[5],y[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,S.jsx)(uX,{title:"Preferences"}),f=(0,S.jsx)(u6,{}),y[6]=d,y[7]=f):(d=y[6],f=y[7]),y[8]!==u?(p=(0,S.jsx)(u7,{name:"preferences",children:(0,S.jsx)(o5,{sharePanelSizeGlobally:!1,sizeConfig:u,closeOnClickOutside:!0,header:d,children:f})}),y[8]=u,y[9]=p):p=y[9],y[10]!==v.routerType||y[11]!==v.scale||y[12]!==v.staticIndicator?(h="disabled"!==v.staticIndicator&&"pending"!==v.staticIndicator&&(0,S.jsx)(u7,{name:"route-type",children:(0,S.jsx)(o5,{sharePanelSizeGlobally:!1,sizeConfig:{kind:"fixed",height:"static"===v.staticIndicator?300/v.scale:325/v.scale,width:400/v.scale},closeOnClickOutside:!0,header:(0,S.jsx)(uX,{title:"".concat("static"===v.staticIndicator?"Static":"Dynamic"," Route")}),children:(0,S.jsxs)("div",{className:"panel-content",children:[(0,S.jsx)(an,{routerType:v.routerType,isStaticRoute:"static"===v.staticIndicator}),(0,S.jsx)(u5,{href:at[v.routerType][v.staticIndicator]})]})},v.staticIndicator)}),y[10]=v.routerType,y[11]=v.scale,y[12]=v.staticIndicator,y[13]=h):h=y[13],y[14]!==w||y[15]!==v.page||y[16]!==v.scale?(m=w&&(0,S.jsx)(u7,{name:"segment-explorer",children:(0,S.jsx)(o5,{sharePanelSizeGlobally:!1,sharePanelPositionGlobally:!1,draggable:!0,sizeConfig:{kind:"resizable",maxHeight:"90vh",maxWidth:"90vw",minHeight:200/v.scale,minWidth:250/v.scale,initialSize:{height:375/v.scale,width:400/v.scale}},header:(0,S.jsx)(uX,{title:"Route Info"}),children:(0,S.jsx)(uV,{page:v.page})})}),y[14]=w,y[15]=v.page,y[16]=v.scale,y[17]=m):m=y[17],y[18]!==p||y[19]!==h||y[20]!==m?(g=(0,S.jsxs)(S.Fragment,{children:[c,p,h,m]}),y[18]=p,y[19]=h,y[20]=m,y[21]=g):g=y[21],g},u5=function(e){var t,n=(0,O.c)(2),r=e.href;return n[0]!==r?(t=(0,S.jsx)("div",{className:"dev-tools-info-button-container",children:(0,S.jsx)("a",{className:"dev-tools-info-learn-more-button",href:r,target:"_blank",rel:"noreferrer noopener",children:"Learn More"})}),n[0]=r,n[1]=t):t=n[1],t},u6=function(){var e,t,n,r,o=(0,O.c)(17),a=dw(),i=a.dispatch,l=a.state,s=r3(),c=s.setPanel,u=s.setSelectedIndex,d=oC();return o[0]!==i?(e=function(e){i({type:er,scale:e})},o[0]=i,o[1]=e):e=o[1],o[2]!==i||o[3]!==d?(t=function(e){i({type:et,devToolsPosition:e}),d(e)},o[2]=i,o[3]=d,o[4]=t):t=o[4],o[5]!==i||o[6]!==c||o[7]!==u?(n=function(){i({type:W,disabled:!0}),u(-1),c(null),fetch("/__nextjs_disable_dev_indicator",{method:"POST"})},o[5]=i,o[6]=c,o[7]=u,o[8]=n):n=o[8],o[9]!==l.devToolsPosition||o[10]!==l.hideShortcut||o[11]!==l.scale||o[12]!==l.theme||o[13]!==e||o[14]!==t||o[15]!==n?(r=(0,S.jsx)("div",{className:"user-preferences-wrapper",children:(0,S.jsx)(rC,{theme:l.theme,position:l.devToolsPosition,scale:l.scale,setScale:e,setPosition:t,hideShortcut:l.hideShortcut,setHideShortcut:de,hide:n})}),o[9]=l.devToolsPosition,o[10]=l.hideShortcut,o[11]=l.scale,o[12]=l.theme,o[13]=e,o[14]=t,o[15]=n,o[16]=r):r=o[16],r},u9=function(){return(0,C.useContext)(u8)},u8=(0,C.createContext)(null);function u7(e){var t,n,r,o,a,i=(0,O.c)(12),l=e.children,s=e.name,c=r3().panel;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={enterDelay:0,exitDelay:200},i[0]=t):t=i[0];var u=rD(s===c,t),d=u.mounted,f=u.rendered;if(!d)return null;i[1]!==d||i[2]!==s?(n={name:s,mounted:d},i[1]=d,i[2]=s,i[3]=n):n=i[3];var p=+!!f;i[4]!==p?(r={"--panel-opacity":p,"--panel-transition":"opacity ".concat(200,"ms ").concat(nc)},i[4]=p,i[5]=r):r=i[5];var h=r;return i[6]!==l||i[7]!==h?(o=(0,S.jsx)("div",{id:"panel-route",className:"panel-route",style:h,children:l}),i[6]=l,i[7]=h,i[8]=o):o=i[8],i[9]!==n||i[10]!==o?(a=(0,S.jsx)(u8,{value:n,children:o}),i[9]=n,i[10]=o,i[11]=a):a=i[11],a}function de(e){rk({hideShortcut:e})}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:process.env.__NEXT_DIST_DIR;return e?(e=e.split("\n").map(function(e){return e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/\(eval at [^()]* \(/,"(file://").replace(/\),.*$/g,")")),e}).join("\n"),(0,E.parse)(e).map(function(e){try{var n=new URL(e.file),r=T.exec(n.pathname);if(r){var o,a=null==t||null==(o=t.replace(/\\/g,"/"))?void 0:o.replace(/\/$/,"");a&&(e.file="file://"+a.concat(r.pop())+n.search)}}catch(e){}return{file:e.file,line1:e.lineNumber,column1:e.column,methodName:e.methodName,arguments:e.arguments}})):[]}((o.stack||"")+(i||"")),s={id:t,error:o,frames:l,type:r(o)?"recoverable":(a=o)&&"NEXT_CONSOLE_ERROR"===a[N]?"console":"runtime"},c=e.filter(function(e){return""+e.error!=""+s.error||e.error.stack!==s.error.stack&&ed(e.error.stack)!==ed(s.error.stack)||n(e.error)!==n(s.error)});return c.length===e.length?(c.push(s),c):e},u[0]=n,u[1]=r,u[2]=l):l=u[2],d=l,(u[3]!==d?(s=function(e,t){switch(t.type){case $:return A(L({},e),{debugInfo:t.debugInfo});case R:return A(L({},e),{cacheIndicator:t.cacheIndicator});case D:return A(L({},e),{staticIndicator:t.staticIndicator});case M:return A(L({},e),{buildError:null});case Z:return A(L({},e),{buildError:t.message});case U:return A(L({},e),{refreshState:{type:"pending",errors:[]}});case F:return A(L({},e),{buildError:null,errors:"pending"===e.refreshState.type?e.refreshState.errors:[],refreshState:{type:"idle"}});case V:case B:switch(e.refreshState.type){case"idle":return A(L({},e),{nextId:e.nextId+1,errors:d(e.errors,e.nextId,t.reason)});case"pending":return A(L({},e),{nextId:e.nextId+1,refreshState:A(L({},e.refreshState),{errors:d(e.errors,e.nextId,t.reason)})});default:return e}case H:return A(L({},e),{versionInfo:t.versionInfo});case W:return A(L({},e),{disableDevIndicator:t.disabled});case q:return A(L({},e),{showIndicator:!0,disableDevIndicator:ef||!!t.devIndicator.disabledUntil});case K:return A(L({},e),{isErrorOverlayOpen:!0});case Y:return A(L({},e),{isErrorOverlayOpen:!1});case X:return A(L({},e),{isErrorOverlayOpen:!e.isErrorOverlayOpen});case G:return A(L({},e),{buildingIndicator:!0});case Q:return A(L({},e),{buildingIndicator:!1});case J:return A(L({},e),{renderingIndicator:!0});case ee:return A(L({},e),{renderingIndicator:!1});case et:return A(L({},e),{devToolsPosition:t.devToolsPosition});case en:return A(L({},e),{devToolsPanelPosition:A(L({},e.devToolsPanelPosition),I({},t.key,t.devToolsPanelPosition))});case er:return A(L({},e),{scale:t.scale});case ec:return A(L({},e),{page:t.page});case eo:var n=t.devToolsConfig,r=n.theme,o=n.disableDevIndicator,a=n.devToolsPosition,i=n.devToolsPanelPosition,l=n.devToolsPanelSize,s=n.scale,c=n.hideShortcut;return A(L({},e),{theme:null!=r?r:e.theme,disableDevIndicator:null!=o?o:e.disableDevIndicator,devToolsPosition:null!=a?a:e.devToolsPosition,devToolsPanelPosition:null!=i?i:e.devToolsPanelPosition,scale:null!=s?s:e.scale,devToolsPanelSize:null!=l?l:e.devToolsPanelSize,hideShortcut:void 0!==c?c:e.hideShortcut});default:return e}},u[3]=d,u[4]=s):s=u[4],u[5]!==o||u[6]!==t)?(a=t,i=o,c=A(L({},eh),{isErrorOverlayOpen:"pages"===a,routerType:a,cacheIndicator:i?"ready":"disabled"}),u[5]=o,u[6]=t,u[7]=c):c=u[7],f=(0,C.useReducer)(s,c),function(e){if(Array.isArray(e))return e}(f)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),2!==a.length);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw r}}return a}}(f,2)||dd(f,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),eu=es[0],ep=es[1];return j[0]!==ei||j[1]!==eu?(p=function(){dh=dc(ds({},eu),{routerType:ei})},h=[eu,ei],j[0]=ei,j[1]=eu,j[2]=p,j[3]=h):(p=j[2],h=j[3]),(0,C.useEffect)(p,h),j[4]!==el.host||j[5]!==eu.theme?(m=function(){var e=el.host;"dark"===eu.theme?(e.classList.add("dark"),e.classList.remove("light")):"light"===eu.theme?(e.classList.add("light"),e.classList.remove("dark")):(e.classList.remove("dark"),e.classList.remove("light"))},j[4]=el.host,j[5]=eu.theme,j[6]=m):m=j[6],j[7]!==el||j[8]!==eu.theme?(g=[el,eu.theme],j[7]=el,j[8]=eu.theme,j[9]=g):g=j[9],(0,C.useLayoutEffect)(m,g),j[10]!==ep?(y=function(){df=ep;var e=setTimeout(function(){!function(e){try{var t=!0,n=!1,r=void 0;try{for(var o,a=dp[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)(0,o.value)(e)}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}}finally{dp.length=0}}(ep)});return function(){df=null,clearTimeout(e)}},j[10]=ep,j[11]=y):y=j[11],j[12]===Symbol.for("react.memo_cache_sentinel")?(v=[],j[12]=v):v=j[12],(0,C.useInsertionEffect)(y,v),j[13]===Symbol.for("react.memo_cache_sentinel")?(b=(0,S.jsx)(ev,{}),j[13]=b):b=j[13],j[14]!==ep||j[15]!==z||j[16]!==el||j[17]!==eu?(x={dispatch:ep,getSquashedHydrationErrorDetails:z,shadowRoot:el,state:eu},j[14]=ep,j[15]=z,j[16]=el,j[17]=eu,j[18]=x):x=j[18],j[19]===Symbol.for("react.memo_cache_sentinel")?(w=(0,S.jsx)(di,{}),j[19]=w):w=j[19],j[20]!==x?(_=(0,S.jsxs)(S.Fragment,{children:[b,(0,S.jsx)(dx,{value:x,children:w})]}),j[20]=x,j[21]=_):_=j[21],_}var dx=(0,C.createContext)(null),dw=function(){return(0,C.useContext)(dx)},d_=!1,dj=!1;function dk(){return null}function dS(e,t,n){if(d_)throw Error("Next DevTools: Pages Dev Overlay is already mounted. This is a bug in Next.js");if(!dj){var r=document.createElement("script");r.style.display="block",r.style.position="absolute",r.setAttribute("data-nextjs-dev-overlay","true");var o=document.createElement("nextjs-portal");r.appendChild(o),document.body.appendChild(r);var a=(0,em.createRoot)(o,{identifierPrefix:"ndt-",onDefaultTransitionIndicator:function(){return function(){}}}),i=o.attachShadow({mode:"open"});(0,C.startTransition)(function(){a.render((0,S.jsx)(db,{enableCacheIndicator:n,getOwnerStack:e,getSquashedHydrationErrorDetails:dk,isRecoverableError:t,routerType:"app",shadowRoot:i}))}),dj=!0}}function dO(e,t,n){if(dj)throw Error("Next DevTools: App Dev Overlay is already mounted. This is a bug in Next.js");if(!d_){var r=document.createElement("nextjs-portal");r.style.position="absolute",new MutationObserver(function(e){var t=!0,n=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var l=a.value;if("childList"===l.type){var s=!0,c=!1,u=void 0;try{for(var d,f=l.removedNodes[Symbol.iterator]();!(s=(d=f.next()).done);s=!0)d.value===r&&document.body.appendChild(r)}catch(e){c=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(c)throw u}}}}}catch(e){n=!0,o=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw o}}}).observe(document.body,{childList:!0}),document.body.appendChild(r);var o=(0,em.createRoot)(r,{identifierPrefix:"ndt-"}),a=r.attachShadow({mode:"open"});(0,C.startTransition)(function(){o.render((0,S.jsx)(db,{enableCacheIndicator:!1,getOwnerStack:e,getSquashedHydrationErrorDetails:t,isRecoverableError:n,routerType:"pages",shadowRoot:a}))}),d_=!0}}})(),exports.DevOverlayContext=__webpack_exports__.DevOverlayContext,exports.dispatcher=__webpack_exports__.dispatcher,exports.getSegmentTrieData=__webpack_exports__.getSegmentTrieData,exports.getSerializedOverlayState=__webpack_exports__.getSerializedOverlayState,exports.renderAppDevOverlay=__webpack_exports__.renderAppDevOverlay,exports.renderPagesDevOverlay=__webpack_exports__.renderPagesDevOverlay,exports.useDevOverlayContext=__webpack_exports__.useDevOverlayContext,__webpack_exports__)-1===["DevOverlayContext","dispatcher","getSegmentTrieData","getSerializedOverlayState","renderAppDevOverlay","renderPagesDevOverlay","useDevOverlayContext"].indexOf(__rspack_i)&&(exports[__rspack_i]=__webpack_exports__[__rspack_i]);Object.defineProperty(exports,"__esModule",{value:!0}); //# sourceMappingURL=index.js.map