@infinityloop.labs/ui-kit 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/atoms/Button/index.d.ts +2 -1
- package/dist/components/atoms/Calendar/index.d.ts +19 -0
- package/dist/components/atoms/Dropdown/index.d.ts +19 -2
- package/dist/components/atoms/Flex/index.d.ts +4 -3
- package/dist/components/atoms/Grid/index.d.ts +3 -2
- package/dist/components/atoms/Image/index.d.ts +7 -1
- package/dist/components/atoms/Input/index.d.ts +18 -2
- package/dist/components/atoms/Paper/index.d.ts +25 -6
- package/dist/components/atoms/Tag/index.d.ts +3 -2
- package/dist/components/atoms/Timer/index.d.ts +2 -1
- package/dist/components/atoms/Typography/index.d.ts +2 -1
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/atoms/shared/calendar-picker.d.ts +42 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/molecules/Accordion/index.d.ts +27 -0
- package/dist/components/molecules/CodeBrick/index.d.ts +80 -0
- package/dist/components/molecules/CodeBrick/lib/highlight.d.ts +2 -0
- package/dist/components/molecules/EditableTypography/index.d.ts +6 -3
- package/dist/components/molecules/MathEquationBlock/index.d.ts +14 -0
- package/dist/components/molecules/SlideTemplates/StoreSlide/index.d.ts +3 -3
- package/dist/components/molecules/Slider/index.d.ts +5 -4
- package/dist/components/molecules/Slider/slides/BigHorizontalSlide.d.ts +15 -0
- package/dist/components/molecules/Slider/slides/MediumVerticalSlide.d.ts +2 -1
- package/dist/components/molecules/Slider/slides/examples.d.ts +8 -4
- package/dist/components/molecules/Slider/slides/index.d.ts +1 -0
- package/dist/components/molecules/index.d.ts +3 -0
- package/dist/components/templates/TableLight/TableLight.d.ts +23 -0
- package/dist/components/templates/TableLight/index.d.ts +1 -0
- package/dist/components/templates/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/shadcn-io/color-picker/index.d.ts +6 -5
- package/dist/constants/index.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +46117 -11995
- package/dist/index.umd.js +283 -36
- package/dist/lib/utils.d.ts +2 -1
- package/dist/style.css +1 -1
- package/package.json +24 -9
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(lt,fe){typeof exports=="object"&&typeof module<"u"?fe(exports,require("react"),require("@infinityloop.labs/utils"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@infinityloop.labs/utils","react-dom"],fe):(lt=typeof globalThis<"u"?globalThis:lt||self,fe((lt["@infinityloop"]=lt["@infinityloop"]||{},lt["@infinityloop"]["labs/ui-kit"]={}),lt.React,lt["@infinityloop"]["labs/utils"],lt.ReactDOM))})(this,function(lt,fe,Nt,Of){"use strict";var td=typeof document<"u"?document.currentScript:null;function db(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const L=db(fe),Zh=db(Of);function sS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ip={exports:{}},uh={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var fb;function cS(){if(fb)return uh;fb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return uh.Fragment=t,uh.jsx=n,uh.jsxs=n,uh}var dh={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,67 +14,293 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var hb;function uS(){return hb||(hb=1,process.env.NODE_ENV!=="production"&&function(){function e(Q){if(Q==null)return null;if(typeof Q=="function")return Q.$$typeof===ue?null:Q.displayName||Q.name||null;if(typeof Q=="string")return Q;switch(Q){case W:return"Fragment";case B:return"Profiler";case H:return"StrictMode";case G:return"Suspense";case ne:return"SuspenseList";case se:return"Activity"}if(typeof Q=="object")switch(typeof Q.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Q.$$typeof){case k:return"Portal";case Y:return Q.displayName||"Context";case I:return(Q._context.displayName||"Context")+".Consumer";case K:var Ce=Q.render;return Q=Q.displayName,Q||(Q=Ce.displayName||Ce.name||"",Q=Q!==""?"ForwardRef("+Q+")":"ForwardRef"),Q;case $:return Ce=Q.displayName||null,Ce!==null?Ce:e(Q.type)||"Memo";case ie:Ce=Q._payload,Q=Q._init;try{return e(Q(Ce))}catch{}}return null}function t(Q){return""+Q}function n(Q){try{t(Q);var Ce=!1}catch{Ce=!0}if(Ce){Ce=console;var Ge=Ce.error,We=typeof Symbol=="function"&&Symbol.toStringTag&&Q[Symbol.toStringTag]||Q.constructor.name||"Object";return Ge.call(Ce,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",We),t(Q)}}function r(Q){if(Q===W)return"<>";if(typeof Q=="object"&&Q!==null&&Q.$$typeof===ie)return"<...>";try{var Ce=e(Q);return Ce?"<"+Ce+">":"<...>"}catch{return"<...>"}}function i(){var Q=he.A;return Q===null?null:Q.getOwner()}function o(){return Error("react-stack-top-frame")}function l(Q){if(ve.call(Q,"key")){var Ce=Object.getOwnPropertyDescriptor(Q,"key").get;if(Ce&&Ce.isReactWarning)return!1}return Q.key!==void 0}function u(Q,Ce){function Ge(){V||(V=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Ce))}Ge.isReactWarning=!0,Object.defineProperty(Q,"key",{get:Ge,configurable:!0})}function p(){var Q=e(this.type);return J[Q]||(J[Q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Q=this.props.ref,Q!==void 0?Q:null}function y(Q,Ce,Ge,We,Oe,rt){var Fe=Ge.ref;return Q={$$typeof:O,type:Q,key:Ce,props:Ge,_owner:We},(Fe!==void 0?Fe:null)!==null?Object.defineProperty(Q,"ref",{enumerable:!1,get:p}):Object.defineProperty(Q,"ref",{enumerable:!1,value:null}),Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Oe}),Object.defineProperty(Q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:rt}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q}function S(Q,Ce,Ge,We,Oe,rt){var Fe=Ce.children;if(Fe!==void 0)if(We)if(ae(Fe)){for(We=0;We<Fe.length;We++)w(Fe[We]);Object.freeze&&Object.freeze(Fe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else w(Fe);if(ve.call(Ce,"key")){Fe=e(Q);var Ye=Object.keys(Ce).filter(function(Ke){return Ke!=="key"});We=0<Ye.length?"{key: someKey, "+Ye.join(": ..., ")+": ...}":"{key: someKey}",ee[Fe+We]||(Ye=0<Ye.length?"{"+Ye.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,We,Fe,Ye,Fe),ee[Fe+We]=!0)}if(Fe=null,Ge!==void 0&&(n(Ge),Fe=""+Ge),l(Ce)&&(n(Ce.key),Fe=""+Ce.key),"key"in Ce){Ge={};for(var Ve in Ce)Ve!=="key"&&(Ge[Ve]=Ce[Ve])}else Ge=Ce;return Fe&&u(Ge,typeof Q=="function"?Q.displayName||Q.name||"Unknown":Q),y(Q,Fe,Ge,i(),Oe,rt)}function w(Q){C(Q)?Q._store&&(Q._store.validated=1):typeof Q=="object"&&Q!==null&&Q.$$typeof===ie&&(Q._payload.status==="fulfilled"?C(Q._payload.value)&&Q._payload.value._store&&(Q._payload.value._store.validated=1):Q._store&&(Q._store.validated=1))}function C(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===O}var M=fe,O=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),he=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve=Object.prototype.hasOwnProperty,ae=Array.isArray,me=console.createTask?console.createTask:function(){return null};M={react_stack_bottom_frame:function(Q){return Q()}};var V,J={},oe=M.react_stack_bottom_frame.bind(M,o)(),xe=me(r(o)),ee={};dh.Fragment=W,dh.jsx=function(Q,Ce,Ge){var We=1e4>he.recentlyCreatedOwnerStacks++;return S(Q,Ce,Ge,!1,We?Error("react-stack-top-frame"):oe,We?me(r(Q)):xe)},dh.jsxs=function(Q,Ce,Ge){var We=1e4>he.recentlyCreatedOwnerStacks++;return S(Q,Ce,Ge,!0,We?Error("react-stack-top-frame"):oe,We?me(r(Q)):xe)}}()),dh}process.env.NODE_ENV==="production"?ip.exports=cS():ip.exports=uS();var D=ip.exports;const gb={"flex-start":"items-start","flex-end":"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},pb={"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},fh=fe.forwardRef(({children:e,className:t="",column:n,middle:r,...i},o)=>D.jsx("div",{ref:o,className:Nt.clsx("flex",n&&"flex-col",i["justify-content"]&&pb[i["justify-content"]],i["align-items"]&&gb[i["align-items"]],r&&`${gb.center} ${pb.center}`,t),...i,children:e}));fh.displayName="Flex";const dS={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},vb=fe.forwardRef(({children:e,className:t="",column:n=2,...r},i)=>D.jsx("div",{ref:i,className:Nt.clsx("grid",dS[n],t),...r,children:e}));vb.displayName="Grid";const fS=["background","foreground","card","card-foreground","popover","popover-foreground","muted-foreground","muted","primary","primary-foreground","secondary","secondary-foreground","accent","accent-foreground","destructive","constructive","constructive-foreground","cautionary","cautionary-foreground","border","input","ring","chart-1","chart-2","chart-3","chart-4","chart-5"],bb={Heading:"text-xl md:text-2xl font-semibold tracking-tight",SectionHeader:"text-lg font-semibold tracking-tight",CompactHeader:"text-base font-semibold tracking-tight",Action:"text-sm font-medium",Subheader:"text-base md:text-sm",Body:"text-sm leading-relaxed",BodySmall:"text-sm leading-relaxed",Caption:"text-xs uppercase tracking-[0.08em]",CompactCaption:"text-xs"},hS=Object.keys(bb),gS={Subheader:"placeholder:text-base md:placeholder:text-sm placeholder:text-muted-foreground"},pS={Heading:"h1",SectionHeader:"h4",CompactHeader:"h5",Action:"span",Subheader:"p",Body:"p",BodySmall:"p",Caption:"p",CompactCaption:"p"},vS={Heading:"foreground",SectionHeader:"foreground",CompactHeader:"foreground",Action:"foreground",Subheader:"muted-foreground",Body:"foreground",BodySmall:"muted-foreground",Caption:"muted-foreground",CompactCaption:"muted-foreground"},Od=e=>bb[e],mb=e=>pS[e],op=e=>vS[e],Jh=e=>gS[e]??"",Ni=({typography:e,element:t,color:n,style:r,className:i="",isLoading:o=!1,children:l,...u})=>{const p=t??mb(e),y=n??op(e),S=o?" ":l,w={color:`var(--${y})`,...r},C=Nt.clsx("font-infinityloop",Od(e),o&&"relative overflow-hidden rounded-(--radius)",i);return fe.createElement(p,{className:C,style:w,"aria-busy":o||void 0,...u},D.jsxs(D.Fragment,{children:[D.jsx("span",{className:Nt.clsx("relative z-10",o&&"loading-text-blink"),children:S}),o?D.jsx("span",{"aria-hidden":"true",className:Nt.clsx("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]}))};Ni.displayName="Typography";var hh={};/**
|
|
23
|
+
* @license React
|
|
24
|
+
* react-dom-server-legacy.browser.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/var yb;function bS(){if(yb)return hh;yb=1;var e=fe,t=Of;function n(h){var v="https://react.dev/errors/"+h;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)v+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+h+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),y=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),k=Symbol.for("react.scope"),W=Symbol.for("react.activity"),H=Symbol.for("react.legacy_hidden"),B=Symbol.for("react.memo_cache_sentinel"),I=Symbol.for("react.view_transition"),Y=Symbol.iterator;function K(h){return h===null||typeof h!="object"?null:(h=Y&&h[Y]||h["@@iterator"],typeof h=="function"?h:null)}var G=Array.isArray;function ne(h,v){var E=h.length&3,_=h.length-E,z=v;for(v=0;v<_;){var j=h.charCodeAt(v)&255|(h.charCodeAt(++v)&255)<<8|(h.charCodeAt(++v)&255)<<16|(h.charCodeAt(++v)&255)<<24;++v,j=3432918353*(j&65535)+((3432918353*(j>>>16)&65535)<<16)&4294967295,j=j<<15|j>>>17,j=461845907*(j&65535)+((461845907*(j>>>16)&65535)<<16)&4294967295,z^=j,z=z<<13|z>>>19,z=5*(z&65535)+((5*(z>>>16)&65535)<<16)&4294967295,z=(z&65535)+27492+(((z>>>16)+58964&65535)<<16)}switch(j=0,E){case 3:j^=(h.charCodeAt(v+2)&255)<<16;case 2:j^=(h.charCodeAt(v+1)&255)<<8;case 1:j^=h.charCodeAt(v)&255,j=3432918353*(j&65535)+((3432918353*(j>>>16)&65535)<<16)&4294967295,j=j<<15|j>>>17,z^=461845907*(j&65535)+((461845907*(j>>>16)&65535)<<16)&4294967295}return z^=h.length,z^=z>>>16,z=2246822507*(z&65535)+((2246822507*(z>>>16)&65535)<<16)&4294967295,z^=z>>>13,z=3266489909*(z&65535)+((3266489909*(z>>>16)&65535)<<16)&4294967295,(z^z>>>16)>>>0}var $=Object.assign,ie=Object.prototype.hasOwnProperty,se=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ue={},he={};function ve(h){return ie.call(he,h)?!0:ie.call(ue,h)?!1:se.test(h)?he[h]=!0:(ue[h]=!0,!1)}var ae=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),me=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),V=/["'&<>]/;function J(h){if(typeof h=="boolean"||typeof h=="number"||typeof h=="bigint")return""+h;h=""+h;var v=V.exec(h);if(v){var E="",_,z=0;for(_=v.index;_<h.length;_++){switch(h.charCodeAt(_)){case 34:v=""";break;case 38:v="&";break;case 39:v="'";break;case 60:v="<";break;case 62:v=">";break;default:continue}z!==_&&(E+=h.slice(z,_)),z=_+1,E+=v}h=z!==_?E+h.slice(z,_):E}return h}var oe=/([A-Z])/g,xe=/^ms-/,ee=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Q(h){return ee.test(""+h)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":h}var Ce=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ge=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,We={pending:!1,data:null,method:null,action:null},Oe=Ge.d;Ge.d={f:Oe.f,r:Oe.r,D:Je,C:xt,L:Xn,m:Qi,X:Nc,S:Hr,M:Ru};var rt=[],Fe=null,Ye=/(<\/|<)(s)(cript)/gi;function Ve(h,v,E,_){return""+v+(E==="s"?"\\u0073":"\\u0053")+_}function Ke(h,v,E,_,z){return{idPrefix:h===void 0?"":h,nextFormID:0,streamingFormat:0,bootstrapScriptContent:E,bootstrapScripts:_,bootstrapModules:z,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function st(h,v,E,_){return{insertionMode:h,selectedValue:v,tagScope:E,viewTransition:_}}function gt(h,v,E){var _=h.tagScope&-25;switch(v){case"noscript":return st(2,null,_|1,null);case"select":return st(2,E.value!=null?E.value:E.defaultValue,_,null);case"svg":return st(4,null,_,null);case"picture":return st(2,null,_|2,null);case"math":return st(5,null,_,null);case"foreignObject":return st(2,null,_,null);case"table":return st(6,null,_,null);case"thead":case"tbody":case"tfoot":return st(7,null,_,null);case"colgroup":return st(9,null,_,null);case"tr":return st(8,null,_,null);case"head":if(2>h.insertionMode)return st(3,null,_,null);break;case"html":if(h.insertionMode===0)return st(1,null,_,null)}return 6<=h.insertionMode||2>h.insertionMode?st(2,null,_,null):h.tagScope!==_?st(h.insertionMode,h.selectedValue,_,null):h}function it(h){return h===null?null:{update:h.update,enter:"none",exit:"none",share:h.update,name:h.autoName,autoName:h.autoName,nameIdx:0}}function mt(h,v){return v.tagScope&32&&(h.instructions|=128),st(v.insertionMode,v.selectedValue,v.tagScope|12,it(v.viewTransition))}function ft(h,v){h=it(v.viewTransition);var E=v.tagScope|16;return h!==null&&h.share!=="none"&&(E|=64),st(v.insertionMode,v.selectedValue,E,h)}var tt=new Map;function Ft(h,v){if(typeof v!="object")throw Error(n(62));var E=!0,_;for(_ in v)if(ie.call(v,_)){var z=v[_];if(z!=null&&typeof z!="boolean"&&z!==""){if(_.indexOf("--")===0){var j=J(_);z=J((""+z).trim())}else j=tt.get(_),j===void 0&&(j=J(_.replace(oe,"-$1").toLowerCase().replace(xe,"-ms-")),tt.set(_,j)),z=typeof z=="number"?z===0||ae.has(_)?""+z:z+"px":J((""+z).trim());E?(E=!1,h.push(' style="',j,":",z)):h.push(";",j,":",z)}}E||h.push('"')}function at(h,v,E){E&&typeof E!="function"&&typeof E!="symbol"&&h.push(" ",v,'=""')}function Wt(h,v,E){typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&h.push(" ",v,'="',J(E),'"')}var Dt=J("javascript:throw new Error('React form unexpectedly submitted.')");function ct(h,v){this.push('<input type="hidden"'),$t(h),Wt(this,"name",v),Wt(this,"value",h),this.push("/>")}function $t(h){if(typeof h!="string")throw Error(n(480))}function un(h,v){if(typeof v.$$FORM_ACTION=="function"){var E=h.nextFormID++;h=h.idPrefix+E;try{var _=v.$$FORM_ACTION(h);if(_){var z=_.data;z!=null&&z.forEach($t)}return _}catch(j){if(typeof j=="object"&&j!==null&&typeof j.then=="function")throw j}}return null}function tr(h,v,E,_,z,j,re,Re){var ge=null;if(typeof _=="function"){var Te=un(v,_);Te!==null?(Re=Te.name,_=Te.action||"",z=Te.encType,j=Te.method,re=Te.target,ge=Te.data):(h.push(" ","formAction",'="',Dt,'"'),re=j=z=_=Re=null,Pt(v,E))}return Re!=null&&Rt(h,"name",Re),_!=null&&Rt(h,"formAction",_),z!=null&&Rt(h,"formEncType",z),j!=null&&Rt(h,"formMethod",j),re!=null&&Rt(h,"formTarget",re),ge}function Rt(h,v,E){switch(v){case"className":Wt(h,"class",E);break;case"tabIndex":Wt(h,"tabindex",E);break;case"dir":case"role":case"viewBox":case"width":case"height":Wt(h,v,E);break;case"style":Ft(h,E);break;case"src":case"href":if(E==="")break;case"action":case"formAction":if(E==null||typeof E=="function"||typeof E=="symbol"||typeof E=="boolean")break;E=Q(""+E),h.push(" ",v,'="',J(E),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":at(h,v.toLowerCase(),E);break;case"xlinkHref":if(typeof E=="function"||typeof E=="symbol"||typeof E=="boolean")break;E=Q(""+E),h.push(" ","xlink:href",'="',J(E),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof E!="function"&&typeof E!="symbol"&&h.push(" ",v,'="',J(E),'"');break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":E&&typeof E!="function"&&typeof E!="symbol"&&h.push(" ",v,'=""');break;case"capture":case"download":E===!0?h.push(" ",v,'=""'):E!==!1&&typeof E!="function"&&typeof E!="symbol"&&h.push(" ",v,'="',J(E),'"');break;case"cols":case"rows":case"size":case"span":typeof E!="function"&&typeof E!="symbol"&&!isNaN(E)&&1<=E&&h.push(" ",v,'="',J(E),'"');break;case"rowSpan":case"start":typeof E=="function"||typeof E=="symbol"||isNaN(E)||h.push(" ",v,'="',J(E),'"');break;case"xlinkActuate":Wt(h,"xlink:actuate",E);break;case"xlinkArcrole":Wt(h,"xlink:arcrole",E);break;case"xlinkRole":Wt(h,"xlink:role",E);break;case"xlinkShow":Wt(h,"xlink:show",E);break;case"xlinkTitle":Wt(h,"xlink:title",E);break;case"xlinkType":Wt(h,"xlink:type",E);break;case"xmlBase":Wt(h,"xml:base",E);break;case"xmlLang":Wt(h,"xml:lang",E);break;case"xmlSpace":Wt(h,"xml:space",E);break;default:if((!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=me.get(v)||v,ve(v))){switch(typeof E){case"function":case"symbol":return;case"boolean":var _=v.toLowerCase().slice(0,5);if(_!=="data-"&&_!=="aria-")return}h.push(" ",v,'="',J(E),'"')}}}function Le(h,v,E){if(v!=null){if(E!=null)throw Error(n(60));if(typeof v!="object"||!("__html"in v))throw Error(n(61));v=v.__html,v!=null&&h.push(""+v)}}function Xe(h){var v="";return e.Children.forEach(h,function(E){E!=null&&(v+=E)}),v}function Pt(h,v){if(!(h.instructions&16)){h.instructions|=16;var E=v.preamble,_=v.bootstrapChunks;(E.htmlChunks||E.headChunks)&&_.length===0?(_.push(v.startInlineScript),yl(_,h),_.push(">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")):_.unshift(v.startInlineScript,">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")}}function $e(h,v){h.push(Cn("link"));for(var E in v)if(ie.call(v,E)){var _=v[E];if(_!=null)switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:Rt(h,E,_)}}return h.push("/>"),null}var nr=/(<\/|<)(s)(tyle)/gi;function zr(h,v,E,_){return""+v+(E==="s"?"\\73 ":"\\53 ")+_}function $r(h,v,E){h.push(Cn(E));for(var _ in v)if(ie.call(v,_)){var z=v[_];if(z!=null)switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,E));default:Rt(h,_,z)}}return h.push("/>"),null}function uo(h,v){h.push(Cn("title"));var E=null,_=null,z;for(z in v)if(ie.call(v,z)){var j=v[z];if(j!=null)switch(z){case"children":E=j;break;case"dangerouslySetInnerHTML":_=j;break;default:Rt(h,z,j)}}return h.push(">"),v=Array.isArray(E)?2>E.length?E[0]:null:E,typeof v!="function"&&typeof v!="symbol"&&v!==null&&v!==void 0&&h.push(J(""+v)),Le(h,_,E),h.push(ht("title")),null}function Fo(h,v){h.push(Cn("script"));var E=null,_=null,z;for(z in v)if(ie.call(v,z)){var j=v[z];if(j!=null)switch(z){case"children":E=j;break;case"dangerouslySetInnerHTML":_=j;break;default:Rt(h,z,j)}}return h.push(">"),Le(h,_,E),typeof E=="string"&&h.push((""+E).replace(Ye,Ve)),h.push(ht("script")),null}function Do(h,v,E){h.push(Cn(E));var _=E=null,z;for(z in v)if(ie.call(v,z)){var j=v[z];if(j!=null)switch(z){case"children":E=j;break;case"dangerouslySetInnerHTML":_=j;break;default:Rt(h,z,j)}}return h.push(">"),Le(h,_,E),E}function fo(h,v,E){h.push(Cn(E));var _=E=null,z;for(z in v)if(ie.call(v,z)){var j=v[z];if(j!=null)switch(z){case"children":E=j;break;case"dangerouslySetInnerHTML":_=j;break;default:Rt(h,z,j)}}return h.push(">"),Le(h,_,E),typeof E=="string"?(h.push(J(E)),null):E}var ho=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,xa=new Map;function Cn(h){var v=xa.get(h);if(v===void 0){if(!ho.test(h))throw Error(n(65,h));v="<"+h,xa.set(h,v)}return v}function ut(h,v,E,_,z,j,re,Re,ge){switch(v){case"div":case"span":case"svg":case"path":break;case"a":h.push(Cn("a"));var Te=null,Ne=null,Ae;for(Ae in E)if(ie.call(E,Ae)){var je=E[Ae];if(je!=null)switch(Ae){case"children":Te=je;break;case"dangerouslySetInnerHTML":Ne=je;break;case"href":je===""?Wt(h,"href",""):Rt(h,Ae,je);break;default:Rt(h,Ae,je)}}if(h.push(">"),Le(h,Ne,Te),typeof Te=="string"){h.push(J(Te));var yt=null}else yt=Te;return yt;case"g":case"p":case"li":break;case"select":h.push(Cn("select"));var Zt=null,Ot=null,Et;for(Et in E)if(ie.call(E,Et)){var Lt=E[Et];if(Lt!=null)switch(Et){case"children":Zt=Lt;break;case"dangerouslySetInnerHTML":Ot=Lt;break;case"defaultValue":case"value":break;default:Rt(h,Et,Lt)}}return h.push(">"),Le(h,Ot,Zt),Zt;case"option":var _t=Re.selectedValue;h.push(Cn("option"));var Wn=null,Jt=null,ln=null,yn=null,Ht;for(Ht in E)if(ie.call(E,Ht)){var Jn=E[Ht];if(Jn!=null)switch(Ht){case"children":Wn=Jn;break;case"selected":ln=Jn;break;case"dangerouslySetInnerHTML":yn=Jn;break;case"value":Jt=Jn;default:Rt(h,Ht,Jn)}}if(_t!=null){var fn=Jt!==null?""+Jt:Xe(Wn);if(G(_t)){for(var ti=0;ti<_t.length;ti++)if(""+_t[ti]===fn){h.push(' selected=""');break}}else""+_t===fn&&h.push(' selected=""')}else ln&&h.push(' selected=""');return h.push(">"),Le(h,yn,Wn),Wn;case"textarea":h.push(Cn("textarea"));var Sn=null,cn=null,hn=null,Bt;for(Bt in E)if(ie.call(E,Bt)){var gn=E[Bt];if(gn!=null)switch(Bt){case"children":hn=gn;break;case"value":Sn=gn;break;case"defaultValue":cn=gn;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:Rt(h,Bt,gn)}}if(Sn===null&&cn!==null&&(Sn=cn),h.push(">"),hn!=null){if(Sn!=null)throw Error(n(92));if(G(hn)){if(1<hn.length)throw Error(n(93));Sn=""+hn[0]}Sn=""+hn}return typeof Sn=="string"&&Sn[0]===`
|
|
31
|
+
`&&h.push(`
|
|
32
|
+
`),Sn!==null&&h.push(J(""+Sn)),null;case"input":h.push(Cn("input"));var Pr=null,Qt=null,nl=null,Ia=null,ni=null,vo=null,bo=null,mo=null,aa=null,Na;for(Na in E)if(ie.call(E,Na)){var Cr=E[Na];if(Cr!=null)switch(Na){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":Pr=Cr;break;case"formAction":Qt=Cr;break;case"formEncType":nl=Cr;break;case"formMethod":Ia=Cr;break;case"formTarget":ni=Cr;break;case"defaultChecked":aa=Cr;break;case"defaultValue":bo=Cr;break;case"checked":mo=Cr;break;case"value":vo=Cr;break;default:Rt(h,Na,Cr)}}var Ol=tr(h,_,z,Qt,nl,Ia,ni,Pr);return mo!==null?at(h,"checked",mo):aa!==null&&at(h,"checked",aa),vo!==null?Rt(h,"value",vo):bo!==null&&Rt(h,"value",bo),h.push("/>"),Ol!=null&&Ol.forEach(ct,h),null;case"button":h.push(Cn("button"));var Al=null,rc=null,Xc=null,xs=null,rl=null,ri=null,ic=null,ii;for(ii in E)if(ie.call(E,ii)){var no=E[ii];if(no!=null)switch(ii){case"children":Al=no;break;case"dangerouslySetInnerHTML":rc=no;break;case"name":Xc=no;break;case"formAction":xs=no;break;case"formEncType":rl=no;break;case"formMethod":ri=no;break;case"formTarget":ic=no;break;default:Rt(h,ii,no)}}var Fa=tr(h,_,z,xs,rl,ri,ic,Xc);if(h.push(">"),Fa!=null&&Fa.forEach(ct,h),Le(h,rc,Al),typeof Al=="string"){h.push(J(Al));var oc=null}else oc=Al;return oc;case"form":h.push(Cn("form"));var Da=null,Zc=null,gr=null,ac=null,il=null,Ss=null,Il;for(Il in E)if(ie.call(E,Il)){var lr=E[Il];if(lr!=null)switch(Il){case"children":Da=lr;break;case"dangerouslySetInnerHTML":Zc=lr;break;case"action":gr=lr;break;case"encType":ac=lr;break;case"method":il=lr;break;case"target":Ss=lr;break;default:Rt(h,Il,lr)}}var ro=null,Kt=null;if(typeof gr=="function"){var La=un(_,gr);La!==null?(gr=La.action||"",ac=La.encType,il=La.method,Ss=La.target,ro=La.data,Kt=La.name):(h.push(" ","action",'="',Dt,'"'),Ss=il=ac=gr=null,Pt(_,z))}if(gr!=null&&Rt(h,"action",gr),ac!=null&&Rt(h,"encType",ac),il!=null&&Rt(h,"method",il),Ss!=null&&Rt(h,"target",Ss),h.push(">"),Kt!==null&&(h.push('<input type="hidden"'),Wt(h,"name",Kt),h.push("/>"),ro!=null&&ro.forEach(ct,h)),Le(h,Zc,Da),typeof Da=="string"){h.push(J(Da));var Es=null}else Es=Da;return Es;case"menuitem":h.push(Cn("menuitem"));for(var ol in E)if(ie.call(E,ol)){var Kn=E[ol];if(Kn!=null)switch(ol){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:Rt(h,ol,Kn)}}return h.push(">"),null;case"object":h.push(Cn("object"));var Mi=null,al=null,Nl;for(Nl in E)if(ie.call(E,Nl)){var yo=E[Nl];if(yo!=null)switch(Nl){case"children":Mi=yo;break;case"dangerouslySetInnerHTML":al=yo;break;case"data":var Gr=Q(""+yo);if(Gr==="")break;h.push(" ","data",'="',J(Gr),'"');break;default:Rt(h,Nl,yo)}}if(h.push(">"),Le(h,al,Mi),typeof Mi=="string"){h.push(J(Mi));var Cs=null}else Cs=Mi;return Cs;case"title":var oi=Re.tagScope&1,Bu=Re.tagScope&4;if(Re.insertionMode===4||oi||E.itemProp!=null)var Fl=uo(h,E);else Bu?Fl=null:(uo(z.hoistableChunks,E),Fl=void 0);return Fl;case"link":var lc=Re.tagScope&1,Jc=Re.tagScope&4,Kc=E.rel,la=E.href,Dl=E.precedence;if(Re.insertionMode===4||lc||E.itemProp!=null||typeof Kc!="string"||typeof la!="string"||la===""){$e(h,E);var Ll=null}else if(E.rel==="stylesheet")if(typeof Dl!="string"||E.disabled!=null||E.onLoad||E.onError)Ll=$e(h,E);else{var ai=z.styles.get(Dl),sc=_.styleResources.hasOwnProperty(la)?_.styleResources[la]:void 0;if(sc!==null){_.styleResources[la]=null,ai||(ai={precedence:J(Dl),rules:[],hrefs:[],sheets:new Map},z.styles.set(Dl,ai));var cc={state:0,props:$({},E,{"data-precedence":E.precedence,precedence:null})};if(sc){sc.length===2&&Fc(cc.props,sc);var zu=z.preloads.stylesheets.get(la);zu&&0<zu.length?zu.length=0:cc.state=1}ai.sheets.set(la,cc),re&&re.stylesheets.add(cc)}else if(ai){var Hu=ai.sheets.get(la);Hu&&re&&re.stylesheets.add(Hu)}ge&&h.push("<!-- -->"),Ll=null}else E.onLoad||E.onError?Ll=$e(h,E):(ge&&h.push("<!-- -->"),Ll=Jc?null:$e(z.hoistableChunks,E));return Ll;case"script":var Qc=Re.tagScope&1,Wu=E.async;if(typeof E.src!="string"||!E.src||!Wu||typeof Wu=="function"||typeof Wu=="symbol"||E.onLoad||E.onError||Re.insertionMode===4||Qc||E.itemProp!=null)var Uu=Fo(h,E);else{var pr=E.src;if(E.type==="module")var jc=_.moduleScriptResources,uc=z.preloads.moduleScripts;else jc=_.scriptResources,uc=z.preloads.scripts;var dc=jc.hasOwnProperty(pr)?jc[pr]:void 0;if(dc!==null){jc[pr]=null;var qc=E;if(dc){dc.length===2&&(qc=$({},E),Fc(qc,dc));var Gu=uc.get(pr);Gu&&(Gu.length=0)}var $c=[];z.scripts.add($c),Fo($c,qc)}ge&&h.push("<!-- -->"),Uu=null}return Uu;case"style":var eu=Re.tagScope&1,ll=E.precedence,wo=E.href,bd=E.nonce;if(Re.insertionMode===4||eu||E.itemProp!=null||typeof ll!="string"||typeof wo!="string"||wo===""){h.push(Cn("style"));var Bl=null,fc=null,Yo;for(Yo in E)if(ie.call(E,Yo)){var Ts=E[Yo];if(Ts!=null)switch(Yo){case"children":Bl=Ts;break;case"dangerouslySetInnerHTML":fc=Ts;break;default:Rt(h,Yo,Ts)}}h.push(">");var sl=Array.isArray(Bl)?2>Bl.length?Bl[0]:null:Bl;typeof sl!="function"&&typeof sl!="symbol"&&sl!==null&&sl!==void 0&&h.push((""+sl).replace(nr,zr)),Le(h,fc,Bl),h.push(ht("style"));var hc=null}else{var cl=z.styles.get(ll);if((_.styleResources.hasOwnProperty(wo)?_.styleResources[wo]:void 0)!==null){_.styleResources[wo]=null,cl||(cl={precedence:J(ll),rules:[],hrefs:[],sheets:new Map},z.styles.set(ll,cl));var md=z.nonce.style;if(!md||md===bd){cl.hrefs.push(J(wo));var yd=cl.rules,Vo=null,ks=null,io;for(io in E)if(ie.call(E,io)){var ul=E[io];if(ul!=null)switch(io){case"children":Vo=ul;break;case"dangerouslySetInnerHTML":ks=ul}}var zl=Array.isArray(Vo)?2>Vo.length?Vo[0]:null:Vo;typeof zl!="function"&&typeof zl!="symbol"&&zl!==null&&zl!==void 0&&yd.push((""+zl).replace(nr,zr)),Le(yd,ks,Vo)}}cl&&re&&re.styles.add(cl),ge&&h.push("<!-- -->"),hc=void 0}return hc;case"meta":var xo=Re.tagScope&1,Yu=Re.tagScope&4;if(Re.insertionMode===4||xo||E.itemProp!=null)var wd=$r(h,E,"meta");else ge&&h.push("<!-- -->"),wd=Yu?null:typeof E.charSet=="string"?$r(z.charsetChunks,E,"meta"):E.name==="viewport"?$r(z.viewportChunks,E,"meta"):$r(z.hoistableChunks,E,"meta");return wd;case"listing":case"pre":h.push(Cn(v));var Rs=null,f=null,g;for(g in E)if(ie.call(E,g)){var x=E[g];if(x!=null)switch(g){case"children":Rs=x;break;case"dangerouslySetInnerHTML":f=x;break;default:Rt(h,g,x)}}if(h.push(">"),f!=null){if(Rs!=null)throw Error(n(60));if(typeof f!="object"||!("__html"in f))throw Error(n(61));var P=f.__html;P!=null&&(typeof P=="string"&&0<P.length&&P[0]===`
|
|
33
|
+
`?h.push(`
|
|
34
|
+
`,P):h.push(""+P))}return typeof Rs=="string"&&Rs[0]===`
|
|
35
|
+
`&&h.push(`
|
|
36
|
+
`),Rs;case"img":var F=Re.tagScope&3,Z=E.src,q=E.srcSet;if(!(E.loading==="lazy"||!Z&&!q||typeof Z!="string"&&Z!=null||typeof q!="string"&&q!=null||E.fetchPriority==="low"||F)&&(typeof Z!="string"||Z[4]!==":"||Z[0]!=="d"&&Z[0]!=="D"||Z[1]!=="a"&&Z[1]!=="A"||Z[2]!=="t"&&Z[2]!=="T"||Z[3]!=="a"&&Z[3]!=="A")&&(typeof q!="string"||q[4]!==":"||q[0]!=="d"&&q[0]!=="D"||q[1]!=="a"&&q[1]!=="A"||q[2]!=="t"&&q[2]!=="T"||q[3]!=="a"&&q[3]!=="A")){re!==null&&Re.tagScope&64&&(re.suspenseyImages=!0);var ye=typeof E.sizes=="string"?E.sizes:void 0,ce=q?q+`
|
|
37
|
+
`+(ye||""):Z,we=z.preloads.images,ke=we.get(ce);if(ke)(E.fetchPriority==="high"||10>z.highImagePreloads.size)&&(we.delete(ce),z.highImagePreloads.add(ke));else if(!_.imageResources.hasOwnProperty(ce)){_.imageResources[ce]=rt;var _e=E.crossOrigin,nt=typeof _e=="string"?_e==="use-credentials"?_e:"":void 0,et=z.headers,rn;et&&0<et.remainingCapacity&&typeof E.srcSet!="string"&&(E.fetchPriority==="high"||500>et.highImagePreloads.length)&&(rn=Bn(Z,"image",{imageSrcSet:E.srcSet,imageSizes:E.sizes,crossOrigin:nt,integrity:E.integrity,nonce:E.nonce,type:E.type,fetchPriority:E.fetchPriority,referrerPolicy:E.refererPolicy}),0<=(et.remainingCapacity-=rn.length+2))?(z.resets.image[ce]=rt,et.highImagePreloads&&(et.highImagePreloads+=", "),et.highImagePreloads+=rn):(ke=[],$e(ke,{rel:"preload",as:"image",href:q?void 0:Z,imageSrcSet:q,imageSizes:ye,crossOrigin:nt,integrity:E.integrity,type:E.type,fetchPriority:E.fetchPriority,referrerPolicy:E.referrerPolicy}),E.fetchPriority==="high"||10>z.highImagePreloads.size?z.highImagePreloads.add(ke):(z.bulkPreloads.add(ke),we.set(ce,ke)))}}return $r(h,E,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return $r(h,E,v);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>Re.insertionMode){var At=j||z.preamble;if(At.headChunks)throw Error(n(545,"`<head>`"));j!==null&&h.push("<!--head-->"),At.headChunks=[];var on=Do(At.headChunks,E,"head")}else on=fo(h,E,"head");return on;case"body":if(2>Re.insertionMode){var Qn=j||z.preamble;if(Qn.bodyChunks)throw Error(n(545,"`<body>`"));j!==null&&h.push("<!--body-->"),Qn.bodyChunks=[];var Dn=Do(Qn.bodyChunks,E,"body")}else Dn=fo(h,E,"body");return Dn;case"html":if(Re.insertionMode===0){var Yr=j||z.preamble;if(Yr.htmlChunks)throw Error(n(545,"`<html>`"));j!==null&&h.push("<!--html-->"),Yr.htmlChunks=[""];var Di=Do(Yr.htmlChunks,E,"html")}else Di=fo(h,E,"html");return Di;default:if(v.indexOf("-")!==-1){h.push(Cn(v));var So=null,It=null,li;for(li in E)if(ie.call(E,li)){var sr=E[li];if(sr!=null){var _i=li;switch(li){case"children":So=sr;break;case"dangerouslySetInnerHTML":It=sr;break;case"style":Ft(h,sr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":_i="class";default:if(ve(li)&&typeof sr!="function"&&typeof sr!="symbol"&&sr!==!1){if(sr===!0)sr="";else if(typeof sr=="object")continue;h.push(" ",_i,'="',J(sr),'"')}}}}return h.push(">"),Le(h,It,So),So}}return fo(h,E,v)}var en=new Map;function ht(h){var v=en.get(h);return v===void 0&&(v="</"+h+">",en.set(h,v)),v}function Vt(h,v){h=h.preamble,h.htmlChunks===null&&v.htmlChunks&&(h.htmlChunks=v.htmlChunks),h.headChunks===null&&v.headChunks&&(h.headChunks=v.headChunks),h.bodyChunks===null&&v.bodyChunks&&(h.bodyChunks=v.bodyChunks)}function Rr(h,v){v=v.bootstrapChunks;for(var E=0;E<v.length-1;E++)h.push(v[E]);return E<v.length?(E=v[E],v.length=0,h.push(E)):!0}function Tt(h,v,E){if(h.push('<!--$?--><template id="'),E===null)throw Error(n(395));return h.push(v.boundaryPrefix),v=E.toString(16),h.push(v),h.push('"></template>')}function wi(h,v,E,_){switch(E.insertionMode){case 0:case 1:case 3:case 2:return h.push('<div hidden id="'),h.push(v.segmentPrefix),v=_.toString(16),h.push(v),h.push('">');case 4:return h.push('<svg aria-hidden="true" style="display:none" id="'),h.push(v.segmentPrefix),v=_.toString(16),h.push(v),h.push('">');case 5:return h.push('<math aria-hidden="true" style="display:none" id="'),h.push(v.segmentPrefix),v=_.toString(16),h.push(v),h.push('">');case 6:return h.push('<table hidden id="'),h.push(v.segmentPrefix),v=_.toString(16),h.push(v),h.push('">');case 7:return h.push('<table hidden><tbody id="'),h.push(v.segmentPrefix),v=_.toString(16),h.push(v),h.push('">');case 8:return h.push('<table hidden><tr id="'),h.push(v.segmentPrefix),v=_.toString(16),h.push(v),h.push('">');case 9:return h.push('<table hidden><colgroup id="'),h.push(v.segmentPrefix),v=_.toString(16),h.push(v),h.push('">');default:throw Error(n(397))}}function xi(h,v){switch(v.insertionMode){case 0:case 1:case 3:case 2:return h.push("</div>");case 4:return h.push("</svg>");case 5:return h.push("</math>");case 6:return h.push("</table>");case 7:return h.push("</tbody></table>");case 8:return h.push("</tr></table>");case 9:return h.push("</colgroup></table>");default:throw Error(n(397))}}var go=/[<\u2028\u2029]/g;function tn(h){return JSON.stringify(h).replace(go,function(v){switch(v){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ur=/[&><\u2028\u2029]/g;function po(h){return JSON.stringify(h).replace(ur,function(v){switch(v){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Ji=!1,ar=!0;function ei(h){var v=h.rules,E=h.hrefs,_=0;if(E.length){for(this.push(Fe.startInlineStyle),this.push(' media="not all" data-precedence="'),this.push(h.precedence),this.push('" data-href="');_<E.length-1;_++)this.push(E[_]),this.push(" ");for(this.push(E[_]),this.push('">'),_=0;_<v.length;_++)this.push(v[_]);ar=this.push("</style>"),Ji=!0,v.length=0,E.length=0}}function xn(h){return h.state!==2?Ji=!0:!1}function bl(h,v,E){return Ji=!1,ar=!0,Fe=E,v.styles.forEach(ei,h),Fe=null,v.stylesheets.forEach(xn),Ji&&(E.stylesToHoist=!0),ar}function Si(h){for(var v=0;v<h.length;v++)this.push(h[v]);h.length=0}var an=[];function Ic(h){$e(an,h.props);for(var v=0;v<an.length;v++)this.push(an[v]);an.length=0,h.state=2}function Xt(h){var v=0<h.sheets.size;h.sheets.forEach(Ic,this),h.sheets.clear();var E=h.rules,_=h.hrefs;if(!v||_.length){if(this.push(Fe.startInlineStyle),this.push(' data-precedence="'),this.push(h.precedence),h=0,_.length){for(this.push('" data-href="');h<_.length-1;h++)this.push(_[h]),this.push(" ");this.push(_[h])}for(this.push('">'),h=0;h<E.length;h++)this.push(E[h]);this.push("</style>"),E.length=0,_.length=0}}function ml(h){if(h.state===0){h.state=1;var v=h.props;for($e(an,{rel:"preload",as:"style",href:h.props.href,crossOrigin:v.crossOrigin,fetchPriority:v.fetchPriority,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy}),h=0;h<an.length;h++)this.push(an[h]);an.length=0}}function Va(h){h.sheets.forEach(ml,this),h.sheets.clear()}function yl(h,v){!(v.instructions&32)&&(v.instructions|=32,h.push(' id="',J("_"+v.idPrefix+"R_"),'"'))}function Ki(h,v){h.push("[");var E="[";v.stylesheets.forEach(function(_){if(_.state!==2)if(_.state===3)h.push(E),_=po(""+_.props.href),h.push(_),h.push("]"),E=",[";else{h.push(E);var z=_.props["data-precedence"],j=_.props,re=Q(""+_.props.href);re=po(re),h.push(re),z=""+z,h.push(","),z=po(z),h.push(z);for(var Re in j)if(ie.call(j,Re)&&(z=j[Re],z!=null))switch(Re){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:mn(h,Re,z)}h.push("]"),E=",[",_.state=3}}),h.push("]")}function mn(h,v,E){var _=v.toLowerCase();switch(typeof E){case"function":case"symbol":return}switch(v){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":_="class",v=""+E;break;case"hidden":if(E===!1)return;v="";break;case"src":case"href":E=Q(E),v=""+E;break;default:if(2<v.length&&(v[0]==="o"||v[0]==="O")&&(v[1]==="n"||v[1]==="N")||!ve(v))return;v=""+E}h.push(","),_=po(_),h.push(_),h.push(","),_=po(v),h.push(_)}function nn(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function Je(h){var v=hr||null;if(v){var E=v.resumableState,_=v.renderState;if(typeof h=="string"&&h){if(!E.dnsResources.hasOwnProperty(h)){E.dnsResources[h]=null,E=_.headers;var z,j;(j=E&&0<E.remainingCapacity)&&(j=(z="<"+(""+h).replace(Dc,ss)+">; rel=dns-prefetch",0<=(E.remainingCapacity-=z.length+2))),j?(_.resets.dns[h]=null,E.preconnects&&(E.preconnects+=", "),E.preconnects+=z):(z=[],$e(z,{href:h,rel:"dns-prefetch"}),_.preconnects.add(z))}ws(v)}}else Oe.D(h)}function xt(h,v){var E=hr||null;if(E){var _=E.resumableState,z=E.renderState;if(typeof h=="string"&&h){var j=v==="use-credentials"?"credentials":typeof v=="string"?"anonymous":"default";if(!_.connectResources[j].hasOwnProperty(h)){_.connectResources[j][h]=null,_=z.headers;var re,Re;if(Re=_&&0<_.remainingCapacity){if(Re="<"+(""+h).replace(Dc,ss)+">; rel=preconnect",typeof v=="string"){var ge=(""+v).replace(ji,wl);Re+='; crossorigin="'+ge+'"'}Re=(re=Re,0<=(_.remainingCapacity-=re.length+2))}Re?(z.resets.connect[j][h]=null,_.preconnects&&(_.preconnects+=", "),_.preconnects+=re):(j=[],$e(j,{rel:"preconnect",href:h,crossOrigin:v}),z.preconnects.add(j))}ws(E)}}else Oe.C(h,v)}function Xn(h,v,E){var _=hr||null;if(_){var z=_.resumableState,j=_.renderState;if(v&&h){switch(v){case"image":if(E)var re=E.imageSrcSet,Re=E.imageSizes,ge=E.fetchPriority;var Te=re?re+`
|
|
38
|
+
`+(Re||""):h;if(z.imageResources.hasOwnProperty(Te))return;z.imageResources[Te]=rt,z=j.headers;var Ne;z&&0<z.remainingCapacity&&typeof re!="string"&&ge==="high"&&(Ne=Bn(h,v,E),0<=(z.remainingCapacity-=Ne.length+2))?(j.resets.image[Te]=rt,z.highImagePreloads&&(z.highImagePreloads+=", "),z.highImagePreloads+=Ne):(z=[],$e(z,$({rel:"preload",href:re?void 0:h,as:v},E)),ge==="high"?j.highImagePreloads.add(z):(j.bulkPreloads.add(z),j.preloads.images.set(Te,z)));break;case"style":if(z.styleResources.hasOwnProperty(h))return;re=[],$e(re,$({rel:"preload",href:h,as:v},E)),z.styleResources[h]=!E||typeof E.crossOrigin!="string"&&typeof E.integrity!="string"?rt:[E.crossOrigin,E.integrity],j.preloads.stylesheets.set(h,re),j.bulkPreloads.add(re);break;case"script":if(z.scriptResources.hasOwnProperty(h))return;re=[],j.preloads.scripts.set(h,re),j.bulkPreloads.add(re),$e(re,$({rel:"preload",href:h,as:v},E)),z.scriptResources[h]=!E||typeof E.crossOrigin!="string"&&typeof E.integrity!="string"?rt:[E.crossOrigin,E.integrity];break;default:if(z.unknownResources.hasOwnProperty(v)){if(re=z.unknownResources[v],re.hasOwnProperty(h))return}else re={},z.unknownResources[v]=re;if(re[h]=rt,(z=j.headers)&&0<z.remainingCapacity&&v==="font"&&(Te=Bn(h,v,E),0<=(z.remainingCapacity-=Te.length+2)))j.resets.font[h]=rt,z.fontPreloads&&(z.fontPreloads+=", "),z.fontPreloads+=Te;else switch(z=[],h=$({rel:"preload",href:h,as:v},E),$e(z,h),v){case"font":j.fontPreloads.add(z);break;default:j.bulkPreloads.add(z)}}ws(_)}}else Oe.L(h,v,E)}function Qi(h,v){var E=hr||null;if(E){var _=E.resumableState,z=E.renderState;if(h){var j=v&&typeof v.as=="string"?v.as:"script";switch(j){case"script":if(_.moduleScriptResources.hasOwnProperty(h))return;j=[],_.moduleScriptResources[h]=!v||typeof v.crossOrigin!="string"&&typeof v.integrity!="string"?rt:[v.crossOrigin,v.integrity],z.preloads.moduleScripts.set(h,j);break;default:if(_.moduleUnknownResources.hasOwnProperty(j)){var re=_.unknownResources[j];if(re.hasOwnProperty(h))return}else re={},_.moduleUnknownResources[j]=re;j=[],re[h]=rt}$e(j,$({rel:"modulepreload",href:h},v)),z.bulkPreloads.add(j),ws(E)}}else Oe.m(h,v)}function Hr(h,v,E){var _=hr||null;if(_){var z=_.resumableState,j=_.renderState;if(h){v=v||"default";var re=j.styles.get(v),Re=z.styleResources.hasOwnProperty(h)?z.styleResources[h]:void 0;Re!==null&&(z.styleResources[h]=null,re||(re={precedence:J(v),rules:[],hrefs:[],sheets:new Map},j.styles.set(v,re)),v={state:0,props:$({rel:"stylesheet",href:h,"data-precedence":v},E)},Re&&(Re.length===2&&Fc(v.props,Re),(j=j.preloads.stylesheets.get(h))&&0<j.length?j.length=0:v.state=1),re.sheets.set(h,v),ws(_))}}else Oe.S(h,v,E)}function Nc(h,v){var E=hr||null;if(E){var _=E.resumableState,z=E.renderState;if(h){var j=_.scriptResources.hasOwnProperty(h)?_.scriptResources[h]:void 0;j!==null&&(_.scriptResources[h]=null,v=$({src:h,async:!0},v),j&&(j.length===2&&Fc(v,j),h=z.preloads.scripts.get(h))&&(h.length=0),h=[],z.scripts.add(h),Fo(h,v),ws(E))}}else Oe.X(h,v)}function Ru(h,v){var E=hr||null;if(E){var _=E.resumableState,z=E.renderState;if(h){var j=_.moduleScriptResources.hasOwnProperty(h)?_.moduleScriptResources[h]:void 0;j!==null&&(_.moduleScriptResources[h]=null,v=$({src:h,type:"module",async:!0},v),j&&(j.length===2&&Fc(v,j),h=z.preloads.moduleScripts.get(h))&&(h.length=0),h=[],z.scripts.add(h),Fo(h,v),ws(E))}}else Oe.M(h,v)}function Fc(h,v){h.crossOrigin==null&&(h.crossOrigin=v[0]),h.integrity==null&&(h.integrity=v[1])}function Bn(h,v,E){h=(""+h).replace(Dc,ss),v=(""+v).replace(ji,wl),v="<"+h+'>; rel=preload; as="'+v+'"';for(var _ in E)ie.call(E,_)&&(h=E[_],typeof h=="string"&&(v+="; "+_.toLowerCase()+'="'+(""+h).replace(ji,wl)+'"'));return v}var Dc=/[<>\r\n]/g;function ss(h){switch(h){case"<":return"%3C";case">":return"%3E";case`
|
|
39
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var ji=/["';,\r\n]/g;function wl(h){switch(h){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
40
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function dd(h){this.styles.add(h)}function fd(h){this.stylesheets.add(h)}function cs(h,v){v.styles.forEach(dd,h),v.stylesheets.forEach(fd,h),v.suspenseyImages&&(h.suspenseyImages=!0)}function us(h,v){var E=h.idPrefix,_=[],z=h.bootstrapScriptContent,j=h.bootstrapScripts,re=h.bootstrapModules;z!==void 0&&(_.push("<script"),yl(_,h),_.push(">",(""+z).replace(Ye,Ve),"<\/script>")),z=E+"P:";var Re=E+"S:";E+="B:";var ge=new Set,Te=new Set,Ne=new Set,Ae=new Map,je=new Set,yt=new Set,Zt=new Set,Ot={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(j!==void 0)for(var Et=0;Et<j.length;Et++){var Lt=j[Et],_t,Wn=void 0,Jt=void 0,ln={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};typeof Lt=="string"?ln.href=_t=Lt:(ln.href=_t=Lt.src,ln.integrity=Jt=typeof Lt.integrity=="string"?Lt.integrity:void 0,ln.crossOrigin=Wn=typeof Lt=="string"||Lt.crossOrigin==null?void 0:Lt.crossOrigin==="use-credentials"?"use-credentials":""),Lt=h;var yn=_t;Lt.scriptResources[yn]=null,Lt.moduleScriptResources[yn]=null,Lt=[],$e(Lt,ln),je.add(Lt),_.push('<script src="',J(_t),'"'),typeof Jt=="string"&&_.push(' integrity="',J(Jt),'"'),typeof Wn=="string"&&_.push(' crossorigin="',J(Wn),'"'),yl(_,h),_.push(' async=""><\/script>')}if(re!==void 0)for(j=0;j<re.length;j++)ln=re[j],Wn=_t=void 0,Jt={rel:"modulepreload",fetchPriority:"low",nonce:void 0},typeof ln=="string"?Jt.href=Et=ln:(Jt.href=Et=ln.src,Jt.integrity=Wn=typeof ln.integrity=="string"?ln.integrity:void 0,Jt.crossOrigin=_t=typeof ln=="string"||ln.crossOrigin==null?void 0:ln.crossOrigin==="use-credentials"?"use-credentials":""),ln=h,Lt=Et,ln.scriptResources[Lt]=null,ln.moduleScriptResources[Lt]=null,ln=[],$e(ln,Jt),je.add(ln),_.push('<script type="module" src="',J(Et),'"'),typeof Wn=="string"&&_.push(' integrity="',J(Wn),'"'),typeof _t=="string"&&_.push(' crossorigin="',J(_t),'"'),yl(_,h),_.push(' async=""><\/script>');return{placeholderPrefix:z,segmentPrefix:Re,boundaryPrefix:E,startInlineScript:"<script",startInlineStyle:"<style",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:_,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:ge,fontPreloads:Te,highImagePreloads:Ne,styles:Ae,bootstrapScripts:je,scripts:yt,bulkPreloads:Zt,preloads:Ot,nonce:{script:void 0,style:void 0},stylesToHoist:!1,generateStaticMarkup:v}}function qo(h,v,E,_){return E.generateStaticMarkup?(h.push(J(v)),!1):(v===""?h=_:(_&&h.push("<!-- -->"),h.push(J(v)),h=!0),h)}function $o(h,v,E,_){v.generateStaticMarkup||E&&_&&h.push("<!-- -->")}var Lc=Function.prototype.bind,Ys=Symbol.for("react.client.reference");function Vs(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===Ys?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case o:return"Fragment";case u:return"Profiler";case l:return"StrictMode";case w:return"Suspense";case C:return"SuspenseList";case W:return"Activity"}if(typeof h=="object")switch(h.$$typeof){case i:return"Portal";case y:return h.displayName||"Context";case p:return(h._context.displayName||"Context")+".Consumer";case S:var v=h.render;return h=h.displayName,h||(h=v.displayName||v.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case M:return v=h.displayName||null,v!==null?v:Vs(h.type)||"Memo";case O:v=h._payload,h=h._init;try{return Vs(h(v))}catch{}}return null}var Sr={},ds=null;function Xs(h,v){if(h!==v){h.context._currentValue2=h.parentValue,h=h.parent;var E=v.parent;if(h===null){if(E!==null)throw Error(n(401))}else{if(E===null)throw Error(n(401));Xs(h,E)}v.context._currentValue2=v.value}}function Bc(h){h.context._currentValue2=h.parentValue,h=h.parent,h!==null&&Bc(h)}function ea(h){var v=h.parent;v!==null&&ea(v),h.context._currentValue2=h.value}function Zs(h,v){if(h.context._currentValue2=h.parentValue,h=h.parent,h===null)throw Error(n(402));h.depth===v.depth?Xs(h,v):Zs(h,v)}function Ei(h,v){var E=v.parent;if(E===null)throw Error(n(402));h.depth===E.depth?Xs(h,E):Ei(h,E),v.context._currentValue2=v.value}function Lo(h){var v=ds;v!==h&&(v===null?ea(h):h===null?Bc(v):v.depth===h.depth?Xs(v,h):v.depth>h.depth?Zs(v,h):Ei(v,h),ds=h)}var Mu={enqueueSetState:function(h,v){h=h._reactInternals,h.queue!==null&&h.queue.push(v)},enqueueReplaceState:function(h,v){h=h._reactInternals,h.replace=!0,h.queue=[v]},enqueueForceUpdate:function(){}},Js={id:1,overflow:""};function Ci(h,v,E){var _=h.id;h=h.overflow;var z=32-Ks(_)-1;_&=~(1<<z),E+=1;var j=32-Ks(v)+z;if(30<j){var re=z-z%5;return j=(_&(1<<re)-1).toString(32),_>>=re,z-=re,{id:1<<32-Ks(v)+z|E<<z|_,overflow:j+h}}return{id:1<<j|E<<z|_,overflow:h}}var Ks=Math.clz32?Math.clz32:Ti,Xa=Math.log,fs=Math.LN2;function Ti(h){return h>>>=0,h===0?32:31-(Xa(h)/fs|0)|0}function Mr(){}var Nn=Error(n(460));function _u(h,v,E){switch(E=h[E],E===void 0?h.push(v):E!==v&&(v.then(Mr,Mr),v=E),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(Mr,Mr):(h=v,h.status="pending",h.then(function(_){if(v.status==="pending"){var z=v;z.status="fulfilled",z.value=_}},function(_){if(v.status==="pending"){var z=v;z.status="rejected",z.reason=_}})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}throw Sa=v,Nn}}var Sa=null;function Bo(){if(Sa===null)throw Error(n(459));var h=Sa;return Sa=null,h}function Pu(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}var Ea=typeof Object.is=="function"?Object.is:Pu,ta=null,hs=null,Ca=null,Ta=null,gs=null,zt=null,zo=!1,dr=!1,na=0,Er=0,Za=-1,xl=0,ra=null,ka=null,fr=0;function Ra(){if(ta===null)throw Error(n(321));return ta}function Ma(){if(0<fr)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Sl(){return zt===null?gs===null?(zo=!1,gs=zt=Ma()):(zo=!0,zt=gs):zt.next===null?(zo=!1,zt=zt.next=Ma()):(zo=!0,zt=zt.next),zt}function Ja(){var h=ra;return ra=null,h}function El(){Ta=Ca=hs=ta=null,dr=!1,gs=null,fr=0,zt=ka=null}function ki(h,v){return typeof v=="function"?v(h):v}function Cl(h,v,E){if(ta=Ra(),zt=Sl(),zo){var _=zt.queue;if(v=_.dispatch,ka!==null&&(E=ka.get(_),E!==void 0)){ka.delete(_),_=zt.memoizedState;do _=h(_,E.action),E=E.next;while(E!==null);return zt.memoizedState=_,[_,v]}return[zt.memoizedState,v]}return h=h===ki?typeof v=="function"?v():v:E!==void 0?E(v):v,zt.memoizedState=h,h=zt.queue={last:null,dispatch:null},h=h.dispatch=Ou.bind(null,ta,h),[zt.memoizedState,h]}function Ho(h,v){if(ta=Ra(),zt=Sl(),v=v===void 0?null:v,zt!==null){var E=zt.memoizedState;if(E!==null&&v!==null){var _=E[1];e:if(_===null)_=!1;else{for(var z=0;z<_.length&&z<v.length;z++)if(!Ea(v[z],_[z])){_=!1;break e}_=!0}if(_)return E[0]}}return h=h(),zt.memoizedState=[h,v],h}function Ou(h,v,E){if(25<=fr)throw Error(n(301));if(h===ta)if(dr=!0,h={action:E,next:null},ka===null&&(ka=new Map),E=ka.get(v),E===void 0)ka.set(v,h);else{for(v=E;v.next!==null;)v=v.next;v.next=h}}function Au(){throw Error(n(440))}function Iu(){throw Error(n(394))}function ps(){throw Error(n(479))}function vs(h,v,E){Ra();var _=Er++,z=Ca;if(typeof h.$$FORM_ACTION=="function"){var j=null,re=Ta;z=z.formState;var Re=h.$$IS_SIGNATURE_EQUAL;if(z!==null&&typeof Re=="function"){var ge=z[1];Re.call(h,z[2],z[3])&&(j=E!==void 0?"p"+E:"k"+ne(JSON.stringify([re,null,_]),0),ge===j&&(Za=_,v=z[0]))}var Te=h.bind(null,v);return h=function(Ae){Te(Ae)},typeof Te.$$FORM_ACTION=="function"&&(h.$$FORM_ACTION=function(Ae){Ae=Te.$$FORM_ACTION(Ae),E!==void 0&&(E+="",Ae.action=E);var je=Ae.data;return je&&(j===null&&(j=E!==void 0?"p"+E:"k"+ne(JSON.stringify([re,null,_]),0)),je.append("$ACTION_KEY",j)),Ae}),[v,h,!1]}var Ne=h.bind(null,v);return[v,function(Ae){Ne(Ae)},!1]}function bs(h){var v=xl;return xl+=1,ra===null&&(ra=[]),_u(ra,h,v)}function _r(){throw Error(n(393))}var hd={readContext:function(h){return h._currentValue2},use:function(h){if(h!==null&&typeof h=="object"){if(typeof h.then=="function")return bs(h);if(h.$$typeof===y)return h._currentValue2}throw Error(n(438,String(h)))},useContext:function(h){return Ra(),h._currentValue2},useMemo:Ho,useReducer:Cl,useRef:function(h){ta=Ra(),zt=Sl();var v=zt.memoizedState;return v===null?(h={current:h},zt.memoizedState=h):v},useState:function(h){return Cl(ki,h)},useInsertionEffect:Mr,useLayoutEffect:Mr,useCallback:function(h,v){return Ho(function(){return h},v)},useImperativeHandle:Mr,useEffect:Mr,useDebugValue:Mr,useDeferredValue:function(h,v){return Ra(),v!==void 0?v:h},useTransition:function(){return Ra(),[!1,Iu]},useId:function(){var h=hs.treeContext,v=h.overflow;h=h.id,h=(h&~(1<<32-Ks(h)-1)).toString(32)+v;var E=Ka;if(E===null)throw Error(n(404));return v=na++,h="_"+E.idPrefix+"R_"+h,0<v&&(h+="H"+v.toString(32)),h+"_"},useSyncExternalStore:function(h,v,E){if(E===void 0)throw Error(n(407));return E()},useOptimistic:function(h){return Ra(),[h,ps]},useActionState:vs,useFormState:vs,useHostTransitionStatus:function(){return Ra(),We},useMemoCache:function(h){for(var v=Array(h),E=0;E<h;E++)v[E]=B;return v},useCacheRefresh:function(){return _r},useEffectEvent:function(){return Au}},Ka=null,Qs={getCacheForType:function(){throw Error(n(248))},cacheSignal:function(){throw Error(n(248))}},zc,_a;function Qa(h){if(zc===void 0)try{throw Error()}catch(E){var v=E.stack.trim().match(/\n( *(at )?)/);zc=v&&v[1]||"",_a=-1<E.stack.indexOf(`
|
|
41
|
+
at`)?" (<anonymous>)":-1<E.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
42
|
+
`+zc+h+_a}var ms=!1;function Wo(h,v){if(!h||ms)return"";ms=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var _={DetermineComponentFrameRoot:function(){try{if(v){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(yt){var je=yt}Reflect.construct(h,[],Ae)}else{try{Ae.call()}catch(yt){je=yt}h.call(Ae.prototype)}}else{try{throw Error()}catch(yt){je=yt}(Ae=h())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(yt){if(yt&&je&&typeof yt.stack=="string")return[yt.stack,je.stack]}return[null,null]}};_.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var z=Object.getOwnPropertyDescriptor(_.DetermineComponentFrameRoot,"name");z&&z.configurable&&Object.defineProperty(_.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var j=_.DetermineComponentFrameRoot(),re=j[0],Re=j[1];if(re&&Re){var ge=re.split(`
|
|
43
|
+
`),Te=Re.split(`
|
|
44
|
+
`);for(z=_=0;_<ge.length&&!ge[_].includes("DetermineComponentFrameRoot");)_++;for(;z<Te.length&&!Te[z].includes("DetermineComponentFrameRoot");)z++;if(_===ge.length||z===Te.length)for(_=ge.length-1,z=Te.length-1;1<=_&&0<=z&&ge[_]!==Te[z];)z--;for(;1<=_&&0<=z;_--,z--)if(ge[_]!==Te[z]){if(_!==1||z!==1)do if(_--,z--,0>z||ge[_]!==Te[z]){var Ne=`
|
|
45
|
+
`+ge[_].replace(" at new "," at ");return h.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",h.displayName)),Ne}while(1<=_&&0<=z);break}}}finally{ms=!1,Error.prepareStackTrace=E}return(E=h?h.displayName||h.name:"")?Qa(E):""}function ja(h){if(typeof h=="string")return Qa(h);if(typeof h=="function")return h.prototype&&h.prototype.isReactComponent?Wo(h,!0):Wo(h,!1);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case S:return Wo(h.render,!1);case M:return Wo(h.type,!1);case O:var v=h,E=v._payload;v=v._init;try{h=v(E)}catch{return Qa("Lazy")}return ja(h)}if(typeof h.name=="string"){e:{E=h.name,v=h.env;var _=h.debugLocation;if(_!=null&&(h=Error.prepareStackTrace,Error.prepareStackTrace=void 0,_=_.stack,Error.prepareStackTrace=h,_.startsWith(`Error: react-stack-top-frame
|
|
46
|
+
`)&&(_=_.slice(29)),h=_.indexOf(`
|
|
47
|
+
`),h!==-1&&(_=_.slice(h+1)),h=_.indexOf("react_stack_bottom_frame"),h!==-1&&(h=_.lastIndexOf(`
|
|
48
|
+
`,h)),h=h!==-1?_=_.slice(0,h):"",_=h.lastIndexOf(`
|
|
49
|
+
`),h=_===-1?h:h.slice(_+1),h.indexOf(E)!==-1)){E=`
|
|
50
|
+
`+h;break e}E=Qa(E+(v?" ["+v+"]":""))}return E}}switch(h){case C:return Qa("SuspenseList");case w:return Qa("Suspense")}return""}function qa(h,v){return(500<v.byteSize||!1)&&v.contentPreamble===null}function Nu(h){if(typeof h=="object"&&h!==null&&typeof h.environmentName=="string"){var v=h.environmentName;h=[h].slice(0),typeof h[0]=="string"?h.splice(0,1,"[%s] "+h[0]," "+v+" "):h.splice(0,0,"[%s]"," "+v+" "),h.unshift(console),v=Lc.apply(console.error,h),v()}else console.error(h);return null}function Qd(h,v,E,_,z,j,re,Re,ge,Te,Ne){var Ae=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=h,this.renderState=v,this.rootFormatContext=E,this.progressiveChunkSize=_===void 0?12800:_,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=Ae,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=z===void 0?Nu:z,this.onPostpone=Te===void 0?Mr:Te,this.onAllReady=j===void 0?Mr:j,this.onShellReady=re===void 0?Mr:re,this.onShellError=Re===void 0?Mr:Re,this.onFatalError=ge===void 0?Mr:ge,this.formState=Ne===void 0?null:Ne}function Tl(h,v,E,_,z,j,re,Re,ge,Te,Ne,Ae){return v=new Qd(v,E,_,z,j,re,Re,ge,Te,Ne,Ae),E=qi(v,0,null,_,!1,!1),E.parentFlushed=!0,h=qs(v,null,h,-1,null,E,null,null,v.abortableTasks,null,_,null,Js,null,null),$i(h),v.pingedTasks.push(h),v}var hr=null;function ia(h,v){h.pingedTasks.push(v),h.pingedTasks.length===1&&(h.flushScheduled=h.destination!==null,pd(h))}function js(h,v,E,_,z){return E={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:v,completedSegments:[],byteSize:0,fallbackAbortableTasks:E,errorDigest:null,contentState:nn(),fallbackState:nn(),contentPreamble:_,fallbackPreamble:z,trackedContentKeyPath:null,trackedFallbackNode:null},v!==null&&(v.pendingTasks++,_=v.boundaries,_!==null&&(h.allPendingTasks++,E.pendingTasks++,_.push(E)),h=v.inheritedHoistables,h!==null&&cs(E.contentState,h)),E}function qs(h,v,E,_,z,j,re,Re,ge,Te,Ne,Ae,je,yt,Zt){h.allPendingTasks++,z===null?h.pendingRootTasks++:z.pendingTasks++,yt!==null&&yt.pendingTasks++;var Ot={replay:null,node:E,childIndex:_,ping:function(){return ia(h,Ot)},blockedBoundary:z,blockedSegment:j,blockedPreamble:re,hoistableState:Re,abortSet:ge,keyPath:Te,formatContext:Ne,context:Ae,treeContext:je,row:yt,componentStack:Zt,thenableState:v};return ge.add(Ot),Ot}function Hc(h,v,E,_,z,j,re,Re,ge,Te,Ne,Ae,je,yt){h.allPendingTasks++,j===null?h.pendingRootTasks++:j.pendingTasks++,je!==null&&je.pendingTasks++,E.pendingTasks++;var Zt={replay:E,node:_,childIndex:z,ping:function(){return ia(h,Zt)},blockedBoundary:j,blockedSegment:null,blockedPreamble:null,hoistableState:re,abortSet:Re,keyPath:ge,formatContext:Te,context:Ne,treeContext:Ae,row:je,componentStack:yt,thenableState:v};return Re.add(Zt),Zt}function qi(h,v,E,_,z,j){return{status:0,parentFlushed:!1,id:-1,index:v,chunks:[],children:[],preambleChildren:[],parentFormatContext:_,boundary:E,lastPushedText:z,textEmbedded:j}}function $i(h){var v=h.node;if(typeof v=="object"&&v!==null)switch(v.$$typeof){case r:h.componentStack={parent:h.componentStack,type:v.type}}}function Fi(h){return h===null?null:{parent:h.parent,type:"Suspense Fallback"}}function eo(h){var v={};return h&&Object.defineProperty(v,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var E="",_=h;do E+=ja(_.type),_=_.parent;while(_);var z=E}catch(j){z=`
|
|
51
|
+
Error generating stack: `+j.message+`
|
|
52
|
+
`+j.stack}return Object.defineProperty(v,"componentStack",{value:z}),z}}),v}function _n(h,v,E){if(h=h.onError,v=h(v,E),v==null||typeof v=="string")return v}function to(h,v){var E=h.onShellError,_=h.onFatalError;E(v),_(v),h.destination!==null?(h.status=14,h.destination.destroy(v)):(h.status=13,h.fatalError=v)}function zn(h,v){Uo(h,v.next,v.hoistables)}function Uo(h,v,E){for(;v!==null;){E!==null&&(cs(v.hoistables,E),v.inheritedHoistables=E);var _=v.boundaries;if(_!==null){v.boundaries=null;for(var z=0;z<_.length;z++){var j=_[z];E!==null&&cs(j.contentState,E),Oa(h,j,null,null)}}if(v.pendingTasks--,0<v.pendingTasks)break;E=v.hoistables,v=v.next}}function Wc(h,v){var E=v.boundaries;if(E!==null&&v.pendingTasks===E.length){for(var _=!0,z=0;z<E.length;z++){var j=E[z];if(j.pendingTasks!==1||j.parentFlushed||qa(h,j)){_=!1;break}}_&&Uo(h,v,v.hoistables)}}function Uc(h){var v={pendingTasks:1,boundaries:null,hoistables:nn(),inheritedHoistables:null,together:!1,next:null};return h!==null&&0<h.pendingTasks&&(v.pendingTasks++,v.boundaries=[],h.next=v),v}function Gc(h,v,E,_,z){var j=v.keyPath,re=v.treeContext,Re=v.row;v.keyPath=E,E=_.length;var ge=null;if(v.replay!==null){var Te=v.replay.slots;if(Te!==null&&typeof Te=="object")for(var Ne=0;Ne<E;Ne++){var Ae=z!=="backwards"&&z!=="unstable_legacy-backwards"?Ne:E-1-Ne,je=_[Ae];v.row=ge=Uc(ge),v.treeContext=Ci(re,E,Ae);var yt=Te[Ae];typeof yt=="number"?(tc(h,v,yt,je,Ae),delete Te[Ae]):Nr(h,v,je,Ae),--ge.pendingTasks===0&&zn(h,ge)}else for(Te=0;Te<E;Te++)Ne=z!=="backwards"&&z!=="unstable_legacy-backwards"?Te:E-1-Te,Ae=_[Ne],v.row=ge=Uc(ge),v.treeContext=Ci(re,E,Ne),Nr(h,v,Ae,Ne),--ge.pendingTasks===0&&zn(h,ge)}else if(z!=="backwards"&&z!=="unstable_legacy-backwards")for(z=0;z<E;z++)Te=_[z],v.row=ge=Uc(ge),v.treeContext=Ci(re,E,z),Nr(h,v,Te,z),--ge.pendingTasks===0&&zn(h,ge);else{for(z=v.blockedSegment,Te=z.children.length,Ne=z.chunks.length,Ae=E-1;0<=Ae;Ae--){je=_[Ae],v.row=ge=Uc(ge),v.treeContext=Ci(re,E,Ae),yt=qi(h,Ne,null,v.formatContext,Ae===0?z.lastPushedText:!0,!0),z.children.splice(Te,0,yt),v.blockedSegment=yt;try{Nr(h,v,je,Ae),$o(yt.chunks,h.renderState,yt.lastPushedText,yt.textEmbedded),yt.status=1,--ge.pendingTasks===0&&zn(h,ge)}catch(Zt){throw yt.status=h.status===12?3:4,Zt}}v.blockedSegment=z,z.lastPushedText=!1}Re!==null&&ge!==null&&0<ge.pendingTasks&&(Re.pendingTasks++,ge.next=Re),v.treeContext=re,v.row=Re,v.keyPath=j}function $s(h,v,E,_,z,j){var re=v.thenableState;for(v.thenableState=null,ta={},hs=v,Ca=h,Ta=E,Er=na=0,Za=-1,xl=0,ra=re,h=_(z,j);dr;)dr=!1,Er=na=0,Za=-1,xl=0,fr+=1,zt=null,h=_(z,j);return El(),h}function Pa(h,v,E,_,z,j,re){var Re=!1;if(j!==0&&h.formState!==null){var ge=v.blockedSegment;if(ge!==null){Re=!0,ge=ge.chunks;for(var Te=0;Te<j;Te++)Te===re?ge.push("<!--F!-->"):ge.push("<!--F-->")}}j=v.keyPath,v.keyPath=E,z?(E=v.treeContext,v.treeContext=Ci(E,1,0),Nr(h,v,_,-1),v.treeContext=E):Re?Nr(h,v,_,-1):Ri(h,v,_,-1),v.keyPath=j}function ec(h,v,E,_,z,j){if(typeof _=="function")if(_.prototype&&_.prototype.isReactComponent){var re=z;if("ref"in z){re={};for(var Re in z)Re!=="ref"&&(re[Re]=z[Re])}var ge=_.defaultProps;if(ge){re===z&&(re=$({},re,z));for(var Te in ge)re[Te]===void 0&&(re[Te]=ge[Te])}z=re,re=Sr,ge=_.contextType,typeof ge=="object"&&ge!==null&&(re=ge._currentValue2),re=new _(z,re);var Ne=re.state!==void 0?re.state:null;if(re.updater=Mu,re.props=z,re.state=Ne,ge={queue:[],replace:!1},re._reactInternals=ge,j=_.contextType,re.context=typeof j=="object"&&j!==null?j._currentValue2:Sr,j=_.getDerivedStateFromProps,typeof j=="function"&&(j=j(z,Ne),Ne=j==null?Ne:$({},Ne,j),re.state=Ne),typeof _.getDerivedStateFromProps!="function"&&typeof re.getSnapshotBeforeUpdate!="function"&&(typeof re.UNSAFE_componentWillMount=="function"||typeof re.componentWillMount=="function"))if(_=re.state,typeof re.componentWillMount=="function"&&re.componentWillMount(),typeof re.UNSAFE_componentWillMount=="function"&&re.UNSAFE_componentWillMount(),_!==re.state&&Mu.enqueueReplaceState(re,re.state,null),ge.queue!==null&&0<ge.queue.length)if(_=ge.queue,j=ge.replace,ge.queue=null,ge.replace=!1,j&&_.length===1)re.state=_[0];else{for(ge=j?_[0]:re.state,Ne=!0,j=j?1:0;j<_.length;j++)Te=_[j],Te=typeof Te=="function"?Te.call(re,ge,z,void 0):Te,Te!=null&&(Ne?(Ne=!1,ge=$({},ge,Te)):$(ge,Te));re.state=ge}else ge.queue=null;if(_=re.render(),h.status===12)throw null;z=v.keyPath,v.keyPath=E,Ri(h,v,_,-1),v.keyPath=z}else{if(_=$s(h,v,E,_,z,void 0),h.status===12)throw null;Pa(h,v,E,_,na!==0,Er,Za)}else if(typeof _=="string")if(re=v.blockedSegment,re===null)re=z.children,ge=v.formatContext,Ne=v.keyPath,v.formatContext=gt(ge,_,z),v.keyPath=E,Nr(h,v,re,-1),v.formatContext=ge,v.keyPath=Ne;else{if(Ne=ut(re.chunks,_,z,h.resumableState,h.renderState,v.blockedPreamble,v.hoistableState,v.formatContext,re.lastPushedText),re.lastPushedText=!1,ge=v.formatContext,j=v.keyPath,v.keyPath=E,(v.formatContext=gt(ge,_,z)).insertionMode===3){E=qi(h,0,null,v.formatContext,!1,!1),re.preambleChildren.push(E),v.blockedSegment=E;try{E.status=6,Nr(h,v,Ne,-1),$o(E.chunks,h.renderState,E.lastPushedText,E.textEmbedded),E.status=1}finally{v.blockedSegment=re}}else Nr(h,v,Ne,-1);v.formatContext=ge,v.keyPath=j;e:{switch(v=re.chunks,h=h.resumableState,_){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=ge.insertionMode){h.hasBody=!0;break e}break;case"html":if(ge.insertionMode===0){h.hasHtml=!0;break e}break;case"head":if(1>=ge.insertionMode)break e}v.push(ht(_))}re.lastPushedText=!1}else{switch(_){case H:case l:case u:case o:_=v.keyPath,v.keyPath=E,Ri(h,v,z.children,-1),v.keyPath=_;return;case W:_=v.blockedSegment,_===null?z.mode!=="hidden"&&(_=v.keyPath,v.keyPath=E,Nr(h,v,z.children,-1),v.keyPath=_):z.mode!=="hidden"&&(h.renderState.generateStaticMarkup||_.chunks.push("<!--&-->"),_.lastPushedText=!1,re=v.keyPath,v.keyPath=E,Nr(h,v,z.children,-1),v.keyPath=re,h.renderState.generateStaticMarkup||_.chunks.push("<!--/&-->"),_.lastPushedText=!1);return;case C:e:{if(_=z.children,z=z.revealOrder,z==="forwards"||z==="backwards"||z==="unstable_legacy-backwards"){if(G(_)){Gc(h,v,E,_,z);break e}if((re=K(_))&&(re=re.call(_))){if(ge=re.next(),!ge.done){do ge=re.next();while(!ge.done);Gc(h,v,E,_,z)}break e}}z==="together"?(z=v.keyPath,re=v.row,ge=v.row=Uc(null),ge.boundaries=[],ge.together=!0,v.keyPath=E,Ri(h,v,_,-1),--ge.pendingTasks===0&&zn(h,ge),v.keyPath=z,v.row=re,re!==null&&0<ge.pendingTasks&&(re.pendingTasks++,ge.next=re)):(z=v.keyPath,v.keyPath=E,Ri(h,v,_,-1),v.keyPath=z)}return;case I:case k:throw Error(n(343));case w:e:if(v.replay!==null){_=v.keyPath,re=v.formatContext,ge=v.row,v.keyPath=E,v.formatContext=ft(h.resumableState,re),v.row=null,E=z.children;try{Nr(h,v,E,-1)}finally{v.keyPath=_,v.formatContext=re,v.row=ge}}else{_=v.keyPath,j=v.formatContext;var Ae=v.row,je=v.blockedBoundary;Te=v.blockedPreamble;var yt=v.hoistableState;Re=v.blockedSegment;var Zt=z.fallback;z=z.children;var Ot=new Set,Et=js(h,v.row,Ot,null,null);h.trackedPostpones!==null&&(Et.trackedContentKeyPath=E);var Lt=qi(h,Re.chunks.length,Et,v.formatContext,!1,!1);Re.children.push(Lt),Re.lastPushedText=!1;var _t=qi(h,0,null,v.formatContext,!1,!1);if(_t.parentFlushed=!0,h.trackedPostpones!==null){re=v.componentStack,ge=[E[0],"Suspense Fallback",E[2]],Ne=[ge[1],ge[2],[],null],h.trackedPostpones.workingMap.set(ge,Ne),Et.trackedFallbackNode=Ne,v.blockedSegment=Lt,v.blockedPreamble=Et.fallbackPreamble,v.keyPath=ge,v.formatContext=mt(h.resumableState,j),v.componentStack=Fi(re),Lt.status=6;try{Nr(h,v,Zt,-1),$o(Lt.chunks,h.renderState,Lt.lastPushedText,Lt.textEmbedded),Lt.status=1}catch(Wn){throw Lt.status=h.status===12?3:4,Wn}finally{v.blockedSegment=Re,v.blockedPreamble=Te,v.keyPath=_,v.formatContext=j}v=qs(h,null,z,-1,Et,_t,Et.contentPreamble,Et.contentState,v.abortSet,E,ft(h.resumableState,v.formatContext),v.context,v.treeContext,null,re),$i(v),h.pingedTasks.push(v)}else{v.blockedBoundary=Et,v.blockedPreamble=Et.contentPreamble,v.hoistableState=Et.contentState,v.blockedSegment=_t,v.keyPath=E,v.formatContext=ft(h.resumableState,j),v.row=null,_t.status=6;try{if(Nr(h,v,z,-1),$o(_t.chunks,h.renderState,_t.lastPushedText,_t.textEmbedded),_t.status=1,Wr(Et,_t),Et.pendingTasks===0&&Et.status===0){if(Et.status=1,!qa(h,Et)){Ae!==null&&--Ae.pendingTasks===0&&zn(h,Ae),h.pendingRootTasks===0&&v.blockedPreamble&&_l(h);break e}}else Ae!==null&&Ae.together&&Wc(h,Ae)}catch(Wn){Et.status=4,h.status===12?(_t.status=3,re=h.fatalError):(_t.status=4,re=Wn),ge=eo(v.componentStack),Ne=_n(h,re,ge),Et.errorDigest=Ne,Rl(h,Et)}finally{v.blockedBoundary=je,v.blockedPreamble=Te,v.hoistableState=yt,v.blockedSegment=Re,v.keyPath=_,v.formatContext=j,v.row=Ae}v=qs(h,null,Zt,-1,je,Lt,Et.fallbackPreamble,Et.fallbackState,Ot,[E[0],"Suspense Fallback",E[2]],mt(h.resumableState,v.formatContext),v.context,v.treeContext,v.row,Fi(v.componentStack)),$i(v),h.pingedTasks.push(v)}}return}if(typeof _=="object"&&_!==null)switch(_.$$typeof){case S:if("ref"in z)for(Zt in re={},z)Zt!=="ref"&&(re[Zt]=z[Zt]);else re=z;_=$s(h,v,E,_.render,re,j),Pa(h,v,E,_,na!==0,Er,Za);return;case M:ec(h,v,E,_.type,z,j);return;case y:if(ge=z.children,re=v.keyPath,z=z.value,Ne=_._currentValue2,_._currentValue2=z,j=ds,ds=_={parent:j,depth:j===null?0:j.depth+1,context:_,parentValue:Ne,value:z},v.context=_,v.keyPath=E,Ri(h,v,ge,-1),h=ds,h===null)throw Error(n(403));h.context._currentValue2=h.parentValue,h=ds=h.parent,v.context=h,v.keyPath=re;return;case p:z=z.children,_=z(_._context._currentValue2),z=v.keyPath,v.keyPath=E,Ri(h,v,_,-1),v.keyPath=z;return;case O:if(re=_._init,_=re(_._payload),h.status===12)throw null;ec(h,v,E,_,z,j);return}throw Error(n(130,_==null?_:typeof _,""))}}function tc(h,v,E,_,z){var j=v.replay,re=v.blockedBoundary,Re=qi(h,0,null,v.formatContext,!1,!1);Re.id=E,Re.parentFlushed=!0;try{v.replay=null,v.blockedSegment=Re,Nr(h,v,_,z),Re.status=1,re===null?h.completedRootSegment=Re:(Wr(re,Re),re.parentFlushed&&h.partialBoundaries.push(re))}finally{v.replay=j,v.blockedSegment=null}}function Ri(h,v,E,_){v.replay!==null&&typeof v.replay.slots=="number"?tc(h,v,v.replay.slots,E,_):(v.node=E,v.childIndex=_,E=v.componentStack,$i(v),Hn(h,v),v.componentStack=E)}function Hn(h,v){var E=v.node,_=v.childIndex;if(E!==null){if(typeof E=="object"){switch(E.$$typeof){case r:var z=E.type,j=E.key,re=E.props;E=re.ref;var Re=E!==void 0?E:null,ge=Vs(z),Te=j??(_===-1?0:_);if(j=[v.keyPath,ge,Te],v.replay!==null)e:{var Ne=v.replay;for(_=Ne.nodes,E=0;E<_.length;E++){var Ae=_[E];if(Te===Ae[1]){if(Ae.length===4){if(ge!==null&&ge!==Ae[0])throw Error(n(490,Ae[0],ge));var je=Ae[2];ge=Ae[3],Te=v.node,v.replay={nodes:je,slots:ge,pendingTasks:1};try{if(ec(h,v,j,z,re,Re),v.replay.pendingTasks===1&&0<v.replay.nodes.length)throw Error(n(488));v.replay.pendingTasks--}catch(yn){if(typeof yn=="object"&&yn!==null&&(yn===Nn||typeof yn.then=="function"))throw v.node===Te?v.replay=Ne:_.splice(E,1),yn;v.replay.pendingTasks--,re=eo(v.componentStack),j=h,h=v.blockedBoundary,z=yn,re=_n(j,z,re),Go(j,h,je,ge,z,re)}v.replay=Ne}else{if(z!==w)throw Error(n(490,"Suspense",Vs(z)||"Unknown"));t:{Ne=void 0,z=Ae[5],Re=Ae[2],ge=Ae[3],Te=Ae[4]===null?[]:Ae[4][2],Ae=Ae[4]===null?null:Ae[4][3];var yt=v.keyPath,Zt=v.formatContext,Ot=v.row,Et=v.replay,Lt=v.blockedBoundary,_t=v.hoistableState,Wn=re.children,Jt=re.fallback,ln=new Set;re=js(h,v.row,ln,null,null),re.parentFlushed=!0,re.rootSegmentID=z,v.blockedBoundary=re,v.hoistableState=re.contentState,v.keyPath=j,v.formatContext=ft(h.resumableState,Zt),v.row=null,v.replay={nodes:Re,slots:ge,pendingTasks:1};try{if(Nr(h,v,Wn,-1),v.replay.pendingTasks===1&&0<v.replay.nodes.length)throw Error(n(488));if(v.replay.pendingTasks--,re.pendingTasks===0&&re.status===0){re.status=1,h.completedBoundaries.push(re);break t}}catch(yn){re.status=4,je=eo(v.componentStack),Ne=_n(h,yn,je),re.errorDigest=Ne,v.replay.pendingTasks--,h.clientRenderedBoundaries.push(re)}finally{v.blockedBoundary=Lt,v.hoistableState=_t,v.replay=Et,v.keyPath=yt,v.formatContext=Zt,v.row=Ot}je=Hc(h,null,{nodes:Te,slots:Ae,pendingTasks:0},Jt,-1,Lt,re.fallbackState,ln,[j[0],"Suspense Fallback",j[2]],mt(h.resumableState,v.formatContext),v.context,v.treeContext,v.row,Fi(v.componentStack)),$i(je),h.pingedTasks.push(je)}}_.splice(E,1);break e}}}else ec(h,v,j,z,re,Re);return;case i:throw Error(n(257));case O:if(je=E._init,E=je(E._payload),h.status===12)throw null;Ri(h,v,E,_);return}if(G(E)){dn(h,v,E,_);return}if((je=K(E))&&(je=je.call(E))){if(E=je.next(),!E.done){re=[];do re.push(E.value),E=je.next();while(!E.done);dn(h,v,re,_)}return}if(typeof E.then=="function")return v.thenableState=null,Ri(h,v,bs(E),_);if(E.$$typeof===y)return Ri(h,v,E._currentValue2,_);throw _=Object.prototype.toString.call(E),Error(n(31,_==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":_))}typeof E=="string"?(_=v.blockedSegment,_!==null&&(_.lastPushedText=qo(_.chunks,E,h.renderState,_.lastPushedText))):(typeof E=="number"||typeof E=="bigint")&&(_=v.blockedSegment,_!==null&&(_.lastPushedText=qo(_.chunks,""+E,h.renderState,_.lastPushedText)))}}function dn(h,v,E,_){var z=v.keyPath;if(_!==-1&&(v.keyPath=[v.keyPath,"Fragment",_],v.replay!==null)){for(var j=v.replay,re=j.nodes,Re=0;Re<re.length;Re++){var ge=re[Re];if(ge[1]===_){_=ge[2],ge=ge[3],v.replay={nodes:_,slots:ge,pendingTasks:1};try{if(dn(h,v,E,-1),v.replay.pendingTasks===1&&0<v.replay.nodes.length)throw Error(n(488));v.replay.pendingTasks--}catch(Ae){if(typeof Ae=="object"&&Ae!==null&&(Ae===Nn||typeof Ae.then=="function"))throw Ae;v.replay.pendingTasks--,E=eo(v.componentStack);var Te=v.blockedBoundary,Ne=Ae;E=_n(h,Ne,E),Go(h,Te,_,ge,Ne,E)}v.replay=j,re.splice(Re,1);break}}v.keyPath=z;return}if(j=v.treeContext,re=E.length,v.replay!==null&&(Re=v.replay.slots,Re!==null&&typeof Re=="object")){for(_=0;_<re;_++)ge=E[_],v.treeContext=Ci(j,re,_),Te=Re[_],typeof Te=="number"?(tc(h,v,Te,ge,_),delete Re[_]):Nr(h,v,ge,_);v.treeContext=j,v.keyPath=z;return}for(Re=0;Re<re;Re++)_=E[Re],v.treeContext=Ci(j,re,Re),Nr(h,v,_,Re);v.treeContext=j,v.keyPath=z}function $a(h,v,E){if(E.status=5,E.rootSegmentID=h.nextSegmentId++,h=E.trackedContentKeyPath,h===null)throw Error(n(486));var _=E.trackedFallbackNode,z=[],j=v.workingMap.get(h);return j===void 0?(E=[h[1],h[2],z,null,_,E.rootSegmentID],v.workingMap.set(h,E),Zn(E,h[0],v),E):(j[4]=_,j[5]=E.rootSegmentID,j)}function kl(h,v,E,_){_.status=5;var z=E.keyPath,j=E.blockedBoundary;if(j===null)_.id=h.nextSegmentId++,v.rootSlots=_.id,h.completedRootSegment!==null&&(h.completedRootSegment.status=5);else{if(j!==null&&j.status===0){var re=$a(h,v,j);if(j.trackedContentKeyPath===z&&E.childIndex===-1){_.id===-1&&(_.id=_.parentFlushed?j.rootSegmentID:h.nextSegmentId++),re[3]=_.id;return}}if(_.id===-1&&(_.id=_.parentFlushed&&j!==null?j.rootSegmentID:h.nextSegmentId++),E.childIndex===-1)z===null?v.rootSlots=_.id:(E=v.workingMap.get(z),E===void 0?(E=[z[1],z[2],[],_.id],Zn(E,z[0],v)):E[3]=_.id);else{if(z===null){if(h=v.rootSlots,h===null)h=v.rootSlots={};else if(typeof h=="number")throw Error(n(491))}else if(j=v.workingMap,re=j.get(z),re===void 0)h={},re=[z[1],z[2],[],h],j.set(z,re),Zn(re,z[0],v);else if(h=re[3],h===null)h=re[3]={};else if(typeof h=="number")throw Error(n(491));h[E.childIndex]=_.id}}}function Rl(h,v){h=h.trackedPostpones,h!==null&&(v=v.trackedContentKeyPath,v!==null&&(v=h.workingMap.get(v),v!==void 0&&(v.length=4,v[2]=[],v[3]=null)))}function el(h,v,E){return Hc(h,E,v.replay,v.node,v.childIndex,v.blockedBoundary,v.hoistableState,v.abortSet,v.keyPath,v.formatContext,v.context,v.treeContext,v.row,v.componentStack)}function Fu(h,v,E){var _=v.blockedSegment,z=qi(h,_.chunks.length,null,v.formatContext,_.lastPushedText,!0);return _.children.push(z),_.lastPushedText=!1,qs(h,E,v.node,v.childIndex,v.blockedBoundary,z,v.blockedPreamble,v.hoistableState,v.abortSet,v.keyPath,v.formatContext,v.context,v.treeContext,v.row,v.componentStack)}function Nr(h,v,E,_){var z=v.formatContext,j=v.context,re=v.keyPath,Re=v.treeContext,ge=v.componentStack,Te=v.blockedSegment;if(Te===null){Te=v.replay;try{return Ri(h,v,E,_)}catch(je){if(El(),E=je===Nn?Bo():je,h.status!==12&&typeof E=="object"&&E!==null){if(typeof E.then=="function"){_=je===Nn?Ja():null,h=el(h,v,_).ping,E.then(h,h),v.formatContext=z,v.context=j,v.keyPath=re,v.treeContext=Re,v.componentStack=ge,v.replay=Te,Lo(j);return}if(E.message==="Maximum call stack size exceeded"){E=je===Nn?Ja():null,E=el(h,v,E),h.pingedTasks.push(E),v.formatContext=z,v.context=j,v.keyPath=re,v.treeContext=Re,v.componentStack=ge,v.replay=Te,Lo(j);return}}}}else{var Ne=Te.children.length,Ae=Te.chunks.length;try{return Ri(h,v,E,_)}catch(je){if(El(),Te.children.length=Ne,Te.chunks.length=Ae,E=je===Nn?Bo():je,h.status!==12&&typeof E=="object"&&E!==null){if(typeof E.then=="function"){Te=E,E=je===Nn?Ja():null,h=Fu(h,v,E).ping,Te.then(h,h),v.formatContext=z,v.context=j,v.keyPath=re,v.treeContext=Re,v.componentStack=ge,Lo(j);return}if(E.message==="Maximum call stack size exceeded"){Te=je===Nn?Ja():null,Te=Fu(h,v,Te),h.pingedTasks.push(Te),v.formatContext=z,v.context=j,v.keyPath=re,v.treeContext=Re,v.componentStack=ge,Lo(j);return}}}}throw v.formatContext=z,v.context=j,v.keyPath=re,v.treeContext=Re,Lo(j),E}function jd(h){var v=h.blockedBoundary,E=h.blockedSegment;E!==null&&(E.status=3,Oa(this,v,h.row,E))}function Go(h,v,E,_,z,j){for(var re=0;re<E.length;re++){var Re=E[re];if(Re.length===4)Go(h,v,Re[2],Re[3],z,j);else{Re=Re[5];var ge=h,Te=j,Ne=js(ge,null,new Set,null,null);Ne.parentFlushed=!0,Ne.rootSegmentID=Re,Ne.status=4,Ne.errorDigest=Te,Ne.parentFlushed&&ge.clientRenderedBoundaries.push(Ne)}}if(E.length=0,_!==null){if(v===null)throw Error(n(487));if(v.status!==4&&(v.status=4,v.errorDigest=j,v.parentFlushed&&h.clientRenderedBoundaries.push(v)),typeof _=="object")for(var Ae in _)delete _[Ae]}}function gd(h,v,E){var _=h.blockedBoundary,z=h.blockedSegment;if(z!==null){if(z.status===6)return;z.status=3}var j=eo(h.componentStack);if(_===null){if(v.status!==13&&v.status!==14){if(_=h.replay,_===null){v.trackedPostpones!==null&&z!==null?(_=v.trackedPostpones,_n(v,E,j),kl(v,_,h,z),Oa(v,null,h.row,z)):(_n(v,E,j),to(v,E));return}_.pendingTasks--,_.pendingTasks===0&&0<_.nodes.length&&(z=_n(v,E,j),Go(v,null,_.nodes,_.slots,E,z)),v.pendingRootTasks--,v.pendingRootTasks===0&&oa(v)}}else{var re=v.trackedPostpones;if(_.status!==4){if(re!==null&&z!==null)return _n(v,E,j),kl(v,re,h,z),_.fallbackAbortableTasks.forEach(function(Re){return gd(Re,v,E)}),_.fallbackAbortableTasks.clear(),Oa(v,_,h.row,z);_.status=4,z=_n(v,E,j),_.status=4,_.errorDigest=z,Rl(v,_),_.parentFlushed&&v.clientRenderedBoundaries.push(_)}_.pendingTasks--,z=_.row,z!==null&&--z.pendingTasks===0&&zn(v,z),_.fallbackAbortableTasks.forEach(function(Re){return gd(Re,v,E)}),_.fallbackAbortableTasks.clear()}h=h.row,h!==null&&--h.pendingTasks===0&&zn(v,h),v.allPendingTasks--,v.allPendingTasks===0&&nc(v)}function Du(h,v){try{var E=h.renderState,_=E.onHeaders;if(_){var z=E.headers;if(z){E.headers=null;var j=z.preconnects;if(z.fontPreloads&&(j&&(j+=", "),j+=z.fontPreloads),z.highImagePreloads&&(j&&(j+=", "),j+=z.highImagePreloads),!v){var re=E.styles.values(),Re=re.next();e:for(;0<z.remainingCapacity&&!Re.done;Re=re.next())for(var ge=Re.value.sheets.values(),Te=ge.next();0<z.remainingCapacity&&!Te.done;Te=ge.next()){var Ne=Te.value,Ae=Ne.props,je=Ae.href,yt=Ne.props,Zt=Bn(yt.href,"style",{crossOrigin:yt.crossOrigin,integrity:yt.integrity,nonce:yt.nonce,type:yt.type,fetchPriority:yt.fetchPriority,referrerPolicy:yt.referrerPolicy,media:yt.media});if(0<=(z.remainingCapacity-=Zt.length+2))E.resets.style[je]=rt,j&&(j+=", "),j+=Zt,E.resets.style[je]=typeof Ae.crossOrigin=="string"||typeof Ae.integrity=="string"?[Ae.crossOrigin,Ae.integrity]:rt;else break e}}_(j?{Link:j}:{})}}}catch(Ot){_n(h,Ot,{})}}function oa(h){h.trackedPostpones===null&&Du(h,!0),h.trackedPostpones===null&&_l(h),h.onShellError=Mr,h=h.onShellReady,h()}function nc(h){Du(h,h.trackedPostpones===null?!0:h.completedRootSegment===null||h.completedRootSegment.status!==5),_l(h),h=h.onAllReady,h()}function Wr(h,v){if(v.chunks.length===0&&v.children.length===1&&v.children[0].boundary===null&&v.children[0].id===-1){var E=v.children[0];E.id=v.id,E.parentFlushed=!0,E.status!==1&&E.status!==3&&E.status!==4||Wr(h,E)}else h.completedSegments.push(v)}function Oa(h,v,E,_){if(E!==null&&(--E.pendingTasks===0?zn(h,E):E.together&&Wc(h,E)),h.allPendingTasks--,v===null){if(_!==null&&_.parentFlushed){if(h.completedRootSegment!==null)throw Error(n(389));h.completedRootSegment=_}h.pendingRootTasks--,h.pendingRootTasks===0&&oa(h)}else if(v.pendingTasks--,v.status!==4)if(v.pendingTasks===0){if(v.status===0&&(v.status=1),_!==null&&_.parentFlushed&&(_.status===1||_.status===3)&&Wr(v,_),v.parentFlushed&&h.completedBoundaries.push(v),v.status===1)E=v.row,E!==null&&cs(E.hoistables,v.contentState),qa(h,v)||(v.fallbackAbortableTasks.forEach(jd,h),v.fallbackAbortableTasks.clear(),E!==null&&--E.pendingTasks===0&&zn(h,E)),h.pendingRootTasks===0&&h.trackedPostpones===null&&v.contentPreamble!==null&&_l(h);else if(v.status===5&&(v=v.row,v!==null)){if(h.trackedPostpones!==null){E=h.trackedPostpones;var z=v.next;if(z!==null&&(_=z.boundaries,_!==null))for(z.boundaries=null,z=0;z<_.length;z++){var j=_[z];$a(h,E,j),Oa(h,j,null,null)}}--v.pendingTasks===0&&zn(h,v)}}else _===null||!_.parentFlushed||_.status!==1&&_.status!==3||(Wr(v,_),v.completedSegments.length===1&&v.parentFlushed&&h.partialBoundaries.push(v)),v=v.row,v!==null&&v.together&&Wc(h,v);h.allPendingTasks===0&&nc(h)}function pd(h){if(h.status!==14&&h.status!==13){var v=ds,E=Ce.H;Ce.H=hd;var _=Ce.A;Ce.A=Qs;var z=hr;hr=h;var j=Ka;Ka=h.resumableState;try{var re=h.pingedTasks,Re;for(Re=0;Re<re.length;Re++){var ge=re[Re],Te=h,Ne=ge.blockedSegment;if(Ne===null){var Ae=Te;if(ge.replay.pendingTasks!==0){Lo(ge.context);try{if(typeof ge.replay.slots=="number"?tc(Ae,ge,ge.replay.slots,ge.node,ge.childIndex):Hn(Ae,ge),ge.replay.pendingTasks===1&&0<ge.replay.nodes.length)throw Error(n(488));ge.replay.pendingTasks--,ge.abortSet.delete(ge),Oa(Ae,ge.blockedBoundary,ge.row,null)}catch(Bt){El();var je=Bt===Nn?Bo():Bt;if(typeof je=="object"&&je!==null&&typeof je.then=="function"){var yt=ge.ping;je.then(yt,yt),ge.thenableState=Bt===Nn?Ja():null}else{ge.replay.pendingTasks--,ge.abortSet.delete(ge);var Zt=eo(ge.componentStack);Te=void 0;var Ot=Ae,Et=ge.blockedBoundary,Lt=Ae.status===12?Ae.fatalError:je,_t=ge.replay.nodes,Wn=ge.replay.slots;Te=_n(Ot,Lt,Zt),Go(Ot,Et,_t,Wn,Lt,Te),Ae.pendingRootTasks--,Ae.pendingRootTasks===0&&oa(Ae),Ae.allPendingTasks--,Ae.allPendingTasks===0&&nc(Ae)}}finally{}}}else if(Ae=void 0,Ot=Ne,Ot.status===0){Ot.status=6,Lo(ge.context);var Jt=Ot.children.length,ln=Ot.chunks.length;try{Hn(Te,ge),$o(Ot.chunks,Te.renderState,Ot.lastPushedText,Ot.textEmbedded),ge.abortSet.delete(ge),Ot.status=1,Oa(Te,ge.blockedBoundary,ge.row,Ot)}catch(Bt){El(),Ot.children.length=Jt,Ot.chunks.length=ln;var yn=Bt===Nn?Bo():Te.status===12?Te.fatalError:Bt;if(Te.status===12&&Te.trackedPostpones!==null){var Ht=Te.trackedPostpones,Jn=eo(ge.componentStack);ge.abortSet.delete(ge),_n(Te,yn,Jn),kl(Te,Ht,ge,Ot),Oa(Te,ge.blockedBoundary,ge.row,Ot)}else if(typeof yn=="object"&&yn!==null&&typeof yn.then=="function"){Ot.status=0,ge.thenableState=Bt===Nn?Ja():null;var fn=ge.ping;yn.then(fn,fn)}else{var ti=eo(ge.componentStack);ge.abortSet.delete(ge),Ot.status=4;var Sn=ge.blockedBoundary,cn=ge.row;if(cn!==null&&--cn.pendingTasks===0&&zn(Te,cn),Te.allPendingTasks--,Ae=_n(Te,yn,ti),Sn===null)to(Te,yn);else if(Sn.pendingTasks--,Sn.status!==4){Sn.status=4,Sn.errorDigest=Ae,Rl(Te,Sn);var hn=Sn.row;hn!==null&&--hn.pendingTasks===0&&zn(Te,hn),Sn.parentFlushed&&Te.clientRenderedBoundaries.push(Sn),Te.pendingRootTasks===0&&Te.trackedPostpones===null&&Sn.contentPreamble!==null&&_l(Te)}Te.allPendingTasks===0&&nc(Te)}}finally{}}}re.splice(0,Re),h.destination!==null&&Vc(h,h.destination)}catch(Bt){_n(h,Bt,{}),to(h,Bt)}finally{Ka=j,Ce.H=E,Ce.A=_,E===hd&&Lo(v),hr=z}}}function Ml(h,v,E){v.preambleChildren.length&&E.push(v.preambleChildren);for(var _=!1,z=0;z<v.children.length;z++)_=Yc(h,v.children[z],E)||_;return _}function Yc(h,v,E){var _=v.boundary;if(_===null)return Ml(h,v,E);var z=_.contentPreamble,j=_.fallbackPreamble;if(z===null||j===null)return!1;switch(_.status){case 1:if(Vt(h.renderState,z),h.byteSize+=_.byteSize,v=_.completedSegments[0],!v)throw Error(n(391));return Ml(h,v,E);case 5:if(h.trackedPostpones!==null)return!0;case 4:if(v.status===1)return Vt(h.renderState,j),Ml(h,v,E);default:return!0}}function _l(h){if(h.completedRootSegment&&h.completedPreambleSegments===null){var v=[],E=h.byteSize,_=Yc(h,h.completedRootSegment,v),z=h.renderState.preamble;_===!1||z.headChunks&&z.bodyChunks?h.completedPreambleSegments=v:h.byteSize=E}}function Ur(h,v,E,_){switch(E.parentFlushed=!0,E.status){case 0:E.id=h.nextSegmentId++;case 5:return _=E.id,E.lastPushedText=!1,E.textEmbedded=!1,h=h.renderState,v.push('<template id="'),v.push(h.placeholderPrefix),h=_.toString(16),v.push(h),v.push('"></template>');case 1:E.status=2;var z=!0,j=E.chunks,re=0;E=E.children;for(var Re=0;Re<E.length;Re++){for(z=E[Re];re<z.index;re++)v.push(j[re]);z=tl(h,v,z,_)}for(;re<j.length-1;re++)v.push(j[re]);return re<j.length&&(z=v.push(j[re])),z;case 3:return!0;default:throw Error(n(390))}}var Fr=0;function tl(h,v,E,_){var z=E.boundary;if(z===null)return Ur(h,v,E,_);if(z.parentFlushed=!0,z.status===4){var j=z.row;return j!==null&&--j.pendingTasks===0&&zn(h,j),h.renderState.generateStaticMarkup||(z=z.errorDigest,v.push("<!--$!-->"),v.push("<template"),z&&(v.push(' data-dgst="'),z=J(z),v.push(z),v.push('"')),v.push("></template>")),Ur(h,v,E,_),h=h.renderState.generateStaticMarkup?!0:v.push("<!--/$-->"),h}if(z.status!==1)return z.status===0&&(z.rootSegmentID=h.nextSegmentId++),0<z.completedSegments.length&&h.partialBoundaries.push(z),Tt(v,h.renderState,z.rootSegmentID),_&&cs(_,z.fallbackState),Ur(h,v,E,_),v.push("<!--/$-->");if(!ys&&qa(h,z)&&Fr+z.byteSize>h.progressiveChunkSize)return z.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(z),Tt(v,h.renderState,z.rootSegmentID),Ur(h,v,E,_),v.push("<!--/$-->");if(Fr+=z.byteSize,_&&cs(_,z.contentState),E=z.row,E!==null&&qa(h,z)&&--E.pendingTasks===0&&zn(h,E),h.renderState.generateStaticMarkup||v.push("<!--$-->"),E=z.completedSegments,E.length!==1)throw Error(n(391));return tl(h,v,E[0],_),h=h.renderState.generateStaticMarkup?!0:v.push("<!--/$-->"),h}function Fn(h,v,E,_){return wi(v,h.renderState,E.parentFormatContext,E.id),tl(h,v,E,_),xi(v,E.parentFormatContext)}function Tn(h,v,E){Fr=E.byteSize;for(var _=E.completedSegments,z=0;z<_.length;z++)Pl(h,v,E,_[z]);_.length=0,_=E.row,_!==null&&qa(h,E)&&--_.pendingTasks===0&&zn(h,_),bl(v,E.contentState,h.renderState),_=h.resumableState,h=h.renderState,z=E.rootSegmentID,E=E.contentState;var j=h.stylesToHoist;return h.stylesToHoist=!1,v.push(h.startInlineScript),v.push(">"),j?(!(_.instructions&4)&&(_.instructions|=4,v.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};')),!(_.instructions&2)&&(_.instructions|=2,v.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
53
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),_.instructions&8?v.push('$RR("'):(_.instructions|=8,v.push(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
54
|
+
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
55
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`))):(!(_.instructions&2)&&(_.instructions|=2,v.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
56
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),v.push('$RC("')),_=z.toString(16),v.push(h.boundaryPrefix),v.push(_),v.push('","'),v.push(h.segmentPrefix),v.push(_),j?(v.push('",'),Ki(v,E)):v.push('"'),E=v.push(")<\/script>"),Rr(v,h)&&E}function Pl(h,v,E,_){if(_.status===2)return!0;var z=E.contentState,j=_.id;if(j===-1){if((_.id=E.rootSegmentID)===-1)throw Error(n(392));return Fn(h,v,_,z)}return j===E.rootSegmentID?Fn(h,v,_,z):(Fn(h,v,_,z),E=h.resumableState,h=h.renderState,v.push(h.startInlineScript),v.push(">"),E.instructions&1?v.push('$RS("'):(E.instructions|=1,v.push('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),v.push(h.segmentPrefix),j=j.toString(16),v.push(j),v.push('","'),v.push(h.placeholderPrefix),v.push(j),v=v.push('")<\/script>'),v)}var ys=!1;function Vc(h,v){try{if(!(0<h.pendingRootTasks)){var E,_=h.completedRootSegment;if(_!==null){if(_.status===5)return;var z=h.completedPreambleSegments;if(z===null)return;Fr=h.byteSize;var j=h.resumableState,re=h.renderState,Re=re.preamble,ge=Re.htmlChunks,Te=Re.headChunks,Ne;if(ge){for(Ne=0;Ne<ge.length;Ne++)v.push(ge[Ne]);if(Te)for(Ne=0;Ne<Te.length;Ne++)v.push(Te[Ne]);else{var Ae=Cn("head");v.push(Ae),v.push(">")}}else if(Te)for(Ne=0;Ne<Te.length;Ne++)v.push(Te[Ne]);var je=re.charsetChunks;for(Ne=0;Ne<je.length;Ne++)v.push(je[Ne]);je.length=0,re.preconnects.forEach(Si,v),re.preconnects.clear();var yt=re.viewportChunks;for(Ne=0;Ne<yt.length;Ne++)v.push(yt[Ne]);yt.length=0,re.fontPreloads.forEach(Si,v),re.fontPreloads.clear(),re.highImagePreloads.forEach(Si,v),re.highImagePreloads.clear(),Fe=re,re.styles.forEach(Xt,v),Fe=null;var Zt=re.importMapChunks;for(Ne=0;Ne<Zt.length;Ne++)v.push(Zt[Ne]);Zt.length=0,re.bootstrapScripts.forEach(Si,v),re.scripts.forEach(Si,v),re.scripts.clear(),re.bulkPreloads.forEach(Si,v),re.bulkPreloads.clear(),j.instructions|=32;var Ot=re.hoistableChunks;for(Ne=0;Ne<Ot.length;Ne++)v.push(Ot[Ne]);for(j=Ot.length=0;j<z.length;j++){var Et=z[j];for(re=0;re<Et.length;re++)tl(h,v,Et[re],null)}var Lt=h.renderState.preamble,_t=Lt.headChunks;if(Lt.htmlChunks||_t){var Wn=ht("head");v.push(Wn)}var Jt=Lt.bodyChunks;if(Jt)for(z=0;z<Jt.length;z++)v.push(Jt[z]);tl(h,v,_,null),h.completedRootSegment=null;var ln=h.renderState;if(h.allPendingTasks!==0||h.clientRenderedBoundaries.length!==0||h.completedBoundaries.length!==0||h.trackedPostpones!==null&&(h.trackedPostpones.rootNodes.length!==0||h.trackedPostpones.rootSlots!==null)){var yn=h.resumableState;if(!(yn.instructions&64)){if(yn.instructions|=64,v.push(ln.startInlineScript),!(yn.instructions&32)){yn.instructions|=32;var Ht="_"+yn.idPrefix+"R_";v.push(' id="');var Jn=J(Ht);v.push(Jn),v.push('"')}v.push(">"),v.push("requestAnimationFrame(function(){$RT=performance.now()});"),v.push("<\/script>")}}Rr(v,ln)}var fn=h.renderState;_=0;var ti=fn.viewportChunks;for(_=0;_<ti.length;_++)v.push(ti[_]);ti.length=0,fn.preconnects.forEach(Si,v),fn.preconnects.clear(),fn.fontPreloads.forEach(Si,v),fn.fontPreloads.clear(),fn.highImagePreloads.forEach(Si,v),fn.highImagePreloads.clear(),fn.styles.forEach(Va,v),fn.scripts.forEach(Si,v),fn.scripts.clear(),fn.bulkPreloads.forEach(Si,v),fn.bulkPreloads.clear();var Sn=fn.hoistableChunks;for(_=0;_<Sn.length;_++)v.push(Sn[_]);Sn.length=0;var cn=h.clientRenderedBoundaries;for(E=0;E<cn.length;E++){var hn=cn[E];fn=v;var Bt=h.resumableState,gn=h.renderState,Pr=hn.rootSegmentID,Qt=hn.errorDigest;fn.push(gn.startInlineScript),fn.push(">"),Bt.instructions&4?fn.push('$RX("'):(Bt.instructions|=4,fn.push('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("')),fn.push(gn.boundaryPrefix);var nl=Pr.toString(16);if(fn.push(nl),fn.push('"'),Qt){fn.push(",");var Ia=tn(Qt||"");fn.push(Ia)}var ni=fn.push(")<\/script>");if(!ni){h.destination=null,E++,cn.splice(0,E);return}}cn.splice(0,E);var vo=h.completedBoundaries;for(E=0;E<vo.length;E++)if(!Tn(h,v,vo[E])){h.destination=null,E++,vo.splice(0,E);return}vo.splice(0,E),ys=!0;var bo=h.partialBoundaries;for(E=0;E<bo.length;E++){var mo=bo[E];e:{cn=h,hn=v,Fr=mo.byteSize;var aa=mo.completedSegments;for(ni=0;ni<aa.length;ni++)if(!Pl(cn,hn,mo,aa[ni])){ni++,aa.splice(0,ni);var Na=!1;break e}aa.splice(0,ni);var Cr=mo.row;Cr!==null&&Cr.together&&mo.pendingTasks===1&&(Cr.pendingTasks===1?Uo(cn,Cr,Cr.hoistables):Cr.pendingTasks--),Na=bl(hn,mo.contentState,cn.renderState)}if(!Na){h.destination=null,E++,bo.splice(0,E);return}}bo.splice(0,E),ys=!1;var Ol=h.completedBoundaries;for(E=0;E<Ol.length;E++)if(!Tn(h,v,Ol[E])){h.destination=null,E++,Ol.splice(0,E);return}Ol.splice(0,E)}}finally{ys=!1,h.allPendingTasks===0&&h.clientRenderedBoundaries.length===0&&h.completedBoundaries.length===0&&(h.flushScheduled=!1,E=h.resumableState,E.hasBody&&(bo=ht("body"),v.push(bo)),E.hasHtml&&(E=ht("html"),v.push(E)),h.status=14,v.push(null),h.destination=null)}}function ws(h){if(h.flushScheduled===!1&&h.pingedTasks.length===0&&h.destination!==null){h.flushScheduled=!0;var v=h.destination;v?Vc(h,v):h.flushScheduled=!1}}function Lu(h,v){if(h.status===13)h.status=14,v.destroy(h.fatalError);else if(h.status!==14&&h.destination===null){h.destination=v;try{Vc(h,v)}catch(E){_n(h,E,{}),to(h,E)}}}function qd(h,v){(h.status===11||h.status===10)&&(h.status=12);try{var E=h.abortableTasks;if(0<E.size){var _=v===void 0?Error(n(432)):typeof v=="object"&&v!==null&&typeof v.then=="function"?Error(n(530)):v;h.fatalError=_,E.forEach(function(z){return gd(z,h,_)}),E.clear()}h.destination!==null&&Vc(h,h.destination)}catch(z){_n(h,z,{}),to(h,z)}}function Zn(h,v,E){if(v===null)E.rootNodes.push(h);else{var _=E.workingMap,z=_.get(v);z===void 0&&(z=[v[1],v[2],[],null],_.set(v,z),Zn(z,v[0],E)),z[2].push(h)}}function Aa(){}function vd(h,v,E,_){var z=!1,j=null,re="",Re=!1;if(v=Ke(v?v.identifierPrefix:void 0),h=Tl(h,v,us(v,E),st(0,null,0,null),1/0,Aa,void 0,function(){Re=!0},void 0,void 0,void 0),h.flushScheduled=h.destination!==null,pd(h),h.status===10&&(h.status=11),h.trackedPostpones===null&&Du(h,h.pendingRootTasks===0),qd(h,_),Lu(h,{push:function(ge){return ge!==null&&(re+=ge),!0},destroy:function(ge){z=!0,j=ge}}),z&&j!==_)throw j;if(!Re)throw Error(n(426));return re}return hh.renderToStaticMarkup=function(h,v){return vd(h,v,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},hh.renderToString=function(h,v){return vd(h,v,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},hh.version="19.2.5",hh}var lf={};/**
|
|
57
|
+
* @license React
|
|
58
|
+
* react-dom-server.browser.production.js
|
|
59
|
+
*
|
|
60
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the MIT license found in the
|
|
63
|
+
* LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/var wb;function mS(){if(wb)return lf;wb=1;var e=fe,t=Of;function n(f){var g="https://react.dev/errors/"+f;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+f+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),y=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),k=Symbol.for("react.scope"),W=Symbol.for("react.activity"),H=Symbol.for("react.legacy_hidden"),B=Symbol.for("react.memo_cache_sentinel"),I=Symbol.for("react.view_transition"),Y=Symbol.iterator;function K(f){return f===null||typeof f!="object"?null:(f=Y&&f[Y]||f["@@iterator"],typeof f=="function"?f:null)}var G=Array.isArray;function ne(f,g){var x=f.length&3,P=f.length-x,F=g;for(g=0;g<P;){var Z=f.charCodeAt(g)&255|(f.charCodeAt(++g)&255)<<8|(f.charCodeAt(++g)&255)<<16|(f.charCodeAt(++g)&255)<<24;++g,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,Z=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295,F^=Z,F=F<<13|F>>>19,F=5*(F&65535)+((5*(F>>>16)&65535)<<16)&4294967295,F=(F&65535)+27492+(((F>>>16)+58964&65535)<<16)}switch(Z=0,x){case 3:Z^=(f.charCodeAt(g+2)&255)<<16;case 2:Z^=(f.charCodeAt(g+1)&255)<<8;case 1:Z^=f.charCodeAt(g)&255,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,F^=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295}return F^=f.length,F^=F>>>16,F=2246822507*(F&65535)+((2246822507*(F>>>16)&65535)<<16)&4294967295,F^=F>>>13,F=3266489909*(F&65535)+((3266489909*(F>>>16)&65535)<<16)&4294967295,(F^F>>>16)>>>0}var $=new MessageChannel,ie=[];$.port1.onmessage=function(){var f=ie.shift();f&&f()};function se(f){ie.push(f),$.port2.postMessage(null)}function ue(f){setTimeout(function(){throw f})}var he=Promise,ve=typeof queueMicrotask=="function"?queueMicrotask:function(f){he.resolve(null).then(f).catch(ue)},ae=null,me=0;function V(f,g){if(g.byteLength!==0)if(2048<g.byteLength)0<me&&(f.enqueue(new Uint8Array(ae.buffer,0,me)),ae=new Uint8Array(2048),me=0),f.enqueue(g);else{var x=ae.length-me;x<g.byteLength&&(x===0?f.enqueue(ae):(ae.set(g.subarray(0,x),me),f.enqueue(ae),g=g.subarray(x)),ae=new Uint8Array(2048),me=0),ae.set(g,me),me+=g.byteLength}}function J(f,g){return V(f,g),!0}function oe(f){ae&&0<me&&(f.enqueue(new Uint8Array(ae.buffer,0,me)),ae=null,me=0)}var xe=new TextEncoder;function ee(f){return xe.encode(f)}function Q(f){return xe.encode(f)}function Ce(f){return f.byteLength}function Ge(f,g){typeof f.error=="function"?f.error(g):f.close()}var We=Object.assign,Oe=Object.prototype.hasOwnProperty,rt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Fe={},Ye={};function Ve(f){return Oe.call(Ye,f)?!0:Oe.call(Fe,f)?!1:rt.test(f)?Ye[f]=!0:(Fe[f]=!0,!1)}var Ke=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),st=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),gt=/["'&<>]/;function it(f){if(typeof f=="boolean"||typeof f=="number"||typeof f=="bigint")return""+f;f=""+f;var g=gt.exec(f);if(g){var x="",P,F=0;for(P=g.index;P<f.length;P++){switch(f.charCodeAt(P)){case 34:g=""";break;case 38:g="&";break;case 39:g="'";break;case 60:g="<";break;case 62:g=">";break;default:continue}F!==P&&(x+=f.slice(F,P)),F=P+1,x+=g}f=F!==P?x+f.slice(F,P):x}return f}var mt=/([A-Z])/g,ft=/^ms-/,tt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ft(f){return tt.test(""+f)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":f}var at=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Wt=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Dt={pending:!1,data:null,method:null,action:null},ct=Wt.d;Wt.d={f:ct.f,r:ct.r,D:gd,C:Du,L:oa,m:nc,X:Oa,S:Wr,M:pd};var $t=[],un=null;Q('"></template>');var tr=Q("<script"),Rt=Q("<\/script>"),Le=Q('<script src="'),Xe=Q('<script type="module" src="'),Pt=Q(' nonce="'),$e=Q(' integrity="'),nr=Q(' crossorigin="'),zr=Q(' async=""><\/script>'),$r=Q("<style"),uo=/(<\/|<)(s)(cript)/gi;function Fo(f,g,x,P){return""+g+(x==="s"?"\\u0073":"\\u0053")+P}var Do=Q('<script type="importmap">'),fo=Q("<\/script>");function ho(f,g,x,P,F,Z){x=typeof g=="string"?g:g&&g.script;var q=x===void 0?tr:Q('<script nonce="'+it(x)+'"'),ye=typeof g=="string"?void 0:g&&g.style,ce=ye===void 0?$r:Q('<style nonce="'+it(ye)+'"'),we=f.idPrefix,ke=[],_e=f.bootstrapScriptContent,nt=f.bootstrapScripts,et=f.bootstrapModules;if(_e!==void 0&&(ke.push(q),$a(ke,f),ke.push(nn,ee((""+_e).replace(uo,Fo)),Rt)),_e=[],P!==void 0&&(_e.push(Do),_e.push(ee((""+JSON.stringify(P)).replace(uo,Fo))),_e.push(fo)),P=F?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof Z=="number"?Z:2e3)}:null,F={placeholderPrefix:Q(we+"P:"),segmentPrefix:Q(we+"S:"),boundaryPrefix:Q(we+"B:"),startInlineScript:q,startInlineStyle:ce,preamble:Cn(),externalRuntimeScript:null,bootstrapChunks:ke,importMapChunks:_e,onHeaders:F,headers:P,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:x,style:ye},hoistableState:null,stylesToHoist:!1},nt!==void 0)for(P=0;P<nt.length;P++)we=nt[P],ye=q=void 0,ce={rel:"preload",as:"script",fetchPriority:"low",nonce:g},typeof we=="string"?ce.href=Z=we:(ce.href=Z=we.src,ce.integrity=ye=typeof we.integrity=="string"?we.integrity:void 0,ce.crossOrigin=q=typeof we=="string"||we.crossOrigin==null?void 0:we.crossOrigin==="use-credentials"?"use-credentials":""),we=f,_e=Z,we.scriptResources[_e]=null,we.moduleScriptResources[_e]=null,we=[],Bn(we,ce),F.bootstrapScripts.add(we),ke.push(Le,ee(it(Z)),xn),x&&ke.push(Pt,ee(it(x)),xn),typeof ye=="string"&&ke.push($e,ee(it(ye)),xn),typeof q=="string"&&ke.push(nr,ee(it(q)),xn),$a(ke,f),ke.push(zr);if(et!==void 0)for(g=0;g<et.length;g++)ye=et[g],Z=P=void 0,q={rel:"modulepreload",fetchPriority:"low",nonce:x},typeof ye=="string"?q.href=nt=ye:(q.href=nt=ye.src,q.integrity=Z=typeof ye.integrity=="string"?ye.integrity:void 0,q.crossOrigin=P=typeof ye=="string"||ye.crossOrigin==null?void 0:ye.crossOrigin==="use-credentials"?"use-credentials":""),ye=f,ce=nt,ye.scriptResources[ce]=null,ye.moduleScriptResources[ce]=null,ye=[],Bn(ye,q),F.bootstrapScripts.add(ye),ke.push(Xe,ee(it(nt)),xn),x&&ke.push(Pt,ee(it(x)),xn),typeof Z=="string"&&ke.push($e,ee(it(Z)),xn),typeof P=="string"&&ke.push(nr,ee(it(P)),xn),$a(ke,f),ke.push(zr);return F}function xa(f,g,x,P,F){return{idPrefix:f===void 0?"":f,nextFormID:0,streamingFormat:0,bootstrapScriptContent:x,bootstrapScripts:P,bootstrapModules:F,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Cn(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function ut(f,g,x,P){return{insertionMode:f,selectedValue:g,tagScope:x,viewTransition:P}}function en(f){return ut(f==="http://www.w3.org/2000/svg"?4:f==="http://www.w3.org/1998/Math/MathML"?5:0,null,0,null)}function ht(f,g,x){var P=f.tagScope&-25;switch(g){case"noscript":return ut(2,null,P|1,null);case"select":return ut(2,x.value!=null?x.value:x.defaultValue,P,null);case"svg":return ut(4,null,P,null);case"picture":return ut(2,null,P|2,null);case"math":return ut(5,null,P,null);case"foreignObject":return ut(2,null,P,null);case"table":return ut(6,null,P,null);case"thead":case"tbody":case"tfoot":return ut(7,null,P,null);case"colgroup":return ut(9,null,P,null);case"tr":return ut(8,null,P,null);case"head":if(2>f.insertionMode)return ut(3,null,P,null);break;case"html":if(f.insertionMode===0)return ut(1,null,P,null)}return 6<=f.insertionMode||2>f.insertionMode?ut(2,null,P,null):f.tagScope!==P?ut(f.insertionMode,f.selectedValue,P,null):f}function Vt(f){return f===null?null:{update:f.update,enter:"none",exit:"none",share:f.update,name:f.autoName,autoName:f.autoName,nameIdx:0}}function Rr(f,g){return g.tagScope&32&&(f.instructions|=128),ut(g.insertionMode,g.selectedValue,g.tagScope|12,Vt(g.viewTransition))}function Tt(f,g){f=Vt(g.viewTransition);var x=g.tagScope|16;return f!==null&&f.share!=="none"&&(x|=64),ut(g.insertionMode,g.selectedValue,x,f)}var wi=Q("<!-- -->");function xi(f,g,x,P){return g===""?P:(P&&f.push(wi),f.push(ee(it(g))),!0)}var go=new Map,tn=Q(' style="'),ur=Q(":"),po=Q(";");function Ji(f,g){if(typeof g!="object")throw Error(n(62));var x=!0,P;for(P in g)if(Oe.call(g,P)){var F=g[P];if(F!=null&&typeof F!="boolean"&&F!==""){if(P.indexOf("--")===0){var Z=ee(it(P));F=ee(it((""+F).trim()))}else Z=go.get(P),Z===void 0&&(Z=Q(it(P.replace(mt,"-$1").toLowerCase().replace(ft,"-ms-"))),go.set(P,Z)),F=typeof F=="number"?F===0||Ke.has(P)?ee(""+F):ee(F+"px"):ee(it((""+F).trim()));x?(x=!1,f.push(tn,Z,ur,F)):f.push(po,Z,ur,F)}}x||f.push(xn)}var ar=Q(" "),ei=Q('="'),xn=Q('"'),bl=Q('=""');function Si(f,g,x){x&&typeof x!="function"&&typeof x!="symbol"&&f.push(ar,ee(g),bl)}function an(f,g,x){typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&f.push(ar,ee(g),ei,ee(it(x)),xn)}var Ic=Q(it("javascript:throw new Error('React form unexpectedly submitted.')")),Xt=Q('<input type="hidden"');function ml(f,g){this.push(Xt),Va(f),an(this,"name",g),an(this,"value",f),this.push(Je)}function Va(f){if(typeof f!="string")throw Error(n(480))}function yl(f,g){if(typeof g.$$FORM_ACTION=="function"){var x=f.nextFormID++;f=f.idPrefix+x;try{var P=g.$$FORM_ACTION(f);if(P){var F=P.data;F!=null&&F.forEach(Va)}return P}catch(Z){if(typeof Z=="object"&&Z!==null&&typeof Z.then=="function")throw Z}}return null}function Ki(f,g,x,P,F,Z,q,ye){var ce=null;if(typeof P=="function"){var we=yl(g,P);we!==null?(ye=we.name,P=we.action||"",F=we.encType,Z=we.method,q=we.target,ce=we.data):(f.push(ar,ee("formAction"),ei,Ic,xn),q=Z=F=P=ye=null,Nc(g,x))}return ye!=null&&mn(f,"name",ye),P!=null&&mn(f,"formAction",P),F!=null&&mn(f,"formEncType",F),Z!=null&&mn(f,"formMethod",Z),q!=null&&mn(f,"formTarget",q),ce}function mn(f,g,x){switch(g){case"className":an(f,"class",x);break;case"tabIndex":an(f,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":an(f,g,x);break;case"style":Ji(f,x);break;case"src":case"href":if(x==="")break;case"action":case"formAction":if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean")break;x=Ft(""+x),f.push(ar,ee(g),ei,ee(it(x)),xn);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Si(f,g.toLowerCase(),x);break;case"xlinkHref":if(typeof x=="function"||typeof x=="symbol"||typeof x=="boolean")break;x=Ft(""+x),f.push(ar,ee("xlink:href"),ei,ee(it(x)),xn);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof x!="function"&&typeof x!="symbol"&&f.push(ar,ee(g),ei,ee(it(x)),xn);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"&&f.push(ar,ee(g),bl);break;case"capture":case"download":x===!0?f.push(ar,ee(g),bl):x!==!1&&typeof x!="function"&&typeof x!="symbol"&&f.push(ar,ee(g),ei,ee(it(x)),xn);break;case"cols":case"rows":case"size":case"span":typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x&&f.push(ar,ee(g),ei,ee(it(x)),xn);break;case"rowSpan":case"start":typeof x=="function"||typeof x=="symbol"||isNaN(x)||f.push(ar,ee(g),ei,ee(it(x)),xn);break;case"xlinkActuate":an(f,"xlink:actuate",x);break;case"xlinkArcrole":an(f,"xlink:arcrole",x);break;case"xlinkRole":an(f,"xlink:role",x);break;case"xlinkShow":an(f,"xlink:show",x);break;case"xlinkTitle":an(f,"xlink:title",x);break;case"xlinkType":an(f,"xlink:type",x);break;case"xmlBase":an(f,"xml:base",x);break;case"xmlLang":an(f,"xml:lang",x);break;case"xmlSpace":an(f,"xml:space",x);break;default:if((!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=st.get(g)||g,Ve(g))){switch(typeof x){case"function":case"symbol":return;case"boolean":var P=g.toLowerCase().slice(0,5);if(P!=="data-"&&P!=="aria-")return}f.push(ar,ee(g),ei,ee(it(x)),xn)}}}var nn=Q(">"),Je=Q("/>");function xt(f,g,x){if(g!=null){if(x!=null)throw Error(n(60));if(typeof g!="object"||!("__html"in g))throw Error(n(61));g=g.__html,g!=null&&f.push(ee(""+g))}}function Xn(f){var g="";return e.Children.forEach(f,function(x){x!=null&&(g+=x)}),g}var Qi=Q(' selected=""'),Hr=Q(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function Nc(f,g){if(!(f.instructions&16)){f.instructions|=16;var x=g.preamble,P=g.bootstrapChunks;(x.htmlChunks||x.headChunks)&&P.length===0?(P.push(g.startInlineScript),$a(P,f),P.push(nn,Hr,Rt)):P.unshift(g.startInlineScript,nn,Hr,Rt)}}var Ru=Q("<!--F!-->"),Fc=Q("<!--F-->");function Bn(f,g){f.push(Sr("link"));for(var x in g)if(Oe.call(g,x)){var P=g[x];if(P!=null)switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:mn(f,x,P)}}return f.push(Je),null}var Dc=/(<\/|<)(s)(tyle)/gi;function ss(f,g,x,P){return""+g+(x==="s"?"\\73 ":"\\53 ")+P}function ji(f,g,x){f.push(Sr(x));for(var P in g)if(Oe.call(g,P)){var F=g[P];if(F!=null)switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,x));default:mn(f,P,F)}}return f.push(Je),null}function wl(f,g){f.push(Sr("title"));var x=null,P=null,F;for(F in g)if(Oe.call(g,F)){var Z=g[F];if(Z!=null)switch(F){case"children":x=Z;break;case"dangerouslySetInnerHTML":P=Z;break;default:mn(f,F,Z)}}return f.push(nn),g=Array.isArray(x)?2>x.length?x[0]:null:x,typeof g!="function"&&typeof g!="symbol"&&g!==null&&g!==void 0&&f.push(ee(it(""+g))),xt(f,P,x),f.push(ea("title")),null}var dd=Q("<!--head-->"),fd=Q("<!--body-->"),cs=Q("<!--html-->");function us(f,g){f.push(Sr("script"));var x=null,P=null,F;for(F in g)if(Oe.call(g,F)){var Z=g[F];if(Z!=null)switch(F){case"children":x=Z;break;case"dangerouslySetInnerHTML":P=Z;break;default:mn(f,F,Z)}}return f.push(nn),xt(f,P,x),typeof x=="string"&&f.push(ee((""+x).replace(uo,Fo))),f.push(ea("script")),null}function qo(f,g,x){f.push(Sr(x));var P=x=null,F;for(F in g)if(Oe.call(g,F)){var Z=g[F];if(Z!=null)switch(F){case"children":x=Z;break;case"dangerouslySetInnerHTML":P=Z;break;default:mn(f,F,Z)}}return f.push(nn),xt(f,P,x),x}function $o(f,g,x){f.push(Sr(x));var P=x=null,F;for(F in g)if(Oe.call(g,F)){var Z=g[F];if(Z!=null)switch(F){case"children":x=Z;break;case"dangerouslySetInnerHTML":P=Z;break;default:mn(f,F,Z)}}return f.push(nn),xt(f,P,x),typeof x=="string"?(f.push(ee(it(x))),null):x}var Lc=Q(`
|
|
65
|
+
`),Ys=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Vs=new Map;function Sr(f){var g=Vs.get(f);if(g===void 0){if(!Ys.test(f))throw Error(n(65,f));g=Q("<"+f),Vs.set(f,g)}return g}var ds=Q("<!DOCTYPE html>");function Xs(f,g,x,P,F,Z,q,ye,ce){switch(g){case"div":case"span":case"svg":case"path":break;case"a":f.push(Sr("a"));var we=null,ke=null,_e;for(_e in x)if(Oe.call(x,_e)){var nt=x[_e];if(nt!=null)switch(_e){case"children":we=nt;break;case"dangerouslySetInnerHTML":ke=nt;break;case"href":nt===""?an(f,"href",""):mn(f,_e,nt);break;default:mn(f,_e,nt)}}if(f.push(nn),xt(f,ke,we),typeof we=="string"){f.push(ee(it(we)));var et=null}else et=we;return et;case"g":case"p":case"li":break;case"select":f.push(Sr("select"));var rn=null,At=null,on;for(on in x)if(Oe.call(x,on)){var Qn=x[on];if(Qn!=null)switch(on){case"children":rn=Qn;break;case"dangerouslySetInnerHTML":At=Qn;break;case"defaultValue":case"value":break;default:mn(f,on,Qn)}}return f.push(nn),xt(f,At,rn),rn;case"option":var Dn=ye.selectedValue;f.push(Sr("option"));var Yr=null,Di=null,So=null,It=null,li;for(li in x)if(Oe.call(x,li)){var sr=x[li];if(sr!=null)switch(li){case"children":Yr=sr;break;case"selected":So=sr;break;case"dangerouslySetInnerHTML":It=sr;break;case"value":Di=sr;default:mn(f,li,sr)}}if(Dn!=null){var _i=Di!==null?""+Di:Xn(Yr);if(G(Dn)){for(var Ba=0;Ba<Dn.length;Ba++)if(""+Dn[Ba]===_i){f.push(Qi);break}}else""+Dn===_i&&f.push(Qi)}else So&&f.push(Qi);return f.push(nn),xt(f,It,Yr),Yr;case"textarea":f.push(Sr("textarea"));var jn=null,Hl=null,Eo=null,si;for(si in x)if(Oe.call(x,si)){var Xo=x[si];if(Xo!=null)switch(si){case"children":Eo=Xo;break;case"value":jn=Xo;break;case"defaultValue":Hl=Xo;break;case"dangerouslySetInnerHTML":throw Error(n(91));default:mn(f,si,Xo)}}if(jn===null&&Hl!==null&&(jn=Hl),f.push(nn),Eo!=null){if(jn!=null)throw Error(n(92));if(G(Eo)){if(1<Eo.length)throw Error(n(93));jn=""+Eo[0]}jn=""+Eo}return typeof jn=="string"&&jn[0]===`
|
|
66
|
+
`&&f.push(Lc),jn!==null&&f.push(ee(it(""+jn))),null;case"input":f.push(Sr("input"));var ci=null,Wl=null,Ms=null,Pi=null,_s=null,ui=null,Ul=null,Vu=null,Un=null,Ps;for(Ps in x)if(Oe.call(x,Ps)){var Zo=x[Ps];if(Zo!=null)switch(Ps){case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"input"));case"name":ci=Zo;break;case"formAction":Wl=Zo;break;case"formEncType":Ms=Zo;break;case"formMethod":Pi=Zo;break;case"formTarget":_s=Zo;break;case"defaultChecked":Un=Zo;break;case"defaultValue":Ul=Zo;break;case"checked":Vu=Zo;break;case"value":ui=Zo;break;default:mn(f,Ps,Zo)}}var tu=Ki(f,P,F,Wl,Ms,Pi,_s,ci);return Vu!==null?Si(f,"checked",Vu):Un!==null&&Si(f,"checked",Un),ui!==null?mn(f,"value",ui):Ul!==null&&mn(f,"value",Ul),f.push(Je),tu!=null&&tu.forEach(ml,f),null;case"button":f.push(Sr("button"));var Gl=null,nu=null,ru=null,Os=null,dl=null,iu=null,sa=null,Yl;for(Yl in x)if(Oe.call(x,Yl)){var Vl=x[Yl];if(Vl!=null)switch(Yl){case"children":Gl=Vl;break;case"dangerouslySetInnerHTML":nu=Vl;break;case"name":ru=Vl;break;case"formAction":Os=Vl;break;case"formEncType":dl=Vl;break;case"formMethod":iu=Vl;break;case"formTarget":sa=Vl;break;default:mn(f,Yl,Vl)}}var xd=Ki(f,P,F,Os,dl,iu,sa,ru);if(f.push(nn),xd!=null&&xd.forEach(ml,f),xt(f,nu,Gl),typeof Gl=="string"){f.push(ee(it(Gl)));var Co=null}else Co=Gl;return Co;case"form":f.push(Sr("form"));var Sd=null,oo=null,fl=null,za=null,ou=null,au=null,lu;for(lu in x)if(Oe.call(x,lu)){var Xl=x[lu];if(Xl!=null)switch(lu){case"children":Sd=Xl;break;case"dangerouslySetInnerHTML":oo=Xl;break;case"action":fl=Xl;break;case"encType":za=Xl;break;case"method":ou=Xl;break;case"target":au=Xl;break;default:mn(f,lu,Xl)}}var Ed=null,Xu=null;if(typeof fl=="function"){var As=yl(P,fl);As!==null?(fl=As.action||"",za=As.encType,ou=As.method,au=As.target,Ed=As.data,Xu=As.name):(f.push(ar,ee("action"),ei,Ic,xn),au=ou=za=fl=null,Nc(P,F))}if(fl!=null&&mn(f,"action",fl),za!=null&&mn(f,"encType",za),ou!=null&&mn(f,"method",ou),au!=null&&mn(f,"target",au),f.push(nn),Xu!==null&&(f.push(Xt),an(f,"name",Xu),f.push(Je),Ed!=null&&Ed.forEach(ml,f)),xt(f,oo,Sd),typeof Sd=="string"){f.push(ee(it(Sd)));var Cd=null}else Cd=Sd;return Cd;case"menuitem":f.push(Sr("menuitem"));for(var su in x)if(Oe.call(x,su)){var $d=x[su];if($d!=null)switch(su){case"children":case"dangerouslySetInnerHTML":throw Error(n(400));default:mn(f,su,$d)}}return f.push(nn),null;case"object":f.push(Sr("object"));var Zu=null,ef=null,cu;for(cu in x)if(Oe.call(x,cu)){var Is=x[cu];if(Is!=null)switch(cu){case"children":Zu=Is;break;case"dangerouslySetInnerHTML":ef=Is;break;case"data":var Sf=Ft(""+Is);if(Sf==="")break;f.push(ar,ee("data"),ei,ee(it(Sf)),xn);break;default:mn(f,cu,Is)}}if(f.push(nn),xt(f,ef,Zu),typeof Zu=="string"){f.push(ee(it(Zu)));var Ef=null}else Ef=Zu;return Ef;case"title":var ca=ye.tagScope&1,Td=ye.tagScope&4;if(ye.insertionMode===4||ca||x.itemProp!=null)var Cf=wl(f,x);else Td?Cf=null:(wl(F.hoistableChunks,x),Cf=void 0);return Cf;case"link":var Dr=ye.tagScope&1,Ha=ye.tagScope&4,di=x.rel,hl=x.href,To=x.precedence;if(ye.insertionMode===4||Dr||x.itemProp!=null||typeof di!="string"||typeof hl!="string"||hl===""){Bn(f,x);var En=null}else if(x.rel==="stylesheet")if(typeof To!="string"||x.disabled!=null||x.onLoad||x.onError)En=Bn(f,x);else{var Li=F.styles.get(To),Wa=P.styleResources.hasOwnProperty(hl)?P.styleResources[hl]:void 0;if(Wa!==null){P.styleResources[hl]=null,Li||(Li={precedence:ee(it(To)),rules:[],hrefs:[],sheets:new Map},F.styles.set(To,Li));var vr={state:0,props:We({},x,{"data-precedence":x.precedence,precedence:null})};if(Wa){Wa.length===2&&Ml(vr.props,Wa);var gc=F.preloads.stylesheets.get(hl);gc&&0<gc.length?gc.length=0:vr.state=1}Li.sheets.set(hl,vr),q&&q.stylesheets.add(vr)}else if(Li){var uu=Li.sheets.get(hl);uu&&q&&q.stylesheets.add(uu)}ce&&f.push(wi),En=null}else x.onLoad||x.onError?En=Bn(f,x):(ce&&f.push(wi),En=Ha?null:Bn(F.hoistableChunks,x));return En;case"script":var kd=ye.tagScope&1,Ns=x.async;if(typeof x.src!="string"||!x.src||!Ns||typeof Ns=="function"||typeof Ns=="symbol"||x.onLoad||x.onError||ye.insertionMode===4||kd||x.itemProp!=null)var Zl=us(f,x);else{var pc=x.src;if(x.type==="module")var Jo=P.moduleScriptResources,Jl=F.preloads.moduleScripts;else Jo=P.scriptResources,Jl=F.preloads.scripts;var vc=Jo.hasOwnProperty(pc)?Jo[pc]:void 0;if(vc!==null){Jo[pc]=null;var s=x;if(vc){vc.length===2&&(s=We({},x),Ml(s,vc));var d=Jl.get(pc);d&&(d.length=0)}var m=[];F.scripts.add(m),us(m,s)}ce&&f.push(wi),Zl=null}return Zl;case"style":var R=ye.tagScope&1,N=x.precedence,X=x.href,le=x.nonce;if(ye.insertionMode===4||R||x.itemProp!=null||typeof N!="string"||typeof X!="string"||X===""){f.push(Sr("style"));var pe=null,Ie=null,Se;for(Se in x)if(Oe.call(x,Se)){var Pe=x[Se];if(Pe!=null)switch(Se){case"children":pe=Pe;break;case"dangerouslySetInnerHTML":Ie=Pe;break;default:mn(f,Se,Pe)}}f.push(nn);var Qe=Array.isArray(pe)?2>pe.length?pe[0]:null:pe;typeof Qe!="function"&&typeof Qe!="symbol"&&Qe!==null&&Qe!==void 0&&f.push(ee((""+Qe).replace(Dc,ss))),xt(f,Ie,pe),f.push(ea("style"));var ot=null}else{var qe=F.styles.get(N);if((P.styleResources.hasOwnProperty(X)?P.styleResources[X]:void 0)!==null){P.styleResources[X]=null,qe||(qe={precedence:ee(it(N)),rules:[],hrefs:[],sheets:new Map},F.styles.set(N,qe));var Be=F.nonce.style;if(!Be||Be===le){qe.hrefs.push(ee(it(X)));var jt=qe.rules,In=null,Mt=null,pn;for(pn in x)if(Oe.call(x,pn)){var Vr=x[pn];if(Vr!=null)switch(pn){case"children":In=Vr;break;case"dangerouslySetInnerHTML":Mt=Vr}}var Xr=Array.isArray(In)?2>In.length?In[0]:null:In;typeof Xr!="function"&&typeof Xr!="symbol"&&Xr!==null&&Xr!==void 0&&jt.push(ee((""+Xr).replace(Dc,ss))),xt(jt,Mt,In)}}qe&&q&&q.styles.add(qe),ce&&f.push(wi),ot=void 0}return ot;case"meta":var wn=ye.tagScope&1,Or=ye.tagScope&4;if(ye.insertionMode===4||wn||x.itemProp!=null)var ua=ji(f,x,"meta");else ce&&f.push(wi),ua=Or?null:typeof x.charSet=="string"?ji(F.charsetChunks,x,"meta"):x.name==="viewport"?ji(F.viewportChunks,x,"meta"):ji(F.hoistableChunks,x,"meta");return ua;case"listing":case"pre":f.push(Sr(g));var Oi=null,pt=null,kn;for(kn in x)if(Oe.call(x,kn)){var Rn=x[kn];if(Rn!=null)switch(kn){case"children":Oi=Rn;break;case"dangerouslySetInnerHTML":pt=Rn;break;default:mn(f,kn,Rn)}}if(f.push(nn),pt!=null){if(Oi!=null)throw Error(n(60));if(typeof pt!="object"||!("__html"in pt))throw Error(n(61));var Pn=pt.__html;Pn!=null&&(typeof Pn=="string"&&0<Pn.length&&Pn[0]===`
|
|
67
|
+
`?f.push(Lc,ee(Pn)):f.push(ee(""+Pn)))}return typeof Oi=="string"&&Oi[0]===`
|
|
68
|
+
`&&f.push(Lc),Oi;case"img":var qn=ye.tagScope&3,sn=x.src,Ut=x.srcSet;if(!(x.loading==="lazy"||!sn&&!Ut||typeof sn!="string"&&sn!=null||typeof Ut!="string"&&Ut!=null||x.fetchPriority==="low"||qn)&&(typeof sn!="string"||sn[4]!==":"||sn[0]!=="d"&&sn[0]!=="D"||sn[1]!=="a"&&sn[1]!=="A"||sn[2]!=="t"&&sn[2]!=="T"||sn[3]!=="a"&&sn[3]!=="A")&&(typeof Ut!="string"||Ut[4]!==":"||Ut[0]!=="d"&&Ut[0]!=="D"||Ut[1]!=="a"&&Ut[1]!=="A"||Ut[2]!=="t"&&Ut[2]!=="T"||Ut[3]!=="a"&&Ut[3]!=="A")){q!==null&&ye.tagScope&64&&(q.suspenseyImages=!0);var fi=typeof x.sizes=="string"?x.sizes:void 0,Mn=Ut?Ut+`
|
|
69
|
+
`+(fi||""):sn,Zr=F.preloads.images,Gn=Zr.get(Mn);if(Gn)(x.fetchPriority==="high"||10>F.highImagePreloads.size)&&(Zr.delete(Mn),F.highImagePreloads.add(Gn));else if(!P.imageResources.hasOwnProperty(Mn)){P.imageResources[Mn]=$t;var Bi=x.crossOrigin,Fs=typeof Bi=="string"?Bi==="use-credentials"?Bi:"":void 0,zi=F.headers,da;zi&&0<zi.remainingCapacity&&typeof x.srcSet!="string"&&(x.fetchPriority==="high"||500>zi.highImagePreloads.length)&&(da=Yc(sn,"image",{imageSrcSet:x.srcSet,imageSizes:x.sizes,crossOrigin:Fs,integrity:x.integrity,nonce:x.nonce,type:x.type,fetchPriority:x.fetchPriority,referrerPolicy:x.refererPolicy}),0<=(zi.remainingCapacity-=da.length+2))?(F.resets.image[Mn]=$t,zi.highImagePreloads&&(zi.highImagePreloads+=", "),zi.highImagePreloads+=da):(Gn=[],Bn(Gn,{rel:"preload",as:"image",href:Ut?void 0:sn,imageSrcSet:Ut,imageSizes:fi,crossOrigin:Fs,integrity:x.integrity,type:x.type,fetchPriority:x.fetchPriority,referrerPolicy:x.referrerPolicy}),x.fetchPriority==="high"||10>F.highImagePreloads.size?F.highImagePreloads.add(Gn):(F.bulkPreloads.add(Gn),Zr.set(Mn,Gn)))}}return ji(f,x,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return ji(f,x,g);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(2>ye.insertionMode){var fa=Z||F.preamble;if(fa.headChunks)throw Error(n(545,"`<head>`"));Z!==null&&f.push(dd),fa.headChunks=[];var ha=qo(fa.headChunks,x,"head")}else ha=$o(f,x,"head");return ha;case"body":if(2>ye.insertionMode){var Lr=Z||F.preamble;if(Lr.bodyChunks)throw Error(n(545,"`<body>`"));Z!==null&&f.push(fd),Lr.bodyChunks=[];var a=qo(Lr.bodyChunks,x,"body")}else a=$o(f,x,"body");return a;case"html":if(ye.insertionMode===0){var c=Z||F.preamble;if(c.htmlChunks)throw Error(n(545,"`<html>`"));Z!==null&&f.push(cs),c.htmlChunks=[ds];var b=qo(c.htmlChunks,x,"html")}else b=$o(f,x,"html");return b;default:if(g.indexOf("-")!==-1){f.push(Sr(g));var T=null,A=null,U;for(U in x)if(Oe.call(x,U)){var te=x[U];if(te!=null){var de=U;switch(U){case"children":T=te;break;case"dangerouslySetInnerHTML":A=te;break;case"style":Ji(f,te);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":de="class";default:if(Ve(U)&&typeof te!="function"&&typeof te!="symbol"&&te!==!1){if(te===!0)te="";else if(typeof te=="object")continue;f.push(ar,ee(de),ei,ee(it(te)),xn)}}}}return f.push(nn),xt(f,A,T),T}}return $o(f,x,g)}var Bc=new Map;function ea(f){var g=Bc.get(f);return g===void 0&&(g=Q("</"+f+">"),Bc.set(f,g)),g}function Zs(f,g){f=f.preamble,f.htmlChunks===null&&g.htmlChunks&&(f.htmlChunks=g.htmlChunks),f.headChunks===null&&g.headChunks&&(f.headChunks=g.headChunks),f.bodyChunks===null&&g.bodyChunks&&(f.bodyChunks=g.bodyChunks)}function Ei(f,g){g=g.bootstrapChunks;for(var x=0;x<g.length-1;x++)V(f,g[x]);return x<g.length?(x=g[x],g.length=0,J(f,x)):!0}var Lo=Q("requestAnimationFrame(function(){$RT=performance.now()});"),Mu=Q('<template id="'),Js=Q('"></template>'),Ci=Q("<!--&-->"),Ks=Q("<!--/&-->"),Xa=Q("<!--$-->"),fs=Q('<!--$?--><template id="'),Ti=Q('"></template>'),Mr=Q("<!--$!-->"),Nn=Q("<!--/$-->"),_u=Q("<template"),Sa=Q('"'),Bo=Q(' data-dgst="');Q(' data-msg="'),Q(' data-stck="'),Q(' data-cstck="');var Pu=Q("></template>");function Ea(f,g,x){if(V(f,fs),x===null)throw Error(n(395));return V(f,g.boundaryPrefix),V(f,ee(x.toString(16))),J(f,Ti)}var ta=Q('<div hidden id="'),hs=Q('">'),Ca=Q("</div>"),Ta=Q('<svg aria-hidden="true" style="display:none" id="'),gs=Q('">'),zt=Q("</svg>"),zo=Q('<math aria-hidden="true" style="display:none" id="'),dr=Q('">'),na=Q("</math>"),Er=Q('<table hidden id="'),Za=Q('">'),xl=Q("</table>"),ra=Q('<table hidden><tbody id="'),ka=Q('">'),fr=Q("</tbody></table>"),Ra=Q('<table hidden><tr id="'),Ma=Q('">'),Sl=Q("</tr></table>"),Ja=Q('<table hidden><colgroup id="'),El=Q('">'),ki=Q("</colgroup></table>");function Cl(f,g,x,P){switch(x.insertionMode){case 0:case 1:case 3:case 2:return V(f,ta),V(f,g.segmentPrefix),V(f,ee(P.toString(16))),J(f,hs);case 4:return V(f,Ta),V(f,g.segmentPrefix),V(f,ee(P.toString(16))),J(f,gs);case 5:return V(f,zo),V(f,g.segmentPrefix),V(f,ee(P.toString(16))),J(f,dr);case 6:return V(f,Er),V(f,g.segmentPrefix),V(f,ee(P.toString(16))),J(f,Za);case 7:return V(f,ra),V(f,g.segmentPrefix),V(f,ee(P.toString(16))),J(f,ka);case 8:return V(f,Ra),V(f,g.segmentPrefix),V(f,ee(P.toString(16))),J(f,Ma);case 9:return V(f,Ja),V(f,g.segmentPrefix),V(f,ee(P.toString(16))),J(f,El);default:throw Error(n(397))}}function Ho(f,g){switch(g.insertionMode){case 0:case 1:case 3:case 2:return J(f,Ca);case 4:return J(f,zt);case 5:return J(f,na);case 6:return J(f,xl);case 7:return J(f,fr);case 8:return J(f,Sl);case 9:return J(f,ki);default:throw Error(n(397))}}var Ou=Q('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Au=Q('$RS("'),Iu=Q('","'),ps=Q('")<\/script>');Q('<template data-rsi="" data-sid="'),Q('" data-pid="');var vs=Q(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
70
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);ee(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),
|
|
71
|
+
H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(B){var z=
|
|
72
|
+
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
|
|
73
|
+
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var bs=Q('$RC("'),_r=Q(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
74
|
+
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
75
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),hd=Q('$RR("'),Ka=Q('","'),Qs=Q('",'),zc=Q('"'),_a=Q(")<\/script>");Q('<template data-rci="" data-bid="'),Q('<template data-rri="" data-bid="'),Q('" data-sid="'),Q('" data-sty="');var Qa=Q('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),ms=Q('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),Wo=Q('$RX("'),ja=Q('"'),qa=Q(","),Nu=Q(")<\/script>");Q('<template data-rxi="" data-bid="'),Q('" data-dgst="'),Q('" data-msg="'),Q('" data-stck="'),Q('" data-cstck="');var Qd=/[<\u2028\u2029]/g;function Tl(f){return JSON.stringify(f).replace(Qd,function(g){switch(g){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var hr=/[&><\u2028\u2029]/g;function ia(f){return JSON.stringify(f).replace(hr,function(g){switch(g){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var js=Q(' media="not all" data-precedence="'),qs=Q('" data-href="'),Hc=Q('">'),qi=Q("</style>"),$i=!1,Fi=!0;function eo(f){var g=f.rules,x=f.hrefs,P=0;if(x.length){for(V(this,un.startInlineStyle),V(this,js),V(this,f.precedence),V(this,qs);P<x.length-1;P++)V(this,x[P]),V(this,$s);for(V(this,x[P]),V(this,Hc),P=0;P<g.length;P++)V(this,g[P]);Fi=J(this,qi),$i=!0,g.length=0,x.length=0}}function _n(f){return f.state!==2?$i=!0:!1}function to(f,g,x){return $i=!1,Fi=!0,un=x,g.styles.forEach(eo,f),un=null,g.stylesheets.forEach(_n),$i&&(x.stylesToHoist=!0),Fi}function zn(f){for(var g=0;g<f.length;g++)V(this,f[g]);f.length=0}var Uo=[];function Wc(f){Bn(Uo,f.props);for(var g=0;g<Uo.length;g++)V(this,Uo[g]);Uo.length=0,f.state=2}var Uc=Q(' data-precedence="'),Gc=Q('" data-href="'),$s=Q(" "),Pa=Q('">'),ec=Q("</style>");function tc(f){var g=0<f.sheets.size;f.sheets.forEach(Wc,this),f.sheets.clear();var x=f.rules,P=f.hrefs;if(!g||P.length){if(V(this,un.startInlineStyle),V(this,Uc),V(this,f.precedence),f=0,P.length){for(V(this,Gc);f<P.length-1;f++)V(this,P[f]),V(this,$s);V(this,P[f])}for(V(this,Pa),f=0;f<x.length;f++)V(this,x[f]);V(this,ec),x.length=0,P.length=0}}function Ri(f){if(f.state===0){f.state=1;var g=f.props;for(Bn(Uo,{rel:"preload",as:"style",href:f.props.href,crossOrigin:g.crossOrigin,fetchPriority:g.fetchPriority,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy}),f=0;f<Uo.length;f++)V(this,Uo[f]);Uo.length=0}}function Hn(f){f.sheets.forEach(Ri,this),f.sheets.clear()}Q('<link rel="expect" href="#'),Q('" blocking="render"/>');var dn=Q(' id="');function $a(f,g){!(g.instructions&32)&&(g.instructions|=32,f.push(dn,ee(it("_"+g.idPrefix+"R_")),xn))}var kl=Q("["),Rl=Q(",["),el=Q(","),Fu=Q("]");function Nr(f,g){V(f,kl);var x=kl;g.stylesheets.forEach(function(P){if(P.state!==2)if(P.state===3)V(f,x),V(f,ee(ia(""+P.props.href))),V(f,Fu),x=Rl;else{V(f,x);var F=P.props["data-precedence"],Z=P.props,q=Ft(""+P.props.href);V(f,ee(ia(q))),F=""+F,V(f,el),V(f,ee(ia(F)));for(var ye in Z)if(Oe.call(Z,ye)&&(F=Z[ye],F!=null))switch(ye){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error(n(399,"link"));default:jd(f,ye,F)}V(f,Fu),x=Rl,P.state=3}}),V(f,Fu)}function jd(f,g,x){var P=g.toLowerCase();switch(typeof x){case"function":case"symbol":return}switch(g){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":P="class",g=""+x;break;case"hidden":if(x===!1)return;g="";break;case"src":case"href":x=Ft(x),g=""+x;break;default:if(2<g.length&&(g[0]==="o"||g[0]==="O")&&(g[1]==="n"||g[1]==="N")||!Ve(g))return;g=""+x}V(f,el),V(f,ee(ia(P))),V(f,el),V(f,ee(ia(g)))}function Go(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function gd(f){var g=Kt||null;if(g){var x=g.resumableState,P=g.renderState;if(typeof f=="string"&&f){if(!x.dnsResources.hasOwnProperty(f)){x.dnsResources[f]=null,x=P.headers;var F,Z;(Z=x&&0<x.remainingCapacity)&&(Z=(F="<"+(""+f).replace(_l,Ur)+">; rel=dns-prefetch",0<=(x.remainingCapacity-=F.length+2))),Z?(P.resets.dns[f]=null,x.preconnects&&(x.preconnects+=", "),x.preconnects+=F):(F=[],Bn(F,{href:f,rel:"dns-prefetch"}),P.preconnects.add(F))}ul(g)}}else ct.D(f)}function Du(f,g){var x=Kt||null;if(x){var P=x.resumableState,F=x.renderState;if(typeof f=="string"&&f){var Z=g==="use-credentials"?"credentials":typeof g=="string"?"anonymous":"default";if(!P.connectResources[Z].hasOwnProperty(f)){P.connectResources[Z][f]=null,P=F.headers;var q,ye;if(ye=P&&0<P.remainingCapacity){if(ye="<"+(""+f).replace(_l,Ur)+">; rel=preconnect",typeof g=="string"){var ce=(""+g).replace(Fr,tl);ye+='; crossorigin="'+ce+'"'}ye=(q=ye,0<=(P.remainingCapacity-=q.length+2))}ye?(F.resets.connect[Z][f]=null,P.preconnects&&(P.preconnects+=", "),P.preconnects+=q):(Z=[],Bn(Z,{rel:"preconnect",href:f,crossOrigin:g}),F.preconnects.add(Z))}ul(x)}}else ct.C(f,g)}function oa(f,g,x){var P=Kt||null;if(P){var F=P.resumableState,Z=P.renderState;if(g&&f){switch(g){case"image":if(x)var q=x.imageSrcSet,ye=x.imageSizes,ce=x.fetchPriority;var we=q?q+`
|
|
76
|
+
`+(ye||""):f;if(F.imageResources.hasOwnProperty(we))return;F.imageResources[we]=$t,F=Z.headers;var ke;F&&0<F.remainingCapacity&&typeof q!="string"&&ce==="high"&&(ke=Yc(f,g,x),0<=(F.remainingCapacity-=ke.length+2))?(Z.resets.image[we]=$t,F.highImagePreloads&&(F.highImagePreloads+=", "),F.highImagePreloads+=ke):(F=[],Bn(F,We({rel:"preload",href:q?void 0:f,as:g},x)),ce==="high"?Z.highImagePreloads.add(F):(Z.bulkPreloads.add(F),Z.preloads.images.set(we,F)));break;case"style":if(F.styleResources.hasOwnProperty(f))return;q=[],Bn(q,We({rel:"preload",href:f,as:g},x)),F.styleResources[f]=!x||typeof x.crossOrigin!="string"&&typeof x.integrity!="string"?$t:[x.crossOrigin,x.integrity],Z.preloads.stylesheets.set(f,q),Z.bulkPreloads.add(q);break;case"script":if(F.scriptResources.hasOwnProperty(f))return;q=[],Z.preloads.scripts.set(f,q),Z.bulkPreloads.add(q),Bn(q,We({rel:"preload",href:f,as:g},x)),F.scriptResources[f]=!x||typeof x.crossOrigin!="string"&&typeof x.integrity!="string"?$t:[x.crossOrigin,x.integrity];break;default:if(F.unknownResources.hasOwnProperty(g)){if(q=F.unknownResources[g],q.hasOwnProperty(f))return}else q={},F.unknownResources[g]=q;if(q[f]=$t,(F=Z.headers)&&0<F.remainingCapacity&&g==="font"&&(we=Yc(f,g,x),0<=(F.remainingCapacity-=we.length+2)))Z.resets.font[f]=$t,F.fontPreloads&&(F.fontPreloads+=", "),F.fontPreloads+=we;else switch(F=[],f=We({rel:"preload",href:f,as:g},x),Bn(F,f),g){case"font":Z.fontPreloads.add(F);break;default:Z.bulkPreloads.add(F)}}ul(P)}}else ct.L(f,g,x)}function nc(f,g){var x=Kt||null;if(x){var P=x.resumableState,F=x.renderState;if(f){var Z=g&&typeof g.as=="string"?g.as:"script";switch(Z){case"script":if(P.moduleScriptResources.hasOwnProperty(f))return;Z=[],P.moduleScriptResources[f]=!g||typeof g.crossOrigin!="string"&&typeof g.integrity!="string"?$t:[g.crossOrigin,g.integrity],F.preloads.moduleScripts.set(f,Z);break;default:if(P.moduleUnknownResources.hasOwnProperty(Z)){var q=P.unknownResources[Z];if(q.hasOwnProperty(f))return}else q={},P.moduleUnknownResources[Z]=q;Z=[],q[f]=$t}Bn(Z,We({rel:"modulepreload",href:f},g)),F.bulkPreloads.add(Z),ul(x)}}else ct.m(f,g)}function Wr(f,g,x){var P=Kt||null;if(P){var F=P.resumableState,Z=P.renderState;if(f){g=g||"default";var q=Z.styles.get(g),ye=F.styleResources.hasOwnProperty(f)?F.styleResources[f]:void 0;ye!==null&&(F.styleResources[f]=null,q||(q={precedence:ee(it(g)),rules:[],hrefs:[],sheets:new Map},Z.styles.set(g,q)),g={state:0,props:We({rel:"stylesheet",href:f,"data-precedence":g},x)},ye&&(ye.length===2&&Ml(g.props,ye),(Z=Z.preloads.stylesheets.get(f))&&0<Z.length?Z.length=0:g.state=1),q.sheets.set(f,g),ul(P))}}else ct.S(f,g,x)}function Oa(f,g){var x=Kt||null;if(x){var P=x.resumableState,F=x.renderState;if(f){var Z=P.scriptResources.hasOwnProperty(f)?P.scriptResources[f]:void 0;Z!==null&&(P.scriptResources[f]=null,g=We({src:f,async:!0},g),Z&&(Z.length===2&&Ml(g,Z),f=F.preloads.scripts.get(f))&&(f.length=0),f=[],F.scripts.add(f),us(f,g),ul(x))}}else ct.X(f,g)}function pd(f,g){var x=Kt||null;if(x){var P=x.resumableState,F=x.renderState;if(f){var Z=P.moduleScriptResources.hasOwnProperty(f)?P.moduleScriptResources[f]:void 0;Z!==null&&(P.moduleScriptResources[f]=null,g=We({src:f,type:"module",async:!0},g),Z&&(Z.length===2&&Ml(g,Z),f=F.preloads.moduleScripts.get(f))&&(f.length=0),f=[],F.scripts.add(f),us(f,g),ul(x))}}else ct.M(f,g)}function Ml(f,g){f.crossOrigin==null&&(f.crossOrigin=g[0]),f.integrity==null&&(f.integrity=g[1])}function Yc(f,g,x){f=(""+f).replace(_l,Ur),g=(""+g).replace(Fr,tl),g="<"+f+'>; rel=preload; as="'+g+'"';for(var P in x)Oe.call(x,P)&&(f=x[P],typeof f=="string"&&(g+="; "+P.toLowerCase()+'="'+(""+f).replace(Fr,tl)+'"'));return g}var _l=/[<>\r\n]/g;function Ur(f){switch(f){case"<":return"%3C";case">":return"%3E";case`
|
|
77
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}var Fr=/["';,\r\n]/g;function tl(f){switch(f){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
78
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Fn(f){this.styles.add(f)}function Tn(f){this.stylesheets.add(f)}function Pl(f,g){g.styles.forEach(Fn,f),g.stylesheets.forEach(Tn,f),g.suspenseyImages&&(f.suspenseyImages=!0)}function ys(f){return 0<f.stylesheets.size||f.suspenseyImages}var Vc=Function.prototype.bind,ws=Symbol.for("react.client.reference");function Lu(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===ws?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case o:return"Fragment";case u:return"Profiler";case l:return"StrictMode";case w:return"Suspense";case C:return"SuspenseList";case W:return"Activity"}if(typeof f=="object")switch(f.$$typeof){case i:return"Portal";case y:return f.displayName||"Context";case p:return(f._context.displayName||"Context")+".Consumer";case S:var g=f.render;return f=f.displayName,f||(f=g.displayName||g.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case M:return g=f.displayName||null,g!==null?g:Lu(f.type)||"Memo";case O:g=f._payload,f=f._init;try{return Lu(f(g))}catch{}}return null}var qd={},Zn=null;function Aa(f,g){if(f!==g){f.context._currentValue=f.parentValue,f=f.parent;var x=g.parent;if(f===null){if(x!==null)throw Error(n(401))}else{if(x===null)throw Error(n(401));Aa(f,x)}g.context._currentValue=g.value}}function vd(f){f.context._currentValue=f.parentValue,f=f.parent,f!==null&&vd(f)}function h(f){var g=f.parent;g!==null&&h(g),f.context._currentValue=f.value}function v(f,g){if(f.context._currentValue=f.parentValue,f=f.parent,f===null)throw Error(n(402));f.depth===g.depth?Aa(f,g):v(f,g)}function E(f,g){var x=g.parent;if(x===null)throw Error(n(402));f.depth===x.depth?Aa(f,x):E(f,x),g.context._currentValue=g.value}function _(f){var g=Zn;g!==f&&(g===null?h(f):f===null?vd(g):g.depth===f.depth?Aa(g,f):g.depth>f.depth?v(g,f):E(g,f),Zn=f)}var z={enqueueSetState:function(f,g){f=f._reactInternals,f.queue!==null&&f.queue.push(g)},enqueueReplaceState:function(f,g){f=f._reactInternals,f.replace=!0,f.queue=[g]},enqueueForceUpdate:function(){}},j={id:1,overflow:""};function re(f,g,x){var P=f.id;f=f.overflow;var F=32-Re(P)-1;P&=~(1<<F),x+=1;var Z=32-Re(g)+F;if(30<Z){var q=F-F%5;return Z=(P&(1<<q)-1).toString(32),P>>=q,F-=q,{id:1<<32-Re(g)+F|x<<F|P,overflow:Z+f}}return{id:1<<Z|x<<F|P,overflow:f}}var Re=Math.clz32?Math.clz32:Ne,ge=Math.log,Te=Math.LN2;function Ne(f){return f>>>=0,f===0?32:31-(ge(f)/Te|0)|0}function Ae(){}var je=Error(n(460));function yt(f,g,x){switch(x=f[x],x===void 0?f.push(g):x!==g&&(g.then(Ae,Ae),g=x),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(Ae,Ae):(f=g,f.status="pending",f.then(function(P){if(g.status==="pending"){var F=g;F.status="fulfilled",F.value=P}},function(P){if(g.status==="pending"){var F=g;F.status="rejected",F.reason=P}})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}throw Zt=g,je}}var Zt=null;function Ot(){if(Zt===null)throw Error(n(459));var f=Zt;return Zt=null,f}function Et(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var Lt=typeof Object.is=="function"?Object.is:Et,_t=null,Wn=null,Jt=null,ln=null,yn=null,Ht=null,Jn=!1,fn=!1,ti=0,Sn=0,cn=-1,hn=0,Bt=null,gn=null,Pr=0;function Qt(){if(_t===null)throw Error(n(321));return _t}function nl(){if(0<Pr)throw Error(n(312));return{memoizedState:null,queue:null,next:null}}function Ia(){return Ht===null?yn===null?(Jn=!1,yn=Ht=nl()):(Jn=!0,Ht=yn):Ht.next===null?(Jn=!1,Ht=Ht.next=nl()):(Jn=!0,Ht=Ht.next),Ht}function ni(){var f=Bt;return Bt=null,f}function vo(){ln=Jt=Wn=_t=null,fn=!1,yn=null,Pr=0,Ht=gn=null}function bo(f,g){return typeof g=="function"?g(f):g}function mo(f,g,x){if(_t=Qt(),Ht=Ia(),Jn){var P=Ht.queue;if(g=P.dispatch,gn!==null&&(x=gn.get(P),x!==void 0)){gn.delete(P),P=Ht.memoizedState;do P=f(P,x.action),x=x.next;while(x!==null);return Ht.memoizedState=P,[P,g]}return[Ht.memoizedState,g]}return f=f===bo?typeof g=="function"?g():g:x!==void 0?x(g):g,Ht.memoizedState=f,f=Ht.queue={last:null,dispatch:null},f=f.dispatch=Na.bind(null,_t,f),[Ht.memoizedState,f]}function aa(f,g){if(_t=Qt(),Ht=Ia(),g=g===void 0?null:g,Ht!==null){var x=Ht.memoizedState;if(x!==null&&g!==null){var P=x[1];e:if(P===null)P=!1;else{for(var F=0;F<P.length&&F<g.length;F++)if(!Lt(g[F],P[F])){P=!1;break e}P=!0}if(P)return x[0]}}return f=f(),Ht.memoizedState=[f,g],f}function Na(f,g,x){if(25<=Pr)throw Error(n(301));if(f===_t)if(fn=!0,f={action:x,next:null},gn===null&&(gn=new Map),x=gn.get(g),x===void 0)gn.set(g,f);else{for(g=x;g.next!==null;)g=g.next;g.next=f}}function Cr(){throw Error(n(440))}function Ol(){throw Error(n(394))}function Al(){throw Error(n(479))}function rc(f,g,x){Qt();var P=Sn++,F=Jt;if(typeof f.$$FORM_ACTION=="function"){var Z=null,q=ln;F=F.formState;var ye=f.$$IS_SIGNATURE_EQUAL;if(F!==null&&typeof ye=="function"){var ce=F[1];ye.call(f,F[2],F[3])&&(Z=x!==void 0?"p"+x:"k"+ne(JSON.stringify([q,null,P]),0),ce===Z&&(cn=P,g=F[0]))}var we=f.bind(null,g);return f=function(_e){we(_e)},typeof we.$$FORM_ACTION=="function"&&(f.$$FORM_ACTION=function(_e){_e=we.$$FORM_ACTION(_e),x!==void 0&&(x+="",_e.action=x);var nt=_e.data;return nt&&(Z===null&&(Z=x!==void 0?"p"+x:"k"+ne(JSON.stringify([q,null,P]),0)),nt.append("$ACTION_KEY",Z)),_e}),[g,f,!1]}var ke=f.bind(null,g);return[g,function(_e){ke(_e)},!1]}function Xc(f){var g=hn;return hn+=1,Bt===null&&(Bt=[]),yt(Bt,f,g)}function xs(){throw Error(n(393))}var rl={readContext:function(f){return f._currentValue},use:function(f){if(f!==null&&typeof f=="object"){if(typeof f.then=="function")return Xc(f);if(f.$$typeof===y)return f._currentValue}throw Error(n(438,String(f)))},useContext:function(f){return Qt(),f._currentValue},useMemo:aa,useReducer:mo,useRef:function(f){_t=Qt(),Ht=Ia();var g=Ht.memoizedState;return g===null?(f={current:f},Ht.memoizedState=f):g},useState:function(f){return mo(bo,f)},useInsertionEffect:Ae,useLayoutEffect:Ae,useCallback:function(f,g){return aa(function(){return f},g)},useImperativeHandle:Ae,useEffect:Ae,useDebugValue:Ae,useDeferredValue:function(f,g){return Qt(),g!==void 0?g:f},useTransition:function(){return Qt(),[!1,Ol]},useId:function(){var f=Wn.treeContext,g=f.overflow;f=f.id,f=(f&~(1<<32-Re(f)-1)).toString(32)+g;var x=ri;if(x===null)throw Error(n(404));return g=ti++,f="_"+x.idPrefix+"R_"+f,0<g&&(f+="H"+g.toString(32)),f+"_"},useSyncExternalStore:function(f,g,x){if(x===void 0)throw Error(n(407));return x()},useOptimistic:function(f){return Qt(),[f,Al]},useActionState:rc,useFormState:rc,useHostTransitionStatus:function(){return Qt(),Dt},useMemoCache:function(f){for(var g=Array(f),x=0;x<f;x++)g[x]=B;return g},useCacheRefresh:function(){return xs},useEffectEvent:function(){return Cr}},ri=null,ic={getCacheForType:function(){throw Error(n(248))},cacheSignal:function(){throw Error(n(248))}},ii,no;function Fa(f){if(ii===void 0)try{throw Error()}catch(x){var g=x.stack.trim().match(/\n( *(at )?)/);ii=g&&g[1]||"",no=-1<x.stack.indexOf(`
|
|
79
|
+
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
80
|
+
`+ii+f+no}var oc=!1;function Da(f,g){if(!f||oc)return"";oc=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var P={DetermineComponentFrameRoot:function(){try{if(g){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(et){var nt=et}Reflect.construct(f,[],_e)}else{try{_e.call()}catch(et){nt=et}f.call(_e.prototype)}}else{try{throw Error()}catch(et){nt=et}(_e=f())&&typeof _e.catch=="function"&&_e.catch(function(){})}}catch(et){if(et&&nt&&typeof et.stack=="string")return[et.stack,nt.stack]}return[null,null]}};P.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var F=Object.getOwnPropertyDescriptor(P.DetermineComponentFrameRoot,"name");F&&F.configurable&&Object.defineProperty(P.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Z=P.DetermineComponentFrameRoot(),q=Z[0],ye=Z[1];if(q&&ye){var ce=q.split(`
|
|
81
|
+
`),we=ye.split(`
|
|
82
|
+
`);for(F=P=0;P<ce.length&&!ce[P].includes("DetermineComponentFrameRoot");)P++;for(;F<we.length&&!we[F].includes("DetermineComponentFrameRoot");)F++;if(P===ce.length||F===we.length)for(P=ce.length-1,F=we.length-1;1<=P&&0<=F&&ce[P]!==we[F];)F--;for(;1<=P&&0<=F;P--,F--)if(ce[P]!==we[F]){if(P!==1||F!==1)do if(P--,F--,0>F||ce[P]!==we[F]){var ke=`
|
|
83
|
+
`+ce[P].replace(" at new "," at ");return f.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",f.displayName)),ke}while(1<=P&&0<=F);break}}}finally{oc=!1,Error.prepareStackTrace=x}return(x=f?f.displayName||f.name:"")?Fa(x):""}function Zc(f){if(typeof f=="string")return Fa(f);if(typeof f=="function")return f.prototype&&f.prototype.isReactComponent?Da(f,!0):Da(f,!1);if(typeof f=="object"&&f!==null){switch(f.$$typeof){case S:return Da(f.render,!1);case M:return Da(f.type,!1);case O:var g=f,x=g._payload;g=g._init;try{f=g(x)}catch{return Fa("Lazy")}return Zc(f)}if(typeof f.name=="string"){e:{x=f.name,g=f.env;var P=f.debugLocation;if(P!=null&&(f=Error.prepareStackTrace,Error.prepareStackTrace=void 0,P=P.stack,Error.prepareStackTrace=f,P.startsWith(`Error: react-stack-top-frame
|
|
84
|
+
`)&&(P=P.slice(29)),f=P.indexOf(`
|
|
85
|
+
`),f!==-1&&(P=P.slice(f+1)),f=P.indexOf("react_stack_bottom_frame"),f!==-1&&(f=P.lastIndexOf(`
|
|
86
|
+
`,f)),f=f!==-1?P=P.slice(0,f):"",P=f.lastIndexOf(`
|
|
87
|
+
`),f=P===-1?f:f.slice(P+1),f.indexOf(x)!==-1)){x=`
|
|
88
|
+
`+f;break e}x=Fa(x+(g?" ["+g+"]":""))}return x}}switch(f){case C:return Fa("SuspenseList");case w:return Fa("Suspense")}return""}function gr(f,g){return(500<g.byteSize||ys(g.contentState))&&g.contentPreamble===null}function ac(f){if(typeof f=="object"&&f!==null&&typeof f.environmentName=="string"){var g=f.environmentName;f=[f].slice(0),typeof f[0]=="string"?f.splice(0,1,"%c%s%c "+f[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+g+" ",""):f.splice(0,0,"%c%s%c","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+g+" ",""),f.unshift(console),g=Vc.apply(console.error,f),g()}else console.error(f);return null}function il(f,g,x,P,F,Z,q,ye,ce,we,ke){var _e=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=f,this.renderState=g,this.rootFormatContext=x,this.progressiveChunkSize=P===void 0?12800:P,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=_e,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=F===void 0?ac:F,this.onPostpone=we===void 0?Ae:we,this.onAllReady=Z===void 0?Ae:Z,this.onShellReady=q===void 0?Ae:q,this.onShellError=ye===void 0?Ae:ye,this.onFatalError=ce===void 0?Ae:ce,this.formState=ke===void 0?null:ke}function Ss(f,g,x,P,F,Z,q,ye,ce,we,ke,_e){return g=new il(g,x,P,F,Z,q,ye,ce,we,ke,_e),x=Mi(g,0,null,P,!1,!1),x.parentFlushed=!0,f=ol(g,null,f,-1,null,x,null,null,g.abortableTasks,null,P,null,j,null,null),al(f),g.pingedTasks.push(f),g}function Il(f,g,x,P,F,Z,q,ye,ce,we,ke){return f=Ss(f,g,x,P,F,Z,q,ye,ce,we,ke,void 0),f.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},f}function lr(f,g,x,P,F,Z,q,ye,ce){return x=new il(g.resumableState,x,g.rootFormatContext,g.progressiveChunkSize,P,F,Z,q,ye,ce,null),x.nextSegmentId=g.nextSegmentId,typeof g.replaySlots=="number"?(P=Mi(x,0,null,g.rootFormatContext,!1,!1),P.parentFlushed=!0,f=ol(x,null,f,-1,null,P,null,null,x.abortableTasks,null,g.rootFormatContext,null,j,null,null),al(f),x.pingedTasks.push(f),x):(f=Kn(x,null,{nodes:g.replayNodes,slots:g.replaySlots,pendingTasks:0},f,-1,null,null,x.abortableTasks,null,g.rootFormatContext,null,j,null,null),al(f),x.pingedTasks.push(f),x)}function ro(f,g,x,P,F,Z,q,ye,ce){return f=lr(f,g,x,P,F,Z,q,ye,ce),f.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},f}var Kt=null;function La(f,g){f.pingedTasks.push(g),f.pingedTasks.length===1&&(f.flushScheduled=f.destination!==null,f.trackedPostpones!==null||f.status===10?ve(function(){return bd(f)}):se(function(){return bd(f)}))}function Es(f,g,x,P,F){return x={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:g,completedSegments:[],byteSize:0,fallbackAbortableTasks:x,errorDigest:null,contentState:Go(),fallbackState:Go(),contentPreamble:P,fallbackPreamble:F,trackedContentKeyPath:null,trackedFallbackNode:null},g!==null&&(g.pendingTasks++,P=g.boundaries,P!==null&&(f.allPendingTasks++,x.pendingTasks++,P.push(x)),f=g.inheritedHoistables,f!==null&&Pl(x.contentState,f)),x}function ol(f,g,x,P,F,Z,q,ye,ce,we,ke,_e,nt,et,rn){f.allPendingTasks++,F===null?f.pendingRootTasks++:F.pendingTasks++,et!==null&&et.pendingTasks++;var At={replay:null,node:x,childIndex:P,ping:function(){return La(f,At)},blockedBoundary:F,blockedSegment:Z,blockedPreamble:q,hoistableState:ye,abortSet:ce,keyPath:we,formatContext:ke,context:_e,treeContext:nt,row:et,componentStack:rn,thenableState:g};return ce.add(At),At}function Kn(f,g,x,P,F,Z,q,ye,ce,we,ke,_e,nt,et){f.allPendingTasks++,Z===null?f.pendingRootTasks++:Z.pendingTasks++,nt!==null&&nt.pendingTasks++,x.pendingTasks++;var rn={replay:x,node:P,childIndex:F,ping:function(){return La(f,rn)},blockedBoundary:Z,blockedSegment:null,blockedPreamble:null,hoistableState:q,abortSet:ye,keyPath:ce,formatContext:we,context:ke,treeContext:_e,row:nt,componentStack:et,thenableState:g};return ye.add(rn),rn}function Mi(f,g,x,P,F,Z){return{status:0,parentFlushed:!1,id:-1,index:g,chunks:[],children:[],preambleChildren:[],parentFormatContext:P,boundary:x,lastPushedText:F,textEmbedded:Z}}function al(f){var g=f.node;if(typeof g=="object"&&g!==null)switch(g.$$typeof){case r:f.componentStack={parent:f.componentStack,type:g.type}}}function Nl(f){return f===null?null:{parent:f.parent,type:"Suspense Fallback"}}function yo(f){var g={};return f&&Object.defineProperty(g,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var x="",P=f;do x+=Zc(P.type),P=P.parent;while(P);var F=x}catch(Z){F=`
|
|
89
|
+
Error generating stack: `+Z.message+`
|
|
90
|
+
`+Z.stack}return Object.defineProperty(g,"componentStack",{value:F}),F}}),g}function Gr(f,g,x){if(f=f.onError,g=f(g,x),g==null||typeof g=="string")return g}function Cs(f,g){var x=f.onShellError,P=f.onFatalError;x(g),P(g),f.destination!==null?(f.status=14,Ge(f.destination,g)):(f.status=13,f.fatalError=g)}function oi(f,g){Bu(f,g.next,g.hoistables)}function Bu(f,g,x){for(;g!==null;){x!==null&&(Pl(g.hoistables,x),g.inheritedHoistables=x);var P=g.boundaries;if(P!==null){g.boundaries=null;for(var F=0;F<P.length;F++){var Z=P[F];x!==null&&Pl(Z.contentState,x),wo(f,Z,null,null)}}if(g.pendingTasks--,0<g.pendingTasks)break;x=g.hoistables,g=g.next}}function Fl(f,g){var x=g.boundaries;if(x!==null&&g.pendingTasks===x.length){for(var P=!0,F=0;F<x.length;F++){var Z=x[F];if(Z.pendingTasks!==1||Z.parentFlushed||gr(f,Z)){P=!1;break}}P&&Bu(f,g,g.hoistables)}}function lc(f){var g={pendingTasks:1,boundaries:null,hoistables:Go(),inheritedHoistables:null,together:!1,next:null};return f!==null&&0<f.pendingTasks&&(g.pendingTasks++,g.boundaries=[],f.next=g),g}function Jc(f,g,x,P,F){var Z=g.keyPath,q=g.treeContext,ye=g.row;g.keyPath=x,x=P.length;var ce=null;if(g.replay!==null){var we=g.replay.slots;if(we!==null&&typeof we=="object")for(var ke=0;ke<x;ke++){var _e=F!=="backwards"&&F!=="unstable_legacy-backwards"?ke:x-1-ke,nt=P[_e];g.row=ce=lc(ce),g.treeContext=re(q,x,_e);var et=we[_e];typeof et=="number"?(Ll(f,g,et,nt,_e),delete we[_e]):pr(f,g,nt,_e),--ce.pendingTasks===0&&oi(f,ce)}else for(we=0;we<x;we++)ke=F!=="backwards"&&F!=="unstable_legacy-backwards"?we:x-1-we,_e=P[ke],g.row=ce=lc(ce),g.treeContext=re(q,x,ke),pr(f,g,_e,ke),--ce.pendingTasks===0&&oi(f,ce)}else if(F!=="backwards"&&F!=="unstable_legacy-backwards")for(F=0;F<x;F++)we=P[F],g.row=ce=lc(ce),g.treeContext=re(q,x,F),pr(f,g,we,F),--ce.pendingTasks===0&&oi(f,ce);else{for(F=g.blockedSegment,we=F.children.length,ke=F.chunks.length,_e=x-1;0<=_e;_e--){nt=P[_e],g.row=ce=lc(ce),g.treeContext=re(q,x,_e),et=Mi(f,ke,null,g.formatContext,_e===0?F.lastPushedText:!0,!0),F.children.splice(we,0,et),g.blockedSegment=et;try{pr(f,g,nt,_e),et.lastPushedText&&et.textEmbedded&&et.chunks.push(wi),et.status=1,ll(f,g.blockedBoundary,et),--ce.pendingTasks===0&&oi(f,ce)}catch(rn){throw et.status=f.status===12?3:4,rn}}g.blockedSegment=F,F.lastPushedText=!1}ye!==null&&ce!==null&&0<ce.pendingTasks&&(ye.pendingTasks++,ce.next=ye),g.treeContext=q,g.row=ye,g.keyPath=Z}function Kc(f,g,x,P,F,Z){var q=g.thenableState;for(g.thenableState=null,_t={},Wn=g,Jt=f,ln=x,Sn=ti=0,cn=-1,hn=0,Bt=q,f=P(F,Z);fn;)fn=!1,Sn=ti=0,cn=-1,hn=0,Pr+=1,Ht=null,f=P(F,Z);return vo(),f}function la(f,g,x,P,F,Z,q){var ye=!1;if(Z!==0&&f.formState!==null){var ce=g.blockedSegment;if(ce!==null){ye=!0,ce=ce.chunks;for(var we=0;we<Z;we++)we===q?ce.push(Ru):ce.push(Fc)}}Z=g.keyPath,g.keyPath=x,F?(x=g.treeContext,g.treeContext=re(x,1,0),pr(f,g,P,-1),g.treeContext=x):ye?pr(f,g,P,-1):ai(f,g,P,-1),g.keyPath=Z}function Dl(f,g,x,P,F,Z){if(typeof P=="function")if(P.prototype&&P.prototype.isReactComponent){var q=F;if("ref"in F){q={};for(var ye in F)ye!=="ref"&&(q[ye]=F[ye])}var ce=P.defaultProps;if(ce){q===F&&(q=We({},q,F));for(var we in ce)q[we]===void 0&&(q[we]=ce[we])}F=q,q=qd,ce=P.contextType,typeof ce=="object"&&ce!==null&&(q=ce._currentValue),q=new P(F,q);var ke=q.state!==void 0?q.state:null;if(q.updater=z,q.props=F,q.state=ke,ce={queue:[],replace:!1},q._reactInternals=ce,Z=P.contextType,q.context=typeof Z=="object"&&Z!==null?Z._currentValue:qd,Z=P.getDerivedStateFromProps,typeof Z=="function"&&(Z=Z(F,ke),ke=Z==null?ke:We({},ke,Z),q.state=ke),typeof P.getDerivedStateFromProps!="function"&&typeof q.getSnapshotBeforeUpdate!="function"&&(typeof q.UNSAFE_componentWillMount=="function"||typeof q.componentWillMount=="function"))if(P=q.state,typeof q.componentWillMount=="function"&&q.componentWillMount(),typeof q.UNSAFE_componentWillMount=="function"&&q.UNSAFE_componentWillMount(),P!==q.state&&z.enqueueReplaceState(q,q.state,null),ce.queue!==null&&0<ce.queue.length)if(P=ce.queue,Z=ce.replace,ce.queue=null,ce.replace=!1,Z&&P.length===1)q.state=P[0];else{for(ce=Z?P[0]:q.state,ke=!0,Z=Z?1:0;Z<P.length;Z++)we=P[Z],we=typeof we=="function"?we.call(q,ce,F,void 0):we,we!=null&&(ke?(ke=!1,ce=We({},ce,we)):We(ce,we));q.state=ce}else ce.queue=null;if(P=q.render(),f.status===12)throw null;F=g.keyPath,g.keyPath=x,ai(f,g,P,-1),g.keyPath=F}else{if(P=Kc(f,g,x,P,F,void 0),f.status===12)throw null;la(f,g,x,P,ti!==0,Sn,cn)}else if(typeof P=="string")if(q=g.blockedSegment,q===null)q=F.children,ce=g.formatContext,ke=g.keyPath,g.formatContext=ht(ce,P,F),g.keyPath=x,pr(f,g,q,-1),g.formatContext=ce,g.keyPath=ke;else{if(ke=Xs(q.chunks,P,F,f.resumableState,f.renderState,g.blockedPreamble,g.hoistableState,g.formatContext,q.lastPushedText),q.lastPushedText=!1,ce=g.formatContext,Z=g.keyPath,g.keyPath=x,(g.formatContext=ht(ce,P,F)).insertionMode===3){x=Mi(f,0,null,g.formatContext,!1,!1),q.preambleChildren.push(x),g.blockedSegment=x;try{x.status=6,pr(f,g,ke,-1),x.lastPushedText&&x.textEmbedded&&x.chunks.push(wi),x.status=1,ll(f,g.blockedBoundary,x)}finally{g.blockedSegment=q}}else pr(f,g,ke,-1);g.formatContext=ce,g.keyPath=Z;e:{switch(g=q.chunks,f=f.resumableState,P){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=ce.insertionMode){f.hasBody=!0;break e}break;case"html":if(ce.insertionMode===0){f.hasHtml=!0;break e}break;case"head":if(1>=ce.insertionMode)break e}g.push(ea(P))}q.lastPushedText=!1}else{switch(P){case H:case l:case u:case o:P=g.keyPath,g.keyPath=x,ai(f,g,F.children,-1),g.keyPath=P;return;case W:P=g.blockedSegment,P===null?F.mode!=="hidden"&&(P=g.keyPath,g.keyPath=x,pr(f,g,F.children,-1),g.keyPath=P):F.mode!=="hidden"&&(P.chunks.push(Ci),P.lastPushedText=!1,q=g.keyPath,g.keyPath=x,pr(f,g,F.children,-1),g.keyPath=q,P.chunks.push(Ks),P.lastPushedText=!1);return;case C:e:{if(P=F.children,F=F.revealOrder,F==="forwards"||F==="backwards"||F==="unstable_legacy-backwards"){if(G(P)){Jc(f,g,x,P,F);break e}if((q=K(P))&&(q=q.call(P))){if(ce=q.next(),!ce.done){do ce=q.next();while(!ce.done);Jc(f,g,x,P,F)}break e}}F==="together"?(F=g.keyPath,q=g.row,ce=g.row=lc(null),ce.boundaries=[],ce.together=!0,g.keyPath=x,ai(f,g,P,-1),--ce.pendingTasks===0&&oi(f,ce),g.keyPath=F,g.row=q,q!==null&&0<ce.pendingTasks&&(q.pendingTasks++,ce.next=q)):(F=g.keyPath,g.keyPath=x,ai(f,g,P,-1),g.keyPath=F)}return;case I:case k:throw Error(n(343));case w:e:if(g.replay!==null){P=g.keyPath,q=g.formatContext,ce=g.row,g.keyPath=x,g.formatContext=Tt(f.resumableState,q),g.row=null,x=F.children;try{pr(f,g,x,-1)}finally{g.keyPath=P,g.formatContext=q,g.row=ce}}else{P=g.keyPath,Z=g.formatContext;var _e=g.row;we=g.blockedBoundary,ye=g.blockedPreamble;var nt=g.hoistableState,et=g.blockedSegment,rn=F.fallback;F=F.children;var At=new Set,on=2>g.formatContext.insertionMode?Es(f,g.row,At,Cn(),Cn()):Es(f,g.row,At,null,null);f.trackedPostpones!==null&&(on.trackedContentKeyPath=x);var Qn=Mi(f,et.chunks.length,on,g.formatContext,!1,!1);et.children.push(Qn),et.lastPushedText=!1;var Dn=Mi(f,0,null,g.formatContext,!1,!1);if(Dn.parentFlushed=!0,f.trackedPostpones!==null){q=g.componentStack,ce=[x[0],"Suspense Fallback",x[2]],ke=[ce[1],ce[2],[],null],f.trackedPostpones.workingMap.set(ce,ke),on.trackedFallbackNode=ke,g.blockedSegment=Qn,g.blockedPreamble=on.fallbackPreamble,g.keyPath=ce,g.formatContext=Rr(f.resumableState,Z),g.componentStack=Nl(q),Qn.status=6;try{pr(f,g,rn,-1),Qn.lastPushedText&&Qn.textEmbedded&&Qn.chunks.push(wi),Qn.status=1,ll(f,we,Qn)}catch(Yr){throw Qn.status=f.status===12?3:4,Yr}finally{g.blockedSegment=et,g.blockedPreamble=ye,g.keyPath=P,g.formatContext=Z}g=ol(f,null,F,-1,on,Dn,on.contentPreamble,on.contentState,g.abortSet,x,Tt(f.resumableState,g.formatContext),g.context,g.treeContext,null,q),al(g),f.pingedTasks.push(g)}else{g.blockedBoundary=on,g.blockedPreamble=on.contentPreamble,g.hoistableState=on.contentState,g.blockedSegment=Dn,g.keyPath=x,g.formatContext=Tt(f.resumableState,Z),g.row=null,Dn.status=6;try{if(pr(f,g,F,-1),Dn.lastPushedText&&Dn.textEmbedded&&Dn.chunks.push(wi),Dn.status=1,ll(f,on,Dn),eu(on,Dn),on.pendingTasks===0&&on.status===0){if(on.status=1,!gr(f,on)){_e!==null&&--_e.pendingTasks===0&&oi(f,_e),f.pendingRootTasks===0&&g.blockedPreamble&&Yo(f);break e}}else _e!==null&&_e.together&&Fl(f,_e)}catch(Yr){on.status=4,f.status===12?(Dn.status=3,q=f.fatalError):(Dn.status=4,q=Yr),ce=yo(g.componentStack),ke=Gr(f,q,ce),on.errorDigest=ke,Qc(f,on)}finally{g.blockedBoundary=we,g.blockedPreamble=ye,g.hoistableState=nt,g.blockedSegment=et,g.keyPath=P,g.formatContext=Z,g.row=_e}g=ol(f,null,rn,-1,we,Qn,on.fallbackPreamble,on.fallbackState,At,[x[0],"Suspense Fallback",x[2]],Rr(f.resumableState,g.formatContext),g.context,g.treeContext,g.row,Nl(g.componentStack)),al(g),f.pingedTasks.push(g)}}return}if(typeof P=="object"&&P!==null)switch(P.$$typeof){case S:if("ref"in F)for(et in q={},F)et!=="ref"&&(q[et]=F[et]);else q=F;P=Kc(f,g,x,P.render,q,Z),la(f,g,x,P,ti!==0,Sn,cn);return;case M:Dl(f,g,x,P.type,F,Z);return;case y:if(ce=F.children,q=g.keyPath,F=F.value,ke=P._currentValue,P._currentValue=F,Z=Zn,Zn=P={parent:Z,depth:Z===null?0:Z.depth+1,context:P,parentValue:ke,value:F},g.context=P,g.keyPath=x,ai(f,g,ce,-1),f=Zn,f===null)throw Error(n(403));f.context._currentValue=f.parentValue,f=Zn=f.parent,g.context=f,g.keyPath=q;return;case p:F=F.children,P=F(P._context._currentValue),F=g.keyPath,g.keyPath=x,ai(f,g,P,-1),g.keyPath=F;return;case O:if(q=P._init,P=q(P._payload),f.status===12)throw null;Dl(f,g,x,P,F,Z);return}throw Error(n(130,P==null?P:typeof P,""))}}function Ll(f,g,x,P,F){var Z=g.replay,q=g.blockedBoundary,ye=Mi(f,0,null,g.formatContext,!1,!1);ye.id=x,ye.parentFlushed=!0;try{g.replay=null,g.blockedSegment=ye,pr(f,g,P,F),ye.status=1,ll(f,q,ye),q===null?f.completedRootSegment=ye:(eu(q,ye),q.parentFlushed&&f.partialBoundaries.push(q))}finally{g.replay=Z,g.blockedSegment=null}}function ai(f,g,x,P){g.replay!==null&&typeof g.replay.slots=="number"?Ll(f,g,g.replay.slots,x,P):(g.node=x,g.childIndex=P,x=g.componentStack,al(g),sc(f,g),g.componentStack=x)}function sc(f,g){var x=g.node,P=g.childIndex;if(x!==null){if(typeof x=="object"){switch(x.$$typeof){case r:var F=x.type,Z=x.key,q=x.props;x=q.ref;var ye=x!==void 0?x:null,ce=Lu(F),we=Z??(P===-1?0:P);if(Z=[g.keyPath,ce,we],g.replay!==null)e:{var ke=g.replay;for(P=ke.nodes,x=0;x<P.length;x++){var _e=P[x];if(we===_e[1]){if(_e.length===4){if(ce!==null&&ce!==_e[0])throw Error(n(490,_e[0],ce));var nt=_e[2];ce=_e[3],we=g.node,g.replay={nodes:nt,slots:ce,pendingTasks:1};try{if(Dl(f,g,Z,F,q,ye),g.replay.pendingTasks===1&&0<g.replay.nodes.length)throw Error(n(488));g.replay.pendingTasks--}catch(It){if(typeof It=="object"&&It!==null&&(It===je||typeof It.then=="function"))throw g.node===we?g.replay=ke:P.splice(x,1),It;g.replay.pendingTasks--,q=yo(g.componentStack),Z=f,f=g.blockedBoundary,F=It,q=Gr(Z,F,q),uc(Z,f,nt,ce,F,q)}g.replay=ke}else{if(F!==w)throw Error(n(490,"Suspense",Lu(F)||"Unknown"));t:{ke=void 0,F=_e[5],ye=_e[2],ce=_e[3],we=_e[4]===null?[]:_e[4][2],_e=_e[4]===null?null:_e[4][3];var et=g.keyPath,rn=g.formatContext,At=g.row,on=g.replay,Qn=g.blockedBoundary,Dn=g.hoistableState,Yr=q.children,Di=q.fallback,So=new Set;q=2>g.formatContext.insertionMode?Es(f,g.row,So,Cn(),Cn()):Es(f,g.row,So,null,null),q.parentFlushed=!0,q.rootSegmentID=F,g.blockedBoundary=q,g.hoistableState=q.contentState,g.keyPath=Z,g.formatContext=Tt(f.resumableState,rn),g.row=null,g.replay={nodes:ye,slots:ce,pendingTasks:1};try{if(pr(f,g,Yr,-1),g.replay.pendingTasks===1&&0<g.replay.nodes.length)throw Error(n(488));if(g.replay.pendingTasks--,q.pendingTasks===0&&q.status===0){q.status=1,f.completedBoundaries.push(q);break t}}catch(It){q.status=4,nt=yo(g.componentStack),ke=Gr(f,It,nt),q.errorDigest=ke,g.replay.pendingTasks--,f.clientRenderedBoundaries.push(q)}finally{g.blockedBoundary=Qn,g.hoistableState=Dn,g.replay=on,g.keyPath=et,g.formatContext=rn,g.row=At}nt=Kn(f,null,{nodes:we,slots:_e,pendingTasks:0},Di,-1,Qn,q.fallbackState,So,[Z[0],"Suspense Fallback",Z[2]],Rr(f.resumableState,g.formatContext),g.context,g.treeContext,g.row,Nl(g.componentStack)),al(nt),f.pingedTasks.push(nt)}}P.splice(x,1);break e}}}else Dl(f,g,Z,F,q,ye);return;case i:throw Error(n(257));case O:if(nt=x._init,x=nt(x._payload),f.status===12)throw null;ai(f,g,x,P);return}if(G(x)){cc(f,g,x,P);return}if((nt=K(x))&&(nt=nt.call(x))){if(x=nt.next(),!x.done){q=[];do q.push(x.value),x=nt.next();while(!x.done);cc(f,g,q,P)}return}if(typeof x.then=="function")return g.thenableState=null,ai(f,g,Xc(x),P);if(x.$$typeof===y)return ai(f,g,x._currentValue,P);throw P=Object.prototype.toString.call(x),Error(n(31,P==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":P))}typeof x=="string"?(P=g.blockedSegment,P!==null&&(P.lastPushedText=xi(P.chunks,x,f.renderState,P.lastPushedText))):(typeof x=="number"||typeof x=="bigint")&&(P=g.blockedSegment,P!==null&&(P.lastPushedText=xi(P.chunks,""+x,f.renderState,P.lastPushedText)))}}function cc(f,g,x,P){var F=g.keyPath;if(P!==-1&&(g.keyPath=[g.keyPath,"Fragment",P],g.replay!==null)){for(var Z=g.replay,q=Z.nodes,ye=0;ye<q.length;ye++){var ce=q[ye];if(ce[1]===P){P=ce[2],ce=ce[3],g.replay={nodes:P,slots:ce,pendingTasks:1};try{if(cc(f,g,x,-1),g.replay.pendingTasks===1&&0<g.replay.nodes.length)throw Error(n(488));g.replay.pendingTasks--}catch(_e){if(typeof _e=="object"&&_e!==null&&(_e===je||typeof _e.then=="function"))throw _e;g.replay.pendingTasks--,x=yo(g.componentStack);var we=g.blockedBoundary,ke=_e;x=Gr(f,ke,x),uc(f,we,P,ce,ke,x)}g.replay=Z,q.splice(ye,1);break}}g.keyPath=F;return}if(Z=g.treeContext,q=x.length,g.replay!==null&&(ye=g.replay.slots,ye!==null&&typeof ye=="object")){for(P=0;P<q;P++)ce=x[P],g.treeContext=re(Z,q,P),we=ye[P],typeof we=="number"?(Ll(f,g,we,ce,P),delete ye[P]):pr(f,g,ce,P);g.treeContext=Z,g.keyPath=F;return}for(ye=0;ye<q;ye++)P=x[ye],g.treeContext=re(Z,q,ye),pr(f,g,P,ye);g.treeContext=Z,g.keyPath=F}function zu(f,g,x){if(x.status=5,x.rootSegmentID=f.nextSegmentId++,f=x.trackedContentKeyPath,f===null)throw Error(n(486));var P=x.trackedFallbackNode,F=[],Z=g.workingMap.get(f);return Z===void 0?(x=[f[1],f[2],F,null,P,x.rootSegmentID],g.workingMap.set(f,x),Yu(x,f[0],g),x):(Z[4]=P,Z[5]=x.rootSegmentID,Z)}function Hu(f,g,x,P){P.status=5;var F=x.keyPath,Z=x.blockedBoundary;if(Z===null)P.id=f.nextSegmentId++,g.rootSlots=P.id,f.completedRootSegment!==null&&(f.completedRootSegment.status=5);else{if(Z!==null&&Z.status===0){var q=zu(f,g,Z);if(Z.trackedContentKeyPath===F&&x.childIndex===-1){P.id===-1&&(P.id=P.parentFlushed?Z.rootSegmentID:f.nextSegmentId++),q[3]=P.id;return}}if(P.id===-1&&(P.id=P.parentFlushed&&Z!==null?Z.rootSegmentID:f.nextSegmentId++),x.childIndex===-1)F===null?g.rootSlots=P.id:(x=g.workingMap.get(F),x===void 0?(x=[F[1],F[2],[],P.id],Yu(x,F[0],g)):x[3]=P.id);else{if(F===null){if(f=g.rootSlots,f===null)f=g.rootSlots={};else if(typeof f=="number")throw Error(n(491))}else if(Z=g.workingMap,q=Z.get(F),q===void 0)f={},q=[F[1],F[2],[],f],Z.set(F,q),Yu(q,F[0],g);else if(f=q[3],f===null)f=q[3]={};else if(typeof f=="number")throw Error(n(491));f[x.childIndex]=P.id}}}function Qc(f,g){f=f.trackedPostpones,f!==null&&(g=g.trackedContentKeyPath,g!==null&&(g=f.workingMap.get(g),g!==void 0&&(g.length=4,g[2]=[],g[3]=null)))}function Wu(f,g,x){return Kn(f,x,g.replay,g.node,g.childIndex,g.blockedBoundary,g.hoistableState,g.abortSet,g.keyPath,g.formatContext,g.context,g.treeContext,g.row,g.componentStack)}function Uu(f,g,x){var P=g.blockedSegment,F=Mi(f,P.chunks.length,null,g.formatContext,P.lastPushedText,!0);return P.children.push(F),P.lastPushedText=!1,ol(f,x,g.node,g.childIndex,g.blockedBoundary,F,g.blockedPreamble,g.hoistableState,g.abortSet,g.keyPath,g.formatContext,g.context,g.treeContext,g.row,g.componentStack)}function pr(f,g,x,P){var F=g.formatContext,Z=g.context,q=g.keyPath,ye=g.treeContext,ce=g.componentStack,we=g.blockedSegment;if(we===null){we=g.replay;try{return ai(f,g,x,P)}catch(nt){if(vo(),x=nt===je?Ot():nt,f.status!==12&&typeof x=="object"&&x!==null){if(typeof x.then=="function"){P=nt===je?ni():null,f=Wu(f,g,P).ping,x.then(f,f),g.formatContext=F,g.context=Z,g.keyPath=q,g.treeContext=ye,g.componentStack=ce,g.replay=we,_(Z);return}if(x.message==="Maximum call stack size exceeded"){x=nt===je?ni():null,x=Wu(f,g,x),f.pingedTasks.push(x),g.formatContext=F,g.context=Z,g.keyPath=q,g.treeContext=ye,g.componentStack=ce,g.replay=we,_(Z);return}}}}else{var ke=we.children.length,_e=we.chunks.length;try{return ai(f,g,x,P)}catch(nt){if(vo(),we.children.length=ke,we.chunks.length=_e,x=nt===je?Ot():nt,f.status!==12&&typeof x=="object"&&x!==null){if(typeof x.then=="function"){we=x,x=nt===je?ni():null,f=Uu(f,g,x).ping,we.then(f,f),g.formatContext=F,g.context=Z,g.keyPath=q,g.treeContext=ye,g.componentStack=ce,_(Z);return}if(x.message==="Maximum call stack size exceeded"){we=nt===je?ni():null,we=Uu(f,g,we),f.pingedTasks.push(we),g.formatContext=F,g.context=Z,g.keyPath=q,g.treeContext=ye,g.componentStack=ce,_(Z);return}}}}throw g.formatContext=F,g.context=Z,g.keyPath=q,g.treeContext=ye,_(Z),x}function jc(f){var g=f.blockedBoundary,x=f.blockedSegment;x!==null&&(x.status=3,wo(this,g,f.row,x))}function uc(f,g,x,P,F,Z){for(var q=0;q<x.length;q++){var ye=x[q];if(ye.length===4)uc(f,g,ye[2],ye[3],F,Z);else{ye=ye[5];var ce=f,we=Z,ke=Es(ce,null,new Set,null,null);ke.parentFlushed=!0,ke.rootSegmentID=ye,ke.status=4,ke.errorDigest=we,ke.parentFlushed&&ce.clientRenderedBoundaries.push(ke)}}if(x.length=0,P!==null){if(g===null)throw Error(n(487));if(g.status!==4&&(g.status=4,g.errorDigest=Z,g.parentFlushed&&f.clientRenderedBoundaries.push(g)),typeof P=="object")for(var _e in P)delete P[_e]}}function dc(f,g,x){var P=f.blockedBoundary,F=f.blockedSegment;if(F!==null){if(F.status===6)return;F.status=3}var Z=yo(f.componentStack);if(P===null){if(g.status!==13&&g.status!==14){if(P=f.replay,P===null){g.trackedPostpones!==null&&F!==null?(P=g.trackedPostpones,Gr(g,x,Z),Hu(g,P,f,F),wo(g,null,f.row,F)):(Gr(g,x,Z),Cs(g,x));return}P.pendingTasks--,P.pendingTasks===0&&0<P.nodes.length&&(F=Gr(g,x,Z),uc(g,null,P.nodes,P.slots,x,F)),g.pendingRootTasks--,g.pendingRootTasks===0&&Gu(g)}}else{var q=g.trackedPostpones;if(P.status!==4){if(q!==null&&F!==null)return Gr(g,x,Z),Hu(g,q,f,F),P.fallbackAbortableTasks.forEach(function(ye){return dc(ye,g,x)}),P.fallbackAbortableTasks.clear(),wo(g,P,f.row,F);P.status=4,F=Gr(g,x,Z),P.status=4,P.errorDigest=F,Qc(g,P),P.parentFlushed&&g.clientRenderedBoundaries.push(P)}P.pendingTasks--,F=P.row,F!==null&&--F.pendingTasks===0&&oi(g,F),P.fallbackAbortableTasks.forEach(function(ye){return dc(ye,g,x)}),P.fallbackAbortableTasks.clear()}f=f.row,f!==null&&--f.pendingTasks===0&&oi(g,f),g.allPendingTasks--,g.allPendingTasks===0&&$c(g)}function qc(f,g){try{var x=f.renderState,P=x.onHeaders;if(P){var F=x.headers;if(F){x.headers=null;var Z=F.preconnects;if(F.fontPreloads&&(Z&&(Z+=", "),Z+=F.fontPreloads),F.highImagePreloads&&(Z&&(Z+=", "),Z+=F.highImagePreloads),!g){var q=x.styles.values(),ye=q.next();e:for(;0<F.remainingCapacity&&!ye.done;ye=q.next())for(var ce=ye.value.sheets.values(),we=ce.next();0<F.remainingCapacity&&!we.done;we=ce.next()){var ke=we.value,_e=ke.props,nt=_e.href,et=ke.props,rn=Yc(et.href,"style",{crossOrigin:et.crossOrigin,integrity:et.integrity,nonce:et.nonce,type:et.type,fetchPriority:et.fetchPriority,referrerPolicy:et.referrerPolicy,media:et.media});if(0<=(F.remainingCapacity-=rn.length+2))x.resets.style[nt]=$t,Z&&(Z+=", "),Z+=rn,x.resets.style[nt]=typeof _e.crossOrigin=="string"||typeof _e.integrity=="string"?[_e.crossOrigin,_e.integrity]:$t;else break e}}P(Z?{Link:Z}:{})}}}catch(At){Gr(f,At,{})}}function Gu(f){f.trackedPostpones===null&&qc(f,!0),f.trackedPostpones===null&&Yo(f),f.onShellError=Ae,f=f.onShellReady,f()}function $c(f){qc(f,f.trackedPostpones===null?!0:f.completedRootSegment===null||f.completedRootSegment.status!==5),Yo(f),f=f.onAllReady,f()}function eu(f,g){if(g.chunks.length===0&&g.children.length===1&&g.children[0].boundary===null&&g.children[0].id===-1){var x=g.children[0];x.id=g.id,x.parentFlushed=!0,x.status!==1&&x.status!==3&&x.status!==4||eu(f,x)}else f.completedSegments.push(g)}function ll(f,g,x){if(Ce!==null){x=x.chunks;for(var P=0,F=0;F<x.length;F++)P+=x[F].byteLength;g===null?f.byteSize+=P:g.byteSize+=P}}function wo(f,g,x,P){if(x!==null&&(--x.pendingTasks===0?oi(f,x):x.together&&Fl(f,x)),f.allPendingTasks--,g===null){if(P!==null&&P.parentFlushed){if(f.completedRootSegment!==null)throw Error(n(389));f.completedRootSegment=P}f.pendingRootTasks--,f.pendingRootTasks===0&&Gu(f)}else if(g.pendingTasks--,g.status!==4)if(g.pendingTasks===0){if(g.status===0&&(g.status=1),P!==null&&P.parentFlushed&&(P.status===1||P.status===3)&&eu(g,P),g.parentFlushed&&f.completedBoundaries.push(g),g.status===1)x=g.row,x!==null&&Pl(x.hoistables,g.contentState),gr(f,g)||(g.fallbackAbortableTasks.forEach(jc,f),g.fallbackAbortableTasks.clear(),x!==null&&--x.pendingTasks===0&&oi(f,x)),f.pendingRootTasks===0&&f.trackedPostpones===null&&g.contentPreamble!==null&&Yo(f);else if(g.status===5&&(g=g.row,g!==null)){if(f.trackedPostpones!==null){x=f.trackedPostpones;var F=g.next;if(F!==null&&(P=F.boundaries,P!==null))for(F.boundaries=null,F=0;F<P.length;F++){var Z=P[F];zu(f,x,Z),wo(f,Z,null,null)}}--g.pendingTasks===0&&oi(f,g)}}else P===null||!P.parentFlushed||P.status!==1&&P.status!==3||(eu(g,P),g.completedSegments.length===1&&g.parentFlushed&&f.partialBoundaries.push(g)),g=g.row,g!==null&&g.together&&Fl(f,g);f.allPendingTasks===0&&$c(f)}function bd(f){if(f.status!==14&&f.status!==13){var g=Zn,x=at.H;at.H=rl;var P=at.A;at.A=ic;var F=Kt;Kt=f;var Z=ri;ri=f.resumableState;try{var q=f.pingedTasks,ye;for(ye=0;ye<q.length;ye++){var ce=q[ye],we=f,ke=ce.blockedSegment;if(ke===null){var _e=we;if(ce.replay.pendingTasks!==0){_(ce.context);try{if(typeof ce.replay.slots=="number"?Ll(_e,ce,ce.replay.slots,ce.node,ce.childIndex):sc(_e,ce),ce.replay.pendingTasks===1&&0<ce.replay.nodes.length)throw Error(n(488));ce.replay.pendingTasks--,ce.abortSet.delete(ce),wo(_e,ce.blockedBoundary,ce.row,null)}catch(si){vo();var nt=si===je?Ot():si;if(typeof nt=="object"&&nt!==null&&typeof nt.then=="function"){var et=ce.ping;nt.then(et,et),ce.thenableState=si===je?ni():null}else{ce.replay.pendingTasks--,ce.abortSet.delete(ce);var rn=yo(ce.componentStack);we=void 0;var At=_e,on=ce.blockedBoundary,Qn=_e.status===12?_e.fatalError:nt,Dn=ce.replay.nodes,Yr=ce.replay.slots;we=Gr(At,Qn,rn),uc(At,on,Dn,Yr,Qn,we),_e.pendingRootTasks--,_e.pendingRootTasks===0&&Gu(_e),_e.allPendingTasks--,_e.allPendingTasks===0&&$c(_e)}}finally{}}}else if(_e=void 0,At=ke,At.status===0){At.status=6,_(ce.context);var Di=At.children.length,So=At.chunks.length;try{sc(we,ce),At.lastPushedText&&At.textEmbedded&&At.chunks.push(wi),ce.abortSet.delete(ce),At.status=1,ll(we,ce.blockedBoundary,At),wo(we,ce.blockedBoundary,ce.row,At)}catch(si){vo(),At.children.length=Di,At.chunks.length=So;var It=si===je?Ot():we.status===12?we.fatalError:si;if(we.status===12&&we.trackedPostpones!==null){var li=we.trackedPostpones,sr=yo(ce.componentStack);ce.abortSet.delete(ce),Gr(we,It,sr),Hu(we,li,ce,At),wo(we,ce.blockedBoundary,ce.row,At)}else if(typeof It=="object"&&It!==null&&typeof It.then=="function"){At.status=0,ce.thenableState=si===je?ni():null;var _i=ce.ping;It.then(_i,_i)}else{var Ba=yo(ce.componentStack);ce.abortSet.delete(ce),At.status=4;var jn=ce.blockedBoundary,Hl=ce.row;if(Hl!==null&&--Hl.pendingTasks===0&&oi(we,Hl),we.allPendingTasks--,_e=Gr(we,It,Ba),jn===null)Cs(we,It);else if(jn.pendingTasks--,jn.status!==4){jn.status=4,jn.errorDigest=_e,Qc(we,jn);var Eo=jn.row;Eo!==null&&--Eo.pendingTasks===0&&oi(we,Eo),jn.parentFlushed&&we.clientRenderedBoundaries.push(jn),we.pendingRootTasks===0&&we.trackedPostpones===null&&jn.contentPreamble!==null&&Yo(we)}we.allPendingTasks===0&&$c(we)}}finally{}}}q.splice(0,ye),f.destination!==null&&ks(f,f.destination)}catch(si){Gr(f,si,{}),Cs(f,si)}finally{ri=Z,at.H=x,at.A=P,x===rl&&_(g),Kt=F}}}function Bl(f,g,x){g.preambleChildren.length&&x.push(g.preambleChildren);for(var P=!1,F=0;F<g.children.length;F++)P=fc(f,g.children[F],x)||P;return P}function fc(f,g,x){var P=g.boundary;if(P===null)return Bl(f,g,x);var F=P.contentPreamble,Z=P.fallbackPreamble;if(F===null||Z===null)return!1;switch(P.status){case 1:if(Zs(f.renderState,F),f.byteSize+=P.byteSize,g=P.completedSegments[0],!g)throw Error(n(391));return Bl(f,g,x);case 5:if(f.trackedPostpones!==null)return!0;case 4:if(g.status===1)return Zs(f.renderState,Z),Bl(f,g,x);default:return!0}}function Yo(f){if(f.completedRootSegment&&f.completedPreambleSegments===null){var g=[],x=f.byteSize,P=fc(f,f.completedRootSegment,g),F=f.renderState.preamble;P===!1||F.headChunks&&F.bodyChunks?f.completedPreambleSegments=g:f.byteSize=x}}function Ts(f,g,x,P){switch(x.parentFlushed=!0,x.status){case 0:x.id=f.nextSegmentId++;case 5:return P=x.id,x.lastPushedText=!1,x.textEmbedded=!1,f=f.renderState,V(g,Mu),V(g,f.placeholderPrefix),f=ee(P.toString(16)),V(g,f),J(g,Js);case 1:x.status=2;var F=!0,Z=x.chunks,q=0;x=x.children;for(var ye=0;ye<x.length;ye++){for(F=x[ye];q<F.index;q++)V(g,Z[q]);F=hc(f,g,F,P)}for(;q<Z.length-1;q++)V(g,Z[q]);return q<Z.length&&(F=J(g,Z[q])),F;case 3:return!0;default:throw Error(n(390))}}var sl=0;function hc(f,g,x,P){var F=x.boundary;if(F===null)return Ts(f,g,x,P);if(F.parentFlushed=!0,F.status===4){var Z=F.row;Z!==null&&--Z.pendingTasks===0&&oi(f,Z),F=F.errorDigest,J(g,Mr),V(g,_u),F&&(V(g,Bo),V(g,ee(it(F))),V(g,Sa)),J(g,Pu),Ts(f,g,x,P)}else if(F.status!==1)F.status===0&&(F.rootSegmentID=f.nextSegmentId++),0<F.completedSegments.length&&f.partialBoundaries.push(F),Ea(g,f.renderState,F.rootSegmentID),P&&Pl(P,F.fallbackState),Ts(f,g,x,P);else if(!Vo&&gr(f,F)&&(sl+F.byteSize>f.progressiveChunkSize||ys(F.contentState)))F.rootSegmentID=f.nextSegmentId++,f.completedBoundaries.push(F),Ea(g,f.renderState,F.rootSegmentID),Ts(f,g,x,P);else{if(sl+=F.byteSize,P&&Pl(P,F.contentState),x=F.row,x!==null&&gr(f,F)&&--x.pendingTasks===0&&oi(f,x),J(g,Xa),x=F.completedSegments,x.length!==1)throw Error(n(391));hc(f,g,x[0],P)}return J(g,Nn)}function cl(f,g,x,P){return Cl(g,f.renderState,x.parentFormatContext,x.id),hc(f,g,x,P),Ho(g,x.parentFormatContext)}function md(f,g,x){sl=x.byteSize;for(var P=x.completedSegments,F=0;F<P.length;F++)yd(f,g,x,P[F]);P.length=0,P=x.row,P!==null&&gr(f,x)&&--P.pendingTasks===0&&oi(f,P),to(g,x.contentState,f.renderState),P=f.resumableState,f=f.renderState,F=x.rootSegmentID,x=x.contentState;var Z=f.stylesToHoist;return f.stylesToHoist=!1,V(g,f.startInlineScript),V(g,nn),Z?(!(P.instructions&4)&&(P.instructions|=4,V(g,Qa)),!(P.instructions&2)&&(P.instructions|=2,V(g,vs)),P.instructions&8?V(g,hd):(P.instructions|=8,V(g,_r))):(!(P.instructions&2)&&(P.instructions|=2,V(g,vs)),V(g,bs)),P=ee(F.toString(16)),V(g,f.boundaryPrefix),V(g,P),V(g,Ka),V(g,f.segmentPrefix),V(g,P),Z?(V(g,Qs),Nr(g,x)):V(g,zc),x=J(g,_a),Ei(g,f)&&x}function yd(f,g,x,P){if(P.status===2)return!0;var F=x.contentState,Z=P.id;if(Z===-1){if((P.id=x.rootSegmentID)===-1)throw Error(n(392));return cl(f,g,P,F)}return Z===x.rootSegmentID?cl(f,g,P,F):(cl(f,g,P,F),x=f.resumableState,f=f.renderState,V(g,f.startInlineScript),V(g,nn),x.instructions&1?V(g,Au):(x.instructions|=1,V(g,Ou)),V(g,f.segmentPrefix),Z=ee(Z.toString(16)),V(g,Z),V(g,Iu),V(g,f.placeholderPrefix),V(g,Z),g=J(g,ps),g)}var Vo=!1;function ks(f,g){ae=new Uint8Array(2048),me=0;try{if(!(0<f.pendingRootTasks)){var x,P=f.completedRootSegment;if(P!==null){if(P.status===5)return;var F=f.completedPreambleSegments;if(F===null)return;sl=f.byteSize;var Z=f.resumableState,q=f.renderState,ye=q.preamble,ce=ye.htmlChunks,we=ye.headChunks,ke;if(ce){for(ke=0;ke<ce.length;ke++)V(g,ce[ke]);if(we)for(ke=0;ke<we.length;ke++)V(g,we[ke]);else V(g,Sr("head")),V(g,nn)}else if(we)for(ke=0;ke<we.length;ke++)V(g,we[ke]);var _e=q.charsetChunks;for(ke=0;ke<_e.length;ke++)V(g,_e[ke]);_e.length=0,q.preconnects.forEach(zn,g),q.preconnects.clear();var nt=q.viewportChunks;for(ke=0;ke<nt.length;ke++)V(g,nt[ke]);nt.length=0,q.fontPreloads.forEach(zn,g),q.fontPreloads.clear(),q.highImagePreloads.forEach(zn,g),q.highImagePreloads.clear(),un=q,q.styles.forEach(tc,g),un=null;var et=q.importMapChunks;for(ke=0;ke<et.length;ke++)V(g,et[ke]);et.length=0,q.bootstrapScripts.forEach(zn,g),q.scripts.forEach(zn,g),q.scripts.clear(),q.bulkPreloads.forEach(zn,g),q.bulkPreloads.clear(),ce||we||(Z.instructions|=32);var rn=q.hoistableChunks;for(ke=0;ke<rn.length;ke++)V(g,rn[ke]);for(Z=rn.length=0;Z<F.length;Z++){var At=F[Z];for(q=0;q<At.length;q++)hc(f,g,At[q],null)}var on=f.renderState.preamble,Qn=on.headChunks;(on.htmlChunks||Qn)&&V(g,ea("head"));var Dn=on.bodyChunks;if(Dn)for(F=0;F<Dn.length;F++)V(g,Dn[F]);hc(f,g,P,null),f.completedRootSegment=null;var Yr=f.renderState;if(f.allPendingTasks!==0||f.clientRenderedBoundaries.length!==0||f.completedBoundaries.length!==0||f.trackedPostpones!==null&&(f.trackedPostpones.rootNodes.length!==0||f.trackedPostpones.rootSlots!==null)){var Di=f.resumableState;if(!(Di.instructions&64)){if(Di.instructions|=64,V(g,Yr.startInlineScript),!(Di.instructions&32)){Di.instructions|=32;var So="_"+Di.idPrefix+"R_";V(g,dn),V(g,ee(it(So))),V(g,xn)}V(g,nn),V(g,Lo),J(g,Rt)}}Ei(g,Yr)}var It=f.renderState;P=0;var li=It.viewportChunks;for(P=0;P<li.length;P++)V(g,li[P]);li.length=0,It.preconnects.forEach(zn,g),It.preconnects.clear(),It.fontPreloads.forEach(zn,g),It.fontPreloads.clear(),It.highImagePreloads.forEach(zn,g),It.highImagePreloads.clear(),It.styles.forEach(Hn,g),It.scripts.forEach(zn,g),It.scripts.clear(),It.bulkPreloads.forEach(zn,g),It.bulkPreloads.clear();var sr=It.hoistableChunks;for(P=0;P<sr.length;P++)V(g,sr[P]);sr.length=0;var _i=f.clientRenderedBoundaries;for(x=0;x<_i.length;x++){var Ba=_i[x];It=g;var jn=f.resumableState,Hl=f.renderState,Eo=Ba.rootSegmentID,si=Ba.errorDigest;V(It,Hl.startInlineScript),V(It,nn),jn.instructions&4?V(It,Wo):(jn.instructions|=4,V(It,ms)),V(It,Hl.boundaryPrefix),V(It,ee(Eo.toString(16))),V(It,ja),si&&(V(It,qa),V(It,ee(Tl(si||""))));var Xo=J(It,Nu);if(!Xo){f.destination=null,x++,_i.splice(0,x);return}}_i.splice(0,x);var ci=f.completedBoundaries;for(x=0;x<ci.length;x++)if(!md(f,g,ci[x])){f.destination=null,x++,ci.splice(0,x);return}ci.splice(0,x),oe(g),ae=new Uint8Array(2048),me=0,Vo=!0;var Wl=f.partialBoundaries;for(x=0;x<Wl.length;x++){var Ms=Wl[x];e:{_i=f,Ba=g,sl=Ms.byteSize;var Pi=Ms.completedSegments;for(Xo=0;Xo<Pi.length;Xo++)if(!yd(_i,Ba,Ms,Pi[Xo])){Xo++,Pi.splice(0,Xo);var _s=!1;break e}Pi.splice(0,Xo);var ui=Ms.row;ui!==null&&ui.together&&Ms.pendingTasks===1&&(ui.pendingTasks===1?Bu(_i,ui,ui.hoistables):ui.pendingTasks--),_s=to(Ba,Ms.contentState,_i.renderState)}if(!_s){f.destination=null,x++,Wl.splice(0,x);return}}Wl.splice(0,x),Vo=!1;var Ul=f.completedBoundaries;for(x=0;x<Ul.length;x++)if(!md(f,g,Ul[x])){f.destination=null,x++,Ul.splice(0,x);return}Ul.splice(0,x)}}finally{Vo=!1,f.allPendingTasks===0&&f.clientRenderedBoundaries.length===0&&f.completedBoundaries.length===0?(f.flushScheduled=!1,x=f.resumableState,x.hasBody&&V(g,ea("body")),x.hasHtml&&V(g,ea("html")),oe(g),f.status=14,g.close(),f.destination=null):oe(g)}}function io(f){f.flushScheduled=f.destination!==null,ve(function(){return bd(f)}),se(function(){f.status===10&&(f.status=11),f.trackedPostpones===null&&qc(f,f.pendingRootTasks===0)})}function ul(f){f.flushScheduled===!1&&f.pingedTasks.length===0&&f.destination!==null&&(f.flushScheduled=!0,se(function(){var g=f.destination;g?ks(f,g):f.flushScheduled=!1}))}function zl(f,g){if(f.status===13)f.status=14,Ge(g,f.fatalError);else if(f.status!==14&&f.destination===null){f.destination=g;try{ks(f,g)}catch(x){Gr(f,x,{}),Cs(f,x)}}}function xo(f,g){(f.status===11||f.status===10)&&(f.status=12);try{var x=f.abortableTasks;if(0<x.size){var P=g===void 0?Error(n(432)):typeof g=="object"&&g!==null&&typeof g.then=="function"?Error(n(530)):g;f.fatalError=P,x.forEach(function(F){return dc(F,f,P)}),x.clear()}f.destination!==null&&ks(f,f.destination)}catch(F){Gr(f,F,{}),Cs(f,F)}}function Yu(f,g,x){if(g===null)x.rootNodes.push(f);else{var P=x.workingMap,F=P.get(g);F===void 0&&(F=[g[1],g[2],[],null],P.set(g,F),Yu(F,g[0],x)),F[2].push(f)}}function wd(f){var g=f.trackedPostpones;if(g===null||g.rootNodes.length===0&&g.rootSlots===null)return f.trackedPostpones=null;if(f.completedRootSegment===null||f.completedRootSegment.status!==5&&f.completedPreambleSegments!==null){var x=f.nextSegmentId,P=g.rootSlots,F=f.resumableState;F.bootstrapScriptContent=void 0,F.bootstrapScripts=void 0,F.bootstrapModules=void 0}else{x=0,P=-1,F=f.resumableState;var Z=f.renderState;F.nextFormID=0,F.hasBody=!1,F.hasHtml=!1,F.unknownResources={font:Z.resets.font},F.dnsResources=Z.resets.dns,F.connectResources=Z.resets.connect,F.imageResources=Z.resets.image,F.styleResources=Z.resets.style,F.scriptResources={},F.moduleUnknownResources={},F.moduleScriptResources={},F.instructions=0}return{nextSegmentId:x,rootFormatContext:f.rootFormatContext,progressiveChunkSize:f.progressiveChunkSize,resumableState:f.resumableState,replayNodes:g.rootNodes,replaySlots:P}}function Rs(){var f=e.version;if(f!=="19.2.5")throw Error(n(527,f,"19.2.5"))}return Rs(),Rs(),lf.prerender=function(f,g){return new Promise(function(x,P){var F=g?g.onHeaders:void 0,Z;F&&(Z=function(ke){F(new Headers(ke))});var q=xa(g?g.identifierPrefix:void 0,g?g.unstable_externalRuntimeSrc:void 0,g?g.bootstrapScriptContent:void 0,g?g.bootstrapScripts:void 0,g?g.bootstrapModules:void 0),ye=Il(f,q,ho(q,void 0,g?g.unstable_externalRuntimeSrc:void 0,g?g.importMap:void 0,Z,g?g.maxHeadersLength:void 0),en(g?g.namespaceURI:void 0),g?g.progressiveChunkSize:void 0,g?g.onError:void 0,function(){var ke=new ReadableStream({type:"bytes",pull:function(_e){zl(ye,_e)},cancel:function(_e){ye.destination=null,xo(ye,_e)}},{highWaterMark:0});ke={postponed:wd(ye),prelude:ke},x(ke)},void 0,void 0,P,g?g.onPostpone:void 0);if(g&&g.signal){var ce=g.signal;if(ce.aborted)xo(ye,ce.reason);else{var we=function(){xo(ye,ce.reason),ce.removeEventListener("abort",we)};ce.addEventListener("abort",we)}}io(ye)})},lf.renderToReadableStream=function(f,g){return new Promise(function(x,P){var F,Z,q=new Promise(function(et,rn){Z=et,F=rn}),ye=g?g.onHeaders:void 0,ce;ye&&(ce=function(et){ye(new Headers(et))});var we=xa(g?g.identifierPrefix:void 0,g?g.unstable_externalRuntimeSrc:void 0,g?g.bootstrapScriptContent:void 0,g?g.bootstrapScripts:void 0,g?g.bootstrapModules:void 0),ke=Ss(f,we,ho(we,g?g.nonce:void 0,g?g.unstable_externalRuntimeSrc:void 0,g?g.importMap:void 0,ce,g?g.maxHeadersLength:void 0),en(g?g.namespaceURI:void 0),g?g.progressiveChunkSize:void 0,g?g.onError:void 0,Z,function(){var et=new ReadableStream({type:"bytes",pull:function(rn){zl(ke,rn)},cancel:function(rn){ke.destination=null,xo(ke,rn)}},{highWaterMark:0});et.allReady=q,x(et)},function(et){q.catch(function(){}),P(et)},F,g?g.onPostpone:void 0,g?g.formState:void 0);if(g&&g.signal){var _e=g.signal;if(_e.aborted)xo(ke,_e.reason);else{var nt=function(){xo(ke,_e.reason),_e.removeEventListener("abort",nt)};_e.addEventListener("abort",nt)}}io(ke)})},lf.resume=function(f,g,x){return new Promise(function(P,F){var Z,q,ye=new Promise(function(_e,nt){q=_e,Z=nt}),ce=lr(f,g,ho(g.resumableState,x?x.nonce:void 0,void 0,void 0,void 0,void 0),x?x.onError:void 0,q,function(){var _e=new ReadableStream({type:"bytes",pull:function(nt){zl(ce,nt)},cancel:function(nt){ce.destination=null,xo(ce,nt)}},{highWaterMark:0});_e.allReady=ye,P(_e)},function(_e){ye.catch(function(){}),F(_e)},Z,x?x.onPostpone:void 0);if(x&&x.signal){var we=x.signal;if(we.aborted)xo(ce,we.reason);else{var ke=function(){xo(ce,we.reason),we.removeEventListener("abort",ke)};we.addEventListener("abort",ke)}}io(ce)})},lf.resumeAndPrerender=function(f,g,x){return new Promise(function(P,F){var Z=ro(f,g,ho(g.resumableState,void 0,void 0,void 0,void 0,void 0),x?x.onError:void 0,function(){var ce=new ReadableStream({type:"bytes",pull:function(we){zl(Z,we)},cancel:function(we){Z.destination=null,xo(Z,we)}},{highWaterMark:0});ce={postponed:wd(Z),prelude:ce},P(ce)},void 0,void 0,F,x?x.onPostpone:void 0);if(x&&x.signal){var q=x.signal;if(q.aborted)xo(Z,q.reason);else{var ye=function(){xo(Z,q.reason),q.removeEventListener("abort",ye)};q.addEventListener("abort",ye)}}io(Z)})},lf.version="19.2.5",lf}var gh={};/**
|
|
91
|
+
* @license React
|
|
92
|
+
* react-dom-server-legacy.browser.development.js
|
|
93
|
+
*
|
|
94
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the MIT license found in the
|
|
97
|
+
* LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/var xb;function yS(){return xb||(xb=1,process.env.NODE_ENV!=="production"&&function(){function e(s,d,m,R){return""+d+(m==="s"?"\\73 ":"\\53 ")+R}function t(s,d,m,R){return""+d+(m==="s"?"\\u0073":"\\u0053")+R}function n(s){return s===null||typeof s!="object"?null:(s=$s&&s[$s]||s["@@iterator"],typeof s=="function"?s:null)}function r(s){return s=Object.prototype.toString.call(s),s.slice(8,s.length-1)}function i(s){var d=JSON.stringify(s);return'"'+s+'"'===d?s:d}function o(s){switch(typeof s){case"string":return JSON.stringify(10>=s.length?s:s.slice(0,10)+"...");case"object":return Pa(s)?"[...]":s!==null&&s.$$typeof===Ri?"client":(s=r(s),s==="Object"?"{...}":s);case"function":return s.$$typeof===Ri?"client":(s=s.displayName||s.name)?"function "+s:"function";default:return String(s)}}function l(s){if(typeof s=="string")return s;switch(s){case Fi:return"Suspense";case eo:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case $i:return l(s.render);case _n:return l(s.type);case to:var d=s._payload;s=s._init;try{return l(s(d))}catch{}}return""}function u(s,d){var m=r(s);if(m!=="Object"&&m!=="Array")return m;var R=-1,N=0;if(Pa(s))if(tc.has(s)){var X=tc.get(s);m="<"+l(X)+">";for(var le=0;le<s.length;le++){var pe=s[le];pe=typeof pe=="string"?pe:typeof pe=="object"&&pe!==null?"{"+u(pe)+"}":"{"+o(pe)+"}",""+le===d?(R=m.length,N=pe.length,m+=pe):m=15>pe.length&&40>m.length+pe.length?m+pe:m+"{...}"}m+="</"+l(X)+">"}else{for(m="[",X=0;X<s.length;X++)0<X&&(m+=", "),le=s[X],le=typeof le=="object"&&le!==null?u(le):o(le),""+X===d?(R=m.length,N=le.length,m+=le):m=10>le.length&&40>m.length+le.length?m+le:m+"...";m+="]"}else if(s.$$typeof===Tl)m="<"+l(s.type)+"/>";else{if(s.$$typeof===Ri)return"client";if(ec.has(s)){for(m=ec.get(s),m="<"+(l(m)||"..."),X=Object.keys(s),le=0;le<X.length;le++){m+=" ",pe=X[le],m+=i(pe)+"=";var Ie=s[pe],Se=pe===d&&typeof Ie=="object"&&Ie!==null?u(Ie):o(Ie);typeof Ie!="string"&&(Se="{"+Se+"}"),pe===d?(R=m.length,N=Se.length,m+=Se):m=10>Se.length&&40>m.length+Se.length?m+Se:m+"..."}m+=">"}else{for(m="{",X=Object.keys(s),le=0;le<X.length;le++)0<le&&(m+=", "),pe=X[le],m+=i(pe)+": ",Ie=s[pe],Ie=typeof Ie=="object"&&Ie!==null?u(Ie):o(Ie),pe===d?(R=m.length,N=Ie.length,m+=Ie):m=10>Ie.length&&40>m.length+Ie.length?m+Ie:m+"...";m+="}"}}return d===void 0?m:-1<R&&0<N?(s=" ".repeat(R)+"^".repeat(N),`
|
|
99
|
+
`+m+`
|
|
100
|
+
`+s):`
|
|
101
|
+
`+m}function p(s,d){var m=s.length&3,R=s.length-m,N=d;for(d=0;d<R;){var X=s.charCodeAt(d)&255|(s.charCodeAt(++d)&255)<<8|(s.charCodeAt(++d)&255)<<16|(s.charCodeAt(++d)&255)<<24;++d,X=3432918353*(X&65535)+((3432918353*(X>>>16)&65535)<<16)&4294967295,X=X<<15|X>>>17,X=461845907*(X&65535)+((461845907*(X>>>16)&65535)<<16)&4294967295,N^=X,N=N<<13|N>>>19,N=5*(N&65535)+((5*(N>>>16)&65535)<<16)&4294967295,N=(N&65535)+27492+(((N>>>16)+58964&65535)<<16)}switch(X=0,m){case 3:X^=(s.charCodeAt(d+2)&255)<<16;case 2:X^=(s.charCodeAt(d+1)&255)<<8;case 1:X^=s.charCodeAt(d)&255,X=3432918353*(X&65535)+((3432918353*(X>>>16)&65535)<<16)&4294967295,X=X<<15|X>>>17,N^=461845907*(X&65535)+((461845907*(X>>>16)&65535)<<16)&4294967295}return N^=s.length,N^=N>>>16,N=2246822507*(N&65535)+((2246822507*(N>>>16)&65535)<<16)&4294967295,N^=N>>>13,N=3266489909*(N&65535)+((3266489909*(N>>>16)&65535)<<16)&4294967295,(N^N>>>16)>>>0}function y(s){return typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object"}function S(s){try{return w(s),!1}catch{return!0}}function w(s){return""+s}function C(s,d){if(S(s))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",d,y(s)),w(s)}function M(s,d){if(S(s))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",d,y(s)),w(s)}function O(s){if(S(s))return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",y(s)),w(s)}function k(s){return dn.call(Rl,s)?!0:dn.call(kl,s)?!1:$a.test(s)?Rl[s]=!0:(kl[s]=!0,console.error("Invalid attribute name: `%s`",s),!1)}function W(s,d){Nr[d.type]||d.onChange||d.onInput||d.readOnly||d.disabled||d.value==null||console.error(s==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),d.onChange||d.readOnly||d.disabled||d.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function H(s,d){if(dn.call(Go,d)&&Go[d])return!0;if(Du.test(d)){if(s="aria-"+d.slice(4).toLowerCase(),s=jd.hasOwnProperty(s)?s:null,s==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),Go[d]=!0;if(d!==s)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,s),Go[d]=!0}if(gd.test(d)){if(s=d.toLowerCase(),s=jd.hasOwnProperty(s)?s:null,s==null)return Go[d]=!0,!1;d!==s&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",d,s),Go[d]=!0)}return!0}function B(s,d){var m=[],R;for(R in d)H(s,R)||m.push(R);d=m.map(function(N){return"`"+N+"`"}).join(", "),m.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",d,s):1<m.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",d,s)}function I(s,d,m,R){if(dn.call(Wr,d)&&Wr[d])return!0;var N=d.toLowerCase();if(N==="onfocusin"||N==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Wr[d]=!0;if(typeof m=="function"&&(s==="form"&&d==="action"||s==="input"&&d==="formAction"||s==="button"&&d==="formAction"))return!0;if(Oa.test(d))return pd.test(d)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",d),Wr[d]=!0;if(Ml.test(d)||Yc.test(d))return!0;if(N==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Wr[d]=!0;if(N==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Wr[d]=!0;if(N==="is"&&m!==null&&m!==void 0&&typeof m!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof m),Wr[d]=!0;if(typeof m=="number"&&isNaN(m))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",d),Wr[d]=!0;if(nc.hasOwnProperty(N)){if(N=nc[N],N!==d)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",d,N),Wr[d]=!0}else if(d!==N)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",d,N),Wr[d]=!0;switch(d){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof m){case"boolean":switch(d){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return N=d.toLowerCase().slice(0,5),N==="data-"||N==="aria-"?!0:(m?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',m,d,d,m,d):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',m,d,d,m,d,d,d),Wr[d]=!0)}case"function":case"symbol":return Wr[d]=!0,!1;case"string":if(m==="false"||m==="true"){switch(d){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",m,d,m==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',d,m),Wr[d]=!0}}return!0}function Y(s,d,m){var R=[],N;for(N in d)I(s,N,d[N])||R.push(N);d=R.map(function(X){return"`"+X+"`"}).join(", "),R.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",d,s):1<R.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",d,s)}function K(s){return s.replace(Fr,function(d,m){return m.toUpperCase()})}function G(s){if(typeof s=="boolean"||typeof s=="number"||typeof s=="bigint")return""+s;O(s),s=""+s;var d=Vc.exec(s);if(d){var m="",R,N=0;for(R=d.index;R<s.length;R++){switch(s.charCodeAt(R)){case 34:d=""";break;case 38:d="&";break;case 39:d="'";break;case 60:d="<";break;case 62:d=">";break;default:continue}N!==R&&(m+=s.slice(N,R)),N=R+1,m+=d}s=N!==R?m+s.slice(N,R):m}return s}function ne(s){return qd.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function $(s){return O(s),(""+s).replace(je,t)}function ie(s,d,m,R,N){return{idPrefix:s===void 0?"":s,nextFormID:0,streamingFormat:0,bootstrapScriptContent:m,bootstrapScripts:R,bootstrapModules:N,instructions:v,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function se(s,d,m,R){return{insertionMode:s,selectedValue:d,tagScope:m,viewTransition:R}}function ue(s,d,m){var R=s.tagScope&-25;switch(d){case"noscript":return se(Et,null,R|1,null);case"select":return se(Et,m.value!=null?m.value:m.defaultValue,R,null);case"svg":return se(_t,null,R,null);case"picture":return se(Et,null,R|2,null);case"math":return se(Wn,null,R,null);case"foreignObject":return se(Et,null,R,null);case"table":return se(Jt,null,R,null);case"thead":case"tbody":case"tfoot":return se(ln,null,R,null);case"colgroup":return se(Ht,null,R,null);case"tr":return se(yn,null,R,null);case"head":if(s.insertionMode<Et)return se(Lt,null,R,null);break;case"html":if(s.insertionMode===Zt)return se(Ot,null,R,null)}return s.insertionMode>=Jt||s.insertionMode<Et?se(Et,null,R,null):s.tagScope!==R?se(s.insertionMode,s.selectedValue,R,null):s}function he(s){return s===null?null:{update:s.update,enter:"none",exit:"none",share:s.update,name:s.autoName,autoName:s.autoName,nameIdx:0}}function ve(s,d){return d.tagScope&32&&(s.instructions|=128),se(d.insertionMode,d.selectedValue,d.tagScope|12,he(d.viewTransition))}function ae(s,d){s=he(d.viewTransition);var m=d.tagScope|16;return s!==null&&s.share!=="none"&&(m|=64),se(d.insertionMode,d.selectedValue,m,s)}function me(s,d){if(typeof d!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var m=!0,R;for(R in d)if(dn.call(d,R)){var N=d[R];if(N!=null&&typeof N!="boolean"&&N!==""){if(R.indexOf("--")===0){var X=G(R);M(N,R),N=G((""+N).trim())}else{X=R;var le=N;if(-1<X.indexOf("-")){var pe=X;Fn.hasOwnProperty(pe)&&Fn[pe]||(Fn[pe]=!0,console.error("Unsupported style property %s. Did you mean %s?",pe,K(pe.replace(Ur,"ms-"))))}else if(_l.test(X))pe=X,Fn.hasOwnProperty(pe)&&Fn[pe]||(Fn[pe]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",pe,pe.charAt(0).toUpperCase()+pe.slice(1)));else if(tl.test(le)){pe=X;var Ie=le;Tn.hasOwnProperty(Ie)&&Tn[Ie]||(Tn[Ie]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,pe,Ie.replace(tl,"")))}typeof le=="number"&&(isNaN(le)?Pl||(Pl=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",X)):isFinite(le)||ys||(ys=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",X))),X=R,le=Jn.get(X),le!==void 0||(le=G(X.replace(ws,"-$1").toLowerCase().replace(Lu,"-ms-")),Jn.set(X,le)),X=le,typeof N=="number"?N=N===0||el.has(R)?""+N:N+"px":(M(N,R),N=G((""+N).trim()))}m?(m=!1,s.push(fn,X,ti,N)):s.push(Sn,X,ti,N)}}m||s.push(Bt)}function V(s,d,m){m&&typeof m!="function"&&typeof m!="symbol"&&s.push(cn,d,gn)}function J(s,d,m){typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&s.push(cn,d,hn,G(m),Bt)}function oe(s,d){this.push('<input type="hidden"'),xe(s),J(this,"name",d),J(this,"value",s),this.push(nl)}function xe(s){if(typeof s!="string")throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function ee(s,d){if(typeof d.$$FORM_ACTION=="function"){var m=s.nextFormID++;s=s.idPrefix+m;try{var R=d.$$FORM_ACTION(s);if(R){var N=R.data;N!=null&&N.forEach(xe)}return R}catch(X){if(typeof X=="object"&&X!==null&&typeof X.then=="function")throw X;console.error(`Failed to serialize an action for progressive enhancement:
|
|
102
|
+
%s`,X)}}return null}function Q(s,d,m,R,N,X,le,pe){var Ie=null;if(typeof R=="function"){pe===null||Ol||(Ol=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),N===null&&X===null||rc||(rc=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),le===null||Al||(Al=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var Se=ee(d,R);Se!==null?(pe=Se.name,R=Se.action||"",N=Se.encType,X=Se.method,le=Se.target,Ie=Se.data):(s.push(cn,"formAction",hn,Pr,Bt),le=X=N=R=pe=null,rt(d,m))}return pe!=null&&Ce(s,"name",pe),R!=null&&Ce(s,"formAction",R),N!=null&&Ce(s,"formEncType",N),X!=null&&Ce(s,"formMethod",X),le!=null&&Ce(s,"formTarget",le),Ie}function Ce(s,d,m){switch(d){case"className":J(s,"class",m);break;case"tabIndex":J(s,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":J(s,d,m);break;case"style":me(s,m);break;case"src":case"href":if(m===""){console.error(d==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',d,d);break}case"action":case"formAction":if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean")break;C(m,d),m=ne(""+m),s.push(cn,d,hn,G(m),Bt);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":V(s,d.toLowerCase(),m);break;case"xlinkHref":if(typeof m=="function"||typeof m=="symbol"||typeof m=="boolean")break;C(m,d),m=ne(""+m),s.push(cn,"xlink:href",hn,G(m),Bt);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof m!="function"&&typeof m!="symbol"&&s.push(cn,d,hn,G(m),Bt);break;case"inert":m!==""||yt[d]||(yt[d]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",d));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"&&s.push(cn,d,gn);break;case"capture":case"download":m===!0?s.push(cn,d,gn):m!==!1&&typeof m!="function"&&typeof m!="symbol"&&s.push(cn,d,hn,G(m),Bt);break;case"cols":case"rows":case"size":case"span":typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m&&s.push(cn,d,hn,G(m),Bt);break;case"rowSpan":case"start":typeof m=="function"||typeof m=="symbol"||isNaN(m)||s.push(cn,d,hn,G(m),Bt);break;case"xlinkActuate":J(s,"xlink:actuate",m);break;case"xlinkArcrole":J(s,"xlink:arcrole",m);break;case"xlinkRole":J(s,"xlink:role",m);break;case"xlinkShow":J(s,"xlink:show",m);break;case"xlinkTitle":J(s,"xlink:title",m);break;case"xlinkType":J(s,"xlink:type",m);break;case"xmlBase":J(s,"xml:base",m);break;case"xmlLang":J(s,"xml:lang",m);break;case"xmlSpace":J(s,"xml:space",m);break;default:if((!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=Fu.get(d)||d,k(d))){switch(typeof m){case"function":case"symbol":return;case"boolean":var R=d.toLowerCase().slice(0,5);if(R!=="data-"&&R!=="aria-")return}s.push(cn,d,hn,G(m),Bt)}}}function Ge(s,d,m){if(d!=null){if(m!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof d!="object"||!("__html"in d))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");d=d.__html,d!=null&&(O(d),s.push(""+d))}}function We(s,d){var m=s[d];m!=null&&(m=Pa(m),s.multiple&&!m?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",d):!s.multiple&&m&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",d))}function Oe(s){var d="";return Nu.Children.forEach(s,function(m){m!=null&&(d+=m,mo||typeof m=="string"||typeof m=="number"||typeof m=="bigint"||(mo=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),d}function rt(s,d){if((s.instructions&16)===v){s.instructions|=16;var m=d.preamble,R=d.bootstrapChunks;(m.htmlChunks||m.headChunks)&&R.length===0?(R.push(d.startInlineScript),$r(R,s),R.push(Qt,Xc,Ae)):R.unshift(d.startInlineScript,Qt,Xc,Ae)}}function Fe(s,d){s.push(mt("link"));for(var m in d)if(dn.call(d,m)){var R=d[m];if(R!=null)switch(m){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ce(s,m,R)}}return s.push(nl),null}function Ye(s){return O(s),(""+s).replace(xs,e)}function Ve(s,d,m){s.push(mt(m));for(var R in d)if(dn.call(d,R)){var N=d[R];if(N!=null)switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(m+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ce(s,R,N)}}return s.push(nl),null}function Ke(s,d){s.push(mt("title"));var m=null,R=null,N;for(N in d)if(dn.call(d,N)){var X=d[N];if(X!=null)switch(N){case"children":m=X;break;case"dangerouslySetInnerHTML":R=X;break;default:Ce(s,N,X)}}return s.push(Qt),d=Array.isArray(m)?2>m.length?m[0]:null:m,typeof d!="function"&&typeof d!="symbol"&&d!==null&&d!==void 0&&s.push(G(""+d)),Ge(s,R,m),s.push(tt("title")),null}function st(s,d){s.push(mt("script"));var m=null,R=null,N;for(N in d)if(dn.call(d,N)){var X=d[N];if(X!=null)switch(N){case"children":m=X;break;case"dangerouslySetInnerHTML":R=X;break;default:Ce(s,N,X)}}return s.push(Qt),m!=null&&typeof m!="string"&&(d=typeof m=="number"?"a number for children":Array.isArray(m)?"an array for children":"something unexpected for children",console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",d)),Ge(s,R,m),typeof m=="string"&&s.push($(m)),s.push(tt("script")),null}function gt(s,d,m){s.push(mt(m));var R=m=null,N;for(N in d)if(dn.call(d,N)){var X=d[N];if(X!=null)switch(N){case"children":m=X;break;case"dangerouslySetInnerHTML":R=X;break;default:Ce(s,N,X)}}return s.push(Qt),Ge(s,R,m),m}function it(s,d,m){s.push(mt(m));var R=m=null,N;for(N in d)if(dn.call(d,N)){var X=d[N];if(X!=null)switch(N){case"children":m=X;break;case"dangerouslySetInnerHTML":R=X;break;default:Ce(s,N,X)}}return s.push(Qt),Ge(s,R,m),typeof m=="string"?(s.push(G(m)),null):m}function mt(s){var d=ic.get(s);if(d===void 0){if(!ri.test(s))throw Error("Invalid tag: "+s);d="<"+s,ic.set(s,d)}return d}function ft(s,d,m,R,N,X,le,pe,Ie){B(d,m),d!=="input"&&d!=="textarea"&&d!=="select"||m==null||m.value!==null||oa||(oa=!0,d==="select"&&m.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",d):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d));e:if(d.indexOf("-")===-1)var Se=!1;else switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":Se=!1;break e;default:Se=!0}switch(Se||typeof m.is=="string"||Y(d,m),!m.suppressContentEditableWarning&&m.contentEditable&&m.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),pe.insertionMode!==_t&&pe.insertionMode!==Wn&&d.indexOf("-")===-1&&d.toLowerCase()!==d&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",d),d){case"div":case"span":case"svg":case"path":break;case"a":s.push(mt("a"));var Pe=null,Qe=null,ot;for(ot in m)if(dn.call(m,ot)){var qe=m[ot];if(qe!=null)switch(ot){case"children":Pe=qe;break;case"dangerouslySetInnerHTML":Qe=qe;break;case"href":qe===""?J(s,"href",""):Ce(s,ot,qe);break;default:Ce(s,ot,qe)}}if(s.push(Qt),Ge(s,Qe,Pe),typeof Pe=="string"){s.push(G(Pe));var Be=null}else Be=Pe;return Be;case"g":case"p":case"li":break;case"select":W("select",m),We(m,"value"),We(m,"defaultValue"),m.value===void 0||m.defaultValue===void 0||vo||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),vo=!0),s.push(mt("select"));var jt=null,In=null,Mt;for(Mt in m)if(dn.call(m,Mt)){var pn=m[Mt];if(pn!=null)switch(Mt){case"children":jt=pn;break;case"dangerouslySetInnerHTML":In=pn;break;case"defaultValue":case"value":break;default:Ce(s,Mt,pn)}}return s.push(Qt),Ge(s,In,jt),jt;case"option":var Vr=pe.selectedValue;s.push(mt("option"));var Xr=null,wn=null,Or=null,ua=null,Oi;for(Oi in m)if(dn.call(m,Oi)){var pt=m[Oi];if(pt!=null)switch(Oi){case"children":Xr=pt;break;case"selected":Or=pt,Na||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Na=!0);break;case"dangerouslySetInnerHTML":ua=pt;break;case"value":wn=pt;default:Ce(s,Oi,pt)}}if(Vr!=null){if(wn!==null){C(wn,"value");var kn=""+wn}else ua===null||aa||(aa=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),kn=Oe(Xr);if(Pa(Vr)){for(var Rn=0;Rn<Vr.length;Rn++)if(C(Vr[Rn],"value"),""+Vr[Rn]===kn){s.push(' selected=""');break}}else C(Vr,"select.value"),""+Vr===kn&&s.push(' selected=""')}else Or&&s.push(' selected=""');return s.push(Qt),Ge(s,ua,Xr),Xr;case"textarea":W("textarea",m),m.value===void 0||m.defaultValue===void 0||bo||(console.error("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"),bo=!0),s.push(mt("textarea"));var Pn=null,qn=null,sn=null,Ut;for(Ut in m)if(dn.call(m,Ut)){var fi=m[Ut];if(fi!=null)switch(Ut){case"children":sn=fi;break;case"value":Pn=fi;break;case"defaultValue":qn=fi;break;case"dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Ce(s,Ut,fi)}}if(Pn===null&&qn!==null&&(Pn=qn),s.push(Qt),sn!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),Pn!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Pa(sn)){if(1<sn.length)throw Error("<textarea> can only have at most one child.");O(sn[0]),Pn=""+sn[0]}O(sn),Pn=""+sn}return typeof Pn=="string"&&Pn[0]===`
|
|
103
|
+
`&&s.push(rl),Pn!==null&&(C(Pn,"value"),s.push(G(""+Pn))),null;case"input":W("input",m),s.push(mt("input"));var Mn=null,Zr=null,Gn=null,Bi=null,Fs=null,zi=null,da=null,fa=null,ha=null,Lr;for(Lr in m)if(dn.call(m,Lr)){var a=m[Lr];if(a!=null)switch(Lr){case"children":case"dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"name":Mn=a;break;case"formAction":Zr=a;break;case"formEncType":Gn=a;break;case"formMethod":Bi=a;break;case"formTarget":Fs=a;break;case"defaultChecked":ha=a;break;case"defaultValue":da=a;break;case"checked":fa=a;break;case"value":zi=a;break;default:Ce(s,Lr,a)}}Zr===null||m.type==="image"||m.type==="submit"||Cr||(Cr=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".'));var c=Q(s,R,N,Zr,Gn,Bi,Fs,Mn);return fa===null||ha===null||ni||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",m.type),ni=!0),zi===null||da===null||Ia||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",m.type),Ia=!0),fa!==null?V(s,"checked",fa):ha!==null&&V(s,"checked",ha),zi!==null?Ce(s,"value",zi):da!==null&&Ce(s,"value",da),s.push(nl),c!=null&&c.forEach(oe,s),null;case"button":s.push(mt("button"));var b=null,T=null,A=null,U=null,te=null,de=null,Me=null,be;for(be in m)if(dn.call(m,be)){var Ee=m[be];if(Ee!=null)switch(be){case"children":b=Ee;break;case"dangerouslySetInnerHTML":T=Ee;break;case"name":A=Ee;break;case"formAction":U=Ee;break;case"formEncType":te=Ee;break;case"formMethod":de=Ee;break;case"formTarget":Me=Ee;break;default:Ce(s,be,Ee)}}U===null||m.type==null||m.type==="submit"||Cr||(Cr=!0,console.error('A button can only specify a formAction along with type="submit" or no type.'));var ze=Q(s,R,N,U,te,de,Me,A);if(s.push(Qt),ze!=null&&ze.forEach(oe,s),Ge(s,T,b),typeof b=="string"){s.push(G(b));var Ue=null}else Ue=b;return Ue;case"form":s.push(mt("form"));var He=null,De=null,kt=null,On=null,St=null,qt=null,rr;for(rr in m)if(dn.call(m,rr)){var br=m[rr];if(br!=null)switch(rr){case"children":He=br;break;case"dangerouslySetInnerHTML":De=br;break;case"action":kt=br;break;case"encType":On=br;break;case"method":St=br;break;case"target":qt=br;break;default:Ce(s,rr,br)}}var vn=null,wt=null;if(typeof kt=="function"){On===null&&St===null||rc||(rc=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),qt===null||Al||(Al=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."));var mr=ee(R,kt);mr!==null?(kt=mr.action||"",On=mr.encType,St=mr.method,qt=mr.target,vn=mr.data,wt=mr.name):(s.push(cn,"action",hn,Pr,Bt),qt=St=On=kt=null,rt(R,N))}if(kt!=null&&Ce(s,"action",kt),On!=null&&Ce(s,"encType",On),St!=null&&Ce(s,"method",St),qt!=null&&Ce(s,"target",qt),s.push(Qt),wt!==null&&(s.push('<input type="hidden"'),J(s,"name",wt),s.push(nl),vn!=null&&vn.forEach(oe,s)),Ge(s,De,He),typeof He=="string"){s.push(G(He));var hi=null}else hi=He;return hi;case"menuitem":s.push(mt("menuitem"));for(var An in m)if(dn.call(m,An)){var Yn=m[An];if(Yn!=null)switch(An){case"children":case"dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Ce(s,An,Yn)}}return s.push(Qt),null;case"object":s.push(mt("object"));var Hi=null,Jr=null,Ar;for(Ar in m)if(dn.call(m,Ar)){var Vn=m[Ar];if(Vn!=null)switch(Ar){case"children":Hi=Vn;break;case"dangerouslySetInnerHTML":Jr=Vn;break;case"data":C(Vn,"data");var Tr=ne(""+Vn);if(Tr===""){console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Ar,Ar);break}s.push(cn,"data",hn,G(Tr),Bt);break;default:Ce(s,Ar,Vn)}}if(s.push(Qt),Ge(s,Jr,Hi),typeof Hi=="string"){s.push(G(Hi));var Wi=null}else Wi=Hi;return Wi;case"title":var ao=pe.tagScope&1,Ir=pe.tagScope&4;if(dn.call(m,"children")){var $n=m.children,gi=Array.isArray($n)?2>$n.length?$n[0]:null:$n;Array.isArray($n)&&1<$n.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",$n.length):typeof gi=="function"||typeof gi=="symbol"?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof gi=="function"?"a Function":"a Sybmol"):gi&&gi.toString==={}.toString&&(gi.$$typeof!=null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."))}if(pe.insertionMode===_t||ao||m.itemProp!=null)var Ui=Ke(s,m);else Ir?Ui=null:(Ke(N.hoistableChunks,m),Ui=void 0);return Ui;case"link":var pi=pe.tagScope&1,Ua=pe.tagScope&4,Gi=m.rel,yr=m.href,ko=m.precedence;if(pe.insertionMode===_t||pi||m.itemProp!=null||typeof Gi!="string"||typeof yr!="string"||yr===""){Gi==="stylesheet"&&typeof m.precedence=="string"&&(typeof yr=="string"&&yr||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',yr===null?"`null`":yr===void 0?"`undefined`":yr===""?"an empty string":'something with type "'+typeof yr+'"')),Fe(s,m);var Br=null}else if(m.rel==="stylesheet")if(typeof ko!="string"||m.disabled!=null||m.onLoad||m.onError){if(typeof ko=="string"){if(m.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(m.onLoad||m.onError){var Ju=m.onLoad&&m.onError?"`onLoad` and `onError` props":m.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',Ju,Ju)}}Br=Fe(s,m)}else{var ga=N.styles.get(ko),ir=R.styleResources.hasOwnProperty(yr)?R.styleResources[yr]:void 0;if(ir!==ge){R.styleResources[yr]=ge,ga||(ga={precedence:G(ko),rules:[],hrefs:[],sheets:new Map},N.styles.set(ko,ga));var Ro={state:F,props:Hn({},m,{"data-precedence":m.precedence,precedence:null})};if(ir){ir.length===2&&ho(Ro.props,ir);var vi=N.preloads.stylesheets.get(yr);vi&&0<vi.length?vi.length=0:Ro.state=Z}ga.sheets.set(yr,Ro),le&&le.stylesheets.add(Ro)}else if(ga){var bc=ga.sheets.get(yr);bc&&le&&le.stylesheets.add(bc)}Ie&&s.push("<!-- -->"),Br=null}else m.onLoad||m.onError?Br=Fe(s,m):(Ie&&s.push("<!-- -->"),Br=Ua?null:Fe(N.hoistableChunks,m));return Br;case"script":var Ds=pe.tagScope&1,Ko=m.async;if(typeof m.src!="string"||!m.src||!Ko||typeof Ko=="function"||typeof Ko=="symbol"||m.onLoad||m.onError||pe.insertionMode===_t||Ds||m.itemProp!=null)var Ls=st(s,m);else{var Yi=m.src;if(m.type==="module")var mc=R.moduleScriptResources,Ku=N.preloads.moduleScripts;else mc=R.scriptResources,Ku=N.preloads.scripts;var Mo=mc.hasOwnProperty(Yi)?mc[Yi]:void 0;if(Mo!==ge){mc[Yi]=ge;var yc=m;if(Mo){Mo.length===2&&(yc=Hn({},m),ho(yc,Mo));var bi=Ku.get(Yi);bi&&(bi.length=0)}var Bs=[];N.scripts.add(Bs),st(Bs,yc)}Ie&&s.push("<!-- -->"),Ls=null}return Ls;case"style":var Kl=pe.tagScope&1;if(dn.call(m,"children")){var gl=m.children,_o=Array.isArray(gl)?2>gl.length?gl[0]:null:gl;(typeof _o=="function"||typeof _o=="symbol"||Array.isArray(_o))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof _o=="function"?"a Function":typeof _o=="symbol"?"a Sybmol":"an Array")}var Po=m.precedence,pa=m.href,Vi=m.nonce;if(pe.insertionMode===_t||Kl||m.itemProp!=null||typeof Po!="string"||typeof pa!="string"||pa===""){s.push(mt("style"));var Kr=null,pl=null,va;for(va in m)if(dn.call(m,va)){var Ql=m[va];if(Ql!=null)switch(va){case"children":Kr=Ql;break;case"dangerouslySetInnerHTML":pl=Ql;break;default:Ce(s,va,Ql)}}s.push(Qt);var Ga=Array.isArray(Kr)?2>Kr.length?Kr[0]:null:Kr;typeof Ga!="function"&&typeof Ga!="symbol"&&Ga!==null&&Ga!==void 0&&s.push(Ye(Ga)),Ge(s,pl,Kr),s.push(tt("style"));var Rd=null}else{pa.includes(" ")&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',pa);var Ai=N.styles.get(Po),Qo=R.styleResources.hasOwnProperty(pa)?R.styleResources[pa]:void 0;if(Qo!==ge){R.styleResources[pa]=ge,Qo&&console.error('React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',pa),Ai||(Ai={precedence:G(Po),rules:[],hrefs:[],sheets:new Map},N.styles.set(Po,Ai));var wc=N.nonce.style;if(wc&&wc!==Vi)console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',Po,Vi,wc);else{!wc&&Vi&&console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',Po,Vi),Ai.hrefs.push(G(pa));var du=Ai.rules,fu=null,ih=null,jl;for(jl in m)if(dn.call(m,jl)){var zs=m[jl];if(zs!=null)switch(jl){case"children":fu=zs;break;case"dangerouslySetInnerHTML":ih=zs}}var ql=Array.isArray(fu)?2>fu.length?fu[0]:null:fu;typeof ql!="function"&&typeof ql!="symbol"&&ql!==null&&ql!==void 0&&du.push(Ye(ql)),Ge(du,ih,fu)}}Ai&&le&&le.styles.add(Ai),Ie&&s.push("<!-- -->"),Rd=void 0}return Rd;case"meta":var hu=pe.tagScope&1,Tf=pe.tagScope&4;if(pe.insertionMode===_t||hu||m.itemProp!=null)var tf=Ve(s,m,"meta");else Ie&&s.push("<!-- -->"),tf=Tf?null:typeof m.charSet=="string"?Ve(N.charsetChunks,m,"meta"):m.name==="viewport"?Ve(N.viewportChunks,m,"meta"):Ve(N.hoistableChunks,m,"meta");return tf;case"listing":case"pre":s.push(mt(d));var Ii=null,ba=null,$l;for($l in m)if(dn.call(m,$l)){var Qu=m[$l];if(Qu!=null)switch($l){case"children":Ii=Qu;break;case"dangerouslySetInnerHTML":ba=Qu;break;default:Ce(s,$l,Qu)}}if(s.push(Qt),ba!=null){if(Ii!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof ba!="object"||!("__html"in ba))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var Oo=ba.__html;Oo!=null&&(typeof Oo=="string"&&0<Oo.length&&Oo[0]===`
|
|
104
|
+
`?s.push(rl,Oo):(O(Oo),s.push(""+Oo)))}return typeof Ii=="string"&&Ii[0]===`
|
|
105
|
+
`&&s.push(rl),Ii;case"img":var wr=pe.tagScope&3,er=m.src,Ln=m.srcSet;if(!(m.loading==="lazy"||!er&&!Ln||typeof er!="string"&&er!=null||typeof Ln!="string"&&Ln!=null||m.fetchPriority==="low"||wr)&&(typeof er!="string"||er[4]!==":"||er[0]!=="d"&&er[0]!=="D"||er[1]!=="a"&&er[1]!=="A"||er[2]!=="t"&&er[2]!=="T"||er[3]!=="a"&&er[3]!=="A")&&(typeof Ln!="string"||Ln[4]!==":"||Ln[0]!=="d"&&Ln[0]!=="D"||Ln[1]!=="a"&&Ln[1]!=="A"||Ln[2]!=="t"&&Ln[2]!=="T"||Ln[3]!=="a"&&Ln[3]!=="A")){le!==null&&pe.tagScope&64&&(le.suspenseyImages=!0);var nf=typeof m.sizes=="string"?m.sizes:void 0,Hs=Ln?Ln+`
|
|
106
|
+
`+(nf||""):er,ju=N.preloads.images,Ws=ju.get(Hs);if(Ws)(m.fetchPriority==="high"||10>N.highImagePreloads.size)&&(ju.delete(Hs),N.highImagePreloads.add(Ws));else if(!R.imageResources.hasOwnProperty(Hs)){R.imageResources[Hs]=Te;var xc=m.crossOrigin,qu=typeof xc=="string"?xc==="use-credentials"?xc:"":void 0,Sc=N.headers,gu;Sc&&0<Sc.remainingCapacity&&typeof m.srcSet!="string"&&(m.fetchPriority==="high"||500>Sc.highImagePreloads.length)&&(gu=xa(er,"image",{imageSrcSet:m.srcSet,imageSizes:m.sizes,crossOrigin:qu,integrity:m.integrity,nonce:m.nonce,type:m.type,fetchPriority:m.fetchPriority,referrerPolicy:m.refererPolicy}),0<=(Sc.remainingCapacity-=gu.length+2))?(N.resets.image[Hs]=Te,Sc.highImagePreloads&&(Sc.highImagePreloads+=", "),Sc.highImagePreloads+=gu):(Ws=[],Fe(Ws,{rel:"preload",as:"image",href:Ln?void 0:er,imageSrcSet:Ln,imageSizes:nf,crossOrigin:qu,integrity:m.integrity,type:m.type,fetchPriority:m.fetchPriority,referrerPolicy:m.referrerPolicy}),m.fetchPriority==="high"||10>N.highImagePreloads.size?N.highImagePreloads.add(Ws):(N.bulkPreloads.add(Ws),ju.set(Hs,Ws)))}}return Ve(s,m,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return Ve(s,m,d);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(pe.insertionMode<Et){var pu=X||N.preamble;if(pu.headChunks)throw Error("The `<head>` tag may only be rendered once.");X!==null&&s.push("<!--head-->"),pu.headChunks=[];var Md=gt(pu.headChunks,m,"head")}else Md=it(s,m,"head");return Md;case"body":if(pe.insertionMode<Et){var rf=X||N.preamble;if(rf.bodyChunks)throw Error("The `<body>` tag may only be rendered once.");X!==null&&s.push("<!--body-->"),rf.bodyChunks=[];var kf=gt(rf.bodyChunks,m,"body")}else kf=it(s,m,"body");return kf;case"html":if(pe.insertionMode===Zt){var $u=X||N.preamble;if($u.htmlChunks)throw Error("The `<html>` tag may only be rendered once.");X!==null&&s.push("<!--html-->"),$u.htmlChunks=[ke];var ed=gt($u.htmlChunks,m,"html")}else ed=it(s,m,"html");return ed;default:if(d.indexOf("-")!==-1){s.push(mt(d));var Ec=null,es=null,vl;for(vl in m)if(dn.call(m,vl)){var Xi=m[vl];if(Xi!=null){var vu=vl;switch(vl){case"children":Ec=Xi;break;case"dangerouslySetInnerHTML":es=Xi;break;case"style":me(s,Xi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":vu="class";default:if(k(vl)&&typeof Xi!="function"&&typeof Xi!="symbol"&&Xi!==!1){if(Xi===!0)Xi="";else if(typeof Xi=="object")continue;s.push(cn,vu,hn,G(Xi),Bt)}}}}return s.push(Qt),Ge(s,es,Ec),Ec}}return it(s,m,d)}function tt(s){var d=ii.get(s);return d===void 0&&(d="</"+s+">",ii.set(s,d)),d}function Ft(s,d){s=s.preamble,s.htmlChunks===null&&d.htmlChunks&&(s.htmlChunks=d.htmlChunks),s.headChunks===null&&d.headChunks&&(s.headChunks=d.headChunks),s.bodyChunks===null&&d.bodyChunks&&(s.bodyChunks=d.bodyChunks)}function at(s,d){d=d.bootstrapChunks;for(var m=0;m<d.length-1;m++)s.push(d[m]);return m<d.length?(m=d[m],d.length=0,s.push(m)):!0}function Wt(s,d,m){if(s.push(Zc),m===null)throw Error("An ID must have been assigned before we can complete the boundary.");return s.push(d.boundaryPrefix),d=m.toString(16),s.push(d),s.push(gr)}function Dt(s,d,m,R){switch(m.insertionMode){case Zt:case Ot:case Lt:case Et:return s.push(ol),s.push(d.segmentPrefix),d=R.toString(16),s.push(d),s.push(Kn);case _t:return s.push(al),s.push(d.segmentPrefix),d=R.toString(16),s.push(d),s.push(Nl);case Wn:return s.push(Gr),s.push(d.segmentPrefix),d=R.toString(16),s.push(d),s.push(Cs);case Jt:return s.push(Bu),s.push(d.segmentPrefix),d=R.toString(16),s.push(d),s.push(Fl);case ln:return s.push(Jc),s.push(d.segmentPrefix),d=R.toString(16),s.push(d),s.push(Kc);case yn:return s.push(Dl),s.push(d.segmentPrefix),d=R.toString(16),s.push(d),s.push(Ll);case Ht:return s.push(sc),s.push(d.segmentPrefix),d=R.toString(16),s.push(d),s.push(cc);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function ct(s,d){switch(d.insertionMode){case Zt:case Ot:case Lt:case Et:return s.push(Mi);case _t:return s.push(yo);case Wn:return s.push(oi);case Jt:return s.push(lc);case ln:return s.push(la);case yn:return s.push(ai);case Ht:return s.push(zu);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function $t(s){return JSON.stringify(s).replace(Ts,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function un(s){return JSON.stringify(s).replace(sl,function(d){switch(d){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function tr(s){var d=s.rules,m=s.hrefs;0<d.length&&m.length===0&&console.error("React expected to have at least one href for an a hoistable style but found none. This is a bug in React.");var R=0;if(m.length){for(this.push(Ne.startInlineStyle),this.push(hc),this.push(s.precedence),this.push(cl);R<m.length-1;R++)this.push(m[R]),this.push(xo);for(this.push(m[R]),this.push(md),R=0;R<d.length;R++)this.push(d[R]);ks=this.push(yd),Vo=!0,d.length=0,m.length=0}}function Rt(s){return s.state!==q?Vo=!0:!1}function Le(s,d,m){return Vo=!1,ks=!0,Ne=m,d.styles.forEach(tr,s),Ne=null,d.stylesheets.forEach(Rt),Vo&&(m.stylesToHoist=!0),ks}function Xe(s){for(var d=0;d<s.length;d++)this.push(s[d]);s.length=0}function Pt(s){Fe(io,s.props);for(var d=0;d<io.length;d++)this.push(io[d]);io.length=0,s.state=q}function $e(s){var d=0<s.sheets.size;s.sheets.forEach(Pt,this),s.sheets.clear();var m=s.rules,R=s.hrefs;if(!d||R.length){if(this.push(Ne.startInlineStyle),this.push(ul),this.push(s.precedence),s=0,R.length){for(this.push(zl);s<R.length-1;s++)this.push(R[s]),this.push(xo);this.push(R[s])}for(this.push(Yu),s=0;s<m.length;s++)this.push(m[s]);this.push(wd),m.length=0,R.length=0}}function nr(s){if(s.state===F){s.state=Z;var d=s.props;for(Fe(io,{rel:"preload",as:"style",href:s.props.href,crossOrigin:d.crossOrigin,fetchPriority:d.fetchPriority,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy}),s=0;s<io.length;s++)this.push(io[s]);io.length=0}}function zr(s){s.sheets.forEach(nr,this),s.sheets.clear()}function $r(s,d){(d.instructions&re)===v&&(d.instructions|=re,s.push(Rs,G("_"+d.idPrefix+"R_"),Bt))}function uo(s,d){s.push(f);var m=f;d.stylesheets.forEach(function(R){if(R.state!==q)if(R.state===ye)s.push(m),R=R.props.href,C(R,"href"),R=un(""+R),s.push(R),s.push(P),m=g;else{s.push(m);var N=R.props["data-precedence"],X=R.props,le=ne(""+R.props.href);le=un(le),s.push(le),C(N,"precedence"),N=""+N,s.push(x),N=un(N),s.push(N);for(var pe in X)if(dn.call(X,pe)&&(N=X[pe],N!=null))switch(pe){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Fo(s,pe,N)}s.push(P),m=g,R.state=ye}}),s.push(P)}function Fo(s,d,m){var R=d.toLowerCase();switch(typeof m){case"function":case"symbol":return}switch(d){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":R="class",C(m,R),d=""+m;break;case"hidden":if(m===!1)return;d="";break;case"src":case"href":m=ne(m),C(m,R),d=""+m;break;default:if(2<d.length&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N")||!k(d))return;C(m,R),d=""+m}s.push(x),R=un(R),s.push(R),s.push(x),R=un(d),s.push(R)}function Do(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function fo(s,d,m,R){(s.scriptResources.hasOwnProperty(m)||s.moduleScriptResources.hasOwnProperty(m))&&console.error('Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',m),s.scriptResources[m]=ge,s.moduleScriptResources[m]=ge,s=[],Fe(s,R),d.bootstrapScripts.add(s)}function ho(s,d){s.crossOrigin==null&&(s.crossOrigin=d[0]),s.integrity==null&&(s.integrity=d[1])}function xa(s,d,m){s=Cn(s),d=en(d,"as"),d="<"+s+'>; rel=preload; as="'+d+'"';for(var R in m)dn.call(m,R)&&(s=m[R],typeof s=="string"&&(d+="; "+R.toLowerCase()+'="'+en(s,R)+'"'));return d}function Cn(s){return C(s,"href"),(""+s).replace(ce,ut)}function ut(s){switch(s){case"<":return"%3C";case">":return"%3E";case`
|
|
107
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function en(s,d){return S(s)&&(console.error("The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",d,y(s)),w(s)),(""+s).replace(we,ht)}function ht(s){switch(s){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
108
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function Vt(s){this.styles.add(s)}function Rr(s){this.stylesheets.add(s)}function Tt(s,d){d.styles.forEach(Vt,s),d.stylesheets.forEach(Rr,s),d.suspenseyImages&&(s.suspenseyImages=!0)}function wi(s,d){var m=s.idPrefix,R=[],N=s.bootstrapScriptContent,X=s.bootstrapScripts,le=s.bootstrapModules;if(N!==void 0&&(R.push("<script"),$r(R,s),R.push(Qt,$(N),Ae)),m={placeholderPrefix:m+"P:",segmentPrefix:m+"S:",boundaryPrefix:m+"B:",startInlineScript:"<script",startInlineStyle:"<style",preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:R,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:void 0,style:void 0},hoistableState:null,stylesToHoist:!1},X!==void 0)for(N=0;N<X.length;N++){var pe=X[N],Ie,Se=void 0,Pe=void 0,Qe={rel:"preload",as:"script",fetchPriority:"low",nonce:void 0};typeof pe=="string"?Qe.href=Ie=pe:(Qe.href=Ie=pe.src,Qe.integrity=Pe=typeof pe.integrity=="string"?pe.integrity:void 0,Qe.crossOrigin=Se=typeof pe=="string"||pe.crossOrigin==null?void 0:pe.crossOrigin==="use-credentials"?"use-credentials":""),fo(s,m,Ie,Qe),R.push('<script src="',G(Ie),Bt),typeof Pe=="string"&&R.push(' integrity="',G(Pe),Bt),typeof Se=="string"&&R.push(' crossorigin="',G(Se),Bt),$r(R,s),R.push(' async=""><\/script>')}if(le!==void 0)for(X=0;X<le.length;X++)N=le[X],Se=Ie=void 0,Pe={rel:"modulepreload",fetchPriority:"low",nonce:void 0},typeof N=="string"?Pe.href=pe=N:(Pe.href=pe=N.src,Pe.integrity=Se=typeof N.integrity=="string"?N.integrity:void 0,Pe.crossOrigin=Ie=typeof N=="string"||N.crossOrigin==null?void 0:N.crossOrigin==="use-credentials"?"use-credentials":""),fo(s,m,pe,Pe),R.push('<script type="module" src="',G(pe),Bt),typeof Se=="string"&&R.push(' integrity="',G(Se),Bt),typeof Ie=="string"&&R.push(' crossorigin="',G(Ie),Bt),$r(R,s),R.push(' async=""><\/script>');return{placeholderPrefix:m.placeholderPrefix,segmentPrefix:m.segmentPrefix,boundaryPrefix:m.boundaryPrefix,startInlineScript:m.startInlineScript,startInlineStyle:m.startInlineStyle,preamble:m.preamble,externalRuntimeScript:m.externalRuntimeScript,bootstrapChunks:m.bootstrapChunks,importMapChunks:m.importMapChunks,onHeaders:m.onHeaders,headers:m.headers,resets:m.resets,charsetChunks:m.charsetChunks,viewportChunks:m.viewportChunks,hoistableChunks:m.hoistableChunks,preconnects:m.preconnects,fontPreloads:m.fontPreloads,highImagePreloads:m.highImagePreloads,styles:m.styles,bootstrapScripts:m.bootstrapScripts,scripts:m.scripts,bulkPreloads:m.bulkPreloads,preloads:m.preloads,nonce:m.nonce,stylesToHoist:m.stylesToHoist,generateStaticMarkup:d}}function xi(s,d,m,R){return m.generateStaticMarkup?(s.push(G(d)),!1):(d===""?s=R:(R&&s.push("<!-- -->"),s.push(G(d)),s=!0),s)}function go(s,d,m,R){d.generateStaticMarkup||m&&R&&s.push("<!-- -->")}function tn(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===nt?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case ia:return"Fragment";case qs:return"Profiler";case js:return"StrictMode";case Fi:return"Suspense";case eo:return"SuspenseList";case Uo:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case hr:return"Portal";case qi:return s.displayName||"Context";case Hc:return(s._context.displayName||"Context")+".Consumer";case $i:var d=s.render;return s=s.displayName,s||(s=d.displayName||d.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case _n:return d=s.displayName||null,d!==null?d:tn(s.type)||"Memo";case to:d=s._payload,s=s._init;try{return tn(s(d))}catch{}}return null}function ur(s,d){if(s!==d){s.context._currentValue2=s.parentValue,s=s.parent;var m=d.parent;if(s===null){if(m!==null)throw Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(m===null)throw Error("The stacks must reach the root at the same time. This is a bug in React.");ur(s,m)}d.context._currentValue2=d.value}}function po(s){s.context._currentValue2=s.parentValue,s=s.parent,s!==null&&po(s)}function Ji(s){var d=s.parent;d!==null&&Ji(d),s.context._currentValue2=s.value}function ar(s,d){if(s.context._currentValue2=s.parentValue,s=s.parent,s===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");s.depth===d.depth?ur(s,d):ar(s,d)}function ei(s,d){var m=d.parent;if(m===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");s.depth===m.depth?ur(s,m):ei(s,m),d.context._currentValue2=d.value}function xn(s){var d=At;d!==s&&(d===null?Ji(s):s===null?po(d):d.depth===s.depth?ur(d,s):d.depth>s.depth?ar(d,s):ei(d,s),At=s)}function bl(s){if(s!==null&&typeof s!="function"){var d=String(s);Ba.has(d)||(Ba.add(d),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",s))}}function Si(s,d){s=(s=s.constructor)&&tn(s)||"ReactClass";var m=s+"."+d;on[m]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
109
|
+
|
|
110
|
+
Please check the code for the %s component.`,d,s),on[m]=!0)}function an(s,d,m){var R=s.id;s=s.overflow;var N=32-Eo(R)-1;R&=~(1<<N),m+=1;var X=32-Eo(d)+N;if(30<X){var le=N-N%5;return X=(R&(1<<le)-1).toString(32),R>>=le,N-=le,{id:1<<32-Eo(d)+N|m<<N|R,overflow:X+s}}return{id:1<<X|m<<N|R,overflow:s}}function Ic(s){return s>>>=0,s===0?32:31-(si(s)/Xo|0)|0}function Xt(){}function ml(s,d,m){switch(m=s[m],m===void 0?s.push(d):m!==d&&(d.then(Xt,Xt),d=m),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Xt,Xt):(s=d,s.status="pending",s.then(function(R){if(d.status==="pending"){var N=d;N.status="fulfilled",N.value=R}},function(R){if(d.status==="pending"){var N=d;N.status="rejected",N.reason=R}})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}throw Wl=d,ci}}function Va(){if(Wl===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var s=Wl;return Wl=null,s}function yl(s,d){return s===d&&(s!==0||1/s===1/d)||s!==s&&d!==d}function Ki(){if(Pi===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
111
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
112
|
+
2. You might be breaking the Rules of Hooks
|
|
113
|
+
3. You might have more than one copy of React in the same app
|
|
114
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return sa&&console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"),Pi}function mn(){if(0<iu)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function nn(){return Un===null?Vu===null?(Ps=!1,Vu=Un=mn()):(Ps=!0,Un=Vu):Un.next===null?(Ps=!1,Un=Un.next=mn()):(Ps=!0,Un=Un.next),Un}function Je(){var s=Os;return Os=null,s}function xt(){sa=!1,Ul=ui=_s=Pi=null,Zo=!1,Vu=null,iu=0,Un=dl=null}function Xn(s){return sa&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),s._currentValue2}function Qi(s,d){return typeof d=="function"?d(s):d}function Hr(s,d,m){if(s!==Qi&&(Yl="useReducer"),Pi=Ki(),Un=nn(),Ps){if(m=Un.queue,d=m.dispatch,dl!==null){var R=dl.get(m);if(R!==void 0){dl.delete(m),m=Un.memoizedState;do{var N=R.action;sa=!0,m=s(m,N),sa=!1,R=R.next}while(R!==null);return Un.memoizedState=m,[m,d]}}return[Un.memoizedState,d]}return sa=!0,s=s===Qi?typeof d=="function"?d():d:m!==void 0?m(d):d,sa=!1,Un.memoizedState=s,s=Un.queue={last:null,dispatch:null},s=s.dispatch=Ru.bind(null,Pi,s),[Un.memoizedState,s]}function Nc(s,d){if(Pi=Ki(),Un=nn(),d=d===void 0?null:d,Un!==null){var m=Un.memoizedState;if(m!==null&&d!==null){e:{var R=m[1];if(R===null)console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Yl),R=!1;else{d.length!==R.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
115
|
+
|
|
116
|
+
Previous: %s
|
|
117
|
+
Incoming: %s`,Yl,"["+d.join(", ")+"]","["+R.join(", ")+"]");for(var N=0;N<R.length&&N<d.length;N++)if(!Ms(d[N],R[N])){R=!1;break e}R=!0}}if(R)return m[0]}}return sa=!0,s=s(),sa=!1,Un.memoizedState=[s,d],s}function Ru(s,d,m){if(25<=iu)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(s===Pi)if(Zo=!0,s={action:m,next:null},dl===null&&(dl=new Map),m=dl.get(d),m===void 0)dl.set(d,s);else{for(d=m;d.next!==null;)d=d.next;d.next=s}}function Fc(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}function Bn(){throw Error("startTransition cannot be called during server rendering.")}function Dc(){throw Error("Cannot update optimistic state while rendering.")}function ss(s,d,m){Ki();var R=Gl++,N=ui;if(typeof s.$$FORM_ACTION=="function"){var X=null,le=Ul;N=N.formState;var pe=s.$$IS_SIGNATURE_EQUAL;if(N!==null&&typeof pe=="function"){var Ie=N[1];pe.call(s,N[2],N[3])&&(X=m!==void 0?"p"+m:"k"+p(JSON.stringify([le,null,R]),0),Ie===X&&(nu=R,d=N[0]))}var Se=s.bind(null,d);return s=function(Qe){Se(Qe)},typeof Se.$$FORM_ACTION=="function"&&(s.$$FORM_ACTION=function(Qe){Qe=Se.$$FORM_ACTION(Qe),m!==void 0&&(C(m,"target"),m+="",Qe.action=m);var ot=Qe.data;return ot&&(X===null&&(X=m!==void 0?"p"+m:"k"+p(JSON.stringify([le,null,R]),0)),ot.append("$ACTION_KEY",X)),Qe}),[d,s,!1]}var Pe=s.bind(null,d);return[d,function(Qe){Pe(Qe)},!1]}function ji(s){var d=ru;return ru+=1,Os===null&&(Os=[]),ml(Os,s,d)}function wl(){throw Error("Cache cannot be refreshed during server rendering.")}function dd(){}function fd(){if(oo===0){fl=console.log,za=console.info,ou=console.warn,au=console.error,lu=console.group,Xl=console.groupCollapsed,Ed=console.groupEnd;var s={configurable:!0,enumerable:!0,value:dd,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}oo++}function cs(){if(oo--,oo===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Hn({},s,{value:fl}),info:Hn({},s,{value:za}),warn:Hn({},s,{value:ou}),error:Hn({},s,{value:au}),group:Hn({},s,{value:lu}),groupCollapsed:Hn({},s,{value:Xl}),groupEnd:Hn({},s,{value:Ed})})}0>oo&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function us(s){var d=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,s=s.stack,Error.prepareStackTrace=d,s.startsWith(`Error: react-stack-top-frame
|
|
118
|
+
`)&&(s=s.slice(29)),d=s.indexOf(`
|
|
119
|
+
`),d!==-1&&(s=s.slice(d+1)),d=s.indexOf("react_stack_bottom_frame"),d!==-1&&(d=s.lastIndexOf(`
|
|
120
|
+
`,d)),d!==-1)s=s.slice(0,d);else return"";return s}function qo(s){if(Xu===void 0)try{throw Error()}catch(m){var d=m.stack.trim().match(/\n( *(at )?)/);Xu=d&&d[1]||"",As=-1<m.stack.indexOf(`
|
|
121
|
+
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
122
|
+
`+Xu+s+As}function $o(s,d){if(!s||Cd)return"";var m=su.get(s);if(m!==void 0)return m;Cd=!0,m=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var R=null;R=Zn.H,Zn.H=null,fd();try{var N={DetermineComponentFrameRoot:function(){try{if(d){var ot=function(){throw Error()};if(Object.defineProperty(ot.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ot,[])}catch(Be){var qe=Be}Reflect.construct(s,[],ot)}else{try{ot.call()}catch(Be){qe=Be}s.call(ot.prototype)}}else{try{throw Error()}catch(Be){qe=Be}(ot=s())&&typeof ot.catch=="function"&&ot.catch(function(){})}}catch(Be){if(Be&&qe&&typeof Be.stack=="string")return[Be.stack,qe.stack]}return[null,null]}};N.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var X=Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot,"name");X&&X.configurable&&Object.defineProperty(N.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var le=N.DetermineComponentFrameRoot(),pe=le[0],Ie=le[1];if(pe&&Ie){var Se=pe.split(`
|
|
123
|
+
`),Pe=Ie.split(`
|
|
124
|
+
`);for(le=X=0;X<Se.length&&!Se[X].includes("DetermineComponentFrameRoot");)X++;for(;le<Pe.length&&!Pe[le].includes("DetermineComponentFrameRoot");)le++;if(X===Se.length||le===Pe.length)for(X=Se.length-1,le=Pe.length-1;1<=X&&0<=le&&Se[X]!==Pe[le];)le--;for(;1<=X&&0<=le;X--,le--)if(Se[X]!==Pe[le]){if(X!==1||le!==1)do if(X--,le--,0>le||Se[X]!==Pe[le]){var Qe=`
|
|
125
|
+
`+Se[X].replace(" at new "," at ");return s.displayName&&Qe.includes("<anonymous>")&&(Qe=Qe.replace("<anonymous>",s.displayName)),typeof s=="function"&&su.set(s,Qe),Qe}while(1<=X&&0<=le);break}}}finally{Cd=!1,Zn.H=R,cs(),Error.prepareStackTrace=m}return Se=(Se=s?s.displayName||s.name:"")?qo(Se):"",typeof s=="function"&&su.set(s,Se),Se}function Lc(s){if(typeof s=="string")return qo(s);if(typeof s=="function")return s.prototype&&s.prototype.isReactComponent?$o(s,!0):$o(s,!1);if(typeof s=="object"&&s!==null){switch(s.$$typeof){case $i:return $o(s.render,!1);case _n:return $o(s.type,!1);case to:var d=s,m=d._payload;d=d._init;try{s=d(m)}catch{return qo("Lazy")}return Lc(s)}if(typeof s.name=="string"){e:{if(m=s.name,d=s.env,s=s.debugLocation,s!=null){s=us(s);var R=s.lastIndexOf(`
|
|
126
|
+
`);if(s=R===-1?s:s.slice(R+1),s.indexOf(m)!==-1){m=`
|
|
127
|
+
`+s;break e}}m=qo(m+(d?" ["+d+"]":""))}return m}}switch(s){case eo:return qo("SuspenseList");case Fi:return qo("Suspense")}return""}function Ys(s,d){return(500<d.byteSize||!1)&&d.contentPreamble===null}function Vs(s){if(typeof s=="object"&&s!==null&&typeof s.environmentName=="string"){var d=s.environmentName;s=[s].slice(0),typeof s[0]=="string"?s.splice(0,1,"[%s] "+s[0]," "+d+" "):s.splice(0,0,"[%s]"," "+d+" "),s.unshift(console),d=_e.apply(console.error,s),d()}else console.error(s);return null}function Sr(s,d,m,R,N,X,le,pe,Ie,Se,Pe){var Qe=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=s,this.renderState=d,this.rootFormatContext=m,this.progressiveChunkSize=R===void 0?12800:R,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=Qe,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=N===void 0?Vs:N,this.onPostpone=Se===void 0?Xt:Se,this.onAllReady=X===void 0?Xt:X,this.onShellReady=le===void 0?Xt:le,this.onShellError=pe===void 0?Xt:pe,this.onFatalError=Ie===void 0?Xt:Ie,this.formState=Pe===void 0?null:Pe,this.didWarnForKey=null}function ds(s,d,m,R,N,X,le,pe,Ie,Se,Pe,Qe){var ot=Td();return 1e3<ot-Ef&&(Zn.recentlyCreatedOwnerStacks=0,Ef=ot),d=new Sr(d,m,R,N,X,le,pe,Ie,Se,Pe,Qe),m=Ei(d,0,null,R,!1,!1),m.parentFlushed=!0,s=ea(d,null,s,-1,null,m,null,null,d.abortableTasks,null,R,null,Hl,null,null,et,null),Ci(s),d.pingedTasks.push(s),d}function Xs(s,d){s.pingedTasks.push(d),s.pingedTasks.length===1&&(s.flushScheduled=s.destination!==null,Ou(s))}function Bc(s,d,m,R,N){return m={status:Ha,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:d,completedSegments:[],byteSize:0,fallbackAbortableTasks:m,errorDigest:null,contentState:Do(),fallbackState:Do(),contentPreamble:R,fallbackPreamble:N,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null},d!==null&&(d.pendingTasks++,R=d.boundaries,R!==null&&(s.allPendingTasks++,m.pendingTasks++,R.push(m)),s=d.inheritedHoistables,s!==null&&Tt(m.contentState,s)),m}function ea(s,d,m,R,N,X,le,pe,Ie,Se,Pe,Qe,ot,qe,Be,jt,In){s.allPendingTasks++,N===null?s.pendingRootTasks++:N.pendingTasks++,qe!==null&&qe.pendingTasks++;var Mt={replay:null,node:m,childIndex:R,ping:function(){return Xs(s,Mt)},blockedBoundary:N,blockedSegment:X,blockedPreamble:le,hoistableState:pe,abortSet:Ie,keyPath:Se,formatContext:Pe,context:Qe,treeContext:ot,row:qe,componentStack:Be,thenableState:d};return Mt.debugTask=In,Ie.add(Mt),Mt}function Zs(s,d,m,R,N,X,le,pe,Ie,Se,Pe,Qe,ot,qe,Be,jt){s.allPendingTasks++,X===null?s.pendingRootTasks++:X.pendingTasks++,ot!==null&&ot.pendingTasks++,m.pendingTasks++;var In={replay:m,node:R,childIndex:N,ping:function(){return Xs(s,In)},blockedBoundary:X,blockedSegment:null,blockedPreamble:null,hoistableState:le,abortSet:pe,keyPath:Ie,formatContext:Se,context:Pe,treeContext:Qe,row:ot,componentStack:qe,thenableState:d};return In.debugTask=jt,pe.add(In),In}function Ei(s,d,m,R,N,X){return{status:Ha,parentFlushed:!1,id:-1,index:d,chunks:[],children:[],preambleChildren:[],parentFormatContext:R,boundary:m,lastPushedText:N,textEmbedded:X}}function Lo(){if(Co===null||Co.componentStack===null)return"";var s=Co.componentStack;try{var d="";if(typeof s.type=="string")d+=qo(s.type);else if(typeof s.type=="function"){if(!s.owner){var m=d,R=s.type,N=R?R.displayName||R.name:"",X=N?qo(N):"";d=m+X}}else s.owner||(d+=Lc(s.type));for(;s;)m=null,s.debugStack!=null?m=us(s.debugStack):(X=s,X.stack!=null&&(m=typeof X.stack!="string"?X.stack=us(X.stack):X.stack)),(s=s.owner)&&m&&(d+=`
|
|
128
|
+
`+m);var le=d}catch(pe){le=`
|
|
129
|
+
Error generating stack: `+pe.message+`
|
|
130
|
+
`+pe.stack}return le}function Mu(s,d){if(d!=null)for(var m=d.length-1;0<=m;m--){var R=d[m];if(typeof R.name=="string"||typeof R.time=="number")break;if(R.awaited!=null){var N=R.debugStack==null?R.awaited:R;if(N.debugStack!==void 0){s.componentStack={parent:s.componentStack,type:R,owner:N.owner,stack:N.debugStack},s.debugTask=N.debugTask;break}}}}function Js(s,d){if(d!=null)for(var m=0;m<d.length;m++){var R=d[m];typeof R.name=="string"&&R.debugStack!==void 0&&(s.componentStack={parent:s.componentStack,type:R,owner:R.owner,stack:R.debugStack},s.debugTask=R.debugTask)}}function Ci(s){var d=s.node;if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Tl:var m=d.type,R=d._owner,N=d._debugStack;Js(s,d._debugInfo),s.debugTask=d._debugTask,s.componentStack={parent:s.componentStack,type:m,owner:R,stack:N};break;case to:Js(s,d._debugInfo);break;default:typeof d.then=="function"&&Js(s,d._debugInfo)}}function Ks(s){return s===null?null:{parent:s.parent,type:"Suspense Fallback",owner:s.owner,stack:s.stack}}function Xa(s){var d={};return s&&Object.defineProperty(d,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var m="",R=s;do m+=Lc(R.type),R=R.parent;while(R);var N=m}catch(X){N=`
|
|
131
|
+
Error generating stack: `+X.message+`
|
|
132
|
+
`+X.stack}return Object.defineProperty(d,"componentStack",{value:N}),N}}),d}function fs(s,d,m,R,N){s.errorDigest=d,m instanceof Error?(d=String(m.message),m=String(m.stack)):(d=typeof m=="object"&&m!==null?u(m):String(m),m=null),N=N?`Switched to client rendering because the server rendering aborted due to:
|
|
133
|
+
|
|
134
|
+
`:`Switched to client rendering because the server rendering errored:
|
|
135
|
+
|
|
136
|
+
`,s.errorMessage=N+d,s.errorStack=m!==null?N+m:null,s.errorComponentStack=R.componentStack}function Ti(s,d,m,R){if(s=s.onError,d=R?R.run(s.bind(null,d,m)):s(d,m),d!=null&&typeof d!="string")console.error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',typeof d);else return d}function Mr(s,d,m,R){m=s.onShellError;var N=s.onFatalError;R?(R.run(m.bind(null,d)),R.run(N.bind(null,d))):(m(d),N(d)),s.destination!==null?(s.status=Wa,s.destination.destroy(d)):(s.status=13,s.fatalError=d)}function Nn(s,d){_u(s,d.next,d.hoistables)}function _u(s,d,m){for(;d!==null;){m!==null&&(Tt(d.hoistables,m),d.inheritedHoistables=m);var R=d.boundaries;if(R!==null){d.boundaries=null;for(var N=0;N<R.length;N++){var X=R[N];m!==null&&Tt(X.contentState,m),Ho(s,X,null,null)}}if(d.pendingTasks--,0<d.pendingTasks)break;m=d.hoistables,d=d.next}}function Sa(s,d){var m=d.boundaries;if(m!==null&&d.pendingTasks===m.length){for(var R=!0,N=0;N<m.length;N++){var X=m[N];if(X.pendingTasks!==1||X.parentFlushed||Ys(s,X)){R=!1;break}}R&&_u(s,d,d.hoistables)}}function Bo(s){var d={pendingTasks:1,boundaries:null,hoistables:Do(),inheritedHoistables:null,together:!1,next:null};return s!==null&&0<s.pendingTasks&&(d.pendingTasks++,d.boundaries=[],s.next=d),d}function Pu(s,d,m,R,N){var X=d.keyPath,le=d.treeContext,pe=d.row,Ie=d.componentStack,Se=d.debugTask;Js(d,d.node.props.children._debugInfo),d.keyPath=m,m=R.length;var Pe=null;if(d.replay!==null){var Qe=d.replay.slots;if(Qe!==null&&typeof Qe=="object")for(var ot=0;ot<m;ot++){var qe=N!=="backwards"&&N!=="unstable_legacy-backwards"?ot:m-1-ot,Be=R[qe];d.row=Pe=Bo(Pe),d.treeContext=an(le,m,qe);var jt=Qe[qe];typeof jt=="number"?(Ca(s,d,jt,Be,qe),delete Qe[qe]):fr(s,d,Be,qe),--Pe.pendingTasks===0&&Nn(s,Pe)}else for(Qe=0;Qe<m;Qe++)ot=N!=="backwards"&&N!=="unstable_legacy-backwards"?Qe:m-1-Qe,qe=R[ot],dr(s,d,qe),d.row=Pe=Bo(Pe),d.treeContext=an(le,m,ot),fr(s,d,qe,ot),--Pe.pendingTasks===0&&Nn(s,Pe)}else if(N!=="backwards"&&N!=="unstable_legacy-backwards")for(N=0;N<m;N++)Qe=R[N],dr(s,d,Qe),d.row=Pe=Bo(Pe),d.treeContext=an(le,m,N),fr(s,d,Qe,N),--Pe.pendingTasks===0&&Nn(s,Pe);else{for(N=d.blockedSegment,Qe=N.children.length,ot=N.chunks.length,qe=m-1;0<=qe;qe--){Be=R[qe],d.row=Pe=Bo(Pe),d.treeContext=an(le,m,qe),jt=Ei(s,ot,null,d.formatContext,qe===0?N.lastPushedText:!0,!0),N.children.splice(Qe,0,jt),d.blockedSegment=jt,dr(s,d,Be);try{fr(s,d,Be,qe),go(jt.chunks,s.renderState,jt.lastPushedText,jt.textEmbedded),jt.status=di,--Pe.pendingTasks===0&&Nn(s,Pe)}catch(In){throw jt.status=s.status===12?To:En,In}}d.blockedSegment=N,N.lastPushedText=!1}pe!==null&&Pe!==null&&0<Pe.pendingTasks&&(pe.pendingTasks++,Pe.next=pe),d.treeContext=le,d.row=pe,d.keyPath=X,d.componentStack=Ie,d.debugTask=Se}function Ea(s,d,m,R,N,X){var le=d.thenableState;for(d.thenableState=null,Pi={},_s=d,ui=s,Ul=m,sa=!1,Gl=tu=0,nu=-1,ru=0,Os=le,s=Zu(R,N,X);Zo;)Zo=!1,Gl=tu=0,nu=-1,ru=0,iu+=1,Un=null,s=R(N,X);return xt(),s}function ta(s,d,m,R,N,X,le){var pe=!1;if(X!==0&&s.formState!==null){var Ie=d.blockedSegment;if(Ie!==null){pe=!0,Ie=Ie.chunks;for(var Se=0;Se<X;Se++)Se===le?Ie.push("<!--F!-->"):Ie.push("<!--F-->")}}X=d.keyPath,d.keyPath=m,N?(m=d.treeContext,d.treeContext=an(m,1,0),fr(s,d,R,-1),d.treeContext=m):pe?fr(s,d,R,-1):zt(s,d,R,-1),d.keyPath=X}function hs(s,d,m,R,N,X){if(typeof R=="function")if(R.prototype&&R.prototype.isReactComponent){var le=N;if("ref"in N){le={};for(var pe in N)pe!=="ref"&&(le[pe]=N[pe])}var Ie=R.defaultProps;if(Ie){le===N&&(le=Hn({},le,N));for(var Se in Ie)le[Se]===void 0&&(le[Se]=Ie[Se])}var Pe=le,Qe=et,ot=R.contextType;if("contextType"in R&&ot!==null&&(ot===void 0||ot.$$typeof!==qi)&&!_i.has(R)){_i.add(R);var qe=ot===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof ot!="object"?" However, it is set to a "+typeof ot+".":ot.$$typeof===Hc?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(ot).join(", ")+"}.";console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",tn(R)||"Component",qe)}typeof ot=="object"&&ot!==null&&(Qe=ot._currentValue2);var Be=new R(Pe,Qe);if(typeof R.getDerivedStateFromProps=="function"&&(Be.state===null||Be.state===void 0)){var jt=tn(R)||"Component";Dn.has(jt)||(Dn.add(jt),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",jt,Be.state===null?"null":"undefined",jt))}if(typeof R.getDerivedStateFromProps=="function"||typeof Be.getSnapshotBeforeUpdate=="function"){var In=null,Mt=null,pn=null;if(typeof Be.componentWillMount=="function"&&Be.componentWillMount.__suppressDeprecationWarning!==!0?In="componentWillMount":typeof Be.UNSAFE_componentWillMount=="function"&&(In="UNSAFE_componentWillMount"),typeof Be.componentWillReceiveProps=="function"&&Be.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Mt="componentWillReceiveProps":typeof Be.UNSAFE_componentWillReceiveProps=="function"&&(Mt="UNSAFE_componentWillReceiveProps"),typeof Be.componentWillUpdate=="function"&&Be.componentWillUpdate.__suppressDeprecationWarning!==!0?pn="componentWillUpdate":typeof Be.UNSAFE_componentWillUpdate=="function"&&(pn="UNSAFE_componentWillUpdate"),In!==null||Mt!==null||pn!==null){var Vr=tn(R)||"Component",Xr=typeof R.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Di.has(Vr)||(Di.add(Vr),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
137
|
+
|
|
138
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
139
|
+
|
|
140
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
141
|
+
https://react.dev/link/unsafe-component-lifecycles`,Vr,Xr,In!==null?`
|
|
142
|
+
`+In:"",Mt!==null?`
|
|
143
|
+
`+Mt:"",pn!==null?`
|
|
144
|
+
`+pn:""))}}var wn=tn(R)||"Component";Be.render||(R.prototype&&typeof R.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",wn):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",wn)),!Be.getInitialState||Be.getInitialState.isReactClassApproved||Be.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",wn),Be.getDefaultProps&&!Be.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",wn),Be.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",wn),R.childContextTypes&&!sr.has(R)&&(sr.add(R),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",wn)),R.contextTypes&&!li.has(R)&&(li.add(R),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",wn)),typeof Be.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",wn),R.prototype&&R.prototype.isPureReactComponent&&typeof Be.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",tn(R)||"A pure component"),typeof Be.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",wn),typeof Be.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",wn),typeof Be.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",wn),typeof Be.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",wn);var Or=Be.props!==Pe;Be.props!==void 0&&Or&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",wn),Be.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",wn,wn),typeof Be.getSnapshotBeforeUpdate!="function"||typeof Be.componentDidUpdate=="function"||Yr.has(R)||(Yr.add(R),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",tn(R))),typeof Be.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",wn),typeof Be.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",wn),typeof R.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",wn);var ua=Be.state;ua&&(typeof ua!="object"||Pa(ua))&&console.error("%s.state: must be set to an object or null",wn),typeof Be.getChildContext=="function"&&typeof R.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",wn);var Oi=Be.state!==void 0?Be.state:null;Be.updater=jn,Be.props=Pe,Be.state=Oi;var pt={queue:[],replace:!1};Be._reactInternals=pt;var kn=R.contextType;if(Be.context=typeof kn=="object"&&kn!==null?kn._currentValue2:et,Be.state===Pe){var Rn=tn(R)||"Component";So.has(Rn)||(So.add(Rn),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Rn))}var Pn=R.getDerivedStateFromProps;if(typeof Pn=="function"){var qn=Pn(Pe,Oi);if(qn===void 0){var sn=tn(R)||"Component";It.has(sn)||(It.add(sn),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",sn))}var Ut=qn==null?Oi:Hn({},Oi,qn);Be.state=Ut}if(typeof R.getDerivedStateFromProps!="function"&&typeof Be.getSnapshotBeforeUpdate!="function"&&(typeof Be.UNSAFE_componentWillMount=="function"||typeof Be.componentWillMount=="function")){var fi=Be.state;if(typeof Be.componentWillMount=="function"){if(Be.componentWillMount.__suppressDeprecationWarning!==!0){var Mn=tn(R)||"Unknown";Qn[Mn]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
145
|
+
|
|
146
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
147
|
+
|
|
148
|
+
Please update the following components: %s`,Mn),Qn[Mn]=!0)}Be.componentWillMount()}if(typeof Be.UNSAFE_componentWillMount=="function"&&Be.UNSAFE_componentWillMount(),fi!==Be.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",tn(R)||"Component"),jn.enqueueReplaceState(Be,Be.state,null)),pt.queue!==null&&0<pt.queue.length){var Zr=pt.queue,Gn=pt.replace;if(pt.queue=null,pt.replace=!1,Gn&&Zr.length===1)Be.state=Zr[0];else{for(var Bi=Gn?Zr[0]:Be.state,Fs=!0,zi=Gn?1:0;zi<Zr.length;zi++){var da=Zr[zi],fa=typeof da=="function"?da.call(Be,Bi,Pe,void 0):da;fa!=null&&(Fs?(Fs=!1,Bi=Hn({},Bi,fa)):Hn(Bi,fa))}Be.state=Bi}}else pt.queue=null}var ha=cu(Be);if(s.status===12)throw null;Be.props!==Pe&&(Zl||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",tn(R)||"a component"),Zl=!0);var Lr=d.keyPath;d.keyPath=m,zt(s,d,ha,-1),d.keyPath=Lr}else{if(R.prototype&&typeof R.prototype.render=="function"){var a=tn(R)||"Unknown";gc[a]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",a,a),gc[a]=!0)}var c=Ea(s,d,m,R,N,void 0);if(s.status===12)throw null;var b=tu!==0,T=Gl,A=nu;if(R.contextTypes){var U=tn(R)||"Unknown";uu[U]||(uu[U]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",U))}if(R&&R.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
149
|
+
%s.childContextTypes = ...`,R.displayName||R.name||"Component"),typeof R.getDerivedStateFromProps=="function"){var te=tn(R)||"Unknown";Ns[te]||(console.error("%s: Function components do not support getDerivedStateFromProps.",te),Ns[te]=!0)}if(typeof R.contextType=="object"&&R.contextType!==null){var de=tn(R)||"Unknown";kd[de]||(console.error("%s: Function components do not support contextType.",de),kd[de]=!0)}ta(s,d,m,c,b,T,A)}else if(typeof R=="string"){var Me=d.blockedSegment;if(Me===null){var be=N.children,Ee=d.formatContext,ze=d.keyPath;d.formatContext=ue(Ee,R,N),d.keyPath=m,fr(s,d,be,-1),d.formatContext=Ee,d.keyPath=ze}else{var Ue=ft(Me.chunks,R,N,s.resumableState,s.renderState,d.blockedPreamble,d.hoistableState,d.formatContext,Me.lastPushedText);Me.lastPushedText=!1;var He=d.formatContext,De=d.keyPath;if(d.keyPath=m,(d.formatContext=ue(He,R,N)).insertionMode===Lt){var kt=Ei(s,0,null,d.formatContext,!1,!1);Me.preambleChildren.push(kt),d.blockedSegment=kt;try{kt.status=6,fr(s,d,Ue,-1),go(kt.chunks,s.renderState,kt.lastPushedText,kt.textEmbedded),kt.status=di}finally{d.blockedSegment=Me}}else fr(s,d,Ue,-1);d.formatContext=He,d.keyPath=De;e:{var On=Me.chunks,St=s.resumableState;switch(R){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(He.insertionMode<=Ot){St.hasBody=!0;break e}break;case"html":if(He.insertionMode===Zt){St.hasHtml=!0;break e}break;case"head":if(He.insertionMode<=Ot)break e}On.push(tt(R))}Me.lastPushedText=!1}}else{switch(R){case Wc:case js:case qs:case ia:var qt=d.keyPath;d.keyPath=m,zt(s,d,N.children,-1),d.keyPath=qt;return;case Uo:var rr=d.blockedSegment;if(rr===null){if(N.mode!=="hidden"){var br=d.keyPath;d.keyPath=m,fr(s,d,N.children,-1),d.keyPath=br}}else if(N.mode!=="hidden"){s.renderState.generateStaticMarkup||rr.chunks.push("<!--&-->"),rr.lastPushedText=!1;var vn=d.keyPath;d.keyPath=m,fr(s,d,N.children,-1),d.keyPath=vn,s.renderState.generateStaticMarkup||rr.chunks.push("<!--/&-->"),rr.lastPushedText=!1}return;case eo:e:{var wt=N.children,mr=N.revealOrder;if(mr==="forwards"||mr==="backwards"||mr==="unstable_legacy-backwards"){if(Pa(wt)){Pu(s,d,m,wt,mr);break e}var hi=n(wt);if(hi){var An=hi.call(wt);if(An){gs(d,wt,-1,An,hi);var Yn=An.next();if(!Yn.done){var Hi=[];do Hi.push(Yn.value),Yn=An.next();while(!Yn.done);Pu(s,d,m,wt,mr)}break e}}}if(mr==="together"){var Jr=d.keyPath,Ar=d.row,Vn=d.row=Bo(null);Vn.boundaries=[],Vn.together=!0,d.keyPath=m,zt(s,d,wt,-1),--Vn.pendingTasks===0&&Nn(s,Vn),d.keyPath=Jr,d.row=Ar,Ar!==null&&0<Vn.pendingTasks&&(Ar.pendingTasks++,Vn.next=Ar)}else{var Tr=d.keyPath;d.keyPath=m,zt(s,d,wt,-1),d.keyPath=Tr}}return;case Gc:case zn:throw Error("ReactDOMServer does not yet support scope components.");case Fi:e:if(d.replay!==null){var Wi=d.keyPath,ao=d.formatContext,Ir=d.row;d.keyPath=m,d.formatContext=ae(s.resumableState,ao),d.row=null;var $n=N.children;try{fr(s,d,$n,-1)}finally{d.keyPath=Wi,d.formatContext=ao,d.row=Ir}}else{var gi=d.keyPath,Ui=d.formatContext,pi=d.row,Ua=d.blockedBoundary,Gi=d.blockedPreamble,yr=d.hoistableState,ko=d.blockedSegment,Br=N.fallback,Ju=N.children,ga=new Set,ir=Bc(s,d.row,ga,null,null);s.trackedPostpones!==null&&(ir.trackedContentKeyPath=m);var Ro=Ei(s,ko.chunks.length,ir,d.formatContext,!1,!1);ko.children.push(Ro),ko.lastPushedText=!1;var vi=Ei(s,0,null,d.formatContext,!1,!1);if(vi.parentFlushed=!0,s.trackedPostpones!==null){var bc=d.componentStack,Ds=[m[0],"Suspense Fallback",m[2]],Ko=[Ds[1],Ds[2],[],null];s.trackedPostpones.workingMap.set(Ds,Ko),ir.trackedFallbackNode=Ko,d.blockedSegment=Ro,d.blockedPreamble=ir.fallbackPreamble,d.keyPath=Ds,d.formatContext=ve(s.resumableState,Ui),d.componentStack=Ks(bc),Ro.status=6;try{fr(s,d,Br,-1),go(Ro.chunks,s.renderState,Ro.lastPushedText,Ro.textEmbedded),Ro.status=di}catch(du){throw Ro.status=s.status===12?To:En,du}finally{d.blockedSegment=ko,d.blockedPreamble=Gi,d.keyPath=gi,d.formatContext=Ui}var Ls=ea(s,null,Ju,-1,ir,vi,ir.contentPreamble,ir.contentState,d.abortSet,m,ae(s.resumableState,d.formatContext),d.context,d.treeContext,null,bc,et,d.debugTask);Ci(Ls),s.pingedTasks.push(Ls)}else{d.blockedBoundary=ir,d.blockedPreamble=ir.contentPreamble,d.hoistableState=ir.contentState,d.blockedSegment=vi,d.keyPath=m,d.formatContext=ae(s.resumableState,Ui),d.row=null,vi.status=6;try{if(fr(s,d,Ju,-1),go(vi.chunks,s.renderState,vi.lastPushedText,vi.textEmbedded),vi.status=di,Cl(ir,vi),ir.pendingTasks===0&&ir.status===Ha){if(ir.status=di,!Ys(s,ir)){pi!==null&&--pi.pendingTasks===0&&Nn(s,pi),s.pendingRootTasks===0&&d.blockedPreamble&&ps(s);break e}}else pi!==null&&pi.together&&Sa(s,pi)}catch(du){if(ir.status=Dr,s.status===12){vi.status=To;var Yi=s.fatalError}else vi.status=En,Yi=du;var mc=Xa(d.componentStack),Ku=Ti(s,Yi,mc,d.debugTask);fs(ir,Ku,Yi,mc,!1),xl(s,ir)}finally{d.blockedBoundary=Ua,d.blockedPreamble=Gi,d.hoistableState=yr,d.blockedSegment=ko,d.keyPath=gi,d.formatContext=Ui,d.row=pi}var Mo=ea(s,null,Br,-1,Ua,Ro,ir.fallbackPreamble,ir.fallbackState,ga,[m[0],"Suspense Fallback",m[2]],ve(s.resumableState,d.formatContext),d.context,d.treeContext,d.row,Ks(d.componentStack),et,d.debugTask);Ci(Mo),s.pingedTasks.push(Mo)}}return}if(typeof R=="object"&&R!==null)switch(R.$$typeof){case $i:if("ref"in N){var yc={};for(var bi in N)bi!=="ref"&&(yc[bi]=N[bi])}else yc=N;var Bs=Ea(s,d,m,R.render,yc,X);ta(s,d,m,Bs,tu!==0,Gl,nu);return;case _n:hs(s,d,m,R.type,N,X);return;case qi:var Kl=N.value,gl=N.children,_o=d.context,Po=d.keyPath,pa=R._currentValue2;R._currentValue2=Kl,R._currentRenderer2!==void 0&&R._currentRenderer2!==null&&R._currentRenderer2!==rn&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),R._currentRenderer2=rn;var Vi=At,Kr={parent:Vi,depth:Vi===null?0:Vi.depth+1,context:R,parentValue:pa,value:Kl};At=Kr,d.context=Kr,d.keyPath=m,zt(s,d,gl,-1);var pl=At;if(pl===null)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");pl.context!==R&&console.error("The parent context is not the expected context. This is probably a bug in React."),pl.context._currentValue2=pl.parentValue,R._currentRenderer2!==void 0&&R._currentRenderer2!==null&&R._currentRenderer2!==rn&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),R._currentRenderer2=rn;var va=At=pl.parent;d.context=va,d.keyPath=Po,_o!==d.context&&console.error("Popping the context provider did not return back to the original snapshot. This is a bug in React.");return;case Hc:var Ql=R._context,Ga=N.children;typeof Ga!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var Rd=Ga(Ql._currentValue2),Ai=d.keyPath;d.keyPath=m,zt(s,d,Rd,-1),d.keyPath=Ai;return;case to:var Qo=Sf(R);if(s.status===12)throw null;hs(s,d,m,Qo,N,X);return}var wc="";throw(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(wc+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((R==null?R:typeof R)+"."+wc))}}function Ca(s,d,m,R,N){var X=d.replay,le=d.blockedBoundary,pe=Ei(s,0,null,d.formatContext,!1,!1);pe.id=m,pe.parentFlushed=!0;try{d.replay=null,d.blockedSegment=pe,fr(s,d,R,N),pe.status=di,le===null?s.completedRootSegment=pe:(Cl(le,pe),le.parentFlushed&&s.partialBoundaries.push(le))}finally{d.replay=X,d.blockedSegment=null}}function Ta(s,d,m,R,N,X,le,pe,Ie,Se){X=Se.nodes;for(var Pe=0;Pe<X.length;Pe++){var Qe=X[Pe];if(N===Qe[1]){if(Qe.length===4){if(R!==null&&R!==Qe[0])throw Error("Expected the resume to render <"+Qe[0]+"> in this slot but instead it rendered <"+R+">. The tree doesn't match so React will fallback to client rendering.");var ot=Qe[2];R=Qe[3],N=d.node,d.replay={nodes:ot,slots:R,pendingTasks:1};try{if(hs(s,d,m,le,pe,Ie),d.replay.pendingTasks===1&&0<d.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");d.replay.pendingTasks--}catch(Or){if(typeof Or=="object"&&Or!==null&&(Or===ci||typeof Or.then=="function"))throw d.node===N?d.replay=Se:X.splice(Pe,1),Or;d.replay.pendingTasks--,le=Xa(d.componentStack),pe=s,s=d.blockedBoundary,m=Or,Ie=R,R=Ti(pe,m,le,d.debugTask),Ma(pe,s,ot,Ie,m,R,le,!1)}d.replay=Se}else{if(le!==Fi)throw Error("Expected the resume to render <Suspense> in this slot but instead it rendered <"+(tn(le)||"Unknown")+">. The tree doesn't match so React will fallback to client rendering.");e:{Se=void 0,R=Qe[5],le=Qe[2],Ie=Qe[3],N=Qe[4]===null?[]:Qe[4][2],Qe=Qe[4]===null?null:Qe[4][3];var qe=d.keyPath,Be=d.formatContext,jt=d.row,In=d.replay,Mt=d.blockedBoundary,pn=d.hoistableState,Vr=pe.children,Xr=pe.fallback,wn=new Set;pe=Bc(s,d.row,wn,null,null),pe.parentFlushed=!0,pe.rootSegmentID=R,d.blockedBoundary=pe,d.hoistableState=pe.contentState,d.keyPath=m,d.formatContext=ae(s.resumableState,Be),d.row=null,d.replay={nodes:le,slots:Ie,pendingTasks:1};try{if(fr(s,d,Vr,-1),d.replay.pendingTasks===1&&0<d.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");if(d.replay.pendingTasks--,pe.pendingTasks===0&&pe.status===Ha){pe.status=di,s.completedBoundaries.push(pe);break e}}catch(Or){pe.status=Dr,ot=Xa(d.componentStack),Se=Ti(s,Or,ot,d.debugTask),fs(pe,Se,Or,ot,!1),d.replay.pendingTasks--,s.clientRenderedBoundaries.push(pe)}finally{d.blockedBoundary=Mt,d.hoistableState=pn,d.replay=In,d.keyPath=qe,d.formatContext=Be,d.row=jt}pe=Zs(s,null,{nodes:N,slots:Qe,pendingTasks:0},Xr,-1,Mt,pe.fallbackState,wn,[m[0],"Suspense Fallback",m[2]],ve(s.resumableState,d.formatContext),d.context,d.treeContext,d.row,Ks(d.componentStack),et,d.debugTask),Ci(pe),s.pingedTasks.push(pe)}}X.splice(Pe,1);break}}}function gs(s,d,m,R,N){R===d?(m!==-1||s.componentStack===null||typeof s.componentStack.type!="function"||Object.prototype.toString.call(s.componentStack.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R)!=="[object Generator]")&&(pc||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),pc=!0):d.entries!==N||Jo||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Jo=!0)}function zt(s,d,m,R){d.replay!==null&&typeof d.replay.slots=="number"?Ca(s,d,d.replay.slots,m,R):(d.node=m,d.childIndex=R,m=d.componentStack,R=d.debugTask,Ci(d),zo(s,d),d.componentStack=m,d.debugTask=R)}function zo(s,d){var m=d.node,R=d.childIndex;if(m!==null){if(typeof m=="object"){switch(m.$$typeof){case Tl:var N=m.type,X=m.key;m=m.props;var le=m.ref;le=le!==void 0?le:null;var pe=d.debugTask,Ie=tn(N);X=X??(R===-1?0:R);var Se=[d.keyPath,Ie,X];d.replay!==null?pe?pe.run(Ta.bind(null,s,d,Se,Ie,X,R,N,m,le,d.replay)):Ta(s,d,Se,Ie,X,R,N,m,le,d.replay):pe?pe.run(hs.bind(null,s,d,Se,N,m,le)):hs(s,d,Se,N,m,le);return;case hr:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case to:if(N=Sf(m),s.status===12)throw null;zt(s,d,N,R);return}if(Pa(m)){na(s,d,m,R);return}if((X=n(m))&&(N=X.call(m))){if(gs(d,m,R,N,X),m=N.next(),!m.done){X=[];do X.push(m.value),m=N.next();while(!m.done);na(s,d,X,R)}return}if(typeof m.then=="function")return d.thenableState=null,zt(s,d,ji(m),R);if(m.$$typeof===qi)return zt(s,d,m._currentValue2,R);throw s=Object.prototype.toString.call(m),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}typeof m=="string"?(d=d.blockedSegment,d!==null&&(d.lastPushedText=xi(d.chunks,m,s.renderState,d.lastPushedText))):typeof m=="number"||typeof m=="bigint"?(d=d.blockedSegment,d!==null&&(d.lastPushedText=xi(d.chunks,""+m,s.renderState,d.lastPushedText))):(typeof m=="function"&&(s=m.displayName||m.name||"Component",console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",s,s)),typeof m=="symbol"&&console.error(`Symbols are not valid as a React child.
|
|
150
|
+
%s`,String(m)))}}function dr(s,d,m){if(m!==null&&typeof m=="object"&&(m.$$typeof===Tl||m.$$typeof===hr)&&m._store&&(!m._store.validated&&m.key==null||m._store.validated===2)){if(typeof m._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");m._store.validated=1;var R=s.didWarnForKey;if(R==null&&(R=s.didWarnForKey=new WeakSet),s=d.componentStack,s!==null&&!R.has(s)){R.add(s);var N=tn(m.type);R=m._owner;var X=s.owner;if(s="",X&&typeof X.type<"u"){var le=tn(X.type);le&&(s=`
|
|
151
|
+
|
|
152
|
+
Check the render method of \``+le+"`.")}s||N&&(s=`
|
|
153
|
+
|
|
154
|
+
Check the top-level render call using <`+N+">."),N="",R!=null&&X!==R&&(X=null,typeof R.type<"u"?X=tn(R.type):typeof R.name=="string"&&(X=R.name),X&&(N=" It was passed a child from "+X+".")),R=d.componentStack,d.componentStack={parent:d.componentStack,type:m.type,owner:m._owner,stack:m._debugStack},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',s,N),d.componentStack=R}}}function na(s,d,m,R){var N=d.keyPath,X=d.componentStack,le=d.debugTask;if(Js(d,d.node._debugInfo),R!==-1&&(d.keyPath=[d.keyPath,"Fragment",R],d.replay!==null)){for(var pe=d.replay,Ie=pe.nodes,Se=0;Se<Ie.length;Se++){var Pe=Ie[Se];if(Pe[1]===R){R=Pe[2],Pe=Pe[3],d.replay={nodes:R,slots:Pe,pendingTasks:1};try{if(na(s,d,m,-1),d.replay.pendingTasks===1&&0<d.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");d.replay.pendingTasks--}catch(Be){if(typeof Be=="object"&&Be!==null&&(Be===ci||typeof Be.then=="function"))throw Be;d.replay.pendingTasks--;var Qe=Xa(d.componentStack);m=d.blockedBoundary;var ot=Be,qe=Pe;Pe=Ti(s,ot,Qe,d.debugTask),Ma(s,m,R,qe,ot,Pe,Qe,!1)}d.replay=pe,Ie.splice(Se,1);break}}d.keyPath=N,d.componentStack=X,d.debugTask=le;return}if(pe=d.treeContext,Ie=m.length,d.replay!==null&&(Se=d.replay.slots,Se!==null&&typeof Se=="object")){for(R=0;R<Ie;R++)Pe=m[R],d.treeContext=an(pe,Ie,R),ot=Se[R],typeof ot=="number"?(Ca(s,d,ot,Pe,R),delete Se[R]):fr(s,d,Pe,R);d.treeContext=pe,d.keyPath=N,d.componentStack=X,d.debugTask=le;return}for(Se=0;Se<Ie;Se++)R=m[Se],dr(s,d,R),d.treeContext=an(pe,Ie,Se),fr(s,d,R,Se);d.treeContext=pe,d.keyPath=N,d.componentStack=X,d.debugTask=le}function Er(s,d,m){if(m.status=Li,m.rootSegmentID=s.nextSegmentId++,s=m.trackedContentKeyPath,s===null)throw Error("It should not be possible to postpone at the root. This is a bug in React.");var R=m.trackedFallbackNode,N=[],X=d.workingMap.get(s);return X===void 0?(m=[s[1],s[2],N,null,R,m.rootSegmentID],d.workingMap.set(s,m),Wo(m,s[0],d),m):(X[4]=R,X[5]=m.rootSegmentID,X)}function Za(s,d,m,R){R.status=Li;var N=m.keyPath,X=m.blockedBoundary;if(X===null)R.id=s.nextSegmentId++,d.rootSlots=R.id,s.completedRootSegment!==null&&(s.completedRootSegment.status=Li);else{if(X!==null&&X.status===Ha){var le=Er(s,d,X);if(X.trackedContentKeyPath===N&&m.childIndex===-1){R.id===-1&&(R.id=R.parentFlushed?X.rootSegmentID:s.nextSegmentId++),le[3]=R.id;return}}if(R.id===-1&&(R.id=R.parentFlushed&&X!==null?X.rootSegmentID:s.nextSegmentId++),m.childIndex===-1)N===null?d.rootSlots=R.id:(m=d.workingMap.get(N),m===void 0?(m=[N[1],N[2],[],R.id],Wo(m,N[0],d)):m[3]=R.id);else{if(N===null){if(s=d.rootSlots,s===null)s=d.rootSlots={};else if(typeof s=="number")throw Error("It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.")}else if(X=d.workingMap,le=X.get(N),le===void 0)s={},le=[N[1],N[2],[],s],X.set(N,le),Wo(le,N[0],d);else if(s=le[3],s===null)s=le[3]={};else if(typeof s=="number")throw Error("It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.");s[m.childIndex]=R.id}}}function xl(s,d){s=s.trackedPostpones,s!==null&&(d=d.trackedContentKeyPath,d!==null&&(d=s.workingMap.get(d),d!==void 0&&(d.length=4,d[2]=[],d[3]=null)))}function ra(s,d,m){return Zs(s,m,d.replay,d.node,d.childIndex,d.blockedBoundary,d.hoistableState,d.abortSet,d.keyPath,d.formatContext,d.context,d.treeContext,d.row,d.componentStack,et,d.debugTask)}function ka(s,d,m){var R=d.blockedSegment,N=Ei(s,R.chunks.length,null,d.formatContext,R.lastPushedText,!0);return R.children.push(N),R.lastPushedText=!1,ea(s,m,d.node,d.childIndex,d.blockedBoundary,N,d.blockedPreamble,d.hoistableState,d.abortSet,d.keyPath,d.formatContext,d.context,d.treeContext,d.row,d.componentStack,et,d.debugTask)}function fr(s,d,m,R){var N=d.formatContext,X=d.context,le=d.keyPath,pe=d.treeContext,Ie=d.componentStack,Se=d.debugTask,Pe=d.blockedSegment;if(Pe===null){Pe=d.replay;try{return zt(s,d,m,R)}catch(qe){if(xt(),m=qe===ci?Va():qe,s.status!==12&&typeof m=="object"&&m!==null){if(typeof m.then=="function"){R=qe===ci?Je():null,s=ra(s,d,R).ping,m.then(s,s),d.formatContext=N,d.context=X,d.keyPath=le,d.treeContext=pe,d.componentStack=Ie,d.replay=Pe,d.debugTask=Se,xn(X);return}if(m.message==="Maximum call stack size exceeded"){m=qe===ci?Je():null,m=ra(s,d,m),s.pingedTasks.push(m),d.formatContext=N,d.context=X,d.keyPath=le,d.treeContext=pe,d.componentStack=Ie,d.replay=Pe,d.debugTask=Se,xn(X);return}}}}else{var Qe=Pe.children.length,ot=Pe.chunks.length;try{return zt(s,d,m,R)}catch(qe){if(xt(),Pe.children.length=Qe,Pe.chunks.length=ot,m=qe===ci?Va():qe,s.status!==12&&typeof m=="object"&&m!==null){if(typeof m.then=="function"){Pe=m,m=qe===ci?Je():null,s=ka(s,d,m).ping,Pe.then(s,s),d.formatContext=N,d.context=X,d.keyPath=le,d.treeContext=pe,d.componentStack=Ie,d.debugTask=Se,xn(X);return}if(m.message==="Maximum call stack size exceeded"){Pe=qe===ci?Je():null,Pe=ka(s,d,Pe),s.pingedTasks.push(Pe),d.formatContext=N,d.context=X,d.keyPath=le,d.treeContext=pe,d.componentStack=Ie,d.debugTask=Se,xn(X);return}}}}throw d.formatContext=N,d.context=X,d.keyPath=le,d.treeContext=pe,xn(X),m}function Ra(s){var d=s.blockedBoundary,m=s.blockedSegment;m!==null&&(m.status=To,Ho(this,d,s.row,m))}function Ma(s,d,m,R,N,X,le,pe){for(var Ie=0;Ie<m.length;Ie++){var Se=m[Ie];if(Se.length===4)Ma(s,d,Se[2],Se[3],N,X,le,pe);else{var Pe=s;Se=Se[5];var Qe=N,ot=X,qe=le,Be=pe,jt=Bc(Pe,null,new Set,null,null);jt.parentFlushed=!0,jt.rootSegmentID=Se,jt.status=Dr,fs(jt,ot,Qe,qe,Be),jt.parentFlushed&&Pe.clientRenderedBoundaries.push(jt)}}if(m.length=0,R!==null){if(d===null)throw Error("We should not have any resumable nodes in the shell. This is a bug in React.");if(d.status!==Dr&&(d.status=Dr,fs(d,X,N,le,pe),d.parentFlushed&&s.clientRenderedBoundaries.push(d)),typeof R=="object")for(var In in R)delete R[In]}}function Sl(s,d,m){var R=s.blockedBoundary,N=s.blockedSegment;if(N!==null){if(N.status===6)return;N.status=To}var X=Xa(s.componentStack),le=s.node;if(le!==null&&typeof le=="object"&&Mu(s,le._debugInfo),R===null){if(d.status!==13&&d.status!==Wa){if(R=s.replay,R===null){d.trackedPostpones!==null&&N!==null?(R=d.trackedPostpones,Ti(d,m,X,s.debugTask),Za(d,R,s,N),Ho(d,null,s.row,N)):(Ti(d,m,X,s.debugTask),Mr(d,m,X,s.debugTask));return}R.pendingTasks--,R.pendingTasks===0&&0<R.nodes.length&&(N=Ti(d,m,X,null),Ma(d,null,R.nodes,R.slots,m,N,X,!0)),d.pendingRootTasks--,d.pendingRootTasks===0&&El(d)}}else{if(le=d.trackedPostpones,R.status!==Dr){if(le!==null&&N!==null)return Ti(d,m,X,s.debugTask),Za(d,le,s,N),R.fallbackAbortableTasks.forEach(function(pe){return Sl(pe,d,m)}),R.fallbackAbortableTasks.clear(),Ho(d,R,s.row,N);R.status=Dr,N=Ti(d,m,X,s.debugTask),R.status=Dr,fs(R,N,m,X,!0),xl(d,R),R.parentFlushed&&d.clientRenderedBoundaries.push(R)}R.pendingTasks--,X=R.row,X!==null&&--X.pendingTasks===0&&Nn(d,X),R.fallbackAbortableTasks.forEach(function(pe){return Sl(pe,d,m)}),R.fallbackAbortableTasks.clear()}s=s.row,s!==null&&--s.pendingTasks===0&&Nn(d,s),d.allPendingTasks--,d.allPendingTasks===0&&ki(d)}function Ja(s,d){try{var m=s.renderState,R=m.onHeaders;if(R){var N=m.headers;if(N){m.headers=null;var X=N.preconnects;if(N.fontPreloads&&(X&&(X+=", "),X+=N.fontPreloads),N.highImagePreloads&&(X&&(X+=", "),X+=N.highImagePreloads),!d){var le=m.styles.values(),pe=le.next();e:for(;0<N.remainingCapacity&&!pe.done;pe=le.next())for(var Ie=pe.value.sheets.values(),Se=Ie.next();0<N.remainingCapacity&&!Se.done;Se=Ie.next()){var Pe=Se.value,Qe=Pe.props,ot=Qe.href,qe=Pe.props,Be=xa(qe.href,"style",{crossOrigin:qe.crossOrigin,integrity:qe.integrity,nonce:qe.nonce,type:qe.type,fetchPriority:qe.fetchPriority,referrerPolicy:qe.referrerPolicy,media:qe.media});if(0<=(N.remainingCapacity-=Be.length+2))m.resets.style[ot]=Te,X&&(X+=", "),X+=Be,m.resets.style[ot]=typeof Qe.crossOrigin=="string"||typeof Qe.integrity=="string"?[Qe.crossOrigin,Qe.integrity]:Te;else break e}}R(X?{Link:X}:{})}}}catch(jt){Ti(s,jt,{},null)}}function El(s){s.trackedPostpones===null&&Ja(s,!0),s.trackedPostpones===null&&ps(s),s.onShellError=Xt,s=s.onShellReady,s()}function ki(s){Ja(s,s.trackedPostpones===null?!0:s.completedRootSegment===null||s.completedRootSegment.status!==Li),ps(s),s=s.onAllReady,s()}function Cl(s,d){if(d.chunks.length===0&&d.children.length===1&&d.children[0].boundary===null&&d.children[0].id===-1){var m=d.children[0];m.id=d.id,m.parentFlushed=!0,m.status!==di&&m.status!==To&&m.status!==En||Cl(s,m)}else s.completedSegments.push(d)}function Ho(s,d,m,R){if(m!==null&&(--m.pendingTasks===0?Nn(s,m):m.together&&Sa(s,m)),s.allPendingTasks--,d===null){if(R!==null&&R.parentFlushed){if(s.completedRootSegment!==null)throw Error("There can only be one root segment. This is a bug in React.");s.completedRootSegment=R}s.pendingRootTasks--,s.pendingRootTasks===0&&El(s)}else if(d.pendingTasks--,d.status!==Dr)if(d.pendingTasks===0){if(d.status===Ha&&(d.status=di),R!==null&&R.parentFlushed&&(R.status===di||R.status===To)&&Cl(d,R),d.parentFlushed&&s.completedBoundaries.push(d),d.status===di)m=d.row,m!==null&&Tt(m.hoistables,d.contentState),Ys(s,d)||(d.fallbackAbortableTasks.forEach(Ra,s),d.fallbackAbortableTasks.clear(),m!==null&&--m.pendingTasks===0&&Nn(s,m)),s.pendingRootTasks===0&&s.trackedPostpones===null&&d.contentPreamble!==null&&ps(s);else if(d.status===Li&&(d=d.row,d!==null)){if(s.trackedPostpones!==null){m=s.trackedPostpones;var N=d.next;if(N!==null&&(R=N.boundaries,R!==null))for(N.boundaries=null,N=0;N<R.length;N++){var X=R[N];Er(s,m,X),Ho(s,X,null,null)}}--d.pendingTasks===0&&Nn(s,d)}}else R===null||!R.parentFlushed||R.status!==di&&R.status!==To||(Cl(d,R),d.completedSegments.length===1&&d.parentFlushed&&s.partialBoundaries.push(d)),d=d.row,d!==null&&d.together&&Sa(s,d);s.allPendingTasks===0&&ki(s)}function Ou(s){if(s.status!==Wa&&s.status!==13){var d=At,m=Zn.H;Zn.H=Vl;var R=Zn.A;Zn.A=Sd;var N=vr;vr=s;var X=Zn.getCurrentStack;Zn.getCurrentStack=Lo;var le=xd;xd=s.resumableState;try{var pe=s.pingedTasks,Ie;for(Ie=0;Ie<pe.length;Ie++){var Se=s,Pe=pe[Ie],Qe=Pe.blockedSegment;if(Qe===null){var ot=void 0,qe=Se;if(Se=Pe,Se.replay.pendingTasks!==0){xn(Se.context),ot=Co,Co=Se;try{if(typeof Se.replay.slots=="number"?Ca(qe,Se,Se.replay.slots,Se.node,Se.childIndex):zo(qe,Se),Se.replay.pendingTasks===1&&0<Se.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");Se.replay.pendingTasks--,Se.abortSet.delete(Se),Ho(qe,Se.blockedBoundary,Se.row,null)}catch(Gn){xt();var Be=Gn===ci?Va():Gn;if(typeof Be=="object"&&Be!==null&&typeof Be.then=="function"){var jt=Se.ping;Be.then(jt,jt),Se.thenableState=Gn===ci?Je():null}else{Se.replay.pendingTasks--,Se.abortSet.delete(Se);var In=Xa(Se.componentStack),Mt=void 0,pn=qe,Vr=Se.blockedBoundary,Xr=qe.status===12?qe.fatalError:Be,wn=In,Or=Se.replay.nodes,ua=Se.replay.slots;Mt=Ti(pn,Xr,wn,Se.debugTask),Ma(pn,Vr,Or,ua,Xr,Mt,wn,!1),qe.pendingRootTasks--,qe.pendingRootTasks===0&&El(qe),qe.allPendingTasks--,qe.allPendingTasks===0&&ki(qe)}}finally{Co=ot}}}else if(qe=ot=void 0,Mt=Pe,pn=Qe,pn.status===Ha){pn.status=6,xn(Mt.context),qe=Co,Co=Mt;var Oi=pn.children.length,pt=pn.chunks.length;try{zo(Se,Mt),go(pn.chunks,Se.renderState,pn.lastPushedText,pn.textEmbedded),Mt.abortSet.delete(Mt),pn.status=di,Ho(Se,Mt.blockedBoundary,Mt.row,pn)}catch(Gn){xt(),pn.children.length=Oi,pn.chunks.length=pt;var kn=Gn===ci?Va():Se.status===12?Se.fatalError:Gn;if(Se.status===12&&Se.trackedPostpones!==null){var Rn=Se.trackedPostpones,Pn=Xa(Mt.componentStack);Mt.abortSet.delete(Mt),Ti(Se,kn,Pn,Mt.debugTask),Za(Se,Rn,Mt,pn),Ho(Se,Mt.blockedBoundary,Mt.row,pn)}else if(typeof kn=="object"&&kn!==null&&typeof kn.then=="function"){pn.status=Ha,Mt.thenableState=Gn===ci?Je():null;var qn=Mt.ping;kn.then(qn,qn)}else{var sn=Xa(Mt.componentStack);Mt.abortSet.delete(Mt),pn.status=En;var Ut=Mt.blockedBoundary,fi=Mt.row,Mn=Mt.debugTask;if(fi!==null&&--fi.pendingTasks===0&&Nn(Se,fi),Se.allPendingTasks--,ot=Ti(Se,kn,sn,Mn),Ut===null)Mr(Se,kn,sn,Mn);else if(Ut.pendingTasks--,Ut.status!==Dr){Ut.status=Dr,fs(Ut,ot,kn,sn,!1),xl(Se,Ut);var Zr=Ut.row;Zr!==null&&--Zr.pendingTasks===0&&Nn(Se,Zr),Ut.parentFlushed&&Se.clientRenderedBoundaries.push(Ut),Se.pendingRootTasks===0&&Se.trackedPostpones===null&&Ut.contentPreamble!==null&&ps(Se)}Se.allPendingTasks===0&&ki(Se)}}finally{Co=qe}}}pe.splice(0,Ie),s.destination!==null&&Qs(s,s.destination)}catch(Gn){pe={},Ti(s,Gn,pe,null),Mr(s,Gn,pe,null)}finally{xd=le,Zn.H=m,Zn.A=R,Zn.getCurrentStack=X,m===Vl&&xn(d),vr=N}}}function Au(s,d,m){d.preambleChildren.length&&m.push(d.preambleChildren);for(var R=!1,N=0;N<d.children.length;N++)R=Iu(s,d.children[N],m)||R;return R}function Iu(s,d,m){var R=d.boundary;if(R===null)return Au(s,d,m);var N=R.contentPreamble,X=R.fallbackPreamble;if(N===null||X===null)return!1;switch(R.status){case di:if(Ft(s.renderState,N),s.byteSize+=R.byteSize,d=R.completedSegments[0],!d)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return Au(s,d,m);case Li:if(s.trackedPostpones!==null)return!0;case Dr:if(d.status===di)return Ft(s.renderState,X),Au(s,d,m);default:return!0}}function ps(s){if(s.completedRootSegment&&s.completedPreambleSegments===null){var d=[],m=s.byteSize,R=Iu(s,s.completedRootSegment,d),N=s.renderState.preamble;R===!1||N.headChunks&&N.bodyChunks?s.completedPreambleSegments=d:s.byteSize=m}}function vs(s,d,m,R){switch(m.parentFlushed=!0,m.status){case Ha:m.id=s.nextSegmentId++;case Li:return R=m.id,m.lastPushedText=!1,m.textEmbedded=!1,s=s.renderState,d.push(Fa),d.push(s.placeholderPrefix),s=R.toString(16),d.push(s),d.push(oc);case di:m.status=hl;var N=!0,X=m.chunks,le=0;m=m.children;for(var pe=0;pe<m.length;pe++){for(N=m[pe];le<N.index;le++)d.push(X[le]);N=bs(s,d,N,R)}for(;le<X.length-1;le++)d.push(X[le]);return le<X.length&&(N=d.push(X[le])),N;case To:return!0;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function bs(s,d,m,R){var N=m.boundary;if(N===null)return vs(s,d,m,R);if(N.parentFlushed=!0,N.status===Dr){var X=N.row;if(X!==null&&--X.pendingTasks===0&&Nn(s,X),!s.renderState.generateStaticMarkup){var le=N.errorDigest,pe=N.errorMessage;X=N.errorStack,N=N.errorComponentStack,d.push(ac),d.push(Ss),le&&(d.push(lr),le=G(le),d.push(le),d.push(Il)),pe&&(d.push(ro),pe=G(pe),d.push(pe),d.push(Il)),X&&(d.push(Kt),X=G(X),d.push(X),d.push(Il)),N&&(d.push(La),X=G(N),d.push(X),d.push(Il)),d.push(Es)}return vs(s,d,m,R),s=s.renderState.generateStaticMarkup?!0:d.push(il),s}if(N.status!==di)return N.status===Ha&&(N.rootSegmentID=s.nextSegmentId++),0<N.completedSegments.length&&s.partialBoundaries.push(N),Wt(d,s.renderState,N.rootSegmentID),R&&Tt(R,N.fallbackState),vs(s,d,m,R),d.push(il);if(!vc&&Ys(s,N)&&Jl+N.byteSize>s.progressiveChunkSize)return N.rootSegmentID=s.nextSegmentId++,s.completedBoundaries.push(N),Wt(d,s.renderState,N.rootSegmentID),vs(s,d,m,R),d.push(il);if(Jl+=N.byteSize,R&&Tt(R,N.contentState),m=N.row,m!==null&&Ys(s,N)&&--m.pendingTasks===0&&Nn(s,m),s.renderState.generateStaticMarkup||d.push(Da),m=N.completedSegments,m.length!==1)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return bs(s,d,m[0],R),s=s.renderState.generateStaticMarkup?!0:d.push(il),s}function _r(s,d,m,R){return Dt(d,s.renderState,m.parentFormatContext,m.id),bs(s,d,m,R),ct(d,m.parentFormatContext)}function hd(s,d,m){Jl=m.byteSize;for(var R=m.completedSegments,N=0;N<R.length;N++)Ka(s,d,m,R[N]);R.length=0,R=m.row,R!==null&&Ys(s,m)&&--R.pendingTasks===0&&Nn(s,R),Le(d,m.contentState,s.renderState),R=s.resumableState,s=s.renderState,N=m.rootSegmentID,m=m.contentState;var X=s.stylesToHoist;return s.stylesToHoist=!1,d.push(s.startInlineScript),d.push(Qt),X?((R.instructions&z)===v&&(R.instructions|=z,d.push(ll)),(R.instructions&_)===v&&(R.instructions|=_,d.push(pr)),(R.instructions&j)===v?(R.instructions|=j,d.push(uc)):d.push(dc)):((R.instructions&_)===v&&(R.instructions|=_,d.push(pr)),d.push(jc)),R=N.toString(16),d.push(s.boundaryPrefix),d.push(R),d.push(qc),d.push(s.segmentPrefix),d.push(R),X?(d.push(Gu),uo(d,m)):d.push($c),m=d.push(eu),at(d,s)&&m}function Ka(s,d,m,R){if(R.status===hl)return!0;var N=m.contentState,X=R.id;if(X===-1){if((R.id=m.rootSegmentID)===-1)throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return _r(s,d,R,N)}return X===m.rootSegmentID?_r(s,d,R,N):(_r(s,d,R,N),m=s.resumableState,s=s.renderState,d.push(s.startInlineScript),d.push(Qt),(m.instructions&E)===v?(m.instructions|=E,d.push(Hu)):d.push(Qc),d.push(s.segmentPrefix),X=X.toString(16),d.push(X),d.push(Wu),d.push(s.placeholderPrefix),d.push(X),d=d.push(Uu),d)}function Qs(s,d){try{if(!(0<s.pendingRootTasks)){var m,R=s.completedRootSegment;if(R!==null){if(R.status===Li)return;var N=s.completedPreambleSegments;if(N===null)return;Jl=s.byteSize;var X=s.resumableState,le=s.renderState,pe=le.preamble,Ie=pe.htmlChunks,Se=pe.headChunks,Pe;if(Ie){for(Pe=0;Pe<Ie.length;Pe++)d.push(Ie[Pe]);if(Se)for(Pe=0;Pe<Se.length;Pe++)d.push(Se[Pe]);else{var Qe=mt("head");d.push(Qe),d.push(Qt)}}else if(Se)for(Pe=0;Pe<Se.length;Pe++)d.push(Se[Pe]);var ot=le.charsetChunks;for(Pe=0;Pe<ot.length;Pe++)d.push(ot[Pe]);ot.length=0,le.preconnects.forEach(Xe,d),le.preconnects.clear();var qe=le.viewportChunks;for(Pe=0;Pe<qe.length;Pe++)d.push(qe[Pe]);qe.length=0,le.fontPreloads.forEach(Xe,d),le.fontPreloads.clear(),le.highImagePreloads.forEach(Xe,d),le.highImagePreloads.clear(),Ne=le,le.styles.forEach($e,d),Ne=null;var Be=le.importMapChunks;for(Pe=0;Pe<Be.length;Pe++)d.push(Be[Pe]);Be.length=0,le.bootstrapScripts.forEach(Xe,d),le.scripts.forEach(Xe,d),le.scripts.clear(),le.bulkPreloads.forEach(Xe,d),le.bulkPreloads.clear(),X.instructions|=re;var jt=le.hoistableChunks;for(Pe=0;Pe<jt.length;Pe++)d.push(jt[Pe]);for(X=jt.length=0;X<N.length;X++){var In=N[X];for(le=0;le<In.length;le++)bs(s,d,In[le],null)}var Mt=s.renderState.preamble,pn=Mt.headChunks;if(Mt.htmlChunks||pn){var Vr=tt("head");d.push(Vr)}var Xr=Mt.bodyChunks;if(Xr)for(N=0;N<Xr.length;N++)d.push(Xr[N]);bs(s,d,R,null),s.completedRootSegment=null;var wn=s.renderState;if(s.allPendingTasks!==0||s.clientRenderedBoundaries.length!==0||s.completedBoundaries.length!==0||s.trackedPostpones!==null&&(s.trackedPostpones.rootNodes.length!==0||s.trackedPostpones.rootSlots!==null)){var Or=s.resumableState;if((Or.instructions&Re)===v){if(Or.instructions|=Re,d.push(wn.startInlineScript),(Or.instructions&re)===v){Or.instructions|=re;var ua="_"+Or.idPrefix+"R_";d.push(Rs);var Oi=G(ua);d.push(Oi),d.push(Bt)}d.push(Qt),d.push(no),d.push(Ae)}}at(d,wn)}var pt=s.renderState;R=0;var kn=pt.viewportChunks;for(R=0;R<kn.length;R++)d.push(kn[R]);kn.length=0,pt.preconnects.forEach(Xe,d),pt.preconnects.clear(),pt.fontPreloads.forEach(Xe,d),pt.fontPreloads.clear(),pt.highImagePreloads.forEach(Xe,d),pt.highImagePreloads.clear(),pt.styles.forEach(zr,d),pt.scripts.forEach(Xe,d),pt.scripts.clear(),pt.bulkPreloads.forEach(Xe,d),pt.bulkPreloads.clear();var Rn=pt.hoistableChunks;for(R=0;R<Rn.length;R++)d.push(Rn[R]);Rn.length=0;var Pn=s.clientRenderedBoundaries;for(m=0;m<Pn.length;m++){var qn=Pn[m];pt=d;var sn=s.resumableState,Ut=s.renderState,fi=qn.rootSegmentID,Mn=qn.errorDigest,Zr=qn.errorMessage,Gn=qn.errorStack,Bi=qn.errorComponentStack;pt.push(Ut.startInlineScript),pt.push(Qt),(sn.instructions&z)===v?(sn.instructions|=z,pt.push(wo)):pt.push(bd),pt.push(Ut.boundaryPrefix);var Fs=fi.toString(16);if(pt.push(Fs),pt.push(Bl),Mn||Zr||Gn||Bi){pt.push(fc);var zi=$t(Mn||"");pt.push(zi)}if(Zr||Gn||Bi){pt.push(fc);var da=$t(Zr||"");pt.push(da)}if(Gn||Bi){pt.push(fc);var fa=$t(Gn||"");pt.push(fa)}if(Bi){pt.push(fc);var ha=$t(Bi);pt.push(ha)}var Lr=pt.push(Yo);if(!Lr){s.destination=null,m++,Pn.splice(0,m);return}}Pn.splice(0,m);var a=s.completedBoundaries;for(m=0;m<a.length;m++)if(!hd(s,d,a[m])){s.destination=null,m++,a.splice(0,m);return}a.splice(0,m),vc=!0;var c=s.partialBoundaries;for(m=0;m<c.length;m++){e:{Pn=s,qn=d;var b=c[m];Jl=b.byteSize;var T=b.completedSegments;for(Lr=0;Lr<T.length;Lr++)if(!Ka(Pn,qn,b,T[Lr])){Lr++,T.splice(0,Lr);var A=!1;break e}T.splice(0,Lr);var U=b.row;U!==null&&U.together&&b.pendingTasks===1&&(U.pendingTasks===1?_u(Pn,U,U.hoistables):U.pendingTasks--),A=Le(qn,b.contentState,Pn.renderState)}if(!A){s.destination=null,m++,c.splice(0,m);return}}c.splice(0,m),vc=!1;var te=s.completedBoundaries;for(m=0;m<te.length;m++)if(!hd(s,d,te[m])){s.destination=null,m++,te.splice(0,m);return}te.splice(0,m)}}finally{vc=!1,s.allPendingTasks===0&&s.clientRenderedBoundaries.length===0&&s.completedBoundaries.length===0&&(s.flushScheduled=!1,m=s.resumableState,m.hasBody&&(c=tt("body"),d.push(c)),m.hasHtml&&(m=tt("html"),d.push(m)),s.abortableTasks.size!==0&&console.error("There was still abortable task at the root when we closed. This is a bug in React."),s.status=Wa,d.push(null),s.destination=null)}}function zc(s){s.flushScheduled=s.destination!==null,Ou(s),s.status===10&&(s.status=11),s.trackedPostpones===null&&Ja(s,s.pendingRootTasks===0)}function _a(s){if(s.flushScheduled===!1&&s.pingedTasks.length===0&&s.destination!==null){s.flushScheduled=!0;var d=s.destination;d?Qs(s,d):s.flushScheduled=!1}}function Qa(s,d){if(s.status===13)s.status=Wa,d.destroy(s.fatalError);else if(s.status!==Wa&&s.destination===null){s.destination=d;try{Qs(s,d)}catch(m){d={},Ti(s,m,d,null),Mr(s,m,d,null)}}}function ms(s,d){(s.status===11||s.status===10)&&(s.status=12);try{var m=s.abortableTasks;if(0<m.size){var R=d===void 0?Error("The render was aborted by the server without a reason."):typeof d=="object"&&d!==null&&typeof d.then=="function"?Error("The render was aborted by the server with a promise."):d;s.fatalError=R,m.forEach(function(N){var X=Co,le=Zn.getCurrentStack;Co=N,Zn.getCurrentStack=Lo;try{Sl(N,s,R)}finally{Co=X,Zn.getCurrentStack=le}}),m.clear()}s.destination!==null&&Qs(s,s.destination)}catch(N){d={},Ti(s,N,d,null),Mr(s,N,d,null)}}function Wo(s,d,m){if(d===null)m.rootNodes.push(s);else{var R=m.workingMap,N=R.get(d);N===void 0&&(N=[d[1],d[2],[],null],R.set(d,N),Wo(N,d[0],m)),N[2].push(s)}}function ja(){}function qa(s,d,m,R){var N=!1,X=null,le="",pe=!1;if(d=ie(d?d.identifierPrefix:void 0),s=ds(s,d,wi(d,m),se(Zt,null,0,null),1/0,ja,void 0,function(){pe=!0},void 0,void 0,void 0),zc(s),ms(s,R),Qa(s,{push:function(Ie){return Ie!==null&&(le+=Ie),!0},destroy:function(Ie){N=!0,X=Ie}}),N&&X!==R)throw X;if(!pe)throw Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return le}var Nu=fe,Qd=Of,Tl=Symbol.for("react.transitional.element"),hr=Symbol.for("react.portal"),ia=Symbol.for("react.fragment"),js=Symbol.for("react.strict_mode"),qs=Symbol.for("react.profiler"),Hc=Symbol.for("react.consumer"),qi=Symbol.for("react.context"),$i=Symbol.for("react.forward_ref"),Fi=Symbol.for("react.suspense"),eo=Symbol.for("react.suspense_list"),_n=Symbol.for("react.memo"),to=Symbol.for("react.lazy"),zn=Symbol.for("react.scope"),Uo=Symbol.for("react.activity"),Wc=Symbol.for("react.legacy_hidden"),Uc=Symbol.for("react.memo_cache_sentinel"),Gc=Symbol.for("react.view_transition"),$s=Symbol.iterator,Pa=Array.isArray,ec=new WeakMap,tc=new WeakMap,Ri=Symbol.for("react.client.reference"),Hn=Object.assign,dn=Object.prototype.hasOwnProperty,$a=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kl={},Rl={},el=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Fu=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Nr={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},jd={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Go={},gd=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Du=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oa=!1,nc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Wr={},Oa=/^on./,pd=/^on[^A-Z]/,Ml=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Yc=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_l=/^(?:webkit|moz|o)[A-Z]/,Ur=/^-ms-/,Fr=/-(.)/g,tl=/;\s*$/,Fn={},Tn={},Pl=!1,ys=!1,Vc=/["'&<>]/,ws=/([A-Z])/g,Lu=/^ms-/,qd=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Zn=Nu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Aa=Qd.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vd=Object.freeze({pending:!1,data:null,method:null,action:null}),h=Aa.d;Aa.d={f:h.f,r:h.r,D:function(s){var d=vr||null;if(d){var m=d.resumableState,R=d.renderState;if(typeof s=="string"&&s){if(!m.dnsResources.hasOwnProperty(s)){m.dnsResources[s]=ge,m=R.headers;var N,X;(X=m&&0<m.remainingCapacity)&&(X=(N="<"+Cn(s)+">; rel=dns-prefetch",0<=(m.remainingCapacity-=N.length+2))),X?(R.resets.dns[s]=ge,m.preconnects&&(m.preconnects+=", "),m.preconnects+=N):(N=[],Fe(N,{href:s,rel:"dns-prefetch"}),R.preconnects.add(N))}_a(d)}}else h.D(s)},C:function(s,d){var m=vr||null;if(m){var R=m.resumableState,N=m.renderState;if(typeof s=="string"&&s){var X=d==="use-credentials"?"credentials":typeof d=="string"?"anonymous":"default";if(!R.connectResources[X].hasOwnProperty(s)){R.connectResources[X][s]=ge,R=N.headers;var le,pe;if(pe=R&&0<R.remainingCapacity){if(pe="<"+Cn(s)+">; rel=preconnect",typeof d=="string"){var Ie=en(d,"crossOrigin");pe+='; crossorigin="'+Ie+'"'}pe=(le=pe,0<=(R.remainingCapacity-=le.length+2))}pe?(N.resets.connect[X][s]=ge,R.preconnects&&(R.preconnects+=", "),R.preconnects+=le):(X=[],Fe(X,{rel:"preconnect",href:s,crossOrigin:d}),N.preconnects.add(X))}_a(m)}}else h.C(s,d)},L:function(s,d,m){var R=vr||null;if(R){var N=R.resumableState,X=R.renderState;if(d&&s){switch(d){case"image":if(m)var le=m.imageSrcSet,pe=m.imageSizes,Ie=m.fetchPriority;var Se=le?le+`
|
|
155
|
+
`+(pe||""):s;if(N.imageResources.hasOwnProperty(Se))return;N.imageResources[Se]=Te,N=X.headers;var Pe;N&&0<N.remainingCapacity&&typeof le!="string"&&Ie==="high"&&(Pe=xa(s,d,m),0<=(N.remainingCapacity-=Pe.length+2))?(X.resets.image[Se]=Te,N.highImagePreloads&&(N.highImagePreloads+=", "),N.highImagePreloads+=Pe):(N=[],Fe(N,Hn({rel:"preload",href:le?void 0:s,as:d},m)),Ie==="high"?X.highImagePreloads.add(N):(X.bulkPreloads.add(N),X.preloads.images.set(Se,N)));break;case"style":if(N.styleResources.hasOwnProperty(s))return;le=[],Fe(le,Hn({rel:"preload",href:s,as:d},m)),N.styleResources[s]=!m||typeof m.crossOrigin!="string"&&typeof m.integrity!="string"?Te:[m.crossOrigin,m.integrity],X.preloads.stylesheets.set(s,le),X.bulkPreloads.add(le);break;case"script":if(N.scriptResources.hasOwnProperty(s))return;le=[],X.preloads.scripts.set(s,le),X.bulkPreloads.add(le),Fe(le,Hn({rel:"preload",href:s,as:d},m)),N.scriptResources[s]=!m||typeof m.crossOrigin!="string"&&typeof m.integrity!="string"?Te:[m.crossOrigin,m.integrity];break;default:if(N.unknownResources.hasOwnProperty(d)){if(le=N.unknownResources[d],le.hasOwnProperty(s))return}else le={},N.unknownResources[d]=le;if(le[s]=Te,(N=X.headers)&&0<N.remainingCapacity&&d==="font"&&(Se=xa(s,d,m),0<=(N.remainingCapacity-=Se.length+2)))X.resets.font[s]=Te,N.fontPreloads&&(N.fontPreloads+=", "),N.fontPreloads+=Se;else switch(N=[],s=Hn({rel:"preload",href:s,as:d},m),Fe(N,s),d){case"font":X.fontPreloads.add(N);break;default:X.bulkPreloads.add(N)}}_a(R)}}else h.L(s,d,m)},m:function(s,d){var m=vr||null;if(m){var R=m.resumableState,N=m.renderState;if(s){var X=d&&typeof d.as=="string"?d.as:"script";switch(X){case"script":if(R.moduleScriptResources.hasOwnProperty(s))return;X=[],R.moduleScriptResources[s]=!d||typeof d.crossOrigin!="string"&&typeof d.integrity!="string"?Te:[d.crossOrigin,d.integrity],N.preloads.moduleScripts.set(s,X);break;default:if(R.moduleUnknownResources.hasOwnProperty(X)){var le=R.unknownResources[X];if(le.hasOwnProperty(s))return}else le={},R.moduleUnknownResources[X]=le;X=[],le[s]=Te}Fe(X,Hn({rel:"modulepreload",href:s},d)),N.bulkPreloads.add(X),_a(m)}}else h.m(s,d)},X:function(s,d){var m=vr||null;if(m){var R=m.resumableState,N=m.renderState;if(s){var X=R.scriptResources.hasOwnProperty(s)?R.scriptResources[s]:void 0;X!==ge&&(R.scriptResources[s]=ge,d=Hn({src:s,async:!0},d),X&&(X.length===2&&ho(d,X),s=N.preloads.scripts.get(s))&&(s.length=0),s=[],N.scripts.add(s),st(s,d),_a(m))}}else h.X(s,d)},S:function(s,d,m){var R=vr||null;if(R){var N=R.resumableState,X=R.renderState;if(s){d=d||"default";var le=X.styles.get(d),pe=N.styleResources.hasOwnProperty(s)?N.styleResources[s]:void 0;pe!==ge&&(N.styleResources[s]=ge,le||(le={precedence:G(d),rules:[],hrefs:[],sheets:new Map},X.styles.set(d,le)),d={state:F,props:Hn({rel:"stylesheet",href:s,"data-precedence":d},m)},pe&&(pe.length===2&&ho(d.props,pe),(X=X.preloads.stylesheets.get(s))&&0<X.length?X.length=0:d.state=Z),le.sheets.set(s,d),_a(R))}}else h.S(s,d,m)},M:function(s,d){var m=vr||null;if(m){var R=m.resumableState,N=m.renderState;if(s){var X=R.moduleScriptResources.hasOwnProperty(s)?R.moduleScriptResources[s]:void 0;X!==ge&&(R.moduleScriptResources[s]=ge,d=Hn({src:s,type:"module",async:!0},d),X&&(X.length===2&&ho(d,X),s=N.preloads.moduleScripts.get(s))&&(s.length=0),s=[],N.scripts.add(s),st(s,d),_a(m))}}else h.M(s,d)}};var v=0,E=1,_=2,z=4,j=8,re=32,Re=64,ge=null,Te=[];Object.freeze(Te);var Ne=null,Ae="<\/script>",je=/(<\/|<)(s)(cript)/gi,yt={},Zt=0,Ot=1,Et=2,Lt=3,_t=4,Wn=5,Jt=6,ln=7,yn=8,Ht=9,Jn=new Map,fn=' style="',ti=":",Sn=";",cn=" ",hn='="',Bt='"',gn='=""',Pr=G("javascript:throw new Error('React form unexpectedly submitted.')"),Qt=">",nl="/>",Ia=!1,ni=!1,vo=!1,bo=!1,mo=!1,aa=!1,Na=!1,Cr=!1,Ol=!1,Al=!1,rc=!1,Xc=`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,xs=/(<\/|<)(s)(tyle)/gi,rl=`
|
|
156
|
+
`,ri=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ic=new Map,ii=new Map,no="requestAnimationFrame(function(){$RT=performance.now()});",Fa='<template id="',oc='"></template>',Da="<!--$-->",Zc='<!--$?--><template id="',gr='"></template>',ac="<!--$!-->",il="<!--/$-->",Ss="<template",Il='"',lr=' data-dgst="',ro=' data-msg="',Kt=' data-stck="',La=' data-cstck="',Es="></template>",ol='<div hidden id="',Kn='">',Mi="</div>",al='<svg aria-hidden="true" style="display:none" id="',Nl='">',yo="</svg>",Gr='<math aria-hidden="true" style="display:none" id="',Cs='">',oi="</math>",Bu='<table hidden id="',Fl='">',lc="</table>",Jc='<table hidden><tbody id="',Kc='">',la="</tbody></table>",Dl='<table hidden><tr id="',Ll='">',ai="</tr></table>",sc='<table hidden><colgroup id="',cc='">',zu="</colgroup></table>",Hu='$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("',Qc='$RS("',Wu='","',Uu='")<\/script>',pr=`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
157
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`,jc='$RC("',uc=`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
158
|
+
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
159
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`,dc='$RR("',qc='","',Gu='",',$c='"',eu=")<\/script>",ll='$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};',wo='$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("',bd='$RX("',Bl='"',fc=",",Yo=")<\/script>",Ts=/[<\u2028\u2029]/g,sl=/[&><\u2028\u2029]/g,hc=' media="not all" data-precedence="',cl='" data-href="',md='">',yd="</style>",Vo=!1,ks=!0,io=[],ul=' data-precedence="',zl='" data-href="',xo=" ",Yu='">',wd="</style>",Rs=' id="',f="[",g=",[",x=",",P="]",F=0,Z=1,q=2,ye=3,ce=/[<>\r\n]/g,we=/["';,\r\n]/g,ke="",_e=Function.prototype.bind,nt=Symbol.for("react.client.reference"),et={};Object.freeze(et);var rn={},At=null,on={},Qn={},Dn=new Set,Yr=new Set,Di=new Set,So=new Set,It=new Set,li=new Set,sr=new Set,_i=new Set,Ba=new Set,jn={enqueueSetState:function(s,d,m){var R=s._reactInternals;R.queue===null?Si(s,"setState"):(R.queue.push(d),m!=null&&bl(m))},enqueueReplaceState:function(s,d,m){s=s._reactInternals,s.replace=!0,s.queue=[d],m!=null&&bl(m)},enqueueForceUpdate:function(s,d){s._reactInternals.queue===null?Si(s,"forceUpdate"):d!=null&&bl(d)}},Hl={id:1,overflow:""},Eo=Math.clz32?Math.clz32:Ic,si=Math.log,Xo=Math.LN2,ci=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Wl=null,Ms=typeof Object.is=="function"?Object.is:yl,Pi=null,_s=null,ui=null,Ul=null,Vu=null,Un=null,Ps=!1,Zo=!1,tu=0,Gl=0,nu=-1,ru=0,Os=null,dl=null,iu=0,sa=!1,Yl,Vl={readContext:Xn,use:function(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return ji(s);if(s.$$typeof===qi)return Xn(s)}throw Error("An unsupported type was passed to use(): "+String(s))},useContext:function(s){return Yl="useContext",Ki(),s._currentValue2},useMemo:Nc,useReducer:Hr,useRef:function(s){Pi=Ki(),Un=nn();var d=Un.memoizedState;return d===null?(s={current:s},Object.seal(s),Un.memoizedState=s):d},useState:function(s){return Yl="useState",Hr(Qi,s)},useInsertionEffect:Xt,useLayoutEffect:Xt,useCallback:function(s,d){return Nc(function(){return s},d)},useImperativeHandle:Xt,useEffect:Xt,useDebugValue:Xt,useDeferredValue:function(s,d){return Ki(),d!==void 0?d:s},useTransition:function(){return Ki(),[!1,Bn]},useId:function(){var s=_s.treeContext,d=s.overflow;s=s.id,s=(s&~(1<<32-Eo(s)-1)).toString(32)+d;var m=xd;if(m===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return d=tu++,s="_"+m.idPrefix+"R_"+s,0<d&&(s+="H"+d.toString(32)),s+"_"},useSyncExternalStore:function(s,d,m){if(m===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return m()},useOptimistic:function(s){return Ki(),[s,Dc]},useActionState:ss,useFormState:ss,useHostTransitionStatus:function(){return Ki(),vd},useMemoCache:function(s){for(var d=Array(s),m=0;m<s;m++)d[m]=Uc;return d},useCacheRefresh:function(){return wl},useEffectEvent:function(){return Fc}},xd=null,Co=null,Sd={getCacheForType:function(){throw Error("Not implemented.")},cacheSignal:function(){throw Error("Not implemented.")},getOwner:function(){return Co===null?null:Co.componentStack}},oo=0,fl,za,ou,au,lu,Xl,Ed;dd.__reactDisabledLog=!0;var Xu,As,Cd=!1,su=new(typeof WeakMap=="function"?WeakMap:Map),$d={react_stack_bottom_frame:function(s,d,m){return s(d,m)}},Zu=$d.react_stack_bottom_frame.bind($d),ef={react_stack_bottom_frame:function(s){return s.render()}},cu=ef.react_stack_bottom_frame.bind(ef),Is={react_stack_bottom_frame:function(s){var d=s._init;return d(s._payload)}},Sf=Is.react_stack_bottom_frame.bind(Is),Ef=0;if(typeof performance=="object"&&typeof performance.now=="function")var ca=performance,Td=function(){return ca.now()};else{var Cf=Date;Td=function(){return Cf.now()}}var Dr=4,Ha=0,di=1,hl=2,To=3,En=4,Li=5,Wa=14,vr=null,gc={},uu={},kd={},Ns={},Zl=!1,pc=!1,Jo=!1,Jl=0,vc=!1;gh.renderToStaticMarkup=function(s,d){return qa(s,d,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},gh.renderToString=function(s,d){return qa(s,d,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},gh.version="19.2.5"}()),gh}var sf={};/**
|
|
160
|
+
* @license React
|
|
161
|
+
* react-dom-server.browser.development.js
|
|
162
|
+
*
|
|
163
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the MIT license found in the
|
|
166
|
+
* LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/var Sb;function wS(){return Sb||(Sb=1,process.env.NODE_ENV!=="production"&&function(){function e(a,c,b,T){return""+c+(b==="s"?"\\73 ":"\\53 ")+T}function t(a,c,b,T){return""+c+(b==="s"?"\\u0073":"\\u0053")+T}function n(a){return a===null||typeof a!="object"?null:(a=Du&&a[Du]||a["@@iterator"],typeof a=="function"?a:null)}function r(a){return a=Object.prototype.toString.call(a),a.slice(8,a.length-1)}function i(a){var c=JSON.stringify(a);return'"'+a+'"'===c?a:c}function o(a){switch(typeof a){case"string":return JSON.stringify(10>=a.length?a:a.slice(0,10)+"...");case"object":return oa(a)?"[...]":a!==null&&a.$$typeof===Oa?"client":(a=r(a),a==="Object"?"{...}":a);case"function":return a.$$typeof===Oa?"client":(a=a.displayName||a.name)?"function "+a:"function";default:return String(a)}}function l(a){if(typeof a=="string")return a;switch(a){case $a:return"Suspense";case kl:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case dn:return l(a.render);case Rl:return l(a.type);case el:var c=a._payload;a=a._init;try{return l(a(c))}catch{}}return""}function u(a,c){var b=r(a);if(b!=="Object"&&b!=="Array")return b;var T=-1,A=0;if(oa(a))if(Wr.has(a)){var U=Wr.get(a);b="<"+l(U)+">";for(var te=0;te<a.length;te++){var de=a[te];de=typeof de=="string"?de:typeof de=="object"&&de!==null?"{"+u(de)+"}":"{"+o(de)+"}",""+te===c?(T=b.length,A=de.length,b+=de):b=15>de.length&&40>b.length+de.length?b+de:b+"{...}"}b+="</"+l(U)+">"}else{for(b="[",U=0;U<a.length;U++)0<U&&(b+=", "),te=a[U],te=typeof te=="object"&&te!==null?u(te):o(te),""+U===c?(T=b.length,A=te.length,b+=te):b=10>te.length&&40>b.length+te.length?b+te:b+"...";b+="]"}else if(a.$$typeof===Gc)b="<"+l(a.type)+"/>";else{if(a.$$typeof===Oa)return"client";if(nc.has(a)){for(b=nc.get(a),b="<"+(l(b)||"..."),U=Object.keys(a),te=0;te<U.length;te++){b+=" ",de=U[te],b+=i(de)+"=";var Me=a[de],be=de===c&&typeof Me=="object"&&Me!==null?u(Me):o(Me);typeof Me!="string"&&(be="{"+be+"}"),de===c?(T=b.length,A=be.length,b+=be):b=10>be.length&&40>b.length+be.length?b+be:b+"..."}b+=">"}else{for(b="{",U=Object.keys(a),te=0;te<U.length;te++)0<te&&(b+=", "),de=U[te],b+=i(de)+": ",Me=a[de],Me=typeof Me=="object"&&Me!==null?u(Me):o(Me),de===c?(T=b.length,A=Me.length,b+=Me):b=10>Me.length&&40>b.length+Me.length?b+Me:b+"...";b+="}"}}return c===void 0?b:-1<T&&0<A?(a=" ".repeat(T)+"^".repeat(A),`
|
|
168
|
+
`+b+`
|
|
169
|
+
`+a):`
|
|
170
|
+
`+b}function p(a,c){var b=a.length&3,T=a.length-b,A=c;for(c=0;c<T;){var U=a.charCodeAt(c)&255|(a.charCodeAt(++c)&255)<<8|(a.charCodeAt(++c)&255)<<16|(a.charCodeAt(++c)&255)<<24;++c,U=3432918353*(U&65535)+((3432918353*(U>>>16)&65535)<<16)&4294967295,U=U<<15|U>>>17,U=461845907*(U&65535)+((461845907*(U>>>16)&65535)<<16)&4294967295,A^=U,A=A<<13|A>>>19,A=5*(A&65535)+((5*(A>>>16)&65535)<<16)&4294967295,A=(A&65535)+27492+(((A>>>16)+58964&65535)<<16)}switch(U=0,b){case 3:U^=(a.charCodeAt(c+2)&255)<<16;case 2:U^=(a.charCodeAt(c+1)&255)<<8;case 1:U^=a.charCodeAt(c)&255,U=3432918353*(U&65535)+((3432918353*(U>>>16)&65535)<<16)&4294967295,U=U<<15|U>>>17,A^=461845907*(U&65535)+((461845907*(U>>>16)&65535)<<16)&4294967295}return A^=a.length,A^=A>>>16,A=2246822507*(A&65535)+((2246822507*(A>>>16)&65535)<<16)&4294967295,A^=A>>>13,A=3266489909*(A&65535)+((3266489909*(A>>>16)&65535)<<16)&4294967295,(A^A>>>16)>>>0}function y(a){Ml.push(a),pd.port2.postMessage(null)}function S(a){setTimeout(function(){throw a})}function w(a,c){if(c.byteLength!==0)if(2048<c.byteLength)0<Fr&&(a.enqueue(new Uint8Array(Ur.buffer,0,Fr)),Ur=new Uint8Array(2048),Fr=0),a.enqueue(c);else{var b=Ur.length-Fr;b<c.byteLength&&(b===0?a.enqueue(Ur):(Ur.set(c.subarray(0,b),Fr),a.enqueue(Ur),c=c.subarray(b)),Ur=new Uint8Array(2048),Fr=0),Ur.set(c,Fr),Fr+=c.byteLength}}function C(a,c){return w(a,c),!0}function M(a){Ur&&0<Fr&&(a.enqueue(new Uint8Array(Ur.buffer,0,Fr)),Ur=null,Fr=0)}function O(a){return tl.encode(a)}function k(a){return a=tl.encode(a),2048<a.byteLength&&console.error("precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."),a}function W(a){return a.byteLength}function H(a,c){typeof a.error=="function"?a.error(c):a.close()}function B(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function I(a){try{return Y(a),!1}catch{return!0}}function Y(a){return""+a}function K(a,c){if(I(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",c,B(a)),Y(a)}function G(a,c){if(I(a))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",c,B(a)),Y(a)}function ne(a){if(I(a))return console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",B(a)),Y(a)}function $(a){return Tn.call(Vc,a)?!0:Tn.call(ys,a)?!1:Pl.test(a)?Vc[a]=!0:(ys[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function ie(a,c){qd[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||console.error(a==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function se(a,c){if(Tn.call(Aa,c)&&Aa[c])return!0;if(h.test(c)){if(a="aria-"+c.slice(4).toLowerCase(),a=Zn.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),Aa[c]=!0;if(c!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,a),Aa[c]=!0}if(vd.test(c)){if(a=c.toLowerCase(),a=Zn.hasOwnProperty(a)?a:null,a==null)return Aa[c]=!0,!1;c!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,a),Aa[c]=!0)}return!0}function ue(a,c){var b=[],T;for(T in c)se(a,T)||b.push(T);c=b.map(function(A){return"`"+A+"`"}).join(", "),b.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",c,a):1<b.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",c,a)}function he(a,c,b,T){if(Tn.call(_,c)&&_[c])return!0;var A=c.toLowerCase();if(A==="onfocusin"||A==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),_[c]=!0;if(typeof b=="function"&&(a==="form"&&c==="action"||a==="input"&&c==="formAction"||a==="button"&&c==="formAction"))return!0;if(z.test(c))return j.test(c)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),_[c]=!0;if(re.test(c)||Re.test(c))return!0;if(A==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),_[c]=!0;if(A==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),_[c]=!0;if(A==="is"&&b!==null&&b!==void 0&&typeof b!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof b),_[c]=!0;if(typeof b=="number"&&isNaN(b))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),_[c]=!0;if(E.hasOwnProperty(A)){if(A=E[A],A!==c)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",c,A),_[c]=!0}else if(c!==A)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",c,A),_[c]=!0;switch(c){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof b){case"boolean":switch(c){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return A=c.toLowerCase().slice(0,5),A==="data-"||A==="aria-"?!0:(b?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',b,c,c,b,c):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',b,c,c,b,c,c,c),_[c]=!0)}case"function":case"symbol":return _[c]=!0,!1;case"string":if(b==="false"||b==="true"){switch(c){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",b,c,b==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',c,b),_[c]=!0}}return!0}function ve(a,c,b){var T=[],A;for(A in c)he(a,A,c[A])||T.push(A);c=T.map(function(U){return"`"+U+"`"}).join(", "),T.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",c,a):1<T.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",c,a)}function ae(a){return a.replace(Ne,function(c,b){return b.toUpperCase()})}function me(a){if(typeof a=="boolean"||typeof a=="number"||typeof a=="bigint")return""+a;ne(a),a=""+a;var c=Et.exec(a);if(c){var b="",T,A=0;for(T=c.index;T<a.length;T++){switch(a.charCodeAt(T)){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;default:continue}A!==T&&(b+=a.slice(A,T)),A=T+1,b+=c}a=A!==T?b+a.slice(A,T):b}return a}function V(a){return Wn.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function J(a){return ne(a),(""+a).replace(Ol,t)}function oe(a,c,b,T,A,U){b=typeof c=="string"?c:c&&c.script;var te=b===void 0?nl:k('<script nonce="'+me(b)+'"'),de=typeof c=="string"?void 0:c&&c.style,Me=de===void 0?Cr:k('<style nonce="'+me(de)+'"'),be=a.idPrefix,Ee=[],ze=a.bootstrapScriptContent,Ue=a.bootstrapScripts,He=a.bootstrapModules;if(ze!==void 0&&(Ee.push(te),Tt(Ee,a),Ee.push(Kn,O(J(ze)),Ia)),ze=[],T!==void 0&&(ze.push(Al),ze.push(O(J(JSON.stringify(T)))),ze.push(rc)),A&&typeof U=="number"&&0>=U&&console.error("React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",U===0?"zero":U),T=A?{preconnects:"",fontPreloads:"",highImagePreloads:"",remainingCapacity:2+(typeof U=="number"?U:2e3)}:null,A={placeholderPrefix:k(be+"P:"),segmentPrefix:k(be+"S:"),boundaryPrefix:k(be+"B:"),startInlineScript:te,startInlineStyle:Me,preamble:ee(),externalRuntimeScript:null,bootstrapChunks:Ee,importMapChunks:ze,onHeaders:A,headers:T,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:b,style:de},hoistableState:null,stylesToHoist:!1},Ue!==void 0)for(T=0;T<Ue.length;T++)U=Ue[T],Me=de=void 0,be={rel:"preload",as:"script",fetchPriority:"low",nonce:c},typeof U=="string"?be.href=te=U:(be.href=te=U.src,be.integrity=Me=typeof U.integrity=="string"?U.integrity:void 0,be.crossOrigin=de=typeof U=="string"||U.crossOrigin==null?void 0:U.crossOrigin==="use-credentials"?"use-credentials":""),tn(a,A,te,be),Ee.push(ni,O(me(te)),Kt),b&&Ee.push(bo,O(me(b)),Kt),typeof Me=="string"&&Ee.push(mo,O(me(Me)),Kt),typeof de=="string"&&Ee.push(aa,O(me(de)),Kt),Tt(Ee,a),Ee.push(Na);if(He!==void 0)for(c=0;c<He.length;c++)Ue=He[c],te=U=void 0,de={rel:"modulepreload",fetchPriority:"low",nonce:b},typeof Ue=="string"?de.href=T=Ue:(de.href=T=Ue.src,de.integrity=te=typeof Ue.integrity=="string"?Ue.integrity:void 0,de.crossOrigin=U=typeof Ue=="string"||Ue.crossOrigin==null?void 0:Ue.crossOrigin==="use-credentials"?"use-credentials":""),tn(a,A,T,de),Ee.push(vo,O(me(T)),Kt),b&&Ee.push(bo,O(me(b)),Kt),typeof te=="string"&&Ee.push(mo,O(me(te)),Kt),typeof U=="string"&&Ee.push(aa,O(me(U)),Kt),Tt(Ee,a),Ee.push(Na);return A}function xe(a,c,b,T,A){return{idPrefix:a===void 0?"":a,nextFormID:0,streamingFormat:0,bootstrapScriptContent:b,bootstrapScripts:T,bootstrapModules:A,instructions:Jn,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function ee(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function Q(a,c,b,T){return{insertionMode:a,selectedValue:c,tagScope:b,viewTransition:T}}function Ce(a){return Q(a==="http://www.w3.org/2000/svg"?ii:a==="http://www.w3.org/1998/Math/MathML"?no:xs,null,0,null)}function Ge(a,c,b){var T=a.tagScope&-25;switch(c){case"noscript":return Q(ri,null,T|1,null);case"select":return Q(ri,b.value!=null?b.value:b.defaultValue,T,null);case"svg":return Q(ii,null,T,null);case"picture":return Q(ri,null,T|2,null);case"math":return Q(no,null,T,null);case"foreignObject":return Q(ri,null,T,null);case"table":return Q(Fa,null,T,null);case"thead":case"tbody":case"tfoot":return Q(oc,null,T,null);case"colgroup":return Q(Zc,null,T,null);case"tr":return Q(Da,null,T,null);case"head":if(a.insertionMode<ri)return Q(ic,null,T,null);break;case"html":if(a.insertionMode===xs)return Q(rl,null,T,null)}return a.insertionMode>=Fa||a.insertionMode<ri?Q(ri,null,T,null):a.tagScope!==T?Q(a.insertionMode,a.selectedValue,T,null):a}function We(a){return a===null?null:{update:a.update,enter:"none",exit:"none",share:a.update,name:a.autoName,autoName:a.autoName,nameIdx:0}}function Oe(a,c){return c.tagScope&32&&(a.instructions|=128),Q(c.insertionMode,c.selectedValue,c.tagScope|12,We(c.viewTransition))}function rt(a,c){a=We(c.viewTransition);var b=c.tagScope|16;return a!==null&&a.share!=="none"&&(b|=64),Q(c.insertionMode,c.selectedValue,b,a)}function Fe(a,c,b,T){return c===""?T:(T&&a.push(gr),a.push(O(me(c))),!0)}function Ye(a,c){if(typeof c!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var b=!0,T;for(T in c)if(Tn.call(c,T)){var A=c[T];if(A!=null&&typeof A!="boolean"&&A!==""){if(T.indexOf("--")===0){var U=O(me(T));G(A,T),A=O(me((""+A).trim()))}else{U=T;var te=A;if(-1<U.indexOf("-")){var de=U;je.hasOwnProperty(de)&&je[de]||(je[de]=!0,console.error("Unsupported style property %s. Did you mean %s?",de,ae(de.replace(Te,"ms-"))))}else if(ge.test(U))de=U,je.hasOwnProperty(de)&&je[de]||(je[de]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",de,de.charAt(0).toUpperCase()+de.slice(1)));else if(Ae.test(te)){de=U;var Me=te;yt.hasOwnProperty(Me)&&yt[Me]||(yt[Me]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,de,Me.replace(Ae,"")))}typeof te=="number"&&(isNaN(te)?Zt||(Zt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",U)):isFinite(te)||Ot||(Ot=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",U))),U=T,te=ac.get(U),te!==void 0||(te=k(me(U.replace(Lt,"-$1").toLowerCase().replace(_t,"-ms-"))),ac.set(U,te)),U=te,typeof A=="number"?A=A===0||ws.has(T)?O(""+A):O(A+"px"):(G(A,T),A=O(me((""+A).trim())))}b?(b=!1,a.push(il,U,Ss,A)):a.push(Il,U,Ss,A)}}b||a.push(Kt)}function Ve(a,c,b){b&&typeof b!="function"&&typeof b!="symbol"&&a.push(lr,O(c),La)}function Ke(a,c,b){typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&a.push(lr,O(c),ro,O(me(b)),Kt)}function st(a,c){this.push(ol),gt(a),Ke(this,"name",c),Ke(this,"value",a),this.push(Mi)}function gt(a){if(typeof a!="string")throw Error("File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration.")}function it(a,c){if(typeof c.$$FORM_ACTION=="function"){var b=a.nextFormID++;a=a.idPrefix+b;try{var T=c.$$FORM_ACTION(a);if(T){var A=T.data;A!=null&&A.forEach(gt)}return T}catch(U){if(typeof U=="object"&&U!==null&&typeof U.then=="function")throw U;console.error(`Failed to serialize an action for progressive enhancement:
|
|
171
|
+
%s`,U)}}return null}function mt(a,c,b,T,A,U,te,de){var Me=null;if(typeof T=="function"){de===null||lc||(lc=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),A===null&&U===null||Kc||(Kc=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),te===null||Jc||(Jc=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."));var be=it(c,T);be!==null?(de=be.name,T=be.action||"",A=be.encType,U=be.method,te=be.target,Me=be.data):(a.push(lr,O("formAction"),ro,Es,Kt),te=U=A=T=de=null,Wt(c,b))}return de!=null&&ft(a,"name",de),T!=null&&ft(a,"formAction",T),A!=null&&ft(a,"formEncType",A),U!=null&&ft(a,"formMethod",U),te!=null&&ft(a,"formTarget",te),Me}function ft(a,c,b){switch(c){case"className":Ke(a,"class",b);break;case"tabIndex":Ke(a,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Ke(a,c,b);break;case"style":Ye(a,b);break;case"src":case"href":if(b===""){console.error(c==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c);break}case"action":case"formAction":if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean")break;K(b,c),b=V(""+b),a.push(lr,O(c),ro,O(me(b)),Kt);break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Ve(a,c.toLowerCase(),b);break;case"xlinkHref":if(typeof b=="function"||typeof b=="symbol"||typeof b=="boolean")break;K(b,c),b=V(""+b),a.push(lr,O("xlink:href"),ro,O(me(b)),Kt);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof b!="function"&&typeof b!="symbol"&&a.push(lr,O(c),ro,O(me(b)),Kt);break;case"inert":b!==""||Xc[c]||(Xc[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":b&&typeof b!="function"&&typeof b!="symbol"&&a.push(lr,O(c),La);break;case"capture":case"download":b===!0?a.push(lr,O(c),La):b!==!1&&typeof b!="function"&&typeof b!="symbol"&&a.push(lr,O(c),ro,O(me(b)),Kt);break;case"cols":case"rows":case"size":case"span":typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b&&a.push(lr,O(c),ro,O(me(b)),Kt);break;case"rowSpan":case"start":typeof b=="function"||typeof b=="symbol"||isNaN(b)||a.push(lr,O(c),ro,O(me(b)),Kt);break;case"xlinkActuate":Ke(a,"xlink:actuate",b);break;case"xlinkArcrole":Ke(a,"xlink:arcrole",b);break;case"xlinkRole":Ke(a,"xlink:role",b);break;case"xlinkShow":Ke(a,"xlink:show",b);break;case"xlinkTitle":Ke(a,"xlink:title",b);break;case"xlinkType":Ke(a,"xlink:type",b);break;case"xmlBase":Ke(a,"xml:base",b);break;case"xmlLang":Ke(a,"xml:lang",b);break;case"xmlSpace":Ke(a,"xml:space",b);break;default:if((!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Lu.get(c)||c,$(c))){switch(typeof b){case"function":case"symbol":return;case"boolean":var T=c.toLowerCase().slice(0,5);if(T!=="data-"&&T!=="aria-")return}a.push(lr,O(c),ro,O(me(b)),Kt)}}}function tt(a,c,b){if(c!=null){if(b!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof c!="object"||!("__html"in c))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");c=c.__html,c!=null&&(ne(c),a.push(O(""+c)))}}function Ft(a,c){var b=a[c];b!=null&&(b=oa(b),a.multiple&&!b?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.",c):!a.multiple&&b&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",c))}function at(a){var c="";return Wc.Children.forEach(a,function(b){b!=null&&(c+=b,Cs||typeof b=="string"||typeof b=="number"||typeof b=="bigint"||(Cs=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),c}function Wt(a,c){if((a.instructions&16)===Jn){a.instructions|=16;var b=c.preamble,T=c.bootstrapChunks;(b.htmlChunks||b.headChunks)&&T.length===0?(T.push(c.startInlineScript),Tt(T,a),T.push(Kn,Dl,Ia)):T.unshift(c.startInlineScript,Kn,Dl,Ia)}}function Dt(a,c){a.push(Xe("link"));for(var b in c)if(Tn.call(c,b)){var T=c[b];if(T!=null)switch(b){case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ft(a,b,T)}}return a.push(Mi),null}function ct(a){return ne(a),(""+a).replace(sc,e)}function $t(a,c,b){a.push(Xe(b));for(var T in c)if(Tn.call(c,T)){var A=c[T];if(A!=null)switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(b+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ft(a,T,A)}}return a.push(Mi),null}function un(a,c){a.push(Xe("title"));var b=null,T=null,A;for(A in c)if(Tn.call(c,A)){var U=c[A];if(U!=null)switch(A){case"children":b=U;break;case"dangerouslySetInnerHTML":T=U;break;default:ft(a,A,U)}}return a.push(Kn),c=Array.isArray(b)?2>b.length?b[0]:null:b,typeof c!="function"&&typeof c!="symbol"&&c!==null&&c!==void 0&&a.push(O(me(""+c))),tt(a,T,b),a.push($e("title")),null}function tr(a,c){a.push(Xe("script"));var b=null,T=null,A;for(A in c)if(Tn.call(c,A)){var U=c[A];if(U!=null)switch(A){case"children":b=U;break;case"dangerouslySetInnerHTML":T=U;break;default:ft(a,A,U)}}return a.push(Kn),b!=null&&typeof b!="string"&&(c=typeof b=="number"?"a number for children":Array.isArray(b)?"an array for children":"something unexpected for children",console.error("A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",c)),tt(a,T,b),typeof b=="string"&&a.push(O(J(b))),a.push($e("script")),null}function Rt(a,c,b){a.push(Xe(b));var T=b=null,A;for(A in c)if(Tn.call(c,A)){var U=c[A];if(U!=null)switch(A){case"children":b=U;break;case"dangerouslySetInnerHTML":T=U;break;default:ft(a,A,U)}}return a.push(Kn),tt(a,T,b),b}function Le(a,c,b){a.push(Xe(b));var T=b=null,A;for(A in c)if(Tn.call(c,A)){var U=c[A];if(U!=null)switch(A){case"children":b=U;break;case"dangerouslySetInnerHTML":T=U;break;default:ft(a,A,U)}}return a.push(Kn),tt(a,T,b),typeof b=="string"?(a.push(O(me(b))),null):b}function Xe(a){var c=Uu.get(a);if(c===void 0){if(!Wu.test(a))throw Error("Invalid tag: "+a);c=k("<"+a),Uu.set(a,c)}return c}function Pt(a,c,b,T,A,U,te,de,Me){ue(c,b),c!=="input"&&c!=="textarea"&&c!=="select"||b==null||b.value!==null||v||(v=!0,c==="select"&&b.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",c):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",c));e:if(c.indexOf("-")===-1)var be=!1;else switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":be=!1;break e;default:be=!0}switch(be||typeof b.is=="string"||ve(c,b),!b.suppressContentEditableWarning&&b.contentEditable&&b.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),de.insertionMode!==ii&&de.insertionMode!==no&&c.indexOf("-")===-1&&c.toLowerCase()!==c&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),c){case"div":case"span":case"svg":case"path":break;case"a":a.push(Xe("a"));var Ee=null,ze=null,Ue;for(Ue in b)if(Tn.call(b,Ue)){var He=b[Ue];if(He!=null)switch(Ue){case"children":Ee=He;break;case"dangerouslySetInnerHTML":ze=He;break;case"href":He===""?Ke(a,"href",""):ft(a,Ue,He);break;default:ft(a,Ue,He)}}if(a.push(Kn),tt(a,ze,Ee),typeof Ee=="string"){a.push(O(me(Ee)));var De=null}else De=Ee;return De;case"g":case"p":case"li":break;case"select":ie("select",b),Ft(b,"value"),Ft(b,"defaultValue"),b.value===void 0||b.defaultValue===void 0||yo||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),yo=!0),a.push(Xe("select"));var kt=null,On=null,St;for(St in b)if(Tn.call(b,St)){var qt=b[St];if(qt!=null)switch(St){case"children":kt=qt;break;case"dangerouslySetInnerHTML":On=qt;break;case"defaultValue":case"value":break;default:ft(a,St,qt)}}return a.push(Kn),tt(a,On,kt),kt;case"option":var rr=de.selectedValue;a.push(Xe("option"));var br=null,vn=null,wt=null,mr=null,hi;for(hi in b)if(Tn.call(b,hi)){var An=b[hi];if(An!=null)switch(hi){case"children":br=An;break;case"selected":wt=An,Bu||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Bu=!0);break;case"dangerouslySetInnerHTML":mr=An;break;case"value":vn=An;default:ft(a,hi,An)}}if(rr!=null){if(vn!==null){K(vn,"value");var Yn=""+vn}else mr===null||oi||(oi=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")),Yn=at(br);if(oa(rr)){for(var Hi=0;Hi<rr.length;Hi++)if(K(rr[Hi],"value"),""+rr[Hi]===Yn){a.push(la);break}}else K(rr,"select.value"),""+rr===Yn&&a.push(la)}else wt&&a.push(la);return a.push(Kn),tt(a,mr,br),br;case"textarea":ie("textarea",b),b.value===void 0||b.defaultValue===void 0||Gr||(console.error("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"),Gr=!0),a.push(Xe("textarea"));var Jr=null,Ar=null,Vn=null,Tr;for(Tr in b)if(Tn.call(b,Tr)){var Wi=b[Tr];if(Wi!=null)switch(Tr){case"children":Vn=Wi;break;case"value":Jr=Wi;break;case"defaultValue":Ar=Wi;break;case"dangerouslySetInnerHTML":throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ft(a,Tr,Wi)}}if(Jr===null&&Ar!==null&&(Jr=Ar),a.push(Kn),Vn!=null){if(console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),Jr!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(oa(Vn)){if(1<Vn.length)throw Error("<textarea> can only have at most one child.");ne(Vn[0]),Jr=""+Vn[0]}ne(Vn),Jr=""+Vn}return typeof Jr=="string"&&Jr[0]===`
|
|
172
|
+
`&&a.push(Qc),Jr!==null&&(K(Jr,"value"),a.push(O(me(""+Jr)))),null;case"input":ie("input",b),a.push(Xe("input"));var ao=null,Ir=null,$n=null,gi=null,Ui=null,pi=null,Ua=null,Gi=null,yr=null,ko;for(ko in b)if(Tn.call(b,ko)){var Br=b[ko];if(Br!=null)switch(ko){case"children":case"dangerouslySetInnerHTML":throw Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"name":ao=Br;break;case"formAction":Ir=Br;break;case"formEncType":$n=Br;break;case"formMethod":gi=Br;break;case"formTarget":Ui=Br;break;case"defaultChecked":yr=Br;break;case"defaultValue":Ua=Br;break;case"checked":Gi=Br;break;case"value":pi=Br;break;default:ft(a,ko,Br)}}Ir===null||b.type==="image"||b.type==="submit"||Fl||(Fl=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".'));var Ju=mt(a,T,A,Ir,$n,gi,Ui,ao);return Gi===null||yr===null||Nl||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",b.type),Nl=!0),pi===null||Ua===null||al||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components","A component",b.type),al=!0),Gi!==null?Ve(a,"checked",Gi):yr!==null&&Ve(a,"checked",yr),pi!==null?ft(a,"value",pi):Ua!==null&&ft(a,"value",Ua),a.push(Mi),Ju!=null&&Ju.forEach(st,a),null;case"button":a.push(Xe("button"));var ga=null,ir=null,Ro=null,vi=null,bc=null,Ds=null,Ko=null,Ls;for(Ls in b)if(Tn.call(b,Ls)){var Yi=b[Ls];if(Yi!=null)switch(Ls){case"children":ga=Yi;break;case"dangerouslySetInnerHTML":ir=Yi;break;case"name":Ro=Yi;break;case"formAction":vi=Yi;break;case"formEncType":bc=Yi;break;case"formMethod":Ds=Yi;break;case"formTarget":Ko=Yi;break;default:ft(a,Ls,Yi)}}vi===null||b.type==null||b.type==="submit"||Fl||(Fl=!0,console.error('A button can only specify a formAction along with type="submit" or no type.'));var mc=mt(a,T,A,vi,bc,Ds,Ko,Ro);if(a.push(Kn),mc!=null&&mc.forEach(st,a),tt(a,ir,ga),typeof ga=="string"){a.push(O(me(ga)));var Ku=null}else Ku=ga;return Ku;case"form":a.push(Xe("form"));var Mo=null,yc=null,bi=null,Bs=null,Kl=null,gl=null,_o;for(_o in b)if(Tn.call(b,_o)){var Po=b[_o];if(Po!=null)switch(_o){case"children":Mo=Po;break;case"dangerouslySetInnerHTML":yc=Po;break;case"action":bi=Po;break;case"encType":Bs=Po;break;case"method":Kl=Po;break;case"target":gl=Po;break;default:ft(a,_o,Po)}}var pa=null,Vi=null;if(typeof bi=="function"){Bs===null&&Kl===null||Kc||(Kc=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),gl===null||Jc||(Jc=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."));var Kr=it(T,bi);Kr!==null?(bi=Kr.action||"",Bs=Kr.encType,Kl=Kr.method,gl=Kr.target,pa=Kr.data,Vi=Kr.name):(a.push(lr,O("action"),ro,Es,Kt),gl=Kl=Bs=bi=null,Wt(T,A))}if(bi!=null&&ft(a,"action",bi),Bs!=null&&ft(a,"encType",Bs),Kl!=null&&ft(a,"method",Kl),gl!=null&&ft(a,"target",gl),a.push(Kn),Vi!==null&&(a.push(ol),Ke(a,"name",Vi),a.push(Mi),pa!=null&&pa.forEach(st,a)),tt(a,yc,Mo),typeof Mo=="string"){a.push(O(me(Mo)));var pl=null}else pl=Mo;return pl;case"menuitem":a.push(Xe("menuitem"));for(var va in b)if(Tn.call(b,va)){var Ql=b[va];if(Ql!=null)switch(va){case"children":case"dangerouslySetInnerHTML":throw Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ft(a,va,Ql)}}return a.push(Kn),null;case"object":a.push(Xe("object"));var Ga=null,Rd=null,Ai;for(Ai in b)if(Tn.call(b,Ai)){var Qo=b[Ai];if(Qo!=null)switch(Ai){case"children":Ga=Qo;break;case"dangerouslySetInnerHTML":Rd=Qo;break;case"data":K(Qo,"data");var wc=V(""+Qo);if(wc===""){console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',Ai,Ai);break}a.push(lr,O("data"),ro,O(me(wc)),Kt);break;default:ft(a,Ai,Qo)}}if(a.push(Kn),tt(a,Rd,Ga),typeof Ga=="string"){a.push(O(me(Ga)));var du=null}else du=Ga;return du;case"title":var fu=de.tagScope&1,ih=de.tagScope&4;if(Tn.call(b,"children")){var jl=b.children,zs=Array.isArray(jl)?2>jl.length?jl[0]:null:jl;Array.isArray(jl)&&1<jl.length?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",jl.length):typeof zs=="function"||typeof zs=="symbol"?console.error("React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",typeof zs=="function"?"a Function":"a Sybmol"):zs&&zs.toString==={}.toString&&(zs.$$typeof!=null?console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."):console.error("React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."))}if(de.insertionMode===ii||fu||b.itemProp!=null)var ql=un(a,b);else ih?ql=null:(un(A.hoistableChunks,b),ql=void 0);return ql;case"link":var hu=de.tagScope&1,Tf=de.tagScope&4,tf=b.rel,Ii=b.href,ba=b.precedence;if(de.insertionMode===ii||hu||b.itemProp!=null||typeof tf!="string"||typeof Ii!="string"||Ii===""){tf==="stylesheet"&&typeof b.precedence=="string"&&(typeof Ii=="string"&&Ii||console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',Ii===null?"`null`":Ii===void 0?"`undefined`":Ii===""?"an empty string":'something with type "'+typeof Ii+'"')),Dt(a,b);var $l=null}else if(b.rel==="stylesheet")if(typeof ba!="string"||b.disabled!=null||b.onLoad||b.onError){if(typeof ba=="string"){if(b.disabled!=null)console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.');else if(b.onLoad||b.onError){var Qu=b.onLoad&&b.onError?"`onLoad` and `onError` props":b.onLoad?"`onLoad` prop":"`onError` prop";console.error('React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',Qu,Qu)}}$l=Dt(a,b)}else{var Oo=A.styles.get(ba),wr=T.styleResources.hasOwnProperty(Ii)?T.styleResources[Ii]:void 0;if(wr!==gn){T.styleResources[Ii]=gn,Oo||(Oo={precedence:O(me(ba)),rules:[],hrefs:[],sheets:new Map},A.styles.set(ba,Oo));var er={state:dl,props:Fn({},b,{"data-precedence":b.precedence,precedence:null})};if(wr){wr.length===2&&ur(er.props,wr);var Ln=A.preloads.stylesheets.get(Ii);Ln&&0<Ln.length?Ln.length=0:er.state=iu}Oo.sheets.set(Ii,er),te&&te.stylesheets.add(er)}else if(Oo){var nf=Oo.sheets.get(Ii);nf&&te&&te.stylesheets.add(nf)}Me&&a.push(gr),$l=null}else b.onLoad||b.onError?$l=Dt(a,b):(Me&&a.push(gr),$l=Tf?null:Dt(A.hoistableChunks,b));return $l;case"script":var Hs=de.tagScope&1,ju=b.async;if(typeof b.src!="string"||!b.src||!ju||typeof ju=="function"||typeof ju=="symbol"||b.onLoad||b.onError||de.insertionMode===ii||Hs||b.itemProp!=null)var Ws=tr(a,b);else{var xc=b.src;if(b.type==="module")var qu=T.moduleScriptResources,Sc=A.preloads.moduleScripts;else qu=T.scriptResources,Sc=A.preloads.scripts;var gu=qu.hasOwnProperty(xc)?qu[xc]:void 0;if(gu!==gn){qu[xc]=gn;var pu=b;if(gu){gu.length===2&&(pu=Fn({},b),ur(pu,gu));var Md=Sc.get(xc);Md&&(Md.length=0)}var rf=[];A.scripts.add(rf),tr(rf,pu)}Me&&a.push(gr),Ws=null}return Ws;case"style":var kf=de.tagScope&1;if(Tn.call(b,"children")){var $u=b.children,ed=Array.isArray($u)?2>$u.length?$u[0]:null:$u;(typeof ed=="function"||typeof ed=="symbol"||Array.isArray(ed))&&console.error("React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",typeof ed=="function"?"a Function":typeof ed=="symbol"?"a Sybmol":"an Array")}var Ec=b.precedence,es=b.href,vl=b.nonce;if(de.insertionMode===ii||kf||b.itemProp!=null||typeof Ec!="string"||typeof es!="string"||es===""){a.push(Xe("style"));var Xi=null,vu=null,Rf;for(Rf in b)if(Tn.call(b,Rf)){var oh=b[Rf];if(oh!=null)switch(Rf){case"children":Xi=oh;break;case"dangerouslySetInnerHTML":vu=oh;break;default:ft(a,Rf,oh)}}a.push(Kn);var of=Array.isArray(Xi)?2>Xi.length?Xi[0]:null:Xi;typeof of!="function"&&typeof of!="symbol"&&of!==null&&of!==void 0&&a.push(O(ct(of))),tt(a,vu,Xi),a.push($e("style"));var ep=null}else{es.includes(" ")&&console.error('React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',es);var _d=A.styles.get(Ec),tp=T.styleResources.hasOwnProperty(es)?T.styleResources[es]:void 0;if(tp!==gn){T.styleResources[es]=gn,tp&&console.error('React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',es),_d||(_d={precedence:O(me(Ec)),rules:[],hrefs:[],sheets:new Map},A.styles.set(Ec,_d));var Mf=A.nonce.style;if(Mf&&Mf!==vl)console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include rules if the nonce matches the style nonce "%s" that was included with this render.',Ec,vl,Mf);else{!Mf&&vl&&console.error('React encountered a style tag with `precedence` "%s" and `nonce` "%s". When React manages style rules using `precedence` it will only include a nonce attributes if you also provide the same style nonce value as a render option.',Ec,vl),_d.hrefs.push(O(me(es)));var ah=_d.rules,lh=null,$x=null,np;for(np in b)if(Tn.call(b,np)){var rb=b[np];if(rb!=null)switch(np){case"children":lh=rb;break;case"dangerouslySetInnerHTML":$x=rb}}var Gh=Array.isArray(lh)?2>lh.length?lh[0]:null:lh;typeof Gh!="function"&&typeof Gh!="symbol"&&Gh!==null&&Gh!==void 0&&ah.push(O(ct(Gh))),tt(ah,$x,lh)}}_d&&te&&te.styles.add(_d),Me&&a.push(gr),ep=void 0}return ep;case"meta":var GN=de.tagScope&1,YN=de.tagScope&4;if(de.insertionMode===ii||GN||b.itemProp!=null)var eS=$t(a,b,"meta");else Me&&a.push(gr),eS=YN?null:typeof b.charSet=="string"?$t(A.charsetChunks,b,"meta"):b.name==="viewport"?$t(A.viewportChunks,b,"meta"):$t(A.hoistableChunks,b,"meta");return eS;case"listing":case"pre":a.push(Xe(c));var Yh=null,Vh=null,Xh;for(Xh in b)if(Tn.call(b,Xh)){var rp=b[Xh];if(rp!=null)switch(Xh){case"children":Yh=rp;break;case"dangerouslySetInnerHTML":Vh=rp;break;default:ft(a,Xh,rp)}}if(a.push(Kn),Vh!=null){if(Yh!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof Vh!="object"||!("__html"in Vh))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");var af=Vh.__html;af!=null&&(typeof af=="string"&&0<af.length&&af[0]===`
|
|
173
|
+
`?a.push(Qc,O(af)):(ne(af),a.push(O(""+af))))}return typeof Yh=="string"&&Yh[0]===`
|
|
174
|
+
`&&a.push(Qc),Yh;case"img":var VN=de.tagScope&3,Ya=b.src,ma=b.srcSet;if(!(b.loading==="lazy"||!Ya&&!ma||typeof Ya!="string"&&Ya!=null||typeof ma!="string"&&ma!=null||b.fetchPriority==="low"||VN)&&(typeof Ya!="string"||Ya[4]!==":"||Ya[0]!=="d"&&Ya[0]!=="D"||Ya[1]!=="a"&&Ya[1]!=="A"||Ya[2]!=="t"&&Ya[2]!=="T"||Ya[3]!=="a"&&Ya[3]!=="A")&&(typeof ma!="string"||ma[4]!==":"||ma[0]!=="d"&&ma[0]!=="D"||ma[1]!=="a"&&ma[1]!=="A"||ma[2]!=="t"&&ma[2]!=="T"||ma[3]!=="a"&&ma[3]!=="A")){te!==null&&de.tagScope&64&&(te.suspenseyImages=!0);var tS=typeof b.sizes=="string"?b.sizes:void 0,sh=ma?ma+`
|
|
175
|
+
`+(tS||""):Ya,ib=A.preloads.images,_f=ib.get(sh);if(_f)(b.fetchPriority==="high"||10>A.highImagePreloads.size)&&(ib.delete(sh),A.highImagePreloads.add(_f));else if(!T.imageResources.hasOwnProperty(sh)){T.imageResources[sh]=Pr;var ob=b.crossOrigin,nS=typeof ob=="string"?ob==="use-credentials"?ob:"":void 0,Pf=A.headers,ab;Pf&&0<Pf.remainingCapacity&&typeof b.srcSet!="string"&&(b.fetchPriority==="high"||500>Pf.highImagePreloads.length)&&(ab=po(Ya,"image",{imageSrcSet:b.srcSet,imageSizes:b.sizes,crossOrigin:nS,integrity:b.integrity,nonce:b.nonce,type:b.type,fetchPriority:b.fetchPriority,referrerPolicy:b.refererPolicy}),0<=(Pf.remainingCapacity-=ab.length+2))?(A.resets.image[sh]=Pr,Pf.highImagePreloads&&(Pf.highImagePreloads+=", "),Pf.highImagePreloads+=ab):(_f=[],Dt(_f,{rel:"preload",as:"image",href:ma?void 0:Ya,imageSrcSet:ma,imageSizes:tS,crossOrigin:nS,integrity:b.integrity,type:b.type,fetchPriority:b.fetchPriority,referrerPolicy:b.referrerPolicy}),b.fetchPriority==="high"||10>A.highImagePreloads.size?A.highImagePreloads.add(_f):(A.bulkPreloads.add(_f),ib.set(sh,_f)))}}return $t(a,b,"img");case"base":case"area":case"br":case"col":case"embed":case"hr":case"keygen":case"param":case"source":case"track":case"wbr":return $t(a,b,c);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":break;case"head":if(de.insertionMode<ri){var lb=U||A.preamble;if(lb.headChunks)throw Error("The `<head>` tag may only be rendered once.");U!==null&&a.push(cc),lb.headChunks=[];var rS=Rt(lb.headChunks,b,"head")}else rS=Le(a,b,"head");return rS;case"body":if(de.insertionMode<ri){var sb=U||A.preamble;if(sb.bodyChunks)throw Error("The `<body>` tag may only be rendered once.");U!==null&&a.push(zu),sb.bodyChunks=[];var iS=Rt(sb.bodyChunks,b,"body")}else iS=Le(a,b,"body");return iS;case"html":if(de.insertionMode===xs){var cb=U||A.preamble;if(cb.htmlChunks)throw Error("The `<html>` tag may only be rendered once.");U!==null&&a.push(Hu),cb.htmlChunks=[pr];var oS=Rt(cb.htmlChunks,b,"html")}else oS=Le(a,b,"html");return oS;default:if(c.indexOf("-")!==-1){a.push(Xe(c));var ub=null,aS=null,ch;for(ch in b)if(Tn.call(b,ch)){var bu=b[ch];if(bu!=null){var lS=ch;switch(ch){case"children":ub=bu;break;case"dangerouslySetInnerHTML":aS=bu;break;case"style":Ye(a,bu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"className":lS="class";default:if($(ch)&&typeof bu!="function"&&typeof bu!="symbol"&&bu!==!1){if(bu===!0)bu="";else if(typeof bu=="object")continue;a.push(lr,O(lS),ro,O(me(bu)),Kt)}}}}return a.push(Kn),tt(a,aS,ub),ub}}return Le(a,b,c)}function $e(a){var c=jc.get(a);return c===void 0&&(c=k("</"+a+">"),jc.set(a,c)),c}function nr(a,c){a=a.preamble,a.htmlChunks===null&&c.htmlChunks&&(a.htmlChunks=c.htmlChunks),a.headChunks===null&&c.headChunks&&(a.headChunks=c.headChunks),a.bodyChunks===null&&c.bodyChunks&&(a.bodyChunks=c.bodyChunks)}function zr(a,c){c=c.bootstrapChunks;for(var b=0;b<c.length-1;b++)w(a,c[b]);return b<c.length?(b=c[b],c.length=0,C(a,b)):!0}function $r(a,c,b){if(w(a,ll),b===null)throw Error("An ID must have been assigned before we can complete the boundary.");return w(a,c.boundaryPrefix),w(a,O(b.toString(16))),C(a,wo)}function uo(a,c,b,T){switch(b.insertionMode){case xs:case rl:case ic:case ri:return w(a,yd),w(a,c.segmentPrefix),w(a,O(T.toString(16))),C(a,Vo);case ii:return w(a,io),w(a,c.segmentPrefix),w(a,O(T.toString(16))),C(a,ul);case no:return w(a,xo),w(a,c.segmentPrefix),w(a,O(T.toString(16))),C(a,Yu);case Fa:return w(a,Rs),w(a,c.segmentPrefix),w(a,O(T.toString(16))),C(a,f);case oc:return w(a,x),w(a,c.segmentPrefix),w(a,O(T.toString(16))),C(a,P);case Da:return w(a,Z),w(a,c.segmentPrefix),w(a,O(T.toString(16))),C(a,q);case Zc:return w(a,ce),w(a,c.segmentPrefix),w(a,O(T.toString(16))),C(a,we);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function Fo(a,c){switch(c.insertionMode){case xs:case rl:case ic:case ri:return C(a,ks);case ii:return C(a,zl);case no:return C(a,wd);case Fa:return C(a,g);case oc:return C(a,F);case Da:return C(a,ye);case Zc:return C(a,ke);default:throw Error("Unknown insertion mode. This is a bug in React.")}}function Do(a){return JSON.stringify(a).replace(Eo,function(c){switch(c){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function fo(a){return JSON.stringify(a).replace(si,function(c){switch(c){case"&":return"\\u0026";case">":return"\\u003e";case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ho(a){var c=a.rules,b=a.hrefs;0<c.length&&b.length===0&&console.error("React expected to have at least one href for an a hoistable style but found none. This is a bug in React.");var T=0;if(b.length){for(w(this,Qt.startInlineStyle),w(this,Xo),w(this,a.precedence),w(this,ci);T<b.length-1;T++)w(this,b[T]),w(this,Un);for(w(this,b[T]),w(this,Wl),T=0;T<c.length;T++)w(this,c[T]);_s=C(this,Ms),Pi=!0,c.length=0,b.length=0}}function xa(a){return a.state!==sa?Pi=!0:!1}function Cn(a,c,b){return Pi=!1,_s=!0,Qt=b,c.styles.forEach(ho,a),Qt=null,c.stylesheets.forEach(xa),Pi&&(b.stylesToHoist=!0),_s}function ut(a){for(var c=0;c<a.length;c++)w(this,a[c]);a.length=0}function en(a){Dt(ui,a.props);for(var c=0;c<ui.length;c++)w(this,ui[c]);ui.length=0,a.state=sa}function ht(a){var c=0<a.sheets.size;a.sheets.forEach(en,this),a.sheets.clear();var b=a.rules,T=a.hrefs;if(!c||T.length){if(w(this,Qt.startInlineStyle),w(this,Ul),w(this,a.precedence),a=0,T.length){for(w(this,Vu);a<T.length-1;a++)w(this,T[a]),w(this,Un);w(this,T[a])}for(w(this,Ps),a=0;a<b.length;a++)w(this,b[a]);w(this,Zo),b.length=0,T.length=0}}function Vt(a){if(a.state===dl){a.state=iu;var c=a.props;for(Dt(ui,{rel:"preload",as:"style",href:a.props.href,crossOrigin:c.crossOrigin,fetchPriority:c.fetchPriority,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy}),a=0;a<ui.length;a++)w(this,ui[a]);ui.length=0}}function Rr(a){a.sheets.forEach(Vt,this),a.sheets.clear()}function Tt(a,c){(c.instructions&hn)===Jn&&(c.instructions|=hn,a.push(tu,O(me("_"+c.idPrefix+"R_")),Kt))}function wi(a,c){w(a,Gl);var b=Gl;c.stylesheets.forEach(function(T){if(T.state!==sa)if(T.state===Yl)w(a,b),T=T.props.href,K(T,"href"),w(a,O(fo(""+T))),w(a,Os),b=nu;else{w(a,b);var A=T.props["data-precedence"],U=T.props,te=V(""+T.props.href);w(a,O(fo(te))),K(A,"precedence"),A=""+A,w(a,ru),w(a,O(fo(A)));for(var de in U)if(Tn.call(U,de)&&(A=U[de],A!=null))switch(de){case"href":case"rel":case"precedence":case"data-precedence":break;case"children":case"dangerouslySetInnerHTML":throw Error("link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:xi(a,de,A)}w(a,Os),b=nu,T.state=Yl}}),w(a,Os)}function xi(a,c,b){var T=c.toLowerCase();switch(typeof b){case"function":case"symbol":return}switch(c){case"innerHTML":case"dangerouslySetInnerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"style":case"ref":return;case"className":T="class",K(b,T),c=""+b;break;case"hidden":if(b===!1)return;c="";break;case"src":case"href":b=V(b),K(b,T),c=""+b;break;default:if(2<c.length&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N")||!$(c))return;K(b,T),c=""+b}w(a,ru),w(a,O(fo(T))),w(a,ru),w(a,O(fo(c)))}function go(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function tn(a,c,b,T){(a.scriptResources.hasOwnProperty(b)||a.moduleScriptResources.hasOwnProperty(b))&&console.error('Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',b),a.scriptResources[b]=gn,a.moduleScriptResources[b]=gn,a=[],Dt(a,T),c.bootstrapScripts.add(a)}function ur(a,c){a.crossOrigin==null&&(a.crossOrigin=c[0]),a.integrity==null&&(a.integrity=c[1])}function po(a,c,b){a=Ji(a),c=ei(c,"as"),c="<"+a+'>; rel=preload; as="'+c+'"';for(var T in b)Tn.call(b,T)&&(a=b[T],typeof a=="string"&&(c+="; "+T.toLowerCase()+'="'+ei(a,T)+'"'));return c}function Ji(a){return K(a,"href"),(""+a).replace(Vl,ar)}function ar(a){switch(a){case"<":return"%3C";case">":return"%3E";case`
|
|
176
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function ei(a,c){return I(a)&&(console.error("The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",c,B(a)),Y(a)),(""+a).replace(xd,xn)}function xn(a){switch(a){case'"':return"%22";case"'":return"%27";case";":return"%3B";case",":return"%2C";case`
|
|
177
|
+
`:return"%0A";case"\r":return"%0D";default:throw Error("escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}function bl(a){this.styles.add(a)}function Si(a){this.stylesheets.add(a)}function an(a,c){c.styles.forEach(bl,a),c.stylesheets.forEach(Si,a),c.suspenseyImages&&(a.suspenseyImages=!0)}function Ic(a){return 0<a.stylesheets.size||a.suspenseyImages}function Xt(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Sd?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Pa:return"Fragment";case tc:return"Profiler";case ec:return"StrictMode";case $a:return"Suspense";case kl:return"SuspenseList";case Nr:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case $s:return"Portal";case Hn:return a.displayName||"Context";case Ri:return(a._context.displayName||"Context")+".Consumer";case dn:var c=a.render;return a=a.displayName,a||(a=c.displayName||c.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Rl:return c=a.displayName||null,c!==null?c:Xt(a.type)||"Memo";case el:c=a._payload,a=a._init;try{return Xt(a(c))}catch{}}return null}function ml(a,c){if(a!==c){a.context._currentValue=a.parentValue,a=a.parent;var b=c.parent;if(a===null){if(b!==null)throw Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(b===null)throw Error("The stacks must reach the root at the same time. This is a bug in React.");ml(a,b)}c.context._currentValue=c.value}}function Va(a){a.context._currentValue=a.parentValue,a=a.parent,a!==null&&Va(a)}function yl(a){var c=a.parent;c!==null&&yl(c),a.context._currentValue=a.value}function Ki(a,c){if(a.context._currentValue=a.parentValue,a=a.parent,a===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===c.depth?ml(a,c):Ki(a,c)}function mn(a,c){var b=c.parent;if(b===null)throw Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");a.depth===b.depth?ml(a,b):mn(a,b),c.context._currentValue=c.value}function nn(a){var c=za;c!==a&&(c===null?yl(a):a===null?Va(c):c.depth===a.depth?ml(c,a):c.depth>a.depth?Ki(c,a):mn(c,a),za=a)}function Je(a){if(a!==null&&typeof a!="function"){var c=String(a);Zu.has(c)||(Zu.add(c),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function xt(a,c){a=(a=a.constructor)&&Xt(a)||"ReactClass";var b=a+"."+c;ou[b]||(console.error(`Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
178
|
+
|
|
179
|
+
Please check the code for the %s component.`,c,a),ou[b]=!0)}function Xn(a,c,b){var T=a.id;a=a.overflow;var A=32-Is(T)-1;T&=~(1<<A),b+=1;var U=32-Is(c)+A;if(30<U){var te=A-A%5;return U=(T&(1<<te)-1).toString(32),T>>=te,A-=te,{id:1<<32-Is(c)+A|b<<A|T,overflow:U+a}}return{id:1<<U|b<<A|T,overflow:a}}function Qi(a){return a>>>=0,a===0?32:31-(Sf(a)/Ef|0)|0}function Hr(){}function Nc(a,c,b){switch(b=a[b],b===void 0?a.push(c):b!==c&&(c.then(Hr,Hr),c=b),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(Hr,Hr):(a=c,a.status="pending",a.then(function(T){if(c.status==="pending"){var A=c;A.status="fulfilled",A.value=T}},function(T){if(c.status==="pending"){var A=c;A.status="rejected",A.reason=T}})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}throw Td=c,ca}}function Ru(){if(Td===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Td;return Td=null,a}function Fc(a,c){return a===c&&(a!==0||1/a===1/c)||a!==a&&c!==c}function Bn(){if(Dr===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
180
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
181
|
+
2. You might be breaking the Rules of Hooks
|
|
182
|
+
3. You might have more than one copy of React in the same app
|
|
183
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Jo&&console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"),Dr}function Dc(){if(0<pc)throw Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function ss(){return En===null?To===null?(Li=!1,To=En=Dc()):(Li=!0,En=To):En.next===null?(Li=!1,En=En.next=Dc()):(Li=!0,En=En.next),En}function ji(){var a=Ns;return Ns=null,a}function wl(){Jo=!1,hl=di=Ha=Dr=null,Wa=!1,To=null,pc=0,En=Zl=null}function dd(a){return Jo&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),a._currentValue}function fd(a,c){return typeof c=="function"?c(a):c}function cs(a,c,b){if(a!==fd&&(Jl="useReducer"),Dr=Bn(),En=ss(),Li){if(b=En.queue,c=b.dispatch,Zl!==null){var T=Zl.get(b);if(T!==void 0){Zl.delete(b),b=En.memoizedState;do{var A=T.action;Jo=!0,b=a(b,A),Jo=!1,T=T.next}while(T!==null);return En.memoizedState=b,[b,c]}}return[En.memoizedState,c]}return Jo=!0,a=a===fd?typeof c=="function"?c():c:b!==void 0?b(c):c,Jo=!1,En.memoizedState=a,a=En.queue={last:null,dispatch:null},a=a.dispatch=qo.bind(null,Dr,a),[En.memoizedState,a]}function us(a,c){if(Dr=Bn(),En=ss(),c=c===void 0?null:c,En!==null){var b=En.memoizedState;if(b!==null&&c!==null){e:{var T=b[1];if(T===null)console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Jl),T=!1;else{c.length!==T.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
184
|
+
|
|
185
|
+
Previous: %s
|
|
186
|
+
Incoming: %s`,Jl,"["+c.join(", ")+"]","["+T.join(", ")+"]");for(var A=0;A<T.length&&A<c.length;A++)if(!Cf(c[A],T[A])){T=!1;break e}T=!0}}if(T)return b[0]}}return Jo=!0,a=a(),Jo=!1,En.memoizedState=[a,c],a}function qo(a,c,b){if(25<=pc)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(a===Dr)if(Wa=!0,a={action:b,next:null},Zl===null&&(Zl=new Map),b=Zl.get(c),b===void 0)Zl.set(c,a);else{for(c=b;c.next!==null;)c=c.next;c.next=a}}function $o(){throw Error("A function wrapped in useEffectEvent can't be called during rendering.")}function Lc(){throw Error("startTransition cannot be called during server rendering.")}function Ys(){throw Error("Cannot update optimistic state while rendering.")}function Vs(a,c,b){Bn();var T=gc++,A=di;if(typeof a.$$FORM_ACTION=="function"){var U=null,te=hl;A=A.formState;var de=a.$$IS_SIGNATURE_EQUAL;if(A!==null&&typeof de=="function"){var Me=A[1];de.call(a,A[2],A[3])&&(U=b!==void 0?"p"+b:"k"+p(JSON.stringify([te,null,T]),0),Me===U&&(uu=T,c=A[0]))}var be=a.bind(null,c);return a=function(ze){be(ze)},typeof be.$$FORM_ACTION=="function"&&(a.$$FORM_ACTION=function(ze){ze=be.$$FORM_ACTION(ze),b!==void 0&&(K(b,"target"),b+="",ze.action=b);var Ue=ze.data;return Ue&&(U===null&&(U=b!==void 0?"p"+b:"k"+p(JSON.stringify([te,null,T]),0)),Ue.append("$ACTION_KEY",U)),ze}),[c,a,!1]}var Ee=a.bind(null,c);return[c,function(ze){Ee(ze)},!1]}function Sr(a){var c=kd;return kd+=1,Ns===null&&(Ns=[]),Nc(Ns,a,c)}function ds(){throw Error("Cache cannot be refreshed during server rendering.")}function Xs(){}function Bc(){if(R===0){N=console.log,X=console.info,le=console.warn,pe=console.error,Ie=console.group,Se=console.groupCollapsed,Pe=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Xs,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}R++}function ea(){if(R--,R===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Fn({},a,{value:N}),info:Fn({},a,{value:X}),warn:Fn({},a,{value:le}),error:Fn({},a,{value:pe}),group:Fn({},a,{value:Ie}),groupCollapsed:Fn({},a,{value:Se}),groupEnd:Fn({},a,{value:Pe})})}0>R&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Zs(a){var c=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=c,a.startsWith(`Error: react-stack-top-frame
|
|
187
|
+
`)&&(a=a.slice(29)),c=a.indexOf(`
|
|
188
|
+
`),c!==-1&&(a=a.slice(c+1)),c=a.indexOf("react_stack_bottom_frame"),c!==-1&&(c=a.lastIndexOf(`
|
|
189
|
+
`,c)),c!==-1)a=a.slice(0,c);else return"";return a}function Ei(a){if(Qe===void 0)try{throw Error()}catch(b){var c=b.stack.trim().match(/\n( *(at )?)/);Qe=c&&c[1]||"",ot=-1<b.stack.indexOf(`
|
|
190
|
+
at`)?" (<anonymous>)":-1<b.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
191
|
+
`+Qe+a+ot}function Lo(a,c){if(!a||qe)return"";var b=Be.get(a);if(b!==void 0)return b;qe=!0,b=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var T=null;T=Jt.H,Jt.H=null,Bc();try{var A={DetermineComponentFrameRoot:function(){try{if(c){var Ue=function(){throw Error()};if(Object.defineProperty(Ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ue,[])}catch(De){var He=De}Reflect.construct(a,[],Ue)}else{try{Ue.call()}catch(De){He=De}a.call(Ue.prototype)}}else{try{throw Error()}catch(De){He=De}(Ue=a())&&typeof Ue.catch=="function"&&Ue.catch(function(){})}}catch(De){if(De&&He&&typeof De.stack=="string")return[De.stack,He.stack]}return[null,null]}};A.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var U=Object.getOwnPropertyDescriptor(A.DetermineComponentFrameRoot,"name");U&&U.configurable&&Object.defineProperty(A.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var te=A.DetermineComponentFrameRoot(),de=te[0],Me=te[1];if(de&&Me){var be=de.split(`
|
|
192
|
+
`),Ee=Me.split(`
|
|
193
|
+
`);for(te=U=0;U<be.length&&!be[U].includes("DetermineComponentFrameRoot");)U++;for(;te<Ee.length&&!Ee[te].includes("DetermineComponentFrameRoot");)te++;if(U===be.length||te===Ee.length)for(U=be.length-1,te=Ee.length-1;1<=U&&0<=te&&be[U]!==Ee[te];)te--;for(;1<=U&&0<=te;U--,te--)if(be[U]!==Ee[te]){if(U!==1||te!==1)do if(U--,te--,0>te||be[U]!==Ee[te]){var ze=`
|
|
194
|
+
`+be[U].replace(" at new "," at ");return a.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",a.displayName)),typeof a=="function"&&Be.set(a,ze),ze}while(1<=U&&0<=te);break}}}finally{qe=!1,Jt.H=T,ea(),Error.prepareStackTrace=b}return be=(be=a?a.displayName||a.name:"")?Ei(be):"",typeof a=="function"&&Be.set(a,be),be}function Mu(a){if(typeof a=="string")return Ei(a);if(typeof a=="function")return a.prototype&&a.prototype.isReactComponent?Lo(a,!0):Lo(a,!1);if(typeof a=="object"&&a!==null){switch(a.$$typeof){case dn:return Lo(a.render,!1);case Rl:return Lo(a.type,!1);case el:var c=a,b=c._payload;c=c._init;try{a=c(b)}catch{return Ei("Lazy")}return Mu(a)}if(typeof a.name=="string"){e:{if(b=a.name,c=a.env,a=a.debugLocation,a!=null){a=Zs(a);var T=a.lastIndexOf(`
|
|
195
|
+
`);if(a=T===-1?a:a.slice(T+1),a.indexOf(b)!==-1){b=`
|
|
196
|
+
`+a;break e}}b=Ei(b+(c?" ["+c+"]":""))}return b}}switch(a){case kl:return Ei("SuspenseList");case $a:return Ei("Suspense")}return""}function Js(){var a=ua();1e3<a-wn&&(Jt.recentlyCreatedOwnerStacks=0,wn=a)}function Ci(a,c){return(500<c.byteSize||Ic(c.contentState))&&c.contentPreamble===null}function Ks(a){if(typeof a=="object"&&a!==null&&typeof a.environmentName=="string"){var c=a.environmentName;a=[a].slice(0),typeof a[0]=="string"?a.splice(0,1,"%c%s%c "+a[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+c+" ",""):a.splice(0,0,"%c%s%c","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+c+" ",""),a.unshift(console),c=Co.apply(console.error,a),c()}else console.error(a);return null}function Xa(a,c,b,T,A,U,te,de,Me,be,Ee){var ze=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=a,this.renderState=c,this.rootFormatContext=b,this.progressiveChunkSize=T===void 0?12800:T,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=ze,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=A===void 0?Ks:A,this.onPostpone=be===void 0?Hr:be,this.onAllReady=U===void 0?Hr:U,this.onShellReady=te===void 0?Hr:te,this.onShellError=de===void 0?Hr:de,this.onFatalError=Me===void 0?Hr:Me,this.formState=Ee===void 0?null:Ee,this.didWarnForKey=null}function fs(a,c,b,T,A,U,te,de,Me,be,Ee,ze){return Js(),c=new Xa(c,b,T,A,U,te,de,Me,be,Ee,ze),b=Ea(c,0,null,T,!1,!1),b.parentFlushed=!0,a=Bo(c,null,a,-1,null,b,null,null,c.abortableTasks,null,T,null,cu,null,null,oo,null),Ta(a),c.pingedTasks.push(a),c}function Ti(a,c,b,T,A,U,te,de,Me,be,Ee){return a=fs(a,c,b,T,A,U,te,de,Me,be,Ee,void 0),a.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},a}function Mr(a,c,b,T,A,U,te,de,Me){return Js(),b=new Xa(c.resumableState,b,c.rootFormatContext,c.progressiveChunkSize,T,A,U,te,de,Me,null),b.nextSegmentId=c.nextSegmentId,typeof c.replaySlots=="number"?(T=Ea(b,0,null,c.rootFormatContext,!1,!1),T.parentFlushed=!0,a=Bo(b,null,a,-1,null,T,null,null,b.abortableTasks,null,c.rootFormatContext,null,cu,null,null,oo,null),Ta(a),b.pingedTasks.push(a),b):(a=Pu(b,null,{nodes:c.replayNodes,slots:c.replaySlots,pendingTasks:0},a,-1,null,null,b.abortableTasks,null,c.rootFormatContext,null,cu,null,null,oo,null),Ta(a),b.pingedTasks.push(a),b)}function Nn(a,c,b,T,A,U,te,de,Me){return a=Mr(a,c,b,T,A,U,te,de,Me),a.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},a}function _u(a,c){a.pingedTasks.push(c),a.pingedTasks.length===1&&(a.flushScheduled=a.destination!==null,a.trackedPostpones!==null||a.status===10?_l(function(){return qa(a)}):y(function(){return qa(a)}))}function Sa(a,c,b,T,A){return b={status:kn,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:c,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null,contentState:go(),fallbackState:go(),contentPreamble:T,fallbackPreamble:A,trackedContentKeyPath:null,trackedFallbackNode:null,errorMessage:null,errorStack:null,errorComponentStack:null},c!==null&&(c.pendingTasks++,T=c.boundaries,T!==null&&(a.allPendingTasks++,b.pendingTasks++,T.push(b)),a=c.inheritedHoistables,a!==null&&an(b.contentState,a)),b}function Bo(a,c,b,T,A,U,te,de,Me,be,Ee,ze,Ue,He,De,kt,On){a.allPendingTasks++,A===null?a.pendingRootTasks++:A.pendingTasks++,He!==null&&He.pendingTasks++;var St={replay:null,node:b,childIndex:T,ping:function(){return _u(a,St)},blockedBoundary:A,blockedSegment:U,blockedPreamble:te,hoistableState:de,abortSet:Me,keyPath:be,formatContext:Ee,context:ze,treeContext:Ue,row:He,componentStack:De,thenableState:c};return St.debugTask=On,Me.add(St),St}function Pu(a,c,b,T,A,U,te,de,Me,be,Ee,ze,Ue,He,De,kt){a.allPendingTasks++,U===null?a.pendingRootTasks++:U.pendingTasks++,Ue!==null&&Ue.pendingTasks++,b.pendingTasks++;var On={replay:b,node:T,childIndex:A,ping:function(){return _u(a,On)},blockedBoundary:U,blockedSegment:null,blockedPreamble:null,hoistableState:te,abortSet:de,keyPath:Me,formatContext:be,context:Ee,treeContext:ze,row:Ue,componentStack:He,thenableState:c};return On.debugTask=kt,de.add(On),On}function Ea(a,c,b,T,A,U){return{status:kn,parentFlushed:!1,id:-1,index:c,chunks:[],children:[],preambleChildren:[],parentFormatContext:T,boundary:b,lastPushedText:A,textEmbedded:U}}function ta(){if(d===null||d.componentStack===null)return"";var a=d.componentStack;try{var c="";if(typeof a.type=="string")c+=Ei(a.type);else if(typeof a.type=="function"){if(!a.owner){var b=c,T=a.type,A=T?T.displayName||T.name:"",U=A?Ei(A):"";c=b+U}}else a.owner||(c+=Mu(a.type));for(;a;)b=null,a.debugStack!=null?b=Zs(a.debugStack):(U=a,U.stack!=null&&(b=typeof U.stack!="string"?U.stack=Zs(U.stack):U.stack)),(a=a.owner)&&b&&(c+=`
|
|
197
|
+
`+b);var te=c}catch(de){te=`
|
|
198
|
+
Error generating stack: `+de.message+`
|
|
199
|
+
`+de.stack}return te}function hs(a,c){if(c!=null)for(var b=c.length-1;0<=b;b--){var T=c[b];if(typeof T.name=="string"||typeof T.time=="number")break;if(T.awaited!=null){var A=T.debugStack==null?T.awaited:T;if(A.debugStack!==void 0){a.componentStack={parent:a.componentStack,type:T,owner:A.owner,stack:A.debugStack},a.debugTask=A.debugTask;break}}}}function Ca(a,c){if(c!=null)for(var b=0;b<c.length;b++){var T=c[b];typeof T.name=="string"&&T.debugStack!==void 0&&(a.componentStack={parent:a.componentStack,type:T,owner:T.owner,stack:T.debugStack},a.debugTask=T.debugTask)}}function Ta(a){var c=a.node;if(typeof c=="object"&&c!==null)switch(c.$$typeof){case Gc:var b=c.type,T=c._owner,A=c._debugStack;Ca(a,c._debugInfo),a.debugTask=c._debugTask,a.componentStack={parent:a.componentStack,type:b,owner:T,stack:A};break;case el:Ca(a,c._debugInfo);break;default:typeof c.then=="function"&&Ca(a,c._debugInfo)}}function gs(a){return a===null?null:{parent:a.parent,type:"Suspense Fallback",owner:a.owner,stack:a.stack}}function zt(a){var c={};return a&&Object.defineProperty(c,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var b="",T=a;do b+=Mu(T.type),T=T.parent;while(T);var A=b}catch(U){A=`
|
|
200
|
+
Error generating stack: `+U.message+`
|
|
201
|
+
`+U.stack}return Object.defineProperty(c,"componentStack",{value:A}),A}}),c}function zo(a,c,b,T,A){a.errorDigest=c,b instanceof Error?(c=String(b.message),b=String(b.stack)):(c=typeof b=="object"&&b!==null?u(b):String(b),b=null),A=A?`Switched to client rendering because the server rendering aborted due to:
|
|
202
|
+
|
|
203
|
+
`:`Switched to client rendering because the server rendering errored:
|
|
204
|
+
|
|
205
|
+
`,a.errorMessage=A+c,a.errorStack=b!==null?A+b:null,a.errorComponentStack=T.componentStack}function dr(a,c,b,T){if(a=a.onError,c=T?T.run(a.bind(null,c,b)):a(c,b),c!=null&&typeof c!="string")console.error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',typeof c);else return c}function na(a,c,b,T){b=a.onShellError;var A=a.onFatalError;T?(T.run(b.bind(null,c)),T.run(A.bind(null,c))):(b(c),A(c)),a.destination!==null?(a.status=fi,H(a.destination,c)):(a.status=13,a.fatalError=c)}function Er(a,c){Za(a,c.next,c.hoistables)}function Za(a,c,b){for(;c!==null;){b!==null&&(an(c.hoistables,b),c.inheritedHoistables=b);var T=c.boundaries;if(T!==null){c.boundaries=null;for(var A=0;A<T.length;A++){var U=T[A];b!==null&&an(U.contentState,b),ja(a,U,null,null)}}if(c.pendingTasks--,0<c.pendingTasks)break;b=c.hoistables,c=c.next}}function xl(a,c){var b=c.boundaries;if(b!==null&&c.pendingTasks===b.length){for(var T=!0,A=0;A<b.length;A++){var U=b[A];if(U.pendingTasks!==1||U.parentFlushed||Ci(a,U)){T=!1;break}}T&&Za(a,c,c.hoistables)}}function ra(a){var c={pendingTasks:1,boundaries:null,hoistables:go(),inheritedHoistables:null,together:!1,next:null};return a!==null&&0<a.pendingTasks&&(c.pendingTasks++,c.boundaries=[],a.next=c),c}function ka(a,c,b,T,A){var U=c.keyPath,te=c.treeContext,de=c.row,Me=c.componentStack,be=c.debugTask;Ca(c,c.node.props.children._debugInfo),c.keyPath=b,b=T.length;var Ee=null;if(c.replay!==null){var ze=c.replay.slots;if(ze!==null&&typeof ze=="object")for(var Ue=0;Ue<b;Ue++){var He=A!=="backwards"&&A!=="unstable_legacy-backwards"?Ue:b-1-Ue,De=T[He];c.row=Ee=ra(Ee),c.treeContext=Xn(te,b,He);var kt=ze[He];typeof kt=="number"?(Sl(a,c,kt,De,He),delete ze[He]):_r(a,c,De,He),--Ee.pendingTasks===0&&Er(a,Ee)}else for(ze=0;ze<b;ze++)Ue=A!=="backwards"&&A!=="unstable_legacy-backwards"?ze:b-1-ze,He=T[Ue],Ho(a,c,He),c.row=Ee=ra(Ee),c.treeContext=Xn(te,b,Ue),_r(a,c,He,Ue),--Ee.pendingTasks===0&&Er(a,Ee)}else if(A!=="backwards"&&A!=="unstable_legacy-backwards")for(A=0;A<b;A++)ze=T[A],Ho(a,c,ze),c.row=Ee=ra(Ee),c.treeContext=Xn(te,b,A),_r(a,c,ze,A),--Ee.pendingTasks===0&&Er(a,Ee);else{for(A=c.blockedSegment,ze=A.children.length,Ue=A.chunks.length,He=b-1;0<=He;He--){De=T[He],c.row=Ee=ra(Ee),c.treeContext=Xn(te,b,He),kt=Ea(a,Ue,null,c.formatContext,He===0?A.lastPushedText:!0,!0),A.children.splice(ze,0,kt),c.blockedSegment=kt,Ho(a,c,De);try{_r(a,c,De,He),kt.lastPushedText&&kt.textEmbedded&&kt.chunks.push(gr),kt.status=Rn,Wo(a,c.blockedBoundary,kt),--Ee.pendingTasks===0&&Er(a,Ee)}catch(On){throw kt.status=a.status===12?qn:sn,On}}c.blockedSegment=A,A.lastPushedText=!1}de!==null&&Ee!==null&&0<Ee.pendingTasks&&(de.pendingTasks++,Ee.next=de),c.treeContext=te,c.row=de,c.keyPath=U,c.componentStack=Me,c.debugTask=be}function fr(a,c,b,T,A,U){var te=c.thenableState;for(c.thenableState=null,Dr={},Ha=c,di=a,hl=b,Jo=!1,gc=vr=0,uu=-1,kd=0,Ns=te,a=In(T,A,U);Wa;)Wa=!1,gc=vr=0,uu=-1,kd=0,pc+=1,En=null,a=T(A,U);return wl(),a}function Ra(a,c,b,T,A,U,te){var de=!1;if(U!==0&&a.formState!==null){var Me=c.blockedSegment;if(Me!==null){de=!0,Me=Me.chunks;for(var be=0;be<U;be++)be===te?Me.push(Ll):Me.push(ai)}}U=c.keyPath,c.keyPath=b,A?(b=c.treeContext,c.treeContext=Xn(b,1,0),_r(a,c,T,-1),c.treeContext=b):de?_r(a,c,T,-1):ki(a,c,T,-1),c.keyPath=U}function Ma(a,c,b,T,A,U){if(typeof T=="function")if(T.prototype&&T.prototype.isReactComponent){var te=A;if("ref"in A){te={};for(var de in A)de!=="ref"&&(te[de]=A[de])}var Me=T.defaultProps;if(Me){te===A&&(te=Fn({},te,A));for(var be in Me)te[be]===void 0&&(te[be]=Me[be])}var Ee=te,ze=oo,Ue=T.contextType;if("contextType"in T&&Ue!==null&&(Ue===void 0||Ue.$$typeof!==Hn)&&!$d.has(T)){$d.add(T);var He=Ue===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof Ue!="object"?" However, it is set to a "+typeof Ue+".":Ue.$$typeof===Ri?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(Ue).join(", ")+"}.";console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Xt(T)||"Component",He)}typeof Ue=="object"&&Ue!==null&&(ze=Ue._currentValue);var De=new T(Ee,ze);if(typeof T.getDerivedStateFromProps=="function"&&(De.state===null||De.state===void 0)){var kt=Xt(T)||"Component";lu.has(kt)||(lu.add(kt),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",kt,De.state===null?"null":"undefined",kt))}if(typeof T.getDerivedStateFromProps=="function"||typeof De.getSnapshotBeforeUpdate=="function"){var On=null,St=null,qt=null;if(typeof De.componentWillMount=="function"&&De.componentWillMount.__suppressDeprecationWarning!==!0?On="componentWillMount":typeof De.UNSAFE_componentWillMount=="function"&&(On="UNSAFE_componentWillMount"),typeof De.componentWillReceiveProps=="function"&&De.componentWillReceiveProps.__suppressDeprecationWarning!==!0?St="componentWillReceiveProps":typeof De.UNSAFE_componentWillReceiveProps=="function"&&(St="UNSAFE_componentWillReceiveProps"),typeof De.componentWillUpdate=="function"&&De.componentWillUpdate.__suppressDeprecationWarning!==!0?qt="componentWillUpdate":typeof De.UNSAFE_componentWillUpdate=="function"&&(qt="UNSAFE_componentWillUpdate"),On!==null||St!==null||qt!==null){var rr=Xt(T)||"Component",br=typeof T.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ed.has(rr)||(Ed.add(rr),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
206
|
+
|
|
207
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
208
|
+
|
|
209
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
210
|
+
https://react.dev/link/unsafe-component-lifecycles`,rr,br,On!==null?`
|
|
211
|
+
`+On:"",St!==null?`
|
|
212
|
+
`+St:"",qt!==null?`
|
|
213
|
+
`+qt:""))}}var vn=Xt(T)||"Component";De.render||(T.prototype&&typeof T.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",vn):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",vn)),!De.getInitialState||De.getInitialState.isReactClassApproved||De.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",vn),De.getDefaultProps&&!De.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",vn),De.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",vn),T.childContextTypes&&!su.has(T)&&(su.add(T),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",vn)),T.contextTypes&&!Cd.has(T)&&(Cd.add(T),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",vn)),typeof De.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",vn),T.prototype&&T.prototype.isPureReactComponent&&typeof De.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Xt(T)||"A pure component"),typeof De.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",vn),typeof De.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",vn),typeof De.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",vn),typeof De.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",vn);var wt=De.props!==Ee;De.props!==void 0&&wt&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",vn),De.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",vn,vn),typeof De.getSnapshotBeforeUpdate!="function"||typeof De.componentDidUpdate=="function"||Xl.has(T)||(Xl.add(T),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Xt(T))),typeof De.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",vn),typeof De.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",vn),typeof T.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",vn);var mr=De.state;mr&&(typeof mr!="object"||oa(mr))&&console.error("%s.state: must be set to an object or null",vn),typeof De.getChildContext=="function"&&typeof T.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",vn);var hi=De.state!==void 0?De.state:null;De.updater=ef,De.props=Ee,De.state=hi;var An={queue:[],replace:!1};De._reactInternals=An;var Yn=T.contextType;if(De.context=typeof Yn=="object"&&Yn!==null?Yn._currentValue:oo,De.state===Ee){var Hi=Xt(T)||"Component";Xu.has(Hi)||(Xu.add(Hi),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Hi))}var Jr=T.getDerivedStateFromProps;if(typeof Jr=="function"){var Ar=Jr(Ee,hi);if(Ar===void 0){var Vn=Xt(T)||"Component";As.has(Vn)||(As.add(Vn),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Vn))}var Tr=Ar==null?hi:Fn({},hi,Ar);De.state=Tr}if(typeof T.getDerivedStateFromProps!="function"&&typeof De.getSnapshotBeforeUpdate!="function"&&(typeof De.UNSAFE_componentWillMount=="function"||typeof De.componentWillMount=="function")){var Wi=De.state;if(typeof De.componentWillMount=="function"){if(De.componentWillMount.__suppressDeprecationWarning!==!0){var ao=Xt(T)||"Unknown";au[ao]||(console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
214
|
+
|
|
215
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
216
|
+
|
|
217
|
+
Please update the following components: %s`,ao),au[ao]=!0)}De.componentWillMount()}if(typeof De.UNSAFE_componentWillMount=="function"&&De.UNSAFE_componentWillMount(),Wi!==De.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xt(T)||"Component"),ef.enqueueReplaceState(De,De.state,null)),An.queue!==null&&0<An.queue.length){var Ir=An.queue,$n=An.replace;if(An.queue=null,An.replace=!1,$n&&Ir.length===1)De.state=Ir[0];else{for(var gi=$n?Ir[0]:De.state,Ui=!0,pi=$n?1:0;pi<Ir.length;pi++){var Ua=Ir[pi],Gi=typeof Ua=="function"?Ua.call(De,gi,Ee,void 0):Ua;Gi!=null&&(Ui?(Ui=!1,gi=Fn({},gi,Gi)):Fn(gi,Gi))}De.state=gi}}else An.queue=null}var yr=pn(De);if(a.status===12)throw null;De.props!==Ee&&(zi||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Xt(T)||"a component"),zi=!0);var ko=c.keyPath;c.keyPath=b,ki(a,c,yr,-1),c.keyPath=ko}else{if(T.prototype&&typeof T.prototype.render=="function"){var Br=Xt(T)||"Unknown";Zr[Br]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",Br,Br),Zr[Br]=!0)}var Ju=fr(a,c,b,T,A,void 0);if(a.status===12)throw null;var ga=vr!==0,ir=gc,Ro=uu;if(T.contextTypes){var vi=Xt(T)||"Unknown";Gn[vi]||(Gn[vi]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",vi))}if(T&&T.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
218
|
+
%s.childContextTypes = ...`,T.displayName||T.name||"Component"),typeof T.getDerivedStateFromProps=="function"){var bc=Xt(T)||"Unknown";Fs[bc]||(console.error("%s: Function components do not support getDerivedStateFromProps.",bc),Fs[bc]=!0)}if(typeof T.contextType=="object"&&T.contextType!==null){var Ds=Xt(T)||"Unknown";Bi[Ds]||(console.error("%s: Function components do not support contextType.",Ds),Bi[Ds]=!0)}Ra(a,c,b,Ju,ga,ir,Ro)}else if(typeof T=="string"){var Ko=c.blockedSegment;if(Ko===null){var Ls=A.children,Yi=c.formatContext,mc=c.keyPath;c.formatContext=Ge(Yi,T,A),c.keyPath=b,_r(a,c,Ls,-1),c.formatContext=Yi,c.keyPath=mc}else{var Ku=Pt(Ko.chunks,T,A,a.resumableState,a.renderState,c.blockedPreamble,c.hoistableState,c.formatContext,Ko.lastPushedText);Ko.lastPushedText=!1;var Mo=c.formatContext,yc=c.keyPath;if(c.keyPath=b,(c.formatContext=Ge(Mo,T,A)).insertionMode===ic){var bi=Ea(a,0,null,c.formatContext,!1,!1);Ko.preambleChildren.push(bi),c.blockedSegment=bi;try{bi.status=6,_r(a,c,Ku,-1),bi.lastPushedText&&bi.textEmbedded&&bi.chunks.push(gr),bi.status=Rn,Wo(a,c.blockedBoundary,bi)}finally{c.blockedSegment=Ko}}else _r(a,c,Ku,-1);c.formatContext=Mo,c.keyPath=yc;e:{var Bs=Ko.chunks,Kl=a.resumableState;switch(T){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(Mo.insertionMode<=rl){Kl.hasBody=!0;break e}break;case"html":if(Mo.insertionMode===xs){Kl.hasHtml=!0;break e}break;case"head":if(Mo.insertionMode<=rl)break e}Bs.push($e(T))}Ko.lastPushedText=!1}}else{switch(T){case jd:case ec:case tc:case Pa:var gl=c.keyPath;c.keyPath=b,ki(a,c,A.children,-1),c.keyPath=gl;return;case Nr:var _o=c.blockedSegment;if(_o===null){if(A.mode!=="hidden"){var Po=c.keyPath;c.keyPath=b,_r(a,c,A.children,-1),c.keyPath=Po}}else if(A.mode!=="hidden"){_o.chunks.push(Gu),_o.lastPushedText=!1;var pa=c.keyPath;c.keyPath=b,_r(a,c,A.children,-1),c.keyPath=pa,_o.chunks.push($c),_o.lastPushedText=!1}return;case kl:e:{var Vi=A.children,Kr=A.revealOrder;if(Kr==="forwards"||Kr==="backwards"||Kr==="unstable_legacy-backwards"){if(oa(Vi)){ka(a,c,b,Vi,Kr);break e}var pl=n(Vi);if(pl){var va=pl.call(Vi);if(va){El(c,Vi,-1,va,pl);var Ql=va.next();if(!Ql.done){var Ga=[];do Ga.push(Ql.value),Ql=va.next();while(!Ql.done);ka(a,c,b,Vi,Kr)}break e}}}if(Kr==="together"){var Rd=c.keyPath,Ai=c.row,Qo=c.row=ra(null);Qo.boundaries=[],Qo.together=!0,c.keyPath=b,ki(a,c,Vi,-1),--Qo.pendingTasks===0&&Er(a,Qo),c.keyPath=Rd,c.row=Ai,Ai!==null&&0<Qo.pendingTasks&&(Ai.pendingTasks++,Qo.next=Ai)}else{var wc=c.keyPath;c.keyPath=b,ki(a,c,Vi,-1),c.keyPath=wc}}return;case gd:case Fu:throw Error("ReactDOMServer does not yet support scope components.");case $a:e:if(c.replay!==null){var du=c.keyPath,fu=c.formatContext,ih=c.row;c.keyPath=b,c.formatContext=rt(a.resumableState,fu),c.row=null;var jl=A.children;try{_r(a,c,jl,-1)}finally{c.keyPath=du,c.formatContext=fu,c.row=ih}}else{var zs=c.keyPath,ql=c.formatContext,hu=c.row,Tf=c.blockedBoundary,tf=c.blockedPreamble,Ii=c.hoistableState,ba=c.blockedSegment,$l=A.fallback,Qu=A.children,Oo=new Set,wr=c.formatContext.insertionMode<ri?Sa(a,c.row,Oo,ee(),ee()):Sa(a,c.row,Oo,null,null);a.trackedPostpones!==null&&(wr.trackedContentKeyPath=b);var er=Ea(a,ba.chunks.length,wr,c.formatContext,!1,!1);ba.children.push(er),ba.lastPushedText=!1;var Ln=Ea(a,0,null,c.formatContext,!1,!1);if(Ln.parentFlushed=!0,a.trackedPostpones!==null){var nf=c.componentStack,Hs=[b[0],"Suspense Fallback",b[2]],ju=[Hs[1],Hs[2],[],null];a.trackedPostpones.workingMap.set(Hs,ju),wr.trackedFallbackNode=ju,c.blockedSegment=er,c.blockedPreamble=wr.fallbackPreamble,c.keyPath=Hs,c.formatContext=Oe(a.resumableState,ql),c.componentStack=gs(nf),er.status=6;try{_r(a,c,$l,-1),er.lastPushedText&&er.textEmbedded&&er.chunks.push(gr),er.status=Rn,Wo(a,Tf,er)}catch(ah){throw er.status=a.status===12?qn:sn,ah}finally{c.blockedSegment=ba,c.blockedPreamble=tf,c.keyPath=zs,c.formatContext=ql}var Ws=Bo(a,null,Qu,-1,wr,Ln,wr.contentPreamble,wr.contentState,c.abortSet,b,rt(a.resumableState,c.formatContext),c.context,c.treeContext,null,nf,oo,c.debugTask);Ta(Ws),a.pingedTasks.push(Ws)}else{c.blockedBoundary=wr,c.blockedPreamble=wr.contentPreamble,c.hoistableState=wr.contentState,c.blockedSegment=Ln,c.keyPath=b,c.formatContext=rt(a.resumableState,ql),c.row=null,Ln.status=6;try{if(_r(a,c,Qu,-1),Ln.lastPushedText&&Ln.textEmbedded&&Ln.chunks.push(gr),Ln.status=Rn,Wo(a,wr,Ln),ms(wr,Ln),wr.pendingTasks===0&&wr.status===kn){if(wr.status=Rn,!Ci(a,wr)){hu!==null&&--hu.pendingTasks===0&&Er(a,hu),a.pendingRootTasks===0&&c.blockedPreamble&&Tl(a);break e}}else hu!==null&&hu.together&&xl(a,hu)}catch(ah){if(wr.status=pt,a.status===12){Ln.status=qn;var xc=a.fatalError}else Ln.status=sn,xc=ah;var qu=zt(c.componentStack),Sc=dr(a,xc,qu,c.debugTask);zo(wr,Sc,xc,qu,!1),ps(a,wr)}finally{c.blockedBoundary=Tf,c.blockedPreamble=tf,c.hoistableState=Ii,c.blockedSegment=ba,c.keyPath=zs,c.formatContext=ql,c.row=hu}var gu=Bo(a,null,$l,-1,Tf,er,wr.fallbackPreamble,wr.fallbackState,Oo,[b[0],"Suspense Fallback",b[2]],Oe(a.resumableState,c.formatContext),c.context,c.treeContext,c.row,gs(c.componentStack),oo,c.debugTask);Ta(gu),a.pingedTasks.push(gu)}}return}if(typeof T=="object"&&T!==null)switch(T.$$typeof){case dn:if("ref"in A){var pu={};for(var Md in A)Md!=="ref"&&(pu[Md]=A[Md])}else pu=A;var rf=fr(a,c,b,T.render,pu,U);Ra(a,c,b,rf,vr!==0,gc,uu);return;case Rl:Ma(a,c,b,T.type,A,U);return;case Hn:var kf=A.value,$u=A.children,ed=c.context,Ec=c.keyPath,es=T._currentValue;T._currentValue=kf,T._currentRenderer!==void 0&&T._currentRenderer!==null&&T._currentRenderer!==fl&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),T._currentRenderer=fl;var vl=za,Xi={parent:vl,depth:vl===null?0:vl.depth+1,context:T,parentValue:es,value:kf};za=Xi,c.context=Xi,c.keyPath=b,ki(a,c,$u,-1);var vu=za;if(vu===null)throw Error("Tried to pop a Context at the root of the app. This is a bug in React.");vu.context!==T&&console.error("The parent context is not the expected context. This is probably a bug in React."),vu.context._currentValue=vu.parentValue,T._currentRenderer!==void 0&&T._currentRenderer!==null&&T._currentRenderer!==fl&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),T._currentRenderer=fl;var Rf=za=vu.parent;c.context=Rf,c.keyPath=Ec,ed!==c.context&&console.error("Popping the context provider did not return back to the original snapshot. This is a bug in React.");return;case Ri:var oh=T._context,of=A.children;typeof of!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var ep=of(oh._currentValue),_d=c.keyPath;c.keyPath=b,ki(a,c,ep,-1),c.keyPath=_d;return;case el:var tp=Xr(T);if(a.status===12)throw null;Ma(a,c,b,tp,A,U);return}var Mf="";throw(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(Mf+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+((T==null?T:typeof T)+"."+Mf))}}function Sl(a,c,b,T,A){var U=c.replay,te=c.blockedBoundary,de=Ea(a,0,null,c.formatContext,!1,!1);de.id=b,de.parentFlushed=!0;try{c.replay=null,c.blockedSegment=de,_r(a,c,T,A),de.status=Rn,Wo(a,te,de),te===null?a.completedRootSegment=de:(ms(te,de),te.parentFlushed&&a.partialBoundaries.push(te))}finally{c.replay=U,c.blockedSegment=null}}function Ja(a,c,b,T,A,U,te,de,Me,be){U=be.nodes;for(var Ee=0;Ee<U.length;Ee++){var ze=U[Ee];if(A===ze[1]){if(ze.length===4){if(T!==null&&T!==ze[0])throw Error("Expected the resume to render <"+ze[0]+"> in this slot but instead it rendered <"+T+">. The tree doesn't match so React will fallback to client rendering.");var Ue=ze[2];T=ze[3],A=c.node,c.replay={nodes:Ue,slots:T,pendingTasks:1};try{if(Ma(a,c,b,te,de,Me),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");c.replay.pendingTasks--}catch(wt){if(typeof wt=="object"&&wt!==null&&(wt===ca||typeof wt.then=="function"))throw c.node===A?c.replay=be:U.splice(Ee,1),wt;c.replay.pendingTasks--,te=zt(c.componentStack),de=a,a=c.blockedBoundary,b=wt,Me=T,T=dr(de,b,te,c.debugTask),Ka(de,a,Ue,Me,b,T,te,!1)}c.replay=be}else{if(te!==$a)throw Error("Expected the resume to render <Suspense> in this slot but instead it rendered <"+(Xt(te)||"Unknown")+">. The tree doesn't match so React will fallback to client rendering.");e:{be=void 0,T=ze[5],te=ze[2],Me=ze[3],A=ze[4]===null?[]:ze[4][2],ze=ze[4]===null?null:ze[4][3];var He=c.keyPath,De=c.formatContext,kt=c.row,On=c.replay,St=c.blockedBoundary,qt=c.hoistableState,rr=de.children,br=de.fallback,vn=new Set;de=c.formatContext.insertionMode<ri?Sa(a,c.row,vn,ee(),ee()):Sa(a,c.row,vn,null,null),de.parentFlushed=!0,de.rootSegmentID=T,c.blockedBoundary=de,c.hoistableState=de.contentState,c.keyPath=b,c.formatContext=rt(a.resumableState,De),c.row=null,c.replay={nodes:te,slots:Me,pendingTasks:1};try{if(_r(a,c,rr,-1),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");if(c.replay.pendingTasks--,de.pendingTasks===0&&de.status===kn){de.status=Rn,a.completedBoundaries.push(de);break e}}catch(wt){de.status=pt,Ue=zt(c.componentStack),be=dr(a,wt,Ue,c.debugTask),zo(de,be,wt,Ue,!1),c.replay.pendingTasks--,a.clientRenderedBoundaries.push(de)}finally{c.blockedBoundary=St,c.hoistableState=qt,c.replay=On,c.keyPath=He,c.formatContext=De,c.row=kt}de=Pu(a,null,{nodes:A,slots:ze,pendingTasks:0},br,-1,St,de.fallbackState,vn,[b[0],"Suspense Fallback",b[2]],Oe(a.resumableState,c.formatContext),c.context,c.treeContext,c.row,gs(c.componentStack),oo,c.debugTask),Ta(de),a.pingedTasks.push(de)}}U.splice(Ee,1);break}}}function El(a,c,b,T,A){T===c?(b!==-1||a.componentStack===null||typeof a.componentStack.type!="function"||Object.prototype.toString.call(a.componentStack.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(T)!=="[object Generator]")&&(da||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),da=!0):c.entries!==A||fa||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),fa=!0)}function ki(a,c,b,T){c.replay!==null&&typeof c.replay.slots=="number"?Sl(a,c,c.replay.slots,b,T):(c.node=b,c.childIndex=T,b=c.componentStack,T=c.debugTask,Ta(c),Cl(a,c),c.componentStack=b,c.debugTask=T)}function Cl(a,c){var b=c.node,T=c.childIndex;if(b!==null){if(typeof b=="object"){switch(b.$$typeof){case Gc:var A=b.type,U=b.key;b=b.props;var te=b.ref;te=te!==void 0?te:null;var de=c.debugTask,Me=Xt(A);U=U??(T===-1?0:T);var be=[c.keyPath,Me,U];c.replay!==null?de?de.run(Ja.bind(null,a,c,be,Me,U,T,A,b,te,c.replay)):Ja(a,c,be,Me,U,T,A,b,te,c.replay):de?de.run(Ma.bind(null,a,c,be,A,b,te)):Ma(a,c,be,A,b,te);return;case $s:throw Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case el:if(A=Xr(b),a.status===12)throw null;ki(a,c,A,T);return}if(oa(b)){Ou(a,c,b,T);return}if((U=n(b))&&(A=U.call(b))){if(El(c,b,T,A,U),b=A.next(),!b.done){U=[];do U.push(b.value),b=A.next();while(!b.done);Ou(a,c,U,T)}return}if(typeof b.then=="function")return c.thenableState=null,ki(a,c,Sr(b),T);if(b.$$typeof===Hn)return ki(a,c,b._currentValue,T);throw a=Object.prototype.toString.call(b),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}typeof b=="string"?(c=c.blockedSegment,c!==null&&(c.lastPushedText=Fe(c.chunks,b,a.renderState,c.lastPushedText))):typeof b=="number"||typeof b=="bigint"?(c=c.blockedSegment,c!==null&&(c.lastPushedText=Fe(c.chunks,""+b,a.renderState,c.lastPushedText))):(typeof b=="function"&&(a=b.displayName||b.name||"Component",console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",a,a)),typeof b=="symbol"&&console.error(`Symbols are not valid as a React child.
|
|
219
|
+
%s`,String(b)))}}function Ho(a,c,b){if(b!==null&&typeof b=="object"&&(b.$$typeof===Gc||b.$$typeof===$s)&&b._store&&(!b._store.validated&&b.key==null||b._store.validated===2)){if(typeof b._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");b._store.validated=1;var T=a.didWarnForKey;if(T==null&&(T=a.didWarnForKey=new WeakSet),a=c.componentStack,a!==null&&!T.has(a)){T.add(a);var A=Xt(b.type);T=b._owner;var U=a.owner;if(a="",U&&typeof U.type<"u"){var te=Xt(U.type);te&&(a=`
|
|
220
|
+
|
|
221
|
+
Check the render method of \``+te+"`.")}a||A&&(a=`
|
|
222
|
+
|
|
223
|
+
Check the top-level render call using <`+A+">."),A="",T!=null&&U!==T&&(U=null,typeof T.type<"u"?U=Xt(T.type):typeof T.name=="string"&&(U=T.name),U&&(A=" It was passed a child from "+U+".")),T=c.componentStack,c.componentStack={parent:c.componentStack,type:b.type,owner:b._owner,stack:b._debugStack},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',a,A),c.componentStack=T}}}function Ou(a,c,b,T){var A=c.keyPath,U=c.componentStack,te=c.debugTask;if(Ca(c,c.node._debugInfo),T!==-1&&(c.keyPath=[c.keyPath,"Fragment",T],c.replay!==null)){for(var de=c.replay,Me=de.nodes,be=0;be<Me.length;be++){var Ee=Me[be];if(Ee[1]===T){T=Ee[2],Ee=Ee[3],c.replay={nodes:T,slots:Ee,pendingTasks:1};try{if(Ou(a,c,b,-1),c.replay.pendingTasks===1&&0<c.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");c.replay.pendingTasks--}catch(De){if(typeof De=="object"&&De!==null&&(De===ca||typeof De.then=="function"))throw De;c.replay.pendingTasks--;var ze=zt(c.componentStack);b=c.blockedBoundary;var Ue=De,He=Ee;Ee=dr(a,Ue,ze,c.debugTask),Ka(a,b,T,He,Ue,Ee,ze,!1)}c.replay=de,Me.splice(be,1);break}}c.keyPath=A,c.componentStack=U,c.debugTask=te;return}if(de=c.treeContext,Me=b.length,c.replay!==null&&(be=c.replay.slots,be!==null&&typeof be=="object")){for(T=0;T<Me;T++)Ee=b[T],c.treeContext=Xn(de,Me,T),Ue=be[T],typeof Ue=="number"?(Sl(a,c,Ue,Ee,T),delete be[T]):_r(a,c,Ee,T);c.treeContext=de,c.keyPath=A,c.componentStack=U,c.debugTask=te;return}for(be=0;be<Me;be++)T=b[be],Ho(a,c,T),c.treeContext=Xn(de,Me,be),_r(a,c,T,be);c.treeContext=de,c.keyPath=A,c.componentStack=U,c.debugTask=te}function Au(a,c,b){if(b.status=Ut,b.rootSegmentID=a.nextSegmentId++,a=b.trackedContentKeyPath,a===null)throw Error("It should not be possible to postpone at the root. This is a bug in React.");var T=b.trackedFallbackNode,A=[],U=c.workingMap.get(a);return U===void 0?(b=[a[1],a[2],A,null,T,b.rootSegmentID],c.workingMap.set(a,b),to(b,a[0],c),b):(U[4]=T,U[5]=b.rootSegmentID,U)}function Iu(a,c,b,T){T.status=Ut;var A=b.keyPath,U=b.blockedBoundary;if(U===null)T.id=a.nextSegmentId++,c.rootSlots=T.id,a.completedRootSegment!==null&&(a.completedRootSegment.status=Ut);else{if(U!==null&&U.status===kn){var te=Au(a,c,U);if(U.trackedContentKeyPath===A&&b.childIndex===-1){T.id===-1&&(T.id=T.parentFlushed?U.rootSegmentID:a.nextSegmentId++),te[3]=T.id;return}}if(T.id===-1&&(T.id=T.parentFlushed&&U!==null?U.rootSegmentID:a.nextSegmentId++),b.childIndex===-1)A===null?c.rootSlots=T.id:(b=c.workingMap.get(A),b===void 0?(b=[A[1],A[2],[],T.id],to(b,A[0],c)):b[3]=T.id);else{if(A===null){if(a=c.rootSlots,a===null)a=c.rootSlots={};else if(typeof a=="number")throw Error("It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.")}else if(U=c.workingMap,te=U.get(A),te===void 0)a={},te=[A[1],A[2],[],a],U.set(A,te),to(te,A[0],c);else if(a=te[3],a===null)a=te[3]={};else if(typeof a=="number")throw Error("It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React.");a[b.childIndex]=T.id}}}function ps(a,c){a=a.trackedPostpones,a!==null&&(c=c.trackedContentKeyPath,c!==null&&(c=a.workingMap.get(c),c!==void 0&&(c.length=4,c[2]=[],c[3]=null)))}function vs(a,c,b){return Pu(a,b,c.replay,c.node,c.childIndex,c.blockedBoundary,c.hoistableState,c.abortSet,c.keyPath,c.formatContext,c.context,c.treeContext,c.row,c.componentStack,oo,c.debugTask)}function bs(a,c,b){var T=c.blockedSegment,A=Ea(a,T.chunks.length,null,c.formatContext,T.lastPushedText,!0);return T.children.push(A),T.lastPushedText=!1,Bo(a,b,c.node,c.childIndex,c.blockedBoundary,A,c.blockedPreamble,c.hoistableState,c.abortSet,c.keyPath,c.formatContext,c.context,c.treeContext,c.row,c.componentStack,oo,c.debugTask)}function _r(a,c,b,T){var A=c.formatContext,U=c.context,te=c.keyPath,de=c.treeContext,Me=c.componentStack,be=c.debugTask,Ee=c.blockedSegment;if(Ee===null){Ee=c.replay;try{return ki(a,c,b,T)}catch(He){if(wl(),b=He===ca?Ru():He,a.status!==12&&typeof b=="object"&&b!==null){if(typeof b.then=="function"){T=He===ca?ji():null,a=vs(a,c,T).ping,b.then(a,a),c.formatContext=A,c.context=U,c.keyPath=te,c.treeContext=de,c.componentStack=Me,c.replay=Ee,c.debugTask=be,nn(U);return}if(b.message==="Maximum call stack size exceeded"){b=He===ca?ji():null,b=vs(a,c,b),a.pingedTasks.push(b),c.formatContext=A,c.context=U,c.keyPath=te,c.treeContext=de,c.componentStack=Me,c.replay=Ee,c.debugTask=be,nn(U);return}}}}else{var ze=Ee.children.length,Ue=Ee.chunks.length;try{return ki(a,c,b,T)}catch(He){if(wl(),Ee.children.length=ze,Ee.chunks.length=Ue,b=He===ca?Ru():He,a.status!==12&&typeof b=="object"&&b!==null){if(typeof b.then=="function"){Ee=b,b=He===ca?ji():null,a=bs(a,c,b).ping,Ee.then(a,a),c.formatContext=A,c.context=U,c.keyPath=te,c.treeContext=de,c.componentStack=Me,c.debugTask=be,nn(U);return}if(b.message==="Maximum call stack size exceeded"){Ee=He===ca?ji():null,Ee=bs(a,c,Ee),a.pingedTasks.push(Ee),c.formatContext=A,c.context=U,c.keyPath=te,c.treeContext=de,c.componentStack=Me,c.debugTask=be,nn(U);return}}}}throw c.formatContext=A,c.context=U,c.keyPath=te,c.treeContext=de,nn(U),b}function hd(a){var c=a.blockedBoundary,b=a.blockedSegment;b!==null&&(b.status=qn,ja(this,c,a.row,b))}function Ka(a,c,b,T,A,U,te,de){for(var Me=0;Me<b.length;Me++){var be=b[Me];if(be.length===4)Ka(a,c,be[2],be[3],A,U,te,de);else{var Ee=a;be=be[5];var ze=A,Ue=U,He=te,De=de,kt=Sa(Ee,null,new Set,null,null);kt.parentFlushed=!0,kt.rootSegmentID=be,kt.status=pt,zo(kt,Ue,ze,He,De),kt.parentFlushed&&Ee.clientRenderedBoundaries.push(kt)}}if(b.length=0,T!==null){if(c===null)throw Error("We should not have any resumable nodes in the shell. This is a bug in React.");if(c.status!==pt&&(c.status=pt,zo(c,U,A,te,de),c.parentFlushed&&a.clientRenderedBoundaries.push(c)),typeof T=="object")for(var On in T)delete T[On]}}function Qs(a,c,b){var T=a.blockedBoundary,A=a.blockedSegment;if(A!==null){if(A.status===6)return;A.status=qn}var U=zt(a.componentStack),te=a.node;if(te!==null&&typeof te=="object"&&hs(a,te._debugInfo),T===null){if(c.status!==13&&c.status!==fi){if(T=a.replay,T===null){c.trackedPostpones!==null&&A!==null?(T=c.trackedPostpones,dr(c,b,U,a.debugTask),Iu(c,T,a,A),ja(c,null,a.row,A)):(dr(c,b,U,a.debugTask),na(c,b,U,a.debugTask));return}T.pendingTasks--,T.pendingTasks===0&&0<T.nodes.length&&(A=dr(c,b,U,null),Ka(c,null,T.nodes,T.slots,b,A,U,!0)),c.pendingRootTasks--,c.pendingRootTasks===0&&_a(c)}}else{if(te=c.trackedPostpones,T.status!==pt){if(te!==null&&A!==null)return dr(c,b,U,a.debugTask),Iu(c,te,a,A),T.fallbackAbortableTasks.forEach(function(de){return Qs(de,c,b)}),T.fallbackAbortableTasks.clear(),ja(c,T,a.row,A);T.status=pt,A=dr(c,b,U,a.debugTask),T.status=pt,zo(T,A,b,U,!0),ps(c,T),T.parentFlushed&&c.clientRenderedBoundaries.push(T)}T.pendingTasks--,U=T.row,U!==null&&--U.pendingTasks===0&&Er(c,U),T.fallbackAbortableTasks.forEach(function(de){return Qs(de,c,b)}),T.fallbackAbortableTasks.clear()}a=a.row,a!==null&&--a.pendingTasks===0&&Er(c,a),c.allPendingTasks--,c.allPendingTasks===0&&Qa(c)}function zc(a,c){try{var b=a.renderState,T=b.onHeaders;if(T){var A=b.headers;if(A){b.headers=null;var U=A.preconnects;if(A.fontPreloads&&(U&&(U+=", "),U+=A.fontPreloads),A.highImagePreloads&&(U&&(U+=", "),U+=A.highImagePreloads),!c){var te=b.styles.values(),de=te.next();e:for(;0<A.remainingCapacity&&!de.done;de=te.next())for(var Me=de.value.sheets.values(),be=Me.next();0<A.remainingCapacity&&!be.done;be=Me.next()){var Ee=be.value,ze=Ee.props,Ue=ze.href,He=Ee.props,De=po(He.href,"style",{crossOrigin:He.crossOrigin,integrity:He.integrity,nonce:He.nonce,type:He.type,fetchPriority:He.fetchPriority,referrerPolicy:He.referrerPolicy,media:He.media});if(0<=(A.remainingCapacity-=De.length+2))b.resets.style[Ue]=Pr,U&&(U+=", "),U+=De,b.resets.style[Ue]=typeof ze.crossOrigin=="string"||typeof ze.integrity=="string"?[ze.crossOrigin,ze.integrity]:Pr;else break e}}T(U?{Link:U}:{})}}}catch(kt){dr(a,kt,{},null)}}function _a(a){a.trackedPostpones===null&&zc(a,!0),a.trackedPostpones===null&&Tl(a),a.onShellError=Hr,a=a.onShellReady,a()}function Qa(a){zc(a,a.trackedPostpones===null?!0:a.completedRootSegment===null||a.completedRootSegment.status!==Ut),Tl(a),a=a.onAllReady,a()}function ms(a,c){if(c.chunks.length===0&&c.children.length===1&&c.children[0].boundary===null&&c.children[0].id===-1){var b=c.children[0];b.id=c.id,b.parentFlushed=!0,b.status!==Rn&&b.status!==qn&&b.status!==sn||ms(a,b)}else a.completedSegments.push(c)}function Wo(a,c,b){if(W!==null){b=b.chunks;for(var T=0,A=0;A<b.length;A++)T+=b[A].byteLength;c===null?a.byteSize+=T:c.byteSize+=T}}function ja(a,c,b,T){if(b!==null&&(--b.pendingTasks===0?Er(a,b):b.together&&xl(a,b)),a.allPendingTasks--,c===null){if(T!==null&&T.parentFlushed){if(a.completedRootSegment!==null)throw Error("There can only be one root segment. This is a bug in React.");a.completedRootSegment=T}a.pendingRootTasks--,a.pendingRootTasks===0&&_a(a)}else if(c.pendingTasks--,c.status!==pt)if(c.pendingTasks===0){if(c.status===kn&&(c.status=Rn),T!==null&&T.parentFlushed&&(T.status===Rn||T.status===qn)&&ms(c,T),c.parentFlushed&&a.completedBoundaries.push(c),c.status===Rn)b=c.row,b!==null&&an(b.hoistables,c.contentState),Ci(a,c)||(c.fallbackAbortableTasks.forEach(hd,a),c.fallbackAbortableTasks.clear(),b!==null&&--b.pendingTasks===0&&Er(a,b)),a.pendingRootTasks===0&&a.trackedPostpones===null&&c.contentPreamble!==null&&Tl(a);else if(c.status===Ut&&(c=c.row,c!==null)){if(a.trackedPostpones!==null){b=a.trackedPostpones;var A=c.next;if(A!==null&&(T=A.boundaries,T!==null))for(A.boundaries=null,A=0;A<T.length;A++){var U=T[A];Au(a,b,U),ja(a,U,null,null)}}--c.pendingTasks===0&&Er(a,c)}}else T===null||!T.parentFlushed||T.status!==Rn&&T.status!==qn||(ms(c,T),c.completedSegments.length===1&&c.parentFlushed&&a.partialBoundaries.push(c)),c=c.row,c!==null&&c.together&&xl(a,c);a.allPendingTasks===0&&Qa(a)}function qa(a){if(a.status!==fi&&a.status!==13){var c=za,b=Jt.H;Jt.H=vc;var T=Jt.A;Jt.A=m;var A=Mn;Mn=a;var U=Jt.getCurrentStack;Jt.getCurrentStack=ta;var te=s;s=a.resumableState;try{var de=a.pingedTasks,Me;for(Me=0;Me<de.length;Me++){var be=a,Ee=de[Me],ze=Ee.blockedSegment;if(ze===null){var Ue=void 0,He=be;if(be=Ee,be.replay.pendingTasks!==0){nn(be.context),Ue=d,d=be;try{if(typeof be.replay.slots=="number"?Sl(He,be,be.replay.slots,be.node,be.childIndex):Cl(He,be),be.replay.pendingTasks===1&&0<be.replay.nodes.length)throw Error("Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering.");be.replay.pendingTasks--,be.abortSet.delete(be),ja(He,be.blockedBoundary,be.row,null)}catch($n){wl();var De=$n===ca?Ru():$n;if(typeof De=="object"&&De!==null&&typeof De.then=="function"){var kt=be.ping;De.then(kt,kt),be.thenableState=$n===ca?ji():null}else{be.replay.pendingTasks--,be.abortSet.delete(be);var On=zt(be.componentStack),St=void 0,qt=He,rr=be.blockedBoundary,br=He.status===12?He.fatalError:De,vn=On,wt=be.replay.nodes,mr=be.replay.slots;St=dr(qt,br,vn,be.debugTask),Ka(qt,rr,wt,mr,br,St,vn,!1),He.pendingRootTasks--,He.pendingRootTasks===0&&_a(He),He.allPendingTasks--,He.allPendingTasks===0&&Qa(He)}}finally{d=Ue}}}else if(He=Ue=void 0,St=Ee,qt=ze,qt.status===kn){qt.status=6,nn(St.context),He=d,d=St;var hi=qt.children.length,An=qt.chunks.length;try{Cl(be,St),qt.lastPushedText&&qt.textEmbedded&&qt.chunks.push(gr),St.abortSet.delete(St),qt.status=Rn,Wo(be,St.blockedBoundary,qt),ja(be,St.blockedBoundary,St.row,qt)}catch($n){wl(),qt.children.length=hi,qt.chunks.length=An;var Yn=$n===ca?Ru():be.status===12?be.fatalError:$n;if(be.status===12&&be.trackedPostpones!==null){var Hi=be.trackedPostpones,Jr=zt(St.componentStack);St.abortSet.delete(St),dr(be,Yn,Jr,St.debugTask),Iu(be,Hi,St,qt),ja(be,St.blockedBoundary,St.row,qt)}else if(typeof Yn=="object"&&Yn!==null&&typeof Yn.then=="function"){qt.status=kn,St.thenableState=$n===ca?ji():null;var Ar=St.ping;Yn.then(Ar,Ar)}else{var Vn=zt(St.componentStack);St.abortSet.delete(St),qt.status=sn;var Tr=St.blockedBoundary,Wi=St.row,ao=St.debugTask;if(Wi!==null&&--Wi.pendingTasks===0&&Er(be,Wi),be.allPendingTasks--,Ue=dr(be,Yn,Vn,ao),Tr===null)na(be,Yn,Vn,ao);else if(Tr.pendingTasks--,Tr.status!==pt){Tr.status=pt,zo(Tr,Ue,Yn,Vn,!1),ps(be,Tr);var Ir=Tr.row;Ir!==null&&--Ir.pendingTasks===0&&Er(be,Ir),Tr.parentFlushed&&be.clientRenderedBoundaries.push(Tr),be.pendingRootTasks===0&&be.trackedPostpones===null&&Tr.contentPreamble!==null&&Tl(be)}be.allPendingTasks===0&&Qa(be)}}finally{d=He}}}de.splice(0,Me),a.destination!==null&&qi(a,a.destination)}catch($n){de={},dr(a,$n,de,null),na(a,$n,de,null)}finally{s=te,Jt.H=b,Jt.A=T,Jt.getCurrentStack=U,b===vc&&nn(c),Mn=A}}}function Nu(a,c,b){c.preambleChildren.length&&b.push(c.preambleChildren);for(var T=!1,A=0;A<c.children.length;A++)T=Qd(a,c.children[A],b)||T;return T}function Qd(a,c,b){var T=c.boundary;if(T===null)return Nu(a,c,b);var A=T.contentPreamble,U=T.fallbackPreamble;if(A===null||U===null)return!1;switch(T.status){case Rn:if(nr(a.renderState,A),a.byteSize+=T.byteSize,c=T.completedSegments[0],!c)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");return Nu(a,c,b);case Ut:if(a.trackedPostpones!==null)return!0;case pt:if(c.status===Rn)return nr(a.renderState,U),Nu(a,c,b);default:return!0}}function Tl(a){if(a.completedRootSegment&&a.completedPreambleSegments===null){var c=[],b=a.byteSize,T=Qd(a,a.completedRootSegment,c),A=a.renderState.preamble;T===!1||A.headChunks&&A.bodyChunks?a.completedPreambleSegments=c:a.byteSize=b}}function hr(a,c,b,T){switch(b.parentFlushed=!0,b.status){case kn:b.id=a.nextSegmentId++;case Ut:return T=b.id,b.lastPushedText=!1,b.textEmbedded=!1,a=a.renderState,w(c,dc),w(c,a.placeholderPrefix),a=O(T.toString(16)),w(c,a),C(c,qc);case Rn:b.status=Pn;var A=!0,U=b.chunks,te=0;b=b.children;for(var de=0;de<b.length;de++){for(A=b[de];te<A.index;te++)w(c,U[te]);A=ia(a,c,A,T)}for(;te<U.length-1;te++)w(c,U[te]);return te<U.length&&(A=C(c,U[te])),A;case qn:return!0;default:throw Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ia(a,c,b,T){var A=b.boundary;if(A===null)return hr(a,c,b,T);if(A.parentFlushed=!0,A.status===pt){var U=A.row;U!==null&&--U.pendingTasks===0&&Er(a,U),U=A.errorDigest;var te=A.errorMessage,de=A.errorStack;A=A.errorComponentStack,C(c,bd),w(c,fc),U&&(w(c,Ts),w(c,O(me(U))),w(c,Yo)),te&&(w(c,sl),w(c,O(me(te))),w(c,Yo)),de&&(w(c,hc),w(c,O(me(de))),w(c,Yo)),A&&(w(c,cl),w(c,O(me(A))),w(c,Yo)),C(c,md),hr(a,c,b,T)}else if(A.status!==Rn)A.status===kn&&(A.rootSegmentID=a.nextSegmentId++),0<A.completedSegments.length&&a.partialBoundaries.push(A),$r(c,a.renderState,A.rootSegmentID),T&&an(T,A.fallbackState),hr(a,c,b,T);else if(!Lr&&Ci(a,A)&&(ha+A.byteSize>a.progressiveChunkSize||Ic(A.contentState)))A.rootSegmentID=a.nextSegmentId++,a.completedBoundaries.push(A),$r(c,a.renderState,A.rootSegmentID),hr(a,c,b,T);else{if(ha+=A.byteSize,T&&an(T,A.contentState),b=A.row,b!==null&&Ci(a,A)&&--b.pendingTasks===0&&Er(a,b),C(c,eu),b=A.completedSegments,b.length!==1)throw Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");ia(a,c,b[0],T)}return C(c,Bl)}function js(a,c,b,T){return uo(c,a.renderState,b.parentFormatContext,b.id),ia(a,c,b,T),Fo(c,b.parentFormatContext)}function qs(a,c,b){ha=b.byteSize;for(var T=b.completedSegments,A=0;A<T.length;A++)Hc(a,c,b,T[A]);T.length=0,T=b.row,T!==null&&Ci(a,b)&&--T.pendingTasks===0&&Er(a,T),Cn(c,b.contentState,a.renderState),T=a.resumableState,a=a.renderState,A=b.rootSegmentID,b=b.contentState;var U=a.stylesToHoist;return a.stylesToHoist=!1,w(c,a.startInlineScript),w(c,Kn),U?((T.instructions&Sn)===Jn&&(T.instructions|=Sn,w(c,li)),(T.instructions&ti)===Jn&&(T.instructions|=ti,w(c,At)),(T.instructions&cn)===Jn?(T.instructions|=cn,w(c,Qn)):w(c,Dn)):((T.instructions&ti)===Jn&&(T.instructions|=ti,w(c,At)),w(c,on)),T=O(A.toString(16)),w(c,a.boundaryPrefix),w(c,T),w(c,Yr),w(c,a.segmentPrefix),w(c,T),U?(w(c,Di),wi(c,b)):w(c,So),b=C(c,It),zr(c,a)&&b}function Hc(a,c,b,T){if(T.status===Pn)return!0;var A=b.contentState,U=T.id;if(U===-1){if((T.id=b.rootSegmentID)===-1)throw Error("A root segment ID must have been assigned by now. This is a bug in React.");return js(a,c,T,A)}return U===b.rootSegmentID?js(a,c,T,A):(js(a,c,T,A),b=a.resumableState,a=a.renderState,w(c,a.startInlineScript),w(c,Kn),(b.instructions&fn)===Jn?(b.instructions|=fn,w(c,_e)):w(c,nt),w(c,a.segmentPrefix),U=O(U.toString(16)),w(c,U),w(c,et),w(c,a.placeholderPrefix),w(c,U),c=C(c,rn),c)}function qi(a,c){Ur=new Uint8Array(2048),Fr=0;try{if(!(0<a.pendingRootTasks)){var b,T=a.completedRootSegment;if(T!==null){if(T.status===Ut)return;var A=a.completedPreambleSegments;if(A===null)return;ha=a.byteSize;var U=a.resumableState,te=a.renderState,de=te.preamble,Me=de.htmlChunks,be=de.headChunks,Ee;if(Me){for(Ee=0;Ee<Me.length;Ee++)w(c,Me[Ee]);if(be)for(Ee=0;Ee<be.length;Ee++)w(c,be[Ee]);else w(c,Xe("head")),w(c,Kn)}else if(be)for(Ee=0;Ee<be.length;Ee++)w(c,be[Ee]);var ze=te.charsetChunks;for(Ee=0;Ee<ze.length;Ee++)w(c,ze[Ee]);ze.length=0,te.preconnects.forEach(ut,c),te.preconnects.clear();var Ue=te.viewportChunks;for(Ee=0;Ee<Ue.length;Ee++)w(c,Ue[Ee]);Ue.length=0,te.fontPreloads.forEach(ut,c),te.fontPreloads.clear(),te.highImagePreloads.forEach(ut,c),te.highImagePreloads.clear(),Qt=te,te.styles.forEach(ht,c),Qt=null;var He=te.importMapChunks;for(Ee=0;Ee<He.length;Ee++)w(c,He[Ee]);He.length=0,te.bootstrapScripts.forEach(ut,c),te.scripts.forEach(ut,c),te.scripts.clear(),te.bulkPreloads.forEach(ut,c),te.bulkPreloads.clear(),Me||be||(U.instructions|=hn);var De=te.hoistableChunks;for(Ee=0;Ee<De.length;Ee++)w(c,De[Ee]);for(U=De.length=0;U<A.length;U++){var kt=A[U];for(te=0;te<kt.length;te++)ia(a,c,kt[te],null)}var On=a.renderState.preamble,St=On.headChunks;(On.htmlChunks||St)&&w(c,$e("head"));var qt=On.bodyChunks;if(qt)for(A=0;A<qt.length;A++)w(c,qt[A]);ia(a,c,T,null),a.completedRootSegment=null;var rr=a.renderState;if(a.allPendingTasks!==0||a.clientRenderedBoundaries.length!==0||a.completedBoundaries.length!==0||a.trackedPostpones!==null&&(a.trackedPostpones.rootNodes.length!==0||a.trackedPostpones.rootSlots!==null)){var br=a.resumableState;if((br.instructions&Bt)===Jn){if(br.instructions|=Bt,w(c,rr.startInlineScript),(br.instructions&hn)===Jn){br.instructions|=hn;var vn="_"+br.idPrefix+"R_";w(c,tu),w(c,O(me(vn))),w(c,Kt)}w(c,Kn),w(c,uc),C(c,Ia)}}zr(c,rr)}var wt=a.renderState;T=0;var mr=wt.viewportChunks;for(T=0;T<mr.length;T++)w(c,mr[T]);mr.length=0,wt.preconnects.forEach(ut,c),wt.preconnects.clear(),wt.fontPreloads.forEach(ut,c),wt.fontPreloads.clear(),wt.highImagePreloads.forEach(ut,c),wt.highImagePreloads.clear(),wt.styles.forEach(Rr,c),wt.scripts.forEach(ut,c),wt.scripts.clear(),wt.bulkPreloads.forEach(ut,c),wt.bulkPreloads.clear();var hi=wt.hoistableChunks;for(T=0;T<hi.length;T++)w(c,hi[T]);hi.length=0;var An=a.clientRenderedBoundaries;for(b=0;b<An.length;b++){var Yn=An[b];wt=c;var Hi=a.resumableState,Jr=a.renderState,Ar=Yn.rootSegmentID,Vn=Yn.errorDigest,Tr=Yn.errorMessage,Wi=Yn.errorStack,ao=Yn.errorComponentStack;w(wt,Jr.startInlineScript),w(wt,Kn),(Hi.instructions&Sn)===Jn?(Hi.instructions|=Sn,w(wt,sr)):w(wt,_i),w(wt,Jr.boundaryPrefix),w(wt,O(Ar.toString(16))),w(wt,Ba),(Vn||Tr||Wi||ao)&&(w(wt,jn),w(wt,O(Do(Vn||"")))),(Tr||Wi||ao)&&(w(wt,jn),w(wt,O(Do(Tr||"")))),(Wi||ao)&&(w(wt,jn),w(wt,O(Do(Wi||"")))),ao&&(w(wt,jn),w(wt,O(Do(ao))));var Ir=C(wt,Hl);if(!Ir){a.destination=null,b++,An.splice(0,b);return}}An.splice(0,b);var $n=a.completedBoundaries;for(b=0;b<$n.length;b++)if(!qs(a,c,$n[b])){a.destination=null,b++,$n.splice(0,b);return}$n.splice(0,b),M(c),Ur=new Uint8Array(2048),Fr=0,Lr=!0;var gi=a.partialBoundaries;for(b=0;b<gi.length;b++){e:{An=a,Yn=c;var Ui=gi[b];ha=Ui.byteSize;var pi=Ui.completedSegments;for(Ir=0;Ir<pi.length;Ir++)if(!Hc(An,Yn,Ui,pi[Ir])){Ir++,pi.splice(0,Ir);var Ua=!1;break e}pi.splice(0,Ir);var Gi=Ui.row;Gi!==null&&Gi.together&&Ui.pendingTasks===1&&(Gi.pendingTasks===1?Za(An,Gi,Gi.hoistables):Gi.pendingTasks--),Ua=Cn(Yn,Ui.contentState,An.renderState)}if(!Ua){a.destination=null,b++,gi.splice(0,b);return}}gi.splice(0,b),Lr=!1;var yr=a.completedBoundaries;for(b=0;b<yr.length;b++)if(!qs(a,c,yr[b])){a.destination=null,b++,yr.splice(0,b);return}yr.splice(0,b)}}finally{Lr=!1,a.allPendingTasks===0&&a.clientRenderedBoundaries.length===0&&a.completedBoundaries.length===0?(a.flushScheduled=!1,b=a.resumableState,b.hasBody&&w(c,$e("body")),b.hasHtml&&w(c,$e("html")),M(c),a.abortableTasks.size!==0&&console.error("There was still abortable task at the root when we closed. This is a bug in React."),a.status=fi,c.close(),a.destination=null):M(c)}}function $i(a){a.flushScheduled=a.destination!==null,_l(function(){return qa(a)}),y(function(){a.status===10&&(a.status=11),a.trackedPostpones===null&&zc(a,a.pendingRootTasks===0)})}function Fi(a){a.flushScheduled===!1&&a.pingedTasks.length===0&&a.destination!==null&&(a.flushScheduled=!0,y(function(){var c=a.destination;c?qi(a,c):a.flushScheduled=!1}))}function eo(a,c){if(a.status===13)a.status=fi,H(c,a.fatalError);else if(a.status!==fi&&a.destination===null){a.destination=c;try{qi(a,c)}catch(b){c={},dr(a,b,c,null),na(a,b,c,null)}}}function _n(a,c){(a.status===11||a.status===10)&&(a.status=12);try{var b=a.abortableTasks;if(0<b.size){var T=c===void 0?Error("The render was aborted by the server without a reason."):typeof c=="object"&&c!==null&&typeof c.then=="function"?Error("The render was aborted by the server with a promise."):c;a.fatalError=T,b.forEach(function(A){var U=d,te=Jt.getCurrentStack;d=A,Jt.getCurrentStack=ta;try{Qs(A,a,T)}finally{d=U,Jt.getCurrentStack=te}}),b.clear()}a.destination!==null&&qi(a,a.destination)}catch(A){c={},dr(a,A,c,null),na(a,A,c,null)}}function to(a,c,b){if(c===null)b.rootNodes.push(a);else{var T=b.workingMap,A=T.get(c);A===void 0&&(A=[c[1],c[2],[],null],T.set(c,A),to(A,c[0],b)),A[2].push(a)}}function zn(a){var c=a.trackedPostpones;if(c===null||c.rootNodes.length===0&&c.rootSlots===null)return a.trackedPostpones=null;if(a.completedRootSegment===null||a.completedRootSegment.status!==Ut&&a.completedPreambleSegments!==null){var b=a.nextSegmentId,T=c.rootSlots,A=a.resumableState;A.bootstrapScriptContent=void 0,A.bootstrapScripts=void 0,A.bootstrapModules=void 0}else{b=0,T=-1,A=a.resumableState;var U=a.renderState;A.nextFormID=0,A.hasBody=!1,A.hasHtml=!1,A.unknownResources={font:U.resets.font},A.dnsResources=U.resets.dns,A.connectResources=U.resets.connect,A.imageResources=U.resets.image,A.styleResources=U.resets.style,A.scriptResources={},A.moduleUnknownResources={},A.moduleScriptResources={},A.instructions=Jn}return{nextSegmentId:b,rootFormatContext:a.rootFormatContext,progressiveChunkSize:a.progressiveChunkSize,resumableState:a.resumableState,replayNodes:c.rootNodes,replaySlots:T}}function Uo(){var a=Wc.version;if(a!=="19.2.5")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
|
+
- react: `+(a+`
|
|
225
|
+
- react-dom: 19.2.5
|
|
226
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}var Wc=fe,Uc=Of,Gc=Symbol.for("react.transitional.element"),$s=Symbol.for("react.portal"),Pa=Symbol.for("react.fragment"),ec=Symbol.for("react.strict_mode"),tc=Symbol.for("react.profiler"),Ri=Symbol.for("react.consumer"),Hn=Symbol.for("react.context"),dn=Symbol.for("react.forward_ref"),$a=Symbol.for("react.suspense"),kl=Symbol.for("react.suspense_list"),Rl=Symbol.for("react.memo"),el=Symbol.for("react.lazy"),Fu=Symbol.for("react.scope"),Nr=Symbol.for("react.activity"),jd=Symbol.for("react.legacy_hidden"),Go=Symbol.for("react.memo_cache_sentinel"),gd=Symbol.for("react.view_transition"),Du=Symbol.iterator,oa=Array.isArray,nc=new WeakMap,Wr=new WeakMap,Oa=Symbol.for("react.client.reference"),pd=new MessageChannel,Ml=[];pd.port1.onmessage=function(){var a=Ml.shift();a&&a()};var Yc=Promise,_l=typeof queueMicrotask=="function"?queueMicrotask:function(a){Yc.resolve(null).then(a).catch(S)},Ur=null,Fr=0,tl=new TextEncoder,Fn=Object.assign,Tn=Object.prototype.hasOwnProperty,Pl=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ys={},Vc={},ws=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Lu=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),qd={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Zn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Aa={},vd=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),h=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),v=!1,E={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},_={},z=/^on./,j=/^on[^A-Z]/,re=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Re=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ge=/^(?:webkit|moz|o)[A-Z]/,Te=/^-ms-/,Ne=/-(.)/g,Ae=/;\s*$/,je={},yt={},Zt=!1,Ot=!1,Et=/["'&<>]/,Lt=/([A-Z])/g,_t=/^ms-/,Wn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Jt=Wc.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ln=Uc.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,yn=Object.freeze({pending:!1,data:null,method:null,action:null}),Ht=ln.d;ln.d={f:Ht.f,r:Ht.r,D:function(a){var c=Mn||null;if(c){var b=c.resumableState,T=c.renderState;if(typeof a=="string"&&a){if(!b.dnsResources.hasOwnProperty(a)){b.dnsResources[a]=gn,b=T.headers;var A,U;(U=b&&0<b.remainingCapacity)&&(U=(A="<"+Ji(a)+">; rel=dns-prefetch",0<=(b.remainingCapacity-=A.length+2))),U?(T.resets.dns[a]=gn,b.preconnects&&(b.preconnects+=", "),b.preconnects+=A):(A=[],Dt(A,{href:a,rel:"dns-prefetch"}),T.preconnects.add(A))}Fi(c)}}else Ht.D(a)},C:function(a,c){var b=Mn||null;if(b){var T=b.resumableState,A=b.renderState;if(typeof a=="string"&&a){var U=c==="use-credentials"?"credentials":typeof c=="string"?"anonymous":"default";if(!T.connectResources[U].hasOwnProperty(a)){T.connectResources[U][a]=gn,T=A.headers;var te,de;if(de=T&&0<T.remainingCapacity){if(de="<"+Ji(a)+">; rel=preconnect",typeof c=="string"){var Me=ei(c,"crossOrigin");de+='; crossorigin="'+Me+'"'}de=(te=de,0<=(T.remainingCapacity-=te.length+2))}de?(A.resets.connect[U][a]=gn,T.preconnects&&(T.preconnects+=", "),T.preconnects+=te):(U=[],Dt(U,{rel:"preconnect",href:a,crossOrigin:c}),A.preconnects.add(U))}Fi(b)}}else Ht.C(a,c)},L:function(a,c,b){var T=Mn||null;if(T){var A=T.resumableState,U=T.renderState;if(c&&a){switch(c){case"image":if(b)var te=b.imageSrcSet,de=b.imageSizes,Me=b.fetchPriority;var be=te?te+`
|
|
227
|
+
`+(de||""):a;if(A.imageResources.hasOwnProperty(be))return;A.imageResources[be]=Pr,A=U.headers;var Ee;A&&0<A.remainingCapacity&&typeof te!="string"&&Me==="high"&&(Ee=po(a,c,b),0<=(A.remainingCapacity-=Ee.length+2))?(U.resets.image[be]=Pr,A.highImagePreloads&&(A.highImagePreloads+=", "),A.highImagePreloads+=Ee):(A=[],Dt(A,Fn({rel:"preload",href:te?void 0:a,as:c},b)),Me==="high"?U.highImagePreloads.add(A):(U.bulkPreloads.add(A),U.preloads.images.set(be,A)));break;case"style":if(A.styleResources.hasOwnProperty(a))return;te=[],Dt(te,Fn({rel:"preload",href:a,as:c},b)),A.styleResources[a]=!b||typeof b.crossOrigin!="string"&&typeof b.integrity!="string"?Pr:[b.crossOrigin,b.integrity],U.preloads.stylesheets.set(a,te),U.bulkPreloads.add(te);break;case"script":if(A.scriptResources.hasOwnProperty(a))return;te=[],U.preloads.scripts.set(a,te),U.bulkPreloads.add(te),Dt(te,Fn({rel:"preload",href:a,as:c},b)),A.scriptResources[a]=!b||typeof b.crossOrigin!="string"&&typeof b.integrity!="string"?Pr:[b.crossOrigin,b.integrity];break;default:if(A.unknownResources.hasOwnProperty(c)){if(te=A.unknownResources[c],te.hasOwnProperty(a))return}else te={},A.unknownResources[c]=te;if(te[a]=Pr,(A=U.headers)&&0<A.remainingCapacity&&c==="font"&&(be=po(a,c,b),0<=(A.remainingCapacity-=be.length+2)))U.resets.font[a]=Pr,A.fontPreloads&&(A.fontPreloads+=", "),A.fontPreloads+=be;else switch(A=[],a=Fn({rel:"preload",href:a,as:c},b),Dt(A,a),c){case"font":U.fontPreloads.add(A);break;default:U.bulkPreloads.add(A)}}Fi(T)}}else Ht.L(a,c,b)},m:function(a,c){var b=Mn||null;if(b){var T=b.resumableState,A=b.renderState;if(a){var U=c&&typeof c.as=="string"?c.as:"script";switch(U){case"script":if(T.moduleScriptResources.hasOwnProperty(a))return;U=[],T.moduleScriptResources[a]=!c||typeof c.crossOrigin!="string"&&typeof c.integrity!="string"?Pr:[c.crossOrigin,c.integrity],A.preloads.moduleScripts.set(a,U);break;default:if(T.moduleUnknownResources.hasOwnProperty(U)){var te=T.unknownResources[U];if(te.hasOwnProperty(a))return}else te={},T.moduleUnknownResources[U]=te;U=[],te[a]=Pr}Dt(U,Fn({rel:"modulepreload",href:a},c)),A.bulkPreloads.add(U),Fi(b)}}else Ht.m(a,c)},X:function(a,c){var b=Mn||null;if(b){var T=b.resumableState,A=b.renderState;if(a){var U=T.scriptResources.hasOwnProperty(a)?T.scriptResources[a]:void 0;U!==gn&&(T.scriptResources[a]=gn,c=Fn({src:a,async:!0},c),U&&(U.length===2&&ur(c,U),a=A.preloads.scripts.get(a))&&(a.length=0),a=[],A.scripts.add(a),tr(a,c),Fi(b))}}else Ht.X(a,c)},S:function(a,c,b){var T=Mn||null;if(T){var A=T.resumableState,U=T.renderState;if(a){c=c||"default";var te=U.styles.get(c),de=A.styleResources.hasOwnProperty(a)?A.styleResources[a]:void 0;de!==gn&&(A.styleResources[a]=gn,te||(te={precedence:O(me(c)),rules:[],hrefs:[],sheets:new Map},U.styles.set(c,te)),c={state:dl,props:Fn({rel:"stylesheet",href:a,"data-precedence":c},b)},de&&(de.length===2&&ur(c.props,de),(U=U.preloads.stylesheets.get(a))&&0<U.length?U.length=0:c.state=iu),te.sheets.set(a,c),Fi(T))}}else Ht.S(a,c,b)},M:function(a,c){var b=Mn||null;if(b){var T=b.resumableState,A=b.renderState;if(a){var U=T.moduleScriptResources.hasOwnProperty(a)?T.moduleScriptResources[a]:void 0;U!==gn&&(T.moduleScriptResources[a]=gn,c=Fn({src:a,type:"module",async:!0},c),U&&(U.length===2&&ur(c,U),a=A.preloads.moduleScripts.get(a))&&(a.length=0),a=[],A.scripts.add(a),tr(a,c),Fi(b))}}else Ht.M(a,c)}};var Jn=0,fn=1,ti=2,Sn=4,cn=8,hn=32,Bt=64,gn=null,Pr=[];Object.freeze(Pr);var Qt=null;k('"></template>');var nl=k("<script"),Ia=k("<\/script>"),ni=k('<script src="'),vo=k('<script type="module" src="'),bo=k(' nonce="'),mo=k(' integrity="'),aa=k(' crossorigin="'),Na=k(' async=""><\/script>'),Cr=k("<style"),Ol=/(<\/|<)(s)(cript)/gi,Al=k('<script type="importmap">'),rc=k("<\/script>"),Xc={},xs=0,rl=1,ri=2,ic=3,ii=4,no=5,Fa=6,oc=7,Da=8,Zc=9,gr=k("<!-- -->"),ac=new Map,il=k(' style="'),Ss=k(":"),Il=k(";"),lr=k(" "),ro=k('="'),Kt=k('"'),La=k('=""'),Es=k(me("javascript:throw new Error('React form unexpectedly submitted.')")),ol=k('<input type="hidden"'),Kn=k(">"),Mi=k("/>"),al=!1,Nl=!1,yo=!1,Gr=!1,Cs=!1,oi=!1,Bu=!1,Fl=!1,lc=!1,Jc=!1,Kc=!1,la=k(' selected=""'),Dl=k(`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`),Ll=k("<!--F!-->"),ai=k("<!--F-->"),sc=/(<\/|<)(s)(tyle)/gi,cc=k("<!--head-->"),zu=k("<!--body-->"),Hu=k("<!--html-->"),Qc=k(`
|
|
228
|
+
`),Wu=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Uu=new Map,pr=k("<!DOCTYPE html>"),jc=new Map,uc=k("requestAnimationFrame(function(){$RT=performance.now()});"),dc=k('<template id="'),qc=k('"></template>'),Gu=k("<!--&-->"),$c=k("<!--/&-->"),eu=k("<!--$-->"),ll=k('<!--$?--><template id="'),wo=k('"></template>'),bd=k("<!--$!-->"),Bl=k("<!--/$-->"),fc=k("<template"),Yo=k('"'),Ts=k(' data-dgst="'),sl=k(' data-msg="'),hc=k(' data-stck="'),cl=k(' data-cstck="'),md=k("></template>"),yd=k('<div hidden id="'),Vo=k('">'),ks=k("</div>"),io=k('<svg aria-hidden="true" style="display:none" id="'),ul=k('">'),zl=k("</svg>"),xo=k('<math aria-hidden="true" style="display:none" id="'),Yu=k('">'),wd=k("</math>"),Rs=k('<table hidden id="'),f=k('">'),g=k("</table>"),x=k('<table hidden><tbody id="'),P=k('">'),F=k("</tbody></table>"),Z=k('<table hidden><tr id="'),q=k('">'),ye=k("</tr></table>"),ce=k('<table hidden><colgroup id="'),we=k('">'),ke=k("</colgroup></table>"),_e=k('$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),nt=k('$RS("'),et=k('","'),rn=k('")<\/script>');k('<template data-rsi="" data-sid="'),k('" data-pid="');var At=k(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
|
|
229
|
+
$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);O(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),
|
|
230
|
+
H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(B){var z=
|
|
231
|
+
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
|
|
232
|
+
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var on=k('$RC("'),Qn=k(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
233
|
+
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
234
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),Dn=k('$RR("'),Yr=k('","'),Di=k('",'),So=k('"'),It=k(")<\/script>");k('<template data-rci="" data-bid="'),k('<template data-rri="" data-bid="'),k('" data-sid="'),k('" data-sty="');var li=k('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),sr=k('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),_i=k('$RX("'),Ba=k('"'),jn=k(","),Hl=k(")<\/script>");k('<template data-rxi="" data-bid="'),k('" data-dgst="'),k('" data-msg="'),k('" data-stck="'),k('" data-cstck="');var Eo=/[<\u2028\u2029]/g,si=/[&><\u2028\u2029]/g,Xo=k(' media="not all" data-precedence="'),ci=k('" data-href="'),Wl=k('">'),Ms=k("</style>"),Pi=!1,_s=!0,ui=[],Ul=k(' data-precedence="'),Vu=k('" data-href="'),Un=k(" "),Ps=k('">'),Zo=k("</style>");k('<link rel="expect" href="#'),k('" blocking="render"/>');var tu=k(' id="'),Gl=k("["),nu=k(",["),ru=k(","),Os=k("]"),dl=0,iu=1,sa=2,Yl=3,Vl=/[<>\r\n]/g,xd=/["';,\r\n]/g,Co=Function.prototype.bind,Sd=Symbol.for("react.client.reference"),oo={};Object.freeze(oo);var fl={},za=null,ou={},au={},lu=new Set,Xl=new Set,Ed=new Set,Xu=new Set,As=new Set,Cd=new Set,su=new Set,$d=new Set,Zu=new Set,ef={enqueueSetState:function(a,c,b){var T=a._reactInternals;T.queue===null?xt(a,"setState"):(T.queue.push(c),b!=null&&Je(b))},enqueueReplaceState:function(a,c,b){a=a._reactInternals,a.replace=!0,a.queue=[c],b!=null&&Je(b)},enqueueForceUpdate:function(a,c){a._reactInternals.queue===null?xt(a,"forceUpdate"):c!=null&&Je(c)}},cu={id:1,overflow:""},Is=Math.clz32?Math.clz32:Qi,Sf=Math.log,Ef=Math.LN2,ca=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Td=null,Cf=typeof Object.is=="function"?Object.is:Fc,Dr=null,Ha=null,di=null,hl=null,To=null,En=null,Li=!1,Wa=!1,vr=0,gc=0,uu=-1,kd=0,Ns=null,Zl=null,pc=0,Jo=!1,Jl,vc={readContext:dd,use:function(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Sr(a);if(a.$$typeof===Hn)return dd(a)}throw Error("An unsupported type was passed to use(): "+String(a))},useContext:function(a){return Jl="useContext",Bn(),a._currentValue},useMemo:us,useReducer:cs,useRef:function(a){Dr=Bn(),En=ss();var c=En.memoizedState;return c===null?(a={current:a},Object.seal(a),En.memoizedState=a):c},useState:function(a){return Jl="useState",cs(fd,a)},useInsertionEffect:Hr,useLayoutEffect:Hr,useCallback:function(a,c){return us(function(){return a},c)},useImperativeHandle:Hr,useEffect:Hr,useDebugValue:Hr,useDeferredValue:function(a,c){return Bn(),c!==void 0?c:a},useTransition:function(){return Bn(),[!1,Lc]},useId:function(){var a=Ha.treeContext,c=a.overflow;a=a.id,a=(a&~(1<<32-Is(a)-1)).toString(32)+c;var b=s;if(b===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return c=vr++,a="_"+b.idPrefix+"R_"+a,0<c&&(a+="H"+c.toString(32)),a+"_"},useSyncExternalStore:function(a,c,b){if(b===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return b()},useOptimistic:function(a){return Bn(),[a,Ys]},useActionState:Vs,useFormState:Vs,useHostTransitionStatus:function(){return Bn(),yn},useMemoCache:function(a){for(var c=Array(a),b=0;b<a;b++)c[b]=Go;return c},useCacheRefresh:function(){return ds},useEffectEvent:function(){return $o}},s=null,d=null,m={getCacheForType:function(){throw Error("Not implemented.")},cacheSignal:function(){throw Error("Not implemented.")},getOwner:function(){return d===null?null:d.componentStack}},R=0,N,X,le,pe,Ie,Se,Pe;Xs.__reactDisabledLog=!0;var Qe,ot,qe=!1,Be=new(typeof WeakMap=="function"?WeakMap:Map),jt={react_stack_bottom_frame:function(a,c,b){return a(c,b)}},In=jt.react_stack_bottom_frame.bind(jt),Mt={react_stack_bottom_frame:function(a){return a.render()}},pn=Mt.react_stack_bottom_frame.bind(Mt),Vr={react_stack_bottom_frame:function(a){var c=a._init;return c(a._payload)}},Xr=Vr.react_stack_bottom_frame.bind(Vr),wn=0;if(typeof performance=="object"&&typeof performance.now=="function")var Or=performance,ua=function(){return Or.now()};else{var Oi=Date;ua=function(){return Oi.now()}}var pt=4,kn=0,Rn=1,Pn=2,qn=3,sn=4,Ut=5,fi=14,Mn=null,Zr={},Gn={},Bi={},Fs={},zi=!1,da=!1,fa=!1,ha=0,Lr=!1;Uo(),Uo(),sf.prerender=function(a,c){return new Promise(function(b,T){var A=c?c.onHeaders:void 0,U;A&&(U=function(Ee){A(new Headers(Ee))});var te=xe(c?c.identifierPrefix:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.bootstrapScriptContent:void 0,c?c.bootstrapScripts:void 0,c?c.bootstrapModules:void 0),de=Ti(a,te,oe(te,void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.importMap:void 0,U,c?c.maxHeadersLength:void 0),Ce(c?c.namespaceURI:void 0),c?c.progressiveChunkSize:void 0,c?c.onError:void 0,function(){var Ee=new ReadableStream({type:"bytes",pull:function(ze){eo(de,ze)},cancel:function(ze){de.destination=null,_n(de,ze)}},{highWaterMark:0});Ee={postponed:zn(de),prelude:Ee},b(Ee)},void 0,void 0,T,c?c.onPostpone:void 0);if(c&&c.signal){var Me=c.signal;if(Me.aborted)_n(de,Me.reason);else{var be=function(){_n(de,Me.reason),Me.removeEventListener("abort",be)};Me.addEventListener("abort",be)}}$i(de)})},sf.renderToReadableStream=function(a,c){return new Promise(function(b,T){var A,U,te=new Promise(function(He,De){U=He,A=De}),de=c?c.onHeaders:void 0,Me;de&&(Me=function(He){de(new Headers(He))});var be=xe(c?c.identifierPrefix:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.bootstrapScriptContent:void 0,c?c.bootstrapScripts:void 0,c?c.bootstrapModules:void 0),Ee=fs(a,be,oe(be,c?c.nonce:void 0,c?c.unstable_externalRuntimeSrc:void 0,c?c.importMap:void 0,Me,c?c.maxHeadersLength:void 0),Ce(c?c.namespaceURI:void 0),c?c.progressiveChunkSize:void 0,c?c.onError:void 0,U,function(){var He=new ReadableStream({type:"bytes",pull:function(De){eo(Ee,De)},cancel:function(De){Ee.destination=null,_n(Ee,De)}},{highWaterMark:0});He.allReady=te,b(He)},function(He){te.catch(function(){}),T(He)},A,c?c.onPostpone:void 0,c?c.formState:void 0);if(c&&c.signal){var ze=c.signal;if(ze.aborted)_n(Ee,ze.reason);else{var Ue=function(){_n(Ee,ze.reason),ze.removeEventListener("abort",Ue)};ze.addEventListener("abort",Ue)}}$i(Ee)})},sf.resume=function(a,c,b){return new Promise(function(T,A){var U,te,de=new Promise(function(ze,Ue){te=ze,U=Ue}),Me=Mr(a,c,oe(c.resumableState,b?b.nonce:void 0,void 0,void 0,void 0,void 0),b?b.onError:void 0,te,function(){var ze=new ReadableStream({type:"bytes",pull:function(Ue){eo(Me,Ue)},cancel:function(Ue){Me.destination=null,_n(Me,Ue)}},{highWaterMark:0});ze.allReady=de,T(ze)},function(ze){de.catch(function(){}),A(ze)},U,b?b.onPostpone:void 0);if(b&&b.signal){var be=b.signal;if(be.aborted)_n(Me,be.reason);else{var Ee=function(){_n(Me,be.reason),be.removeEventListener("abort",Ee)};be.addEventListener("abort",Ee)}}$i(Me)})},sf.resumeAndPrerender=function(a,c,b){return new Promise(function(T,A){var U=Nn(a,c,oe(c.resumableState,void 0,void 0,void 0,void 0,void 0),b?b.onError:void 0,function(){var Me=new ReadableStream({type:"bytes",pull:function(be){eo(U,be)},cancel:function(be){U.destination=null,_n(U,be)}},{highWaterMark:0});Me={postponed:zn(U),prelude:Me},T(Me)},void 0,void 0,A,b?b.onPostpone:void 0);if(b&&b.signal){var te=b.signal;if(te.aborted)_n(U,te.reason);else{var de=function(){_n(U,te.reason),te.removeEventListener("abort",de)};te.addEventListener("abort",de)}}$i(U)})},sf.version="19.2.5"}()),sf}var ph,Kh;process.env.NODE_ENV==="production"?(ph=bS(),Kh=mS()):(ph=yS(),Kh=wS()),ph.version,ph.renderToString;var xS=ph.renderToStaticMarkup;Kh.renderToReadableStream,Kh.resume;const SS="opacity-0 pointer-events-none",ES="transition-all duration-300",Eb="backdrop-blur-xl bg-opacity-95",CS="bg-(--card)/95 border border-(--border) backdrop-blur-xl",TS={light:"bg-(--card)",dark:"bg-(--background)",glass:`${Eb} bg-(--background)/5`,transparent:"bg-transparent"},kS="bg-[radial-gradient(120%_120%_at_0%_0%,color-mix(in_oklab,var(--chart-1)_10%,transparent),transparent_55%),linear-gradient(180deg,color-mix(in_oklab,var(--card)_93%,black_7%),var(--card))]",RS=["rounded-none","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","rounded-full","rounded-(--radius)"],MS=["chart-1","chart-2","chart-3","chart-4","chart-5"],_S={"chart-1":"var(--chart-1)","chart-2":"var(--chart-2)","chart-3":"var(--chart-3)","chart-4":"var(--chart-4)","chart-5":"var(--chart-5)"},PS="div",OS=28,Cb=0,AS=.14,IS=e=>{const t=e.trim();return t?t.startsWith("url(")?t:`url("${t}")`:""},NS=(e,t=0,n=Cb)=>{var I;if(!e)return"";const r=fe.isValidElement(e)?e:fe.createElement(e,{width:24,height:24,strokeWidth:2}),i=xS(r).trim();if(!i)return"";const o=i.match(/viewBox="([^"]+)"/),l=((I=o==null?void 0:o[1])==null?void 0:I.split(/\s+/).map(Number).filter(Number.isFinite))||[],[,,u=24,p=24]=l,y=i.match(/^<svg([^>]*)>/),w=((y==null?void 0:y[1])||"").replace(/\s(?:xmlns|width|height|viewBox|class)="[^"]*"/g,""),C=i.replace(/^<svg[^>]*>/,"").replace(/<\/svg>$/,""),M=Number.isFinite(n)?Math.max(0,n):0,O=u+M,k=p+M,W=M/2,H=[`translate(${W} ${W})`];t&&H.push(`rotate(${t} ${u/2} ${p/2})`);const B=`<svg xmlns="http://www.w3.org/2000/svg" width="${O}" height="${k}" viewBox="0 0 ${O} ${k}"${w}><g transform="${H.join(" ")}">${C}</g></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(B)}")`},FS=e=>typeof e=="number"?`${e}px`:e,cf=({as:e,type:t="dark",className:n,style:r,children:i,isColored:o,isGradientEnabled:l=!1,isBorderDisabled:u=!1,isPaddingDisabled:p=!1,radiusClassName:y="rounded-(--radius)",isRoundedCornersDisabled:S=!1,isLoading:w=!1,patternIconComponent:C,patternIconFile:M="",patternColor:O,patternAngle:k=0,patternSize:W=OS,patternGap:H=Cb,patternOpacity:B=AS,isPatternFixed:I=!1,...Y})=>{const K=e||PS,G=C?NS(C,k,H):IS(M),ne=!!G,$=!!(k&&!C),ie=O?_S[O]:void 0,se=!!ie,ue=Math.min(Math.max(B,0),1),he=FS(W),ve=ne?{...se?{backgroundColor:ie,WebkitMaskImage:G,maskImage:G,WebkitMaskPosition:"0 0",maskPosition:"0 0",WebkitMaskRepeat:"repeat",maskRepeat:"repeat",WebkitMaskAttachment:I?"fixed":void 0,maskAttachment:I?"fixed":void 0,WebkitMaskSize:`${he} ${he}`,maskSize:`${he} ${he}`}:{backgroundImage:G,backgroundPosition:"0 0",backgroundRepeat:"repeat",backgroundAttachment:I?"fixed":void 0,backgroundSize:`${he} ${he}`},borderRadius:"inherit",opacity:ue,transform:$?`rotate(${k}deg)`:void 0,transformOrigin:"center",...$?{inset:"-50%",width:"200%",height:"200%"}:{inset:0}}:void 0,ae=S?"rounded-none":y,me=t==="transparent"&&!o,V=p?"p-0":"px-6 py-4",J=o?"paper--colored bg-(--card) transition-colors":TS[t],oe=o?"border-(--chart-1)":"border-(--border)",xe=u||me?"border-0":Nt.clsx("border",oe);return D.jsxs(K,{"aria-busy":w||void 0,className:Nt.clsx(xe,V,ae,(w||ne)&&"relative",(w||ne&&$)&&"overflow-hidden",J,l&&kS,n),style:r,...Y,children:[ne?D.jsx("div",{"aria-hidden":"true",className:Nt.clsx("pointer-events-none",I?"fixed inset-0":"absolute"),style:ve}):null,i,w?D.jsx("div",{"aria-hidden":"true",className:Nt.clsx("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]})};function Tb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Cc(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Tb(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Tb(e[i],null)}}}}function Qr(...e){return L.useCallback(Cc(...e),e)}var DS=Symbol.for("react.lazy"),Qh=L[" use ".trim().toString()];function LS(e){return typeof e=="object"&&e!==null&&"then"in e}function kb(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===DS&&"_payload"in e&&LS(e._payload)}function Rb(e){const t=zS(e),n=L.forwardRef((r,i)=>{let{children:o,...l}=r;kb(o)&&typeof Qh=="function"&&(o=Qh(o._payload));const u=L.Children.toArray(o),p=u.find(WS);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var BS=Rb("Slot");function zS(e){const t=L.forwardRef((n,r)=>{let{children:i,...o}=n;if(kb(i)&&typeof Qh=="function"&&(i=Qh(i._payload)),L.isValidElement(i)){const l=GS(i),u=US(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var HS=Symbol("radix.slottable");function WS(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HS}function US(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function GS(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}/**
|
|
235
|
+
* @license lucide-react v0.546.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const YS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),VS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Mb=e=>{const t=VS(e);return t.charAt(0).toUpperCase()+t.slice(1)},_b=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),XS=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
240
|
+
* @license lucide-react v0.546.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/var ZS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
23
245
|
* @license lucide-react v0.546.0 - ISC
|
|
24
246
|
*
|
|
25
247
|
* This source code is licensed under the ISC license.
|
|
26
248
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/const
|
|
249
|
+
*/const JS=fe.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...u},p)=>fe.createElement("svg",{ref:p,...ZS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:_b("lucide",i),...!o&&!XS(u)&&{"aria-hidden":"true"},...u},[...l.map(([y,S])=>fe.createElement(y,S)),...Array.isArray(o)?o:[o]]));/**
|
|
28
250
|
* @license lucide-react v0.546.0 - ISC
|
|
29
251
|
*
|
|
30
252
|
* This source code is licensed under the ISC license.
|
|
31
253
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/
|
|
254
|
+
*/const nd=(e,t)=>{const n=fe.forwardRef(({className:r,...i},o)=>fe.createElement(JS,{ref:o,iconNode:t,className:_b(`lucide-${YS(Mb(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Mb(e),n};/**
|
|
33
255
|
* @license lucide-react v0.546.0 - ISC
|
|
34
256
|
*
|
|
35
257
|
* This source code is licensed under the ISC license.
|
|
36
258
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/const
|
|
259
|
+
*/const KS=nd("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
|
|
38
260
|
* @license lucide-react v0.546.0 - ISC
|
|
39
261
|
*
|
|
40
262
|
* This source code is licensed under the ISC license.
|
|
41
263
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/const
|
|
264
|
+
*/const Pb=nd("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
43
265
|
* @license lucide-react v0.546.0 - ISC
|
|
44
266
|
*
|
|
45
267
|
* This source code is licensed under the ISC license.
|
|
46
268
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/const
|
|
269
|
+
*/const vh=nd("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
48
270
|
* @license lucide-react v0.546.0 - ISC
|
|
49
271
|
*
|
|
50
272
|
* This source code is licensed under the ISC license.
|
|
51
273
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const
|
|
274
|
+
*/const ap=nd("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
53
275
|
* @license lucide-react v0.546.0 - ISC
|
|
54
276
|
*
|
|
55
277
|
* This source code is licensed under the ISC license.
|
|
56
278
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/const
|
|
279
|
+
*/const jh=nd("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
58
280
|
* @license lucide-react v0.546.0 - ISC
|
|
59
281
|
*
|
|
60
282
|
* This source code is licensed under the ISC license.
|
|
61
283
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/const
|
|
284
|
+
*/const QS=nd("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
63
285
|
* @license lucide-react v0.546.0 - ISC
|
|
64
286
|
*
|
|
65
287
|
* This source code is licensed under the ISC license.
|
|
66
288
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const
|
|
289
|
+
*/const jS=nd("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
68
290
|
* @license lucide-react v0.546.0 - ISC
|
|
69
291
|
*
|
|
70
292
|
* This source code is licensed under the ISC license.
|
|
71
293
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/const
|
|
294
|
+
*/const lp=nd("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
73
295
|
* @license lucide-react v0.546.0 - ISC
|
|
74
296
|
*
|
|
75
297
|
* This source code is licensed under the ISC license.
|
|
76
298
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const fl=st("pipette",[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]);function fo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fo(e))&&(r&&(r+=" "),r+=t);return r}const ml=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},hl=(e,t)=>({classGroupId:e,validator:t}),po=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Gt="-",mo=[],gl="arbitrary..",vl=e=>{const t=yl(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return bl(i);const a=i.split(Gt),l=a[0]===""&&a.length>1?1:0;return ho(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=r[i],c=n[i];return l?c?ml(c,l):l:c||mo}return n[i]||mo}}},ho=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const c=ho(e,t+1,s);if(c)return c}const i=n.validators;if(i===null)return;const a=t===0?e.join(Gt):e.slice(t).join(Gt),l=i.length;for(let c=0;c<l;c++){const d=i[c];if(d.validator(a))return d.classGroupId}},bl=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?gl+r:void 0})(),yl=e=>{const{theme:t,classGroups:n}=e;return wl(n,t)},wl=(e,t)=>{const n=po();for(const r in e){const o=e[r];jn(o,n,r,t)}return n},jn=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];xl(i,t,n,r)}},xl=(e,t,n,r)=>{if(typeof e=="string"){Sl(e,t,n);return}if(typeof e=="function"){El(e,t,n,r);return}Cl(e,t,n,r)},Sl=(e,t,n)=>{const r=e===""?t:go(t,e);r.classGroupId=n},El=(e,t,n,r)=>{if(Tl(e)){jn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(hl(n,e))},Cl=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,l]=o[i];jn(l,go(t,a),n,r)}},go=(e,t)=>{let n=e;const r=t.split(Gt),o=r.length;for(let s=0;s<o;s++){const i=r[s];let a=n.nextPart.get(i);a||(a=po(),n.nextPart.set(i,a)),n=a}return n},Tl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Pl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},Dn="!",vo=":",_l=[],bo=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),kl=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,l=0,c;const d=o.length;for(let m=0;m<d;m++){const x=o[m];if(i===0&&a===0){if(x===vo){s.push(o.slice(l,m)),l=m+1;continue}if(x==="/"){c=m;continue}}x==="["?i++:x==="]"?i--:x==="("?a++:x===")"&&a--}const u=s.length===0?o:o.slice(l);let p=u,v=!1;u.endsWith(Dn)?(p=u.slice(0,-1),v=!0):u.startsWith(Dn)&&(p=u.slice(1),v=!0);const g=c&&c>l?c-l:void 0;return bo(s,v,p,g)};if(t){const o=t+vo,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):bo(_l,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Ml=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",l=t.has(i);a||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},Al=e=>({cache:Pl(e.cacheSize),parseClassName:kl(e),sortModifiers:Ml(e),...vl(e)}),Nl=/\s+/,Il=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Nl);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:m}=n(d);if(u){l=d+(l.length>0?" "+l:l);continue}let x=!!m,y=r(x?g.substring(0,m):g);if(!y){if(!x){l=d+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=d+(l.length>0?" "+l:l);continue}x=!1}const b=p.length===0?"":p.length===1?p[0]:s(p).join(":"),h=v?b+Dn:b,S=h+y;if(i.indexOf(S)>-1)continue;i.push(S);const E=o(y,x);for(let T=0;T<E.length;++T){const M=E[T];i.push(h+M)}l=d+(l.length>0?" "+l:l)}return l},Ol=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=yo(n))&&(o&&(o+=" "),o+=r);return o},yo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=yo(e[r]))&&(n&&(n+=" "),n+=t);return n},Rl=(e,...t)=>{let n,r,o,s;const i=l=>{const c=t.reduce((d,u)=>u(d),e());return n=Al(c),r=n.cache.get,o=n.cache.set,s=a,a(l)},a=l=>{const c=r(l);if(c)return c;const d=Il(l,n);return o(l,d),d};return s=i,(...l)=>s(Ol(...l))},Ll=[],fe=e=>{const t=n=>n[e]||Ll;return t.isThemeGetter=!0,t},wo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jl=/^\d+\/\d+$/,Dl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$l=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Bl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pt=e=>jl.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),qe=e=>!!e&&Number.isInteger(Number(e)),$n=e=>e.endsWith("%")&&J(e.slice(0,-1)),Fe=e=>Dl.test(e),So=()=>!0,Vl=e=>$l.test(e)&&!zl.test(e),zn=()=>!1,Hl=e=>Bl.test(e),Wl=e=>Fl.test(e),Gl=e=>!U(e)&&!Y(e),Ul=e=>Xe(e,ko,zn),U=e=>wo.test(e),it=e=>Xe(e,Mo,Vl),Eo=e=>Xe(e,ec,J),Yl=e=>Xe(e,No,So),ql=e=>Xe(e,Ao,zn),Co=e=>Xe(e,Po,zn),Xl=e=>Xe(e,_o,Wl),Ut=e=>Xe(e,Io,Hl),Y=e=>xo.test(e),At=e=>at(e,Mo),Kl=e=>at(e,Ao),To=e=>at(e,Po),Zl=e=>at(e,ko),Jl=e=>at(e,_o),Yt=e=>at(e,Io,!0),Ql=e=>at(e,No,!0),Xe=(e,t,n)=>{const r=wo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},at=(e,t,n=!1)=>{const r=xo.exec(e);return r?r[1]?t(r[1]):n:!1},Po=e=>e==="position"||e==="percentage",_o=e=>e==="image"||e==="url",ko=e=>e==="length"||e==="size"||e==="bg-size",Mo=e=>e==="length",ec=e=>e==="number",Ao=e=>e==="family-name",No=e=>e==="number"||e==="weight",Io=e=>e==="shadow",tc=Rl(()=>{const e=fe("color"),t=fe("font"),n=fe("text"),r=fe("font-weight"),o=fe("tracking"),s=fe("leading"),i=fe("breakpoint"),a=fe("container"),l=fe("spacing"),c=fe("radius"),d=fe("shadow"),u=fe("inset-shadow"),p=fe("text-shadow"),v=fe("drop-shadow"),g=fe("blur"),m=fe("perspective"),x=fe("aspect"),y=fe("ease"),b=fe("animate"),h=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),Y,U],T=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],_=()=>[Y,U,l],A=()=>[pt,"full","auto",..._()],P=()=>[qe,"none","subgrid",Y,U],N=()=>["auto",{span:["full",qe,Y,U]},qe,Y,U],L=()=>[qe,"auto",Y,U],O=()=>["auto","min","max","fr",Y,U],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",..._()],k=()=>[pt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],C=()=>[e,Y,U],R=()=>[...S(),To,Co,{position:[Y,U]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",Zl,Ul,{size:[Y,U]}],G=()=>[$n,At,it],q=()=>["","none","full",c,Y,U],K=()=>["",J,At,it],se=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[J,$n,To,Co],Z=()=>["","none",g,Y,U],re=()=>["none",J,Y,U],Q=()=>["none",J,Y,U],te=()=>[J,Y,U],ee=()=>[pt,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fe],breakpoint:[Fe],color:[So],container:[Fe],"drop-shadow":[Fe],ease:["in","out","in-out"],font:[Gl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fe],shadow:[Fe],spacing:["px",J],text:[Fe],"text-shadow":[Fe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pt,U,Y,x]}],container:["container"],columns:[{columns:[J,U,Y,a]}],"break-after":[{"break-after":h()}],"break-before":[{"break-before":h()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[qe,"auto",Y,U]}],basis:[{basis:[pt,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,pt,"auto","initial","none",U]}],grow:[{grow:["",J,Y,U]}],shrink:[{shrink:["",J,Y,U]}],order:[{order:[qe,"first","last","none",Y,U]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:k()}],w:[{w:[a,"screen",...k()]}],"min-w":[{"min-w":[a,"screen","none",...k()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...k()]}],h:[{h:["screen","lh",...k()]}],"min-h":[{"min-h":["screen","lh","none",...k()]}],"max-h":[{"max-h":["screen","lh",...k()]}],"font-size":[{text:["base",n,At,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ql,Yl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$n,U]}],"font-family":[{font:[Kl,ql,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Y,U]}],"line-clamp":[{"line-clamp":[J,"none",Y,Eo]}],leading:[{leading:[s,..._()]}],"list-image":[{"list-image":["none",Y,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",Y,it]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[J,"auto",Y,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qe,Y,U],radial:["",Y,U],conic:[qe,Y,U]},Jl,Xl]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,Y,U]}],"outline-w":[{outline:["",J,At,it]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",d,Yt,Ut]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",u,Yt,Ut]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[J,it]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",p,Yt,Ut]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[J,Y,U]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Y,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,U]}],filter:[{filter:["","none",Y,U]}],blur:[{blur:Z()}],brightness:[{brightness:[J,Y,U]}],contrast:[{contrast:[J,Y,U]}],"drop-shadow":[{"drop-shadow":["","none",v,Yt,Ut]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",J,Y,U]}],"hue-rotate":[{"hue-rotate":[J,Y,U]}],invert:[{invert:["",J,Y,U]}],saturate:[{saturate:[J,Y,U]}],sepia:[{sepia:["",J,Y,U]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,U]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[J,Y,U]}],"backdrop-contrast":[{"backdrop-contrast":[J,Y,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,Y,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,Y,U]}],"backdrop-invert":[{"backdrop-invert":["",J,Y,U]}],"backdrop-opacity":[{"backdrop-opacity":[J,Y,U]}],"backdrop-saturate":[{"backdrop-saturate":[J,Y,U]}],"backdrop-sepia":[{"backdrop-sepia":["",J,Y,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",Y,U]}],ease:[{ease:["linear","initial",y,Y,U]}],delay:[{delay:[J,Y,U]}],animate:[{animate:["none",b,Y,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Y,U]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[Y,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,U]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[J,At,it,Eo]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function X(...e){return tc(pl(e))}function Oo({...e}){return w.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Ro({className:e,...t}){return w.jsx("ol",{"data-slot":"breadcrumb-list",className:X("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function qt({className:e,...t}){return w.jsx("li",{"data-slot":"breadcrumb-item",className:X("inline-flex items-center gap-1.5",e),...t})}function Xt({asChild:e,className:t,...n}){const r=e?Ja:"a";return w.jsx(r,{"data-slot":"breadcrumb-link",className:X("hover:text-foreground transition-colors",t),...n})}function Kt({className:e,...t}){return w.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:X("text-foreground font-normal",e),...t})}function Zt({children:e,className:t,...n}){return w.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:X("[&>svg]:size-3.5",t),...n,children:e??w.jsx(cl,{})})}function Lo({className:e,...t}){return w.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:X("flex size-9 items-center justify-center",e),...t,children:[w.jsx(ul,{className:"size-4"}),w.jsx("span",{className:"sr-only",children:"More"})]})}const jo=e=>e.props.children,nc=(e,t)=>f.cloneElement(e,void 0,t),rc=({items:e,maxItems:t,separator:n,listClassName:r,...o})=>{const s=f.useMemo(()=>{if(!Number.isFinite(t)||!t||t<2||e.length<=t)return e.map((c,d)=>({kind:"item",item:c,originalIndex:d}));const i=t-1,a=e.length-i,l=e.slice(a).map((c,d)=>({kind:"item",item:c,originalIndex:a+d}));return[{kind:"item",item:e[0],originalIndex:0},{kind:"ellipsis"},...l]},[e,t]);return w.jsx(Oo,{...o,children:w.jsx(Ro,{className:r,children:s.map((i,a)=>{const l=a===s.length-1;if(i.kind==="ellipsis")return w.jsxs(f.Fragment,{children:[w.jsx(qt,{children:w.jsx(Lo,{})}),l?null:w.jsx(Zt,{children:n})]},"ellipsis");const{item:c,originalIndex:d}=i;if(f.isValidElement(c)){const S=l,E=jo(c);return w.jsxs(f.Fragment,{children:[w.jsx(qt,{children:S?w.jsx(Kt,{children:E}):w.jsx(Xt,{asChild:!0,children:c})}),l?null:w.jsx(Zt,{children:n})]},c.key??d)}const{key:u,label:p,href:v,onClick:g,isCurrent:m,component:x}=c,y=m??l,b=x?jo(x):void 0,h=p??b;return w.jsxs(f.Fragment,{children:[w.jsx(qt,{children:y?w.jsx(Kt,{children:h}):x?w.jsx(Xt,{asChild:!0,children:p!==void 0?nc(x,p):x}):v?w.jsx(Xt,{href:v,onClick:g,children:p}):w.jsx(Kt,{children:p})}),l?null:w.jsx(Zt,{children:n})]},u??d)})})})},oc=["filled","outline","text"],sc=["primary","secondary","accent","muted","constructive","cautionary","destructive","chart-1","chart-2","chart-3","chart-4","chart-5"],ic={s:"h-8 gap-1.5 px-3 text-xs has-[>svg]:px-2.5",m:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",l:"h-10 px-6 text-sm has-[>svg]:px-4","icon-s":"size-8 p-0","icon-m":"size-9 p-0","icon-l":"size-10 p-0",default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 gap-1.5 px-3 text-xs has-[>svg]:px-2.5",lg:"h-10 px-6 text-sm has-[>svg]:px-4",icon:"size-9 p-0","icon-sm":"size-8 p-0","icon-lg":"size-10 p-0","icon-circle":"size-9 rounded-full p-0"},ac={s:"size-[14px]",m:"size-4",l:"size-[18px]","icon-s":"size-[14px]","icon-m":"size-4","icon-l":"size-[18px]",default:"size-4",sm:"size-[14px]",lg:"size-[18px]",icon:"size-4","icon-sm":"size-[14px]","icon-lg":"size-[18px]","icon-circle":"size-4"},lc={filled:{primary:"bg-primary text-primary-foreground hover:bg-primary/90 focus:ring-primary/60",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/85 focus:ring-secondary/60",accent:"bg-accent text-accent-foreground hover:bg-accent/85 focus:ring-accent/60",muted:"bg-muted text-foreground hover:bg-muted/85 focus:ring-ring/60",constructive:"bg-constructive text-constructive-foreground hover:bg-constructive/90 focus:ring-constructive/45",cautionary:"bg-cautionary text-cautionary-foreground hover:bg-cautionary/90 focus:ring-cautionary/45",destructive:"bg-destructive text-white hover:bg-destructive/90 focus:ring-destructive/45","chart-1":"bg-(--chart-1) text-black hover:brightness-110 focus:ring-(--chart-1)","chart-2":"bg-(--chart-2) text-black hover:brightness-110 focus:ring-(--chart-2)","chart-3":"bg-(--chart-3) text-white hover:brightness-110 focus:ring-(--chart-3)","chart-4":"bg-(--chart-4) text-black hover:brightness-110 focus:ring-(--chart-4)","chart-5":"bg-(--chart-5) text-black hover:brightness-110 focus:ring-(--chart-5)"},outline:{primary:"border border-primary bg-transparent text-primary hover:bg-primary/10 focus:ring-primary/60",secondary:"border border-secondary bg-transparent text-secondary hover:bg-secondary/30 focus:ring-secondary/60",accent:"border border-accent bg-transparent text-accent hover:bg-accent/30 focus:ring-accent/60",muted:"border border-muted bg-transparent text-muted hover:bg-muted/50 focus:ring-ring/60",constructive:"border border-constructive bg-transparent text-constructive hover:bg-constructive/10 focus:ring-constructive/45",cautionary:"border border-cautionary bg-transparent text-cautionary hover:bg-cautionary/20 focus:ring-cautionary/45",destructive:"border border-destructive bg-transparent text-destructive hover:bg-destructive/10 focus:ring-destructive/45","chart-1":"border border-(--chart-1) bg-transparent text-(--chart-1) hover:bg-(--chart-1)/10 focus:ring-(--chart-1)","chart-2":"border border-(--chart-2) bg-transparent text-(--chart-2) hover:bg-(--chart-2)/10 focus:ring-(--chart-2)","chart-3":"border border-(--chart-3) bg-transparent text-(--chart-3) hover:bg-(--chart-3)/10 focus:ring-(--chart-3)","chart-4":"border border-(--chart-4) bg-transparent text-(--chart-4) hover:bg-(--chart-4)/10 focus:ring-(--chart-4)","chart-5":"border border-(--chart-5) bg-transparent text-(--chart-5) hover:bg-(--chart-5)/10 focus:ring-(--chart-5)"},text:{primary:"bg-transparent text-primary hover:bg-primary/10 focus:ring-primary/60",secondary:"bg-transparent text-secondary hover:bg-secondary/30 focus:ring-secondary/60",accent:"bg-transparent text-accent hover:bg-accent/30 focus:ring-accent/60",muted:"bg-transparent text-muted hover:bg-muted/50 focus:ring-ring/60",constructive:"bg-transparent text-constructive hover:bg-constructive/10 focus:ring-constructive/45",cautionary:"bg-transparent text-cautionary hover:bg-cautionary/20 focus:ring-cautionary/45",destructive:"bg-transparent text-destructive hover:bg-destructive/10 focus:ring-destructive/45","chart-1":"bg-transparent text-(--chart-1) hover:bg-(--chart-1)/10 focus:ring-(--chart-1)","chart-2":"bg-transparent text-(--chart-2) hover:bg-(--chart-2)/10 focus:ring-(--chart-2)","chart-3":"bg-transparent text-(--chart-3) hover:bg-(--chart-3)/10 focus:ring-(--chart-3)","chart-4":"bg-transparent text-(--chart-4) hover:bg-(--chart-4)/10 focus:ring-(--chart-4)","chart-5":"bg-transparent text-(--chart-5) hover:bg-(--chart-5)/10 focus:ring-(--chart-5)"}},cc={primary:"var(--primary)",secondary:"var(--secondary)",accent:"var(--accent)",muted:"var(--muted)",constructive:"var(--constructive)",cautionary:"var(--cautionary)",destructive:"var(--destructive)","chart-1":"var(--chart-1)","chart-2":"var(--chart-2)","chart-3":"var(--chart-3)","chart-4":"var(--chart-4)","chart-5":"var(--chart-5)"},Do=({icon:e,leftIcon:t,rightIcon:n,onClick:r,animation:o="default",isLoading:s=!1,color:i="chart-1",variant:a="filled",size:l="m",className:c,children:d,style:u,...p})=>{const v=t??e,g=s||o==="loading",m=i==="chart-1"&&a==="filled"&&!g,x=!!v,y=!!n,b=g&&x,h=g&&y,S=g&&!b&&!h,T={"--button-glow-color":cc[i],...u},M=oe.clsx(ac[l],"animate-spin text-current/70");return w.jsxs("button",{onClick:r,"data-animation":g?"loading":o,"data-color":i,"data-variant":a,"aria-busy":g||void 0,style:T,className:oe.clsx("group relative inline-flex cursor-pointer items-center justify-center gap-2 overflow-hidden rounded-(--radius) font-medium","transition-all duration-300 hover:scale-[1.02] active:scale-[0.98]","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-(--card)","disabled:pointer-events-none disabled:opacity-50",ic[l],lc[a][i],o==="active"&&!g&&"pulse-ring",g&&"cursor-progress",c),...p,children:[m?w.jsxs(w.Fragment,{children:[w.jsx("div",{className:oe.clsx("pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100","bg-gradient-to-b from-transparent via-(--chart-1)/10 to-transparent"),style:{animation:"scan-button 2s linear infinite"}}),w.jsx("div",{className:oe.clsx("absolute top-0 left-0 h-2 w-2 border-t-2 border-l-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),w.jsx("div",{className:oe.clsx("absolute top-0 right-0 h-2 w-2 border-t-2 border-r-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),w.jsx("div",{className:oe.clsx("absolute bottom-0 left-0 h-2 w-2 border-b-2 border-l-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),w.jsx("div",{className:oe.clsx("absolute right-0 bottom-0 h-2 w-2 border-r-2 border-b-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),w.jsx("div",{className:oe.clsx("pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 group-hover:opacity-100","bg-gradient-to-r from-(--chart-1)/0 via-(--chart-1)/5 to-(--chart-1)/0"),style:{animation:"pulse-button 2s ease-in-out infinite"}})]}):null,g?w.jsx("div",{"aria-hidden":"true",className:oe.clsx("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null,x?w.jsx("span",{className:"relative z-10 inline-flex items-center justify-center",children:b?w.jsx(Ln,{"aria-hidden":"true",className:M}):v}):null,d?w.jsx("span",{className:oe.clsx("relative z-10",Ye("Action"),S&&"opacity-0"),children:d}):null,y?w.jsx("span",{className:"relative z-10 inline-flex items-center justify-center",children:h?w.jsx(Ln,{"aria-hidden":"true",className:M}):n}):null,S?w.jsxs("span",{className:"pointer-events-none absolute inset-0 z-20 inline-flex items-center justify-center",children:[w.jsx(Ln,{"aria-hidden":"true",className:M}),w.jsx("span",{className:"sr-only",children:"Loading"})]}):null]})},dc=(e,t)=>e&&t?"resize":e?"resize-x":t?"resize-y":"resize-none",$o="file:text-foreground selection:bg-primary selection:text-primary-foreground caret-foreground w-full min-w-0 field-transition required-indicator outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",zo={outline:"rounded-md border border-border bg-background shadow-xs",text:"rounded-none border-0 border-b border-border bg-transparent shadow-none"},Bn=Ye("Subheader"),uc=new Set(["Backspace","Delete","Tab","Enter","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function mt(e){if(e.isTextarea){const{className:P,isTextarea:N,variant:L="outline",typography:O="Subheader",isResizableX:D=!1,isResizableY:z=!1,textareaRowsCount:j=4,required:k=!1,isError:C=!1,label:R,errorText:H,"aria-invalid":I,...G}=e,q=Ye(O),K=Ht(O),se=C||I===!0||I==="true",ae=C?H:void 0;return w.jsxs("div",{className:"w-full space-y-2",children:[R?w.jsxs("label",{htmlFor:G.id,className:X("inline-flex items-center gap-1",Bn),children:[R,k?w.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]}):null,w.jsx("textarea",{"data-slot":"textarea",rows:j,"aria-invalid":se?!0:I,className:X($o,q,K,zo[L],"h-auto py-2 leading-5 overflow-y-auto",L==="outline"?"px-3 focus-ring-3":"px-0 focus:outline-none","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",dc(D,z),P),...G}),ae?w.jsx("p",{className:"text-sm text-destructive",children:ae}):null]})}const{className:t,isTextarea:n,variant:r="outline",typography:o="Subheader",isResizableX:s,isResizableY:i,textareaRowsCount:a,required:l=!1,isError:c=!1,label:d,errorText:u,"aria-invalid":p,type:v,...g}=e,{onWheel:m,onKeyDown:x,...y}=g,b=Ye(o),h=Ht(o),S=c||p===!0||p==="true",E=c?u:void 0,T=v==="number",M=v==="checkbox",_=P=>{if(m==null||m(P),P.defaultPrevented||!T)return;const N=P.currentTarget;document.activeElement===N&&(N.disabled||N.readOnly||P.deltaY!==0&&(P.preventDefault(),P.deltaY<0?N.stepUp():N.stepDown(),N.dispatchEvent(new Event("input",{bubbles:!0})),N.dispatchEvent(new Event("change",{bubbles:!0}))))},A=P=>{if(x==null||x(P),P.defaultPrevented||!T||P.metaKey||P.ctrlKey||P.altKey||uc.has(P.key)||/^[0-9]$/.test(P.key))return;const L=P.currentTarget;if(!(P.key==="."&&!L.value.includes("."))){if(P.key==="-"){const O=L.selectionStart??0,D=L.selectionEnd??0,z=L.value.startsWith("-")&&O===0&&D>0;if(O===0&&!z)return}P.preventDefault()}};if(M){const P=w.jsx("input",{type:"checkbox","data-slot":"input","aria-invalid":S?!0:p,className:X("size-4 shrink-0 rounded-sm border border-border bg-background text-primary field-transition","focus-ring-3","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",t),onWheel:m,onKeyDown:x,...y});return w.jsxs("div",{className:"w-full space-y-2",children:[d?w.jsxs("label",{htmlFor:g.id,className:X("inline-flex cursor-pointer items-center gap-2",Bn),children:[P,w.jsxs("span",{className:"inline-flex items-center gap-1",children:[d,l?w.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]})]}):P,E?w.jsx("p",{className:"text-sm text-destructive",children:E}):null]})}return w.jsxs("div",{className:"w-full space-y-2",children:[d?w.jsxs("label",{htmlFor:g.id,className:X("inline-flex items-center gap-1",Bn),children:[d,l?w.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]}):null,w.jsx("input",{type:v,"data-slot":"input","aria-invalid":S?!0:p,className:X($o,b,h,zo[r],"h-9 py-1 resize-none",r==="outline"?"px-3 focus-ring-3":"px-0 focus:outline-none","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),onWheel:_,onKeyDown:A,...y}),E?w.jsx("p",{className:"text-sm text-destructive",children:E}):null]})}const fc=({options:e,value:t,defaultValue:n,onValueChange:r,label:o,required:s=!1,isError:i=!1,errorText:a,placeholder:l="Select option",isSearchable:c=!1,searchPlaceholder:d="Type to filter...",disabled:u=!1,emptyText:p="No options found",id:v,"aria-invalid":g,className:m,...x})=>{const[y,b]=f.useState(!1),[h,S]=f.useState(""),[E,T]=f.useState(n),M=f.useRef(null),_=f.useRef(null),A=f.useId(),P=v??A,N=t!==void 0,L=N?t:E,O=e.find(R=>R.value===L),D=i||g===!0||g==="true",z=i?a:void 0,j=f.useMemo(()=>{if(!c||h.trim()==="")return e;const R=h.trim().toLowerCase();return e.filter(H=>H.label.toLowerCase().includes(R))},[c,e,h]);f.useEffect(()=>{var R;!y||!c||(R=_.current)==null||R.focus()},[y,c]),f.useEffect(()=>{const R=H=>{var I;(I=M.current)!=null&&I.contains(H.target)||b(!1)};return document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[]);const k=R=>{N||T(R),r==null||r(R),b(!1),S("")},C=()=>{u||b(R=>!R)};return w.jsxs("div",{className:"w-full space-y-2",children:[o||s?w.jsxs("div",{className:"flex w-full items-start justify-between gap-2",children:[o?w.jsx("label",{htmlFor:P,className:"inline-flex items-center gap-1 text-sm font-medium text-foreground",children:o}):w.jsx("span",{}),s?w.jsx("span",{"aria-label":"Required",className:"text-lg leading-none text-cautionary",children:"*"}):null]}):null,w.jsxs("div",{ref:M,className:X("relative w-full",m),...x,children:[w.jsxs("button",{id:P,type:"button",disabled:u,onClick:C,"aria-expanded":y,"aria-invalid":D?!0:g,"aria-required":s||void 0,"aria-haspopup":"listbox",className:X("field-transition focus-ring-3 border-border bg-background text-foreground","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","flex h-9 w-full items-center justify-between gap-2 rounded-md border px-3 text-sm","disabled:cursor-not-allowed disabled:opacity-50"),children:[w.jsx("span",{className:X("truncate",!O&&"text-muted-foreground"),children:(O==null?void 0:O.label)??l}),w.jsx(Rn,{className:X("size-4 text-muted-foreground transition-transform",y&&"rotate-180")})]}),y?w.jsxs("div",{role:"listbox",className:X("bg-card text-card-foreground border-border absolute z-50 mt-2 w-full rounded-md border shadow-md","max-h-64 overflow-hidden"),children:[c?w.jsx("div",{className:"border-border border-b p-2",children:w.jsx("input",{ref:_,value:h,onChange:R=>S(R.target.value),placeholder:d,className:X("field-transition focus-ring-3 border-border bg-background text-foreground","w-full rounded-md border px-2 py-1.5 text-sm outline-none placeholder:text-muted-foreground")})}):null,w.jsx("div",{className:"max-h-48 overflow-y-auto p-1",children:j.length===0?w.jsx("p",{className:"px-2 py-2 text-sm text-muted-foreground",children:p}):j.map(R=>{const H=R.value===L;return w.jsxs("button",{type:"button",role:"option","aria-selected":H,onClick:()=>k(R.value),className:X("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-2 text-left text-sm","hover:bg-accent hover:text-accent-foreground",H&&"bg-accent text-accent-foreground"),children:[w.jsx("span",{className:"truncate",children:R.label}),H?w.jsx(uo,{className:"size-4 shrink-0"}):null]},R.value)})})]}):null]}),z?w.jsx("p",{className:"text-sm text-destructive",children:z}):null]})},pc=({className:e,leftLabel:t,rightLabel:n,labelClassName:r,id:o,disabled:s=!1,...i})=>{const a=f.useId(),l=o??a,c=X("select-none text-sm text-foreground",s&&"cursor-not-allowed opacity-60",r);return w.jsxs("div",{className:X("inline-flex items-center gap-3",e),children:[t?w.jsx("label",{htmlFor:l,className:c,children:t}):null,w.jsxs("label",{htmlFor:l,className:X("relative inline-flex h-6 w-11 items-center",s?"cursor-not-allowed opacity-60":"cursor-pointer"),children:[w.jsx("input",{id:l,type:"checkbox",disabled:s,className:"peer sr-only",...i}),w.jsx("span",{"aria-hidden":!0,className:X("block h-full w-full rounded-full border border-border bg-muted field-transition","peer-focus-visible:ring-2 peer-focus-visible:ring-primary/40 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-(--card)","peer-checked:border-primary peer-checked:bg-primary/90")}),w.jsx("span",{"aria-hidden":!0,className:X("pointer-events-none absolute top-1/2 left-0.5 h-5 w-5 -translate-y-1/2 rounded-full bg-background shadow-xs field-transition","peer-checked:translate-x-5 peer-checked:bg-primary-foreground")})]}),n?w.jsx("label",{htmlFor:l,className:c,children:n}):null]})},mc={1:new URL("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiPgogIDxwb2x5Z29uCiAgICBwb2ludHM9IjI5Mi44OTMsMCA3MDcuMTA3LDAgMTAwMCwyOTIuODkzIDEwMDAsNzA3LjEwNyA3MDcuMTA3LDEwMDAgMjkyLjg5MywxMDAwIDAsNzA3LjEwNyAwLDI5Mi44OTMiCiAgICBmaWxsPSJ3aGl0ZSIKICAvPgo8L3N2Zz4K",self.location).href,2:new URL("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiPgogIDxjaXJjbGUgY3g9IjUwMCIgY3k9IjUwMCIgcj0iNTAwIiBmaWxsPSJ3aGl0ZSIgLz4KPC9zdmc+Cg==",self.location).href,3:new URL("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODAgMTgwIj4KICA8cmVjdCB3aWR0aD0iMTgwIiBoZWlnaHQ9IjE4MCIgcng9IjM3IiBmaWxsPSJ3aGl0ZSIgLz4KPC9zdmc+Cg==",self.location).href},hc=[{value:0,label:"No Mask"},{value:1,label:"Octagon Crop"},{value:2,label:"Circle Crop"},{value:3,label:"Square Crop"}],Bo=e=>mc[e],gc=e=>{const[t="100%",n=t]=e.trim().split(/\s+/).filter(Boolean),r=i=>{const a=i.match(/^(-?\d+(?:\.\d+)?)%$/);if(a)return Number(a[1])},o=r(t),s=r(n);return o===void 0||s===void 0||!Number.isFinite(o)||!Number.isFinite(s)?{width:100,height:100}:{width:Math.max(0,o),height:Math.max(0,s)}},vc=(e,t)=>{const{width:n,height:r}=gc(e),o=(100-n)*t.x/100,s=(100-r)*t.y/100;return{x:o,y:s,width:n,height:r}},bc=({maskType:e,fillColor:t,strokeColor:n,strokeWidth:r,placement:o})=>{const s=!!t,i=!!n&&!!(r&&r>0);if(!s&&!i)return null;const a={fill:t??"none",stroke:n??"none",strokeWidth:r??0,vectorEffect:"non-scaling-stroke"},l=`translate(${o.x} ${o.y}) scale(${o.width/100} ${o.height/100})`;return e===1?w.jsx("g",{transform:l,children:w.jsx("polygon",{points:"29.2893,0 70.7107,0 100,29.2893 100,70.7107 70.7107,100 29.2893,100 0,70.7107 0,29.2893",...a})}):e===2?w.jsx("g",{transform:l,children:w.jsx("circle",{cx:"50",cy:"50",r:"50",...a})}):e===3?w.jsx("g",{transform:l,children:w.jsx("rect",{width:"100",height:"100",rx:"20.5556",...a})}):null},Fn=({className:e,isLoading:t=!1,maskType:n=0,isEditModeDisabled:r=!0,imagePosition:o,isSquareCrop:s=!1,cropX:i=50,cropY:a=50,cropPositionValue:l,defaultCropPositionValue:c,onCropPositionChange:d,maskSize:u="100% 100%",maskPositionValue:p,maskFillColor:v,maskStrokeColor:g,maskStrokeWidth:m=1,isTopShadeVisible:x=!1,topShadeColor:y,isBottomShadeVisible:b=!1,bottomShadeColor:h,alt:S="",style:E,...T})=>{const M=f.useRef(null),[_,A]=f.useState(!1),P=l!==void 0,[N,L]=f.useState(c??{x:i,y:a}),O=Bo(n),D=!!O,z=p,j=z==null?void 0:z.x,k=z==null?void 0:z.y,C=typeof j=="number"&&Number.isFinite(j)?Math.min(100,Math.max(0,j)):50,R=typeof k=="number"&&Number.isFinite(k)?Math.min(100,Math.max(0,k)):50,H=`${C}% ${R}%`,G=vc(u,{x:C,y:R}),q=P?l:N,K=Number.isFinite(q==null?void 0:q.x)?Math.min(100,Math.max(0,q.x)):Math.min(100,Math.max(0,i)),se=Number.isFinite(q==null?void 0:q.y)?Math.min(100,Math.max(0,q.y)):Math.min(100,Math.max(0,a)),ae=o??`${K}% ${se}%`,B=f.useCallback(V=>{P||L(V),d==null||d(V)},[P,d]),Z=f.useCallback((V,de)=>{const we=M.current;if(!we)return;const xe=we.getBoundingClientRect();if(xe.width<=0||xe.height<=0)return;const Qg=(V-xe.left)/xe.width*100,ev=(de-xe.top)/xe.height*100,tv={x:Math.min(100,Math.max(0,Qg)),y:Math.min(100,Math.max(0,ev))};B(tv)},[B]),re=!r&&!t;f.useEffect(()=>{re||A(!1)},[re]);const Q=V=>{re&&(V.preventDefault(),V.currentTarget.setPointerCapture(V.pointerId),A(!0),Z(V.clientX,V.clientY))},te=V=>{!re||!_||Z(V.clientX,V.clientY)},ee=V=>{re&&(V.currentTarget.hasPointerCapture(V.pointerId)&&V.currentTarget.releasePointerCapture(V.pointerId),A(!1))},ve=D?{WebkitMaskImage:`url("${O}")`,maskImage:`url("${O}")`,WebkitMaskSize:u,maskSize:u,WebkitMaskPosition:H,maskPosition:H,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"}:void 0,ye=D&&(!!v||!!g),Be=y??h??v??"var(--background)";return w.jsxs("div",{ref:M,"aria-busy":t||void 0,style:ve,onPointerDown:Q,onPointerMove:te,onPointerUp:ee,onPointerCancel:ee,className:X("relative overflow-hidden",s&&"aspect-square",D?"rounded-none":"rounded-(--radius)",t&&"relative overflow-hidden",re?X("touch-none",_?"cursor-grabbing":"cursor-grab"):null,e),children:[w.jsx("img",{alt:S,draggable:!1,onDragStart:V=>V.preventDefault(),style:{objectPosition:ae,...E},className:X("block h-full w-full object-cover select-none",t&&"opacity-0"),...T}),t?w.jsx("div",{"aria-hidden":"true",className:X("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null,x?w.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-[10%]",style:{backgroundColor:Be,opacity:.65,WebkitMaskImage:"linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))",maskImage:"linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))"}}):null,b?w.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-[10%]",style:{backgroundColor:Be,opacity:.65,WebkitMaskImage:"linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))",maskImage:"linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))"}}):null,ye?w.jsx("svg",{"aria-hidden":!0,viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"pointer-events-none absolute inset-0 h-full w-full",children:w.jsx(bc,{maskType:n,fillColor:v,strokeColor:g,strokeWidth:m,placement:G})}):null]})},yc={days:"дн.",hours:"ч.",minutes:"мин.",seconds:"с."},Fo=1e3,Vn=60,Hn=60*Vn,Vo=24*Hn,wc=e=>{if(e instanceof Date){const n=e.getTime();return Number.isFinite(n)?n:null}if(typeof e=="number")return Number.isFinite(e)?e:null;const t=new Date(e).getTime();return Number.isFinite(t)?t:null},Wn=(e,t)=>{if(e===null)return{days:0,hours:0,minutes:0,seconds:0,isComplete:!0};const n=Math.max(Math.floor((e-t)/Fo),0),r=Math.floor(n/Vo),o=Math.floor(n%Vo/Hn),s=Math.floor(n%Hn/Vn),i=n%Vn;return{days:r,hours:o,minutes:s,seconds:i,isComplete:n<=0}},xc=e=>e.toString().padStart(2,"0"),Ho=({targetDate:e,className:t,itemClassName:n,labels:r,onComplete:o})=>{const s=$.useMemo(()=>wc(e),[e]),i=$.useMemo(()=>({...yc,...r}),[r]),[a,l]=$.useState(()=>Wn(s,Date.now())),c=$.useRef(!1);$.useEffect(()=>{if(l(Wn(s,Date.now())),c.current=!1,s===null)return;const u=window.setInterval(()=>{l(Wn(s,Date.now()))},Fo);return()=>{window.clearInterval(u)}},[s]),$.useEffect(()=>{s===null||!a.isComplete||c.current||(c.current=!0,o==null||o())},[o,a.isComplete,s]);const d=[{key:"days",value:a.days,label:i.days},{key:"hours",value:a.hours,label:i.hours},{key:"minutes",value:a.minutes,label:i.minutes},{key:"seconds",value:a.seconds,label:i.seconds}];return w.jsx("div",{className:oe.clsx("inline-flex items-end gap-2",t),children:d.map((u,p)=>w.jsxs($.Fragment,{children:[w.jsxs("div",{className:"flex flex-col items-center gap-1",children:[w.jsx("div",{className:oe.clsx("min-w-14 rounded-sm border border-(--border) bg-primary px-2 py-1 text-center shadow-xs",n),children:w.jsx("span",{className:"inline-block font-infinityloop text-3xl leading-none font-semibold tabular-nums text-primary-foreground",children:xc(u.value)})}),w.jsx(Se,{typography:"Caption",className:"normal-case",children:u.label})]}),p<d.length-1?w.jsx("span",{"aria-hidden":!0,className:"pb-6 font-infinityloop text-2xl leading-none text-muted-foreground",children:":"}):null]},u.key))})};Ho.displayName="Timer";const Sc=["default","time"],Ec={default:"destructive",time:"background"},Cc={default:"foreground",time:"foreground"},Jt=({label:e,type:t="default",color:n,textColor:r,className:o,isLoading:s=!1,isEditModeEnabled:i=!1,isEditModeDisabled:a=!1,onLabelChange:l,...c})=>{const[d,u]=$.useState(e),p=n??Ec[t],v=r??Cc[t],g=i&&!a&&!s,x=p==="destructive"?"#ffffff":`var(--${v})`,y=t==="time"?"Action":"CompactCaption";$.useEffect(()=>{u(e)},[e]);const b=h=>{const S=h.currentTarget.value;u(S),l==null||l(S)};return w.jsx("span",{className:oe.clsx("inline-flex max-w-full items-center rounded-md px-2 py-1",o),style:{backgroundColor:`var(--${p})`},...c,children:g?w.jsx("input",{value:d,onChange:b,className:oe.clsx("inline-block max-w-full min-w-[1ch] border-none bg-transparent p-0 outline-none",Ye(y),"font-semibold",t==="default"&&"uppercase tracking-wide"),style:{color:x,width:`${Math.max(1,d.length)}ch`}}):w.jsx(Se,{typography:y,element:"span",color:v,isLoading:s,className:oe.clsx("inline-block truncate font-semibold",t==="default"&&"uppercase tracking-wide"),style:{color:x},children:d})})},Wo=e=>e==null?"":Array.isArray(e)?e.join(", "):String(e),Ve=({className:e,typography:t="Subheader",element:n="span",color:r,isEditModeDisabled:o=!1,isLoading:s=!1,value:i,defaultValue:a,placeholder:l,onValueChange:c,children:d})=>{const[u,p]=f.useState(!1),[v,g]=f.useState(()=>Wo(a)),m=r??In(t),x=i!==void 0,y=x?Wo(i):v;f.useEffect(()=>{(o||s)&&u&&p(!1)},[o,u,s]);const b=()=>{o||s||p(!0)},h=T=>{const M=T.currentTarget.value;x||g(M),c==null||c(M)},S=()=>{p(!1)},E=T=>{(T.key==="Enter"||T.key==="Escape")&&(p(!1),T.currentTarget.blur())};return u&&!o&&!s?w.jsx("div",{className:oe.clsx("relative h-9 w-full",e),children:w.jsx("input",{autoFocus:!0,value:y,placeholder:l,style:{color:`var(--${m})`,caretColor:`var(--${m})`},className:oe.clsx("relative m-0 block h-auto w-full border-0 bg-transparent p-0 font-infinityloop",Ye(t),Ht(t),"appearance-none outline-none shadow-none","outline-none focus:outline-none focus-visible:outline-none","focus:shadow-none focus-visible:shadow-none","ring-0 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0"),onChange:h,onBlur:S,onKeyDown:E})}):w.jsx("div",{className:oe.clsx("relative h-9 w-full",e),children:w.jsx(Se,{typography:t,element:n,color:m,isLoading:s,className:oe.clsx("block w-full px-0",!o&&!s&&"cursor-text hover:opacity-90",s&&"cursor-default"),onClick:b,children:y||d||l||"Click to edit"})})};function Go(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Gn(e,t){e===void 0&&(e={}),t===void 0&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Go(t[r])&&Go(e[r])&&Object.keys(t[r]).length>0&&Gn(e[r],t[r])})}const Uo={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Me(){const e=typeof document<"u"?document:{};return Gn(e,Uo),e}const Tc={document:Uo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function he(){const e=typeof window<"u"?window:{};return Gn(e,Tc),e}function Pc(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function _c(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Qt(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function _e(){return Date.now()}function kc(e){const t=he();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function Mc(e,t){t===void 0&&(t="x");const n=he();let r,o,s;const i=kc(e);return n.WebKitCSSMatrix?(o=i.transform||i.webkitTransform,o.split(",").length>6&&(o=o.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(o==="none"?"":o)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?o=s.m41:r.length===16?o=parseFloat(r[12]):o=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?o=s.m42:r.length===16?o=parseFloat(r[13]):o=parseFloat(r[5])),o||0}function en(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Ac(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ee(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!Ac(r)){const o=Object.keys(Object(r)).filter(s=>t.indexOf(s)<0);for(let s=0,i=o.length;s<i;s+=1){const a=o[s],l=Object.getOwnPropertyDescriptor(r,a);l!==void 0&&l.enumerable&&(en(e[a])&&en(r[a])?r[a].__swiper__?e[a]=r[a]:Ee(e[a],r[a]):!en(e[a])&&en(r[a])?(e[a]={},r[a].__swiper__?e[a]=r[a]:Ee(e[a],r[a])):e[a]=r[a])}}}return e}function tn(e,t,n){e.style.setProperty(t,n)}function Yo(e){let{swiper:t,targetPosition:n,side:r}=e;const o=he(),s=-t.translate;let i=null,a;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(t.cssModeFrameID);const c=n>s?"next":"prev",d=(p,v)=>c==="next"&&p>=v||c==="prev"&&p<=v,u=()=>{a=new Date().getTime(),i===null&&(i=a);const p=Math.max(Math.min((a-i)/l,1),0),v=.5-Math.cos(p*Math.PI)/2;let g=s+v*(n-s);if(d(g,n)&&(g=n),t.wrapperEl.scrollTo({[r]:g}),d(g,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:g})}),o.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=o.requestAnimationFrame(u)};u()}function Re(e,t){t===void 0&&(t="");const n=he(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(o=>o.matches(t)):r}function Nc(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function Ic(e,t){const n=he();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=Nc(e,t))),r}function nn(e){try{console.warn(e);return}catch{}}function Nt(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Pc(t)),n}function Oc(e){const t=he(),n=Me(),r=e.getBoundingClientRect(),o=n.body,s=e.clientTop||o.clientTop||0,i=e.clientLeft||o.clientLeft||0,a=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+a-s,left:r.left+l-i}}function Rc(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Lc(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Ke(e,t){return he().getComputedStyle(e,null).getPropertyValue(t)}function It(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function rn(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Un(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function Yn(e,t,n){const r=he();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}function ne(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Ot(e,t){t===void 0&&(t=""),typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}function jc(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=Me(),i=he();t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(d){if(!t.enabled)return;const{rtlTranslate:u}=t;let p=d;p.originalEvent&&(p=p.originalEvent);const v=p.keyCode||p.charCode,g=t.params.keyboard.pageUpDown,m=g&&v===33,x=g&&v===34,y=v===37,b=v===39,h=v===38,S=v===40;if(!t.allowSlideNext&&(t.isHorizontal()&&b||t.isVertical()&&S||x)||!t.allowSlidePrev&&(t.isHorizontal()&&y||t.isVertical()&&h||m))return!1;if(!(p.shiftKey||p.altKey||p.ctrlKey||p.metaKey)&&!(s.activeElement&&(s.activeElement.isContentEditable||s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea")))){if(t.params.keyboard.onlyInViewport&&(m||x||y||b||h||S)){let E=!1;if(rn(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&rn(t.el,`.${t.params.slideActiveClass}`).length===0)return;const T=t.el,M=T.clientWidth,_=T.clientHeight,A=i.innerWidth,P=i.innerHeight,N=Oc(T);u&&(N.left-=T.scrollLeft);const L=[[N.left,N.top],[N.left+M,N.top],[N.left,N.top+_],[N.left+M,N.top+_]];for(let O=0;O<L.length;O+=1){const D=L[O];if(D[0]>=0&&D[0]<=A&&D[1]>=0&&D[1]<=P){if(D[0]===0&&D[1]===0)continue;E=!0}}if(!E)return}t.isHorizontal()?((m||x||y||b)&&(p.preventDefault?p.preventDefault():p.returnValue=!1),((x||b)&&!u||(m||y)&&u)&&t.slideNext(),((m||y)&&!u||(x||b)&&u)&&t.slidePrev()):((m||x||h||S)&&(p.preventDefault?p.preventDefault():p.returnValue=!1),(x||S)&&t.slideNext(),(m||h)&&t.slidePrev()),o("keyPress",v)}}function l(){t.keyboard.enabled||(s.addEventListener("keydown",a),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(s.removeEventListener("keydown",a),t.keyboard.enabled=!1)}r("init",()=>{t.params.keyboard.enabled&&l()}),r("destroy",()=>{t.keyboard.enabled&&c()}),Object.assign(t.keyboard,{enable:l,disable:c})}function Dc(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=he();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let i,a=_e(),l;const c=[];function d(h){let M=0,_=0,A=0,P=0;return"detail"in h&&(_=h.detail),"wheelDelta"in h&&(_=-h.wheelDelta/120),"wheelDeltaY"in h&&(_=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(M=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(M=_,_=0),A=M*10,P=_*10,"deltaY"in h&&(P=h.deltaY),"deltaX"in h&&(A=h.deltaX),h.shiftKey&&!A&&(A=P,P=0),(A||P)&&h.deltaMode&&(h.deltaMode===1?(A*=40,P*=40):(A*=800,P*=800)),A&&!M&&(M=A<1?-1:1),P&&!_&&(_=P<1?-1:1),{spinX:M,spinY:_,pixelX:A,pixelY:P}}function u(){t.enabled&&(t.mouseEntered=!0)}function p(){t.enabled&&(t.mouseEntered=!1)}function v(h){return t.params.mousewheel.thresholdDelta&&h.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&_e()-a<t.params.mousewheel.thresholdTime?!1:h.delta>=6&&_e()-a<60?!0:(h.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),o("scroll",h.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),o("scroll",h.raw)),a=new s.Date().getTime(),!1)}function g(h){const S=t.params.mousewheel;if(h.direction<0){if(t.isEnd&&!t.params.loop&&S.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&S.releaseOnEdges)return!0;return!1}function m(h){let S=h,E=!0;if(!t.enabled||h.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const T=t.params.mousewheel;t.params.cssMode&&S.preventDefault();let M=t.el;t.params.mousewheel.eventsTarget!=="container"&&(M=document.querySelector(t.params.mousewheel.eventsTarget));const _=M&&M.contains(S.target);if(!t.mouseEntered&&!_&&!T.releaseOnEdges)return!0;S.originalEvent&&(S=S.originalEvent);let A=0;const P=t.rtlTranslate?-1:1,N=d(S);if(T.forceToAxis)if(t.isHorizontal())if(Math.abs(N.pixelX)>Math.abs(N.pixelY))A=-N.pixelX*P;else return!0;else if(Math.abs(N.pixelY)>Math.abs(N.pixelX))A=-N.pixelY;else return!0;else A=Math.abs(N.pixelX)>Math.abs(N.pixelY)?-N.pixelX*P:-N.pixelY;if(A===0)return!0;T.invert&&(A=-A);let L=t.getTranslate()+A*T.sensitivity;if(L>=t.minTranslate()&&(L=t.minTranslate()),L<=t.maxTranslate()&&(L=t.maxTranslate()),E=t.params.loop?!0:!(L===t.minTranslate()||L===t.maxTranslate()),E&&t.params.nested&&S.stopPropagation(),!t.params.freeMode||!t.params.freeMode.enabled){const O={time:_e(),delta:Math.abs(A),direction:Math.sign(A),raw:h};c.length>=2&&c.shift();const D=c.length?c[c.length-1]:void 0;if(c.push(O),D?(O.direction!==D.direction||O.delta>D.delta||O.time>D.time+150)&&v(O):v(O),g(O))return!0}else{const O={time:_e(),delta:Math.abs(A),direction:Math.sign(A)},D=l&&O.time<l.time+500&&O.delta<=l.delta&&O.direction===l.direction;if(!D){l=void 0;let z=t.getTranslate()+A*T.sensitivity;const j=t.isBeginning,k=t.isEnd;if(z>=t.minTranslate()&&(z=t.minTranslate()),z<=t.maxTranslate()&&(z=t.maxTranslate()),t.setTransition(0),t.setTranslate(z),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!j&&t.isBeginning||!k&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:O.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(i),i=void 0,c.length>=15&&c.shift();const C=c.length?c[c.length-1]:void 0,R=c[0];if(c.push(O),C&&(O.delta>C.delta||O.direction!==C.direction))c.splice(0);else if(c.length>=15&&O.time-R.time<500&&R.delta-O.delta>=1&&O.delta<=6){const H=A>0?.8:.2;l=O,c.splice(0),i=Qt(()=>{t.destroyed||!t.params||t.slideToClosest(t.params.speed,!0,void 0,H)},0)}i||(i=Qt(()=>{if(t.destroyed||!t.params)return;const H=.5;l=O,c.splice(0),t.slideToClosest(t.params.speed,!0,void 0,H)},500))}if(D||o("scroll",S),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),T.releaseOnEdges&&(z===t.minTranslate()||z===t.maxTranslate()))return!0}}return S.preventDefault?S.preventDefault():S.returnValue=!1,!1}function x(h){let S=t.el;t.params.mousewheel.eventsTarget!=="container"&&(S=document.querySelector(t.params.mousewheel.eventsTarget)),S[h]("mouseenter",u),S[h]("mouseleave",p),S[h]("wheel",m)}function y(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",m),!0):t.mousewheel.enabled?!1:(x("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,m),!0):t.mousewheel.enabled?(x("removeEventListener"),t.mousewheel.enabled=!1,!0):!1}r("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&y()}),r("destroy",()=>{t.params.cssMode&&y(),t.mousewheel.enabled&&b()}),Object.assign(t.mousewheel,{enable:y,disable:b})}function qo(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&n.auto===!0){let s=Re(e.el,`.${r[o]}`)[0];s||(s=Nt("div",r[o]),s.className=r[o],e.el.append(s)),n[o]=s,t[o]=s}}),n}function $c(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null};function s(g){let m;return g&&typeof g=="string"&&t.isElement&&(m=t.el.querySelector(g)||t.hostEl.querySelector(g),m)?m:(g&&(typeof g=="string"&&(m=[...document.querySelectorAll(g)]),t.params.uniqueNavElements&&typeof g=="string"&&m&&m.length>1&&t.el.querySelectorAll(g).length===1?m=t.el.querySelector(g):m&&m.length===1&&(m=m[0])),g&&!m?g:m)}function i(g,m){const x=t.params.navigation;g=ne(g),g.forEach(y=>{y&&(y.classList[m?"add":"remove"](...x.disabledClass.split(" ")),y.tagName==="BUTTON"&&(y.disabled=m),t.params.watchOverflow&&t.enabled&&y.classList[t.isLocked?"add":"remove"](x.lockClass))})}function a(){const{nextEl:g,prevEl:m}=t.navigation;if(t.params.loop){i(m,!1),i(g,!1);return}i(m,t.isBeginning&&!t.params.rewind),i(g,t.isEnd&&!t.params.rewind)}function l(g){g.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),o("navigationPrev"))}function c(g){g.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),o("navigationNext"))}function d(){const g=t.params.navigation;if(t.params.navigation=qo(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let m=s(g.nextEl),x=s(g.prevEl);Object.assign(t.navigation,{nextEl:m,prevEl:x}),m=ne(m),x=ne(x);const y=(b,h)=>{b&&b.addEventListener("click",h==="next"?c:l),!t.enabled&&b&&b.classList.add(...g.lockClass.split(" "))};m.forEach(b=>y(b,"next")),x.forEach(b=>y(b,"prev"))}function u(){let{nextEl:g,prevEl:m}=t.navigation;g=ne(g),m=ne(m);const x=(y,b)=>{y.removeEventListener("click",b==="next"?c:l),y.classList.remove(...t.params.navigation.disabledClass.split(" "))};g.forEach(y=>x(y,"next")),m.forEach(y=>x(y,"prev"))}r("init",()=>{t.params.navigation.enabled===!1?v():(d(),a())}),r("toEdge fromEdge lock unlock",()=>{a()}),r("destroy",()=>{u()}),r("enable disable",()=>{let{nextEl:g,prevEl:m}=t.navigation;if(g=ne(g),m=ne(m),t.enabled){a();return}[...g,...m].filter(x=>!!x).forEach(x=>x.classList.add(t.params.navigation.lockClass))}),r("click",(g,m)=>{let{nextEl:x,prevEl:y}=t.navigation;x=ne(x),y=ne(y);const b=m.target;let h=y.includes(b)||x.includes(b);if(t.isElement&&!h){const S=m.path||m.composedPath&&m.composedPath();S&&(h=S.find(E=>x.includes(E)||y.includes(E)))}if(t.params.navigation.hideOnClick&&!h){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===b||t.pagination.el.contains(b)))return;let S;x.length?S=x[0].classList.contains(t.params.navigation.hiddenClass):y.length&&(S=y[0].classList.contains(t.params.navigation.hiddenClass)),o(S===!0?"navigationShow":"navigationHide"),[...x,...y].filter(E=>!!E).forEach(E=>E.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),a()},v=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:p,disable:v,update:a,init:d,destroy:u})}function Ze(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function zc(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:b=>b,formatFractionTotal:b=>b,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),t.pagination={el:null,bullets:[]};let i,a=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(b,h){const{bulletActiveClass:S}=t.params.pagination;b&&(b=b[`${h==="prev"?"previous":"next"}ElementSibling`],b&&(b.classList.add(`${S}-${h}`),b=b[`${h==="prev"?"previous":"next"}ElementSibling`],b&&b.classList.add(`${S}-${h}-${h}`)))}function d(b,h,S){if(b=b%S,h=h%S,h===b+1)return"next";if(h===b-1)return"previous"}function u(b){const h=b.target.closest(Ze(t.params.pagination.bulletClass));if(!h)return;b.preventDefault();const S=It(h)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===S)return;const E=d(t.realIndex,S,t.slides.length);E==="next"?t.slideNext():E==="previous"?t.slidePrev():t.slideToLoop(S)}else t.slideTo(S)}function p(){const b=t.rtl,h=t.params.pagination;if(l())return;let S=t.pagination.el;S=ne(S);let E,T;const M=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,_=t.params.loop?Math.ceil(M/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(T=t.previousRealIndex||0,E=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(E=t.snapIndex,T=t.previousSnapIndex):(T=t.previousIndex||0,E=t.activeIndex||0),h.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const A=t.pagination.bullets;let P,N,L;if(h.dynamicBullets&&(i=Yn(A[0],t.isHorizontal()?"width":"height",!0),S.forEach(O=>{O.style[t.isHorizontal()?"width":"height"]=`${i*(h.dynamicMainBullets+4)}px`}),h.dynamicMainBullets>1&&T!==void 0&&(a+=E-(T||0),a>h.dynamicMainBullets-1?a=h.dynamicMainBullets-1:a<0&&(a=0)),P=Math.max(E-a,0),N=P+(Math.min(A.length,h.dynamicMainBullets)-1),L=(N+P)/2),A.forEach(O=>{const D=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(z=>`${h.bulletActiveClass}${z}`)].map(z=>typeof z=="string"&&z.includes(" ")?z.split(" "):z).flat();O.classList.remove(...D)}),S.length>1)A.forEach(O=>{const D=It(O);D===E?O.classList.add(...h.bulletActiveClass.split(" ")):t.isElement&&O.setAttribute("part","bullet"),h.dynamicBullets&&(D>=P&&D<=N&&O.classList.add(...`${h.bulletActiveClass}-main`.split(" ")),D===P&&c(O,"prev"),D===N&&c(O,"next"))});else{const O=A[E];if(O&&O.classList.add(...h.bulletActiveClass.split(" ")),t.isElement&&A.forEach((D,z)=>{D.setAttribute("part",z===E?"bullet-active":"bullet")}),h.dynamicBullets){const D=A[P],z=A[N];for(let j=P;j<=N;j+=1)A[j]&&A[j].classList.add(...`${h.bulletActiveClass}-main`.split(" "));c(D,"prev"),c(z,"next")}}if(h.dynamicBullets){const O=Math.min(A.length,h.dynamicMainBullets+4),D=(i*O-i)/2-L*i,z=b?"right":"left";A.forEach(j=>{j.style[t.isHorizontal()?z:"top"]=`${D}px`})}}S.forEach((A,P)=>{if(h.type==="fraction"&&(A.querySelectorAll(Ze(h.currentClass)).forEach(N=>{N.textContent=h.formatFractionCurrent(E+1)}),A.querySelectorAll(Ze(h.totalClass)).forEach(N=>{N.textContent=h.formatFractionTotal(_)})),h.type==="progressbar"){let N;h.progressbarOpposite?N=t.isHorizontal()?"vertical":"horizontal":N=t.isHorizontal()?"horizontal":"vertical";const L=(E+1)/_;let O=1,D=1;N==="horizontal"?O=L:D=L,A.querySelectorAll(Ze(h.progressbarFillClass)).forEach(z=>{z.style.transform=`translate3d(0,0,0) scaleX(${O}) scaleY(${D})`,z.style.transitionDuration=`${t.params.speed}ms`})}h.type==="custom"&&h.renderCustom?(Ot(A,h.renderCustom(t,E+1,_)),P===0&&o("paginationRender",A)):(P===0&&o("paginationRender",A),o("paginationUpdate",A)),t.params.watchOverflow&&t.enabled&&A.classList[t.isLocked?"add":"remove"](h.lockClass)})}function v(){const b=t.params.pagination;if(l())return;const h=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let S=t.pagination.el;S=ne(S);let E="";if(b.type==="bullets"){let T=t.params.loop?Math.ceil(h/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&T>h&&(T=h);for(let M=0;M<T;M+=1)b.renderBullet?E+=b.renderBullet.call(t,M,b.bulletClass):E+=`<${b.bulletElement} ${t.isElement?'part="bullet"':""} class="${b.bulletClass}"></${b.bulletElement}>`}b.type==="fraction"&&(b.renderFraction?E=b.renderFraction.call(t,b.currentClass,b.totalClass):E=`<span class="${b.currentClass}"></span> / <span class="${b.totalClass}"></span>`),b.type==="progressbar"&&(b.renderProgressbar?E=b.renderProgressbar.call(t,b.progressbarFillClass):E=`<span class="${b.progressbarFillClass}"></span>`),t.pagination.bullets=[],S.forEach(T=>{b.type!=="custom"&&Ot(T,E||""),b.type==="bullets"&&t.pagination.bullets.push(...T.querySelectorAll(Ze(b.bulletClass)))}),b.type!=="custom"&&o("paginationRender",S[0])}function g(){t.params.pagination=qo(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const b=t.params.pagination;if(!b.el)return;let h;typeof b.el=="string"&&t.isElement&&(h=t.el.querySelector(b.el)),!h&&typeof b.el=="string"&&(h=[...document.querySelectorAll(b.el)]),h||(h=b.el),!(!h||h.length===0)&&(t.params.uniqueNavElements&&typeof b.el=="string"&&Array.isArray(h)&&h.length>1&&(h=[...t.el.querySelectorAll(b.el)],h.length>1&&(h=h.find(S=>rn(S,".swiper")[0]===t.el))),Array.isArray(h)&&h.length===1&&(h=h[0]),Object.assign(t.pagination,{el:h}),h=ne(h),h.forEach(S=>{b.type==="bullets"&&b.clickable&&S.classList.add(...(b.clickableClass||"").split(" ")),S.classList.add(b.modifierClass+b.type),S.classList.add(t.isHorizontal()?b.horizontalClass:b.verticalClass),b.type==="bullets"&&b.dynamicBullets&&(S.classList.add(`${b.modifierClass}${b.type}-dynamic`),a=0,b.dynamicMainBullets<1&&(b.dynamicMainBullets=1)),b.type==="progressbar"&&b.progressbarOpposite&&S.classList.add(b.progressbarOppositeClass),b.clickable&&S.addEventListener("click",u),t.enabled||S.classList.add(b.lockClass)}))}function m(){const b=t.params.pagination;if(l())return;let h=t.pagination.el;h&&(h=ne(h),h.forEach(S=>{S.classList.remove(b.hiddenClass),S.classList.remove(b.modifierClass+b.type),S.classList.remove(t.isHorizontal()?b.horizontalClass:b.verticalClass),b.clickable&&(S.classList.remove(...(b.clickableClass||"").split(" ")),S.removeEventListener("click",u))})),t.pagination.bullets&&t.pagination.bullets.forEach(S=>S.classList.remove(...b.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const b=t.params.pagination;let{el:h}=t.pagination;h=ne(h),h.forEach(S=>{S.classList.remove(b.horizontalClass,b.verticalClass),S.classList.add(t.isHorizontal()?b.horizontalClass:b.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?y():(g(),v(),p())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&p()}),r("snapIndexChange",()=>{p()}),r("snapGridLengthChange",()=>{v(),p()}),r("destroy",()=>{m()}),r("enable disable",()=>{let{el:b}=t.pagination;b&&(b=ne(b),b.forEach(h=>h.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{p()}),r("click",(b,h)=>{const S=h.target,E=ne(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&E&&E.length>0&&!S.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&S===t.navigation.nextEl||t.navigation.prevEl&&S===t.navigation.prevEl))return;const T=E[0].classList.contains(t.params.pagination.hiddenClass);o(T===!0?"paginationShow":"paginationHide"),E.forEach(M=>M.classList.toggle(t.params.pagination.hiddenClass))}});const x=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:b}=t.pagination;b&&(b=ne(b),b.forEach(h=>h.classList.remove(t.params.pagination.paginationDisabledClass))),g(),v(),p()},y=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:b}=t.pagination;b&&(b=ne(b),b.forEach(h=>h.classList.add(t.params.pagination.paginationDisabledClass))),m()};Object.assign(t.pagination,{enable:x,disable:y,render:v,update:p,init:g,destroy:m})}function Bc(e){let{swiper:t,extendParams:n,on:r}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let o=null,s,i,a=new Date().getTime();function l(k){const C=o;C.length!==0&&Ot(C,k)}function c(k){k===void 0&&(k=16);const C=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(k).replace(/x/g,C)}function d(k){k=ne(k),k.forEach(C=>{C.setAttribute("tabIndex","0")})}function u(k){k=ne(k),k.forEach(C=>{C.setAttribute("tabIndex","-1")})}function p(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("role",C)})}function v(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("aria-roledescription",C)})}function g(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("aria-controls",C)})}function m(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("aria-label",C)})}function x(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("id",C)})}function y(k,C){k=ne(k),k.forEach(R=>{R.setAttribute("aria-live",C)})}function b(k){k=ne(k),k.forEach(C=>{C.setAttribute("aria-disabled",!0)})}function h(k){k=ne(k),k.forEach(C=>{C.setAttribute("aria-disabled",!1)})}function S(k){if(k.keyCode!==13&&k.keyCode!==32)return;const C=t.params.a11y,R=k.target;if(!(t.pagination&&t.pagination.el&&(R===t.pagination.el||t.pagination.el.contains(k.target))&&!k.target.matches(Ze(t.params.pagination.bulletClass)))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const H=ne(t.navigation.prevEl);ne(t.navigation.nextEl).includes(R)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(C.lastSlideMessage):l(C.nextSlideMessage)),H.includes(R)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(C.firstSlideMessage):l(C.prevSlideMessage))}t.pagination&&R.matches(Ze(t.params.pagination.bulletClass))&&R.click()}}function E(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:k,prevEl:C}=t.navigation;C&&(t.isBeginning?(b(C),u(C)):(h(C),d(C))),k&&(t.isEnd?(b(k),u(k)):(h(k),d(k)))}function T(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function M(){return T()&&t.params.pagination.clickable}function _(){const k=t.params.a11y;T()&&t.pagination.bullets.forEach(C=>{t.params.pagination.clickable&&(d(C),t.params.pagination.renderBullet||(p(C,"button"),m(C,k.paginationBulletMessage.replace(/\{\{index\}\}/,It(C)+1)))),C.matches(Ze(t.params.pagination.bulletActiveClass))?C.setAttribute("aria-current","true"):C.removeAttribute("aria-current")})}const A=(k,C,R)=>{d(k),k.tagName!=="BUTTON"&&(p(k,"button"),k.addEventListener("keydown",S)),m(k,R),g(k,C)},P=k=>{i&&i!==k.target&&!i.contains(k.target)&&(s=!0),t.a11y.clicked=!0},N=()=>{s=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},L=k=>{a=new Date().getTime()},O=k=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||new Date().getTime()-a<100)return;const C=k.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!C||!t.slides.includes(C))return;i=C;const R=t.slides.indexOf(C)===t.activeIndex,H=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(C);R||H||k.sourceCapabilities&&k.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{s||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(C.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(C)),0),s=!1)}))},D=()=>{const k=t.params.a11y;k.itemRoleDescriptionMessage&&v(t.slides,k.itemRoleDescriptionMessage),k.slideRole&&p(t.slides,k.slideRole);const C=t.slides.length;k.slideLabelMessage&&t.slides.forEach((R,H)=>{const I=t.params.loop?parseInt(R.getAttribute("data-swiper-slide-index"),10):H,G=k.slideLabelMessage.replace(/\{\{index\}\}/,I+1).replace(/\{\{slidesLength\}\}/,C);m(R,G)})},z=()=>{const k=t.params.a11y;t.el.append(o);const C=t.el;k.containerRoleDescriptionMessage&&v(C,k.containerRoleDescriptionMessage),k.containerMessage&&m(C,k.containerMessage),k.containerRole&&p(C,k.containerRole);const R=t.wrapperEl,H=k.id||R.getAttribute("id")||`swiper-wrapper-${c(16)}`,I=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";x(R,H),y(R,I),D();let{nextEl:G,prevEl:q}=t.navigation?t.navigation:{};G=ne(G),q=ne(q),G&&G.forEach(se=>A(se,H,k.nextSlideMessage)),q&&q.forEach(se=>A(se,H,k.prevSlideMessage)),M()&&ne(t.pagination.el).forEach(ae=>{ae.addEventListener("keydown",S)}),Me().addEventListener("visibilitychange",L),t.el.addEventListener("focus",O,!0),t.el.addEventListener("focus",O,!0),t.el.addEventListener("pointerdown",P,!0),t.el.addEventListener("pointerup",N,!0)};function j(){o&&o.remove();let{nextEl:k,prevEl:C}=t.navigation?t.navigation:{};k=ne(k),C=ne(C),k&&k.forEach(H=>H.removeEventListener("keydown",S)),C&&C.forEach(H=>H.removeEventListener("keydown",S)),M()&&ne(t.pagination.el).forEach(I=>{I.removeEventListener("keydown",S)}),Me().removeEventListener("visibilitychange",L),t.el&&typeof t.el!="string"&&(t.el.removeEventListener("focus",O,!0),t.el.removeEventListener("pointerdown",P,!0),t.el.removeEventListener("pointerup",N,!0))}r("beforeInit",()=>{o=Nt("span",t.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),r("afterInit",()=>{t.params.a11y.enabled&&z()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&D()}),r("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&E()}),r("paginationUpdate",()=>{t.params.a11y.enabled&&_()}),r("destroy",()=>{t.params.a11y.enabled&&j()})}function Fc(e){let{swiper:t,extendParams:n,emit:r,once:o}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(t.params.cssMode)return;const l=t.getTranslate();t.setTranslate(l),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function i(){if(t.params.cssMode)return;const{touchEventsData:l,touches:c}=t;l.velocities.length===0&&l.velocities.push({position:c[t.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:c[t.isHorizontal()?"currentX":"currentY"],time:_e()})}function a(l){let{currentPos:c}=l;if(t.params.cssMode)return;const{params:d,wrapperEl:u,rtlTranslate:p,snapGrid:v,touchEventsData:g}=t,x=_e()-g.touchStartTime;if(c<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(c>-t.maxTranslate()){t.slides.length<v.length?t.slideTo(v.length-1):t.slideTo(t.slides.length-1);return}if(d.freeMode.momentum){if(g.velocities.length>1){const _=g.velocities.pop(),A=g.velocities.pop(),P=_.position-A.position,N=_.time-A.time;t.velocity=P/N,t.velocity/=2,Math.abs(t.velocity)<d.freeMode.minimumVelocity&&(t.velocity=0),(N>150||_e()-_.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=d.freeMode.momentumVelocityRatio,g.velocities.length=0;let y=1e3*d.freeMode.momentumRatio;const b=t.velocity*y;let h=t.translate+b;p&&(h=-h);let S=!1,E;const T=Math.abs(t.velocity)*20*d.freeMode.momentumBounceRatio;let M;if(h<t.maxTranslate())d.freeMode.momentumBounce?(h+t.maxTranslate()<-T&&(h=t.maxTranslate()-T),E=t.maxTranslate(),S=!0,g.allowMomentumBounce=!0):h=t.maxTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(h>t.minTranslate())d.freeMode.momentumBounce?(h-t.minTranslate()>T&&(h=t.minTranslate()+T),E=t.minTranslate(),S=!0,g.allowMomentumBounce=!0):h=t.minTranslate(),d.loop&&d.centeredSlides&&(M=!0);else if(d.freeMode.sticky){let _;for(let A=0;A<v.length;A+=1)if(v[A]>-h){_=A;break}Math.abs(v[_]-h)<Math.abs(v[_-1]-h)||t.swipeDirection==="next"?h=v[_]:h=v[_-1],h=-h}if(M&&o("transitionEnd",()=>{t.loopFix()}),t.velocity!==0){if(p?y=Math.abs((-h-t.translate)/t.velocity):y=Math.abs((h-t.translate)/t.velocity),d.freeMode.sticky){const _=Math.abs((p?-h:h)-t.translate),A=t.slidesSizesGrid[t.activeIndex];_<A?y=d.speed:_<2*A?y=d.speed*1.5:y=d.speed*2.5}}else if(d.freeMode.sticky){t.slideToClosest();return}d.freeMode.momentumBounce&&S?(t.updateProgress(E),t.setTransition(y),t.setTranslate(h),t.transitionStart(!0,t.swipeDirection),t.animating=!0,Un(u,()=>{!t||t.destroyed||!g.allowMomentumBounce||(r("momentumBounce"),t.setTransition(d.speed),setTimeout(()=>{t.setTranslate(E),Un(u,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(h),t.setTransition(y),t.setTranslate(h),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,Un(u,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(h),t.updateActiveIndex(),t.updateSlidesClasses()}else if(d.freeMode.sticky){t.slideToClosest();return}else d.freeMode&&r("_freeModeNoMomentumRelease");(!d.freeMode.momentum||x>=d.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}Object.assign(t,{freeMode:{onTouchStart:s,onTouchMove:i,onTouchEnd:a}})}let qn;function Vc(){const e=he(),t=Me();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Xo(){return qn||(qn=Vc()),qn}let Xn;function Hc(e){let{userAgent:t}=e===void 0?{}:e;const n=Xo(),r=he(),o=r.navigator.platform,s=t||r.navigator.userAgent,i={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=o==="Win32";let g=o==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&g&&n.touch&&m.indexOf(`${a}x${l}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),g=!1),c&&!v&&(i.os="android",i.android=!0),(d||p||u)&&(i.os="ios",i.ios=!0),i}function Ko(e){return e===void 0&&(e={}),Xn||(Xn=Hc(e)),Xn}let Kn;function Wc(){const e=he(),t=Ko();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));n=l<16||l===16&&c<2}}const o=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),i=s||o&&t.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:i,isWebView:o}}function Zo(){return Kn||(Kn=Wc()),Kn}function Gc(e){let{swiper:t,on:n,emit:r}=e;const o=he();let s=null,i=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(u=>{i=o.requestAnimationFrame(()=>{const{width:p,height:v}=t;let g=p,m=v;u.forEach(x=>{let{contentBoxSize:y,contentRect:b,target:h}=x;h&&h!==t.el||(g=b?b.width:(y[0]||y).inlineSize,m=b?b.height:(y[0]||y).blockSize)}),(g!==p||m!==v)&&a()})}),s.observe(t.el))},c=()=>{i&&o.cancelAnimationFrame(i),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},d=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof o.ResizeObserver<"u"){l();return}o.addEventListener("resize",a),o.addEventListener("orientationchange",d)}),n("destroy",()=>{c(),o.removeEventListener("resize",a),o.removeEventListener("orientationchange",d)})}function Uc(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const s=[],i=he(),a=function(d,u){u===void 0&&(u={});const p=i.MutationObserver||i.WebkitMutationObserver,v=new p(g=>{if(t.__preventObserver__)return;if(g.length===1){o("observerUpdate",g[0]);return}const m=function(){o("observerUpdate",g[0])};i.requestAnimationFrame?i.requestAnimationFrame(m):i.setTimeout(m,0)});v.observe(d,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:t.isElement||(typeof u.childList>"u"?!0:u).childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),s.push(v)},l=()=>{if(t.params.observer){if(t.params.observeParents){const d=rn(t.hostEl);for(let u=0;u<d.length;u+=1)a(d[u])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}},c=()=>{s.forEach(d=>{d.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",c)}var Yc={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const o=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][o](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function o(){r.off(e,o),o.__emitterProxy&&delete o.__emitterProxy;for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];t.apply(r,i)}return o.__emitterProxy=t,r.on(e,o,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((o,s)=>{(o===t||o.__emitterProxy&&o.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return typeof s[0]=="string"||Array.isArray(s[0])?(t=s[0],n=s.slice(1,s.length),r=e):(t=s[0].events,n=s[0].data,r=s[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(l=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(c=>{c.apply(r,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(c=>{c.apply(r,n)})}),e}};function qc(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Ke(r,"padding-left")||0,10)-parseInt(Ke(r,"padding-right")||0,10),n=n-parseInt(Ke(r,"padding-top")||0,10)-parseInt(Ke(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Xc(){const e=this;function t(P,N){return parseFloat(P.getPropertyValue(e.getDirectionLabel(N))||0)}const n=e.params,{wrapperEl:r,slidesEl:o,size:s,rtlTranslate:i,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=Re(o,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let p=[];const v=[],g=[];let m=n.slidesOffsetBefore;typeof m=="function"&&(m=n.slidesOffsetBefore.call(e));let x=n.slidesOffsetAfter;typeof x=="function"&&(x=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,b=e.slidesGrid.length;let h=n.spaceBetween,S=-m,E=0,T=0;if(typeof s>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*s:typeof h=="string"&&(h=parseFloat(h)),e.virtualSize=-h,d.forEach(P=>{i?P.style.marginLeft="":P.style.marginRight="",P.style.marginBottom="",P.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(tn(r,"--swiper-centered-offset-before",""),tn(r,"--swiper-centered-offset-after",""));const M=n.grid&&n.grid.rows>1&&e.grid;M?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();let _;const A=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(P=>typeof n.breakpoints[P].slidesPerView<"u").length>0;for(let P=0;P<u;P+=1){_=0;let N;if(d[P]&&(N=d[P]),M&&e.grid.updateSlide(P,N,d),!(d[P]&&Ke(N,"display")==="none")){if(n.slidesPerView==="auto"){A&&(d[P].style[e.getDirectionLabel("width")]="");const L=getComputedStyle(N),O=N.style.transform,D=N.style.webkitTransform;if(O&&(N.style.transform="none"),D&&(N.style.webkitTransform="none"),n.roundLengths)_=e.isHorizontal()?Yn(N,"width",!0):Yn(N,"height",!0);else{const z=t(L,"width"),j=t(L,"padding-left"),k=t(L,"padding-right"),C=t(L,"margin-left"),R=t(L,"margin-right"),H=L.getPropertyValue("box-sizing");if(H&&H==="border-box")_=z+C+R;else{const{clientWidth:I,offsetWidth:G}=N;_=z+j+k+C+R+(G-I)}}O&&(N.style.transform=O),D&&(N.style.webkitTransform=D),n.roundLengths&&(_=Math.floor(_))}else _=(s-(n.slidesPerView-1)*h)/n.slidesPerView,n.roundLengths&&(_=Math.floor(_)),d[P]&&(d[P].style[e.getDirectionLabel("width")]=`${_}px`);d[P]&&(d[P].swiperSlideSize=_),g.push(_),n.centeredSlides?(S=S+_/2+E/2+h,E===0&&P!==0&&(S=S-s/2-h),P===0&&(S=S-s/2-h),Math.abs(S)<1/1e3&&(S=0),n.roundLengths&&(S=Math.floor(S)),T%n.slidesPerGroup===0&&p.push(S),v.push(S)):(n.roundLengths&&(S=Math.floor(S)),(T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup===0&&p.push(S),v.push(S),S=S+_+h),e.virtualSize+=_+h,E=_,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+x,i&&a&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+h}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+h}px`),M&&e.grid.updateWrapperSize(_,p),!n.centeredSlides){const P=[];for(let N=0;N<p.length;N+=1){let L=p[N];n.roundLengths&&(L=Math.floor(L)),p[N]<=e.virtualSize-s&&P.push(L)}p=P,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(l&&n.loop){const P=g[0]+h;if(n.slidesPerGroup>1){const N=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),L=P*n.slidesPerGroup;for(let O=0;O<N;O+=1)p.push(p[p.length-1]+L)}for(let N=0;N<e.virtual.slidesBefore+e.virtual.slidesAfter;N+=1)n.slidesPerGroup===1&&p.push(p[p.length-1]+P),v.push(v[v.length-1]+P),e.virtualSize+=P}if(p.length===0&&(p=[0]),h!==0){const P=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");d.filter((N,L)=>!n.cssMode||n.loop?!0:L!==d.length-1).forEach(N=>{N.style[P]=`${h}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let P=0;g.forEach(L=>{P+=L+(h||0)}),P-=h;const N=P>s?P-s:0;p=p.map(L=>L<=0?-m:L>N?N+x:L)}if(n.centerInsufficientSlides){let P=0;g.forEach(L=>{P+=L+(h||0)}),P-=h;const N=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(P+N<s){const L=(s-P-N)/2;p.forEach((O,D)=>{p[D]=O-L}),v.forEach((O,D)=>{v[D]=O+L})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:v,slidesSizesGrid:g}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){tn(r,"--swiper-centered-offset-before",`${-p[0]}px`),tn(r,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const P=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+P),e.slidesGrid=e.slidesGrid.map(L=>L+N)}if(u!==c&&e.emit("slidesLengthChange"),p.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),v.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const P=`${n.containerModifierClass}backface-hidden`,N=e.el.classList.contains(P);u<=n.maxBackfaceHiddenSlides?N||e.el.classList.add(P):N&&e.el.classList.remove(P)}}function Kc(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let o=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const a=t.activeIndex+s;if(a>t.slides.length&&!r)break;n.push(i(a))}else n.push(i(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const a=n[s].offsetHeight;o=a>o?a:o}(o||o===0)&&(t.wrapperEl.style.height=`${o}px`)}function Zc(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const Jo=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function Jc(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:o,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;o&&(i=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<r.length;l+=1){const c=r[l];let d=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(d-=r[0].swiperSlideOffset);const u=(i+(n.centeredSlides?t.minTranslate():0)-d)/(c.swiperSlideSize+a),p=(i-s[0]+(n.centeredSlides?t.minTranslate():0)-d)/(c.swiperSlideSize+a),v=-(i-d),g=v+t.slidesSizesGrid[l],m=v>=0&&v<=t.size-t.slidesSizesGrid[l],x=v>=0&&v<t.size-1||g>1&&g<=t.size||v<=0&&g>=t.size;x&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l)),Jo(c,x,n.slideVisibleClass),Jo(c,m,n.slideFullyVisibleClass),c.progress=o?-u:u,c.originalProgress=o?-p:p}}function Qc(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:o,isBeginning:s,isEnd:i,progressLoop:a}=t;const l=s,c=i;if(r===0)o=0,s=!0,i=!0;else{o=(e-t.minTranslate())/r;const d=Math.abs(e-t.minTranslate())<1,u=Math.abs(e-t.maxTranslate())<1;s=d||o<=0,i=u||o>=1,d&&(o=0),u&&(o=1)}if(n.loop){const d=t.getSlideIndexByData(0),u=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[d],v=t.slidesGrid[u],g=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=p?a=(m-p)/g:a=(m+g-v)/g,a>1&&(a-=1)}Object.assign(t,{progress:o,progressLoop:a,isBeginning:s,isEnd:i}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),i&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!i)&&t.emit("fromEdge"),t.emit("progress",o)}const Zn=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function ed(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:o}=e,s=e.virtual&&n.virtual.enabled,i=e.grid&&n.grid&&n.grid.rows>1,a=u=>Re(r,`.${n.slideClass}${u}, swiper-slide${u}`)[0];let l,c,d;if(s)if(n.loop){let u=o-e.virtual.slidesBefore;u<0&&(u=e.virtual.slides.length+u),u>=e.virtual.slides.length&&(u-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${u}"]`)}else l=a(`[data-swiper-slide-index="${o}"]`);else i?(l=t.find(u=>u.column===o),d=t.find(u=>u.column===o+1),c=t.find(u=>u.column===o-1)):l=t[o];l&&(i||(d=Lc(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=Rc(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=t[t.length-1]))),t.forEach(u=>{Zn(u,u===l,n.slideActiveClass),Zn(u,u===d,n.slideNextClass),Zn(u,u===c,n.slidePrevClass)}),e.emitSlidesClasses()}const on=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let o=r.querySelector(`.${e.params.lazyPreloaderClass}`);!o&&e.isElement&&(r.shadowRoot?o=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(o=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),o&&o.remove())})),o&&o.remove()}},Jn=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Qn=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),o=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=o,a=[i-t];a.push(...Array.from({length:t}).map((l,c)=>i+r+c)),e.slides.forEach((l,c)=>{a.includes(l.column)&&Jn(e,c)});return}const s=o+r-1;if(e.params.rewind||e.params.loop)for(let i=o-t;i<=s+t;i+=1){const a=(i%n+n)%n;(a<o||a>s)&&Jn(e,a)}else for(let i=Math.max(o-t,0);i<=Math.min(s+t,n-1);i+=1)i!==o&&(i>s||i<o)&&Jn(e,i)};function td(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let o;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?r>=t[s]&&r<t[s+1]-(t[s+1]-t[s])/2?o=s:r>=t[s]&&r<t[s+1]&&(o=s+1):r>=t[s]&&(o=s);return n.normalizeSlideIndex&&(o<0||typeof o>"u")&&(o=0),o}function nd(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:o,activeIndex:s,realIndex:i,snapIndex:a}=t;let l=e,c;const d=v=>{let g=v-t.virtual.slidesBefore;return g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),g};if(typeof l>"u"&&(l=td(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const v=Math.min(o.slidesPerGroupSkip,l);c=v+Math.floor((l-v)/o.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===s&&!t.params.loop){c!==a&&(t.snapIndex=c,t.emit("snapIndexChange"));return}if(l===s&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=d(l);return}const u=t.grid&&o.grid&&o.grid.rows>1;let p;if(t.virtual&&o.virtual.enabled&&o.loop)p=d(l);else if(u){const v=t.slides.find(m=>m.column===l);let g=parseInt(v.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(t.slides.indexOf(v),0)),p=Math.floor(g/o.grid.rows)}else if(t.slides[l]){const v=t.slides[l].getAttribute("data-swiper-slide-index");v?p=parseInt(v,10):p=l}else p=l;Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:i,realIndex:p,previousIndex:s,activeIndex:l}),t.initialized&&Qn(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==p&&t.emit("realIndexChange"),t.emit("slideChange"))}function rd(e,t){const n=this,r=n.params;let o=e.closest(`.${r.slideClass}, swiper-slide`);!o&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!o&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(o=a)});let s=!1,i;if(o){for(let a=0;a<n.slides.length;a+=1)if(n.slides[a]===o){s=!0,i=a;break}}if(o&&s)n.clickedSlide=o,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=i;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var od={updateSize:qc,updateSlides:Xc,updateAutoHeight:Kc,updateSlidesOffset:Zc,updateSlidesProgress:Jc,updateProgress:Qc,updateSlidesClasses:ed,updateActiveIndex:nd,updateClickedSlide:rd};function sd(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:n,rtlTranslate:r,translate:o,wrapperEl:s}=t;if(n.virtualTranslate)return r?-o:o;if(n.cssMode)return o;let i=Mc(s,e);return i+=t.cssOverflowAdjustment(),r&&(i=-i),i||0}function id(e,t){const n=this,{rtlTranslate:r,params:o,wrapperEl:s,progress:i}=n;let a=0,l=0;const c=0;n.isHorizontal()?a=r?-e:e:l=e,o.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:l,o.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-l:o.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let d;const u=n.maxTranslate()-n.minTranslate();u===0?d=0:d=(e-n.minTranslate())/u,d!==i&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function ad(){return-this.snapGrid[0]}function ld(){return-this.snapGrid[this.snapGrid.length-1]}function cd(e,t,n,r,o){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const s=this,{params:i,wrapperEl:a}=s;if(s.animating&&i.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let d;if(r&&e>l?d=l:r&&e<c?d=c:d=e,s.updateProgress(d),i.cssMode){const u=s.isHorizontal();if(t===0)a[u?"scrollLeft":"scrollTop"]=-d;else{if(!s.support.smoothScroll)return Yo({swiper:s,targetPosition:-d,side:u?"left":"top"}),!0;a.scrollTo({[u?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",t,o),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(p){!s||s.destroyed||p.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var dd={getTranslate:sd,setTranslate:id,minTranslate:ad,maxTranslate:ld,translateTo:cd};function ud(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function Qo(e){let{swiper:t,runCallbacks:n,direction:r,step:o}=e;const{activeIndex:s,previousIndex:i}=t;let a=r;a||(s>i?a="next":s<i?a="prev":a="reset"),t.emit(`transition${o}`),n&&a==="reset"?t.emit(`slideResetTransition${o}`):n&&s!==i&&(t.emit(`slideChangeTransition${o}`),a==="next"?t.emit(`slideNextTransition${o}`):t.emit(`slidePrevTransition${o}`))}function fd(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Qo({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function pd(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Qo({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var md={setTransition:ud,transitionStart:fd,transitionEnd:pd};function hd(e,t,n,r,o){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;let i=e;i<0&&(i=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:v,enabled:g}=s;if(!g&&!r&&!o||s.destroyed||s.animating&&a.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=s.params.speed);const m=Math.min(s.params.slidesPerGroupSkip,i);let x=m+Math.floor((i-m)/s.params.slidesPerGroup);x>=l.length&&(x=l.length-1);const y=-l[x];if(a.normalizeSlideIndex)for(let M=0;M<c.length;M+=1){const _=-Math.floor(y*100),A=Math.floor(c[M]*100),P=Math.floor(c[M+1]*100);typeof c[M+1]<"u"?_>=A&&_<P-(P-A)/2?i=M:_>=A&&_<P&&(i=M+1):_>=A&&(i=M)}if(s.initialized&&i!==u&&(!s.allowSlideNext&&(p?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())||!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(u||0)!==i))return!1;i!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(y);let b;i>u?b="next":i<u?b="prev":b="reset";const h=s.virtual&&s.params.virtual.enabled;if(!(h&&o)&&(p&&-y===s.translate||!p&&y===s.translate))return s.updateActiveIndex(i),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(y),b!=="reset"&&(s.transitionStart(n,b),s.transitionEnd(n,b)),!1;if(a.cssMode){const M=s.isHorizontal(),_=p?y:-y;if(t===0)h&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),h&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[M?"scrollLeft":"scrollTop"]=_})):v[M?"scrollLeft":"scrollTop"]=_,h&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Yo({swiper:s,targetPosition:_,side:M?"left":"top"}),!0;v.scrollTo({[M?"left":"top"]:_,behavior:"smooth"})}return!0}const T=Zo().isSafari;return h&&!o&&T&&s.isElement&&s.virtual.update(!1,!1,i),s.setTransition(t),s.setTranslate(y),s.updateActiveIndex(i),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,b),t===0?s.transitionEnd(n,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(_){!s||s.destroyed||_.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,b))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function gd(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const o=this;if(o.destroyed)return;typeof t>"u"&&(t=o.params.speed);const s=o.grid&&o.params.grid&&o.params.grid.rows>1;let i=e;if(o.params.loop)if(o.virtual&&o.params.virtual.enabled)i=i+o.virtual.slidesBefore;else{let a;if(s){const p=i*o.params.grid.rows;a=o.slides.find(v=>v.getAttribute("data-swiper-slide-index")*1===p).column}else a=o.getSlideIndexByData(i);const l=s?Math.ceil(o.slides.length/o.params.grid.rows):o.slides.length,{centeredSlides:c}=o.params;let d=o.params.slidesPerView;d==="auto"?d=o.slidesPerViewDynamic():(d=Math.ceil(parseFloat(o.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let u=l-a<d;if(c&&(u=u||a<Math.ceil(d/2)),r&&c&&o.params.slidesPerView!=="auto"&&!s&&(u=!1),u){const p=c?a<o.activeIndex?"prev":"next":a-o.activeIndex-1<o.params.slidesPerView?"next":"prev";o.loopFix({direction:p,slideTo:!0,activeSlideIndex:p==="next"?a+1:a-l+1,slideRealIndex:p==="next"?o.realIndex:void 0})}if(s){const p=i*o.params.grid.rows;i=o.slides.find(v=>v.getAttribute("data-swiper-slide-index")*1===p).column}else i=o.getSlideIndexByData(i)}return requestAnimationFrame(()=>{o.slideTo(i,t,n,r)}),o}function vd(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:o,params:s,animating:i}=r;if(!o||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<s.slidesPerGroupSkip?1:a,c=r.virtual&&s.virtual.enabled;if(s.loop){if(i&&!c&&s.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function bd(e,t,n){t===void 0&&(t=!0);const r=this,{params:o,snapGrid:s,slidesGrid:i,rtlTranslate:a,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const d=r.virtual&&o.virtual.enabled;if(o.loop){if(c&&!d&&o.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const u=a?r.translate:-r.translate;function p(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}const v=p(u),g=s.map(b=>p(b)),m=o.freeMode&&o.freeMode.enabled;let x=s[g.indexOf(v)-1];if(typeof x>"u"&&(o.cssMode||m)){let b;s.forEach((h,S)=>{v>=h&&(b=S)}),typeof b<"u"&&(x=m?s[b]:s[b>0?b-1:b])}let y=0;if(typeof x<"u"&&(y=i.indexOf(x),y<0&&(y=r.activeIndex-1),o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(y=y-r.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),o.rewind&&r.isBeginning){const b=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(b,e,t,n)}else if(o.loop&&r.activeIndex===0&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(y,e,t,n)}),!0;return r.slideTo(y,e,t,n)}function yd(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function wd(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const o=this;if(o.destroyed)return;typeof e>"u"&&(e=o.params.speed);let s=o.activeIndex;const i=Math.min(o.params.slidesPerGroupSkip,s),a=i+Math.floor((s-i)/o.params.slidesPerGroup),l=o.rtlTranslate?o.translate:-o.translate;if(l>=o.snapGrid[a]){const c=o.snapGrid[a],d=o.snapGrid[a+1];l-c>(d-c)*r&&(s+=o.params.slidesPerGroup)}else{const c=o.snapGrid[a-1],d=o.snapGrid[a];l-c<=(d-c)*r&&(s-=o.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,o.slidesGrid.length-1),o.slideTo(s,e,t,n)}function xd(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let o=e.getSlideIndexWhenGrid(e.clickedIndex),s;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,a=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(s):o>(a?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),o=e.getSlideIndex(Re(n,`${i}[data-swiper-slide-index="${s}"]`)[0]),Qt(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}var Sd={slideTo:hd,slideToLoop:gd,slideNext:vd,slidePrev:bd,slideReset:yd,slideToClosest:wd,slideToClickedSlide:xd};function Ed(e,t){const n=this,{params:r,slidesEl:o}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const s=()=>{Re(o,`.${r.slideClass}, swiper-slide`).forEach((v,g)=>{v.setAttribute("data-swiper-slide-index",g)})},i=()=>{const p=Re(o,`.${r.slideBlankClass}`);p.forEach(v=>{v.remove()}),p.length>0&&(n.recalcSlides(),n.updateSlides())},a=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||a)&&i();const l=r.slidesPerGroup*(a?r.grid.rows:1),c=n.slides.length%l!==0,d=a&&n.slides.length%r.grid.rows!==0,u=p=>{for(let v=0;v<p;v+=1){const g=n.isElement?Nt("swiper-slide",[r.slideBlankClass]):Nt("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(g)}};if(c){if(r.loopAddBlankSlides){const p=l-n.slides.length%l;u(p),n.recalcSlides(),n.updateSlides()}else nn("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(d){if(r.loopAddBlankSlides){const p=r.grid.rows-n.slides.length%r.grid.rows;u(p),n.recalcSlides(),n.updateSlides()}else nn("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();n.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t})}function Cd(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:o,activeSlideIndex:s,initial:i,byController:a,byMousewheel:l}=e===void 0?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:u,allowSlideNext:p,slidesEl:v,params:g}=c,{centeredSlides:m,initialSlide:x}=g;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&g.virtual.enabled){n&&(!g.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):g.centeredSlides&&c.snapIndex<g.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=p,c.emit("loopFix");return}let y=g.slidesPerView;y==="auto"?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(g.slidesPerView,10)),m&&y%2===0&&(y=y+1));const b=g.slidesPerGroupAuto?y:g.slidesPerGroup;let h=m?Math.max(b,Math.ceil(y/2)):b;h%b!==0&&(h+=b-h%b),h+=g.loopAdditionalSlides,c.loopedSlides=h;const S=c.grid&&g.grid&&g.grid.rows>1;d.length<y+h||c.params.effect==="cards"&&d.length<y+h*2?nn("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&g.grid.fill==="row"&&nn("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],T=[],M=S?Math.ceil(d.length/g.grid.rows):d.length,_=i&&M-x<y&&!m;let A=_?x:c.activeIndex;typeof s>"u"?s=c.getSlideIndex(d.find(j=>j.classList.contains(g.slideActiveClass))):A=s;const P=r==="next"||!r,N=r==="prev"||!r;let L=0,O=0;const z=(S?d[s].column:s)+(m&&typeof o>"u"?-y/2+.5:0);if(z<h){L=Math.max(h-z,b);for(let j=0;j<h-z;j+=1){const k=j-Math.floor(j/M)*M;if(S){const C=M-k-1;for(let R=d.length-1;R>=0;R-=1)d[R].column===C&&E.push(R)}else E.push(M-k-1)}}else if(z+y>M-h){O=Math.max(z-(M-h*2),b),_&&(O=Math.max(O,y-M+x+1));for(let j=0;j<O;j+=1){const k=j-Math.floor(j/M)*M;S?d.forEach((C,R)=>{C.column===k&&T.push(R)}):T.push(k)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&d.length<y+h*2&&(T.includes(s)&&T.splice(T.indexOf(s),1),E.includes(s)&&E.splice(E.indexOf(s),1)),N&&E.forEach(j=>{d[j].swiperLoopMoveDOM=!0,v.prepend(d[j]),d[j].swiperLoopMoveDOM=!1}),P&&T.forEach(j=>{d[j].swiperLoopMoveDOM=!0,v.append(d[j]),d[j].swiperLoopMoveDOM=!1}),c.recalcSlides(),g.slidesPerView==="auto"?c.updateSlides():S&&(E.length>0&&N||T.length>0&&P)&&c.slides.forEach((j,k)=>{c.grid.updateSlide(k,j,c.slides)}),g.watchSlidesProgress&&c.updateSlidesOffset(),n){if(E.length>0&&N){if(typeof t>"u"){const j=c.slidesGrid[A],C=c.slidesGrid[A+L]-j;l?c.setTranslate(c.translate-C):(c.slideTo(A+Math.ceil(L),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-C,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-C))}else if(o){const j=S?E.length/g.grid.rows:E.length;c.slideTo(c.activeIndex+j,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(T.length>0&&P)if(typeof t>"u"){const j=c.slidesGrid[A],C=c.slidesGrid[A-O]-j;l?c.setTranslate(c.translate-C):(c.slideTo(A-O,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-C,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-C))}else{const j=S?T.length/g.grid.rows:T.length;c.slideTo(c.activeIndex-j,0,!1,!0)}}if(c.allowSlidePrev=u,c.allowSlideNext=p,c.controller&&c.controller.control&&!a){const j={slideRealIndex:t,direction:r,setTranslate:o,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(k=>{!k.destroyed&&k.params.loop&&k.loopFix({...j,slideTo:k.params.slidesPerView===g.slidesPerView?n:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...j,slideTo:c.controller.control.params.slidesPerView===g.slidesPerView?n:!1})}c.emit("loopFix")}function Td(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(o=>{const s=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;r[s]=o}),e.slides.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),r.forEach(o=>{n.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Pd={loopCreate:Ed,loopFix:Cd,loopDestroy:Td};function _d(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function kd(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Md={setGrabCursor:_d,unsetGrabCursor:kd};function Ad(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Me()||r===he())return null;r.assignedSlot&&(r=r.assignedSlot);const o=r.closest(e);return!o&&!r.getRootNode?null:o||n(r.getRootNode().host)}return n(t)}function es(e,t,n){const r=he(),{params:o}=e,s=o.edgeSwipeDetection,i=o.edgeSwipeThreshold;return s&&(n<=i||n>=r.innerWidth-i)?s==="prevent"?(t.preventDefault(),!0):!1:!0}function Nd(e){const t=this,n=Me();let r=e;r.originalEvent&&(r=r.originalEvent);const o=t.touchEventsData;if(r.type==="pointerdown"){if(o.pointerId!==null&&o.pointerId!==r.pointerId)return;o.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(o.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){es(t,r,r.targetTouches[0].pageX);return}const{params:s,touches:i,enabled:a}=t;if(!a||!s.simulateTouch&&r.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let l=r.target;if(s.touchEventsTarget==="wrapper"&&!Ic(l,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||o.isTouched&&o.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",d=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&d&&(l=d[0]);const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(p?Ad(u,l):l.closest(u))){t.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;i.currentX=r.pageX,i.currentY=r.pageY;const v=i.currentX,g=i.currentY;if(!es(t,r,v))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=v,i.startY=g,o.touchStartTime=_e(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let m=!0;l.matches(o.focusableElements)&&(m=!1,l.nodeName==="SELECT"&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==l&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!l.matches(o.focusableElements))&&n.activeElement.blur();const x=m&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||x)&&!l.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function Id(e){const t=Me(),n=this,r=n.touchEventsData,{params:o,touches:s,rtlTranslate:i,enabled:a}=n;if(!a||!o.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(T=>T.identifier===r.touchId),!c||c.identifier!==r.touchId)return}else c=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const d=c.pageX,u=c.pageY;if(l.preventedByNestedSwiper){s.startX=d,s.startY=u;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u}),r.touchStartTime=_e());return}if(o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(u<s.startY&&n.translate<=n.maxTranslate()||u>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(i&&(d>s.startX&&-n.translate<=n.maxTranslate()||d<s.startX&&-n.translate>=n.minTranslate()))return;if(!i&&(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==l.target&&l.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=u;const p=s.currentX-s.startX,v=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(p**2+v**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let T;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:p*p+v*v>=25&&(T=Math.atan2(Math.abs(v),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?T>o.touchAngle:90-T>o.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!o.cssMode&&l.cancelable&&l.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&l.stopPropagation();let g=n.isHorizontal()?p:v,m=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(g=Math.abs(g)*(i?1:-1),m=Math.abs(m)*(i?1:-1)),s.diff=g,g*=o.touchRatio,i&&(g=-g,m=-m);const x=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const y=n.params.loop&&!o.cssMode,b=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(y&&b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(T)}r.allowMomentumBounce=!1,o.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let h;if(new Date().getTime(),o._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&x!==n.touchesDirection&&y&&b&&Math.abs(g)>=1){Object.assign(s,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let S=!0,E=o.resistanceRatio;if(o.touchReleaseOnEdges&&(E=0),g>0?(y&&b&&!h&&r.allowThresholdMove&&r.currentTranslate>(o.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(S=!1,o.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**E))):g<0&&(y&&b&&!h&&r.allowThresholdMove&&r.currentTranslate<(o.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(o.slidesPerView!=="auto"&&n.slides.length-o.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(o.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(S=!1,o.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-g)**E))),S&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),o.threshold>0)if(Math.abs(g)>o.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!o.followFinger||o.cssMode||((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Od(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let o;if(r.type==="touchend"||r.type==="touchcancel"){if(o=[...r.changedTouches].find(E=>E.identifier===n.touchId),!o||o.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;o=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:i,touches:a,rtlTranslate:l,slidesGrid:c,enabled:d}=t;if(!d||!i.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=_e(),p=u-n.touchStartTime;if(t.allowClick){const E=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(E&&E[0]||r.target,E),t.emit("tap click",r),p<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=_e(),Qt(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(i.followFinger?v=l?t.translate:-t.translate:v=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}const g=v>=-t.maxTranslate()&&!t.params.loop;let m=0,x=t.slidesSizesGrid[0];for(let E=0;E<c.length;E+=E<i.slidesPerGroupSkip?1:i.slidesPerGroup){const T=E<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof c[E+T]<"u"?(g||v>=c[E]&&v<c[E+T])&&(m=E,x=c[E+T]-c[E]):(g||v>=c[E])&&(m=E,x=c[c.length-1]-c[c.length-2])}let y=null,b=null;i.rewind&&(t.isBeginning?b=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const h=(v-c[m])/x,S=m<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(p>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(h>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?y:m+S):t.slideTo(m)),t.swipeDirection==="prev"&&(h>1-i.longSwipesRatio?t.slideTo(m+S):b!==null&&h<0&&Math.abs(h)>i.longSwipesRatio?t.slideTo(b):t.slideTo(m))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+S):t.slideTo(m):(t.swipeDirection==="next"&&t.slideTo(y!==null?y:m+S),t.swipeDirection==="prev"&&t.slideTo(b!==null?b:m))}}function ts(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:o,snapGrid:s}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=i&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!i?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=o,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function Rd(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ld(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let o;const s=e.maxTranslate()-e.minTranslate();s===0?o=0:o=(e.translate-e.minTranslate())/s,o!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function jd(e){const t=this;on(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function Dd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const ns=(e,t)=>{const n=Me(),{params:r,el:o,wrapperEl:s,device:i}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;!o||typeof o=="string"||(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),o[l]("touchstart",e.onTouchStart,{passive:!1}),o[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&o[l]("click",e.onClick,!0),r.cssMode&&s[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",ts,!0):e[c]("observerUpdate",ts,!0),o[l]("load",e.onLoad,{capture:!0}))};function $d(){const e=this,{params:t}=e;e.onTouchStart=Nd.bind(e),e.onTouchMove=Id.bind(e),e.onTouchEnd=Od.bind(e),e.onDocumentTouchStart=Dd.bind(e),t.cssMode&&(e.onScroll=Ld.bind(e)),e.onClick=Rd.bind(e),e.onLoad=jd.bind(e),ns(e,"on")}function zd(){ns(this,"off")}var Bd={attachEvents:$d,detachEvents:zd};const rs=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Fd(){const e=this,{realIndex:t,initialized:n,params:r,el:o}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const i=Me(),a=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:i.querySelector(r.breakpointsBase),c=e.getBreakpoint(s,a,l);if(!c||e.currentBreakpoint===c)return;const u=(c in s?s[c]:void 0)||e.originalParams,p=rs(e,r),v=rs(e,u),g=e.params.grabCursor,m=u.grabCursor,x=r.enabled;p&&!v?(o.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!p&&v&&(o.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&r.grid.fill==="column")&&o.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),g&&!m?e.unsetGrabCursor():!g&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(T=>{if(typeof u[T]>"u")return;const M=r[T]&&r[T].enabled,_=u[T]&&u[T].enabled;M&&!_&&e[T].disable(),!M&&_&&e[T].enable()});const y=u.direction&&u.direction!==r.direction,b=r.loop&&(u.slidesPerView!==r.slidesPerView||y),h=r.loop;y&&n&&e.changeDirection(),Ee(e.params,u);const S=e.params.enabled,E=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),x&&!S?e.disable():!x&&S&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",u),n&&(b?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!h&&E?(e.loopCreate(t),e.updateSlides()):h&&!E&&e.loopDestroy()),e.emit("breakpoint",u)}function Vd(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const o=he(),s=t==="window"?o.innerHeight:n.clientHeight,i=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});i.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<i.length;a+=1){const{point:l,value:c}=i[a];t==="window"?o.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}var Hd={setBreakpoint:Fd,getBreakpoint:Vd};function Wd(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(o=>{r[o]&&n.push(t+o)}):typeof r=="string"&&n.push(t+r)}),n}function Gd(){const e=this,{classNames:t,params:n,rtl:r,el:o,device:s}=e,i=Wd(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...i),o.classList.add(...t),e.emitContainerClasses()}function Ud(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var Yd={addClasses:Gd,removeClasses:Ud};function qd(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const o=e.slides.length-1,s=e.slidesGrid[o]+e.slidesSizesGrid[o]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var Xd={checkOverflow:qd},er={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Kd(e,t){return function(r){r===void 0&&(r={});const o=Object.keys(r)[0],s=r[o];if(typeof s!="object"||s===null){Ee(t,r);return}if(e[o]===!0&&(e[o]={enabled:!0}),o==="navigation"&&e[o]&&e[o].enabled&&!e[o].prevEl&&!e[o].nextEl&&(e[o].auto=!0),["pagination","scrollbar"].indexOf(o)>=0&&e[o]&&e[o].enabled&&!e[o].el&&(e[o].auto=!0),!(o in e&&"enabled"in s)){Ee(t,r);return}typeof e[o]=="object"&&!("enabled"in e[o])&&(e[o].enabled=!0),e[o]||(e[o]={enabled:!1}),Ee(t,r)}}const tr={eventsEmitter:Yc,update:od,translate:dd,transition:md,slide:Sd,loop:Pd,grabCursor:Md,events:Bd,breakpoints:Hd,checkOverflow:Xd,classes:Yd},nr={};let rr=class Ue{constructor(){let t,n;for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?n=o[0]:[t,n]=o,n||(n={}),n=Ee({},n),t&&!n.el&&(n.el=t);const i=Me();if(n.el&&typeof n.el=="string"&&i.querySelectorAll(n.el).length>1){const d=[];return i.querySelectorAll(n.el).forEach(u=>{const p=Ee({},n,{el:u});d.push(new Ue(p))}),d}const a=this;a.__swiper__=!0,a.support=Xo(),a.device=Ko({userAgent:n.userAgent}),a.browser=Zo(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};a.modules.forEach(d=>{d({params:n,swiper:a,extendParams:Kd(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=Ee({},er,l);return a.params=Ee({},c,nr,n),a.originalParams=Ee({},a.params),a.passedParams=Ee({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(d=>{a.on(d,a.params.on[d])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,o=Re(n,`.${r.slideClass}, swiper-slide`),s=It(o[0]);return It(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Re(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const o=r.minTranslate(),i=(r.maxTranslate()-o)*t+o;r.translateTo(i,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const o=t.getSlideClasses(r);n.push({slideEl:r,classNames:o}),t.emit("_slideClass",r,o)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:o,slides:s,slidesGrid:i,slidesSizesGrid:a,size:l,activeIndex:c}=r;let d=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let u=s[c]?Math.ceil(s[c].swiperSlideSize):0,p;for(let v=c+1;v<s.length;v+=1)s[v]&&!p&&(u+=Math.ceil(s[v].swiperSlideSize),d+=1,u>l&&(p=!0));for(let v=c-1;v>=0;v-=1)s[v]&&!p&&(u+=s[v].swiperSlideSize,d+=1,u>l&&(p=!0))}else if(t==="current")for(let u=c+1;u<s.length;u+=1)(n?i[u]+a[u]-i[c]<l:i[u]-i[c]<l)&&(d+=1);else for(let u=c-1;u>=0;u-=1)i[c]-i[u]<l&&(d+=1);return d}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete&&on(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function o(){const i=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)o(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const i=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(i.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||o()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,o=r.params.direction;return t||(t=o==="horizontal"?"vertical":"horizontal"),t===o||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${o}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const o=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(o()):Re(r,o())[0])();return!i&&n.params.createElements&&(i=Nt("div",n.params.wrapperClass),r.append(i),Re(r,`.${n.params.slideClass}`).forEach(a=>{i.append(a)})),Object.assign(n,{el:r,wrapperEl:i,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:i,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Ke(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Ke(r,"direction")==="rtl"),wrongRTL:Ke(i,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const o=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&o.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(s=>{s.complete?on(n,s):s.addEventListener("load",i=>{on(n,i.target)})}),Qn(n),n.initialized=!0,Qn(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:o,el:s,wrapperEl:i,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),o.loop&&r.loopDestroy(),n&&(r.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),i&&i.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(o.slideVisibleClass,o.slideFullyVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),_c(r)),r.destroyed=!0),null}static extendDefaults(t){Ee(nr,t)}static get extendedDefaults(){return nr}static get defaults(){return er}static installModule(t){Ue.prototype.__modules__||(Ue.prototype.__modules__=[]);const n=Ue.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Ue.installModule(n)),Ue):(Ue.installModule(t),Ue)}};Object.keys(tr).forEach(e=>{Object.keys(tr[e]).forEach(t=>{rr.prototype[t]=tr[e][t]})}),rr.use([Gc,Uc]);const os=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function lt(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function ht(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:lt(t[r])&<(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:ht(e[r],t[r]):e[r]=t[r]})}function ss(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function is(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function as(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function ls(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function Zd(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function Jd(e){let{swiper:t,slides:n,passedParams:r,changedParams:o,nextEl:s,prevEl:i,scrollbarEl:a,paginationEl:l}=e;const c=o.filter(A=>A!=="children"&&A!=="direction"&&A!=="wrapperClass"),{params:d,pagination:u,navigation:p,scrollbar:v,virtual:g,thumbs:m}=t;let x,y,b,h,S,E,T,M;o.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&d.thumbs&&(!d.thumbs.swiper||d.thumbs.swiper.destroyed)&&(x=!0),o.includes("controller")&&r.controller&&r.controller.control&&d.controller&&!d.controller.control&&(y=!0),o.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(d.pagination||d.pagination===!1)&&u&&!u.el&&(b=!0),o.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(d.scrollbar||d.scrollbar===!1)&&v&&!v.el&&(h=!0),o.includes("navigation")&&r.navigation&&(r.navigation.prevEl||i)&&(r.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(S=!0);const _=A=>{t[A]&&(t[A].destroy(),A==="navigation"?(t.isElement&&(t[A].prevEl.remove(),t[A].nextEl.remove()),d[A].prevEl=void 0,d[A].nextEl=void 0,t[A].prevEl=void 0,t[A].nextEl=void 0):(t.isElement&&t[A].el.remove(),d[A].el=void 0,t[A].el=void 0))};o.includes("loop")&&t.isElement&&(d.loop&&!r.loop?E=!0:!d.loop&&r.loop?T=!0:M=!0),c.forEach(A=>{if(lt(d[A])&<(r[A]))Object.assign(d[A],r[A]),(A==="navigation"||A==="pagination"||A==="scrollbar")&&"enabled"in r[A]&&!r[A].enabled&&_(A);else{const P=r[A];(P===!0||P===!1)&&(A==="navigation"||A==="pagination"||A==="scrollbar")?P===!1&&_(A):d[A]=r[A]}}),c.includes("controller")&&!y&&t.controller&&t.controller.control&&d.controller&&d.controller.control&&(t.controller.control=d.controller.control),o.includes("children")&&n&&g&&d.virtual.enabled?(g.slides=n,g.update(!0)):o.includes("virtual")&&g&&d.virtual.enabled&&(n&&(g.slides=n),g.update(!0)),o.includes("children")&&n&&d.loop&&(M=!0),x&&m.init()&&m.update(!0),y&&(t.controller.control=d.controller.control),b&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(d.pagination.el=l),u.init(),u.render(),u.update()),h&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(d.scrollbar.el=a),v.init(),v.updateSize(),v.setTranslate()),S&&(t.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),Ot(s,t.hostEl.constructor.nextButtonSvg),s.part.add("button-next"),t.el.appendChild(s)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),Ot(i,t.hostEl.constructor.prevButtonSvg),i.part.add("button-prev"),t.el.appendChild(i))),s&&(d.navigation.nextEl=s),i&&(d.navigation.prevEl=i),p.init(),p.update()),o.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),o.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),o.includes("direction")&&t.changeDirection(r.direction,!1),(E||M)&&t.loopDestroy(),(T||M)&&t.loopCreate(),t.update()}function Qd(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},o={};ht(n,er),n._emitClasses=!0,n.init=!1;const s={},i=os.map(l=>l.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(l=>{typeof e[l]>"u"||(i.indexOf(l)>=0?lt(e[l])?(n[l]={},o[l]={},ht(n[l],e[l]),ht(o[l],e[l])):(n[l]=e[l],o[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:s[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:o,rest:s,events:r}}function eu(e,t){let{el:n,nextEl:r,prevEl:o,paginationEl:s,scrollbarEl:i,swiper:a}=e;ss(t)&&r&&o&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=o,a.originalParams.navigation.prevEl=o),is(t)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),as(t)&&i&&(a.params.scrollbar.el=i,a.originalParams.scrollbar.el=i),a.init(n)}function tu(e,t,n,r,o){const s=[];if(!t)return s;const i=l=>{s.indexOf(l)<0&&s.push(l)};if(n&&r){const l=r.map(o),c=n.map(o);l.join("")!==c.join("")&&i("children"),r.length!==n.length&&i("children")}return os.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(lt(e[l])&<(t[l])){const c=Object.keys(e[l]),d=Object.keys(t[l]);c.length!==d.length?i(l):(c.forEach(u=>{e[l][u]!==t[l][u]&&i(l)}),d.forEach(u=>{e[l][u]!==t[l][u]&&i(l)}))}else e[l]!==t[l]&&i(l)}),s}const nu=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sn.apply(this,arguments)}function cs(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function ds(e){const t=[];return $.Children.toArray(e).forEach(n=>{cs(n)?t.push(n):n.props&&n.props.children&&ds(n.props.children).forEach(r=>t.push(r))}),t}function ru(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return $.Children.toArray(e).forEach(r=>{if(cs(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const o=ds(r.props.children);o.length>0?o.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function ou(e,t,n){if(!n)return null;const r=d=>{let u=d;return d<0?u=t.length+d:u>=t.length&&(u=u-t.length),u},o=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:i}=n,a=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,c=[];for(let d=a;d<l;d+=1)d>=s&&d<=i&&c.push(t[r(d)]);return c.map((d,u)=>$.cloneElement(d,{swiper:e,style:o,key:d.props.virtualIndex||d.key||`slide-${u}`}))}function Rt(e,t){return typeof window>"u"?$.useEffect(e,t):$.useLayoutEffect(e,t)}const us=$.createContext(null),su=$.createContext(null),fs=$.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:o="div",children:s,onSwiper:i,...a}=e===void 0?{}:e,l=!1;const[c,d]=$.useState("swiper"),[u,p]=$.useState(null),[v,g]=$.useState(!1),m=$.useRef(!1),x=$.useRef(null),y=$.useRef(null),b=$.useRef(null),h=$.useRef(null),S=$.useRef(null),E=$.useRef(null),T=$.useRef(null),M=$.useRef(null),{params:_,passedParams:A,rest:P,events:N}=Qd(a),{slides:L,slots:O}=ru(s),D=()=>{g(!v)};Object.assign(_.on,{_containerClasses(R,H){d(H)}});const z=()=>{Object.assign(_.on,N),l=!0;const R={..._};if(delete R.wrapperClass,y.current=new rr(R),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=L;const H={cache:!1,slides:L,renderExternal:p,renderExternalUpdate:!1};ht(y.current.params.virtual,H),ht(y.current.originalParams.virtual,H)}};x.current||z(),y.current&&y.current.on("_beforeBreakpoint",D);const j=()=>{l||!N||!y.current||Object.keys(N).forEach(R=>{y.current.on(R,N[R])})},k=()=>{!N||!y.current||Object.keys(N).forEach(R=>{y.current.off(R,N[R])})};$.useEffect(()=>()=>{y.current&&y.current.off("_beforeBreakpoint",D)}),$.useEffect(()=>{!m.current&&y.current&&(y.current.emitSlidesClasses(),m.current=!0)}),Rt(()=>{if(t&&(t.current=x.current),!!x.current)return y.current.destroyed&&z(),eu({el:x.current,nextEl:S.current,prevEl:E.current,paginationEl:T.current,scrollbarEl:M.current,swiper:y.current},_),i&&!y.current.destroyed&&i(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}},[]),Rt(()=>{j();const R=tu(A,b.current,L,h.current,H=>H.key);return b.current=A,h.current=L,R.length&&y.current&&!y.current.destroyed&&Jd({swiper:y.current,slides:L,passedParams:A,changedParams:R,nextEl:S.current,prevEl:E.current,scrollbarEl:M.current,paginationEl:T.current}),()=>{k()}}),Rt(()=>{nu(y.current)},[u]);function C(){return _.virtual?ou(y.current,L,u):L.map((R,H)=>$.cloneElement(R,{swiper:y.current,swiperSlideIndex:H}))}return $.createElement(r,sn({ref:x,className:ls(`${c}${n?` ${n}`:""}`)},P),$.createElement(su.Provider,{value:y.current},O["container-start"],$.createElement(o,{className:Zd(_.wrapperClass)},O["wrapper-start"],C(),O["wrapper-end"]),ss(_)&&$.createElement($.Fragment,null,$.createElement("div",{ref:E,className:"swiper-button-prev"}),$.createElement("div",{ref:S,className:"swiper-button-next"})),as(_)&&$.createElement("div",{ref:M,className:"swiper-scrollbar"}),is(_)&&$.createElement("div",{ref:T,className:"swiper-pagination"}),O["container-end"]))});fs.displayName="Swiper";const ps=$.forwardRef(function(e,t){let{tag:n="div",children:r,className:o="",swiper:s,zoom:i,lazy:a,virtualIndex:l,swiperSlideIndex:c,...d}=e===void 0?{}:e;const u=$.useRef(null),[p,v]=$.useState("swiper-slide"),[g,m]=$.useState(!1);function x(S,E,T){E===u.current&&v(T)}Rt(()=>{if(typeof c<"u"&&(u.current.swiperSlideIndex=c),t&&(t.current=u.current),!(!u.current||!s)){if(s.destroyed){p!=="swiper-slide"&&v("swiper-slide");return}return s.on("_slideClass",x),()=>{s&&s.off("_slideClass",x)}}}),Rt(()=>{s&&u.current&&!s.destroyed&&v(s.getSlideClasses(u.current))},[s]);const y={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},b=()=>typeof r=="function"?r(y):r,h=()=>{m(!0)};return $.createElement(n,sn({ref:u,className:ls(`${p}${o?` ${o}`:""}`),"data-swiper-slide-index":l,onLoad:h},d),i&&$.createElement(us.Provider,{value:y},$.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof i=="number"?i:void 0},b(),a&&!g&&$.createElement("div",{className:"swiper-lazy-preloader"}))),!i&&$.createElement(us.Provider,{value:y},b(),a&&!g&&$.createElement("div",{className:"swiper-lazy-preloader"})))});ps.displayName="SwiperSlide";const mv="",hv="",gv="",iu=({slides:e,className:t,slidesPerView:n=1,spaceBetween:r=16,isLoopEnabled:o=!1,isPaginationVisible:s=!0,isNavigationVisible:i,isNavigationEnabled:a,isArrowsVisible:l=!0,isMousewheelEnabled:c=!0,isKeyboardEnabled:d=!0,isGrabCursorVisible:u=!0,isFreeScrollEnabled:p=!1,onSlideChange:v,...g})=>{const m=a??i??!0,x=n==="auto",y=o&&e.length>1,b=h=>{v==null||v(h.realIndex)};return w.jsx("div",{className:X("relative w-full",t),...g,children:w.jsx(fs,{modules:[Bc,Fc,jc,Dc,$c,zc],slidesPerView:n,spaceBetween:r,loop:y,loopAdditionalSlides:y?e.length:void 0,loopAddBlankSlides:!1,slidesPerGroupAuto:x,initialSlide:0,navigation:m&&l,pagination:s?{clickable:!0}:!1,keyboard:d?{enabled:!0}:!1,freeMode:p?{enabled:!0,sticky:!1,momentum:!1,momentumBounce:!1}:!1,mousewheel:c?{forceToAxis:!0,releaseOnEdges:!0,sensitivity:.85}:!1,grabCursor:u,simulateTouch:!0,className:X("w-full [--swiper-theme-color:var(--chart-1)]","[&_.swiper-button-next]:text-(--chart-1) [&_.swiper-button-prev]:text-(--chart-1)","[&_.swiper-pagination-bullet]:bg-(--chart-1)","[&_.swiper-pagination-bullet]:opacity-45","[&_.swiper-pagination-bullet-active]:bg-(--chart-1)","[&_.swiper-pagination-bullet-active]:opacity-100"),onSlideChange:b,children:e.map((h,S)=>w.jsx(ps,{className:X("h-auto",x&&"!w-auto"),children:h},S))})})},ms=({coverImageSrc:e,brandName:t,heading:n,viewsText:r,tagText:o,isEditModeEnabled:s=!1,isEditModeDisabled:i=!1})=>{const a=s&&!i,[l,c]=f.useState(e),[d,u]=f.useState(t),[p,v]=f.useState(n),[g,m]=f.useState(r),[x,y]=f.useState(o??""),b=f.useRef(null),h=f.useRef(null);f.useEffect(()=>{c(e)},[e]),f.useEffect(()=>{u(t)},[t]),f.useEffect(()=>{v(n)},[n]),f.useEffect(()=>{m(r)},[r]),f.useEffect(()=>{y(o??"")},[o]),f.useEffect(()=>()=>{h.current&&URL.revokeObjectURL(h.current)},[]);const S=()=>{var T;(T=b.current)==null||T.click()},E=T=>{var A;const M=(A=T.currentTarget.files)==null?void 0:A[0];if(!M)return;h.current&&URL.revokeObjectURL(h.current);const _=URL.createObjectURL(M);h.current=_,c(_),T.currentTarget.value=""};return w.jsxs(On,{type:"gradient",isRoundedCornersDisabled:!0,className:"relative flex h-[360px] w-full flex-col gap-3 border-0 p-2",children:[w.jsxs("div",{className:"relative h-[220px] w-full overflow-hidden rounded-lg",children:[w.jsx(Fn,{src:l,alt:p,isEditModeDisabled:!a,className:"h-full w-full"}),x?w.jsx(Jt,{label:x,type:"default",className:"absolute top-2 left-2",isEditModeEnabled:a,isEditModeDisabled:!a,onLabelChange:y}):null,a?w.jsxs(w.Fragment,{children:[w.jsx("input",{ref:b,type:"file",accept:"image/*",className:"hidden",onChange:E}),w.jsx("button",{type:"button",onClick:S,className:"absolute top-2 right-2 rounded-md bg-background/85 px-3 py-1.5 text-xs font-medium text-foreground shadow-md backdrop-blur",children:"Upload image"})]}):null]}),w.jsxs("div",{className:"flex flex-col gap-1 px-1 pb-1",children:[a?w.jsx(Ve,{value:d,onValueChange:u,typography:"Action",isEditModeDisabled:!a,className:"!h-auto"}):w.jsx(Se,{typography:"Action",element:"p",className:"font-semibold uppercase tracking-wide",children:d}),a?w.jsx(Ve,{value:p,onValueChange:v,typography:"SectionHeader",isEditModeDisabled:!a,className:"!h-auto"}):w.jsx(Se,{typography:"SectionHeader",element:"h3",className:"overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]",children:p}),a?w.jsx(Ve,{value:g,onValueChange:m,typography:"BodySmall",isEditModeDisabled:!a,className:"!h-auto pt-1"}):w.jsx(Se,{typography:"BodySmall",element:"p",color:"muted-foreground",className:"pt-1",children:g})]})]})},Ae=e=>typeof e=="string"||typeof e=="number"?String(e):"",hs=({className:e,isSetModeEnabled:t=!1,isEditModeEnabled:n=!1,isEditModeDisabled:r=!1,setModelEnabled:o,coverImageSrc:s,coverImageAlt:i="Slide cover image",isImageLoading:a,imageProps:l,imageAccept:c="image/*",onImageChange:d,brandName:u,brandIcon:p,heading:v,accentText:g,description:m,priceText:x,tagText:y,tagType:b="default",tagColor:h,tagTextColor:S,tags:E,onTagClick:T,onTagLabelChange:M,badgeText:_,...A})=>{const P=(n||t||!!o)&&!r,{isEditModeDisabled:N,isLoading:L,...O}=l??{},D=a??L??!1,z=N??!P,j=y??Ae(_),k=f.useMemo(()=>E!=null&&E.length?E:j?[{id:"primary-tag",label:j,type:b,color:h,textColor:S}]:[],[E,j,b,h,S]),C=f.useMemo(()=>k.filter(V=>V.position!=="bottom-right"),[k]),R=f.useMemo(()=>k.filter(V=>V.position==="bottom-right"),[k]),H=f.useRef(null),I=f.useRef(null),[G,q]=f.useState(s),[K,se]=f.useState(()=>Ae(u)),[ae,B]=f.useState(()=>Ae(v)),[Z,re]=f.useState(()=>Ae(g??"")),[Q,te]=f.useState(()=>Ae(m??"")),[ee,ve]=f.useState(()=>Ae(x));f.useEffect(()=>{q(s)},[s]),f.useEffect(()=>{se(Ae(u))},[u]),f.useEffect(()=>{B(Ae(v))},[v]),f.useEffect(()=>{re(Ae(g??""))},[g]),f.useEffect(()=>{te(Ae(m??""))},[m]),f.useEffect(()=>{ve(Ae(x))},[x]),f.useEffect(()=>()=>{I.current&&URL.revokeObjectURL(I.current)},[]);const ye=()=>{var V;D||(V=H.current)==null||V.click()},Be=V=>{var xe;const de=(xe=V.currentTarget.files)==null?void 0:xe[0];if(!de)return;I.current&&URL.revokeObjectURL(I.current);const we=URL.createObjectURL(de);I.current=we,q(we),d==null||d({file:de,objectUrl:we}),V.currentTarget.value=""};return w.jsxs("article",{className:X("group relative flex h-[620px] w-full flex-col overflow-hidden rounded-xl border border-border/60","bg-card text-card-foreground",e),...A,children:[w.jsxs("div",{className:"relative h-[41%] min-h-[240px] w-full overflow-hidden",children:[w.jsx(Fn,{alt:i,src:G,isLoading:D,isEditModeDisabled:z,className:X("h-full w-full","[&>img]:transition-transform [&>img]:duration-500 group-hover:[&>img]:scale-[1.025]"),...O}),w.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-card to-transparent"}),C.length?w.jsx("div",{className:X("absolute top-4 left-4 z-10 flex flex-wrap gap-2",P?"max-w-[calc(100%-13rem)]":"max-w-[calc(100%-1rem)]"),children:C.map(V=>w.jsx(Jt,{label:V.label,type:V.type,color:V.color,textColor:V.textColor,isLoading:V.isLoading,isEditModeEnabled:P,isEditModeDisabled:!P,onLabelChange:de=>{var we;(we=V.onLabelChange)==null||we.call(V,V.id,de),M==null||M(V.id,de)},onClick:()=>{var de;(de=V.onClick)==null||de.call(V,V.id),T==null||T(V.id)},className:X("max-w-full",(V.onClick||T)&&"cursor-pointer")},V.id))}):null,R.length?w.jsx("div",{className:"absolute right-4 bottom-4 z-10 flex max-w-[calc(100%-1rem)] flex-wrap justify-end gap-2",children:R.map(V=>w.jsx(Jt,{label:V.label,type:V.type,color:V.color,textColor:V.textColor,isLoading:V.isLoading,isEditModeEnabled:P,isEditModeDisabled:!P,onLabelChange:de=>{var we;(we=V.onLabelChange)==null||we.call(V,V.id,de),M==null||M(V.id,de)},onClick:()=>{var de;(de=V.onClick)==null||de.call(V,V.id),T==null||T(V.id)},className:X("max-w-full",(V.onClick||T)&&"cursor-pointer")},V.id))}):null,P?w.jsxs(w.Fragment,{children:[w.jsx("input",{ref:H,type:"file",accept:c,className:"hidden",onChange:Be}),w.jsx("button",{type:"button",onClick:ye,disabled:D,className:X("absolute top-4 right-4 rounded-md bg-background/85 px-3 py-1.5 text-xs font-medium text-foreground shadow-md backdrop-blur","disabled:cursor-not-allowed disabled:opacity-60","transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--chart-1)/50"),children:"Upload image"})]}):null]}),w.jsxs(On,{as:"section",type:"gradient",isRoundedCornersDisabled:!0,className:X("relative flex flex-1 flex-col gap-3 border-0 p-6"),children:[w.jsxs("div",{className:"inline-flex items-center gap-2 uppercase",children:[p?w.jsx("span",{className:"inline-flex size-5 items-center justify-center overflow-hidden rounded-sm",children:p}):null,P?w.jsx(Ve,{value:K,onValueChange:se,typography:"CompactCaption",className:"!h-auto"}):w.jsx(Se,{typography:"CompactCaption",element:"span",className:"font-semibold uppercase tracking-wide",children:K})]}),P?w.jsx(Ve,{value:ae,onValueChange:B,typography:"Heading",className:"!h-auto"}):w.jsx(Se,{typography:"Heading",element:"h3",className:X("leading-[1.08]","overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]"),children:ae}),P?w.jsx(Ve,{value:Z,onValueChange:re,placeholder:"Accent text",typography:"Subheader",className:"!h-auto text-(--chart-1)"}):Z?w.jsx(Se,{typography:"Subheader",className:X("font-medium","overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]","text-(--chart-1)"),color:"chart-1",children:Z}):null,P?w.jsx(Ve,{value:Q,onValueChange:te,placeholder:"Description",typography:"Subheader",className:"!h-auto"}):Q?w.jsx(Se,{typography:"Subheader",className:X("overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]"),children:Q}):null,P?w.jsx(Ve,{value:ee,onValueChange:ve,typography:"Heading",className:"mt-auto !h-auto pt-6"}):w.jsx(Se,{typography:"Heading",element:"p",className:"mt-auto pt-6 text-5xl leading-none font-bold tracking-tight",color:"foreground",children:ee})]})]})},gs=e=>w.jsx(hs,{...e}),or=[{id:"react",coverImageSrc:"https://picsum.photos/seed/react-course/1300/780",brandName:"Frontend Track",heading:"React: от компонентов до production",accentText:"Hooks, Router, state management и архитектура UI",description:"Практический курс по разработке интерфейсов и оптимизации React-приложений.",priceText:"от 4 990 ₽",tagText:"Курс"},{id:"go",coverImageSrc:"https://picsum.photos/seed/go-course/1300/780",brandName:"Backend Track",heading:"Go: высоконагруженные backend-сервисы",accentText:"Горутины, каналы, API и тестирование",description:"Курс по построению микросервисов на Go с акцентом на производительность и надежность.",priceText:"от 5 490 ₽",tagText:"Курс"},{id:"k8s",coverImageSrc:"https://picsum.photos/seed/k8s-course/1300/780",brandName:"DevOps Track",heading:"Kubernetes: оркестрация в реальных проектах",accentText:"Deployments, ingress, autoscaling, Helm",description:"Освойте запуск, масштабирование и сопровождение контейнеризированных приложений в Kubernetes.",priceText:"от 6 990 ₽",tagText:"Курс"},{id:"redis",coverImageSrc:"https://picsum.photos/seed/redis-course/1300/780",brandName:"Data Track",heading:"Redis: кэширование, очереди и pub/sub",accentText:"TTL, eviction policies и low-latency паттерны",description:"Научитесь использовать Redis для ускорения приложений и обработки событий в реальном времени.",priceText:"от 4 490 ₽",tagText:"Курс"},{id:"postgresql",coverImageSrc:"https://picsum.photos/seed/postgres-course/1300/780",brandName:"Database Track",heading:"PostgreSQL: моделирование и оптимизация SQL",accentText:"Индексы, транзакции, explain analyze, миграции",description:"Курс по проектированию схем и ускорению запросов в PostgreSQL для продуктовых систем.",priceText:"от 5 290 ₽",tagText:"Курс"},{id:"kafka",coverImageSrc:"https://picsum.photos/seed/kafka-course/1300/780",brandName:"Streaming Track",heading:"Kafka: event-driven архитектура",accentText:"Topics, partitions, consumer groups",description:"Разберете обработку потоков данных, гарантии доставки и построение event-driven платформ.",priceText:"от 6 190 ₽",tagText:"Курс"}],au=["MediumVerticalSlide","MediumHorizontalSlide"],vs="w-[460px] min-w-[460px]",bs="w-[520px] min-w-[520px]",ys=(e,t,n)=>e==="no-tags"?{tags:[],tagText:void 0}:e==="one-tag"?{tags:[{id:`course-${t}`,label:n,type:"default"}]}:e==="two-tags"?{tags:[{id:`course-${t}`,label:n,type:"default"},{id:`time-${t}`,label:"2:13",type:"time",position:"bottom-right"}]}:{tags:[{id:`hot-${t}`,label:"HOT",type:"default",color:"chart-1"},{id:`level-${t}`,label:"PRO",type:"time",color:"chart-3",textColor:"foreground",position:"bottom-right"}]},lu=({componentType:e,isEditModeEnabled:t=!1,isEditModeDisabled:n=!1,onTagClick:r,onTagLabelChange:o})=>{if(e==="MediumVerticalSlide"){const s=["no-tags","two-tags","one-tag","two-other-tags"];return or.slice(0,4).map((i,a)=>{const{tags:l,tagText:c}=ys(s[a]??"one-tag",i.id,i.tagText??"Курс");return w.jsx("div",{className:vs,children:w.jsx(gs,{...i,tagText:c,tags:l,isEditModeEnabled:t,isEditModeDisabled:n,onTagClick:r,onTagLabelChange:o})},i.id)})}return or.slice(0,4).map(s=>w.jsx("div",{className:bs,children:w.jsx(ms,{coverImageSrc:s.coverImageSrc,brandName:s.brandName,heading:s.heading,viewsText:"661 просмотры",tagText:s.id==="react"?"NEW":void 0,isEditModeEnabled:t,isEditModeDisabled:n})},`preview-${s.id}`))};function cu(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,du(o,...t)]}function du(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Je(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var be=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},uu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sr=uu.reduce((e,t)=>{const n=ao(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ir={exports:{}},ar={};/**
|
|
299
|
+
*/const qS=nd("pipette",[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]]);function Ob(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ob(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function $S(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ob(e))&&(r&&(r+=" "),r+=t);return r}const eE=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},tE=(e,t)=>({classGroupId:e,validator:t}),Ab=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qh="-",Ib=[],nE="arbitrary..",rE=e=>{const t=oE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return iE(l);const u=l.split(qh),p=u[0]===""&&u.length>1?1:0;return Nb(u,p,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const p=r[l],y=n[l];return p?y?eE(y,p):p:y||Ib}return n[l]||Ib}}},Nb=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const y=Nb(e,t+1,o);if(y)return y}const l=n.validators;if(l===null)return;const u=t===0?e.join(qh):e.slice(t).join(qh),p=l.length;for(let y=0;y<p;y++){const S=l[y];if(S.validator(u))return S.classGroupId}},iE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?nE+r:void 0})(),oE=e=>{const{theme:t,classGroups:n}=e;return aE(n,t)},aE=(e,t)=>{const n=Ab();for(const r in e){const i=e[r];sp(i,n,r,t)}return n},sp=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const l=e[o];lE(l,t,n,r)}},lE=(e,t,n,r)=>{if(typeof e=="string"){sE(e,t,n);return}if(typeof e=="function"){cE(e,t,n,r);return}uE(e,t,n,r)},sE=(e,t,n)=>{const r=e===""?t:Fb(t,e);r.classGroupId=n},cE=(e,t,n,r)=>{if(dE(e)){sp(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(tE(n,e))},uE=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let l=0;l<o;l++){const[u,p]=i[l];sp(p,Fb(t,u),n,r)}},Fb=(e,t)=>{let n=e;const r=t.split(qh),i=r.length;for(let o=0;o<i;o++){const l=r[o];let u=n.nextPart.get(l);u||(u=Ab(),n.nextPart.set(l,u)),n=u}return n},dE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,fE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,l)=>{n[o]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=r[o])!==void 0)return i(o,l),l},set(o,l){o in n?n[o]=l:i(o,l)}}},cp="!",Db=":",hE=[],Lb=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let l=0,u=0,p=0,y;const S=i.length;for(let k=0;k<S;k++){const W=i[k];if(l===0&&u===0){if(W===Db){o.push(i.slice(p,k)),p=k+1;continue}if(W==="/"){y=k;continue}}W==="["?l++:W==="]"?l--:W==="("?u++:W===")"&&u--}const w=o.length===0?i:i.slice(p);let C=w,M=!1;w.endsWith(cp)?(C=w.slice(0,-1),M=!0):w.startsWith(cp)&&(C=w.slice(1),M=!0);const O=y&&y>p?y-p:void 0;return Lb(o,M,C,O)};if(t){const i=t+Db,o=r;r=l=>l.startsWith(i)?o(l.slice(i.length)):Lb(hE,!1,l,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},pE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const l=n[o],u=l[0]==="[",p=t.has(l);u||p?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},vE=e=>({cache:fE(e.cacheSize),parseClassName:gE(e),sortModifiers:pE(e),...rE(e)}),bE=/\s+/,mE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,l=[],u=e.trim().split(bE);let p="";for(let y=u.length-1;y>=0;y-=1){const S=u[y],{isExternal:w,modifiers:C,hasImportantModifier:M,baseClassName:O,maybePostfixModifierPosition:k}=n(S);if(w){p=S+(p.length>0?" "+p:p);continue}let W=!!k,H=r(W?O.substring(0,k):O);if(!H){if(!W){p=S+(p.length>0?" "+p:p);continue}if(H=r(O),!H){p=S+(p.length>0?" "+p:p);continue}W=!1}const B=C.length===0?"":C.length===1?C[0]:o(C).join(":"),I=M?B+cp:B,Y=I+H;if(l.indexOf(Y)>-1)continue;l.push(Y);const K=i(H,W);for(let G=0;G<K.length;++G){const ne=K[G];l.push(I+ne)}p=S+(p.length>0?" "+p:p)}return p},yE=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Bb(n))&&(i&&(i+=" "),i+=r);return i},Bb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Bb(e[r]))&&(n&&(n+=" "),n+=t);return n},wE=(e,...t)=>{let n,r,i,o;const l=p=>{const y=t.reduce((S,w)=>w(S),e());return n=vE(y),r=n.cache.get,i=n.cache.set,o=u,u(p)},u=p=>{const y=r(p);if(y)return y;const S=mE(p,n);return i(p,S),S};return o=l,(...p)=>o(yE(...p))},xE=[],lo=e=>{const t=n=>n[e]||xE;return t.isThemeGetter=!0,t},zb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,SE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,EE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,TE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ad=e=>SE.test(e),bn=e=>!!e&&!Number.isNaN(Number(e)),Id=e=>!!e&&Number.isInteger(Number(e)),up=e=>e.endsWith("%")&&bn(e.slice(0,-1)),rd=e=>EE.test(e),Wb=()=>!0,ME=e=>CE.test(e)&&!TE.test(e),dp=()=>!1,_E=e=>kE.test(e),PE=e=>RE.test(e),OE=e=>!vt(e)&&!bt(e),AE=e=>Nd(e,Zb,dp),vt=e=>zb.test(e),uf=e=>Nd(e,Jb,ME),Ub=e=>Nd(e,HE,bn),IE=e=>Nd(e,Qb,Wb),NE=e=>Nd(e,Kb,dp),Gb=e=>Nd(e,Vb,dp),FE=e=>Nd(e,Xb,PE),$h=e=>Nd(e,jb,_E),bt=e=>Hb.test(e),bh=e=>df(e,Jb),DE=e=>df(e,Kb),Yb=e=>df(e,Vb),LE=e=>df(e,Zb),BE=e=>df(e,Xb),eg=e=>df(e,jb,!0),zE=e=>df(e,Qb,!0),Nd=(e,t,n)=>{const r=zb.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},df=(e,t,n=!1)=>{const r=Hb.exec(e);return r?r[1]?t(r[1]):n:!1},Vb=e=>e==="position"||e==="percentage",Xb=e=>e==="image"||e==="url",Zb=e=>e==="length"||e==="size"||e==="bg-size",Jb=e=>e==="length",HE=e=>e==="number",Kb=e=>e==="family-name",Qb=e=>e==="number"||e==="weight",jb=e=>e==="shadow",WE=wE(()=>{const e=lo("color"),t=lo("font"),n=lo("text"),r=lo("font-weight"),i=lo("tracking"),o=lo("leading"),l=lo("breakpoint"),u=lo("container"),p=lo("spacing"),y=lo("radius"),S=lo("shadow"),w=lo("inset-shadow"),C=lo("text-shadow"),M=lo("drop-shadow"),O=lo("blur"),k=lo("perspective"),W=lo("aspect"),H=lo("ease"),B=lo("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...Y(),bt,vt],G=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto","contain","none"],$=()=>[bt,vt,p],ie=()=>[Ad,"full","auto",...$()],se=()=>[Id,"none","subgrid",bt,vt],ue=()=>["auto",{span:["full",Id,bt,vt]},Id,bt,vt],he=()=>[Id,"auto",bt,vt],ve=()=>["auto","min","max","fr",bt,vt],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...$()],J=()=>[Ad,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],oe=()=>[Ad,"screen","full","dvw","lvw","svw","min","max","fit",...$()],xe=()=>[Ad,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],ee=()=>[e,bt,vt],Q=()=>[...Y(),Yb,Gb,{position:[bt,vt]}],Ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ge=()=>["auto","cover","contain",LE,AE,{size:[bt,vt]}],We=()=>[up,bh,uf],Oe=()=>["","none","full",y,bt,vt],rt=()=>["",bn,bh,uf],Fe=()=>["solid","dashed","dotted","double"],Ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ve=()=>[bn,up,Yb,Gb],Ke=()=>["","none",O,bt,vt],st=()=>["none",bn,bt,vt],gt=()=>["none",bn,bt,vt],it=()=>[bn,bt,vt],mt=()=>[Ad,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rd],breakpoint:[rd],color:[Wb],container:[rd],"drop-shadow":[rd],ease:["in","out","in-out"],font:[OE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rd],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rd],shadow:[rd],spacing:["px",bn],text:[rd],"text-shadow":[rd],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ad,vt,bt,W]}],container:["container"],columns:[{columns:[bn,vt,bt,u]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{"inset-s":ie(),start:ie()}],end:[{"inset-e":ie(),end:ie()}],"inset-bs":[{"inset-bs":ie()}],"inset-be":[{"inset-be":ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[Id,"auto",bt,vt]}],basis:[{basis:[Ad,"full","auto",u,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[bn,Ad,"auto","initial","none",vt]}],grow:[{grow:["",bn,bt,vt]}],shrink:[{shrink:["",bn,bt,vt]}],order:[{order:[Id,"first","last","none",bt,vt]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[u,"screen",...J()]}],"min-w":[{"min-w":[u,"screen","none",...J()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,bh,uf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,zE,IE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",up,vt]}],"font-family":[{font:[DE,NE,t]}],"font-features":[{"font-features":[vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,bt,vt]}],"line-clamp":[{"line-clamp":[bn,"none",bt,Ub]}],leading:[{leading:[o,...$()]}],"list-image":[{"list-image":["none",bt,vt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",bt,vt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ee()}],"text-color":[{text:ee()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[bn,"from-font","auto",bt,uf]}],"text-decoration-color":[{decoration:ee()}],"underline-offset":[{"underline-offset":[bn,"auto",bt,vt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",bt,vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",bt,vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:Ce()}],"bg-size":[{bg:Ge()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Id,bt,vt],radial:["",bt,vt],conic:[Id,bt,vt]},BE,FE]}],"bg-color":[{bg:ee()}],"gradient-from-pos":[{from:We()}],"gradient-via-pos":[{via:We()}],"gradient-to-pos":[{to:We()}],"gradient-from":[{from:ee()}],"gradient-via":[{via:ee()}],"gradient-to":[{to:ee()}],rounded:[{rounded:Oe()}],"rounded-s":[{"rounded-s":Oe()}],"rounded-e":[{"rounded-e":Oe()}],"rounded-t":[{"rounded-t":Oe()}],"rounded-r":[{"rounded-r":Oe()}],"rounded-b":[{"rounded-b":Oe()}],"rounded-l":[{"rounded-l":Oe()}],"rounded-ss":[{"rounded-ss":Oe()}],"rounded-se":[{"rounded-se":Oe()}],"rounded-ee":[{"rounded-ee":Oe()}],"rounded-es":[{"rounded-es":Oe()}],"rounded-tl":[{"rounded-tl":Oe()}],"rounded-tr":[{"rounded-tr":Oe()}],"rounded-br":[{"rounded-br":Oe()}],"rounded-bl":[{"rounded-bl":Oe()}],"border-w":[{border:rt()}],"border-w-x":[{"border-x":rt()}],"border-w-y":[{"border-y":rt()}],"border-w-s":[{"border-s":rt()}],"border-w-e":[{"border-e":rt()}],"border-w-bs":[{"border-bs":rt()}],"border-w-be":[{"border-be":rt()}],"border-w-t":[{"border-t":rt()}],"border-w-r":[{"border-r":rt()}],"border-w-b":[{"border-b":rt()}],"border-w-l":[{"border-l":rt()}],"divide-x":[{"divide-x":rt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":rt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Fe(),"hidden","none"]}],"divide-style":[{divide:[...Fe(),"hidden","none"]}],"border-color":[{border:ee()}],"border-color-x":[{"border-x":ee()}],"border-color-y":[{"border-y":ee()}],"border-color-s":[{"border-s":ee()}],"border-color-e":[{"border-e":ee()}],"border-color-bs":[{"border-bs":ee()}],"border-color-be":[{"border-be":ee()}],"border-color-t":[{"border-t":ee()}],"border-color-r":[{"border-r":ee()}],"border-color-b":[{"border-b":ee()}],"border-color-l":[{"border-l":ee()}],"divide-color":[{divide:ee()}],"outline-style":[{outline:[...Fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[bn,bt,vt]}],"outline-w":[{outline:["",bn,bh,uf]}],"outline-color":[{outline:ee()}],shadow:[{shadow:["","none",S,eg,$h]}],"shadow-color":[{shadow:ee()}],"inset-shadow":[{"inset-shadow":["none",w,eg,$h]}],"inset-shadow-color":[{"inset-shadow":ee()}],"ring-w":[{ring:rt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ee()}],"ring-offset-w":[{"ring-offset":[bn,uf]}],"ring-offset-color":[{"ring-offset":ee()}],"inset-ring-w":[{"inset-ring":rt()}],"inset-ring-color":[{"inset-ring":ee()}],"text-shadow":[{"text-shadow":["none",C,eg,$h]}],"text-shadow-color":[{"text-shadow":ee()}],opacity:[{opacity:[bn,bt,vt]}],"mix-blend":[{"mix-blend":[...Ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[bn]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ve()}],"mask-image-linear-from-color":[{"mask-linear-from":ee()}],"mask-image-linear-to-color":[{"mask-linear-to":ee()}],"mask-image-t-from-pos":[{"mask-t-from":Ve()}],"mask-image-t-to-pos":[{"mask-t-to":Ve()}],"mask-image-t-from-color":[{"mask-t-from":ee()}],"mask-image-t-to-color":[{"mask-t-to":ee()}],"mask-image-r-from-pos":[{"mask-r-from":Ve()}],"mask-image-r-to-pos":[{"mask-r-to":Ve()}],"mask-image-r-from-color":[{"mask-r-from":ee()}],"mask-image-r-to-color":[{"mask-r-to":ee()}],"mask-image-b-from-pos":[{"mask-b-from":Ve()}],"mask-image-b-to-pos":[{"mask-b-to":Ve()}],"mask-image-b-from-color":[{"mask-b-from":ee()}],"mask-image-b-to-color":[{"mask-b-to":ee()}],"mask-image-l-from-pos":[{"mask-l-from":Ve()}],"mask-image-l-to-pos":[{"mask-l-to":Ve()}],"mask-image-l-from-color":[{"mask-l-from":ee()}],"mask-image-l-to-color":[{"mask-l-to":ee()}],"mask-image-x-from-pos":[{"mask-x-from":Ve()}],"mask-image-x-to-pos":[{"mask-x-to":Ve()}],"mask-image-x-from-color":[{"mask-x-from":ee()}],"mask-image-x-to-color":[{"mask-x-to":ee()}],"mask-image-y-from-pos":[{"mask-y-from":Ve()}],"mask-image-y-to-pos":[{"mask-y-to":Ve()}],"mask-image-y-from-color":[{"mask-y-from":ee()}],"mask-image-y-to-color":[{"mask-y-to":ee()}],"mask-image-radial":[{"mask-radial":[bt,vt]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ve()}],"mask-image-radial-from-color":[{"mask-radial-from":ee()}],"mask-image-radial-to-color":[{"mask-radial-to":ee()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Y()}],"mask-image-conic-pos":[{"mask-conic":[bn]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ve()}],"mask-image-conic-from-color":[{"mask-conic-from":ee()}],"mask-image-conic-to-color":[{"mask-conic-to":ee()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:Ce()}],"mask-size":[{mask:Ge()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",bt,vt]}],filter:[{filter:["","none",bt,vt]}],blur:[{blur:Ke()}],brightness:[{brightness:[bn,bt,vt]}],contrast:[{contrast:[bn,bt,vt]}],"drop-shadow":[{"drop-shadow":["","none",M,eg,$h]}],"drop-shadow-color":[{"drop-shadow":ee()}],grayscale:[{grayscale:["",bn,bt,vt]}],"hue-rotate":[{"hue-rotate":[bn,bt,vt]}],invert:[{invert:["",bn,bt,vt]}],saturate:[{saturate:[bn,bt,vt]}],sepia:[{sepia:["",bn,bt,vt]}],"backdrop-filter":[{"backdrop-filter":["","none",bt,vt]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[bn,bt,vt]}],"backdrop-contrast":[{"backdrop-contrast":[bn,bt,vt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bn,bt,vt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bn,bt,vt]}],"backdrop-invert":[{"backdrop-invert":["",bn,bt,vt]}],"backdrop-opacity":[{"backdrop-opacity":[bn,bt,vt]}],"backdrop-saturate":[{"backdrop-saturate":[bn,bt,vt]}],"backdrop-sepia":[{"backdrop-sepia":["",bn,bt,vt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",bt,vt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[bn,"initial",bt,vt]}],ease:[{ease:["linear","initial",H,bt,vt]}],delay:[{delay:[bn,bt,vt]}],animate:[{animate:["none",B,bt,vt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,bt,vt]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:st()}],"rotate-x":[{"rotate-x":st()}],"rotate-y":[{"rotate-y":st()}],"rotate-z":[{"rotate-z":st()}],scale:[{scale:gt()}],"scale-x":[{"scale-x":gt()}],"scale-y":[{"scale-y":gt()}],"scale-z":[{"scale-z":gt()}],"scale-3d":["scale-3d"],skew:[{skew:it()}],"skew-x":[{"skew-x":it()}],"skew-y":[{"skew-y":it()}],transform:[{transform:[bt,vt,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:mt()}],"translate-x":[{"translate-x":mt()}],"translate-y":[{"translate-y":mt()}],"translate-z":[{"translate-z":mt()}],"translate-none":["translate-none"],accent:[{accent:ee()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ee()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",bt,vt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",bt,vt]}],fill:[{fill:["none",...ee()]}],"stroke-w":[{stroke:[bn,bh,uf,Ub]}],stroke:[{stroke:["none",...ee()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ze(...e){return WE($S(e))}function qb({...e}){return D.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function $b({className:e,...t}){return D.jsx("ol",{"data-slot":"breadcrumb-list",className:Ze("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function tg({className:e,...t}){return D.jsx("li",{"data-slot":"breadcrumb-item",className:Ze("inline-flex items-center gap-1.5",e),...t})}function ng({asChild:e,className:t,...n}){const r=e?BS:"a";return D.jsx(r,{"data-slot":"breadcrumb-link",className:Ze("hover:text-foreground transition-colors",t),...n})}function rg({className:e,...t}){return D.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:Ze("text-foreground font-normal",e),...t})}function ig({children:e,className:t,...n}){return D.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:Ze("[&>svg]:size-3.5",t),...n,children:e??D.jsx(jh,{})})}function em({className:e,...t}){return D.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:Ze("flex size-9 items-center justify-center",e),...t,children:[D.jsx(jS,{className:"size-4"}),D.jsx("span",{className:"sr-only",children:"More"})]})}const tm=e=>e.props.children,UE=(e,t)=>L.cloneElement(e,void 0,t),GE=({items:e,maxItems:t,separator:n,listClassName:r,...i})=>{const o=L.useMemo(()=>{if(!Number.isFinite(t)||!t||t<2||e.length<=t)return e.map((y,S)=>({kind:"item",item:y,originalIndex:S}));const l=t-1,u=e.length-l,p=e.slice(u).map((y,S)=>({kind:"item",item:y,originalIndex:u+S}));return[{kind:"item",item:e[0],originalIndex:0},{kind:"ellipsis"},...p]},[e,t]);return D.jsx(qb,{...i,children:D.jsx($b,{className:r,children:o.map((l,u)=>{const p=u===o.length-1;if(l.kind==="ellipsis")return D.jsxs(L.Fragment,{children:[D.jsx(tg,{children:D.jsx(em,{})}),p?null:D.jsx(ig,{children:n})]},"ellipsis");const{item:y,originalIndex:S}=l;if(L.isValidElement(y)){const Y=p,K=tm(y);return D.jsxs(L.Fragment,{children:[D.jsx(tg,{children:Y?D.jsx(rg,{children:K}):D.jsx(ng,{asChild:!0,children:y})}),p?null:D.jsx(ig,{children:n})]},y.key??S)}const{key:w,label:C,href:M,onClick:O,isCurrent:k,component:W}=y,H=k??p,B=W?tm(W):void 0,I=C??B;return D.jsxs(L.Fragment,{children:[D.jsx(tg,{children:H?D.jsx(rg,{children:I}):W?D.jsx(ng,{asChild:!0,children:C!==void 0?UE(W,C):W}):M?D.jsx(ng,{href:M,onClick:O,children:C}):D.jsx(rg,{children:C})}),p?null:D.jsx(ig,{children:n})]},w??S)})})})},YE=["filled","outline","text"],VE=["primary","secondary","accent","muted","constructive","cautionary","destructive","chart-1","chart-2","chart-3","chart-4","chart-5"],XE={s:"h-8 gap-1.5 px-3 text-xs has-[>svg]:px-2.5",m:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",l:"h-10 px-6 text-sm has-[>svg]:px-4","icon-s":"size-8 p-0","icon-m":"size-9 p-0","icon-l":"size-10 p-0",default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 gap-1.5 px-3 text-xs has-[>svg]:px-2.5",lg:"h-10 px-6 text-sm has-[>svg]:px-4",icon:"size-9 p-0","icon-sm":"size-8 p-0","icon-lg":"size-10 p-0","icon-circle":"size-9 rounded-full p-0"},ZE={s:"size-[14px]",m:"size-4",l:"size-[18px]","icon-s":"size-[14px]","icon-m":"size-4","icon-l":"size-[18px]",default:"size-4",sm:"size-[14px]",lg:"size-[18px]",icon:"size-4","icon-sm":"size-[14px]","icon-lg":"size-[18px]","icon-circle":"size-4"},JE={filled:{primary:"bg-primary text-primary-foreground hover:bg-primary/90 focus:ring-primary/60",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/85 focus:ring-secondary/60",accent:"bg-accent text-accent-foreground hover:bg-accent/85 focus:ring-accent/60",muted:"bg-muted text-foreground hover:bg-muted/85 focus:ring-ring/60",constructive:"bg-constructive text-constructive-foreground hover:bg-constructive/90 focus:ring-constructive/45",cautionary:"bg-cautionary text-cautionary-foreground hover:bg-cautionary/90 focus:ring-cautionary/45",destructive:"bg-destructive text-white hover:bg-destructive/90 focus:ring-destructive/45","chart-1":"bg-(--chart-1) text-black hover:brightness-110 focus:ring-(--chart-1)","chart-2":"bg-(--chart-2) text-black hover:brightness-110 focus:ring-(--chart-2)","chart-3":"bg-(--chart-3) text-white hover:brightness-110 focus:ring-(--chart-3)","chart-4":"bg-(--chart-4) text-black hover:brightness-110 focus:ring-(--chart-4)","chart-5":"bg-(--chart-5) text-black hover:brightness-110 focus:ring-(--chart-5)"},outline:{primary:"border border-primary bg-transparent text-primary hover:bg-primary/10 focus:ring-primary/60",secondary:"border border-secondary bg-transparent text-secondary hover:bg-secondary/30 focus:ring-secondary/60",accent:"border border-accent bg-transparent text-accent hover:bg-accent/30 focus:ring-accent/60",muted:"border border-muted bg-transparent text-muted hover:bg-muted/50 focus:ring-ring/60",constructive:"border border-constructive bg-transparent text-constructive hover:bg-constructive/10 focus:ring-constructive/45",cautionary:"border border-cautionary bg-transparent text-cautionary hover:bg-cautionary/20 focus:ring-cautionary/45",destructive:"border border-destructive bg-transparent text-destructive hover:bg-destructive/10 focus:ring-destructive/45","chart-1":"border border-(--chart-1) bg-transparent text-(--chart-1) hover:bg-(--chart-1)/10 focus:ring-(--chart-1)","chart-2":"border border-(--chart-2) bg-transparent text-(--chart-2) hover:bg-(--chart-2)/10 focus:ring-(--chart-2)","chart-3":"border border-(--chart-3) bg-transparent text-(--chart-3) hover:bg-(--chart-3)/10 focus:ring-(--chart-3)","chart-4":"border border-(--chart-4) bg-transparent text-(--chart-4) hover:bg-(--chart-4)/10 focus:ring-(--chart-4)","chart-5":"border border-(--chart-5) bg-transparent text-(--chart-5) hover:bg-(--chart-5)/10 focus:ring-(--chart-5)"},text:{primary:"bg-transparent text-primary hover:bg-primary/10 focus:ring-primary/60",secondary:"bg-transparent text-secondary hover:bg-secondary/30 focus:ring-secondary/60",accent:"bg-transparent text-accent hover:bg-accent/30 focus:ring-accent/60",muted:"bg-transparent text-muted hover:bg-muted/50 focus:ring-ring/60",constructive:"bg-transparent text-constructive hover:bg-constructive/10 focus:ring-constructive/45",cautionary:"bg-transparent text-cautionary hover:bg-cautionary/20 focus:ring-cautionary/45",destructive:"bg-transparent text-destructive hover:bg-destructive/10 focus:ring-destructive/45","chart-1":"bg-transparent text-(--chart-1) hover:bg-(--chart-1)/10 focus:ring-(--chart-1)","chart-2":"bg-transparent text-(--chart-2) hover:bg-(--chart-2)/10 focus:ring-(--chart-2)","chart-3":"bg-transparent text-(--chart-3) hover:bg-(--chart-3)/10 focus:ring-(--chart-3)","chart-4":"bg-transparent text-(--chart-4) hover:bg-(--chart-4)/10 focus:ring-(--chart-4)","chart-5":"bg-transparent text-(--chart-5) hover:bg-(--chart-5)/10 focus:ring-(--chart-5)"}},KE={primary:"var(--primary)",secondary:"var(--secondary)",accent:"var(--accent)",muted:"var(--muted)",constructive:"var(--constructive)",cautionary:"var(--cautionary)",destructive:"var(--destructive)","chart-1":"var(--chart-1)","chart-2":"var(--chart-2)","chart-3":"var(--chart-3)","chart-4":"var(--chart-4)","chart-5":"var(--chart-5)"},nm=({icon:e,leftIcon:t,rightIcon:n,onClick:r,animation:i="default",isLoading:o=!1,color:l="chart-1",variant:u="filled",size:p="m",className:y,children:S,style:w,...C})=>{const M=t??e,O=o||i==="loading",k=l==="chart-1"&&u==="filled"&&!O,W=!!M,H=!!n,B=O&&W,I=O&&H,Y=O&&!B&&!I,G={"--button-glow-color":KE[l],...w},ne=Nt.clsx(ZE[p],"animate-spin text-current/70");return D.jsxs("button",{onClick:r,"data-animation":O?"loading":i,"data-color":l,"data-variant":u,"aria-busy":O||void 0,style:G,className:Nt.clsx("group relative inline-flex cursor-pointer items-center justify-center gap-2 overflow-hidden rounded-(--radius) font-medium","transition-all duration-300 hover:scale-[1.02] active:scale-[0.98]","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-(--card)","disabled:pointer-events-none disabled:opacity-50",XE[p],JE[u][l],i==="active"&&!O&&"pulse-ring",O&&"cursor-progress",y),...C,children:[k?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:Nt.clsx("pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100","bg-gradient-to-b from-transparent via-(--chart-1)/10 to-transparent"),style:{animation:"scan-button 2s linear infinite"}}),D.jsx("div",{className:Nt.clsx("absolute top-0 left-0 h-2 w-2 border-t-2 border-l-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),D.jsx("div",{className:Nt.clsx("absolute top-0 right-0 h-2 w-2 border-t-2 border-r-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),D.jsx("div",{className:Nt.clsx("absolute bottom-0 left-0 h-2 w-2 border-b-2 border-l-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),D.jsx("div",{className:Nt.clsx("absolute right-0 bottom-0 h-2 w-2 border-r-2 border-b-2 border-(--chart-1)","opacity-0 transition-all duration-300 group-hover:h-4 group-hover:w-4 group-hover:opacity-100")}),D.jsx("div",{className:Nt.clsx("pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 group-hover:opacity-100","bg-gradient-to-r from-(--chart-1)/0 via-(--chart-1)/5 to-(--chart-1)/0"),style:{animation:"pulse-button 2s ease-in-out infinite"}})]}):null,O?D.jsx("div",{"aria-hidden":"true",className:Nt.clsx("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null,W?D.jsx("span",{className:"relative z-10 inline-flex items-center justify-center",children:B?D.jsx(lp,{"aria-hidden":"true",className:ne}):M}):null,S?D.jsx("span",{className:Nt.clsx("relative z-10",Od("Action"),Y&&"opacity-0"),children:S}):null,H?D.jsx("span",{className:"relative z-10 inline-flex items-center justify-center",children:I?D.jsx(lp,{"aria-hidden":"true",className:ne}):n}):null,Y?D.jsxs("span",{className:"pointer-events-none absolute inset-0 z-20 inline-flex items-center justify-center",children:[D.jsx(lp,{"aria-hidden":"true",className:ne}),D.jsx("span",{className:"sr-only",children:"Loading"})]}):null]})};function QE(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const fp={},mh={};function ff(e,t){try{const r=(fp[e]||(fp[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return r in mh?mh[r]:rm(r,r.split(":"))}catch{if(e in mh)return mh[e];const n=e==null?void 0:e.match(jE);return n?rm(e,n.slice(1)):NaN}}const jE=/([+-]\d\d):?(\d\d)?/;function rm(e,t){const n=+(t[0]||0),r=+(t[1]||0),i=+(t[2]||0)/60;return mh[e]=n*60+r>0?n*60+r+i:n*60-r-i}class mu extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ff(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),om(this),hp(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new mu(...n,t):new mu(Date.now(),t)}withTimeZone(t){return new mu(+this,t)}getTimezoneOffset(){const t=-ff(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),hp(this),+this}[Symbol.for("constructDateFrom")](t){return new mu(+new Date(t),this.timeZone)}}const im=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!im.test(e))return;const t=e.replace(im,"$1UTC");mu.prototype[t]&&(e.startsWith("get")?mu.prototype[e]=function(){return this.internal[t]()}:(mu.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),qE(this),+this},mu.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),hp(this),+this}))});function hp(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ff(e.timeZone,e)*60))}function qE(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),om(e)}function om(e){const t=ff(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const i=-new Date(+e).getTimezoneOffset(),o=-new Date(+r).getTimezoneOffset(),l=i-o,u=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();l&&u&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+l);const p=i-n;p&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+p);const y=new Date(+e);y.setUTCSeconds(0);const S=i>0?y.getSeconds():(y.getSeconds()-60)%60,w=Math.round(-(ff(e.timeZone,e)*60))%60;(w||S)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+w),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+w+S));const C=ff(e.timeZone,e),M=C>0?Math.floor(C):Math.ceil(C),k=-new Date(+e).getTimezoneOffset()-M,W=M!==n,H=k-p;if(W&&H){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+H);const B=ff(e.timeZone,e),I=B>0?Math.floor(B):Math.ceil(B),Y=M-I;Y&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+Y),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+Y))}}class ya extends mu{static tz(t,...n){return n.length?new ya(...n,t):new ya(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),i=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,i]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${i}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,i]=this.tzComponents();return`${t} GMT${n}${r}${i} (${QE(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),i=String(Math.abs(t)%60).padStart(2,"0");return[n,r,i]}withTimeZone(t){return new ya(+this,t)}[Symbol.for("constructDateFrom")](t){return new ya(+new Date(t),this.timeZone)}}const am=6048e5,$E=864e5,lm=Symbol.for("constructDateFrom");function Zi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&lm in e?e[lm](t):e instanceof Date?new e.constructor(t):new Date(t)}function cr(e,t){return Zi(t||e,e)}function sm(e,t,n){const r=cr(e,n==null?void 0:n.in);return isNaN(t)?Zi(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function cm(e,t,n){const r=cr(e,n==null?void 0:n.in);if(isNaN(t))return Zi(e,NaN);if(!t)return r;const i=r.getDate(),o=Zi(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const l=o.getDate();return i>=l?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let eC={};function yh(){return eC}function Af(e,t){var u,p,y,S;const n=yh(),r=(t==null?void 0:t.weekStartsOn)??((p=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((S=(y=n.locale)==null?void 0:y.options)==null?void 0:S.weekStartsOn)??0,i=cr(e,t==null?void 0:t.in),o=i.getDay(),l=(o<r?7:0)+o-r;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function wh(e,t){return Af(e,{...t,weekStartsOn:1})}function um(e,t){const n=cr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Zi(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=wh(i),l=Zi(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const u=wh(l);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function dm(e){const t=cr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function If(e,...t){const n=Zi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function xh(e,t){const n=cr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function gp(e,t,n){const[r,i]=If(n==null?void 0:n.in,e,t),o=xh(r),l=xh(i),u=+o-dm(o),p=+l-dm(l);return Math.round((u-p)/$E)}function tC(e,t){const n=um(e,t),r=Zi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),wh(r)}function nC(e,t,n){return sm(e,t*7,n)}function rC(e,t,n){return cm(e,t*12,n)}function iC(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Zi.bind(null,i));const o=cr(i,r);(!n||n<o||isNaN(+o))&&(n=o)}),Zi(r,n||NaN)}function oC(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Zi.bind(null,i));const o=cr(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),Zi(r,n||NaN)}function aC(e,t,n){const[r,i]=If(n==null?void 0:n.in,e,t);return+xh(r)==+xh(i)}function fm(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lC(e){return!(!fm(e)&&typeof e!="number"||isNaN(+cr(e)))}function hm(e,t,n){const[r,i]=If(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),l=r.getMonth()-i.getMonth();return o*12+l}function sC(e,t){const n=cr(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function gm(e,t){const[n,r]=If(e,t.start,t.end);return{start:n,end:r}}function cC(e,t){const{start:n,end:r}=gm(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,l=i?r:n;l.setHours(0,0,0,0),l.setDate(1);let u=1;const p=[];for(;+l<=o;)p.push(Zi(n,l)),l.setMonth(l.getMonth()+u);return i?p.reverse():p}function uC(e,t){const n=cr(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function dC(e,t){const n=cr(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function pm(e,t){const n=cr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function fC(e,t){const{start:n,end:r}=gm(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,l=i?r:n;l.setHours(0,0,0,0),l.setMonth(0,1);let u=1;const p=[];for(;+l<=o;)p.push(Zi(n,l)),l.setFullYear(l.getFullYear()+u);return i?p.reverse():p}function vm(e,t){var u,p,y,S;const n=yh(),r=(t==null?void 0:t.weekStartsOn)??((p=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((S=(y=n.locale)==null?void 0:y.options)==null?void 0:S.weekStartsOn)??0,i=cr(e,t==null?void 0:t.in),o=i.getDay(),l=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+l),i.setHours(23,59,59,999),i}function hC(e,t){return vm(e,{...t,weekStartsOn:1})}const gC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pC=(e,t,n)=>{let r;const i=gC[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const vC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},bC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yC={date:pp({formats:vC,defaultWidth:"full"}),time:pp({formats:bC,defaultWidth:"full"}),dateTime:pp({formats:mC,defaultWidth:"full"})},wC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xC=(e,t,n,r)=>wC[e];function Sh(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):l;i=e.formattingValues[u]||e.formattingValues[l]}else{const l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const SC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},EC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},CC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},TC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},kC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},RC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},MC={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Sh({values:SC,defaultWidth:"wide"}),quarter:Sh({values:EC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Sh({values:CC,defaultWidth:"wide"}),day:Sh({values:TC,defaultWidth:"wide"}),dayPeriod:Sh({values:kC,defaultWidth:"wide",formattingValues:RC,defaultFormattingWidth:"wide"})};function Eh(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const l=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(u)?PC(u,w=>w.test(l)):_C(u,w=>w.test(l));let y;y=e.valueCallback?e.valueCallback(p):p,y=n.valueCallback?n.valueCallback(y):y;const S=t.slice(l.length);return{value:y,rest:S}}}function _C(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function PC(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function OC(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;const u=t.slice(i.length);return{value:l,rest:u}}}const AC=/^(\d+)(th|st|nd|rd)?/i,IC=/\d+/i,NC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},FC={any:[/^b/i,/^(a|c)/i]},DC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},LC={any:[/1/i,/2/i,/3/i,/4/i]},BC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},HC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},WC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},UC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},GC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},YC={ordinalNumber:OC({matchPattern:AC,parsePattern:IC,valueCallback:e=>parseInt(e,10)}),era:Eh({matchPatterns:NC,defaultMatchWidth:"wide",parsePatterns:FC,defaultParseWidth:"any"}),quarter:Eh({matchPatterns:DC,defaultMatchWidth:"wide",parsePatterns:LC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Eh({matchPatterns:BC,defaultMatchWidth:"wide",parsePatterns:zC,defaultParseWidth:"any"}),day:Eh({matchPatterns:HC,defaultMatchWidth:"wide",parsePatterns:WC,defaultParseWidth:"any"}),dayPeriod:Eh({matchPatterns:UC,defaultMatchWidth:"any",parsePatterns:GC,defaultParseWidth:"any"})},Nf={code:"en-US",formatDistance:pC,formatLong:yC,formatRelative:xC,localize:MC,match:YC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function VC(e,t){const n=cr(e,t==null?void 0:t.in);return gp(n,pm(n))+1}function vp(e,t){const n=cr(e,t==null?void 0:t.in),r=+wh(n)-+tC(n);return Math.round(r/am)+1}function bm(e,t){var S,w,C,M;const n=cr(e,t==null?void 0:t.in),r=n.getFullYear(),i=yh(),o=(t==null?void 0:t.firstWeekContainsDate)??((w=(S=t==null?void 0:t.locale)==null?void 0:S.options)==null?void 0:w.firstWeekContainsDate)??i.firstWeekContainsDate??((M=(C=i.locale)==null?void 0:C.options)==null?void 0:M.firstWeekContainsDate)??1,l=Zi((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,o),l.setHours(0,0,0,0);const u=Af(l,t),p=Zi((t==null?void 0:t.in)||e,0);p.setFullYear(r,0,o),p.setHours(0,0,0,0);const y=Af(p,t);return+n>=+u?r+1:+n>=+y?r:r-1}function XC(e,t){var u,p,y,S;const n=yh(),r=(t==null?void 0:t.firstWeekContainsDate)??((p=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:p.firstWeekContainsDate)??n.firstWeekContainsDate??((S=(y=n.locale)==null?void 0:y.options)==null?void 0:S.firstWeekContainsDate)??1,i=bm(e,t),o=Zi((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Af(o,t)}function bp(e,t){const n=cr(e,t==null?void 0:t.in),r=+Af(n,t)-+XC(n,t);return Math.round(r/am)+1}function or(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fd={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return or(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):or(n+1,2)},d(e,t){return or(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return or(e.getHours()%12||12,t.length)},H(e,t){return or(e.getHours(),t.length)},m(e,t){return or(e.getMinutes(),t.length)},s(e,t){return or(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return or(i,t.length)}},Ff={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mm={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Fd.y(e,t)},Y:function(e,t,n,r){const i=bm(e,r),o=i>0?i:1-i;if(t==="YY"){const l=o%100;return or(l,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):or(o,t.length)},R:function(e,t){const n=um(e);return or(n,t.length)},u:function(e,t){const n=e.getFullYear();return or(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return or(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return or(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Fd.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return or(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=bp(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):or(i,t.length)},I:function(e,t,n){const r=vp(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):or(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fd.d(e,t)},D:function(e,t,n){const r=VC(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):or(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return or(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return or(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return or(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ff.noon:r===0?i=Ff.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ff.evening:r>=12?i=Ff.afternoon:r>=4?i=Ff.morning:i=Ff.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Fd.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fd.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):or(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):or(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fd.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fd.s(e,t)},S:function(e,t){return Fd.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return wm(r);case"XXXX":case"XX":return hf(r);case"XXXXX":case"XXX":default:return hf(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return wm(r);case"xxxx":case"xx":return hf(r);case"xxxxx":case"xxx":default:return hf(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ym(r,":");case"OOOO":default:return"GMT"+hf(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ym(r,":");case"zzzz":default:return"GMT"+hf(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return or(r,t.length)},T:function(e,t,n){return or(+e,t.length)}};function ym(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+or(o,2)}function wm(e,t){return e%60===0?(e>0?"-":"+")+or(Math.abs(e)/60,2):hf(e,t)}function hf(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=or(Math.trunc(r/60),2),o=or(r%60,2);return n+i+t+o}const xm=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Sm=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ZC={p:Sm,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return xm(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",xm(r,t)).replace("{{time}}",Sm(i,t))}},JC=/^D+$/,KC=/^Y+$/,QC=["D","DD","YY","YYYY"];function jC(e){return JC.test(e)}function qC(e){return KC.test(e)}function $C(e,t,n){const r=eT(e,t,n);if(console.warn(r),QC.includes(e))throw new RangeError(r)}function eT(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rT=/^'([^]*?)'?$/,iT=/''/g,oT=/[a-zA-Z]/;function Ch(e,t,n){var S,w,C,M,O,k,W,H;const r=yh(),i=(n==null?void 0:n.locale)??r.locale??Nf,o=(n==null?void 0:n.firstWeekContainsDate)??((w=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:w.firstWeekContainsDate)??r.firstWeekContainsDate??((M=(C=r.locale)==null?void 0:C.options)==null?void 0:M.firstWeekContainsDate)??1,l=(n==null?void 0:n.weekStartsOn)??((k=(O=n==null?void 0:n.locale)==null?void 0:O.options)==null?void 0:k.weekStartsOn)??r.weekStartsOn??((H=(W=r.locale)==null?void 0:W.options)==null?void 0:H.weekStartsOn)??0,u=cr(e,n==null?void 0:n.in);if(!lC(u))throw new RangeError("Invalid time value");let p=t.match(nT).map(B=>{const I=B[0];if(I==="p"||I==="P"){const Y=ZC[I];return Y(B,i.formatLong)}return B}).join("").match(tT).map(B=>{if(B==="''")return{isToken:!1,value:"'"};const I=B[0];if(I==="'")return{isToken:!1,value:aT(B)};if(mm[I])return{isToken:!0,value:B};if(I.match(oT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return{isToken:!1,value:B}});i.localize.preprocessor&&(p=i.localize.preprocessor(u,p));const y={firstWeekContainsDate:o,weekStartsOn:l,locale:i};return p.map(B=>{if(!B.isToken)return B.value;const I=B.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&qC(I)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&jC(I))&&$C(I,t,String(e));const Y=mm[I[0]];return Y(u,I,i.localize,y)}).join("")}function aT(e){const t=e.match(rT);return t?t[1].replace(iT,"'"):e}function lT(e,t){const n=cr(e,t==null?void 0:t.in),r=n.getFullYear(),i=n.getMonth(),o=Zi(n,0);return o.setFullYear(r,i+1,0),o.setHours(0,0,0,0),o.getDate()}function sT(e,t){return cr(e,t==null?void 0:t.in).getMonth()}function cT(e,t){return cr(e,t==null?void 0:t.in).getFullYear()}function uT(e,t){return+cr(e)>+cr(t)}function dT(e,t){return+cr(e)<+cr(t)}function fT(e,t,n){const[r,i]=If(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function hT(e,t,n){const[r,i]=If(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()}function gT(e,t,n){const r=cr(e,n==null?void 0:n.in),i=r.getFullYear(),o=r.getDate(),l=Zi(e,0);l.setFullYear(i,t,15),l.setHours(0,0,0,0);const u=lT(l);return r.setMonth(t,Math.min(o,u)),r}function pT(e,t,n){const r=cr(e,n==null?void 0:n.in);return isNaN(+r)?Zi(e,NaN):(r.setFullYear(t),r)}const Em=5,vT=4;function bT(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),o=t.addDays(i,Em*7-1);return t.getMonth(e)===t.getMonth(o)?Em:vT}function Cm(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-1*6):t.addDays(n,-1*(r-1))}function mT(e,t){const n=Cm(e,t),r=bT(e,t);return t.addDays(n,r*7-1)}const Tm={...Nf,labels:{labelDayButton:(e,t,n,r)=>{let i;r&&typeof r.format=="function"?i=r.format.bind(r):i=(l,u)=>Ch(l,u,{locale:Nf,...n});let o=i(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(i,o)=>Ch(i,o,{locale:Nf,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let i;r&&typeof r.format=="function"?i=r.format.bind(r):i=(l,u)=>Ch(l,u,{locale:Nf,...n});let o=i(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(i,o)=>Ch(i,o,{locale:Nf,...t}),r(e,"cccc")}}};class ts{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?ya.tz(this.options.timeZone):new this.Date},this.newDate=(r,i,o)=>{var l;return(l=this.overrides)!=null&&l.newDate?this.overrides.newDate(r,i,o):this.options.timeZone?new ya(r,i,o,this.options.timeZone):new Date(r,i,o)},this.addDays=(r,i)=>{var o;return(o=this.overrides)!=null&&o.addDays?this.overrides.addDays(r,i):sm(r,i)},this.addMonths=(r,i)=>{var o;return(o=this.overrides)!=null&&o.addMonths?this.overrides.addMonths(r,i):cm(r,i)},this.addWeeks=(r,i)=>{var o;return(o=this.overrides)!=null&&o.addWeeks?this.overrides.addWeeks(r,i):nC(r,i)},this.addYears=(r,i)=>{var o;return(o=this.overrides)!=null&&o.addYears?this.overrides.addYears(r,i):rC(r,i)},this.differenceInCalendarDays=(r,i)=>{var o;return(o=this.overrides)!=null&&o.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,i):gp(r,i)},this.differenceInCalendarMonths=(r,i)=>{var o;return(o=this.overrides)!=null&&o.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,i):hm(r,i)},this.eachMonthOfInterval=r=>{var i;return(i=this.overrides)!=null&&i.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):cC(r)},this.eachYearOfInterval=r=>{var u;const i=(u=this.overrides)!=null&&u.eachYearOfInterval?this.overrides.eachYearOfInterval(r):fC(r),o=new Set(i.map(p=>this.getYear(p)));if(o.size===i.length)return i;const l=[];return o.forEach(p=>{l.push(new Date(p,0,1))}),l},this.endOfBroadcastWeek=r=>{var i;return(i=this.overrides)!=null&&i.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):mT(r,this)},this.endOfISOWeek=r=>{var i;return(i=this.overrides)!=null&&i.endOfISOWeek?this.overrides.endOfISOWeek(r):hC(r)},this.endOfMonth=r=>{var i;return(i=this.overrides)!=null&&i.endOfMonth?this.overrides.endOfMonth(r):sC(r)},this.endOfWeek=(r,i)=>{var o;return(o=this.overrides)!=null&&o.endOfWeek?this.overrides.endOfWeek(r,i):vm(r,this.options)},this.endOfYear=r=>{var i;return(i=this.overrides)!=null&&i.endOfYear?this.overrides.endOfYear(r):dC(r)},this.format=(r,i,o)=>{var u;const l=(u=this.overrides)!=null&&u.format?this.overrides.format(r,i,this.options):Ch(r,i,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(l):l},this.getISOWeek=r=>{var i;return(i=this.overrides)!=null&&i.getISOWeek?this.overrides.getISOWeek(r):vp(r)},this.getMonth=(r,i)=>{var o;return(o=this.overrides)!=null&&o.getMonth?this.overrides.getMonth(r,this.options):sT(r,this.options)},this.getYear=(r,i)=>{var o;return(o=this.overrides)!=null&&o.getYear?this.overrides.getYear(r,this.options):cT(r,this.options)},this.getWeek=(r,i)=>{var o;return(o=this.overrides)!=null&&o.getWeek?this.overrides.getWeek(r,this.options):bp(r,this.options)},this.isAfter=(r,i)=>{var o;return(o=this.overrides)!=null&&o.isAfter?this.overrides.isAfter(r,i):uT(r,i)},this.isBefore=(r,i)=>{var o;return(o=this.overrides)!=null&&o.isBefore?this.overrides.isBefore(r,i):dT(r,i)},this.isDate=r=>{var i;return(i=this.overrides)!=null&&i.isDate?this.overrides.isDate(r):fm(r)},this.isSameDay=(r,i)=>{var o;return(o=this.overrides)!=null&&o.isSameDay?this.overrides.isSameDay(r,i):aC(r,i)},this.isSameMonth=(r,i)=>{var o;return(o=this.overrides)!=null&&o.isSameMonth?this.overrides.isSameMonth(r,i):fT(r,i)},this.isSameYear=(r,i)=>{var o;return(o=this.overrides)!=null&&o.isSameYear?this.overrides.isSameYear(r,i):hT(r,i)},this.max=r=>{var i;return(i=this.overrides)!=null&&i.max?this.overrides.max(r):iC(r)},this.min=r=>{var i;return(i=this.overrides)!=null&&i.min?this.overrides.min(r):oC(r)},this.setMonth=(r,i)=>{var o;return(o=this.overrides)!=null&&o.setMonth?this.overrides.setMonth(r,i):gT(r,i)},this.setYear=(r,i)=>{var o;return(o=this.overrides)!=null&&o.setYear?this.overrides.setYear(r,i):pT(r,i)},this.startOfBroadcastWeek=(r,i)=>{var o;return(o=this.overrides)!=null&&o.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Cm(r,this)},this.startOfDay=r=>{var i;return(i=this.overrides)!=null&&i.startOfDay?this.overrides.startOfDay(r):xh(r)},this.startOfISOWeek=r=>{var i;return(i=this.overrides)!=null&&i.startOfISOWeek?this.overrides.startOfISOWeek(r):wh(r)},this.startOfMonth=r=>{var i;return(i=this.overrides)!=null&&i.startOfMonth?this.overrides.startOfMonth(r):uC(r)},this.startOfWeek=(r,i)=>{var o;return(o=this.overrides)!=null&&o.startOfWeek?this.overrides.startOfWeek(r,this.options):Af(r,this.options)},this.startOfYear=r=>{var i;return(i=this.overrides)!=null&&i.startOfYear?this.overrides.startOfYear(r):pm(r)},this.options={locale:Tm,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let i=0;i<10;i++)r[i.toString()]=n.format(i);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){var n;const t=(n=this.options.locale)==null?void 0:n.code;return t&&ts.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:i}=this.options,o=n==null?void 0:n.code;if(o&&ts.yearFirstLocales.has(o))try{return new Intl.DateTimeFormat(o,{month:"long",year:"numeric",timeZone:r,numberingSystem:i}).format(t)}catch{}const l=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,l)}}ts.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const yu=new ts;class km{constructor(t,n,r=yu){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class yT{constructor(t,n){this.date=t,this.weeks=n}}class wT{constructor(t,n){this.days=n,this.weekNumber=t}}function xT(e){return fe.createElement("button",{...e})}function ST(e){return fe.createElement("span",{...e})}function ET(e){const{size:t=24,orientation:n="left",className:r}=e;return fe.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&fe.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&fe.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&fe.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&fe.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function CT(e){const{day:t,modifiers:n,...r}=e;return fe.createElement("td",{...r})}function TT(e){const{day:t,modifiers:n,...r}=e,i=fe.useRef(null);return fe.useEffect(()=>{var o;n.focused&&((o=i.current)==null||o.focus())},[n.focused]),fe.createElement("button",{ref:i,...r})}var Ct;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Ct||(Ct={}));var jr;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(jr||(jr={}));var Tc;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Tc||(Tc={}));var ns;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ns||(ns={}));function kT(e){const{options:t,className:n,components:r,classNames:i,...o}=e,l=[i[Ct.Dropdown],n].join(" "),u=t==null?void 0:t.find(({value:p})=>p===o.value);return fe.createElement("span",{"data-disabled":o.disabled,className:i[Ct.DropdownRoot]},fe.createElement(r.Select,{className:l,...o},t==null?void 0:t.map(({value:p,label:y,disabled:S})=>fe.createElement(r.Option,{key:p,value:p,disabled:S},y))),fe.createElement("span",{className:i[Ct.CaptionLabel],"aria-hidden":!0},u==null?void 0:u.label,fe.createElement(r.Chevron,{orientation:"down",size:18,className:i[Ct.Chevron]})))}function RT(e){return fe.createElement("div",{...e})}function MT(e){return fe.createElement("div",{...e})}function _T(e){const{calendarMonth:t,displayIndex:n,...r}=e;return fe.createElement("div",{...r},e.children)}function PT(e){const{calendarMonth:t,displayIndex:n,...r}=e;return fe.createElement("div",{...r})}function OT(e){return fe.createElement("table",{...e})}function AT(e){return fe.createElement("div",{...e})}const Rm=fe.createContext(void 0);function Th(){const e=fe.useContext(Rm);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function IT(e){const{components:t}=Th();return fe.createElement(t.Dropdown,{...e})}function NT(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...o}=e,{components:l,classNames:u,labels:{labelPrevious:p,labelNext:y}}=Th(),S=fe.useCallback(C=>{i&&(n==null||n(C))},[i,n]),w=fe.useCallback(C=>{r&&(t==null||t(C))},[r,t]);return fe.createElement("nav",{...o},fe.createElement(l.PreviousMonthButton,{type:"button",className:u[Ct.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":p(r),onClick:w},fe.createElement(l.Chevron,{disabled:r?void 0:!0,className:u[Ct.Chevron],orientation:"left"})),fe.createElement(l.NextMonthButton,{type:"button",className:u[Ct.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":y(i),onClick:S},fe.createElement(l.Chevron,{disabled:i?void 0:!0,orientation:"right",className:u[Ct.Chevron]})))}function FT(e){const{components:t}=Th();return fe.createElement(t.Button,{...e})}function DT(e){return fe.createElement("option",{...e})}function LT(e){const{components:t}=Th();return fe.createElement(t.Button,{...e})}function BT(e){const{rootRef:t,...n}=e;return fe.createElement("div",{...n,ref:t})}function zT(e){return fe.createElement("select",{...e})}function HT(e){const{week:t,...n}=e;return fe.createElement("tr",{...n})}function WT(e){return fe.createElement("th",{...e})}function UT(e){return fe.createElement("thead",{"aria-hidden":!0},fe.createElement("tr",{...e}))}function GT(e){const{week:t,...n}=e;return fe.createElement("th",{...n})}function YT(e){return fe.createElement("th",{...e})}function VT(e){return fe.createElement("tbody",{...e})}function XT(e){const{components:t}=Th();return fe.createElement(t.Dropdown,{...e})}const ZT=Object.freeze(Object.defineProperty({__proto__:null,Button:xT,CaptionLabel:ST,Chevron:ET,Day:CT,DayButton:TT,Dropdown:kT,DropdownNav:RT,Footer:MT,Month:_T,MonthCaption:PT,MonthGrid:OT,Months:AT,MonthsDropdown:IT,Nav:NT,NextMonthButton:FT,Option:DT,PreviousMonthButton:LT,Root:BT,Select:zT,Week:HT,WeekNumber:GT,WeekNumberHeader:YT,Weekday:WT,Weekdays:UT,Weeks:VT,YearsDropdown:XT},Symbol.toStringTag,{value:"Module"}));function id(e,t,n=!1,r=yu){let{from:i,to:o}=e;const{differenceInCalendarDays:l,isSameDay:u}=r;return i&&o?(l(o,i)<0&&([i,o]=[o,i]),l(t,i)>=(n?1:0)&&l(o,t)>=(n?1:0)):!n&&o?u(o,t):!n&&i?u(i,t):!1}function mp(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function og(e){return!!(e&&typeof e=="object"&&"from"in e)}function yp(e){return!!(e&&typeof e=="object"&&"after"in e)}function wp(e){return!!(e&&typeof e=="object"&&"before"in e)}function Mm(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function _m(e,t){return Array.isArray(e)&&e.every(t.isDate)}function od(e,t,n=yu){const r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:o,isAfter:l}=n;return r.some(u=>{if(typeof u=="boolean")return u;if(n.isDate(u))return i(e,u);if(_m(u,n))return u.some(p=>i(e,p));if(og(u))return id(u,e,!1,n);if(Mm(u))return Array.isArray(u.dayOfWeek)?u.dayOfWeek.includes(e.getDay()):u.dayOfWeek===e.getDay();if(mp(u)){const p=o(u.before,e),y=o(u.after,e),S=p>0,w=y<0;return l(u.before,u.after)?w&&S:S||w}return yp(u)?o(e,u.after)>0:wp(u)?o(u.before,e)>0:typeof u=="function"?u(e):!1})}function JT(e,t,n,r,i){const{disabled:o,hidden:l,modifiers:u,showOutsideDays:p,broadcastCalendar:y,today:S=i.today()}=t,{isSameDay:w,isSameMonth:C,startOfMonth:M,isBefore:O,endOfMonth:k,isAfter:W}=i,H=n&&M(n),B=r&&k(r),I={[jr.focused]:[],[jr.outside]:[],[jr.disabled]:[],[jr.hidden]:[],[jr.today]:[]},Y={};for(const K of e){const{date:G,displayMonth:ne}=K,$=!!(ne&&!C(G,ne)),ie=!!(H&&O(G,H)),se=!!(B&&W(G,B)),ue=!!(o&&od(G,o,i)),he=!!(l&&od(G,l,i))||ie||se||!y&&!p&&$||y&&p===!1&&$,ve=w(G,S);$&&I.outside.push(K),ue&&I.disabled.push(K),he&&I.hidden.push(K),ve&&I.today.push(K),u&&Object.keys(u).forEach(ae=>{const me=u==null?void 0:u[ae];me&&od(G,me,i)&&(Y[ae]?Y[ae].push(K):Y[ae]=[K])})}return K=>{const G={[jr.focused]:!1,[jr.disabled]:!1,[jr.hidden]:!1,[jr.outside]:!1,[jr.today]:!1},ne={};for(const $ in I){const ie=I[$];G[$]=ie.some(se=>se===K)}for(const $ in Y)ne[$]=Y[$].some(ie=>ie===K);return{...G,...ne}}}function KT(e,t,n={}){return Object.entries(e).filter(([,i])=>i===!0).reduce((i,[o])=>(n[o]?i.push(n[o]):t[jr[o]]?i.push(t[jr[o]]):t[Tc[o]]&&i.push(t[Tc[o]]),i),[t[Ct.Day]])}function QT(e){return{...ZT,...e}}function jT(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function qT(){const e={};for(const t in Ct)e[Ct[t]]=`rdp-${Ct[t]}`;for(const t in jr)e[jr[t]]=`rdp-${jr[t]}`;for(const t in Tc)e[Tc[t]]=`rdp-${Tc[t]}`;for(const t in ns)e[ns[t]]=`rdp-${ns[t]}`;return e}function Pm(e,t,n){return(n??new ts(t)).formatMonthYear(e)}const $T=Pm;function ek(e,t,n){return(n??new ts(t)).format(e,"d")}function tk(e,t=yu){return t.format(e,"LLLL")}function nk(e,t,n){return(n??new ts(t)).format(e,"cccccc")}function rk(e,t=yu){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function ik(){return""}function Om(e,t=yu){return t.format(e,"yyyy")}const ok=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Pm,formatDay:ek,formatMonthCaption:$T,formatMonthDropdown:tk,formatWeekNumber:rk,formatWeekNumberHeader:ik,formatWeekdayName:nk,formatYearCaption:Om,formatYearDropdown:Om},Symbol.toStringTag,{value:"Module"}));function ak(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...ok,...e}}function xp(e,t,n,r){let i=(r??new ts(n)).format(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}const lk=xp;function Sp(e,t,n){return(n??new ts(t)).formatMonthYear(e)}const sk=Sp;function Am(e,t,n,r){let i=(r??new ts(n)).format(e,"PPPP");return t!=null&&t.today&&(i=`Today, ${i}`),i}function Im(e){return"Choose the Month"}function Nm(){return""}const ck="Go to the Next Month";function Fm(e,t){return ck}function Dm(e){return"Go to the Previous Month"}function Lm(e,t,n){return(n??new ts(t)).format(e,"cccc")}function Bm(e,t){return`Week ${e}`}function zm(e){return"Week Number"}function Hm(e){return"Choose the Year"}const uk=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:sk,labelDay:lk,labelDayButton:xp,labelGrid:Sp,labelGridcell:Am,labelMonthDropdown:Im,labelNav:Nm,labelNext:Fm,labelPrevious:Dm,labelWeekNumber:Bm,labelWeekNumberHeader:zm,labelWeekday:Lm,labelYearDropdown:Hm},Symbol.toStringTag,{value:"Module"})),kc=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function dk(e,t){var r;const n=((r=t.locale)==null?void 0:r.labels)??{};return{...uk,...e??{},labelDayButton:kc(xp,e==null?void 0:e.labelDayButton,n.labelDayButton),labelMonthDropdown:kc(Im,e==null?void 0:e.labelMonthDropdown,n.labelMonthDropdown),labelNext:kc(Fm,e==null?void 0:e.labelNext,n.labelNext),labelPrevious:kc(Dm,e==null?void 0:e.labelPrevious,n.labelPrevious),labelWeekNumber:kc(Bm,e==null?void 0:e.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:kc(Hm,e==null?void 0:e.labelYearDropdown,n.labelYearDropdown),labelGrid:kc(Sp,e==null?void 0:e.labelGrid,n.labelGrid),labelGridcell:kc(Am,e==null?void 0:e.labelGridcell,n.labelGridcell),labelNav:kc(Nm,e==null?void 0:e.labelNav,n.labelNav),labelWeekNumberHeader:kc(zm,e==null?void 0:e.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:kc(Lm,e==null?void 0:e.labelWeekday,n.labelWeekday)}}function fk(e,t,n,r,i){const{startOfMonth:o,startOfYear:l,endOfYear:u,eachMonthOfInterval:p,getMonth:y}=i;return p({start:l(e),end:u(e)}).map(C=>{const M=r.formatMonthDropdown(C,i),O=y(C),k=t&&C<o(t)||n&&C>o(n)||!1;return{value:O,label:M,disabled:k}})}function hk(e,t={},n={}){let r={...t==null?void 0:t[Ct.Day]};return Object.entries(e).filter(([,i])=>i===!0).forEach(([i])=>{r={...r,...n==null?void 0:n[i]}}),r}function gk(e,t,n,r){const i=r??e.today(),o=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),l=[];for(let u=0;u<7;u++){const p=e.addDays(o,u);l.push(p)}return l}function pk(e,t,n,r,i=!1){if(!e||!t)return;const{startOfYear:o,endOfYear:l,eachYearOfInterval:u,getYear:p}=r,y=o(e),S=l(t),w=u({start:y,end:S});return i&&w.reverse(),w.map(C=>{const M=n.formatYearDropdown(C,r);return{value:p(C),label:M,disabled:!1}})}function vk(e,t={}){var u;const{weekStartsOn:n,locale:r}=t,i=n??((u=r==null?void 0:r.options)==null?void 0:u.weekStartsOn)??0,o=p=>{const y=typeof p=="number"||typeof p=="string"?new Date(p):p;return new ya(y.getFullYear(),y.getMonth(),y.getDate(),12,0,0,e)},l=p=>{const y=o(p);return new Date(y.getFullYear(),y.getMonth(),y.getDate(),0,0,0,0)};return{today:()=>o(ya.tz(e)),newDate:(p,y,S)=>new ya(p,y,S,12,0,0,e),startOfDay:p=>o(p),startOfWeek:(p,y)=>{const S=o(p),w=(y==null?void 0:y.weekStartsOn)??i,C=(S.getDay()-w+7)%7;return S.setDate(S.getDate()-C),S},startOfISOWeek:p=>{const y=o(p),S=(y.getDay()-1+7)%7;return y.setDate(y.getDate()-S),y},startOfMonth:p=>{const y=o(p);return y.setDate(1),y},startOfYear:p=>{const y=o(p);return y.setMonth(0,1),y},endOfWeek:(p,y)=>{const S=o(p),M=((((y==null?void 0:y.weekStartsOn)??i)+6)%7-S.getDay()+7)%7;return S.setDate(S.getDate()+M),S},endOfISOWeek:p=>{const y=o(p),S=(7-y.getDay())%7;return y.setDate(y.getDate()+S),y},endOfMonth:p=>{const y=o(p);return y.setMonth(y.getMonth()+1,0),y},endOfYear:p=>{const y=o(p);return y.setMonth(11,31),y},eachMonthOfInterval:p=>{const y=o(p.start),S=o(p.end),w=[],C=new ya(y.getFullYear(),y.getMonth(),1,12,0,0,e),M=S.getFullYear()*12+S.getMonth();for(;C.getFullYear()*12+C.getMonth()<=M;)w.push(new ya(C,e)),C.setMonth(C.getMonth()+1,1);return w},addDays:(p,y)=>{const S=o(p);return S.setDate(S.getDate()+y),S},addWeeks:(p,y)=>{const S=o(p);return S.setDate(S.getDate()+y*7),S},addMonths:(p,y)=>{const S=o(p);return S.setMonth(S.getMonth()+y),S},addYears:(p,y)=>{const S=o(p);return S.setFullYear(S.getFullYear()+y),S},eachYearOfInterval:p=>{const y=o(p.start),S=o(p.end),w=[],C=new ya(y.getFullYear(),0,1,12,0,0,e);for(;C.getFullYear()<=S.getFullYear();)w.push(new ya(C,e)),C.setFullYear(C.getFullYear()+1,0,1);return w},getWeek:(p,y)=>{var w;const S=l(p);return bp(S,{weekStartsOn:(y==null?void 0:y.weekStartsOn)??i,firstWeekContainsDate:(y==null?void 0:y.firstWeekContainsDate)??((w=r==null?void 0:r.options)==null?void 0:w.firstWeekContainsDate)??1})},getISOWeek:p=>{const y=l(p);return vp(y)},differenceInCalendarDays:(p,y)=>{const S=l(p),w=l(y);return gp(S,w)},differenceInCalendarMonths:(p,y)=>{const S=l(p),w=l(y);return hm(S,w)}}}const kh=e=>e instanceof HTMLElement?e:null,Ep=e=>[...e.querySelectorAll("[data-animated-month]")??[]],bk=e=>kh(e.querySelector("[data-animated-month]")),Cp=e=>kh(e.querySelector("[data-animated-caption]")),Tp=e=>kh(e.querySelector("[data-animated-weeks]")),mk=e=>kh(e.querySelector("[data-animated-nav]")),yk=e=>kh(e.querySelector("[data-animated-weekdays]"));function wk(e,t,{classNames:n,months:r,focused:i,dateLib:o}){const l=fe.useRef(null),u=fe.useRef(r),p=fe.useRef(!1);fe.useLayoutEffect(()=>{const y=u.current;if(u.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||y.length===0||r.length!==y.length)return;const S=o.isSameMonth(r[0].date,y[0].date),w=o.isAfter(r[0].date,y[0].date),C=w?n[ns.caption_after_enter]:n[ns.caption_before_enter],M=w?n[ns.weeks_after_enter]:n[ns.weeks_before_enter],O=l.current,k=e.current.cloneNode(!0);if(k instanceof HTMLElement?(Ep(k).forEach(I=>{if(!(I instanceof HTMLElement))return;const Y=bk(I);Y&&I.contains(Y)&&I.removeChild(Y);const K=Cp(I);K&&K.classList.remove(C);const G=Tp(I);G&&G.classList.remove(M)}),l.current=k):l.current=null,p.current||S||i)return;const W=O instanceof HTMLElement?Ep(O):[],H=Ep(e.current);if(H!=null&&H.every(B=>B instanceof HTMLElement)&&W&&W.every(B=>B instanceof HTMLElement)){p.current=!0,e.current.style.isolation="isolate";const B=mk(e.current);B&&(B.style.zIndex="1"),H.forEach((I,Y)=>{const K=W[Y];if(!K)return;I.style.position="relative",I.style.overflow="hidden";const G=Cp(I);G&&G.classList.add(C);const ne=Tp(I);ne&&ne.classList.add(M);const $=()=>{p.current=!1,e.current&&(e.current.style.isolation=""),B&&(B.style.zIndex=""),G&&G.classList.remove(C),ne&&ne.classList.remove(M),I.style.position="",I.style.overflow="",I.contains(K)&&I.removeChild(K)};K.style.pointerEvents="none",K.style.position="absolute",K.style.overflow="hidden",K.setAttribute("aria-hidden","true");const ie=yk(K);ie&&(ie.style.opacity="0");const se=Cp(K);se&&(se.classList.add(w?n[ns.caption_before_exit]:n[ns.caption_after_exit]),se.addEventListener("animationend",$));const ue=Tp(K);ue&&ue.classList.add(w?n[ns.weeks_before_exit]:n[ns.weeks_after_exit]),I.insertBefore(K,I.firstChild)})}})}function xk(e,t,n,r){const i=e[0],o=e[e.length-1],{ISOWeek:l,fixedWeeks:u,broadcastCalendar:p}=n??{},{addDays:y,differenceInCalendarDays:S,differenceInCalendarMonths:w,endOfBroadcastWeek:C,endOfISOWeek:M,endOfMonth:O,endOfWeek:k,isAfter:W,startOfBroadcastWeek:H,startOfISOWeek:B,startOfWeek:I}=r,Y=p?H(i,r):l?B(i):I(i),K=p?C(o):l?M(O(o)):k(O(o)),G=t&&(p?C(t):l?M(t):k(t)),ne=G&&W(K,G)?G:K,$=S(ne,Y),ie=w(o,i)+1,se=[];for(let ve=0;ve<=$;ve++){const ae=y(Y,ve);se.push(ae)}const he=(p?35:42)*ie;if(u&&se.length<he){const ve=he-se.length;for(let ae=0;ae<ve;ae++){const me=y(se[se.length-1],1);se.push(me)}}return se}function Sk(e){const t=[];return e.reduce((n,r)=>{const i=r.weeks.reduce((o,l)=>o.concat(l.days.slice()),t.slice());return n.concat(i.slice())},t.slice())}function Ek(e,t,n,r){const{numberOfMonths:i=1}=n,o=[];for(let l=0;l<i;l++){const u=r.addMonths(e,l);if(t&&u>t)break;o.push(u)}return o}function Wm(e,t,n,r){const{month:i,defaultMonth:o,today:l=r.today(),numberOfMonths:u=1}=e;let p=i||o||l;const{differenceInCalendarMonths:y,addMonths:S,startOfMonth:w}=r;if(n&&y(n,p)<u-1){const C=-1*(u-1);p=S(n,C)}return t&&y(p,t)<0&&(p=t),w(p)}function Ck(e,t,n,r){const{addDays:i,endOfBroadcastWeek:o,endOfISOWeek:l,endOfMonth:u,endOfWeek:p,getISOWeek:y,getWeek:S,startOfBroadcastWeek:w,startOfISOWeek:C,startOfWeek:M}=r,O=e.reduce((k,W)=>{const H=n.broadcastCalendar?w(W,r):n.ISOWeek?C(W):M(W),B=n.broadcastCalendar?o(W):n.ISOWeek?l(u(W)):p(u(W)),I=t.filter(ne=>ne>=H&&ne<=B),Y=n.broadcastCalendar?35:42;if(n.fixedWeeks&&I.length<Y){const ne=t.filter($=>{const ie=Y-I.length;return $>B&&$<=i(B,ie)});I.push(...ne)}const K=I.reduce((ne,$)=>{const ie=n.ISOWeek?y($):S($),se=ne.find(he=>he.weekNumber===ie),ue=new km($,W,r);return se?se.days.push(ue):ne.push(new wT(ie,[ue])),ne},[]),G=new yT(W,K);return k.push(G),k},[]);return n.reverseMonths?O.reverse():O}function Tk(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:i,startOfDay:o,startOfMonth:l,endOfMonth:u,addYears:p,endOfYear:y,newDate:S,today:w}=t,{fromYear:C,toYear:M,fromMonth:O,toMonth:k}=e;!n&&O&&(n=O),!n&&C&&(n=t.newDate(C,0,1)),!r&&k&&(r=k),!r&&M&&(r=S(M,11,31));const W=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=l(n):C?n=S(C,0,1):!n&&W&&(n=i(p(e.today??w(),-100))),r?r=u(r):M?r=S(M,11,31):!r&&W&&(r=y(e.today??w())),[n&&o(n),r&&o(r)]}function kk(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:o=1}=n,{startOfMonth:l,addMonths:u,differenceInCalendarMonths:p}=r,y=i?o:1,S=l(e);if(!t)return u(S,y);if(!(p(t,e)<o))return u(S,y)}function Rk(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:o}=n,{startOfMonth:l,addMonths:u,differenceInCalendarMonths:p}=r,y=i?o??1:1,S=l(e);if(!t)return u(S,-y);if(!(p(S,t)<=0))return u(S,-y)}function Mk(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function ag(e,t){const[n,r]=fe.useState(e);return[t===void 0?n:t,r]}function _k(e,t){var Y;const[n,r]=Tk(e,t),{startOfMonth:i,endOfMonth:o}=t,l=Wm(e,n,r,t),[u,p]=ag(l,e.month?l:void 0);fe.useEffect(()=>{const K=Wm(e,n,r,t);p(K)},[e.timeZone]);const{months:y,weeks:S,days:w,previousMonth:C,nextMonth:M}=fe.useMemo(()=>{const K=Ek(u,r,{numberOfMonths:e.numberOfMonths},t),G=xk(K,e.endMonth?o(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),ne=Ck(K,G,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),$=Mk(ne),ie=Sk(ne),se=Rk(u,n,e,t),ue=kk(u,r,e,t);return{months:ne,weeks:$,days:ie,previousMonth:se,nextMonth:ue}},[t,u.getTime(),r==null?void 0:r.getTime(),n==null?void 0:n.getTime(),e.disableNavigation,e.broadcastCalendar,(Y=e.endMonth)==null?void 0:Y.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:O,onMonthChange:k}=e,W=K=>S.some(G=>G.days.some(ne=>ne.isEqualTo(K))),H=K=>{if(O)return;let G=i(K);n&&G<i(n)&&(G=i(n)),r&&G>i(r)&&(G=i(r)),p(G),k==null||k(G)};return{months:y,weeks:S,days:w,navStart:n,navEnd:r,previousMonth:C,nextMonth:M,goToMonth:H,goToDay:K=>{W(K)||H(K.date)}}}var wu;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(wu||(wu={}));function Um(e){return!e[jr.disabled]&&!e[jr.hidden]&&!e[jr.outside]}function Pk(e,t,n,r){let i,o=-1;for(const l of e){const u=t(l);Um(u)&&(u[jr.focused]&&o<wu.FocusedModifier?(i=l,o=wu.FocusedModifier):r!=null&&r.isEqualTo(l)&&o<wu.LastFocused?(i=l,o=wu.LastFocused):n(l.date)&&o<wu.Selected?(i=l,o=wu.Selected):u[jr.today]&&o<wu.Today&&(i=l,o=wu.Today))}return i||(i=e.find(l=>Um(t(l)))),i}function Ok(e,t,n,r,i,o,l){const{ISOWeek:u,broadcastCalendar:p}=o,{addDays:y,addMonths:S,addWeeks:w,addYears:C,endOfBroadcastWeek:M,endOfISOWeek:O,endOfWeek:k,max:W,min:H,startOfBroadcastWeek:B,startOfISOWeek:I,startOfWeek:Y}=l;let G={day:y,week:w,month:S,year:C,startOfWeek:ne=>p?B(ne,l):u?I(ne):Y(ne),endOfWeek:ne=>p?M(ne):u?O(ne):k(ne)}[e](n,t==="after"?1:-1);return t==="before"&&r?G=W([r,G]):t==="after"&&i&&(G=H([i,G])),G}function Gm(e,t,n,r,i,o,l,u=0){if(u>365)return;const p=Ok(e,t,n.date,r,i,o,l),y=!!(o.disabled&&od(p,o.disabled,l)),S=!!(o.hidden&&od(p,o.hidden,l)),w=p,C=new km(p,w,l);return!y&&!S?C:Gm(e,t,C,r,i,o,l,u+1)}function Ak(e,t,n,r,i){const{autoFocus:o}=e,[l,u]=fe.useState(),p=Pk(t.days,n,r||(()=>!1),l),[y,S]=fe.useState(o?p:void 0);return{isFocusTarget:k=>!!(p!=null&&p.isEqualTo(k)),setFocused:S,focused:y,blur:()=>{u(y),S(void 0)},moveFocus:(k,W)=>{if(!y)return;const H=Gm(k,W,y,t.navStart,t.navEnd,e,i);H&&(e.disableNavigation&&!t.days.some(I=>I.isEqualTo(H))||(t.goToDay(H),S(H)))}}}function Ik(e,t){const{selected:n,required:r,onSelect:i}=e,[o,l]=ag(n,i?n:void 0),u=i?n:o,{isSameDay:p}=t,y=M=>(u==null?void 0:u.some(O=>p(O,M)))??!1,{min:S,max:w}=e;return{selected:u,select:(M,O,k)=>{let W=[...u??[]];if(y(M)){if((u==null?void 0:u.length)===S||r&&(u==null?void 0:u.length)===1)return;W=u==null?void 0:u.filter(H=>!p(H,M))}else(u==null?void 0:u.length)===w?W=[M]:W=[...W,M];return i||l(W),i==null||i(W,M,O,k),W},isSelected:y}}function Nk(e,t,n=0,r=0,i=!1,o=yu){const{from:l,to:u}=t||{},{isSameDay:p,isAfter:y,isBefore:S}=o;let w;if(!l&&!u)w={from:e,to:n>0?void 0:e};else if(l&&!u)p(l,e)?n===0?w={from:l,to:e}:i?w={from:l,to:void 0}:w=void 0:S(e,l)?w={from:e,to:l}:w={from:l,to:e};else if(l&&u)if(p(l,e)&&p(u,e))i?w={from:l,to:u}:w=void 0;else if(p(l,e))w={from:l,to:n>0?void 0:e};else if(p(u,e))w={from:e,to:n>0?void 0:e};else if(S(e,l))w={from:e,to:u};else if(y(e,l))w={from:l,to:e};else if(y(e,u))w={from:l,to:e};else throw new Error("Invalid range");if(w!=null&&w.from&&(w!=null&&w.to)){const C=o.differenceInCalendarDays(w.to,w.from);r>0&&C>r?w={from:e,to:void 0}:n>1&&C<n&&(w={from:e,to:void 0})}return w}function Fk(e,t,n=yu){const r=Array.isArray(t)?t:[t];let i=e.from;const o=n.differenceInCalendarDays(e.to,e.from),l=Math.min(o,6);for(let u=0;u<=l;u++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function Ym(e,t,n=yu){return id(e,t.from,!1,n)||id(e,t.to,!1,n)||id(t,e.from,!1,n)||id(t,e.to,!1,n)}function Dk(e,t,n=yu){const r=Array.isArray(t)?t:[t];if(r.filter(u=>typeof u!="function").some(u=>typeof u=="boolean"?u:n.isDate(u)?id(e,u,!1,n):_m(u,n)?u.some(p=>id(e,p,!1,n)):og(u)?u.from&&u.to?Ym(e,{from:u.from,to:u.to},n):!1:Mm(u)?Fk(e,u.dayOfWeek,n):mp(u)?n.isAfter(u.before,u.after)?Ym(e,{from:n.addDays(u.after,1),to:n.addDays(u.before,-1)},n):od(e.from,u,n)||od(e.to,u,n):yp(u)||wp(u)?od(e.from,u,n)||od(e.to,u,n):!1))return!0;const l=r.filter(u=>typeof u=="function");if(l.length){let u=e.from;const p=n.differenceInCalendarDays(e.to,e.from);for(let y=0;y<=p;y++){if(l.some(S=>S(u)))return!0;u=n.addDays(u,1)}}return!1}function Lk(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:o,required:l,onSelect:u}=e,[p,y]=ag(o,u?o:void 0),S=u?o:p;return{selected:S,select:(M,O,k)=>{const{min:W,max:H}=e;let B;if(M){const I=S==null?void 0:S.from,Y=S==null?void 0:S.to,K=!!I&&!!Y,G=!!I&&!!Y&&t.isSameDay(I,Y)&&t.isSameDay(M,I);i&&(K||!(S!=null&&S.from))?!l&&G?B=void 0:B={from:M,to:void 0}:B=Nk(M,S,W,H,l,t)}return r&&n&&(B!=null&&B.from)&&B.to&&Dk({from:B.from,to:B.to},n,t)&&(B.from=M,B.to=void 0),u||y(B),u==null||u(B,M,O,k),B},isSelected:M=>S&&id(S,M,!1,t)}}function Bk(e,t){const{selected:n,required:r,onSelect:i}=e,[o,l]=ag(n,i?n:void 0),u=i?n:o,{isSameDay:p}=t;return{selected:u,select:(w,C,M)=>{let O=w;return!r&&u&&u&&p(w,u)&&(O=void 0),i||l(O),i==null||i(O,w,C,M),O},isSelected:w=>u?p(u,w):!1}}function zk(e,t){const n=Bk(e,t),r=Ik(e,t),i=Lk(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return i;default:return}}function Us(e,t){return e instanceof ya&&e.timeZone===t?e:new ya(e,t)}function Df(e,t,n){return Us(e,t)}function Vm(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Df(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Df(r,t):r):og(e)?{...e,from:e.from?Us(e.from,t):e.from,to:e.to?Us(e.to,t):e.to}:mp(e)?{before:Df(e.before,t),after:Df(e.after,t)}:yp(e)?{after:Df(e.after,t)}:wp(e)?{before:Df(e.before,t)}:e}function kp(e,t,n){return e&&(Array.isArray(e)?e.map(r=>Vm(r,t)):Vm(e,t))}function Hk(e){var Cn;let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Us(t.today,n)),t.month&&(t.month=Us(t.month,n)),t.defaultMonth&&(t.defaultMonth=Us(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Us(t.startMonth,n)),t.endMonth&&(t.endMonth=Us(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Us(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=(Cn=t.selected)==null?void 0:Cn.map(ut=>Us(ut,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Us(t.selected.from,n):t.selected.from,to:t.selected.to?Us(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=kp(t.disabled,n)),t.hidden!==void 0&&(t.hidden=kp(t.hidden,n)),t.modifiers)){const ut={};Object.keys(t.modifiers).forEach(en=>{var ht;ut[en]=kp((ht=t.modifiers)==null?void 0:ht[en],n)}),t.modifiers=ut}const{components:r,formatters:i,labels:o,dateLib:l,locale:u,classNames:p}=fe.useMemo(()=>{const ut={...Tm,...t.locale},en=t.broadcastCalendar?1:t.weekStartsOn,ht=t.noonSafe&&t.timeZone?vk(t.timeZone,{weekStartsOn:en,locale:ut}):void 0,Vt=t.dateLib&&ht?{...ht,...t.dateLib}:t.dateLib??ht,Rr=new ts({locale:ut,weekStartsOn:en,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Vt);return{dateLib:Rr,components:QT(t.components),formatters:ak(t.formatters),labels:dk(t.labels,Rr.options),locale:ut,classNames:{...qT(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:l.today()});const{captionLayout:y,mode:S,navLayout:w,numberOfMonths:C=1,onDayBlur:M,onDayClick:O,onDayFocus:k,onDayKeyDown:W,onDayMouseEnter:H,onDayMouseLeave:B,onNextClick:I,onPrevClick:Y,showWeekNumber:K,styles:G}=t,{formatCaption:ne,formatDay:$,formatMonthDropdown:ie,formatWeekNumber:se,formatWeekNumberHeader:ue,formatWeekdayName:he,formatYearDropdown:ve}=i,ae=_k(t,l),{days:me,months:V,navStart:J,navEnd:oe,previousMonth:xe,nextMonth:ee,goToMonth:Q}=ae,Ce=JT(me,t,J,oe,l),{isSelected:Ge,select:We,selected:Oe}=zk(t,l)??{},{blur:rt,focused:Fe,isFocusTarget:Ye,moveFocus:Ve,setFocused:Ke}=Ak(t,ae,Ce,Ge??(()=>!1),l),{labelDayButton:st,labelGridcell:gt,labelGrid:it,labelMonthDropdown:mt,labelNav:ft,labelPrevious:tt,labelNext:Ft,labelWeekday:at,labelWeekNumber:Wt,labelWeekNumberHeader:Dt,labelYearDropdown:ct}=o,$t=fe.useMemo(()=>gk(l,t.ISOWeek,t.broadcastCalendar,t.today),[l,t.ISOWeek,t.broadcastCalendar,t.today]),un=S!==void 0||O!==void 0,tr=fe.useCallback(()=>{xe&&(Q(xe),Y==null||Y(xe))},[xe,Q,Y]),Rt=fe.useCallback(()=>{ee&&(Q(ee),I==null||I(ee))},[Q,ee,I]),Le=fe.useCallback((ut,en)=>ht=>{ht.preventDefault(),ht.stopPropagation(),Ke(ut),!en.disabled&&(We==null||We(ut.date,en,ht),O==null||O(ut.date,en,ht))},[We,O,Ke]),Xe=fe.useCallback((ut,en)=>ht=>{Ke(ut),k==null||k(ut.date,en,ht)},[k,Ke]),Pt=fe.useCallback((ut,en)=>ht=>{rt(),M==null||M(ut.date,en,ht)},[rt,M]),$e=fe.useCallback((ut,en)=>ht=>{const Vt={ArrowLeft:[ht.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ht.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ht.shiftKey?"year":"week","after"],ArrowUp:[ht.shiftKey?"year":"week","before"],PageUp:[ht.shiftKey?"year":"month","before"],PageDown:[ht.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Vt[ht.key]){ht.preventDefault(),ht.stopPropagation();const[Rr,Tt]=Vt[ht.key];Ve(Rr,Tt)}W==null||W(ut.date,en,ht)},[Ve,W,t.dir]),nr=fe.useCallback((ut,en)=>ht=>{H==null||H(ut.date,en,ht)},[H]),zr=fe.useCallback((ut,en)=>ht=>{B==null||B(ut.date,en,ht)},[B]),$r=fe.useCallback(ut=>en=>{const ht=Number(en.target.value),Vt=l.setMonth(l.startOfMonth(ut),ht);Q(Vt)},[l,Q]),uo=fe.useCallback(ut=>en=>{const ht=Number(en.target.value),Vt=l.setYear(l.startOfMonth(ut),ht);Q(Vt)},[l,Q]),{className:Fo,style:Do}=fe.useMemo(()=>({className:[p[Ct.Root],t.className].filter(Boolean).join(" "),style:{...G==null?void 0:G[Ct.Root],...t.style}}),[p,t.className,t.style,G]),fo=jT(t),ho=fe.useRef(null);wk(ho,!!t.animate,{classNames:p,months:V,focused:Fe,dateLib:l});const xa={dayPickerProps:t,selected:Oe,select:We,isSelected:Ge,months:V,nextMonth:ee,previousMonth:xe,goToMonth:Q,getModifiers:Ce,components:r,classNames:p,styles:G,labels:o,formatters:i};return fe.createElement(Rm.Provider,{value:xa},fe.createElement(r.Root,{rootRef:t.animate?ho:void 0,className:Fo,style:Do,dir:t.dir,id:t.id,lang:t.lang??u.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...fo},fe.createElement(r.Months,{className:p[Ct.Months],style:G==null?void 0:G[Ct.Months]},!t.hideNavigation&&!w&&fe.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:p[Ct.Nav],style:G==null?void 0:G[Ct.Nav],"aria-label":ft(),onPreviousClick:tr,onNextClick:Rt,previousMonth:xe,nextMonth:ee}),V.map((ut,en)=>fe.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:p[Ct.Month],style:G==null?void 0:G[Ct.Month],key:en,displayIndex:en,calendarMonth:ut},w==="around"&&!t.hideNavigation&&en===0&&fe.createElement(r.PreviousMonthButton,{type:"button",className:p[Ct.PreviousMonthButton],tabIndex:xe?void 0:-1,"aria-disabled":xe?void 0:!0,"aria-label":tt(xe),onClick:tr,"data-animated-button":t.animate?"true":void 0},fe.createElement(r.Chevron,{disabled:xe?void 0:!0,className:p[Ct.Chevron],orientation:t.dir==="rtl"?"right":"left"})),fe.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:p[Ct.MonthCaption],style:G==null?void 0:G[Ct.MonthCaption],calendarMonth:ut,displayIndex:en},y!=null&&y.startsWith("dropdown")?fe.createElement(r.DropdownNav,{className:p[Ct.Dropdowns],style:G==null?void 0:G[Ct.Dropdowns]},(()=>{const ht=y==="dropdown"||y==="dropdown-months"?fe.createElement(r.MonthsDropdown,{key:"month",className:p[Ct.MonthsDropdown],"aria-label":mt(),classNames:p,components:r,disabled:!!t.disableNavigation,onChange:$r(ut.date),options:fk(ut.date,J,oe,i,l),style:G==null?void 0:G[Ct.Dropdown],value:l.getMonth(ut.date)}):fe.createElement("span",{key:"month"},ie(ut.date,l)),Vt=y==="dropdown"||y==="dropdown-years"?fe.createElement(r.YearsDropdown,{key:"year",className:p[Ct.YearsDropdown],"aria-label":ct(l.options),classNames:p,components:r,disabled:!!t.disableNavigation,onChange:uo(ut.date),options:pk(J,oe,i,l,!!t.reverseYears),style:G==null?void 0:G[Ct.Dropdown],value:l.getYear(ut.date)}):fe.createElement("span",{key:"year"},ve(ut.date,l));return l.getMonthYearOrder()==="year-first"?[Vt,ht]:[ht,Vt]})(),fe.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},ne(ut.date,l.options,l))):fe.createElement(r.CaptionLabel,{className:p[Ct.CaptionLabel],role:"status","aria-live":"polite"},ne(ut.date,l.options,l))),w==="around"&&!t.hideNavigation&&en===C-1&&fe.createElement(r.NextMonthButton,{type:"button",className:p[Ct.NextMonthButton],tabIndex:ee?void 0:-1,"aria-disabled":ee?void 0:!0,"aria-label":Ft(ee),onClick:Rt,"data-animated-button":t.animate?"true":void 0},fe.createElement(r.Chevron,{disabled:ee?void 0:!0,className:p[Ct.Chevron],orientation:t.dir==="rtl"?"left":"right"})),en===C-1&&w==="after"&&!t.hideNavigation&&fe.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:p[Ct.Nav],style:G==null?void 0:G[Ct.Nav],"aria-label":ft(),onPreviousClick:tr,onNextClick:Rt,previousMonth:xe,nextMonth:ee}),fe.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":S==="multiple"||S==="range","aria-label":it(ut.date,l.options,l)||void 0,className:p[Ct.MonthGrid],style:G==null?void 0:G[Ct.MonthGrid]},!t.hideWeekdays&&fe.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:p[Ct.Weekdays],style:G==null?void 0:G[Ct.Weekdays]},K&&fe.createElement(r.WeekNumberHeader,{"aria-label":Dt(l.options),className:p[Ct.WeekNumberHeader],style:G==null?void 0:G[Ct.WeekNumberHeader],scope:"col"},ue()),$t.map(ht=>fe.createElement(r.Weekday,{"aria-label":at(ht,l.options,l),className:p[Ct.Weekday],key:String(ht),style:G==null?void 0:G[Ct.Weekday],scope:"col"},he(ht,l.options,l)))),fe.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:p[Ct.Weeks],style:G==null?void 0:G[Ct.Weeks]},ut.weeks.map(ht=>fe.createElement(r.Week,{className:p[Ct.Week],key:ht.weekNumber,style:G==null?void 0:G[Ct.Week],week:ht},K&&fe.createElement(r.WeekNumber,{week:ht,style:G==null?void 0:G[Ct.WeekNumber],"aria-label":Wt(ht.weekNumber,{locale:u}),className:p[Ct.WeekNumber],scope:"row",role:"rowheader"},se(ht.weekNumber,l)),ht.days.map(Vt=>{const{date:Rr}=Vt,Tt=Ce(Vt);if(Tt[jr.focused]=!Tt.hidden&&!!(Fe!=null&&Fe.isEqualTo(Vt)),Tt[Tc.selected]=(Ge==null?void 0:Ge(Rr))||Tt.selected,og(Oe)){const{from:tn,to:ur}=Oe;Tt[Tc.range_start]=!!(tn&&ur&&l.isSameDay(Rr,tn)),Tt[Tc.range_end]=!!(tn&&ur&&l.isSameDay(Rr,ur)),Tt[Tc.range_middle]=id(Oe,Rr,!0,l)}const wi=hk(Tt,G,t.modifiersStyles),xi=KT(Tt,p,t.modifiersClassNames),go=!un&&!Tt.hidden?gt(Rr,Tt,l.options,l):void 0;return fe.createElement(r.Day,{key:`${Vt.isoDate}_${Vt.displayMonthId}`,day:Vt,modifiers:Tt,className:xi.join(" "),style:wi,role:"gridcell","aria-selected":Tt.selected||void 0,"aria-label":go,"data-day":Vt.isoDate,"data-month":Vt.outside?Vt.dateMonthId:void 0,"data-selected":Tt.selected||void 0,"data-disabled":Tt.disabled||void 0,"data-hidden":Tt.hidden||void 0,"data-outside":Vt.outside||void 0,"data-focused":Tt.focused||void 0,"data-today":Tt.today||void 0},!Tt.hidden&&un?fe.createElement(r.DayButton,{className:p[Ct.DayButton],style:G==null?void 0:G[Ct.DayButton],type:"button",day:Vt,modifiers:Tt,disabled:!Tt.focused&&Tt.disabled||void 0,"aria-disabled":Tt.focused&&Tt.disabled||void 0,tabIndex:Ye(Vt)?0:-1,"aria-label":st(Rr,Tt,l.options,l),onClick:Le(Vt,Tt),onBlur:Pt(Vt,Tt),onFocus:Xe(Vt,Tt),onKeyDown:$e(Vt,Tt),onMouseEnter:nr(Vt,Tt),onMouseLeave:zr(Vt,Tt)},$(Rr,l.options,l)):!Tt.hidden&&$(Vt.date,l.options,l))})))))))),t.footer&&fe.createElement(r.Footer,{className:p[Ct.Footer],style:G==null?void 0:G[Ct.Footer],role:"status","aria-live":"polite"},t.footer)))}const Dd=e=>!e||e instanceof Date||typeof e!="object"?!1:"from"in e||"to"in e,lg=e=>e==="ranged"?"range":e,sg=(e,t)=>t==="month"?e.toLocaleDateString(void 0,{month:"long"}):t==="monthYear"?e.toLocaleDateString(void 0,{month:"long",year:"numeric"}):e.toLocaleDateString(void 0,{day:"2-digit",month:"short",year:"numeric"}),Xm=({mode:e,selectionScope:t="date",value:n,placeholder:r})=>{const i=lg(e);return n?i==="single"?n instanceof Date?sg(n,t):r:Dd(n)?n.from&&n.to?`${sg(n.from,t)} - ${sg(n.to,t)}`:n.from?`${sg(n.from,t)} - ...`:r:r:r},Zm=(e,t)=>{const n=e.isOpen!==void 0,[r,i]=L.useState(e.isOpenByDefault??!1),o=n?e.isOpen??!1:r,l=L.useCallback(u=>{n||i(u),t==null||t(u)},[n,t]);return{isOpen:o,setIsOpen:l}},cg=12,Rh=e=>e-e%cg,Mh=e=>new Date(e.getFullYear(),e.getMonth(),1),Lf=e=>e.getFullYear()*12+e.getMonth(),ug=({className:e,classNames:t,isLoading:n=!1,showOutsideDays:r,fixedWeeks:i,value:o,onChange:l,month:u,onMonthChange:p,onDayClick:y,mode:S="single",selectionScope:w="date",...C})=>{const M=lg(S),O=M==="range",k=w!=="date",W=w!=="month",H=(C.numberOfMonths??1)>1,B=r??!O,I=i??!0,Y=u??C.defaultMonth??new Date,[K,G]=L.useState(!1),[ne,$]=L.useState(!1),[ie,se]=L.useState(()=>Y),[ue,he]=L.useState(()=>Rh(Y.getFullYear())),ve=ie,ae=L.useMemo(()=>Array.from({length:12},(Ye,Ve)=>new Date(2026,Ve,1).toLocaleDateString(void 0,{month:"long"})),[]),me=O?"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground":"rounded-md bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground";L.useEffect(()=>{u&&(se(u),he(Rh(u.getFullYear())))},[u==null?void 0:u.getFullYear(),u==null?void 0:u.getMonth()]);const V=Ye=>{n||(se(Ye),he(Rh(Ye.getFullYear())),p==null||p(Ye))},J=(Ye,Ve,Ke)=>{n||(y==null||y(Ye,Ve,Ke),!(!B||!Ve.outside)&&V(new Date(Ye.getFullYear(),Ye.getMonth(),1)))},oe=Ye=>{if(n)return;const Ve=new Date(ve.getFullYear(),Ye,1);if(k)if(M==="single")Ge==null||Ge(Ve);else{const Ke=Dd(Ce)&&Ce.from?{from:Mh(Ce.from),to:Ce.to?Mh(Ce.to):void 0}:void 0;let st;!(Ke!=null&&Ke.from)||Ke.to?st={from:Ve,to:void 0}:Lf(Ve)<Lf(Ke.from)?st={from:Ve,to:Ke.from}:st={from:Ke.from,to:Ve},Ge==null||Ge(st)}else V(Ve),G(!1);$(!1)},xe=Ye=>{n||!W||(V(new Date(Ye,ve.getMonth(),1)),$(!1))},ee=Ye=>{n||he(Ve=>Ve+Ye*cg)},Q=L.useMemo(()=>Array.from({length:cg},(Ye,Ve)=>ue+Ve),[ue]),Ce=n?void 0:o??C.selected,Ge=l??C.onSelect;L.useEffect(()=>{k&&G(!0)},[k]),L.useEffect(()=>{if(!Ce)return;const Ye=Ce instanceof Date?Ce:Dd(Ce)?Ce.from??Ce.to:void 0;Ye&&(se(Ye),he(Rh(Ye.getFullYear())))},[Ce instanceof Date?Ce.getTime():void 0,Dd(Ce)&&Ce.from?Ce.from.getTime():void 0,Dd(Ce)&&Ce.to?Ce.to.getTime():void 0]);const We={...C,mode:M,fixedWeeks:I,selected:Ce,onSelect:Ge,showOutsideDays:B,month:ve,onMonthChange:V,onDayClick:J,className:Ze("p-3",n&&"pointer-events-none select-none",e),classNames:{months:"flex flex-col gap-4 sm:flex-row sm:gap-4",month:Ze("relative flex w-[19rem] shrink-0 flex-col gap-3",H&&"sm:border-l sm:border-border/45 sm:pl-5 sm:first:border-l-0 sm:first:pl-0"),caption:"relative flex h-10 items-center justify-center px-10 text-foreground",caption_label:"block max-w-full truncate text-sm font-semibold tracking-tight",nav:"absolute inset-x-0 top-1 flex h-8 items-center justify-between",button_previous:"inline-flex size-8 items-center justify-center rounded-md border border-input bg-background text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",button_next:"inline-flex size-8 items-center justify-center rounded-md border border-input bg-background text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",month_caption:"flex items-center justify-center",dropdowns:"w-full flex items-center justify-center gap-2 text-sm",dropdown_root:"relative rounded-md border border-input bg-background text-foreground shadow-xs transition-colors focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/40",dropdown:"absolute inset-0 cursor-pointer opacity-0 disabled:pointer-events-none",months_dropdown:"pl-3 pr-7 py-1.5",years_dropdown:"pl-3 pr-7 py-1.5",weekdays:"mt-1 flex w-full items-center gap-1",weekday:"w-10 rounded-md text-center text-[0.8rem] font-medium text-muted-foreground",week:"mt-1.5 flex w-full items-center gap-1",day:"relative h-10 w-10 p-0 text-center text-sm",day_button:Ze("inline-flex size-10 items-center justify-center whitespace-nowrap rounded-md border border-transparent p-0 font-normal text-foreground transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","aria-selected:bg-primary aria-selected:text-primary-foreground aria-selected:hover:bg-primary aria-selected:hover:text-primary-foreground",n&&"relative overflow-hidden text-transparent"),range_start:"day-range-start rounded-l-md rounded-r-none bg-primary text-primary-foreground shadow-[inset_-1px_0_0_color-mix(in_oklab,var(--background)_35%,transparent)]",range_end:"day-range-end rounded-r-md rounded-l-none bg-primary text-primary-foreground shadow-[inset_1px_0_0_color-mix(in_oklab,var(--background)_35%,transparent)]",range_middle:"day-range-middle rounded-none bg-muted/55 text-foreground shadow-[inset_-1px_0_0_color-mix(in_oklab,var(--background)_30%,transparent)]",selected:me,today:n?"[&>button]:bg-transparent":"[&>button]:rounded-md [&>button]:bg-accent/70 [&>button]:text-foreground",outside:"[&>button]:text-muted-foreground [&>button]:hover:bg-accent/45 [&>button]:hover:text-muted-foreground",disabled:"text-muted-foreground opacity-45",hidden:"invisible",...t},components:{Chevron:({className:Ye,orientation:Ve,...Ke})=>Ve==="left"?D.jsx(ap,{className:Ze("size-4",Ye),...Ke}):D.jsx(jh,{className:Ze("size-4",Ye),...Ke}),DayButton:({className:Ye,children:Ve,...Ke})=>D.jsxs("button",{className:Ye,...Ke,children:[D.jsx("span",{className:Ze("relative z-10",n&&"loading-text-blink"),children:n?" ":Ve}),n?D.jsx("span",{"aria-hidden":"true",className:Ze("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]}),CaptionLabel:({children:Ye})=>D.jsxs("button",{type:"button",onClick:()=>{n||k||G(Ve=>{const Ke=!Ve;return Ke?he(Rh(ve.getFullYear())):$(!1),Ke})},className:Ze("cursor-pointer rounded-md px-2 py-1 text-sm font-semibold tracking-tight transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none",n&&"relative min-w-28 overflow-hidden text-transparent"),children:[D.jsx("span",{className:Ze("relative z-10",n&&"loading-text-blink"),children:n?" ":Ye}),n?D.jsx("span",{"aria-hidden":"true",className:Ze("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]})}},Oe=Dd(Ce)&&Ce.from?{from:Mh(Ce.from),to:Ce.to?Mh(Ce.to):void 0}:void 0,rt=Ce instanceof Date?Mh(Ce):void 0,Fe=Ye=>D.jsxs("div",{className:Ze(Ye?"relative rounded-(--radius) border border-border bg-background/95 p-3 backdrop-blur-md":"absolute inset-0 z-30 rounded-(--radius) border border-border bg-background/95 p-3 backdrop-blur-md"),children:[D.jsxs("div",{className:"mb-3 grid grid-cols-[auto_1fr_auto] items-center gap-2 px-1",children:[D.jsx("div",{className:"flex items-center gap-1",children:ne&&W?D.jsxs(D.Fragment,{children:[D.jsx("button",{type:"button",onClick:()=>ee(-1),disabled:n,className:Ze("inline-flex size-8 items-center justify-center rounded-md border border-input bg-background text-foreground transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50"),children:D.jsx(ap,{className:"size-4"})}),D.jsx("button",{type:"button",onClick:()=>ee(1),disabled:n,className:Ze("inline-flex size-8 items-center justify-center rounded-md border border-input bg-background text-foreground transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50"),children:D.jsx(jh,{className:"size-4"})})]}):null}),W?D.jsxs("button",{type:"button",onClick:()=>{n||$(Ve=>!Ve)},disabled:n,className:Ze("justify-self-center rounded-md px-2 py-1 text-sm font-semibold text-foreground transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50",n&&"relative min-w-28 overflow-hidden text-transparent"),children:[D.jsx("span",{className:Ze("relative z-10",n&&"loading-text-blink"),children:n?" ":ne?`${ue} - ${ue+cg-1}`:ve.getFullYear()}),n?D.jsx("span",{"aria-hidden":"true",className:Ze("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]}):D.jsx("span",{className:"justify-self-center px-2 py-1 text-sm font-semibold text-foreground",children:ve.getFullYear()}),Ye?D.jsx("span",{}):D.jsx("button",{type:"button",onClick:()=>{G(!1),$(!1)},disabled:n,className:Ze("rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none"),children:"close"})]}),ne&&W?D.jsx("div",{className:Ze("grid grid-cols-3 gap-1.5",!Ye&&"h-[calc(100%-2.75rem)]"),children:Q.map(Ve=>{const Ke=ve.getFullYear()===Ve;return D.jsxs("button",{type:"button",onClick:()=>xe(Ve),className:Ze("inline-flex items-center justify-center rounded-md border border-transparent px-2 py-2 text-sm font-medium transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none",Ke&&"bg-primary text-primary-foreground",n&&"relative overflow-hidden text-transparent"),children:[D.jsx("span",{className:Ze("relative z-10",n&&"loading-text-blink"),children:n?" ":Ve}),n?D.jsx("span",{"aria-hidden":"true",className:Ze("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]},Ve)})}):D.jsx("div",{className:Ze("grid grid-cols-3 gap-1.5",!Ye&&"h-[calc(100%-2.75rem)]"),children:ae.map((Ve,Ke)=>{const st=new Date(ve.getFullYear(),Ke,1),gt=Lf(st),it=rt?Lf(rt):void 0,mt=Oe!=null&&Oe.from?Lf(Oe.from):void 0,ft=Oe!=null&&Oe.to?Lf(Oe.to):void 0,tt=ve.getMonth()===Ke,Ft=it!==void 0&&it===gt,at=mt!==void 0&&mt===gt,Wt=ft!==void 0&&ft===gt,Dt=mt!==void 0&&ft!==void 0&>>mt&><ft,ct=at&&Wt;return D.jsxs("button",{type:"button",onClick:()=>oe(Ke),className:Ze("inline-flex items-center justify-center rounded-md border border-transparent px-2 py-2 text-sm font-medium capitalize transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40 focus-visible:outline-none",!k&&tt&&"bg-primary text-primary-foreground",k&&M==="single"&&Ft&&"bg-primary text-primary-foreground",k&&M==="range"&&ct&&"bg-primary text-primary-foreground",k&&M==="range"&&at&&!ct&&"rounded-l-md rounded-r-none bg-primary text-primary-foreground",k&&M==="range"&&Wt&&!ct&&"rounded-r-md rounded-l-none bg-primary text-primary-foreground",k&&M==="range"&&Dt&&"rounded-none bg-muted/55 text-foreground",n&&"relative overflow-hidden text-transparent"),children:[D.jsx("span",{className:Ze("relative z-10",n&&"loading-text-blink"),children:n?" ":Ve}),n?D.jsx("span",{"aria-hidden":"true",className:Ze("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null]},Ve)})})]});return D.jsx("div",{className:"relative",children:k?Fe(!0):D.jsxs(D.Fragment,{children:[D.jsx(Hk,{...We}),K?Fe(!1):null]})})};ug.displayName="Calendar";const Wk=(e,t)=>e&&t?"resize":e?"resize-x":t?"resize-y":"resize-none",Jm="file:text-foreground selection:bg-primary selection:text-primary-foreground caret-foreground w-full min-w-0 field-transition required-indicator outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",Km={outline:"rounded-md border border-border bg-background shadow-xs",text:"rounded-none border-0 border-b border-border bg-transparent shadow-none"},Rp=Od("Subheader"),Uk=new Set(["Backspace","Delete","Tab","Enter","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]),Gk=(e,t)=>{const[n,r]=L.useState(null);return L.useEffect(()=>{if(!e){r(null);return}const i=()=>{const o=t.current;if(!o)return;const l=o.getBoundingClientRect();r({top:l.bottom+8,left:l.left})};return i(),window.addEventListener("resize",i),window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("resize",i),window.removeEventListener("scroll",i,!0)}},[t,e]),n},Yk=({isOpen:e,rootReference:t,panelReference:n,onDismiss:r})=>{L.useEffect(()=>{if(!e)return;const i=l=>{var p,y;const u=l.target;(p=t.current)!=null&&p.contains(u)||(y=n.current)!=null&&y.contains(u)||r()},o=l=>{l.key==="Escape"&&r()};return document.addEventListener("mousedown",i),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",o)}},[e,r,n,t])};function Bf(e){if(e.isTextarea){const{className:ue,isTextarea:he,variant:ve="outline",typography:ae="Subheader",isResizableX:me=!1,isResizableY:V=!1,textareaRowsCount:J=4,required:oe=!1,isError:xe=!1,label:ee,errorText:Q,"aria-invalid":Ce,...Ge}=e,We=Od(ae),Oe=Jh(ae),rt=xe||Ce===!0||Ce==="true",Fe=xe?Q:void 0;return D.jsxs("div",{className:"w-full space-y-1",children:[ee?D.jsxs("label",{htmlFor:Ge.id,className:Ze("inline-flex items-center gap-1",Rp),children:[ee,oe?D.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]}):null,D.jsx("textarea",{"data-slot":"textarea",rows:J,"aria-invalid":rt?!0:Ce,className:Ze(Jm,We,Oe,Km[ve],"h-auto py-2 leading-5 overflow-y-auto",ve==="outline"?"px-3 focus-ring-3":"px-0 focus:outline-none","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",Wk(me,V),ue),...Ge}),Fe?D.jsx("p",{className:"text-sm text-destructive",children:Fe}):null]})}if("type"in e&&e.type==="calendar"){const{type:ue,...he}=e;return D.jsx(Qm,{...he})}const t=e,{className:n,isTextarea:r,variant:i="outline",typography:o="Subheader",isResizableX:l,isResizableY:u,textareaRowsCount:p,required:y=!1,isError:S=!1,label:w,errorText:C,"aria-invalid":M,type:O,...k}=t,{onWheel:W,onKeyDown:H,...B}=k,I=Od(o),Y=Jh(o),K=S||M===!0||M==="true",G=S?C:void 0,ne=O==="number",$=O==="checkbox",ie=ue=>{if(W==null||W(ue),ue.defaultPrevented||!ne)return;const he=ue.currentTarget;document.activeElement===he&&(he.disabled||he.readOnly||ue.deltaY!==0&&(ue.preventDefault(),ue.deltaY<0?he.stepUp():he.stepDown(),he.dispatchEvent(new Event("input",{bubbles:!0})),he.dispatchEvent(new Event("change",{bubbles:!0}))))},se=ue=>{if(H==null||H(ue),ue.defaultPrevented||!ne||ue.metaKey||ue.ctrlKey||ue.altKey||Uk.has(ue.key)||/^[0-9]$/.test(ue.key))return;const ve=ue.currentTarget;if(!(ue.key==="."&&!ve.value.includes("."))){if(ue.key==="-"){const ae=ve.selectionStart??0,me=ve.selectionEnd??0,V=ve.value.startsWith("-")&&ae===0&&me>0;if(ae===0&&!V)return}ue.preventDefault()}};if($){const ue=D.jsx("input",{type:"checkbox","data-slot":"input","aria-invalid":K?!0:M,className:Ze("size-4 shrink-0 rounded-sm border border-border bg-background text-primary field-transition","focus-ring-3","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",n),onWheel:W,onKeyDown:H,...B});return D.jsxs("div",{className:"w-full space-y-1",children:[w?D.jsxs("label",{htmlFor:k.id,className:Ze("inline-flex cursor-pointer items-center gap-2",Rp),children:[ue,D.jsxs("span",{className:"inline-flex items-center gap-1",children:[w,y?D.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]})]}):ue,G?D.jsx("p",{className:"text-sm text-destructive",children:G}):null]})}return D.jsxs("div",{className:"w-full space-y-1",children:[w?D.jsxs("label",{htmlFor:k.id,className:Ze("inline-flex items-center gap-1",Rp),children:[w,y?D.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]}):null,D.jsx("input",{type:O,"data-slot":"input","aria-invalid":K?!0:M,className:Ze(Jm,I,Y,Km[i],"h-9 py-1 resize-none",i==="outline"?"px-3 focus-ring-3":"px-0 focus:outline-none","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n),onWheel:ie,onKeyDown:se,...B}),G?D.jsx("p",{className:"text-sm text-destructive",children:G}):null]})}const Qm=({className:e,inputClassName:t,label:n,isRequired:r=!1,isError:i=!1,errorText:o,placeholder:l="Select date",mode:u="single",selectionScope:p="date",value:y,defaultValue:S,onChange:w,isOpen:C,isOpenByDefault:M,onIsOpenChange:O,disabled:k=!1,isLoading:W=!1,popoverComponent:H=Nt.Popover,calendarComponent:B=ug,numberOfMonths:I,name:Y,id:K,...G})=>{const ne=y!==void 0,[$,ie]=L.useState(S),se=W?void 0:ne?y:$,ue=lg(u),he=Xm({mode:ue,selectionScope:p,value:se,placeholder:l}),{isOpen:ve,setIsOpen:ae}=Zm({isOpen:C,isOpenByDefault:M},O),me=L.useRef(null),V=L.useRef(null),J=L.useRef(null),oe=Gk(ve,V),xe=L.useId(),ee=K??xe;Yk({isOpen:ve,rootReference:me,panelReference:J,onDismiss:()=>{ae(!1)}});const Q=We=>{if(ne||ie(We),w==null||w(We),ue==="single"&&We instanceof Date){ae(!1);return}ue==="range"&&Dd(We)&&We.from&&We.to&&ae(!1)},Ce=We=>{Q(We)},Ge=We=>{Q(We)};return D.jsxs("div",{ref:me,className:Ze("relative w-full space-y-1",e),children:[n?D.jsxs("label",{htmlFor:ee,className:"inline-flex items-center gap-1 text-sm font-medium text-foreground",children:[n,r?D.jsx("span",{"aria-hidden":!0,className:"text-cautionary",children:"*"}):null]}):null,D.jsxs("div",{className:"relative flex w-full items-center",children:[D.jsx("input",{ref:V,id:ee,name:Y,readOnly:!0,value:he,placeholder:l,disabled:k,onClick:()=>ae(!0),onFocus:()=>ae(!0),className:Ze("field-transition focus-ring-3 border-border bg-background text-foreground","h-9 w-full rounded-md border py-1 pl-3 pr-10 text-sm outline-none","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",he===l&&"text-muted-foreground",i&&"border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",t)}),D.jsx("button",{type:"button",tabIndex:-1,disabled:k,onClick:()=>ae(!ve),className:"absolute right-2 inline-flex size-6 items-center justify-center rounded-sm text-muted-foreground",children:D.jsx(KS,{className:"size-4"})})]}),ve&&oe?D.jsx(H,{children:D.jsx("div",{ref:J,style:{position:"fixed",top:oe.top,left:oe.left},className:"border-border bg-card text-card-foreground z-50 w-max rounded-md border p-2 shadow-md",children:ue==="range"?D.jsx(B,{...G,isLoading:W,selectionScope:p,mode:"range",selected:se,onSelect:Ge,numberOfMonths:I??2}):D.jsx(B,{...G,isLoading:W,selectionScope:p,mode:"single",selected:se,onSelect:Ce,numberOfMonths:I??1})})}):null,i&&o?D.jsx("p",{className:"text-sm text-destructive",children:o}):null]})},jm=(e,t)=>{const[n,r]=L.useState(null);return L.useEffect(()=>{if(!e){r(null);return}const i=()=>{const o=t.current;if(!o)return;const l=o.getBoundingClientRect();r({top:l.bottom+8,left:l.left,width:l.width})};return i(),window.addEventListener("resize",i),window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("resize",i),window.removeEventListener("scroll",i,!0)}},[t,e]),n},qm=({isOpen:e,rootReference:t,panelReference:n,onDismiss:r})=>{L.useEffect(()=>{if(!e)return;const i=l=>{var p,y;const u=l.target;(p=t.current)!=null&&p.contains(u)||(y=n.current)!=null&&y.contains(u)||r()},o=l=>{l.key==="Escape"&&r()};return document.addEventListener("mousedown",i),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",o)}},[e,r,n,t])},$m=e=>{if(e.type==="calendar"){const{type:Oe,...rt}=e;return D.jsx(ey,{...rt})}const{type:t,options:n,value:r,defaultValue:i,onValueChange:o,label:l,required:u=!1,isError:p=!1,errorText:y,placeholder:S="Select option",isSearchable:w=!1,searchPlaceholder:C="Type to filter...",disabled:M=!1,emptyText:O="No options found",popoverComponent:k=Nt.Popover,id:W,"aria-invalid":H,className:B,...I}=e,[Y,K]=L.useState(!1),[G,ne]=L.useState(""),[$,ie]=L.useState(i),se=L.useRef(null),ue=L.useRef(null),he=L.useRef(null),ve=L.useRef(null),ae=L.useId(),me=W??ae,V=jm(Y,ue),J=r!==void 0,oe=J?r:$,xe=n.find(Oe=>Oe.value===oe),ee=p||H===!0||H==="true",Q=p?y:void 0,Ce=L.useMemo(()=>{if(!w||G.trim()==="")return n;const Oe=G.trim().toLowerCase();return n.filter(rt=>rt.label.toLowerCase().includes(Oe))},[w,n,G]);L.useEffect(()=>{var Oe;!Y||!w||(Oe=ve.current)==null||Oe.focus()},[Y,w]),qm({isOpen:Y,rootReference:se,panelReference:he,onDismiss:()=>K(!1)});const Ge=Oe=>{J||ie(Oe),o==null||o(Oe),K(!1),ne("")},We=()=>{M||K(Oe=>!Oe)};return D.jsxs("div",{className:"w-full space-y-2",children:[l||u?D.jsxs("div",{className:"flex w-full items-start justify-between gap-2",children:[l?D.jsx("label",{htmlFor:me,className:"inline-flex items-center gap-1 text-sm font-medium text-foreground",children:l}):D.jsx("span",{}),u?D.jsx("span",{"aria-label":"Required",className:"text-lg leading-none text-cautionary",children:"*"}):null]}):null,D.jsxs("div",{ref:se,className:Ze("relative w-full",B),...I,children:[D.jsxs("button",{ref:ue,id:me,type:"button",disabled:M,onClick:We,"aria-expanded":Y,"aria-invalid":ee?!0:H,"aria-required":u||void 0,"aria-haspopup":"listbox",className:Ze("field-transition focus-ring-3 border-border bg-background text-foreground","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","flex h-9 w-full items-center justify-between gap-2 rounded-md border px-3 text-sm","disabled:cursor-not-allowed disabled:opacity-50"),children:[D.jsx("span",{className:Ze("truncate",!xe&&"text-muted-foreground"),children:(xe==null?void 0:xe.label)??S}),D.jsx(vh,{className:Ze("size-4 text-muted-foreground transition-transform",Y&&"rotate-180")})]}),Y&&V?D.jsx(k,{children:D.jsxs("div",{ref:he,role:"listbox",style:{position:"fixed",top:V.top,left:V.left,width:V.width},className:Ze("bg-card text-card-foreground border-border z-50 rounded-md border shadow-md","max-h-64 overflow-hidden"),children:[w?D.jsx("div",{className:"border-border border-b p-2",children:D.jsx("input",{ref:ve,value:G,onChange:Oe=>ne(Oe.target.value),placeholder:C,className:Ze("field-transition focus-ring-3 border-border bg-background text-foreground","w-full rounded-md border px-2 py-1.5 text-sm outline-none placeholder:text-muted-foreground")})}):null,D.jsx("div",{className:"max-h-48 overflow-y-auto p-1",children:Ce.length===0?D.jsx("p",{className:"px-2 py-2 text-sm text-muted-foreground",children:O}):Ce.map(Oe=>{const rt=Oe.value===oe;return D.jsxs("button",{type:"button",role:"option","aria-selected":rt,onClick:()=>Ge(Oe.value),className:Ze("flex w-full items-center justify-between gap-2 rounded-sm px-2 py-2 text-left text-sm","hover:bg-accent hover:text-accent-foreground",rt&&"bg-accent text-accent-foreground"),children:[D.jsx("span",{className:"truncate",children:Oe.label}),rt?D.jsx(Pb,{className:"size-4 shrink-0"}):null]},Oe.value)})})]})}):null]}),Q?D.jsx("p",{className:"text-sm text-destructive",children:Q}):null]})},ey=({className:e,triggerClassName:t,label:n,isRequired:r=!1,isError:i=!1,errorText:o,placeholder:l="Select date",mode:u="single",selectionScope:p="date",value:y,defaultValue:S,onChange:w,isOpen:C,isOpenByDefault:M,onIsOpenChange:O,disabled:k=!1,isLoading:W=!1,popoverComponent:H=Nt.Popover,calendarComponent:B=ug,numberOfMonths:I,...Y})=>{const K=y!==void 0,[G,ne]=L.useState(S),$=W?void 0:K?y:G,ie=lg(u),se=Xm({mode:ie,selectionScope:p,value:$,placeholder:l}),{isOpen:ue,setIsOpen:he}=Zm({isOpen:C,isOpenByDefault:M},O),ve=L.useRef(null),ae=L.useRef(null),me=L.useRef(null),V=jm(ue,ae);qm({isOpen:ue,rootReference:ve,panelReference:me,onDismiss:()=>he(!1)});const J=ee=>{if(K||ne(ee),w==null||w(ee),ie==="single"&&ee instanceof Date){he(!1);return}ie==="range"&&Dd(ee)&&ee.from&&ee.to&&he(!1)},oe=ee=>{J(ee)},xe=ee=>{J(ee)};return D.jsxs("div",{className:Ze("w-full space-y-2",e),children:[n||r?D.jsxs("div",{className:"flex w-full items-start justify-between gap-2",children:[n?D.jsx("label",{className:"inline-flex items-center gap-1 text-sm font-medium text-foreground",children:n}):D.jsx("span",{}),r?D.jsx("span",{"aria-label":"Required",className:"text-lg leading-none text-cautionary",children:"*"}):null]}):null,D.jsxs("div",{ref:ve,className:"relative w-full",children:[D.jsxs("button",{ref:ae,type:"button",disabled:k,"aria-expanded":ue,"aria-haspopup":"dialog",onClick:()=>he(!ue),className:Ze("field-transition focus-ring-3 border-border bg-background text-foreground","flex h-9 w-full items-center justify-between gap-2 rounded-md border px-3 text-sm","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",i&&"border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",t),children:[D.jsx("span",{className:Ze("truncate",se===l&&"text-muted-foreground"),children:se}),D.jsx(vh,{className:Ze("size-4 text-muted-foreground transition-transform",ue&&"rotate-180")})]}),ue&&V?D.jsx(H,{children:D.jsx("div",{ref:me,style:{position:"fixed",top:V.top,left:V.left},className:"border-border bg-card text-card-foreground z-50 w-max rounded-md border p-2 shadow-md",children:ie==="range"?D.jsx(B,{...Y,isLoading:W,selectionScope:p,mode:"range",selected:$,onSelect:xe,numberOfMonths:I??2}):D.jsx(B,{...Y,isLoading:W,selectionScope:p,mode:"single",selected:$,onSelect:oe,numberOfMonths:I??1})})}):null]}),i&&o?D.jsx("p",{className:"text-sm text-destructive",children:o}):null]})},Vk=({className:e,leftLabel:t,rightLabel:n,labelClassName:r,id:i,disabled:o=!1,...l})=>{const u=L.useId(),p=i??u,y=Ze("select-none text-sm text-foreground",o&&"cursor-not-allowed opacity-60",r);return D.jsxs("div",{className:Ze("inline-flex items-center gap-3",e),children:[t?D.jsx("label",{htmlFor:p,className:y,children:t}):null,D.jsxs("label",{htmlFor:p,className:Ze("relative inline-flex h-6 w-11 items-center",o?"cursor-not-allowed opacity-60":"cursor-pointer"),children:[D.jsx("input",{id:p,type:"checkbox",disabled:o,className:"peer sr-only",...l}),D.jsx("span",{"aria-hidden":!0,className:Ze("block h-full w-full rounded-full border border-border bg-muted field-transition","peer-focus-visible:ring-2 peer-focus-visible:ring-primary/40 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-(--card)","peer-checked:border-primary peer-checked:bg-primary/90")}),D.jsx("span",{"aria-hidden":!0,className:Ze("pointer-events-none absolute top-1/2 left-0.5 h-5 w-5 -translate-y-1/2 rounded-full bg-background shadow-xs field-transition","peer-checked:translate-x-5 peer-checked:bg-primary-foreground")})]}),n?D.jsx("label",{htmlFor:p,className:y,children:n}):null]})},Xk={1:new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201000%201000'%3e%3cpolygon%20points='292.893,0%20707.107,0%201000,292.893%201000,707.107%20707.107,1000%20292.893,1000%200,707.107%200,292.893'%20fill='white'%20/%3e%3c/svg%3e",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:td&&td.tagName.toUpperCase()==="SCRIPT"&&td.src||new URL("index.umd.js",document.baseURI).href).href,2:new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201000%201000'%3e%3ccircle%20cx='500'%20cy='500'%20r='500'%20fill='white'%20/%3e%3c/svg%3e",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:td&&td.tagName.toUpperCase()==="SCRIPT"&&td.src||new URL("index.umd.js",document.baseURI).href).href,3:new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20180%20180'%3e%3crect%20width='180'%20height='180'%20rx='37'%20fill='white'%20/%3e%3c/svg%3e",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:td&&td.tagName.toUpperCase()==="SCRIPT"&&td.src||new URL("index.umd.js",document.baseURI).href).href},Zk=[{value:0,label:"No Mask"},{value:1,label:"Octagon Crop"},{value:2,label:"Circle Crop"},{value:3,label:"Square Crop"}],Jk=["left","right"],ty=e=>Xk[e],Kk=e=>{const[t="100%",n=t]=e.trim().split(/\s+/).filter(Boolean),r=l=>{const u=l.match(/^(-?\d+(?:\.\d+)?)%$/);if(u)return Number(u[1])},i=r(t),o=r(n);return i===void 0||o===void 0||!Number.isFinite(i)||!Number.isFinite(o)?{width:100,height:100}:{width:Math.max(0,i),height:Math.max(0,o)}},Qk=(e,t)=>{const{width:n,height:r}=Kk(e),i=(100-n)*t.x/100,o=(100-r)*t.y/100;return{x:i,y:o,width:n,height:r}},jk=({maskType:e,fillColor:t,strokeColor:n,strokeWidth:r,placement:i})=>{const o=!!t,l=!!n&&!!(r&&r>0);if(!o&&!l)return null;const u={fill:t??"none",stroke:n??"none",strokeWidth:r??0,vectorEffect:"non-scaling-stroke"},p=`translate(${i.x} ${i.y}) scale(${i.width/100} ${i.height/100})`;return e===1?D.jsx("g",{transform:p,children:D.jsx("polygon",{points:"29.2893,0 70.7107,0 100,29.2893 100,70.7107 70.7107,100 29.2893,100 0,70.7107 0,29.2893",...u})}):e===2?D.jsx("g",{transform:p,children:D.jsx("circle",{cx:"50",cy:"50",r:"50",...u})}):e===3?D.jsx("g",{transform:p,children:D.jsx("rect",{width:"100",height:"100",rx:"20.5556",...u})}):null},dg=({className:e,isLoading:t=!1,maskType:n=0,isEditModeDisabled:r=!0,imagePosition:i,isSquareCrop:o=!1,cropX:l=50,cropY:u=50,cropPositionValue:p,defaultCropPositionValue:y,onCropPositionChange:S,maskSize:w="100% 100%",maskPositionValue:C,maskFillColor:M,maskStrokeColor:O,maskStrokeWidth:k=1,isTopShadeVisible:W=!1,topShadeColor:H,isBottomShadeVisible:B=!1,bottomShadeColor:I,isSideShadeVisible:Y=!1,sideShadeSide:K="right",sideShadeColorToken:G,alt:ne="",style:$,...ie})=>{const se=L.useRef(null),[ue,he]=L.useState(!1),ve=p!==void 0,[ae,me]=L.useState(y??{x:l,y:u}),V=ty(n),J=!!V,oe=C,xe=oe==null?void 0:oe.x,ee=oe==null?void 0:oe.y,Q=typeof xe=="number"&&Number.isFinite(xe)?Math.min(100,Math.max(0,xe)):50,Ce=typeof ee=="number"&&Number.isFinite(ee)?Math.min(100,Math.max(0,ee)):50,Ge=`${Q}% ${Ce}%`,Oe=Qk(w,{x:Q,y:Ce}),rt=ve?p:ae,Fe=Number.isFinite(rt==null?void 0:rt.x)?Math.min(100,Math.max(0,rt.x)):Math.min(100,Math.max(0,l)),Ye=Number.isFinite(rt==null?void 0:rt.y)?Math.min(100,Math.max(0,rt.y)):Math.min(100,Math.max(0,u)),Ve=i??`${Fe}% ${Ye}%`,Ke=L.useCallback(ct=>{ve||me(ct),S==null||S(ct)},[ve,S]),st=L.useCallback((ct,$t)=>{const un=se.current;if(!un)return;const tr=un.getBoundingClientRect();if(tr.width<=0||tr.height<=0)return;const Rt=(ct-tr.left)/tr.width*100,Le=($t-tr.top)/tr.height*100,Xe={x:Math.min(100,Math.max(0,Rt)),y:Math.min(100,Math.max(0,Le))};Ke(Xe)},[Ke]),gt=!r&&!t;L.useEffect(()=>{gt||he(!1)},[gt]);const it=ct=>{gt&&(ct.preventDefault(),ct.currentTarget.setPointerCapture(ct.pointerId),he(!0),st(ct.clientX,ct.clientY))},mt=ct=>{!gt||!ue||st(ct.clientX,ct.clientY)},ft=ct=>{gt&&(ct.currentTarget.hasPointerCapture(ct.pointerId)&&ct.currentTarget.releasePointerCapture(ct.pointerId),he(!1))},tt=J?{WebkitMaskImage:`url("${V}")`,maskImage:`url("${V}")`,WebkitMaskSize:w,maskSize:w,WebkitMaskPosition:Ge,maskPosition:Ge,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"}:void 0,Ft=J&&(!!M||!!O),at=H??I??M??"var(--background)",Wt=G?`var(--${G})`:at,Dt=K==="left"?"linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))":"linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))";return D.jsxs("div",{ref:se,"aria-busy":t||void 0,style:tt,onPointerDown:it,onPointerMove:mt,onPointerUp:ft,onPointerCancel:ft,className:Ze("relative overflow-hidden",o&&"aspect-square",J?"rounded-none":"rounded-(--radius)",t&&"relative overflow-hidden",gt?Ze("touch-none",ue?"cursor-grabbing":"cursor-grab"):null,e),children:[D.jsx("img",{alt:ne,draggable:!1,onDragStart:ct=>ct.preventDefault(),style:{objectPosition:Ve,...$},className:Ze("block h-full w-full object-cover select-none",t&&"opacity-0"),...ie}),t?D.jsx("div",{"aria-hidden":"true",className:Ze("pointer-events-none absolute inset-0 rounded-[inherit]","loading-wave-overlay","loading-wave")}):null,W?D.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-[10%]",style:{backgroundColor:at,opacity:.65,WebkitMaskImage:"linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))",maskImage:"linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))"}}):null,B?D.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-[10%]",style:{backgroundColor:at,opacity:.65,WebkitMaskImage:"linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))",maskImage:"linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0))"}}):null,Y?D.jsx("div",{"aria-hidden":!0,className:Ze("pointer-events-none absolute inset-y-0 h-full w-[28%]",K==="left"?"left-0":"right-0"),style:{backgroundColor:Wt,opacity:.85,WebkitMaskImage:Dt,maskImage:Dt,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"}}):null,Ft?D.jsx("svg",{"aria-hidden":!0,viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"pointer-events-none absolute inset-0 h-full w-full",children:D.jsx(jk,{maskType:n,fillColor:M,strokeColor:O,strokeWidth:k,placement:Oe})}):null]})},qk={days:"дн.",hours:"ч.",minutes:"мин.",seconds:"с."},ny=1e3,Mp=60,_p=60*Mp,ry=24*_p,$k=e=>{if(e instanceof Date){const n=e.getTime();return Number.isFinite(n)?n:null}if(typeof e=="number")return Number.isFinite(e)?e:null;const t=new Date(e).getTime();return Number.isFinite(t)?t:null},Pp=(e,t)=>{if(e===null)return{days:0,hours:0,minutes:0,seconds:0,isComplete:!0};const n=Math.max(Math.floor((e-t)/ny),0),r=Math.floor(n/ry),i=Math.floor(n%ry/_p),o=Math.floor(n%_p/Mp),l=n%Mp;return{days:r,hours:i,minutes:o,seconds:l,isComplete:n<=0}},e1=e=>e.toString().padStart(2,"0"),iy=({targetDate:e,className:t,itemClassName:n,labels:r,onComplete:i})=>{const o=fe.useMemo(()=>$k(e),[e]),l=fe.useMemo(()=>({...qk,...r}),[r]),[u,p]=fe.useState(()=>Pp(o,Date.now())),y=fe.useRef(!1);fe.useEffect(()=>{if(p(Pp(o,Date.now())),y.current=!1,o===null)return;const w=window.setInterval(()=>{p(Pp(o,Date.now()))},ny);return()=>{window.clearInterval(w)}},[o]),fe.useEffect(()=>{o===null||!u.isComplete||y.current||(y.current=!0,i==null||i())},[i,u.isComplete,o]);const S=[{key:"days",value:u.days,label:l.days},{key:"hours",value:u.hours,label:l.hours},{key:"minutes",value:u.minutes,label:l.minutes},{key:"seconds",value:u.seconds,label:l.seconds}];return D.jsx("div",{className:Nt.clsx("inline-flex items-end gap-2",t),children:S.map((w,C)=>D.jsxs(fe.Fragment,{children:[D.jsxs("div",{className:"flex flex-col items-center gap-1",children:[D.jsx("div",{className:Nt.clsx("min-w-14 rounded-sm border border-(--border) bg-primary px-2 py-1 text-center shadow-xs",n),children:D.jsx("span",{className:"inline-block font-infinityloop text-3xl leading-none font-semibold tabular-nums text-primary-foreground",children:e1(w.value)})}),D.jsx(Ni,{typography:"Caption",className:"normal-case",children:w.label})]}),C<S.length-1?D.jsx("span",{"aria-hidden":!0,className:"pb-6 font-infinityloop text-2xl leading-none text-muted-foreground",children:":"}):null]},w.key))})};iy.displayName="Timer";const t1=["default","time"],n1={default:"destructive",time:"background"},r1={default:"foreground",time:"foreground"},zf=({label:e,type:t="default",color:n,textColor:r,className:i,isLoading:o=!1,isEditModeEnabled:l=!1,isEditModeDisabled:u=!1,onLabelChange:p,...y})=>{const[S,w]=fe.useState(e),C=n??n1[t],M=r??r1[t],O=l&&!u&&!o,W=C==="destructive"?"#ffffff":`var(--${M})`,H=t==="time"?"Action":"CompactCaption",B=Nt.clsx(Od(H),"font-semibold",t==="default"&&"uppercase tracking-wide");fe.useEffect(()=>{w(e)},[e]);const I=Y=>{const K=Y.currentTarget.value;w(K),p==null||p(K)};return D.jsx("span",{className:Nt.clsx("inline-flex max-w-full items-center rounded-md px-2 py-1",i),style:{backgroundColor:`var(--${C})`},...y,children:O?D.jsx("input",{size:Math.max(1,S.length),value:S,onChange:I,className:Nt.clsx("inline-block max-w-full min-w-[1ch] w-auto border-none bg-transparent p-0 outline-none","[field-sizing:content]",B),style:{color:W}}):D.jsx(Ni,{typography:H,element:"span",color:M,isLoading:o,className:Nt.clsx("inline-block truncate",B),style:{color:W},children:S})})},oy=e=>e==null?"":Array.isArray(e)?e.join(", "):String(e),mi=({className:e,contentClassName:t,typography:n="Subheader",element:r="span",color:i,isEditModeDisabled:o=!1,isEditModeOn:l,isLoading:u=!1,value:p,defaultValue:y,placeholder:S,onValueChange:w,onEditModeChange:C,children:M})=>{const[O,k]=L.useState(!1),[W,H]=L.useState(()=>oy(y)),B=i??op(n),I=Od(n),Y=Jh(n),K=p!==void 0,G=l!==void 0,ne=K?oy(p):W,$=G?l:O,ie=L.useCallback(ae=>{if(G){$!==ae&&(C==null||C(ae));return}k(me=>(me!==ae&&(C==null||C(ae)),ae))},[$,G,C]);L.useEffect(()=>{(o||u)&&$&&ie(!1)},[$,o,u,ie]);const se=()=>{o||u||ie(!0)},ue=ae=>{const me=ae.currentTarget.value;K||H(me),w==null||w(me)},he=()=>{ie(!1)},ve=ae=>{(ae.key==="Enter"||ae.key==="Escape")&&(ie(!1),ae.currentTarget.blur())};return $&&!o&&!u?D.jsx("div",{className:Nt.clsx("relative h-9 w-full",e),style:{color:`var(--${B})`},children:D.jsx("input",{autoFocus:!0,value:ne,placeholder:S,style:{color:"inherit",caretColor:"currentColor"},className:Nt.clsx("relative m-0 block h-auto w-full border-0 bg-transparent p-0 font-infinityloop",I,Y,t,"appearance-none outline-none shadow-none","outline-none focus:outline-none focus-visible:outline-none","focus:shadow-none focus-visible:shadow-none","ring-0 focus:ring-0 focus-visible:ring-0 focus-visible:ring-offset-0"),onChange:ue,onBlur:he,onKeyDown:ve})}):D.jsx("div",{className:Nt.clsx("relative h-9 w-full",e),children:D.jsx(Ni,{typography:n,element:r,color:B,isLoading:u,className:Nt.clsx("block w-full px-0",t,!o&&!u&&"cursor-text hover:opacity-90",u&&"cursor-default"),onClick:se,children:ne||M||S||"Click to edit"})})},i1=["dark","light","glass","transparent"],fg=e=>e==null?"":Array.isArray(e)?e.join(", "):String(e),ay=e=>e==null||typeof e=="string"||typeof e=="number",o1=({className:e,title:t,content:n,children:r,isOpen:i,isOpenByDefault:o=!1,onOpenChange:l,isToggleDisabled:u=!1,isLoading:p=!1,isEditModeEnabled:y=!1,isEditModeDisabled:S=!1,onTitleChange:w,onContentChange:C,titleTypography:M="SectionHeader",contentTypography:O="BodySmall",titleColor:k,contentColor:W,titlePlaceholder:H="Accordion title",contentPlaceholder:B="Accordion content",paperType:I="dark",isPaperColored:Y=!1,isRoundedCornersDisabled:K=!1,...G})=>{const[ne,$]=L.useState(o),[ie,se]=L.useState(()=>fg(t)),[ue,he]=L.useState(()=>fg(n)),ve=L.useId(),ae=L.useId(),me=i!==void 0,V=me?i:ne,J=y&&!S&&!p,oe=u||p,xe=r!=null,ee=ay(t),Q=ay(n),Ce=ee?ie||H:t,Ge=Q?ue||B:n,We=L.useCallback(Ye=>{me||$(Ye),l==null||l(Ye)},[me,l]);L.useEffect(()=>{se(fg(t))},[t]),L.useEffect(()=>{he(fg(n))},[n]);const Oe=()=>{oe||We(!V)},rt=Ye=>{se(Ye),w==null||w(Ye)},Fe=Ye=>{he(Ye),C==null||C(Ye)};return D.jsxs(cf,{className:Nt.clsx("w-full px-4 py-3",e),type:I,isColored:Y,isRoundedCornersDisabled:K,isLoading:p,...G,children:[D.jsxs("div",{className:"flex items-start gap-3",children:[D.jsx("div",{className:"min-w-0 flex-1",children:J?D.jsx(mi,{typography:M,color:k,value:ie,placeholder:H,onValueChange:rt,isEditModeDisabled:!J,className:"!h-auto"}):D.jsx(Ni,{typography:M,color:k,isLoading:p,className:Nt.clsx("block w-full",oe?"cursor-default":"cursor-pointer"),onClick:Oe,children:Ce})}),D.jsx("button",{id:ve,type:"button","aria-controls":ae,"aria-expanded":V,disabled:oe,className:Nt.clsx("flex size-8 shrink-0 items-center justify-center rounded-md border border-(--border)","bg-transparent text-(--muted-foreground) transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--ring)",!oe&&"cursor-pointer hover:bg-(--accent)",oe&&"cursor-not-allowed opacity-60"),onClick:Oe,children:D.jsx(vh,{className:Nt.clsx("size-4 transition-transform duration-300 ease-in-out",V&&"rotate-180")})})]}),D.jsx("div",{id:ae,role:"region","aria-labelledby":ve,"data-state":V?"open":"closed","aria-hidden":!V,className:Nt.clsx("grid transition-[grid-template-rows,opacity,margin-top] duration-300 ease-in-out",V?"mt-3 grid-rows-[1fr] opacity-100":"mt-0 grid-rows-[0fr] opacity-0"),children:D.jsx("div",{className:"min-h-0 overflow-hidden",children:D.jsx("div",{className:Nt.clsx("transition-[padding-top] duration-300 ease-in-out",V?"border-t border-(--border) pt-3":"pt-0"),children:J?D.jsx(mi,{typography:O,color:W,value:ue,placeholder:B,onValueChange:Fe,isEditModeDisabled:!J,className:"!h-auto"}):xe&&!p?D.jsx("div",{className:"min-w-0",children:r}):D.jsx(Ni,{typography:O,color:W,isLoading:p,className:"block w-full",children:Ge})})})})]})};function ly(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Op(e,t){e===void 0&&(e={}),t===void 0&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:ly(t[r])&&ly(e[r])&&Object.keys(t[r]).length>0&&Op(e[r],t[r])})}const sy={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Rc(){const e=typeof document<"u"?document:{};return Op(e,sy),e}const a1={document:sy,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Ao(){const e=typeof window<"u"?window:{};return Op(e,a1),e}function l1(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function s1(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function hg(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Gs(){return Date.now()}function c1(e){const t=Ao();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function u1(e,t){t===void 0&&(t="x");const n=Ao();let r,i,o;const l=c1(e);return n.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(u=>u.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function gg(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function d1(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function rs(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!d1(r)){const i=Object.keys(Object(r)).filter(o=>t.indexOf(o)<0);for(let o=0,l=i.length;o<l;o+=1){const u=i[o],p=Object.getOwnPropertyDescriptor(r,u);p!==void 0&&p.enumerable&&(gg(e[u])&&gg(r[u])?r[u].__swiper__?e[u]=r[u]:rs(e[u],r[u]):!gg(e[u])&&gg(r[u])?(e[u]={},r[u].__swiper__?e[u]=r[u]:rs(e[u],r[u])):e[u]=r[u])}}}return e}function pg(e,t,n){e.style.setProperty(t,n)}function cy(e){let{swiper:t,targetPosition:n,side:r}=e;const i=Ao(),o=-t.translate;let l=null,u;const p=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const y=n>o?"next":"prev",S=(C,M)=>y==="next"&&C>=M||y==="prev"&&C<=M,w=()=>{u=new Date().getTime(),l===null&&(l=u);const C=Math.max(Math.min((u-l)/p,1),0),M=.5-Math.cos(C*Math.PI)/2;let O=o+M*(n-o);if(S(O,n)&&(O=n),t.wrapperEl.scrollTo({[r]:O}),S(O,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:O})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(w)};w()}function xu(e,t){t===void 0&&(t="");const n=Ao(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(i=>i.matches(t)):r}function f1(e,t){const n=[t];for(;n.length>0;){const r=n.shift();if(e===r)return!0;n.push(...r.children,...r.shadowRoot?r.shadowRoot.children:[],...r.assignedElements?r.assignedElements():[])}}function h1(e,t){const n=Ao();let r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||(r=f1(e,t))),r}function vg(e){try{console.warn(e);return}catch{}}function _h(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:l1(t)),n}function g1(e){const t=Ao(),n=Rc(),r=e.getBoundingClientRect(),i=n.body,o=e.clientTop||i.clientTop||0,l=e.clientLeft||i.clientLeft||0,u=e===t?t.scrollY:e.scrollTop,p=e===t?t.scrollX:e.scrollLeft;return{top:r.top+u-o,left:r.left+p-l}}function p1(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function v1(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Ld(e,t){return Ao().getComputedStyle(e,null).getPropertyValue(t)}function Ph(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function bg(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Ap(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function Ip(e,t,n){const r=Ao();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function xr(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Oh(e,t){t===void 0&&(t=""),typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}function b1(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=Rc(),l=Ao();t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function u(S){if(!t.enabled)return;const{rtlTranslate:w}=t;let C=S;C.originalEvent&&(C=C.originalEvent);const M=C.keyCode||C.charCode,O=t.params.keyboard.pageUpDown,k=O&&M===33,W=O&&M===34,H=M===37,B=M===39,I=M===38,Y=M===40;if(!t.allowSlideNext&&(t.isHorizontal()&&B||t.isVertical()&&Y||W)||!t.allowSlidePrev&&(t.isHorizontal()&&H||t.isVertical()&&I||k))return!1;if(!(C.shiftKey||C.altKey||C.ctrlKey||C.metaKey)&&!(o.activeElement&&(o.activeElement.isContentEditable||o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea")))){if(t.params.keyboard.onlyInViewport&&(k||W||H||B||I||Y)){let K=!1;if(bg(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&bg(t.el,`.${t.params.slideActiveClass}`).length===0)return;const G=t.el,ne=G.clientWidth,$=G.clientHeight,ie=l.innerWidth,se=l.innerHeight,ue=g1(G);w&&(ue.left-=G.scrollLeft);const he=[[ue.left,ue.top],[ue.left+ne,ue.top],[ue.left,ue.top+$],[ue.left+ne,ue.top+$]];for(let ve=0;ve<he.length;ve+=1){const ae=he[ve];if(ae[0]>=0&&ae[0]<=ie&&ae[1]>=0&&ae[1]<=se){if(ae[0]===0&&ae[1]===0)continue;K=!0}}if(!K)return}t.isHorizontal()?((k||W||H||B)&&(C.preventDefault?C.preventDefault():C.returnValue=!1),((W||B)&&!w||(k||H)&&w)&&t.slideNext(),((k||H)&&!w||(W||B)&&w)&&t.slidePrev()):((k||W||I||Y)&&(C.preventDefault?C.preventDefault():C.returnValue=!1),(W||Y)&&t.slideNext(),(k||I)&&t.slidePrev()),i("keyPress",M)}}function p(){t.keyboard.enabled||(o.addEventListener("keydown",u),t.keyboard.enabled=!0)}function y(){t.keyboard.enabled&&(o.removeEventListener("keydown",u),t.keyboard.enabled=!1)}r("init",()=>{t.params.keyboard.enabled&&p()}),r("destroy",()=>{t.keyboard.enabled&&y()}),Object.assign(t.keyboard,{enable:p,disable:y})}function m1(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=Ao();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let l,u=Gs(),p;const y=[];function S(I){let ne=0,$=0,ie=0,se=0;return"detail"in I&&($=I.detail),"wheelDelta"in I&&($=-I.wheelDelta/120),"wheelDeltaY"in I&&($=-I.wheelDeltaY/120),"wheelDeltaX"in I&&(ne=-I.wheelDeltaX/120),"axis"in I&&I.axis===I.HORIZONTAL_AXIS&&(ne=$,$=0),ie=ne*10,se=$*10,"deltaY"in I&&(se=I.deltaY),"deltaX"in I&&(ie=I.deltaX),I.shiftKey&&!ie&&(ie=se,se=0),(ie||se)&&I.deltaMode&&(I.deltaMode===1?(ie*=40,se*=40):(ie*=800,se*=800)),ie&&!ne&&(ne=ie<1?-1:1),se&&!$&&($=se<1?-1:1),{spinX:ne,spinY:$,pixelX:ie,pixelY:se}}function w(){t.enabled&&(t.mouseEntered=!0)}function C(){t.enabled&&(t.mouseEntered=!1)}function M(I){return t.params.mousewheel.thresholdDelta&&I.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&Gs()-u<t.params.mousewheel.thresholdTime?!1:I.delta>=6&&Gs()-u<60?!0:(I.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),i("scroll",I.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),i("scroll",I.raw)),u=new o.Date().getTime(),!1)}function O(I){const Y=t.params.mousewheel;if(I.direction<0){if(t.isEnd&&!t.params.loop&&Y.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&Y.releaseOnEdges)return!0;return!1}function k(I){let Y=I,K=!0;if(!t.enabled||I.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const G=t.params.mousewheel;t.params.cssMode&&Y.preventDefault();let ne=t.el;t.params.mousewheel.eventsTarget!=="container"&&(ne=document.querySelector(t.params.mousewheel.eventsTarget));const $=ne&&ne.contains(Y.target);if(!t.mouseEntered&&!$&&!G.releaseOnEdges)return!0;Y.originalEvent&&(Y=Y.originalEvent);let ie=0;const se=t.rtlTranslate?-1:1,ue=S(Y);if(G.forceToAxis)if(t.isHorizontal())if(Math.abs(ue.pixelX)>Math.abs(ue.pixelY))ie=-ue.pixelX*se;else return!0;else if(Math.abs(ue.pixelY)>Math.abs(ue.pixelX))ie=-ue.pixelY;else return!0;else ie=Math.abs(ue.pixelX)>Math.abs(ue.pixelY)?-ue.pixelX*se:-ue.pixelY;if(ie===0)return!0;G.invert&&(ie=-ie);let he=t.getTranslate()+ie*G.sensitivity;if(he>=t.minTranslate()&&(he=t.minTranslate()),he<=t.maxTranslate()&&(he=t.maxTranslate()),K=t.params.loop?!0:!(he===t.minTranslate()||he===t.maxTranslate()),K&&t.params.nested&&Y.stopPropagation(),!t.params.freeMode||!t.params.freeMode.enabled){const ve={time:Gs(),delta:Math.abs(ie),direction:Math.sign(ie),raw:I};y.length>=2&&y.shift();const ae=y.length?y[y.length-1]:void 0;if(y.push(ve),ae?(ve.direction!==ae.direction||ve.delta>ae.delta||ve.time>ae.time+150)&&M(ve):M(ve),O(ve))return!0}else{const ve={time:Gs(),delta:Math.abs(ie),direction:Math.sign(ie)},ae=p&&ve.time<p.time+500&&ve.delta<=p.delta&&ve.direction===p.direction;if(!ae){p=void 0;let me=t.getTranslate()+ie*G.sensitivity;const V=t.isBeginning,J=t.isEnd;if(me>=t.minTranslate()&&(me=t.minTranslate()),me<=t.maxTranslate()&&(me=t.maxTranslate()),t.setTransition(0),t.setTranslate(me),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!V&&t.isBeginning||!J&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:ve.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(l),l=void 0,y.length>=15&&y.shift();const oe=y.length?y[y.length-1]:void 0,xe=y[0];if(y.push(ve),oe&&(ve.delta>oe.delta||ve.direction!==oe.direction))y.splice(0);else if(y.length>=15&&ve.time-xe.time<500&&xe.delta-ve.delta>=1&&ve.delta<=6){const ee=ie>0?.8:.2;p=ve,y.splice(0),l=hg(()=>{t.destroyed||!t.params||t.slideToClosest(t.params.speed,!0,void 0,ee)},0)}l||(l=hg(()=>{if(t.destroyed||!t.params)return;const ee=.5;p=ve,y.splice(0),t.slideToClosest(t.params.speed,!0,void 0,ee)},500))}if(ae||i("scroll",Y),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),G.releaseOnEdges&&(me===t.minTranslate()||me===t.maxTranslate()))return!0}}return Y.preventDefault?Y.preventDefault():Y.returnValue=!1,!1}function W(I){let Y=t.el;t.params.mousewheel.eventsTarget!=="container"&&(Y=document.querySelector(t.params.mousewheel.eventsTarget)),Y[I]("mouseenter",w),Y[I]("mouseleave",C),Y[I]("wheel",k)}function H(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",k),!0):t.mousewheel.enabled?!1:(W("addEventListener"),t.mousewheel.enabled=!0,!0)}function B(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,k),!0):t.mousewheel.enabled?(W("removeEventListener"),t.mousewheel.enabled=!1,!0):!1}r("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&B(),t.params.mousewheel.enabled&&H()}),r("destroy",()=>{t.params.cssMode&&H(),t.mousewheel.enabled&&B()}),Object.assign(t.mousewheel,{enable:H,disable:B})}function y1(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=xu(e.el,`.${r[i]}`)[0];o||(o=_h("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function Bd(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function w1(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:B=>B,formatFractionTotal:B=>B,bulletClass:`${o}-bullet`,bulletActiveClass:`${o}-bullet-active`,modifierClass:`${o}-`,currentClass:`${o}-current`,totalClass:`${o}-total`,hiddenClass:`${o}-hidden`,progressbarFillClass:`${o}-progressbar-fill`,progressbarOppositeClass:`${o}-progressbar-opposite`,clickableClass:`${o}-clickable`,lockClass:`${o}-lock`,horizontalClass:`${o}-horizontal`,verticalClass:`${o}-vertical`,paginationDisabledClass:`${o}-disabled`}}),t.pagination={el:null,bullets:[]};let l,u=0;function p(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function y(B,I){const{bulletActiveClass:Y}=t.params.pagination;B&&(B=B[`${I==="prev"?"previous":"next"}ElementSibling`],B&&(B.classList.add(`${Y}-${I}`),B=B[`${I==="prev"?"previous":"next"}ElementSibling`],B&&B.classList.add(`${Y}-${I}-${I}`)))}function S(B,I,Y){if(B=B%Y,I=I%Y,I===B+1)return"next";if(I===B-1)return"previous"}function w(B){const I=B.target.closest(Bd(t.params.pagination.bulletClass));if(!I)return;B.preventDefault();const Y=Ph(I)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===Y)return;const K=S(t.realIndex,Y,t.slides.length);K==="next"?t.slideNext():K==="previous"?t.slidePrev():t.slideToLoop(Y)}else t.slideTo(Y)}function C(){const B=t.rtl,I=t.params.pagination;if(p())return;let Y=t.pagination.el;Y=xr(Y);let K,G;const ne=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,$=t.params.loop?Math.ceil(ne/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(G=t.previousRealIndex||0,K=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(K=t.snapIndex,G=t.previousSnapIndex):(G=t.previousIndex||0,K=t.activeIndex||0),I.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const ie=t.pagination.bullets;let se,ue,he;if(I.dynamicBullets&&(l=Ip(ie[0],t.isHorizontal()?"width":"height"),Y.forEach(ve=>{ve.style[t.isHorizontal()?"width":"height"]=`${l*(I.dynamicMainBullets+4)}px`}),I.dynamicMainBullets>1&&G!==void 0&&(u+=K-(G||0),u>I.dynamicMainBullets-1?u=I.dynamicMainBullets-1:u<0&&(u=0)),se=Math.max(K-u,0),ue=se+(Math.min(ie.length,I.dynamicMainBullets)-1),he=(ue+se)/2),ie.forEach(ve=>{const ae=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(me=>`${I.bulletActiveClass}${me}`)].map(me=>typeof me=="string"&&me.includes(" ")?me.split(" "):me).flat();ve.classList.remove(...ae)}),Y.length>1)ie.forEach(ve=>{const ae=Ph(ve);ae===K?ve.classList.add(...I.bulletActiveClass.split(" ")):t.isElement&&ve.setAttribute("part","bullet"),I.dynamicBullets&&(ae>=se&&ae<=ue&&ve.classList.add(...`${I.bulletActiveClass}-main`.split(" ")),ae===se&&y(ve,"prev"),ae===ue&&y(ve,"next"))});else{const ve=ie[K];if(ve&&ve.classList.add(...I.bulletActiveClass.split(" ")),t.isElement&&ie.forEach((ae,me)=>{ae.setAttribute("part",me===K?"bullet-active":"bullet")}),I.dynamicBullets){const ae=ie[se],me=ie[ue];for(let V=se;V<=ue;V+=1)ie[V]&&ie[V].classList.add(...`${I.bulletActiveClass}-main`.split(" "));y(ae,"prev"),y(me,"next")}}if(I.dynamicBullets){const ve=Math.min(ie.length,I.dynamicMainBullets+4),ae=(l*ve-l)/2-he*l,me=B?"right":"left";ie.forEach(V=>{V.style[t.isHorizontal()?me:"top"]=`${ae}px`})}}Y.forEach((ie,se)=>{if(I.type==="fraction"&&(ie.querySelectorAll(Bd(I.currentClass)).forEach(ue=>{ue.textContent=I.formatFractionCurrent(K+1)}),ie.querySelectorAll(Bd(I.totalClass)).forEach(ue=>{ue.textContent=I.formatFractionTotal($)})),I.type==="progressbar"){let ue;I.progressbarOpposite?ue=t.isHorizontal()?"vertical":"horizontal":ue=t.isHorizontal()?"horizontal":"vertical";const he=(K+1)/$;let ve=1,ae=1;ue==="horizontal"?ve=he:ae=he,ie.querySelectorAll(Bd(I.progressbarFillClass)).forEach(me=>{me.style.transform=`translate3d(0,0,0) scaleX(${ve}) scaleY(${ae})`,me.style.transitionDuration=`${t.params.speed}ms`})}I.type==="custom"&&I.renderCustom?(Oh(ie,I.renderCustom(t,K+1,$)),se===0&&i("paginationRender",ie)):(se===0&&i("paginationRender",ie),i("paginationUpdate",ie)),t.params.watchOverflow&&t.enabled&&ie.classList[t.isLocked?"add":"remove"](I.lockClass)})}function M(){const B=t.params.pagination;if(p())return;const I=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let Y=t.pagination.el;Y=xr(Y);let K="";if(B.type==="bullets"){let G=t.params.loop?Math.ceil(I/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&G>I&&(G=I);for(let ne=0;ne<G;ne+=1)B.renderBullet?K+=B.renderBullet.call(t,ne,B.bulletClass):K+=`<${B.bulletElement} ${t.isElement?'part="bullet"':""} class="${B.bulletClass}"></${B.bulletElement}>`}B.type==="fraction"&&(B.renderFraction?K=B.renderFraction.call(t,B.currentClass,B.totalClass):K=`<span class="${B.currentClass}"></span> / <span class="${B.totalClass}"></span>`),B.type==="progressbar"&&(B.renderProgressbar?K=B.renderProgressbar.call(t,B.progressbarFillClass):K=`<span class="${B.progressbarFillClass}"></span>`),t.pagination.bullets=[],Y.forEach(G=>{B.type!=="custom"&&Oh(G,K||""),B.type==="bullets"&&t.pagination.bullets.push(...G.querySelectorAll(Bd(B.bulletClass)))}),B.type!=="custom"&&i("paginationRender",Y[0])}function O(){t.params.pagination=y1(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const B=t.params.pagination;if(!B.el)return;let I;typeof B.el=="string"&&t.isElement&&(I=t.el.querySelector(B.el)),!I&&typeof B.el=="string"&&(I=[...document.querySelectorAll(B.el)]),I||(I=B.el),!(!I||I.length===0)&&(t.params.uniqueNavElements&&typeof B.el=="string"&&Array.isArray(I)&&I.length>1&&(I=[...t.el.querySelectorAll(B.el)],I.length>1&&(I=I.find(Y=>bg(Y,".swiper")[0]===t.el))),Array.isArray(I)&&I.length===1&&(I=I[0]),Object.assign(t.pagination,{el:I}),I=xr(I),I.forEach(Y=>{B.type==="bullets"&&B.clickable&&Y.classList.add(...(B.clickableClass||"").split(" ")),Y.classList.add(B.modifierClass+B.type),Y.classList.add(t.isHorizontal()?B.horizontalClass:B.verticalClass),B.type==="bullets"&&B.dynamicBullets&&(Y.classList.add(`${B.modifierClass}${B.type}-dynamic`),u=0,B.dynamicMainBullets<1&&(B.dynamicMainBullets=1)),B.type==="progressbar"&&B.progressbarOpposite&&Y.classList.add(B.progressbarOppositeClass),B.clickable&&Y.addEventListener("click",w),t.enabled||Y.classList.add(B.lockClass)}))}function k(){const B=t.params.pagination;if(p())return;let I=t.pagination.el;I&&(I=xr(I),I.forEach(Y=>{Y.classList.remove(B.hiddenClass),Y.classList.remove(B.modifierClass+B.type),Y.classList.remove(t.isHorizontal()?B.horizontalClass:B.verticalClass),B.clickable&&(Y.classList.remove(...(B.clickableClass||"").split(" ")),Y.removeEventListener("click",w))})),t.pagination.bullets&&t.pagination.bullets.forEach(Y=>Y.classList.remove(...B.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const B=t.params.pagination;let{el:I}=t.pagination;I=xr(I),I.forEach(Y=>{Y.classList.remove(B.horizontalClass,B.verticalClass),Y.classList.add(t.isHorizontal()?B.horizontalClass:B.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?H():(O(),M(),C())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&C()}),r("snapIndexChange",()=>{C()}),r("snapGridLengthChange",()=>{M(),C()}),r("destroy",()=>{k()}),r("enable disable",()=>{let{el:B}=t.pagination;B&&(B=xr(B),B.forEach(I=>I.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{C()}),r("click",(B,I)=>{const Y=I.target,K=xr(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&K&&K.length>0&&!Y.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&Y===t.navigation.nextEl||t.navigation.prevEl&&Y===t.navigation.prevEl))return;const G=K[0].classList.contains(t.params.pagination.hiddenClass);i(G===!0?"paginationShow":"paginationHide"),K.forEach(ne=>ne.classList.toggle(t.params.pagination.hiddenClass))}});const W=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:B}=t.pagination;B&&(B=xr(B),B.forEach(I=>I.classList.remove(t.params.pagination.paginationDisabledClass))),O(),M(),C()},H=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:B}=t.pagination;B&&(B=xr(B),B.forEach(I=>I.classList.add(t.params.pagination.paginationDisabledClass))),k()};Object.assign(t.pagination,{enable:W,disable:H,render:M,update:C,init:O,destroy:k})}function x1(e){let{swiper:t,extendParams:n,on:r}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let i=null,o,l,u=new Date().getTime();function p(J){const oe=i;oe.length!==0&&Oh(oe,J)}function y(J){const oe=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(J).replace(/x/g,oe)}function S(J){J=xr(J),J.forEach(oe=>{oe.setAttribute("tabIndex","0")})}function w(J){J=xr(J),J.forEach(oe=>{oe.setAttribute("tabIndex","-1")})}function C(J,oe){J=xr(J),J.forEach(xe=>{xe.setAttribute("role",oe)})}function M(J,oe){J=xr(J),J.forEach(xe=>{xe.setAttribute("aria-roledescription",oe)})}function O(J,oe){J=xr(J),J.forEach(xe=>{xe.setAttribute("aria-controls",oe)})}function k(J,oe){J=xr(J),J.forEach(xe=>{xe.setAttribute("aria-label",oe)})}function W(J,oe){J=xr(J),J.forEach(xe=>{xe.setAttribute("id",oe)})}function H(J,oe){J=xr(J),J.forEach(xe=>{xe.setAttribute("aria-live",oe)})}function B(J){J=xr(J),J.forEach(oe=>{oe.setAttribute("aria-disabled",!0)})}function I(J){J=xr(J),J.forEach(oe=>{oe.setAttribute("aria-disabled",!1)})}function Y(J){if(J.keyCode!==13&&J.keyCode!==32)return;const oe=t.params.a11y,xe=J.target;if(!(t.pagination&&t.pagination.el&&(xe===t.pagination.el||t.pagination.el.contains(J.target))&&!J.target.matches(Bd(t.params.pagination.bulletClass)))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const ee=xr(t.navigation.prevEl);xr(t.navigation.nextEl).includes(xe)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?p(oe.lastSlideMessage):p(oe.nextSlideMessage)),ee.includes(xe)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?p(oe.firstSlideMessage):p(oe.prevSlideMessage))}t.pagination&&xe.matches(Bd(t.params.pagination.bulletClass))&&xe.click()}}function K(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:J,prevEl:oe}=t.navigation;oe&&(t.isBeginning?(B(oe),w(oe)):(I(oe),S(oe))),J&&(t.isEnd?(B(J),w(J)):(I(J),S(J)))}function G(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function ne(){return G()&&t.params.pagination.clickable}function $(){const J=t.params.a11y;G()&&t.pagination.bullets.forEach(oe=>{t.params.pagination.clickable&&(S(oe),t.params.pagination.renderBullet||(C(oe,"button"),k(oe,J.paginationBulletMessage.replace(/\{\{index\}\}/,Ph(oe)+1)))),oe.matches(Bd(t.params.pagination.bulletActiveClass))?oe.setAttribute("aria-current","true"):oe.removeAttribute("aria-current")})}const ie=(J,oe,xe)=>{S(J),J.tagName!=="BUTTON"&&(C(J,"button"),J.addEventListener("keydown",Y)),k(J,xe),O(J,oe)},se=J=>{l&&l!==J.target&&!l.contains(J.target)&&(o=!0),t.a11y.clicked=!0},ue=()=>{o=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},he=J=>{u=new Date().getTime()},ve=J=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||new Date().getTime()-u<100)return;const oe=J.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!oe||!t.slides.includes(oe))return;l=oe;const xe=t.slides.indexOf(oe)===t.activeIndex,ee=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(oe);xe||ee||J.sourceCapabilities&&J.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{o||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(oe.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(oe)),0),o=!1)}))},ae=()=>{const J=t.params.a11y;J.itemRoleDescriptionMessage&&M(t.slides,J.itemRoleDescriptionMessage),J.slideRole&&C(t.slides,J.slideRole);const oe=t.slides.length;J.slideLabelMessage&&t.slides.forEach((xe,ee)=>{const Q=t.params.loop?parseInt(xe.getAttribute("data-swiper-slide-index"),10):ee,Ce=J.slideLabelMessage.replace(/\{\{index\}\}/,Q+1).replace(/\{\{slidesLength\}\}/,oe);k(xe,Ce)})},me=()=>{const J=t.params.a11y;t.el.append(i);const oe=t.el;J.containerRoleDescriptionMessage&&M(oe,J.containerRoleDescriptionMessage),J.containerMessage&&k(oe,J.containerMessage),J.containerRole&&C(oe,J.containerRole);const xe=t.wrapperEl,ee=J.id||xe.getAttribute("id")||`swiper-wrapper-${y(16)}`,Q=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";W(xe,ee),H(xe,Q),ae();let{nextEl:Ce,prevEl:Ge}=t.navigation?t.navigation:{};Ce=xr(Ce),Ge=xr(Ge),Ce&&Ce.forEach(Oe=>ie(Oe,ee,J.nextSlideMessage)),Ge&&Ge.forEach(Oe=>ie(Oe,ee,J.prevSlideMessage)),ne()&&xr(t.pagination.el).forEach(rt=>{rt.addEventListener("keydown",Y)}),Rc().addEventListener("visibilitychange",he),t.el.addEventListener("focus",ve,!0),t.el.addEventListener("focus",ve,!0),t.el.addEventListener("pointerdown",se,!0),t.el.addEventListener("pointerup",ue,!0)};function V(){i&&i.remove();let{nextEl:J,prevEl:oe}=t.navigation?t.navigation:{};J=xr(J),oe=xr(oe),J&&J.forEach(ee=>ee.removeEventListener("keydown",Y)),oe&&oe.forEach(ee=>ee.removeEventListener("keydown",Y)),ne()&&xr(t.pagination.el).forEach(Q=>{Q.removeEventListener("keydown",Y)}),Rc().removeEventListener("visibilitychange",he),t.el&&typeof t.el!="string"&&(t.el.removeEventListener("focus",ve,!0),t.el.removeEventListener("pointerdown",se,!0),t.el.removeEventListener("pointerup",ue,!0))}r("beforeInit",()=>{i=_h("span",t.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),r("afterInit",()=>{t.params.a11y.enabled&&me()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&ae()}),r("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&K()}),r("paginationUpdate",()=>{t.params.a11y.enabled&&$()}),r("destroy",()=>{t.params.a11y.enabled&&V()})}function S1(e){let{swiper:t,extendParams:n,emit:r,once:i}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function o(){if(t.params.cssMode)return;const p=t.getTranslate();t.setTranslate(p),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function l(){if(t.params.cssMode)return;const{touchEventsData:p,touches:y}=t;p.velocities.length===0&&p.velocities.push({position:y[t.isHorizontal()?"startX":"startY"],time:p.touchStartTime}),p.velocities.push({position:y[t.isHorizontal()?"currentX":"currentY"],time:Gs()})}function u(p){let{currentPos:y}=p;if(t.params.cssMode)return;const{params:S,wrapperEl:w,rtlTranslate:C,snapGrid:M,touchEventsData:O}=t,W=Gs()-O.touchStartTime;if(y<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(y>-t.maxTranslate()){t.slides.length<M.length?t.slideTo(M.length-1):t.slideTo(t.slides.length-1);return}if(S.freeMode.momentum){if(O.velocities.length>1){const $=O.velocities.pop(),ie=O.velocities.pop(),se=$.position-ie.position,ue=$.time-ie.time;t.velocity=se/ue,t.velocity/=2,Math.abs(t.velocity)<S.freeMode.minimumVelocity&&(t.velocity=0),(ue>150||Gs()-$.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=S.freeMode.momentumVelocityRatio,O.velocities.length=0;let H=1e3*S.freeMode.momentumRatio;const B=t.velocity*H;let I=t.translate+B;C&&(I=-I);let Y=!1,K;const G=Math.abs(t.velocity)*20*S.freeMode.momentumBounceRatio;let ne;if(I<t.maxTranslate())S.freeMode.momentumBounce?(I+t.maxTranslate()<-G&&(I=t.maxTranslate()-G),K=t.maxTranslate(),Y=!0,O.allowMomentumBounce=!0):I=t.maxTranslate(),S.loop&&S.centeredSlides&&(ne=!0);else if(I>t.minTranslate())S.freeMode.momentumBounce?(I-t.minTranslate()>G&&(I=t.minTranslate()+G),K=t.minTranslate(),Y=!0,O.allowMomentumBounce=!0):I=t.minTranslate(),S.loop&&S.centeredSlides&&(ne=!0);else if(S.freeMode.sticky){let $;for(let ie=0;ie<M.length;ie+=1)if(M[ie]>-I){$=ie;break}Math.abs(M[$]-I)<Math.abs(M[$-1]-I)||t.swipeDirection==="next"?I=M[$]:I=M[$-1],I=-I}if(ne&&i("transitionEnd",()=>{t.loopFix()}),t.velocity!==0){if(C?H=Math.abs((-I-t.translate)/t.velocity):H=Math.abs((I-t.translate)/t.velocity),S.freeMode.sticky){const $=Math.abs((C?-I:I)-t.translate),ie=t.slidesSizesGrid[t.activeIndex];$<ie?H=S.speed:$<2*ie?H=S.speed*1.5:H=S.speed*2.5}}else if(S.freeMode.sticky){t.slideToClosest();return}S.freeMode.momentumBounce&&Y?(t.updateProgress(K),t.setTransition(H),t.setTranslate(I),t.transitionStart(!0,t.swipeDirection),t.animating=!0,Ap(w,()=>{!t||t.destroyed||!O.allowMomentumBounce||(r("momentumBounce"),t.setTransition(S.speed),setTimeout(()=>{t.setTranslate(K),Ap(w,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(r("_freeModeNoMomentumRelease"),t.updateProgress(I),t.setTransition(H),t.setTranslate(I),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,Ap(w,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(I),t.updateActiveIndex(),t.updateSlidesClasses()}else if(S.freeMode.sticky){t.slideToClosest();return}else S.freeMode&&r("_freeModeNoMomentumRelease");(!S.freeMode.momentum||W>=S.longSwipesMs)&&(r("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}Object.assign(t,{freeMode:{onTouchStart:o,onTouchMove:l,onTouchEnd:u}})}let Np;function E1(){const e=Ao(),t=Rc();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function uy(){return Np||(Np=E1()),Np}let Fp;function C1(e){let{userAgent:t}=e===void 0?{}:e;const n=uy(),r=Ao(),i=r.navigator.platform,o=t||r.navigator.userAgent,l={ios:!1,android:!1},u=r.screen.width,p=r.screen.height,y=o.match(/(Android);?[\s\/]+([\d.]+)?/);let S=o.match(/(iPad).*OS\s([\d_]+)/);const w=o.match(/(iPod)(.*OS\s([\d_]+))?/),C=!S&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),M=i==="Win32";let O=i==="MacIntel";const k=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!S&&O&&n.touch&&k.indexOf(`${u}x${p}`)>=0&&(S=o.match(/(Version)\/([\d.]+)/),S||(S=[0,1,"13_0_0"]),O=!1),y&&!M&&(l.os="android",l.android=!0),(S||C||w)&&(l.os="ios",l.ios=!0),l}function dy(e){return e===void 0&&(e={}),Fp||(Fp=C1(e)),Fp}let Dp;function T1(){const e=Ao(),t=dy();let n=!1;function r(){const u=e.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(r()){const u=String(e.navigator.userAgent);if(u.includes("Version/")){const[p,y]=u.split("Version/")[1].split(" ")[0].split(".").map(S=>Number(S));n=p<16||p===16&&y<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=r(),l=o||i&&t.ios;return{isSafari:n||o,needPerspectiveFix:n,need3dFix:l,isWebView:i}}function fy(){return Dp||(Dp=T1()),Dp}function k1(e){let{swiper:t,on:n,emit:r}=e;const i=Ao();let o=null,l=null;const u=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},p=()=>{!t||t.destroyed||!t.initialized||(o=new ResizeObserver(w=>{l=i.requestAnimationFrame(()=>{const{width:C,height:M}=t;let O=C,k=M;w.forEach(W=>{let{contentBoxSize:H,contentRect:B,target:I}=W;I&&I!==t.el||(O=B?B.width:(H[0]||H).inlineSize,k=B?B.height:(H[0]||H).blockSize)}),(O!==C||k!==M)&&u()})}),o.observe(t.el))},y=()=>{l&&i.cancelAnimationFrame(l),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null)},S=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof i.ResizeObserver<"u"){p();return}i.addEventListener("resize",u),i.addEventListener("orientationchange",S)}),n("destroy",()=>{y(),i.removeEventListener("resize",u),i.removeEventListener("orientationchange",S)})}function R1(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;const o=[],l=Ao(),u=function(S,w){w===void 0&&(w={});const C=l.MutationObserver||l.WebkitMutationObserver,M=new C(O=>{if(t.__preventObserver__)return;if(O.length===1){i("observerUpdate",O[0]);return}const k=function(){i("observerUpdate",O[0])};l.requestAnimationFrame?l.requestAnimationFrame(k):l.setTimeout(k,0)});M.observe(S,{attributes:typeof w.attributes>"u"?!0:w.attributes,childList:t.isElement||(typeof w.childList>"u"?!0:w).childList,characterData:typeof w.characterData>"u"?!0:w.characterData}),o.push(M)},p=()=>{if(t.params.observer){if(t.params.observeParents){const S=bg(t.hostEl);for(let w=0;w<S.length;w+=1)u(S[w])}u(t.hostEl,{childList:t.params.observeSlideChildren}),u(t.wrapperEl,{attributes:!1})}},y=()=>{o.forEach(S=>{S.disconnect()}),o.splice(0,o.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",p),r("destroy",y)}var M1={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];t.apply(r,l)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return typeof o[0]=="string"||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),r=e):(t=o[0].events,n=o[0].data,r=o[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(p=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(y=>{y.apply(r,[p,...n])}),e.eventsListeners&&e.eventsListeners[p]&&e.eventsListeners[p].forEach(y=>{y.apply(r,n)})}),e}};function _1(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Ld(r,"padding-left")||0,10)-parseInt(Ld(r,"padding-right")||0,10),n=n-parseInt(Ld(r,"padding-top")||0,10)-parseInt(Ld(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function P1(){const e=this;function t(se,ue){return parseFloat(se.getPropertyValue(e.getDirectionLabel(ue))||0)}const n=e.params,{wrapperEl:r,slidesEl:i,size:o,rtlTranslate:l,wrongRTL:u}=e,p=e.virtual&&n.virtual.enabled,y=p?e.virtual.slides.length:e.slides.length,S=xu(i,`.${e.params.slideClass}, swiper-slide`),w=p?e.virtual.slides.length:S.length;let C=[];const M=[],O=[];let k=n.slidesOffsetBefore;typeof k=="function"&&(k=n.slidesOffsetBefore.call(e));let W=n.slidesOffsetAfter;typeof W=="function"&&(W=n.slidesOffsetAfter.call(e));const H=e.snapGrid.length,B=e.slidesGrid.length;let I=n.spaceBetween,Y=-k,K=0,G=0;if(typeof o>"u")return;typeof I=="string"&&I.indexOf("%")>=0?I=parseFloat(I.replace("%",""))/100*o:typeof I=="string"&&(I=parseFloat(I)),e.virtualSize=-I,S.forEach(se=>{l?se.style.marginLeft="":se.style.marginRight="",se.style.marginBottom="",se.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(pg(r,"--swiper-centered-offset-before",""),pg(r,"--swiper-centered-offset-after",""));const ne=n.grid&&n.grid.rows>1&&e.grid;ne?e.grid.initSlides(S):e.grid&&e.grid.unsetSlides();let $;const ie=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(se=>typeof n.breakpoints[se].slidesPerView<"u").length>0;for(let se=0;se<w;se+=1){$=0;let ue;if(S[se]&&(ue=S[se]),ne&&e.grid.updateSlide(se,ue,S),!(S[se]&&Ld(ue,"display")==="none")){if(n.slidesPerView==="auto"){ie&&(S[se].style[e.getDirectionLabel("width")]="");const he=getComputedStyle(ue),ve=ue.style.transform,ae=ue.style.webkitTransform;if(ve&&(ue.style.transform="none"),ae&&(ue.style.webkitTransform="none"),n.roundLengths)$=e.isHorizontal()?Ip(ue,"width"):Ip(ue,"height");else{const me=t(he,"width"),V=t(he,"padding-left"),J=t(he,"padding-right"),oe=t(he,"margin-left"),xe=t(he,"margin-right"),ee=he.getPropertyValue("box-sizing");if(ee&&ee==="border-box")$=me+oe+xe;else{const{clientWidth:Q,offsetWidth:Ce}=ue;$=me+V+J+oe+xe+(Ce-Q)}}ve&&(ue.style.transform=ve),ae&&(ue.style.webkitTransform=ae),n.roundLengths&&($=Math.floor($))}else $=(o-(n.slidesPerView-1)*I)/n.slidesPerView,n.roundLengths&&($=Math.floor($)),S[se]&&(S[se].style[e.getDirectionLabel("width")]=`${$}px`);S[se]&&(S[se].swiperSlideSize=$),O.push($),n.centeredSlides?(Y=Y+$/2+K/2+I,K===0&&se!==0&&(Y=Y-o/2-I),se===0&&(Y=Y-o/2-I),Math.abs(Y)<1/1e3&&(Y=0),n.roundLengths&&(Y=Math.floor(Y)),G%n.slidesPerGroup===0&&C.push(Y),M.push(Y)):(n.roundLengths&&(Y=Math.floor(Y)),(G-Math.min(e.params.slidesPerGroupSkip,G))%e.params.slidesPerGroup===0&&C.push(Y),M.push(Y),Y=Y+$+I),e.virtualSize+=$+I,K=$,G+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+W,l&&u&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+I}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+I}px`),ne&&e.grid.updateWrapperSize($,C),!n.centeredSlides){const se=[];for(let ue=0;ue<C.length;ue+=1){let he=C[ue];n.roundLengths&&(he=Math.floor(he)),C[ue]<=e.virtualSize-o&&se.push(he)}C=se,Math.floor(e.virtualSize-o)-Math.floor(C[C.length-1])>1&&C.push(e.virtualSize-o)}if(p&&n.loop){const se=O[0]+I;if(n.slidesPerGroup>1){const ue=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),he=se*n.slidesPerGroup;for(let ve=0;ve<ue;ve+=1)C.push(C[C.length-1]+he)}for(let ue=0;ue<e.virtual.slidesBefore+e.virtual.slidesAfter;ue+=1)n.slidesPerGroup===1&&C.push(C[C.length-1]+se),M.push(M[M.length-1]+se),e.virtualSize+=se}if(C.length===0&&(C=[0]),I!==0){const se=e.isHorizontal()&&l?"marginLeft":e.getDirectionLabel("marginRight");S.filter((ue,he)=>!n.cssMode||n.loop?!0:he!==S.length-1).forEach(ue=>{ue.style[se]=`${I}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let se=0;O.forEach(he=>{se+=he+(I||0)}),se-=I;const ue=se>o?se-o:0;C=C.map(he=>he<=0?-k:he>ue?ue+W:he)}if(n.centerInsufficientSlides){let se=0;O.forEach(he=>{se+=he+(I||0)}),se-=I;const ue=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(se+ue<o){const he=(o-se-ue)/2;C.forEach((ve,ae)=>{C[ae]=ve-he}),M.forEach((ve,ae)=>{M[ae]=ve+he})}}if(Object.assign(e,{slides:S,snapGrid:C,slidesGrid:M,slidesSizesGrid:O}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){pg(r,"--swiper-centered-offset-before",`${-C[0]}px`),pg(r,"--swiper-centered-offset-after",`${e.size/2-O[O.length-1]/2}px`);const se=-e.snapGrid[0],ue=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(he=>he+se),e.slidesGrid=e.slidesGrid.map(he=>he+ue)}if(w!==y&&e.emit("slidesLengthChange"),C.length!==H&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),M.length!==B&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!p&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const se=`${n.containerModifierClass}backface-hidden`,ue=e.el.classList.contains(se);w<=n.maxBackfaceHiddenSlides?ue||e.el.classList.add(se):ue&&e.el.classList.remove(se)}}function O1(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=u=>r?t.slides[t.getSlideIndexByData(u)]:t.slides[u];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(u=>{n.push(u)});else for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){const u=t.activeIndex+o;if(u>t.slides.length&&!r)break;n.push(l(u))}else n.push(l(t.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const u=n[o].offsetHeight;i=u>i?u:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function A1(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const hy=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function I1(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;i&&(l=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let u=n.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*t.size:typeof u=="string"&&(u=parseFloat(u));for(let p=0;p<r.length;p+=1){const y=r[p];let S=y.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(S-=r[0].swiperSlideOffset);const w=(l+(n.centeredSlides?t.minTranslate():0)-S)/(y.swiperSlideSize+u),C=(l-o[0]+(n.centeredSlides?t.minTranslate():0)-S)/(y.swiperSlideSize+u),M=-(l-S),O=M+t.slidesSizesGrid[p],k=M>=0&&M<=t.size-t.slidesSizesGrid[p],W=M>=0&&M<t.size-1||O>1&&O<=t.size||M<=0&&O>=t.size;W&&(t.visibleSlides.push(y),t.visibleSlidesIndexes.push(p)),hy(y,W,n.slideVisibleClass),hy(y,k,n.slideFullyVisibleClass),y.progress=i?-w:w,y.originalProgress=i?-C:C}}function N1(e){const t=this;if(typeof e>"u"){const S=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*S||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:l,progressLoop:u}=t;const p=o,y=l;if(r===0)i=0,o=!0,l=!0;else{i=(e-t.minTranslate())/r;const S=Math.abs(e-t.minTranslate())<1,w=Math.abs(e-t.maxTranslate())<1;o=S||i<=0,l=w||i>=1,S&&(i=0),w&&(i=1)}if(n.loop){const S=t.getSlideIndexByData(0),w=t.getSlideIndexByData(t.slides.length-1),C=t.slidesGrid[S],M=t.slidesGrid[w],O=t.slidesGrid[t.slidesGrid.length-1],k=Math.abs(e);k>=C?u=(k-C)/O:u=(k+O-M)/O,u>1&&(u-=1)}Object.assign(t,{progress:i,progressLoop:u,isBeginning:o,isEnd:l}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!p&&t.emit("reachBeginning toEdge"),l&&!y&&t.emit("reachEnd toEdge"),(p&&!o||y&&!l)&&t.emit("fromEdge"),t.emit("progress",i)}const Lp=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function F1(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,l=e.grid&&n.grid&&n.grid.rows>1,u=w=>xu(r,`.${n.slideClass}${w}, swiper-slide${w}`)[0];let p,y,S;if(o)if(n.loop){let w=i-e.virtual.slidesBefore;w<0&&(w=e.virtual.slides.length+w),w>=e.virtual.slides.length&&(w-=e.virtual.slides.length),p=u(`[data-swiper-slide-index="${w}"]`)}else p=u(`[data-swiper-slide-index="${i}"]`);else l?(p=t.find(w=>w.column===i),S=t.find(w=>w.column===i+1),y=t.find(w=>w.column===i-1)):p=t[i];p&&(l||(S=v1(p,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!S&&(S=t[0]),y=p1(p,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!y===0&&(y=t[t.length-1]))),t.forEach(w=>{Lp(w,w===p,n.slideActiveClass),Lp(w,w===S,n.slideNextClass),Lp(w,w===y,n.slidePrevClass)}),e.emitSlidesClasses()}const mg=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let i=r.querySelector(`.${e.params.lazyPreloaderClass}`);!i&&e.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},Bp=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},zp=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const l=i,u=[l-t];u.push(...Array.from({length:t}).map((p,y)=>l+r+y)),e.slides.forEach((p,y)=>{u.includes(p.column)&&Bp(e,y)});return}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let l=i-t;l<=o+t;l+=1){const u=(l%n+n)%n;(u<i||u>o)&&Bp(e,u)}else for(let l=Math.max(i-t,0);l<=Math.min(o+t,n-1);l+=1)l!==i&&(l>o||l<i)&&Bp(e,l)};function D1(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o<t.length;o+=1)typeof t[o+1]<"u"?r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2?i=o:r>=t[o]&&r<t[o+1]&&(i=o+1):r>=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function L1(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:l,snapIndex:u}=t;let p=e,y;const S=M=>{let O=M-t.virtual.slidesBefore;return O<0&&(O=t.virtual.slides.length+O),O>=t.virtual.slides.length&&(O-=t.virtual.slides.length),O};if(typeof p>"u"&&(p=D1(t)),r.indexOf(n)>=0)y=r.indexOf(n);else{const M=Math.min(i.slidesPerGroupSkip,p);y=M+Math.floor((p-M)/i.slidesPerGroup)}if(y>=r.length&&(y=r.length-1),p===o&&!t.params.loop){y!==u&&(t.snapIndex=y,t.emit("snapIndexChange"));return}if(p===o&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=S(p);return}const w=t.grid&&i.grid&&i.grid.rows>1;let C;if(t.virtual&&i.virtual.enabled&&i.loop)C=S(p);else if(w){const M=t.slides.find(k=>k.column===p);let O=parseInt(M.getAttribute("data-swiper-slide-index"),10);Number.isNaN(O)&&(O=Math.max(t.slides.indexOf(M),0)),C=Math.floor(O/i.grid.rows)}else if(t.slides[p]){const M=t.slides[p].getAttribute("data-swiper-slide-index");M?C=parseInt(M,10):C=p}else C=p;Object.assign(t,{previousSnapIndex:u,snapIndex:y,previousRealIndex:l,realIndex:C,previousIndex:o,activeIndex:p}),t.initialized&&zp(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(l!==C&&t.emit("realIndexChange"),t.emit("slideChange"))}function B1(e,t){const n=this,r=n.params;let i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(u=>{!i&&u.matches&&u.matches(`.${r.slideClass}, swiper-slide`)&&(i=u)});let o=!1,l;if(i){for(let u=0;u<n.slides.length;u+=1)if(n.slides[u]===i){o=!0,l=u;break}}if(i&&o)n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=l;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var z1={updateSize:_1,updateSlides:P1,updateAutoHeight:O1,updateSlidesOffset:A1,updateSlidesProgress:I1,updateProgress:N1,updateSlidesClasses:F1,updateActiveIndex:L1,updateClickedSlide:B1};function H1(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:o}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let l=u1(o,e);return l+=t.cssOverflowAdjustment(),r&&(l=-l),l||0}function W1(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:l}=n;let u=0,p=0;const y=0;n.isHorizontal()?u=r?-e:e:p=e,i.roundLengths&&(u=Math.floor(u),p=Math.floor(p)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?u:p,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-u:-p:i.virtualTranslate||(n.isHorizontal()?u-=n.cssOverflowAdjustment():p-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${u}px, ${p}px, ${y}px)`);let S;const w=n.maxTranslate()-n.minTranslate();w===0?S=0:S=(e-n.minTranslate())/w,S!==l&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function U1(){return-this.snapGrid[0]}function G1(){return-this.snapGrid[this.snapGrid.length-1]}function Y1(e,t,n,r,i){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const o=this,{params:l,wrapperEl:u}=o;if(o.animating&&l.preventInteractionOnTransition)return!1;const p=o.minTranslate(),y=o.maxTranslate();let S;if(r&&e>p?S=p:r&&e<y?S=y:S=e,o.updateProgress(S),l.cssMode){const w=o.isHorizontal();if(t===0)u[w?"scrollLeft":"scrollTop"]=-S;else{if(!o.support.smoothScroll)return cy({swiper:o,targetPosition:-S,side:w?"left":"top"}),!0;u.scrollTo({[w?"left":"top"]:-S,behavior:"smooth"})}return!0}return t===0?(o.setTransition(0),o.setTranslate(S),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(S),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(C){!o||o.destroyed||C.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var V1={getTranslate:H1,setTranslate:W1,minTranslate:U1,maxTranslate:G1,translateTo:Y1};function X1(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function gy(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e;const{activeIndex:o,previousIndex:l}=t;let u=r;u||(o>l?u="next":o<l?u="prev":u="reset"),t.emit(`transition${i}`),n&&u==="reset"?t.emit(`slideResetTransition${i}`):n&&o!==l&&(t.emit(`slideChangeTransition${i}`),u==="next"?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`))}function Z1(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),gy({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function J1(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),gy({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var K1={setTransition:X1,transitionStart:Z1,transitionEnd:J1};function Q1(e,t,n,r,i){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const o=this;let l=e;l<0&&(l=0);const{params:u,snapGrid:p,slidesGrid:y,previousIndex:S,activeIndex:w,rtlTranslate:C,wrapperEl:M,enabled:O}=o;if(!O&&!r&&!i||o.destroyed||o.animating&&u.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=o.params.speed);const k=Math.min(o.params.slidesPerGroupSkip,l);let W=k+Math.floor((l-k)/o.params.slidesPerGroup);W>=p.length&&(W=p.length-1);const H=-p[W];if(u.normalizeSlideIndex)for(let ne=0;ne<y.length;ne+=1){const $=-Math.floor(H*100),ie=Math.floor(y[ne]*100),se=Math.floor(y[ne+1]*100);typeof y[ne+1]<"u"?$>=ie&&$<se-(se-ie)/2?l=ne:$>=ie&&$<se&&(l=ne+1):$>=ie&&(l=ne)}if(o.initialized&&l!==w&&(!o.allowSlideNext&&(C?H>o.translate&&H>o.minTranslate():H<o.translate&&H<o.minTranslate())||!o.allowSlidePrev&&H>o.translate&&H>o.maxTranslate()&&(w||0)!==l))return!1;l!==(S||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(H);let B;l>w?B="next":l<w?B="prev":B="reset";const I=o.virtual&&o.params.virtual.enabled;if(!(I&&i)&&(C&&-H===o.translate||!C&&H===o.translate))return o.updateActiveIndex(l),u.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),u.effect!=="slide"&&o.setTranslate(H),B!=="reset"&&(o.transitionStart(n,B),o.transitionEnd(n,B)),!1;if(u.cssMode){const ne=o.isHorizontal(),$=C?H:-H;if(t===0)I&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),I&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{M[ne?"scrollLeft":"scrollTop"]=$})):M[ne?"scrollLeft":"scrollTop"]=$,I&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return cy({swiper:o,targetPosition:$,side:ne?"left":"top"}),!0;M.scrollTo({[ne?"left":"top"]:$,behavior:"smooth"})}return!0}const G=fy().isSafari;return I&&!i&&G&&o.isElement&&o.virtual.update(!1,!1,l),o.setTransition(t),o.setTranslate(H),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,B),t===0?o.transitionEnd(n,B):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function($){!o||o.destroyed||$.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,B))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function j1(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);const o=i.grid&&i.params.grid&&i.params.grid.rows>1;let l=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)l=l+i.virtual.slidesBefore;else{let u;if(o){const C=l*i.params.grid.rows;u=i.slides.find(M=>M.getAttribute("data-swiper-slide-index")*1===C).column}else u=i.getSlideIndexByData(l);const p=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:y}=i.params;let S=i.params.slidesPerView;S==="auto"?S=i.slidesPerViewDynamic():(S=Math.ceil(parseFloat(i.params.slidesPerView,10)),y&&S%2===0&&(S=S+1));let w=p-u<S;if(y&&(w=w||u<Math.ceil(S/2)),r&&y&&i.params.slidesPerView!=="auto"&&!o&&(w=!1),w){const C=y?u<i.activeIndex?"prev":"next":u-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:C,slideTo:!0,activeSlideIndex:C==="next"?u+1:u-p+1,slideRealIndex:C==="next"?i.realIndex:void 0})}if(o){const C=l*i.params.grid.rows;l=i.slides.find(M=>M.getAttribute("data-swiper-slide-index")*1===C).column}else l=i.getSlideIndexByData(l)}return requestAnimationFrame(()=>{i.slideTo(l,t,n,r)}),i}function q1(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:i,params:o,animating:l}=r;if(!i||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let u=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(u=Math.max(r.slidesPerViewDynamic("current",!0),1));const p=r.activeIndex<o.slidesPerGroupSkip?1:u,y=r.virtual&&o.virtual.enabled;if(o.loop){if(l&&!y&&o.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+p,e,t,n)}),!0}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+p,e,t,n)}function $1(e,t,n){t===void 0&&(t=!0);const r=this,{params:i,snapGrid:o,slidesGrid:l,rtlTranslate:u,enabled:p,animating:y}=r;if(!p||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const S=r.virtual&&i.virtual.enabled;if(i.loop){if(y&&!S&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const w=u?r.translate:-r.translate;function C(B){return B<0?-Math.floor(Math.abs(B)):Math.floor(B)}const M=C(w),O=o.map(B=>C(B)),k=i.freeMode&&i.freeMode.enabled;let W=o[O.indexOf(M)-1];if(typeof W>"u"&&(i.cssMode||k)){let B;o.forEach((I,Y)=>{M>=I&&(B=Y)}),typeof B<"u"&&(W=k?o[B]:o[B>0?B-1:B])}let H=0;if(typeof W<"u"&&(H=l.indexOf(W),H<0&&(H=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(H=H-r.slidesPerViewDynamic("previous",!0)+1,H=Math.max(H,0))),i.rewind&&r.isBeginning){const B=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(B,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(H,e,t,n)}),!0;return r.slideTo(H,e,t,n)}function eR(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function tR(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);let o=i.activeIndex;const l=Math.min(i.params.slidesPerGroupSkip,o),u=l+Math.floor((o-l)/i.params.slidesPerGroup),p=i.rtlTranslate?i.translate:-i.translate;if(p>=i.snapGrid[u]){const y=i.snapGrid[u],S=i.snapGrid[u+1];p-y>(S-y)*r&&(o+=i.params.slidesPerGroup)}else{const y=i.snapGrid[u-1],S=i.snapGrid[u];p-y<=(S-y)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function nR(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.getSlideIndexWhenGrid(e.clickedIndex),o;const l=e.isElement?"swiper-slide":`.${t.slideClass}`,u=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(o):i>(u?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),i=e.getSlideIndex(xu(n,`${l}[data-swiper-slide-index="${o}"]`)[0]),hg(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var rR={slideTo:Q1,slideToLoop:j1,slideNext:q1,slidePrev:$1,slideReset:eR,slideToClosest:tR,slideToClickedSlide:nR};function iR(e,t){const n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{xu(i,`.${r.slideClass}, swiper-slide`).forEach((M,O)=>{M.setAttribute("data-swiper-slide-index",O)})},l=()=>{const C=xu(i,`.${r.slideBlankClass}`);C.forEach(M=>{M.remove()}),C.length>0&&(n.recalcSlides(),n.updateSlides())},u=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||u)&&l();const p=r.slidesPerGroup*(u?r.grid.rows:1),y=n.slides.length%p!==0,S=u&&n.slides.length%r.grid.rows!==0,w=C=>{for(let M=0;M<C;M+=1){const O=n.isElement?_h("swiper-slide",[r.slideBlankClass]):_h("div",[r.slideClass,r.slideBlankClass]);n.slidesEl.append(O)}};if(y){if(r.loopAddBlankSlides){const C=p-n.slides.length%p;w(C),n.recalcSlides(),n.updateSlides()}else vg("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(S){if(r.loopAddBlankSlides){const C=r.grid.rows-n.slides.length%r.grid.rows;w(C),n.recalcSlides(),n.updateSlides()}else vg("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();n.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t})}function oR(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:o,initial:l,byController:u,byMousewheel:p}=e===void 0?{}:e;const y=this;if(!y.params.loop)return;y.emit("beforeLoopFix");const{slides:S,allowSlidePrev:w,allowSlideNext:C,slidesEl:M,params:O}=y,{centeredSlides:k,initialSlide:W}=O;if(y.allowSlidePrev=!0,y.allowSlideNext=!0,y.virtual&&O.virtual.enabled){n&&(!O.centeredSlides&&y.snapIndex===0?y.slideTo(y.virtual.slides.length,0,!1,!0):O.centeredSlides&&y.snapIndex<O.slidesPerView?y.slideTo(y.virtual.slides.length+y.snapIndex,0,!1,!0):y.snapIndex===y.snapGrid.length-1&&y.slideTo(y.virtual.slidesBefore,0,!1,!0)),y.allowSlidePrev=w,y.allowSlideNext=C,y.emit("loopFix");return}let H=O.slidesPerView;H==="auto"?H=y.slidesPerViewDynamic():(H=Math.ceil(parseFloat(O.slidesPerView,10)),k&&H%2===0&&(H=H+1));const B=O.slidesPerGroupAuto?H:O.slidesPerGroup;let I=k?Math.max(B,Math.ceil(H/2)):B;I%B!==0&&(I+=B-I%B),I+=O.loopAdditionalSlides,y.loopedSlides=I;const Y=y.grid&&O.grid&&O.grid.rows>1;S.length<H+I||y.params.effect==="cards"&&S.length<H+I*2?vg("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):Y&&O.grid.fill==="row"&&vg("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const K=[],G=[],ne=Y?Math.ceil(S.length/O.grid.rows):S.length,$=l&&ne-W<H&&!k;let ie=$?W:y.activeIndex;typeof o>"u"?o=y.getSlideIndex(S.find(V=>V.classList.contains(O.slideActiveClass))):ie=o;const se=r==="next"||!r,ue=r==="prev"||!r;let he=0,ve=0;const me=(Y?S[o].column:o)+(k&&typeof i>"u"?-H/2+.5:0);if(me<I){he=Math.max(I-me,B);for(let V=0;V<I-me;V+=1){const J=V-Math.floor(V/ne)*ne;if(Y){const oe=ne-J-1;for(let xe=S.length-1;xe>=0;xe-=1)S[xe].column===oe&&K.push(xe)}else K.push(ne-J-1)}}else if(me+H>ne-I){ve=Math.max(me-(ne-I*2),B),$&&(ve=Math.max(ve,H-ne+W+1));for(let V=0;V<ve;V+=1){const J=V-Math.floor(V/ne)*ne;Y?S.forEach((oe,xe)=>{oe.column===J&&G.push(xe)}):G.push(J)}}if(y.__preventObserver__=!0,requestAnimationFrame(()=>{y.__preventObserver__=!1}),y.params.effect==="cards"&&S.length<H+I*2&&(G.includes(o)&&G.splice(G.indexOf(o),1),K.includes(o)&&K.splice(K.indexOf(o),1)),ue&&K.forEach(V=>{S[V].swiperLoopMoveDOM=!0,M.prepend(S[V]),S[V].swiperLoopMoveDOM=!1}),se&&G.forEach(V=>{S[V].swiperLoopMoveDOM=!0,M.append(S[V]),S[V].swiperLoopMoveDOM=!1}),y.recalcSlides(),O.slidesPerView==="auto"?y.updateSlides():Y&&(K.length>0&&ue||G.length>0&&se)&&y.slides.forEach((V,J)=>{y.grid.updateSlide(J,V,y.slides)}),O.watchSlidesProgress&&y.updateSlidesOffset(),n){if(K.length>0&&ue){if(typeof t>"u"){const V=y.slidesGrid[ie],oe=y.slidesGrid[ie+he]-V;p?y.setTranslate(y.translate-oe):(y.slideTo(ie+Math.ceil(he),0,!1,!0),i&&(y.touchEventsData.startTranslate=y.touchEventsData.startTranslate-oe,y.touchEventsData.currentTranslate=y.touchEventsData.currentTranslate-oe))}else if(i){const V=Y?K.length/O.grid.rows:K.length;y.slideTo(y.activeIndex+V,0,!1,!0),y.touchEventsData.currentTranslate=y.translate}}else if(G.length>0&&se)if(typeof t>"u"){const V=y.slidesGrid[ie],oe=y.slidesGrid[ie-ve]-V;p?y.setTranslate(y.translate-oe):(y.slideTo(ie-ve,0,!1,!0),i&&(y.touchEventsData.startTranslate=y.touchEventsData.startTranslate-oe,y.touchEventsData.currentTranslate=y.touchEventsData.currentTranslate-oe))}else{const V=Y?G.length/O.grid.rows:G.length;y.slideTo(y.activeIndex-V,0,!1,!0)}}if(y.allowSlidePrev=w,y.allowSlideNext=C,y.controller&&y.controller.control&&!u){const V={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(y.controller.control)?y.controller.control.forEach(J=>{!J.destroyed&&J.params.loop&&J.loopFix({...V,slideTo:J.params.slidesPerView===O.slidesPerView?n:!1})}):y.controller.control instanceof y.constructor&&y.controller.control.params.loop&&y.controller.control.loopFix({...V,slideTo:y.controller.control.params.slidesPerView===O.slidesPerView?n:!1})}y.emit("loopFix")}function aR(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const o=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[o]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var lR={loopCreate:iR,loopFix:oR,loopDestroy:aR};function sR(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function cR(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var uR={setGrabCursor:sR,unsetGrabCursor:cR};function dR(e,t){t===void 0&&(t=this);function n(r){if(!r||r===Rc()||r===Ao())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function py(e,t,n){const r=Ao(),{params:i}=e,o=i.edgeSwipeDetection,l=i.edgeSwipeThreshold;return o&&(n<=l||n>=r.innerWidth-l)?o==="prevent"?(t.preventDefault(),!0):!1:!0}function fR(e){const t=this,n=Rc();let r=e;r.originalEvent&&(r=r.originalEvent);const i=t.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){py(t,r,r.targetTouches[0].pageX);return}const{params:o,touches:l,enabled:u}=t;if(!u||!o.simulateTouch&&r.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let p=r.target;if(o.touchEventsTarget==="wrapper"&&!h1(p,t.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const y=!!o.noSwipingClass&&o.noSwipingClass!=="",S=r.composedPath?r.composedPath():r.path;y&&r.target&&r.target.shadowRoot&&S&&(p=S[0]);const w=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,C=!!(r.target&&r.target.shadowRoot);if(o.noSwiping&&(C?dR(w,p):p.closest(w))){t.allowClick=!0;return}if(o.swipeHandler&&!p.closest(o.swipeHandler))return;l.currentX=r.pageX,l.currentY=r.pageY;const M=l.currentX,O=l.currentY;if(!py(t,r,M))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=M,l.startY=O,i.touchStartTime=Gs(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let k=!0;p.matches(i.focusableElements)&&(k=!1,p.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==p&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!p.matches(i.focusableElements))&&n.activeElement.blur();const W=k&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||W)&&!p.isContentEditable&&r.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function hR(e){const t=Rc(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:l,enabled:u}=n;if(!u||!i.simulateTouch&&e.pointerType==="mouse")return;let p=e;if(p.originalEvent&&(p=p.originalEvent),p.type==="pointermove"&&(r.touchId!==null||p.pointerId!==r.pointerId))return;let y;if(p.type==="touchmove"){if(y=[...p.changedTouches].find(K=>K.identifier===r.touchId),!y||y.identifier!==r.touchId)return}else y=p;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",p);return}const S=y.pageX,w=y.pageY;if(p.preventedByNestedSwiper){o.startX=S,o.startY=w;return}if(!n.allowTouchMove){p.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:S,startY:w,currentX:S,currentY:w}),r.touchStartTime=Gs());return}if(i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(w<o.startY&&n.translate<=n.maxTranslate()||w>o.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else{if(l&&(S>o.startX&&-n.translate<=n.maxTranslate()||S<o.startX&&-n.translate>=n.minTranslate()))return;if(!l&&(S<o.startX&&n.translate<=n.maxTranslate()||S>o.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==p.target&&p.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&p.target===t.activeElement&&p.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",p),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=S,o.currentY=w;const C=o.currentX-o.startX,M=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(C**2+M**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let K;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:C*C+M*M>=25&&(K=Math.atan2(Math.abs(M),Math.abs(C))*180/Math.PI,r.isScrolling=n.isHorizontal()?K>i.touchAngle:90-K>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",p),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||p.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&p.cancelable&&p.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&p.stopPropagation();let O=n.isHorizontal()?C:M,k=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(O=Math.abs(O)*(l?1:-1),k=Math.abs(k)*(l?1:-1)),o.diff=O,O*=i.touchRatio,l&&(O=-O,k=-k);const W=n.touchesDirection;n.swipeDirection=O>0?"prev":"next",n.touchesDirection=k>0?"prev":"next";const H=n.params.loop&&!i.cssMode,B=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(H&&B&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const K=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(K)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",p)}if(new Date().getTime(),i._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&W!==n.touchesDirection&&H&&B&&Math.abs(O)>=1){Object.assign(o,{startX:S,startY:w,currentX:S,currentY:w,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",p),r.isMoved=!0,r.currentTranslate=O+r.startTranslate;let I=!0,Y=i.resistanceRatio;if(i.touchReleaseOnEdges&&(Y=0),O>0?(H&&B&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(I=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+O)**Y))):O<0&&(H&&B&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(I=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-O)**Y))),I&&(p.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(O)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function gR(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].find(K=>K.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:l,touches:u,rtlTranslate:p,slidesGrid:y,enabled:S}=t;if(!S||!l.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&l.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}l.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const w=Gs(),C=w-n.touchStartTime;if(t.allowClick){const K=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(K&&K[0]||r.target,K),t.emit("tap click",r),C<300&&w-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Gs(),hg(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||u.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let M;if(l.followFinger?M=p?t.translate:-t.translate:M=-n.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:M});return}const O=M>=-t.maxTranslate()&&!t.params.loop;let k=0,W=t.slidesSizesGrid[0];for(let K=0;K<y.length;K+=K<l.slidesPerGroupSkip?1:l.slidesPerGroup){const G=K<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;typeof y[K+G]<"u"?(O||M>=y[K]&&M<y[K+G])&&(k=K,W=y[K+G]-y[K]):(O||M>=y[K])&&(k=K,W=y[y.length-1]-y[y.length-2])}let H=null,B=null;l.rewind&&(t.isBeginning?B=l.virtual&&l.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(H=0));const I=(M-y[k])/W,Y=k<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;if(C>l.longSwipesMs){if(!l.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(I>=l.longSwipesRatio?t.slideTo(l.rewind&&t.isEnd?H:k+Y):t.slideTo(k)),t.swipeDirection==="prev"&&(I>1-l.longSwipesRatio?t.slideTo(k+Y):B!==null&&I<0&&Math.abs(I)>l.longSwipesRatio?t.slideTo(B):t.slideTo(k))}else{if(!l.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(k+Y):t.slideTo(k):(t.swipeDirection==="next"&&t.slideTo(H!==null?H:k+Y),t.swipeDirection==="prev"&&t.slideTo(B!==null?B:k))}}function vy(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const u=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!u?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function pR(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function vR(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function bR(e){const t=this;mg(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function mR(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const by=(e,t)=>{const n=Rc(),{params:r,el:i,wrapperEl:o,device:l}=e,u=!!r.nested,p=t==="on"?"addEventListener":"removeEventListener",y=t;!i||typeof i=="string"||(n[p]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:u}),i[p]("touchstart",e.onTouchStart,{passive:!1}),i[p]("pointerdown",e.onTouchStart,{passive:!1}),n[p]("touchmove",e.onTouchMove,{passive:!1,capture:u}),n[p]("pointermove",e.onTouchMove,{passive:!1,capture:u}),n[p]("touchend",e.onTouchEnd,{passive:!0}),n[p]("pointerup",e.onTouchEnd,{passive:!0}),n[p]("pointercancel",e.onTouchEnd,{passive:!0}),n[p]("touchcancel",e.onTouchEnd,{passive:!0}),n[p]("pointerout",e.onTouchEnd,{passive:!0}),n[p]("pointerleave",e.onTouchEnd,{passive:!0}),n[p]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[p]("click",e.onClick,!0),r.cssMode&&o[p]("scroll",e.onScroll),r.updateOnWindowResize?e[y](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",vy,!0):e[y]("observerUpdate",vy,!0),i[p]("load",e.onLoad,{capture:!0}))};function yR(){const e=this,{params:t}=e;e.onTouchStart=fR.bind(e),e.onTouchMove=hR.bind(e),e.onTouchEnd=gR.bind(e),e.onDocumentTouchStart=mR.bind(e),t.cssMode&&(e.onScroll=vR.bind(e)),e.onClick=pR.bind(e),e.onLoad=bR.bind(e),by(e,"on")}function wR(){by(this,"off")}var xR={attachEvents:yR,detachEvents:wR};const my=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function SR(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const l=Rc(),u=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",p=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:l.querySelector(r.breakpointsBase),y=e.getBreakpoint(o,u,p);if(!y||e.currentBreakpoint===y)return;const w=(y in o?o[y]:void 0)||e.originalParams,C=my(e,r),M=my(e,w),O=e.params.grabCursor,k=w.grabCursor,W=r.enabled;C&&!M?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!C&&M&&(i.classList.add(`${r.containerModifierClass}grid`),(w.grid.fill&&w.grid.fill==="column"||!w.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),O&&!k?e.unsetGrabCursor():!O&&k&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(G=>{if(typeof w[G]>"u")return;const ne=r[G]&&r[G].enabled,$=w[G]&&w[G].enabled;ne&&!$&&e[G].disable(),!ne&&$&&e[G].enable()});const H=w.direction&&w.direction!==r.direction,B=r.loop&&(w.slidesPerView!==r.slidesPerView||H),I=r.loop;H&&n&&e.changeDirection(),rs(e.params,w);const Y=e.params.enabled,K=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),W&&!Y?e.disable():!W&&Y&&e.enable(),e.currentBreakpoint=y,e.emit("_beforeBreakpoint",w),n&&(B?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!I&&K?(e.loopCreate(t),e.updateSlides()):I&&!K&&e.loopDestroy()),e.emit("breakpoint",w)}function ER(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const i=Ao(),o=t==="window"?i.innerHeight:n.clientHeight,l=Object.keys(e).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const p=parseFloat(u.substr(1));return{value:o*p,point:u}}return{value:u,point:u}});l.sort((u,p)=>parseInt(u.value,10)-parseInt(p.value,10));for(let u=0;u<l.length;u+=1){const{point:p,value:y}=l[u];t==="window"?i.matchMedia(`(min-width: ${y}px)`).matches&&(r=p):y<=n.clientWidth&&(r=p)}return r||"max"}var CR={setBreakpoint:SR,getBreakpoint:ER};function TR(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function kR(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,l=TR(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...l),i.classList.add(...t),e.emitContainerClasses()}function RR(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var MR={addClasses:kR,removeClasses:RR};function _R(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var PR={checkOverflow:_R},Hp={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function OR(e,t){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){rs(t,r);return}if(e[i]===!0&&(e[i]={enabled:!0}),i==="navigation"&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),!(i in e&&"enabled"in o)){rs(t,r);return}typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),rs(t,r)}}const Wp={eventsEmitter:M1,update:z1,translate:V1,transition:K1,slide:rR,loop:lR,grabCursor:uR,events:xR,breakpoints:CR,checkOverflow:PR,classes:MR},Up={};let Gp=class Pd{constructor(){let t,n;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];i.length===1&&i[0].constructor&&Object.prototype.toString.call(i[0]).slice(8,-1)==="Object"?n=i[0]:[t,n]=i,n||(n={}),n=rs({},n),t&&!n.el&&(n.el=t);const l=Rc();if(n.el&&typeof n.el=="string"&&l.querySelectorAll(n.el).length>1){const S=[];return l.querySelectorAll(n.el).forEach(w=>{const C=rs({},n,{el:w});S.push(new Pd(C))}),S}const u=this;u.__swiper__=!0,u.support=uy(),u.device=dy({userAgent:n.userAgent}),u.browser=fy(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],n.modules&&Array.isArray(n.modules)&&u.modules.push(...n.modules);const p={};u.modules.forEach(S=>{S({params:n,swiper:u,extendParams:OR(n,p),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})});const y=rs({},Hp,p);return u.params=rs({},y,Up,n),u.originalParams=rs({},u.params),u.passedParams=rs({},n),u.params&&u.params.on&&Object.keys(u.params.on).forEach(S=>{u.on(S,u.params.on[S])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return u.params.direction==="horizontal"},isVertical(){return u.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:u.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=xu(n,`.${r.slideClass}, swiper-slide`),o=Ph(i[0]);return Ph(t)-o}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=xu(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),l=(r.maxTranslate()-i)*t+i;r.translateTo(l,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:o,slidesGrid:l,slidesSizesGrid:u,size:p,activeIndex:y}=r;let S=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let w=o[y]?Math.ceil(o[y].swiperSlideSize):0,C;for(let M=y+1;M<o.length;M+=1)o[M]&&!C&&(w+=Math.ceil(o[M].swiperSlideSize),S+=1,w>p&&(C=!0));for(let M=y-1;M>=0;M-=1)o[M]&&!C&&(w+=o[M].swiperSlideSize,S+=1,w>p&&(C=!0))}else if(t==="current")for(let w=y+1;w<o.length;w+=1)(n?l[w]+u[w]-l[y]<p:l[w]-l[y]<p)&&(S+=1);else for(let w=y-1;w>=0;w-=1)l[y]-l[w]<p&&(S+=1);return S}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&mg(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const l=t.rtlTranslate?t.translate*-1:t.translate,u=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}let o;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const l=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;o=t.slideTo(l.length-1,0,!1,!0)}else o=t.slideTo(t.activeIndex,0,!1,!0);o||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):xu(r,i())[0];return!l&&n.params.createElements&&(l=_h("div",n.params.wrapperClass),r.append(l),xu(r,`.${n.params.slideClass}`).forEach(u=>{l.append(u)})),Object.assign(n,{el:r,wrapperEl:l,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:l,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Ld(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Ld(r,"direction")==="rtl"),wrongRTL:Ld(l,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(o=>{o.complete?mg(n,o):o.addEventListener("load",l=>{mg(n,l.target)})}),zp(n),n.initialized=!0,zp(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:i,el:o,wrapperEl:l,slides:u}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),l&&l.removeAttribute("style"),u&&u.length&&u.forEach(p=>{p.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),p.removeAttribute("style"),p.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(p=>{r.off(p)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),s1(r)),r.destroyed=!0),null}static extendDefaults(t){rs(Up,t)}static get extendedDefaults(){return Up}static get defaults(){return Hp}static installModule(t){Pd.prototype.__modules__||(Pd.prototype.__modules__=[]);const n=Pd.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Pd.installModule(n)),Pd):(Pd.installModule(t),Pd)}};Object.keys(Wp).forEach(e=>{Object.keys(Wp[e]).forEach(t=>{Gp.prototype[t]=Wp[e][t]})}),Gp.use([k1,R1]);const yy=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function gf(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Hf(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:gf(t[r])&&gf(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Hf(e[r],t[r]):e[r]=t[r]})}function wy(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function xy(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function Sy(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function Ey(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function AR(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function IR(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:o,prevEl:l,scrollbarEl:u,paginationEl:p}=e;const y=i.filter(ie=>ie!=="children"&&ie!=="direction"&&ie!=="wrapperClass"),{params:S,pagination:w,navigation:C,scrollbar:M,virtual:O,thumbs:k}=t;let W,H,B,I,Y,K,G,ne;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&S.thumbs&&(!S.thumbs.swiper||S.thumbs.swiper.destroyed)&&(W=!0),i.includes("controller")&&r.controller&&r.controller.control&&S.controller&&!S.controller.control&&(H=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||p)&&(S.pagination||S.pagination===!1)&&w&&!w.el&&(B=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||u)&&(S.scrollbar||S.scrollbar===!1)&&M&&!M.el&&(I=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||l)&&(r.navigation.nextEl||o)&&(S.navigation||S.navigation===!1)&&C&&!C.prevEl&&!C.nextEl&&(Y=!0);const $=ie=>{t[ie]&&(t[ie].destroy(),ie==="navigation"?(t.isElement&&(t[ie].prevEl.remove(),t[ie].nextEl.remove()),S[ie].prevEl=void 0,S[ie].nextEl=void 0,t[ie].prevEl=void 0,t[ie].nextEl=void 0):(t.isElement&&t[ie].el.remove(),S[ie].el=void 0,t[ie].el=void 0))};i.includes("loop")&&t.isElement&&(S.loop&&!r.loop?K=!0:!S.loop&&r.loop?G=!0:ne=!0),y.forEach(ie=>{if(gf(S[ie])&&gf(r[ie]))Object.assign(S[ie],r[ie]),(ie==="navigation"||ie==="pagination"||ie==="scrollbar")&&"enabled"in r[ie]&&!r[ie].enabled&&$(ie);else{const se=r[ie];(se===!0||se===!1)&&(ie==="navigation"||ie==="pagination"||ie==="scrollbar")?se===!1&&$(ie):S[ie]=r[ie]}}),y.includes("controller")&&!H&&t.controller&&t.controller.control&&S.controller&&S.controller.control&&(t.controller.control=S.controller.control),i.includes("children")&&n&&O&&S.virtual.enabled?(O.slides=n,O.update(!0)):i.includes("virtual")&&O&&S.virtual.enabled&&(n&&(O.slides=n),O.update(!0)),i.includes("children")&&n&&S.loop&&(ne=!0),W&&k.init()&&k.update(!0),H&&(t.controller.control=S.controller.control),B&&(t.isElement&&(!p||typeof p=="string")&&(p=document.createElement("div"),p.classList.add("swiper-pagination"),p.part.add("pagination"),t.el.appendChild(p)),p&&(S.pagination.el=p),w.init(),w.render(),w.update()),I&&(t.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-scrollbar"),u.part.add("scrollbar"),t.el.appendChild(u)),u&&(S.scrollbar.el=u),M.init(),M.updateSize(),M.setTranslate()),Y&&(t.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),Oh(o,t.hostEl.constructor.nextButtonSvg),o.part.add("button-next"),t.el.appendChild(o)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),Oh(l,t.hostEl.constructor.prevButtonSvg),l.part.add("button-prev"),t.el.appendChild(l))),o&&(S.navigation.nextEl=o),l&&(S.navigation.prevEl=l),C.init(),C.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&t.changeDirection(r.direction,!1),(K||ne)&&t.loopDestroy(),(G||ne)&&t.loopCreate(),t.update()}function NR(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},i={};Hf(n,Hp),n._emitClasses=!0,n.init=!1;const o={},l=yy.map(p=>p.replace(/_/,"")),u=Object.assign({},e);return Object.keys(u).forEach(p=>{typeof e[p]>"u"||(l.indexOf(p)>=0?gf(e[p])?(n[p]={},i[p]={},Hf(n[p],e[p]),Hf(i[p],e[p])):(n[p]=e[p],i[p]=e[p]):p.search(/on[A-Z]/)===0&&typeof e[p]=="function"?t?r[`${p[2].toLowerCase()}${p.substr(3)}`]=e[p]:n.on[`${p[2].toLowerCase()}${p.substr(3)}`]=e[p]:o[p]=e[p])}),["navigation","pagination","scrollbar"].forEach(p=>{n[p]===!0&&(n[p]={}),n[p]===!1&&delete n[p]}),{params:n,passedParams:i,rest:o,events:r}}function FR(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:o,scrollbarEl:l,swiper:u}=e;wy(t)&&r&&i&&(u.params.navigation.nextEl=r,u.originalParams.navigation.nextEl=r,u.params.navigation.prevEl=i,u.originalParams.navigation.prevEl=i),xy(t)&&o&&(u.params.pagination.el=o,u.originalParams.pagination.el=o),Sy(t)&&l&&(u.params.scrollbar.el=l,u.originalParams.scrollbar.el=l),u.init(n)}function DR(e,t,n,r,i){const o=[];if(!t)return o;const l=p=>{o.indexOf(p)<0&&o.push(p)};if(n&&r){const p=r.map(i),y=n.map(i);p.join("")!==y.join("")&&l("children"),r.length!==n.length&&l("children")}return yy.filter(p=>p[0]==="_").map(p=>p.replace(/_/,"")).forEach(p=>{if(p in e&&p in t)if(gf(e[p])&&gf(t[p])){const y=Object.keys(e[p]),S=Object.keys(t[p]);y.length!==S.length?l(p):(y.forEach(w=>{e[p][w]!==t[p][w]&&l(p)}),S.forEach(w=>{e[p][w]!==t[p][w]&&l(p)}))}else e[p]!==t[p]&&l(p)}),o}const LR=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yg.apply(this,arguments)}function Cy(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Ty(e){const t=[];return fe.Children.toArray(e).forEach(n=>{Cy(n)?t.push(n):n.props&&n.props.children&&Ty(n.props.children).forEach(r=>t.push(r))}),t}function BR(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return fe.Children.toArray(e).forEach(r=>{if(Cy(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=Ty(r.props.children);i.length>0?i.forEach(o=>t.push(o)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function zR(e,t,n){if(!n)return null;const r=S=>{let w=S;return S<0?w=t.length+S:w>=t.length&&(w=w-t.length),w},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:l}=n,u=e.params.loop?-t.length:0,p=e.params.loop?t.length*2:t.length,y=[];for(let S=u;S<p;S+=1)S>=o&&S<=l&&y.push(t[r(S)]);return y.map((S,w)=>fe.cloneElement(S,{swiper:e,style:i,key:S.props.virtualIndex||S.key||`slide-${w}`}))}function Ah(e,t){return typeof window>"u"?fe.useEffect(e,t):fe.useLayoutEffect(e,t)}const ky=fe.createContext(null),HR=fe.createContext(null),Ry=fe.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:o,onSwiper:l,...u}=e===void 0?{}:e,p=!1;const[y,S]=fe.useState("swiper"),[w,C]=fe.useState(null),[M,O]=fe.useState(!1),k=fe.useRef(!1),W=fe.useRef(null),H=fe.useRef(null),B=fe.useRef(null),I=fe.useRef(null),Y=fe.useRef(null),K=fe.useRef(null),G=fe.useRef(null),ne=fe.useRef(null),{params:$,passedParams:ie,rest:se,events:ue}=NR(u),{slides:he,slots:ve}=BR(o),ae=()=>{O(!M)};Object.assign($.on,{_containerClasses(xe,ee){S(ee)}});const me=()=>{Object.assign($.on,ue),p=!0;const xe={...$};if(delete xe.wrapperClass,H.current=new Gp(xe),H.current.virtual&&H.current.params.virtual.enabled){H.current.virtual.slides=he;const ee={cache:!1,slides:he,renderExternal:C,renderExternalUpdate:!1};Hf(H.current.params.virtual,ee),Hf(H.current.originalParams.virtual,ee)}};W.current||me(),H.current&&H.current.on("_beforeBreakpoint",ae);const V=()=>{p||!ue||!H.current||Object.keys(ue).forEach(xe=>{H.current.on(xe,ue[xe])})},J=()=>{!ue||!H.current||Object.keys(ue).forEach(xe=>{H.current.off(xe,ue[xe])})};fe.useEffect(()=>()=>{H.current&&H.current.off("_beforeBreakpoint",ae)}),fe.useEffect(()=>{!k.current&&H.current&&(H.current.emitSlidesClasses(),k.current=!0)}),Ah(()=>{if(t&&(t.current=W.current),!!W.current)return H.current.destroyed&&me(),FR({el:W.current,nextEl:Y.current,prevEl:K.current,paginationEl:G.current,scrollbarEl:ne.current,swiper:H.current},$),l&&!H.current.destroyed&&l(H.current),()=>{H.current&&!H.current.destroyed&&H.current.destroy(!0,!1)}},[]),Ah(()=>{V();const xe=DR(ie,B.current,he,I.current,ee=>ee.key);return B.current=ie,I.current=he,xe.length&&H.current&&!H.current.destroyed&&IR({swiper:H.current,slides:he,passedParams:ie,changedParams:xe,nextEl:Y.current,prevEl:K.current,scrollbarEl:ne.current,paginationEl:G.current}),()=>{J()}}),Ah(()=>{LR(H.current)},[w]);function oe(){return $.virtual?zR(H.current,he,w):he.map((xe,ee)=>fe.cloneElement(xe,{swiper:H.current,swiperSlideIndex:ee}))}return fe.createElement(r,yg({ref:W,className:Ey(`${y}${n?` ${n}`:""}`)},se),fe.createElement(HR.Provider,{value:H.current},ve["container-start"],fe.createElement(i,{className:AR($.wrapperClass)},ve["wrapper-start"],oe(),ve["wrapper-end"]),wy($)&&fe.createElement(fe.Fragment,null,fe.createElement("div",{ref:K,className:"swiper-button-prev"}),fe.createElement("div",{ref:Y,className:"swiper-button-next"})),Sy($)&&fe.createElement("div",{ref:ne,className:"swiper-scrollbar"}),xy($)&&fe.createElement("div",{ref:G,className:"swiper-pagination"}),ve["container-end"]))});Ry.displayName="Swiper";const My=fe.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:o,zoom:l,lazy:u,virtualIndex:p,swiperSlideIndex:y,...S}=e===void 0?{}:e;const w=fe.useRef(null),[C,M]=fe.useState("swiper-slide"),[O,k]=fe.useState(!1);function W(Y,K,G){K===w.current&&M(G)}Ah(()=>{if(typeof y<"u"&&(w.current.swiperSlideIndex=y),t&&(t.current=w.current),!(!w.current||!o)){if(o.destroyed){C!=="swiper-slide"&&M("swiper-slide");return}return o.on("_slideClass",W),()=>{o&&o.off("_slideClass",W)}}}),Ah(()=>{o&&w.current&&!o.destroyed&&M(o.getSlideClasses(w.current))},[o]);const H={isActive:C.indexOf("swiper-slide-active")>=0,isVisible:C.indexOf("swiper-slide-visible")>=0,isPrev:C.indexOf("swiper-slide-prev")>=0,isNext:C.indexOf("swiper-slide-next")>=0},B=()=>typeof r=="function"?r(H):r,I=()=>{k(!0)};return fe.createElement(n,yg({ref:w,className:Ey(`${C}${i?` ${i}`:""}`),"data-swiper-slide-index":p,onLoad:I},S),l&&fe.createElement(ky.Provider,{value:H},fe.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},B(),u&&!O&&fe.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&fe.createElement(ky.Provider,{value:H},B(),u&&!O&&fe.createElement("div",{className:"swiper-lazy-preloader"})))});My.displayName="SwiperSlide";const WR=({slides:e,children:t,className:n,slidesPerView:r=1,spaceBetween:i=16,isLoopEnabled:o=!1,isPaginationVisible:l=!0,isNavigationVisible:u,isNavigationEnabled:p,isArrowsVisible:y=!0,isMousewheelEnabled:S=!0,isKeyboardEnabled:w=!0,isGrabCursorVisible:C=!0,isFreeScrollEnabled:M=!0,activeSlideIndex:O,onSlideChange:k,style:W,...H})=>{const B=L.useMemo(()=>e??L.Children.toArray(t),[e,t]),I=B.length,K=(p??u??!0)&&y,G=r==="auto",ne=o&&I>1,$=ne&&!M&&!G,ie=ne&&!$,se=I<=1,ue=L.useRef(null),he=L.useRef(0),ve={position:"absolute",top:"50%",zIndex:20,display:"flex",height:56,width:32,transform:"translateY(-50%)",alignItems:"center",justifyContent:"center",borderRadius:6,border:"1px solid rgba(148, 163, 184, 0.45)",background:"rgba(15, 23, 42, 0.72)",color:"inherit",backdropFilter:"blur(4px)",cursor:"pointer",transition:"background-color 200ms ease, opacity 200ms ease"},ae={cursor:"not-allowed",opacity:.35},me=ee=>{k==null||k(ee.realIndex)},V=ee=>{const Q=ee.deltaX,Ce=ee.deltaY;if(!(Math.abs(Q)>4&&Math.abs(Q)>Math.abs(Ce)*1.1)||(ee.cancelable&&ee.preventDefault(),!S||M))return;const We=ue.current;if(!We||I<=1)return;const Oe=Date.now();Oe-he.current<240||(he.current=Oe,Q>0?We.slideNext():We.slidePrev())};L.useEffect(()=>{if(typeof O!="number")return;const ee=ue.current;if(!ee||I<=0)return;const Q=Math.max(0,Math.min(O,I-1));ee.realIndex!==Q&&($?ee.slideToLoop(Q):ee.slideTo(Q))},[O,$,I]);const J=()=>{var ee;se||(ee=ue.current)==null||ee.slidePrev()},oe=()=>{var ee;se||(ee=ue.current)==null||ee.slideNext()},xe=(ee,Q)=>{ee.key!=="Enter"&&ee.key!==" "||(ee.preventDefault(),Q())};return D.jsxs("div",{className:Ze("relative w-full min-w-0 max-w-full",n),style:{...W,overscrollBehaviorX:"contain"},onWheelCapture:V,...H,children:[D.jsx(Ry,{modules:[x1,S1,b1,m1,w1],slidesPerView:r,spaceBetween:i,loop:$,rewind:ie,loopAdditionalSlides:$?I:void 0,watchSlidesProgress:$,pagination:l?{clickable:!0}:!1,keyboard:w?{enabled:!0}:!1,freeMode:M?{enabled:!0,sticky:!1,momentum:!0,momentumBounce:!0}:!1,mousewheel:S?{enabled:!0,forceToAxis:!0,releaseOnEdges:!$,sensitivity:.9}:!1,allowTouchMove:!0,grabCursor:C,simulateTouch:!0,touchEventsTarget:"container",touchStartPreventDefault:!1,touchMoveStopPropagation:!1,className:Ze("w-full min-w-0 max-w-full [--swiper-theme-color:var(--chart-1)]","[&_.swiper-pagination-bullet]:bg-(--chart-1)","[&_.swiper-pagination-bullet]:opacity-45","[&_.swiper-pagination-bullet-active]:bg-(--chart-1)","[&_.swiper-pagination-bullet-active]:opacity-100",C&&"cursor-grab active:cursor-grabbing"),onSwiper:ee=>{ue.current=ee},onSlideChange:me,children:B.map((ee,Q)=>D.jsx(My,{className:Ze("h-auto",G&&"!w-auto"),children:ee},Q))}),K?D.jsxs(D.Fragment,{children:[D.jsx("div",{role:"button","aria-label":"Previous slide","aria-disabled":se,tabIndex:se?-1:0,onClick:J,onKeyDown:ee=>xe(ee,J),style:{...ve,left:-40,...se?ae:null},className:Ze("absolute top-1/2 -left-10 z-20 flex h-14 w-8 -translate-y-1/2 items-center justify-center rounded-md border","border-border/80 bg-background/70 text-foreground backdrop-blur-sm","transition duration-200 hover:bg-background/90","disabled:cursor-not-allowed disabled:opacity-35"),children:D.jsx(ap,{className:"size-4"})}),D.jsx("div",{role:"button","aria-label":"Next slide","aria-disabled":se,tabIndex:se?-1:0,onClick:oe,onKeyDown:ee=>xe(ee,oe),style:{...ve,right:-40,...se?ae:null},className:Ze("absolute top-1/2 -right-10 z-20 flex h-14 w-8 -translate-y-1/2 items-center justify-center rounded-md border","border-border/80 bg-background/70 text-foreground backdrop-blur-sm","transition duration-200 hover:bg-background/90","disabled:cursor-not-allowed disabled:opacity-35"),children:D.jsx(jh,{className:"size-4"})})]}):null]})},_y=({coverImageSrc:e,brandName:t,heading:n,description:r,tagText:i,tags:o,isEditModeEnabled:l=!1,isEditModeDisabled:u=!1,onTagClick:p,onTagLabelChange:y})=>{const S=l&&!u,[w,C]=L.useState(e),[M,O]=L.useState(t),[k,W]=L.useState(n),[H,B]=L.useState(r),[I,Y]=L.useState(i??""),K=L.useRef(null),G=L.useRef(null);L.useEffect(()=>{C(e)},[e]),L.useEffect(()=>{O(t)},[t]),L.useEffect(()=>{W(n)},[n]),L.useEffect(()=>{B(r)},[r]),L.useEffect(()=>{Y(i??"")},[i]),L.useEffect(()=>()=>{G.current&&URL.revokeObjectURL(G.current)},[]);const ne=L.useMemo(()=>o!=null&&o.length?o:I?[{id:"primary-tag",label:I,type:"default"}]:[],[o,I]),$=L.useMemo(()=>ne.filter(he=>he.position!=="bottom-right"),[ne]),ie=L.useMemo(()=>ne.filter(he=>he.position==="bottom-right"),[ne]),se=()=>{var he;(he=K.current)==null||he.click()},ue=he=>{var me;const ve=(me=he.currentTarget.files)==null?void 0:me[0];if(!ve)return;G.current&&URL.revokeObjectURL(G.current);const ae=URL.createObjectURL(ve);G.current=ae,C(ae),he.currentTarget.value=""};return D.jsxs(cf,{type:"light",isGradientEnabled:!0,isRoundedCornersDisabled:!0,className:"relative flex h-[520px] w-full flex-col overflow-hidden border-0 p-0",children:[D.jsxs("div",{className:"relative h-[340px] w-full overflow-hidden",children:[D.jsx(dg,{src:w,alt:k,isEditModeDisabled:!S,className:"h-full w-full"}),D.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-card to-transparent"}),$.length?D.jsx("div",{className:"absolute top-3 left-3 z-10 flex max-w-[calc(100%-8rem)] flex-wrap gap-2",children:$.map(he=>D.jsx(zf,{label:he.label,type:he.type,color:he.color,textColor:he.textColor,isLoading:he.isLoading,isEditModeEnabled:S,isEditModeDisabled:!S,onLabelChange:ve=>{var ae;(ae=he.onLabelChange)==null||ae.call(he,he.id,ve),y==null||y(he.id,ve),o!=null&&o.length||Y(ve)},onClick:()=>{var ve;(ve=he.onClick)==null||ve.call(he,he.id),p==null||p(he.id)}},he.id))}):null,ie.length?D.jsx("div",{className:"absolute right-3 bottom-3 z-10 flex max-w-[calc(100%-2rem)] flex-wrap justify-end gap-2",children:ie.map(he=>D.jsx(zf,{label:he.label,type:he.type,color:he.color,textColor:he.textColor,isLoading:he.isLoading,isEditModeEnabled:S,isEditModeDisabled:!S,onLabelChange:ve=>{var ae;(ae=he.onLabelChange)==null||ae.call(he,he.id,ve),y==null||y(he.id,ve)},onClick:()=>{var ve;(ve=he.onClick)==null||ve.call(he,he.id),p==null||p(he.id)}},he.id))}):null,S?D.jsxs(D.Fragment,{children:[D.jsx("input",{ref:K,type:"file",accept:"image/*",className:"hidden",onChange:ue}),D.jsx("button",{type:"button",onClick:se,className:"absolute top-3 right-3 rounded-md bg-background/85 px-3 py-1.5 text-xs font-medium text-foreground shadow-md backdrop-blur",children:"Upload image"})]}):null]}),D.jsxs("div",{className:"flex flex-1 flex-col gap-2 p-4",children:[S?D.jsx(mi,{value:M,onValueChange:O,typography:"CompactCaption",contentClassName:"font-semibold uppercase tracking-wide",className:"!h-auto"}):D.jsx(Ni,{typography:"CompactCaption",element:"p",className:"font-semibold uppercase tracking-wide",children:M}),S?D.jsx(mi,{value:k,onValueChange:W,typography:"SectionHeader",className:"!h-auto"}):D.jsx(Ni,{typography:"SectionHeader",element:"h3",className:"overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]",children:k}),S?D.jsx(mi,{value:H,onValueChange:B,typography:"BodySmall",className:"!h-auto"}):D.jsx(Ni,{typography:"BodySmall",element:"p",color:"muted-foreground",className:Ze("overflow-hidden [display:-webkit-box] [-webkit-line-clamp:3] [-webkit-box-orient:vertical]"),children:H})]})]})},Py=({coverImageSrc:e,brandName:t,heading:n,viewsText:r,tagText:i,isEditModeEnabled:o=!1,isEditModeDisabled:l=!1})=>{const u=o&&!l,[p,y]=L.useState(e),[S,w]=L.useState(t),[C,M]=L.useState(n),[O,k]=L.useState(r),[W,H]=L.useState(i??""),B=L.useRef(null),I=L.useRef(null);L.useEffect(()=>{y(e)},[e]),L.useEffect(()=>{w(t)},[t]),L.useEffect(()=>{M(n)},[n]),L.useEffect(()=>{k(r)},[r]),L.useEffect(()=>{H(i??"")},[i]),L.useEffect(()=>()=>{I.current&&URL.revokeObjectURL(I.current)},[]);const Y=()=>{var G;(G=B.current)==null||G.click()},K=G=>{var ie;const ne=(ie=G.currentTarget.files)==null?void 0:ie[0];if(!ne)return;I.current&&URL.revokeObjectURL(I.current);const $=URL.createObjectURL(ne);I.current=$,y($),G.currentTarget.value=""};return D.jsxs(cf,{type:"light",isGradientEnabled:!0,isRoundedCornersDisabled:!0,className:"relative flex h-[360px] w-full flex-col gap-3 border-0 p-2",children:[D.jsxs("div",{className:"relative h-[220px] w-full overflow-hidden rounded-lg",children:[D.jsx(dg,{src:p,alt:C,isEditModeDisabled:!u,className:"h-full w-full"}),W?D.jsx(zf,{label:W,type:"default",className:"absolute top-2 left-2",isEditModeEnabled:u,isEditModeDisabled:!u,onLabelChange:H}):null,u?D.jsxs(D.Fragment,{children:[D.jsx("input",{ref:B,type:"file",accept:"image/*",className:"hidden",onChange:K}),D.jsx("button",{type:"button",onClick:Y,className:"absolute top-2 right-2 rounded-md bg-background/85 px-3 py-1.5 text-xs font-medium text-foreground shadow-md backdrop-blur",children:"Upload image"})]}):null]}),D.jsxs("div",{className:"flex flex-col gap-1 px-1 pb-1",children:[u?D.jsx(mi,{value:S,onValueChange:w,typography:"Action",isEditModeDisabled:!u,className:"!h-auto"}):D.jsx(Ni,{typography:"Action",element:"p",className:"font-semibold uppercase tracking-wide",children:S}),u?D.jsx(mi,{value:C,onValueChange:M,typography:"SectionHeader",isEditModeDisabled:!u,className:"!h-auto"}):D.jsx(Ni,{typography:"SectionHeader",element:"h3",className:"overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]",children:C}),u?D.jsx(mi,{value:O,onValueChange:k,typography:"BodySmall",isEditModeDisabled:!u,className:"!h-auto pt-1"}):D.jsx(Ni,{typography:"BodySmall",element:"p",color:"muted-foreground",className:"pt-1",children:O})]})]})},Mc=e=>typeof e=="string"||typeof e=="number"?String(e):"",Oy=({className:e,isSetModeEnabled:t=!1,isEditModeEnabled:n=!1,isEditModeDisabled:r=!1,setModelEnabled:i,coverImageSrc:o,coverImageAlt:l="Slide cover image",isImageLoading:u,imageProps:p,imageAccept:y="image/*",onImageChange:S,brandName:w,brandIcon:C,heading:M,accentText:O,description:k,priceText:W,tagText:H,tagType:B="default",tagColor:I,tagTextColor:Y,tags:K,onTagClick:G,onTagLabelChange:ne,badgeText:$,...ie})=>{const se=(n||t||!!i)&&!r,{isEditModeDisabled:ue,isLoading:he,...ve}=p??{},ae=u??he??!1,me=ue??!se,V=H??Mc($),J=L.useMemo(()=>K!=null&&K.length?K:V?[{id:"primary-tag",label:V,type:B,color:I,textColor:Y}]:[],[K,V,B,I,Y]),oe=L.useMemo(()=>J.filter(tt=>tt.position!=="bottom-right"),[J]),xe=L.useMemo(()=>J.filter(tt=>tt.position==="bottom-right"),[J]),ee=L.useRef(null),Q=L.useRef(null),[Ce,Ge]=L.useState(o),[We,Oe]=L.useState(()=>Mc(w)),[rt,Fe]=L.useState(()=>Mc(M)),[Ye,Ve]=L.useState(()=>Mc(O??"")),[Ke,st]=L.useState(()=>Mc(k??"")),[gt,it]=L.useState(()=>Mc(W));L.useEffect(()=>{Ge(o)},[o]),L.useEffect(()=>{Oe(Mc(w))},[w]),L.useEffect(()=>{Fe(Mc(M))},[M]),L.useEffect(()=>{Ve(Mc(O??""))},[O]),L.useEffect(()=>{st(Mc(k??""))},[k]),L.useEffect(()=>{it(Mc(W))},[W]),L.useEffect(()=>()=>{Q.current&&URL.revokeObjectURL(Q.current)},[]);const mt=()=>{var tt;ae||(tt=ee.current)==null||tt.click()},ft=tt=>{var Wt;const Ft=(Wt=tt.currentTarget.files)==null?void 0:Wt[0];if(!Ft)return;Q.current&&URL.revokeObjectURL(Q.current);const at=URL.createObjectURL(Ft);Q.current=at,Ge(at),S==null||S({file:Ft,objectUrl:at}),tt.currentTarget.value=""};return D.jsxs("article",{className:Ze("group relative flex h-[620px] w-full flex-col overflow-hidden rounded-xl border border-border/60","bg-card text-card-foreground",e),...ie,children:[D.jsxs("div",{className:"relative h-[41%] min-h-[240px] w-full overflow-hidden",children:[D.jsx(dg,{alt:l,src:Ce,isLoading:ae,isEditModeDisabled:me,className:Ze("h-full w-full","[&>img]:transition-transform [&>img]:duration-500 group-hover:[&>img]:scale-[1.025]"),...ve}),D.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-card to-transparent"}),oe.length?D.jsx("div",{className:Ze("absolute top-4 left-4 z-10 flex flex-wrap gap-2",se?"max-w-[calc(100%-13rem)]":"max-w-[calc(100%-1rem)]"),children:oe.map(tt=>D.jsx(zf,{label:tt.label,type:tt.type,color:tt.color,textColor:tt.textColor,isLoading:tt.isLoading,isEditModeEnabled:se,isEditModeDisabled:!se,onLabelChange:Ft=>{var at;(at=tt.onLabelChange)==null||at.call(tt,tt.id,Ft),ne==null||ne(tt.id,Ft)},onClick:()=>{var Ft;(Ft=tt.onClick)==null||Ft.call(tt,tt.id),G==null||G(tt.id)},className:Ze("max-w-full",(tt.onClick||G)&&"cursor-pointer")},tt.id))}):null,xe.length?D.jsx("div",{className:"absolute right-4 bottom-4 z-10 flex max-w-[calc(100%-1rem)] flex-wrap justify-end gap-2",children:xe.map(tt=>D.jsx(zf,{label:tt.label,type:tt.type,color:tt.color,textColor:tt.textColor,isLoading:tt.isLoading,isEditModeEnabled:se,isEditModeDisabled:!se,onLabelChange:Ft=>{var at;(at=tt.onLabelChange)==null||at.call(tt,tt.id,Ft),ne==null||ne(tt.id,Ft)},onClick:()=>{var Ft;(Ft=tt.onClick)==null||Ft.call(tt,tt.id),G==null||G(tt.id)},className:Ze("max-w-full",(tt.onClick||G)&&"cursor-pointer")},tt.id))}):null,se?D.jsxs(D.Fragment,{children:[D.jsx("input",{ref:ee,type:"file",accept:y,className:"hidden",onChange:ft}),D.jsx("button",{type:"button",onClick:mt,disabled:ae,className:Ze("absolute top-4 right-4 rounded-md bg-background/85 px-3 py-1.5 text-xs font-medium text-foreground shadow-md backdrop-blur","disabled:cursor-not-allowed disabled:opacity-60","transition-opacity hover:opacity-90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--chart-1)/50"),children:"Upload image"})]}):null]}),D.jsxs(cf,{as:"section",type:"light",isGradientEnabled:!0,isRoundedCornersDisabled:!0,className:Ze("relative flex flex-1 flex-col gap-3 border-0 p-6"),children:[D.jsxs("div",{className:"inline-flex items-center gap-2 uppercase",children:[C?D.jsx("span",{className:"inline-flex size-5 items-center justify-center overflow-hidden rounded-sm",children:C}):null,se?D.jsx(mi,{value:We,onValueChange:Oe,typography:"CompactCaption",contentClassName:"font-semibold uppercase tracking-wide",className:"!h-auto"}):D.jsx(Ni,{typography:"CompactCaption",element:"span",className:"font-semibold uppercase tracking-wide",children:We})]}),se?D.jsx(mi,{value:rt,onValueChange:Fe,typography:"Heading",contentClassName:"leading-[1.08]",className:"!h-auto"}):D.jsx(Ni,{typography:"Heading",element:"h3",className:Ze("leading-[1.08]","overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]"),children:rt}),se?D.jsx(mi,{value:Ye,onValueChange:Ve,placeholder:"Accent text",typography:"Subheader",color:"chart-1",contentClassName:"font-medium",className:"!h-auto text-(--chart-1)"}):Ye?D.jsx(Ni,{typography:"Subheader",className:Ze("font-medium","overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]","text-(--chart-1)"),color:"chart-1",children:Ye}):null,se?D.jsx(mi,{value:Ke,onValueChange:st,placeholder:"Description",typography:"Subheader",className:"!h-auto"}):Ke?D.jsx(Ni,{typography:"Subheader",className:Ze("overflow-hidden [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]"),children:Ke}):null,se?D.jsx(mi,{value:gt,onValueChange:it,typography:"Heading",contentClassName:"text-5xl leading-none font-bold tracking-tight",className:"mt-auto !h-auto pt-6"}):D.jsx(Ni,{typography:"Heading",element:"p",className:"mt-auto pt-6 text-5xl leading-none font-bold tracking-tight",color:"foreground",children:gt})]})]})},Ay=e=>D.jsx(Oy,{...e}),wg=[{id:"react",coverImageSrc:"https://picsum.photos/seed/react-course/1300/780",brandName:"Frontend Track",heading:"React: от компонентов до production",accentText:"Hooks, Router, state management и архитектура UI",description:"Практический курс по разработке интерфейсов и оптимизации React-приложений.",priceText:"от 4 990 ₽",tagText:"Курс"},{id:"go",coverImageSrc:"https://picsum.photos/seed/go-course/1300/780",brandName:"Backend Track",heading:"Go: высоконагруженные backend-сервисы",accentText:"Горутины, каналы, API и тестирование",description:"Курс по построению микросервисов на Go с акцентом на производительность и надежность.",priceText:"от 5 490 ₽",tagText:"Курс"},{id:"k8s",coverImageSrc:"https://picsum.photos/seed/k8s-course/1300/780",brandName:"DevOps Track",heading:"Kubernetes: оркестрация в реальных проектах",accentText:"Deployments, ingress, autoscaling, Helm",description:"Освойте запуск, масштабирование и сопровождение контейнеризированных приложений в Kubernetes.",priceText:"от 6 990 ₽",tagText:"Курс"},{id:"redis",coverImageSrc:"https://picsum.photos/seed/redis-course/1300/780",brandName:"Data Track",heading:"Redis: кэширование, очереди и pub/sub",accentText:"TTL, eviction policies и low-latency паттерны",description:"Научитесь использовать Redis для ускорения приложений и обработки событий в реальном времени.",priceText:"от 4 490 ₽",tagText:"Курс"},{id:"postgresql",coverImageSrc:"https://picsum.photos/seed/postgres-course/1300/780",brandName:"Database Track",heading:"PostgreSQL: моделирование и оптимизация SQL",accentText:"Индексы, транзакции, explain analyze, миграции",description:"Курс по проектированию схем и ускорению запросов в PostgreSQL для продуктовых систем.",priceText:"от 5 290 ₽",tagText:"Курс"},{id:"kafka",coverImageSrc:"https://picsum.photos/seed/kafka-course/1300/780",brandName:"Streaming Track",heading:"Kafka: event-driven архитектура",accentText:"Topics, partitions, consumer groups",description:"Разберете обработку потоков данных, гарантии доставки и построение event-driven платформ.",priceText:"от 6 190 ₽",tagText:"Курс"}],UR=["MediumVerticalSlide","MediumHorizontalSlide","BigHorizontalSlide"],Iy=460,Ny=520,Fy=620,Yp=e=>({width:e,minWidth:e}),Dy=Yp(Iy),Ly=Yp(Ny),By=Yp(Fy),Vp=(e,t,n)=>e==="no-tags"?{tags:[],tagText:void 0}:e==="one-tag"?{tags:[{id:`course-${t}`,label:n,type:"default"}]}:e==="two-tags"?{tags:[{id:`course-${t}`,label:n,type:"default"},{id:`time-${t}`,label:"2:13",type:"time",position:"bottom-right"}]}:{tags:[{id:`hot-${t}`,label:"HOT",type:"default",color:"chart-1"},{id:`level-${t}`,label:"PRO",type:"time",color:"chart-3",textColor:"foreground",position:"bottom-right"}]},GR=({componentType:e,isEditModeEnabled:t=!1,isEditModeDisabled:n=!1,onTagClick:r,onTagLabelChange:i})=>{if(e==="MediumVerticalSlide"){const o=["no-tags","two-tags","one-tag","two-other-tags"];return wg.slice(0,4).map((l,u)=>{const{tags:p,tagText:y}=Vp(o[u]??"one-tag",l.id,l.tagText??"Курс");return D.jsx("div",{style:Dy,children:D.jsx(Ay,{...l,tagText:y,tags:p,isEditModeEnabled:t,isEditModeDisabled:n,onTagClick:r,onTagLabelChange:i})},l.id)})}if(e==="BigHorizontalSlide"){const o=["two-tags","one-tag","two-other-tags"];return wg.slice(0,3).map((l,u)=>{const{tags:p,tagText:y}=Vp(o[u]??"one-tag",l.id,l.tagText??"Курс");return D.jsx("div",{style:By,children:D.jsx(_y,{coverImageSrc:l.coverImageSrc,brandName:l.brandName,heading:l.heading,description:l.description,tagText:y,tags:p,isEditModeEnabled:t,isEditModeDisabled:n,onTagClick:r,onTagLabelChange:i})},`big-${l.id}`)})}return wg.slice(0,4).map(o=>D.jsx("div",{style:Ly,children:D.jsx(Py,{coverImageSrc:o.coverImageSrc,brandName:o.brandName,heading:o.heading,viewsText:"661 просмотры",tagText:o.id==="react"?"NEW":void 0,isEditModeEnabled:t,isEditModeDisabled:n})},`preview-${o.id}`))};var Xp=function(){return(Xp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Wf,Uf,Gf,xg=fe.createContext(void 0),zy="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML",Hy="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js",Wy="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js",YR=function(w){var t=w.config,n=w.version,n=n===void 0?4:n,r=w.src,r=r===void 0?n===2?zy:n===3?Hy:Wy:r,i=w.onStartup,o=w.onLoad,p=w.asyncLoad,l=p!==void 0&&p,u=w.onError,p=w.typesettingOptions,y=w.renderMode,y=y===void 0?"post":y,S=w.hideUntilTypeset,w=w.children,M=fe.useContext(xg);if((M==null?void 0:M.version)!==void 0&&(M==null?void 0:M.version)!==n)throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");if(n===2&&(Uf!==void 0||Gf!==void 0)||n===3&&(Wf!==void 0||Gf!==void 0)||n===4&&(Wf!==void 0||Uf!==void 0))throw Error("Cannot use two MathJax versions simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");var C=fe.useRef(M),M=fe.useRef((M==null?void 0:M.version)||null);if(M.current===null)M.current=n;else if(M.current!==n)throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");var O=r||(n===2?zy:n===3?Hy:Wy);function k(W,H){t&&(window.MathJax=t);var B=document.createElement("script");B.type="text/javascript",B.src=O,B.async=l,B.addEventListener("load",function(){var I=window.MathJax;i&&i(I),W(I),o&&o()}),B.addEventListener("error",function(I){return H(I)}),document.getElementsByTagName("head")[0].appendChild(B)}return C.current===void 0&&(M={typesettingOptions:p,renderMode:y,hideUntilTypeset:S},n===2?Wf===void 0&&(typeof window<"u"?(Wf=new Promise(k)).catch(function(W){if(!u)throw Error("Failed to download MathJax version 2 from '".concat(O,"' due to: ").concat(JSON.stringify(W)));u(W)}):(Wf=Promise.reject()).catch(function(W){})):n===3?Uf===void 0&&(typeof window<"u"?(Uf=new Promise(k)).catch(function(W){if(!u)throw Error("Failed to download MathJax version 3 from '".concat(O,"' due to: ").concat(W));u(W)}):(Uf=Promise.reject()).catch(function(W){})):Gf===void 0&&(typeof window<"u"?(Gf=new Promise(k)).catch(function(W){if(!u)throw Error("Failed to download MathJax version 4 from '".concat(O,"' due to: ").concat(W));u(W)}):(Gf=Promise.reject()).catch(function(W){})),C.current=Xp(Xp({},M),n===2?{version:2,promise:Wf}:n===3?{version:3,promise:Uf}:{version:4,promise:Gf})),fe.createElement(xg.Provider,{value:C.current},w)},zd=function(){return(zd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},VR=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},Ih=function(e){return"Typesetting failed: ".concat(e.message!==void 0?e.message:JSON.stringify(e))},XR=function(e){function t(){var K;k==="every"&&B&&W==="post"&&M.current!==null&&(M.current.style.visibility=(K=(K=w.style)==null?void 0:K.visibility)!=null?K:"visible"),I.current||(k==="first"&&M.current!==null&&(M.current.style.visibility="visible"),i&&i(),I.current=!0),o&&o(),Y.current=!1}var r=e.inline,n=r!==void 0&&r,r=e.hideUntilTypeset,i=e.onInitTypeset,o=e.onTypeset,l=e.text,u=e.dynamic,p=e.typesettingOptions,y=e.renderMode,S=e.children,w=VR(e,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),C=fe.useRef(""),M=fe.useRef(null),O=fe.useContext(xg),k=r??(O==null?void 0:O.hideUntilTypeset),W=y??(O==null?void 0:O.renderMode),H=p??(O==null?void 0:O.typesettingOptions),B=u!==!1&&(u||process.env.NODE_ENV!=="production"),I=fe.useRef(!1),Y=fe.useRef(!1);return!Y.current&&M.current!==null&&B&&k==="every"&&W==="post"&&(M.current.style.visibility="hidden"),(typeof window<"u"?fe.useLayoutEffect:fe.useEffect)(function(){if((B||!I.current)&&M.current!==null){if(!O)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(W==="pre"){if(!(typeof(K=l)=="string"&&0<K.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(l,'"'));if(!p||!p.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(O.version===2)throw Error("Render mode 'pre' only available with MathJax 3 and 4, and version 2 is currently in use")}W!=="post"&&l===C.current||Y.current||(Y.current=!0,O.version===3||O.version===4?O.promise.then(function(G){var ne;W==="pre"?(ne=function($){C.current=l,G.startup.document.clear(),G.startup.document.updateDocument(),M.current!==null&&(M.current.innerHTML=$.outerHTML),t()},p.fn.endsWith("Promise")?G.startup.promise.then(function(){return G[H.fn](l,zd(zd({},(H==null?void 0:H.options)||{}),{display:!n}))}).then(ne).catch(function($){throw t(),Error(Ih($))}):G.startup.promise.then(function(){var $=G[H.fn](l,zd(zd({},(H==null?void 0:H.options)||{}),{display:!n}));ne($)}).catch(function($){throw t(),Error(Ih($))})):G.startup.promise.then(function(){return G.typesetClear([M.current]),G.typesetPromise([M.current])}).then(t).catch(function($){throw t(),Error(Ih($))})}).catch(function(G){throw t(),Error(Ih(G))}):O.promise.then(function(G){G.Hub.Queue(["Typeset",G.Hub,M.current]),G.Hub.Queue(t)}).catch(function(G){throw t(),Error(Ih(G))}))}var K}),fe.createElement("span",zd({},w,{style:zd(zd({display:n?"inline":"block"},w.style),{visibility:k?"hidden":(e=w.style)==null?void 0:e.visibility}),ref:M}),S)};const ZR=Object.freeze(Object.defineProperty({__proto__:null,MathJax:XR,MathJaxBaseContext:xg,MathJaxContext:YR},Symbol.toStringTag,{value:"Module"})),{MathJax:JR,MathJaxContext:KR}=ZR,QR={loader:{load:["input/tex","output/chtml"]},tex:{inlineMath:[["\\(","\\)"],["$","$"]],displayMath:[["$$","$$"],["\\[","\\]"]]},options:{enableMenu:!1}},jR=e=>{const t=(e||"").trim();if(!t)return"";const n=t.replace(/\\\\/g,"\\"),r=n.includes("\\(")||n.includes("\\[")||n.includes("$$")||n.includes("\\begin")||n.includes("$")||n.includes("\\]");return n.includes("$begin:math:display$")||n.includes("$end:math:display$")?n.replace(/\$begin:math:display\$/gi,"\\[").replace(/\$end:math:display\$/gi,"\\]"):r?n:`\\(${n}\\)`},Uy=({title:e,value:t,isEditMode:n,isSubmitting:r=!1,actionLabel:i,onChangeTitle:o,onChangeValue:l,onSubmit:u,className:p,isLoading:y=!1,isColored:S=!0,...w})=>{const C=i||"Save",M=jR(t),O=r||y,k=n&&!!u,W=()=>{!k||O||u==null||u()};return D.jsx(KR,{version:3,config:QR,children:D.jsxs(cf,{...w,isLoading:y,isColored:S,className:Nt.clsx("w-full flex flex-col gap-4",p),children:[n?D.jsx("input",{type:"text",value:e,disabled:O,className:"w-full rounded-(--radius) border border-(--border) bg-transparent px-3 py-2 text-white outline-none placeholder:text-(--muted-foreground)",onChange:H=>o==null?void 0:o(H.target.value),onBlur:W}):null,n?D.jsx("textarea",{value:t,disabled:O,className:"min-h-[160px] w-full rounded-(--radius) border border-(--border) bg-transparent px-3 py-2 text-white outline-none placeholder:text-(--muted-foreground)",onChange:H=>l==null?void 0:l(H.target.value),onBlur:W}):null,D.jsxs(fh,{column:!0,className:"gap-2",children:[!n&&e?D.jsx(Ni,{typography:"CompactHeader",color:"muted-foreground",children:e}):null,D.jsx("div",{className:"min-h-12 text-(--chart-1)",children:D.jsx(JR,{dynamic:!0,children:M})})]}),n&&u&&r?D.jsx(fh,{className:"justify-end",children:D.jsx("span",{className:"text-xs uppercase tracking-widest text-(--muted-foreground)",children:C})}):null]})})};Uy.displayName="MathEquationBlock";function Gy(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Gy(n)}),e}class Yy{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Vy(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Hd(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const qR="</span>",Xy=e=>!!e.scope,$R=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class eM{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Vy(t)}openNode(t){if(!Xy(t))return;const n=$R(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){Xy(t)&&(this.buffer+=qR)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Zy=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Zp{constructor(){this.rootNode=Zy(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=Zy({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{Zp._collapse(n)}))}}class tM extends Zp{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new eM(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Nh(e){return e?typeof e=="string"?e:e.source:null}function Jy(e){return pf("(?=",e,")")}function nM(e){return pf("(?:",e,")*")}function rM(e){return pf("(?:",e,")?")}function pf(...e){return e.map(n=>Nh(n)).join("")}function iM(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Jp(...e){return"("+(iM(e).capture?"":"?:")+e.map(r=>Nh(r)).join("|")+")"}function Ky(e){return new RegExp(e.toString()+"|").exec("").length-1}function oM(e,t){const n=e&&e.exec(t);return n&&n.index===0}const aM=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Kp(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=Nh(r),l="";for(;o.length>0;){const u=aM.exec(o);if(!u){l+=o;break}l+=o.substring(0,u.index),o=o.substring(u.index+u[0].length),u[0][0]==="\\"&&u[1]?l+="\\"+String(Number(u[1])+i):(l+=u[0],u[0]==="("&&n++)}return l}).map(r=>`(${r})`).join(t)}const lM=/\b\B/,Qy="[a-zA-Z]\\w*",Qp="[a-zA-Z_]\\w*",jy="\\b\\d+(\\.\\d+)?",qy="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$y="\\b(0b[01]+)",sM="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",cM=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=pf(t,/.*\b/,e.binary,/\b.*/)),Hd({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Fh={begin:"\\\\[\\s\\S]",relevance:0},uM={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Fh]},dM={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Fh]},fM={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Sg=function(e,t,n={}){const r=Hd({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Jp("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:pf(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},hM=Sg("//","$"),gM=Sg("/\\*","\\*/"),pM=Sg("#","$"),vM={scope:"number",begin:jy,relevance:0},bM={scope:"number",begin:qy,relevance:0},mM={scope:"number",begin:$y,relevance:0},yM={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Fh,{begin:/\[/,end:/\]/,relevance:0,contains:[Fh]}]},wM={scope:"title",begin:Qy,relevance:0},xM={scope:"title",begin:Qp,relevance:0},SM={begin:"\\.\\s*"+Qp,relevance:0};var Eg=Object.freeze({__proto__:null,APOS_STRING_MODE:uM,BACKSLASH_ESCAPE:Fh,BINARY_NUMBER_MODE:mM,BINARY_NUMBER_RE:$y,COMMENT:Sg,C_BLOCK_COMMENT_MODE:gM,C_LINE_COMMENT_MODE:hM,C_NUMBER_MODE:bM,C_NUMBER_RE:qy,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:pM,IDENT_RE:Qy,MATCH_NOTHING_RE:lM,METHOD_GUARD:SM,NUMBER_MODE:vM,NUMBER_RE:jy,PHRASAL_WORDS_MODE:fM,QUOTE_STRING_MODE:dM,REGEXP_MODE:yM,RE_STARTERS_RE:sM,SHEBANG:cM,TITLE_MODE:wM,UNDERSCORE_IDENT_RE:Qp,UNDERSCORE_TITLE_MODE:xM});function EM(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function CM(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function TM(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=EM,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function kM(e,t){Array.isArray(e.illegal)&&(e.illegal=Jp(...e.illegal))}function RM(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function MM(e,t){e.relevance===void 0&&(e.relevance=1)}const _M=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=pf(n.beforeMatch,Jy(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},PM=["of","and","for","in","not","or","if","then","parent","list","value"],OM="keyword";function ew(e,t,n=OM){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,ew(e[o],t,o))}),r;function i(o,l){t&&(l=l.map(u=>u.toLowerCase())),l.forEach(function(u){const p=u.split("|");r[p[0]]=[o,AM(p[0],p[1])]})}}function AM(e,t){return t?Number(t):IM(e)?0:1}function IM(e){return PM.includes(e.toLowerCase())}const tw={},vf=e=>{console.error(e)},nw=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Yf=(e,t)=>{tw[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),tw[`${e}/${t}`]=!0)},Cg=new Error;function rw(e,t,{key:n}){let r=0;const i=e[n],o={},l={};for(let u=1;u<=t.length;u++)l[u+r]=i[u],o[u+r]=!0,r+=Ky(t[u-1]);e[n]=l,e[n]._emit=o,e[n]._multi=!0}function NM(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw vf("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Cg;if(typeof e.beginScope!="object"||e.beginScope===null)throw vf("beginScope must be object"),Cg;rw(e,e.begin,{key:"beginScope"}),e.begin=Kp(e.begin,{joinWith:""})}}function FM(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw vf("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Cg;if(typeof e.endScope!="object"||e.endScope===null)throw vf("endScope must be object"),Cg;rw(e,e.end,{key:"endScope"}),e.end=Kp(e.end,{joinWith:""})}}function DM(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function LM(e){DM(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),NM(e),FM(e)}function BM(e){function t(l,u){return new RegExp(Nh(l),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(u?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(u,p){p.position=this.position++,this.matchIndexes[this.matchAt]=p,this.regexes.push([p,u]),this.matchAt+=Ky(u)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const u=this.regexes.map(p=>p[1]);this.matcherRe=t(Kp(u,{joinWith:"|"}),!0),this.lastIndex=0}exec(u){this.matcherRe.lastIndex=this.lastIndex;const p=this.matcherRe.exec(u);if(!p)return null;const y=p.findIndex((w,C)=>C>0&&w!==void 0),S=this.matchIndexes[y];return p.splice(0,y),Object.assign(p,S)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(u){if(this.multiRegexes[u])return this.multiRegexes[u];const p=new n;return this.rules.slice(u).forEach(([y,S])=>p.addRule(y,S)),p.compile(),this.multiRegexes[u]=p,p}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(u,p){this.rules.push([u,p]),p.type==="begin"&&this.count++}exec(u){const p=this.getMatcher(this.regexIndex);p.lastIndex=this.lastIndex;let y=p.exec(u);if(this.resumingScanAtSamePosition()&&!(y&&y.index===this.lastIndex)){const S=this.getMatcher(0);S.lastIndex=this.lastIndex+1,y=S.exec(u)}return y&&(this.regexIndex+=y.position+1,this.regexIndex===this.count&&this.considerAll()),y}}function i(l){const u=new r;return l.contains.forEach(p=>u.addRule(p.begin,{rule:p,type:"begin"})),l.terminatorEnd&&u.addRule(l.terminatorEnd,{type:"end"}),l.illegal&&u.addRule(l.illegal,{type:"illegal"}),u}function o(l,u){const p=l;if(l.isCompiled)return p;[CM,RM,LM,_M].forEach(S=>S(l,u)),e.compilerExtensions.forEach(S=>S(l,u)),l.__beforeBegin=null,[TM,kM,MM].forEach(S=>S(l,u)),l.isCompiled=!0;let y=null;return typeof l.keywords=="object"&&l.keywords.$pattern&&(l.keywords=Object.assign({},l.keywords),y=l.keywords.$pattern,delete l.keywords.$pattern),y=y||/\w+/,l.keywords&&(l.keywords=ew(l.keywords,e.case_insensitive)),p.keywordPatternRe=t(y,!0),u&&(l.begin||(l.begin=/\B|\b/),p.beginRe=t(p.begin),!l.end&&!l.endsWithParent&&(l.end=/\B|\b/),l.end&&(p.endRe=t(p.end)),p.terminatorEnd=Nh(p.end)||"",l.endsWithParent&&u.terminatorEnd&&(p.terminatorEnd+=(l.end?"|":"")+u.terminatorEnd)),l.illegal&&(p.illegalRe=t(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(function(S){return zM(S==="self"?l:S)})),l.contains.forEach(function(S){o(S,p)}),l.starts&&o(l.starts,u),p.matcher=i(p),p}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Hd(e.classNameAliases||{}),o(e)}function iw(e){return e?e.endsWithParent||iw(e.starts):!1}function zM(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Hd(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:iw(e)?Hd(e,{starts:e.starts?Hd(e.starts):null}):Object.isFrozen(e)?Hd(e):e}var HM="11.11.1";class WM extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const jp=Vy,ow=Hd,aw=Symbol("nomatch"),UM=7,lw=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:tM};function p(V){return u.noHighlightRe.test(V)}function y(V){let J=V.className+" ";J+=V.parentNode?V.parentNode.className:"";const oe=u.languageDetectRe.exec(J);if(oe){const xe=$(oe[1]);return xe||(nw(o.replace("{}",oe[1])),nw("Falling back to no-highlight mode for this block.",V)),xe?oe[1]:"no-highlight"}return J.split(/\s+/).find(xe=>p(xe)||$(xe))}function S(V,J,oe){let xe="",ee="";typeof J=="object"?(xe=V,oe=J.ignoreIllegals,ee=J.language):(Yf("10.7.0","highlight(lang, code, ...args) has been deprecated."),Yf("10.7.0",`Please use highlight(code, options) instead.
|
|
300
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ee=V,xe=J),oe===void 0&&(oe=!0);const Q={code:xe,language:ee};ae("before:highlight",Q);const Ce=Q.result?Q.result:w(Q.language,Q.code,oe);return Ce.code=Q.code,ae("after:highlight",Ce),Ce}function w(V,J,oe,xe){const ee=Object.create(null);function Q(Le,Xe){return Le.keywords[Xe]}function Ce(){if(!at.keywords){Dt.addText(ct);return}let Le=0;at.keywordPatternRe.lastIndex=0;let Xe=at.keywordPatternRe.exec(ct),Pt="";for(;Xe;){Pt+=ct.substring(Le,Xe.index);const $e=ft.case_insensitive?Xe[0].toLowerCase():Xe[0],nr=Q(at,$e);if(nr){const[zr,$r]=nr;if(Dt.addText(Pt),Pt="",ee[$e]=(ee[$e]||0)+1,ee[$e]<=UM&&($t+=$r),zr.startsWith("_"))Pt+=Xe[0];else{const uo=ft.classNameAliases[zr]||zr;Oe(Xe[0],uo)}}else Pt+=Xe[0];Le=at.keywordPatternRe.lastIndex,Xe=at.keywordPatternRe.exec(ct)}Pt+=ct.substring(Le),Dt.addText(Pt)}function Ge(){if(ct==="")return;let Le=null;if(typeof at.subLanguage=="string"){if(!t[at.subLanguage]){Dt.addText(ct);return}Le=w(at.subLanguage,ct,!0,Wt[at.subLanguage]),Wt[at.subLanguage]=Le._top}else Le=M(ct,at.subLanguage.length?at.subLanguage:null);at.relevance>0&&($t+=Le.relevance),Dt.__addSublanguage(Le._emitter,Le.language)}function We(){at.subLanguage!=null?Ge():Ce(),ct=""}function Oe(Le,Xe){Le!==""&&(Dt.startScope(Xe),Dt.addText(Le),Dt.endScope())}function rt(Le,Xe){let Pt=1;const $e=Xe.length-1;for(;Pt<=$e;){if(!Le._emit[Pt]){Pt++;continue}const nr=ft.classNameAliases[Le[Pt]]||Le[Pt],zr=Xe[Pt];nr?Oe(zr,nr):(ct=zr,Ce(),ct=""),Pt++}}function Fe(Le,Xe){return Le.scope&&typeof Le.scope=="string"&&Dt.openNode(ft.classNameAliases[Le.scope]||Le.scope),Le.beginScope&&(Le.beginScope._wrap?(Oe(ct,ft.classNameAliases[Le.beginScope._wrap]||Le.beginScope._wrap),ct=""):Le.beginScope._multi&&(rt(Le.beginScope,Xe),ct="")),at=Object.create(Le,{parent:{value:at}}),at}function Ye(Le,Xe,Pt){let $e=oM(Le.endRe,Pt);if($e){if(Le["on:end"]){const nr=new Yy(Le);Le["on:end"](Xe,nr),nr.isMatchIgnored&&($e=!1)}if($e){for(;Le.endsParent&&Le.parent;)Le=Le.parent;return Le}}if(Le.endsWithParent)return Ye(Le.parent,Xe,Pt)}function Ve(Le){return at.matcher.regexIndex===0?(ct+=Le[0],1):(Rt=!0,0)}function Ke(Le){const Xe=Le[0],Pt=Le.rule,$e=new Yy(Pt),nr=[Pt.__beforeBegin,Pt["on:begin"]];for(const zr of nr)if(zr&&(zr(Le,$e),$e.isMatchIgnored))return Ve(Xe);return Pt.skip?ct+=Xe:(Pt.excludeBegin&&(ct+=Xe),We(),!Pt.returnBegin&&!Pt.excludeBegin&&(ct=Xe)),Fe(Pt,Le),Pt.returnBegin?0:Xe.length}function st(Le){const Xe=Le[0],Pt=J.substring(Le.index),$e=Ye(at,Le,Pt);if(!$e)return aw;const nr=at;at.endScope&&at.endScope._wrap?(We(),Oe(Xe,at.endScope._wrap)):at.endScope&&at.endScope._multi?(We(),rt(at.endScope,Le)):nr.skip?ct+=Xe:(nr.returnEnd||nr.excludeEnd||(ct+=Xe),We(),nr.excludeEnd&&(ct=Xe));do at.scope&&Dt.closeNode(),!at.skip&&!at.subLanguage&&($t+=at.relevance),at=at.parent;while(at!==$e.parent);return $e.starts&&Fe($e.starts,Le),nr.returnEnd?0:Xe.length}function gt(){const Le=[];for(let Xe=at;Xe!==ft;Xe=Xe.parent)Xe.scope&&Le.unshift(Xe.scope);Le.forEach(Xe=>Dt.openNode(Xe))}let it={};function mt(Le,Xe){const Pt=Xe&&Xe[0];if(ct+=Le,Pt==null)return We(),0;if(it.type==="begin"&&Xe.type==="end"&&it.index===Xe.index&&Pt===""){if(ct+=J.slice(Xe.index,Xe.index+1),!i){const $e=new Error(`0 width match regex (${V})`);throw $e.languageName=V,$e.badRule=it.rule,$e}return 1}if(it=Xe,Xe.type==="begin")return Ke(Xe);if(Xe.type==="illegal"&&!oe){const $e=new Error('Illegal lexeme "'+Pt+'" for mode "'+(at.scope||"<unnamed>")+'"');throw $e.mode=at,$e}else if(Xe.type==="end"){const $e=st(Xe);if($e!==aw)return $e}if(Xe.type==="illegal"&&Pt==="")return ct+=`
|
|
301
|
+
`,1;if(tr>1e5&&tr>Xe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ct+=Pt,Pt.length}const ft=$(V);if(!ft)throw vf(o.replace("{}",V)),new Error('Unknown language: "'+V+'"');const tt=BM(ft);let Ft="",at=xe||tt;const Wt={},Dt=new u.__emitter(u);gt();let ct="",$t=0,un=0,tr=0,Rt=!1;try{if(ft.__emitTokens)ft.__emitTokens(J,Dt);else{for(at.matcher.considerAll();;){tr++,Rt?Rt=!1:at.matcher.considerAll(),at.matcher.lastIndex=un;const Le=at.matcher.exec(J);if(!Le)break;const Xe=J.substring(un,Le.index),Pt=mt(Xe,Le);un=Le.index+Pt}mt(J.substring(un))}return Dt.finalize(),Ft=Dt.toHTML(),{language:V,value:Ft,relevance:$t,illegal:!1,_emitter:Dt,_top:at}}catch(Le){if(Le.message&&Le.message.includes("Illegal"))return{language:V,value:jp(J),illegal:!0,relevance:0,_illegalBy:{message:Le.message,index:un,context:J.slice(un-100,un+100),mode:Le.mode,resultSoFar:Ft},_emitter:Dt};if(i)return{language:V,value:jp(J),illegal:!1,relevance:0,errorRaised:Le,_emitter:Dt,_top:at};throw Le}}function C(V){const J={value:jp(V),illegal:!1,relevance:0,_top:l,_emitter:new u.__emitter(u)};return J._emitter.addText(V),J}function M(V,J){J=J||u.languages||Object.keys(t);const oe=C(V),xe=J.filter($).filter(se).map(We=>w(We,V,!1));xe.unshift(oe);const ee=xe.sort((We,Oe)=>{if(We.relevance!==Oe.relevance)return Oe.relevance-We.relevance;if(We.language&&Oe.language){if($(We.language).supersetOf===Oe.language)return 1;if($(Oe.language).supersetOf===We.language)return-1}return 0}),[Q,Ce]=ee,Ge=Q;return Ge.secondBest=Ce,Ge}function O(V,J,oe){const xe=J&&n[J]||oe;V.classList.add("hljs"),V.classList.add(`language-${xe}`)}function k(V){let J=null;const oe=y(V);if(p(oe))return;if(ae("before:highlightElement",{el:V,language:oe}),V.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",V);return}if(V.children.length>0&&(u.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(V)),u.throwUnescapedHTML))throw new WM("One of your code blocks includes unescaped HTML.",V.innerHTML);J=V;const xe=J.textContent,ee=oe?S(xe,{language:oe,ignoreIllegals:!0}):M(xe);V.innerHTML=ee.value,V.dataset.highlighted="yes",O(V,oe,ee.language),V.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(V.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),ae("after:highlightElement",{el:V,result:ee,text:xe})}function W(V){u=ow(u,V)}const H=()=>{Y(),Yf("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function B(){Y(),Yf("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let I=!1;function Y(){function V(){Y()}if(document.readyState==="loading"){I||window.addEventListener("DOMContentLoaded",V,!1),I=!0;return}document.querySelectorAll(u.cssSelector).forEach(k)}function K(V,J){let oe=null;try{oe=J(e)}catch(xe){if(vf("Language definition for '{}' could not be registered.".replace("{}",V)),i)vf(xe);else throw xe;oe=l}oe.name||(oe.name=V),t[V]=oe,oe.rawDefinition=J.bind(null,e),oe.aliases&&ie(oe.aliases,{languageName:V})}function G(V){delete t[V];for(const J of Object.keys(n))n[J]===V&&delete n[J]}function ne(){return Object.keys(t)}function $(V){return V=(V||"").toLowerCase(),t[V]||t[n[V]]}function ie(V,{languageName:J}){typeof V=="string"&&(V=[V]),V.forEach(oe=>{n[oe.toLowerCase()]=J})}function se(V){const J=$(V);return J&&!J.disableAutodetect}function ue(V){V["before:highlightBlock"]&&!V["before:highlightElement"]&&(V["before:highlightElement"]=J=>{V["before:highlightBlock"](Object.assign({block:J.el},J))}),V["after:highlightBlock"]&&!V["after:highlightElement"]&&(V["after:highlightElement"]=J=>{V["after:highlightBlock"](Object.assign({block:J.el},J))})}function he(V){ue(V),r.push(V)}function ve(V){const J=r.indexOf(V);J!==-1&&r.splice(J,1)}function ae(V,J){const oe=V;r.forEach(function(xe){xe[oe]&&xe[oe](J)})}function me(V){return Yf("10.7.0","highlightBlock will be removed entirely in v12.0"),Yf("10.7.0","Please use highlightElement now."),k(V)}Object.assign(e,{highlight:S,highlightAuto:M,highlightAll:Y,highlightElement:k,highlightBlock:me,configure:W,initHighlighting:H,initHighlightingOnLoad:B,registerLanguage:K,unregisterLanguage:G,listLanguages:ne,getLanguage:$,registerAliases:ie,autoDetection:se,inherit:ow,addPlugin:he,removePlugin:ve}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=HM,e.regex={concat:pf,lookahead:Jy,either:Jp,optional:rM,anyNumberOfTimes:nM};for(const V in Eg)typeof Eg[V]=="object"&&Gy(Eg[V]);return Object.assign(e,Eg),e},Vf=lw({});Vf.newInstance=()=>lw({});var GM=Vf;Vf.HighlightJS=Vf,Vf.default=Vf;const Io=sS(GM);function YM(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(u);const p={match:/\\"/},y={className:"string",begin:/'/,end:/'/},S={match:/\\'/},w={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},C=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],M=e.SHEBANG({binary:`(${C.join("|")})`,relevance:10}),O={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},k=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],W=["true","false"],H={match:/(\/[a-z._-]+)+/},B=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],I=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],Y=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],K=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:k,literal:W,built_in:[...B,...I,"set","shopt",...Y,...K]},contains:[M,e.SHEBANG(),O,w,o,l,H,u,p,y,S,n]}}const VM=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),XM=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ZM=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],JM=[...XM,...ZM],KM=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),QM=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),jM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),qM=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function $M(e){const t=e.regex,n=VM(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",u=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+QM.join("|")+")"},{begin:":(:)?("+jM.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+qM.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:KM.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+JM.join("|")+")\\b"}]}}function e_(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function t_(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}function n_(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},u={begin:/\[/,end:/\]/,contains:[r,o,i,l,n,"self"],relevance:0},p=/[A-Za-z0-9_-]+/,y=/"(\\"|[^"])*"/,S=/'[^']*'/,w=t.either(p,y,S),C=t.concat(w,"(\\s*\\.\\s*",w,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:C,className:"attr",starts:{end:/$/,contains:[r,u,o,i,l,n]}}]}}const sw="[A-Za-z$_][0-9A-Za-z$_]*",r_=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i_=["true","false","null","undefined","NaN","Infinity"],cw=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],uw=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],dw=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o_=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a_=[].concat(dw,cw,uw);function l_(e){const t=e.regex,n=(oe,{after:xe})=>{const ee="</"+oe[0].slice(1);return oe.input.indexOf(ee,xe)!==-1},r=sw,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(oe,xe)=>{const ee=oe[0].length+oe.index,Q=oe.input[ee];if(Q==="<"||Q===","){xe.ignoreMatch();return}Q===">"&&(n(oe,{after:ee})||xe.ignoreMatch());let Ce;const Ge=oe.input.substring(ee);if(Ce=Ge.match(/^\s*=/)){xe.ignoreMatch();return}if((Ce=Ge.match(/^\s+extends\s+/))&&Ce.index===0){xe.ignoreMatch();return}}},u={$pattern:sw,keyword:r_,literal:i_,built_in:a_,"variable.language":o_},p="[0-9](_?[0-9])*",y=`\\.(${p})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",w={className:"number",variants:[{begin:`(\\b(${S})((${y})|\\.)?|(${y}))[eE][+-]?(${p})\\b`},{begin:`\\b(${S})\\b((${y})\\b|\\.)?|(${y})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},M={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,C],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},W={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,C]},B={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},I=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,M,O,k,W,{match:/\$\d+/},w];C.contains=I.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(I)});const Y=[].concat(B,C.contains),K=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(Y)}]),G={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:K},ne={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...cw,...uw]}},ie={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},se={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[G],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function he(oe){return t.concat("(?!",oe.join("|"),")")}const ve={match:t.concat(/\b/,he([...dw,"super","import"].map(oe=>`${oe}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},ae={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},me={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},G]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[G]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ie,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,M,O,k,W,B,{match:/\$\d+/},w,$,{scope:"attr",match:r+t.lookahead(":"),relevance:0},J,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,e.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[G,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},ae,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[G]},ve,ue,ne,me,{match:/\$[(.]/}]}}function s_(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function c_(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},l={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,l]}}function u_(e){const t=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function d_(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,l={begin:"`[\\s\\S]",relevance:0},u={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},p={className:"literal",begin:/\$(null|true|false)\b/},y={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[l,u,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},S={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},w={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},C=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[w]}),M={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},O={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},k={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[u]}]},W={begin:/using\s/,end:/$/,returnBegin:!0,contains:[y,S,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},H={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},B={className:"selector-tag",begin:/@\B/,relevance:0},I={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},Y=[I,C,l,e.NUMBER_MODE,y,S,M,u,p,B],K={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",Y,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return I.contains.unshift(K),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:Y.concat(O,k,W,H,K)}}function f_(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function h_(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],l=["double precision","large object","with timezone","without timezone"],u=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],p=["add","asc","collation","desc","final","first","last","view"],y=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],S=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],w=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],C=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],M=S,O=[...y,...p].filter(K=>!S.includes(K)),k={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},W={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},H={match:t.concat(/\b/,t.either(...M),/\s*\(/),relevance:0,keywords:{built_in:M}};function B(K){return t.concat(/\b/,t.either(...K.map(G=>G.replace(/\s+/,"\\s+"))),/\b/)}const I={scope:"keyword",match:B(C),relevance:0};function Y(K,{exceptions:G,when:ne}={}){const $=ne;return G=G||[],K.map(ie=>ie.match(/\|\d+$/)||G.includes(ie)?ie:$(ie)?`${ie}|0`:ie)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:Y(O,{when:K=>K.length<3}),literal:o,type:u,built_in:w},contains:[{scope:"type",match:B(l)},I,H,k,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,W]}}const Tg="[A-Za-z$_][0-9A-Za-z$_]*",fw=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],hw=["true","false","null","undefined","NaN","Infinity"],gw=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],pw=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],vw=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],bw=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],mw=[].concat(vw,gw,pw);function g_(e){const t=e.regex,n=(oe,{after:xe})=>{const ee="</"+oe[0].slice(1);return oe.input.indexOf(ee,xe)!==-1},r=Tg,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(oe,xe)=>{const ee=oe[0].length+oe.index,Q=oe.input[ee];if(Q==="<"||Q===","){xe.ignoreMatch();return}Q===">"&&(n(oe,{after:ee})||xe.ignoreMatch());let Ce;const Ge=oe.input.substring(ee);if(Ce=Ge.match(/^\s*=/)){xe.ignoreMatch();return}if((Ce=Ge.match(/^\s+extends\s+/))&&Ce.index===0){xe.ignoreMatch();return}}},u={$pattern:Tg,keyword:fw,literal:hw,built_in:mw,"variable.language":bw},p="[0-9](_?[0-9])*",y=`\\.(${p})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",w={className:"number",variants:[{begin:`(\\b(${S})((${y})|\\.)?|(${y}))[eE][+-]?(${p})\\b`},{begin:`\\b(${S})\\b((${y})\\b|\\.)?|(${y})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},M={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,C],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},W={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,C]},B={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},I=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,M,O,k,W,{match:/\$\d+/},w];C.contains=I.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(I)});const Y=[].concat(B,C.contains),K=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(Y)}]),G={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:K},ne={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},$={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...gw,...pw]}},ie={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},se={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[G],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function he(oe){return t.concat("(?!",oe.join("|"),")")}const ve={match:t.concat(/\b/,he([...vw,"super","import"].map(oe=>`${oe}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},ae={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},me={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},G]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[G]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:K,CLASS_REFERENCE:$},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ie,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,M,O,k,W,B,{match:/\$\d+/},w,$,{scope:"attr",match:r+t.lookahead(":"),relevance:0},J,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,e.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:K}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},se,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[G,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},ae,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[G]},ve,ue,ne,me,{match:/\$[(.]/}]}}function p_(e){const t=e.regex,n=g_(e),r=Tg,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},p=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],y={$pattern:Tg,keyword:fw.concat(p),literal:hw,built_in:mw.concat(i),"variable.language":bw},S={className:"meta",begin:"@"+r},w=(k,W,H)=>{const B=k.contains.findIndex(I=>I.label===W);if(B===-1)throw new Error("can not find mode to replace");k.contains.splice(B,1,H)};Object.assign(n.keywords,y),n.exports.PARAMS_CONTAINS.push(S);const C=n.contains.find(k=>k.scope==="attr"),M=Object.assign({},C,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,C,M]),n.contains=n.contains.concat([S,o,l,M]),w(n,"shebang",e.SHEBANG()),w(n,"use_strict",u);const O=n.contains.find(k=>k.label==="func.def");return O.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function v_(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(o,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"string"}),p=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),y={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,p,u,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,l,p,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[p]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[y],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[y],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:y}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function b_(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},l={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},u=e.inherit(l,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),C={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},M={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},O={begin:/\{/,end:/\}/,contains:[M],illegal:"\\n",relevance:0},k={begin:"\\[",end:"\\]",contains:[M],illegal:"\\n",relevance:0},W=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},C,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},O,k,o,l],H=[...W];return H.pop(),H.push(u),M.contains=H,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:W}}const m_=["javascript","typescript","xml","css","json","go","bash","shell","yaml","dockerfile","nginx","ini","powershell","sql","makefile"],y_={js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",tsx:"typescript",html:"xml",svg:"xml",yml:"yaml",sh:"bash",zsh:"bash",shell:"shell",docker:"dockerfile",golang:"go",ps1:"powershell",postgres:"sql",postgresql:"sql",mk:"makefile"};Io.registerLanguage("javascript",l_),Io.registerLanguage("typescript",p_),Io.registerLanguage("xml",v_),Io.registerLanguage("css",$M),Io.registerLanguage("json",s_),Io.registerLanguage("go",t_),Io.registerLanguage("bash",YM),Io.registerLanguage("shell",f_),Io.registerLanguage("yaml",b_),Io.registerLanguage("dockerfile",e_),Io.registerLanguage("nginx",u_),Io.registerLanguage("ini",n_),Io.registerLanguage("powershell",d_),Io.registerLanguage("sql",h_),Io.registerLanguage("makefile",c_);const w_=e=>{const t=e==null?void 0:e.trim().toLowerCase();if(t)return y_[t]||t},yw=e=>{const t=w_(e);if(!(!t||!Io.getLanguage(t)))return t},x_=(e,t)=>{if(!e.trim())return"";const n=yw(t);return n?Io.highlight(e,{language:n,ignoreIllegals:!0}).value:Io.highlightAuto(e,m_).value},S_=[],E_=[],C_=e=>"codeSnippets"in e&&Array.isArray(e.codeSnippets),T_=(e,t)=>typeof e=="string"?{id:`hint-${t+1}`,value:e,status:"success"}:{id:e.id||`hint-${t+1}`,value:e.value,status:e.status??"success"},ww=e=>e.map((t,n)=>T_(t,n)),k_=[{value:"success",label:"Success"},{value:"warn",label:"Warn"},{value:"error",label:"Error"}],R_=e=>e==="success"||e==="warn"||e==="error",xw=e=>{var nn;const{title:t="01 // Code block",onTitleChange:n,subtitle:r="Code block",onSubtitleChange:i,hintsLabel:o="HINTS",onHintsLabelChange:l,bufferLabel:u="BUFFER",onBufferLabelChange:p,bufferHelperText:y="// Нажми COPY, чтобы скопировать текущую вкладку",onBufferHelperTextChange:S,hintStatusColors:w,onHintsChange:C,onHintValueChange:M,onHintStatusChange:O,onHintAdd:k,onHintRemove:W,activeHintIndex:H,onActiveHintIndexChange:B,initialCode:I="",language:Y="javascript",isEditMode:K=!0,isEditModeDisabled:G=!1,hints:ne=S_,badSmells:$=E_,className:ie,type:se="dark",isColored:ue=!1,isLoading:he=!1,...ve}=e,ae=C_(e)?e:null,me=(ae==null?void 0:ae.codeSnippets)??[],V=(ae==null?void 0:ae.normalizedCodeSnippets)??[],J=ae==null?void 0:ae.activeSnippet,oe=(ae==null?void 0:ae.activeSnippetId)??"",[xe,ee]=fe.useState(I),[Q,Ce]=fe.useState(!1),[Ge,We]=fe.useState(0),[Oe,rt]=fe.useState(ww(ne)),[Fe,Ye]=fe.useState(t),[Ve,Ke]=fe.useState(r),[st,gt]=fe.useState(o),[it,mt]=fe.useState(u),[ft,tt]=fe.useState(y),[Ft,at]=fe.useState("idle"),Wt=fe.useRef(!1),Dt=fe.useRef(0),ct=fe.useRef(null),$t=ae?(J==null?void 0:J.code)||"":xe,un=ae?(J==null?void 0:J.language)||"untitled":Y,tr=(ae==null?void 0:ae.isEditModeDisabled)??G,Rt=(ae==null?void 0:ae.isEditMode)??K,Le=Rt&&!tr&&!he,Xe=ae!==null?!(J!=null&&J.id):!1,Pt=ae!==null?ae.isCodeBlockLoading||ae.isUpdateCodeBlockLoading:!1,$e=he||Pt,nr=!!(ae!=null&&ae.onUpdateCodeBlockHandler),zr=ae!==null?ae.isUpdateCodeBlockLoading||V.length===0||!Le||!nr:!1,$r=ae!==null?$e||!Le||Xe:he||!Le,uo=()=>{Le&&(Wt.current=!0)},Fo=()=>{var Je;!ae||!ae.onUpdateCodeBlockHandler||!Wt.current||zr||(Wt.current=!1,(Je=ae.onUpdateCodeBlockHandler)==null||Je.call(ae))},Do=Je=>{var xt;ae&&(Fo(),(xt=ae.onSelectCodeSnippetTabHandler)==null||xt.call(ae,Je))},fo=Je=>{var xt;ae&&(uo(),(xt=ae.onRemoveCodeSnippetTabHandler)==null||xt.call(ae,Je))},ho=()=>{var Je;ae&&(uo(),(Je=ae.onAddCodeSnippetTabHandler)==null||Je.call(ae))};fe.useEffect(()=>{Le||(Wt.current=!1)},[Le]),fe.useEffect(()=>{Wt.current=!1},[ae==null?void 0:ae.activeSnippetId]);const xa=Je=>{var xt;uo(),ae?(xt=ae.onChangeCodeSnippetValueHandler)==null||xt.call(ae,Je):ee(Je)},Cn=ae?((nn=me.find(Je=>Je.id===oe))==null?void 0:nn.code)||"":$t,ut=Rt,en=tr||$e||Xe,ht=Rt,Vt=tr||$e,Rr=Rt,Tt=tr||$e,wi={success:"constructive",warn:"cautionary",error:"destructive",...w},xi=Oe.length,go=H!==void 0,tn=xi===0?0:Math.min(Math.max(go?H:Ge,0),xi-1),ur=Oe[tn],po=ur?wi[ur.status]:wi.success,Ji=Je=>{go||We(Je),B==null||B(Je)},ar=Je=>{rt(Je),C==null||C(Je)},ei=Je=>{$e||Ji(Je)},xn=()=>{if(!Le||$e)return;const Je={id:`hint-${Dt.current+1}`,value:"Новый hint",status:"success"};Dt.current+=1;const xt=[...Oe,Je];ar(xt);const Xn=xt.length-1;Ji(Xn),k==null||k(Je,xt)},bl=Je=>{if(!Le||$e||!Oe[Je])return;const xt=Oe[Je],Xn=Oe.filter((Hr,Nc)=>Nc!==Je);ar(Xn);const Qi=Xn.length===0?0:Math.min(Je,Xn.length-1);Ji(Qi),W==null||W(Je,xt,Xn)},Si=Je=>{if(!ur||$e)return;const xt=Oe.map((Xn,Qi)=>Qi===tn?{...Xn,value:Je}:Xn);ar(xt),M==null||M(tn,Je)},an=Je=>{if(!ur||$e)return;const xt=Oe.map((Xn,Qi)=>Qi===tn?{...Xn,status:Je}:Xn);ar(xt),O==null||O(tn,Je)};fe.useEffect(()=>{Ye(t)},[t]),fe.useEffect(()=>{Ke(r)},[r]),fe.useEffect(()=>{gt(o)},[o]),fe.useEffect(()=>{mt(u)},[u]),fe.useEffect(()=>{tt(y)},[y]),fe.useEffect(()=>{rt(ww(ne))},[ne]),fe.useEffect(()=>{Dt.current=Oe.reduce((Je,xt)=>{const[,Xn="0"]=xt.id.match(/(\d+)$/)??[],Qi=Number(Xn);return Number.isNaN(Qi)?Je:Math.max(Je,Qi)},0)},[Oe]),fe.useEffect(()=>{if(xi===0){Ji(0);return}tn>xi-1&&Ji(xi-1)},[tn,xi]);const Ic=async()=>{if(!$e){try{await navigator.clipboard.writeText(Cn),at("copied")}catch{at("error")}ct.current!==null&&window.clearTimeout(ct.current),ct.current=window.setTimeout(()=>{at("idle")},1400)}};fe.useEffect(()=>()=>{ct.current!==null&&window.clearTimeout(ct.current)},[]);const Xt=$.filter(Je=>$t.toLowerCase().includes(Je.pattern.toLowerCase())),ml=Math.max($t.split(`
|
|
302
|
+
`).length,1),Va=Math.max(200,ml*24+32),yl=ft.trim().length>0,Ki=fe.useMemo(()=>yw(un),[un]),mn=fe.useMemo(()=>x_($t,un),[$t,un]);return D.jsx(cf,{...ve,type:se,isColored:ue,isLoading:he,className:Nt.clsx("w-full !p-0",ie),children:D.jsx(fh,{column:!0,className:"w-full",children:D.jsxs("div",{className:"overflow-hidden rounded-[inherit] border border-(--chart-1)/35 bg-(--background)",children:[D.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4 border-b border-(--chart-1)/30 bg-(--muted)/40 px-4 py-3",children:[D.jsxs("div",{className:"flex items-center gap-3",children:[D.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[ae?me.map((Je,xt)=>{const Xn=Je.id===oe;return D.jsxs("div",{className:"flex items-center gap-1",children:[D.jsx("button",{type:"button",onClick:()=>Do(Je.id),disabled:$e,className:Nt.clsx("flex cursor-pointer items-center justify-center rounded-full p-1 transition-opacity",!Le&&"opacity-60",$e&&"cursor-not-allowed opacity-60"),"aria-label":Je.language||"untitled",children:D.jsx("span",{className:Nt.clsx("h-3 w-3 rounded-full border transition-all",Xn?"border-(--chart-1) bg-(--chart-1)":"border-(--chart-1)/40 bg-(--chart-1)/20")})}),me.length>1&&Le&&Xn?D.jsx("button",{type:"button",disabled:$e,className:Nt.clsx("text-xs text-(--muted-foreground)",$e&&"cursor-not-allowed opacity-60"),onClick:()=>fo(Je.id),children:"×"}):null]},`snippet-dot-${Je.id}-${xt}`)}):D.jsx("div",{"aria-hidden":"true",className:"h-3 w-3 rounded-full bg-(--chart-1)/80"}),ae&&Le?D.jsx("button",{type:"button",disabled:$e,className:"flex h-4 w-4 items-center justify-center rounded-full border border-dashed border-(--border) text-[10px] text-(--muted-foreground)",onClick:ho,children:"+"}):null]}),D.jsxs("div",{className:"flex flex-col",children:[D.jsx(mi,{typography:"Caption",color:"chart-1",value:Fe,onValueChange:Je=>{Ye(Je),n==null||n(Je)},className:"!h-auto",contentClassName:"text-xs font-mono uppercase tracking-widest text-(--chart-1)/75",isLoading:$e,isEditModeOn:ht?void 0:!1,isEditModeDisabled:Vt}),D.jsx(mi,{typography:"CompactCaption",color:"muted-foreground",value:Ve,onValueChange:Je=>{Ke(Je),i==null||i(Je)},className:"!h-auto",contentClassName:"font-mono uppercase tracking-[0.12em]",isLoading:$e,isEditModeOn:Rr?void 0:!1,isEditModeDisabled:Tt})]})]}),D.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[ae?D.jsx(mi,{typography:"Caption",color:"chart-1",value:un,onValueChange:Je=>{var xt;uo(),(xt=ae.onChangeCodeSnippetLanguageHandler)==null||xt.call(ae,Je)},className:"w-[280px] max-w-full !h-auto",contentClassName:"text-xs font-mono uppercase tracking-widest text-(--chart-1)",placeholder:ae.languagePlaceholder||"Language (e.g. typescript)",isLoading:$e,isEditModeOn:ut?void 0:!1,isEditModeDisabled:en,onEditModeChange:Je=>{Je||Fo()}}):D.jsx("span",{className:"text-xs font-mono text-(--chart-1)/40",children:`// ${un}`}),ae?D.jsxs("span",{className:"text-xs font-mono text-(--chart-1)/60",children:["SNIPPETS: ",me.length]}):D.jsx("span",{className:"text-xs font-mono text-(--chart-1)/60",children:`// ${un}`})]})]}),D.jsxs("div",{className:"relative",children:[D.jsx("div",{className:"absolute bottom-0 left-0 top-0 flex w-12 flex-col items-end border-r border-(--chart-1)/30 bg-(--muted)/40 pr-2 pt-4 text-xs font-mono text-(--chart-1)/30",children:$t.split(`
|
|
303
|
+
`).map((Je,xt)=>D.jsx("div",{className:"leading-6",children:xt+1},`line-${xt+1}`))}),Le?D.jsx("textarea",{value:$t,onChange:Je=>xa(Je.target.value),className:Nt.clsx("w-full resize-none overflow-hidden bg-transparent p-4 pl-14 font-mono text-sm leading-6 text-(--muted-foreground) focus:outline-none",$r&&"pointer-events-none opacity-60"),placeholder:(ae==null?void 0:ae.snippetPlaceholder)||"Paste code snippet",spellCheck:!1,style:{tabSize:2,height:Va},disabled:$r,onBlur:Fo}):D.jsx("pre",{className:"codebrick-highlight hljs w-full overflow-hidden p-4 pl-14 font-mono text-sm leading-6",style:{height:Va},children:D.jsx("code",{className:Nt.clsx(Ki&&`language-${Ki}`),dangerouslySetInnerHTML:{__html:mn||" "}})})]}),Xt.length>0?D.jsxs("div",{className:"border-t border-(--destructive)/30 bg-(--destructive)/10 px-4 py-2",children:[D.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono text-(--destructive)",children:[D.jsx("span",{children:"⚠"}),D.jsx("span",{children:"CODE SMELL DETECTED:"})]}),Xt.map((Je,xt)=>D.jsxs("div",{className:"mt-1 pl-5 text-xs font-mono text-(--destructive)/80",children:["→ ",Je.message]},`${Je.pattern}-${xt}`))]}):null,xi>0||Le?D.jsxs("div",{className:"border-t border-(--chart-1)/30",children:[D.jsxs("div",{className:"flex w-full items-center gap-2 px-4 py-2 text-left text-xs font-mono text-(--chart-1)/60 transition-colors hover:bg-(--chart-1)/5",children:[D.jsx("button",{type:"button",onClick:()=>Ce(!Q),className:"cursor-pointer",disabled:$e,children:D.jsx("span",{children:Q?"▼":"▶"})}),D.jsx(mi,{typography:"Caption",color:"chart-1",value:st,onValueChange:Je=>{gt(Je),l==null||l(Je)},className:"!h-auto !w-auto",contentClassName:"text-xs font-mono uppercase tracking-widest text-(--chart-1)/60",isLoading:$e,isEditModeOn:ht?void 0:!1,isEditModeDisabled:Vt}),D.jsxs("span",{children:["(",xi,")"]}),D.jsxs("div",{className:Nt.clsx("ml-auto flex h-6 items-center gap-1",!Le&&"pointer-events-none opacity-0"),children:[D.jsx("button",{type:"button",onClick:xn,disabled:$e,"aria-label":"Add hint",className:Nt.clsx("flex h-6 w-6 items-center justify-center rounded border border-(--chart-1)/40 text-xs font-mono text-(--chart-1)/80",$e&&"cursor-not-allowed opacity-60"),children:"+"}),D.jsx("button",{type:"button",onClick:()=>bl(tn),disabled:$e||xi===0,"aria-label":"Remove hint",className:Nt.clsx("flex h-6 w-6 items-center justify-center rounded border border-(--chart-1)/25 text-xs font-mono text-(--chart-1)/60",($e||xi===0)&&"cursor-not-allowed opacity-60"),children:"×"})]})]}),Q?D.jsxs("div",{className:"px-4 pb-3",children:[D.jsx("div",{className:"mb-2 flex gap-2",children:Oe.map((Je,xt)=>D.jsx("button",{onClick:()=>ei(xt),disabled:$e,className:Nt.clsx("h-6 w-6 border text-xs font-mono transition-all",xt===tn?"border-(--chart-1) bg-(--chart-1)/20 text-(--chart-1)":"border-(--chart-1)/30 text-(--chart-1)/50 hover:border-(--chart-1)/60"),children:xt+1},Je.id))}),ur?D.jsx("div",{className:"mb-2 min-h-11",children:D.jsx("div",{className:Nt.clsx("max-w-[180px]",!Le&&"pointer-events-none opacity-0"),children:D.jsx($m,{type:"default",options:k_,value:ur.status,placeholder:"Color",disabled:$e||!Le,onValueChange:Je=>{R_(Je)&&an(Je)}})})}):null,ur?D.jsx("div",{className:"border-l-2 bg-(--muted)/30 p-3 font-mono text-sm",style:{borderColor:`var(--${po})`,color:`var(--${po})`},children:D.jsx(mi,{typography:"BodySmall",color:po,value:ur.value,onValueChange:Si,className:"!h-auto",contentClassName:"font-mono",isLoading:$e,isEditModeOn:ht?void 0:!1,isEditModeDisabled:Vt})}):null]}):null]}):null,D.jsxs("div",{className:"border-t border-(--chart-1)/30",children:[D.jsxs("div",{className:"flex items-center justify-between bg-(--muted)/40 px-4 py-2",children:[D.jsx(mi,{typography:"Caption",color:"chart-1",value:it,onValueChange:Je=>{mt(Je),p==null||p(Je)},className:"!h-auto !w-auto",contentClassName:"text-xs font-mono uppercase tracking-widest text-(--chart-1)/60",isLoading:$e,isEditModeOn:ht?void 0:!1,isEditModeDisabled:Vt}),D.jsx("button",{onClick:Ic,disabled:$e||(ae?Xe:!1),className:Nt.clsx("px-4 py-1.5 font-mono text-sm transition-all",Ft==="copied"?"bg-(--constructive)/20 text-(--constructive)":Ft==="error"?"bg-(--destructive)/20 text-(--destructive)":"bg-(--chart-1) text-(--background) hover:brightness-110"),children:Ft==="copied"?"COPIED":Ft==="error"?"COPY ERROR":"COPY"})]}),yl?D.jsx("div",{className:"min-h-[80px] p-4 font-mono text-sm",children:D.jsx(mi,{typography:"BodySmall",color:"chart-1",value:ft,onValueChange:Je=>{tt(Je),S==null||S(Je)},className:"!h-auto",contentClassName:"font-mono text-(--chart-1)/30",isLoading:$e,isEditModeOn:ht?void 0:!1,isEditModeDisabled:Vt})}):null]})]})})})},M_=xw;function __(e,t=[]){let n=[];function r(o,l){const u=L.createContext(l);u.displayName=o+"Context";const p=n.length;n=[...n,l];const y=w=>{var H;const{scope:C,children:M,...O}=w,k=((H=C==null?void 0:C[e])==null?void 0:H[p])||u,W=L.useMemo(()=>O,Object.values(O));return D.jsx(k.Provider,{value:W,children:M})};y.displayName=o+"Provider";function S(w,C){var k;const M=((k=C==null?void 0:C[e])==null?void 0:k[p])||u,O=L.useContext(M);if(O)return O;if(l!==void 0)return l;throw new Error(`\`${w}\` must be used within \`${o}\``)}return[y,S]}const i=()=>{const o=n.map(l=>L.createContext(l));return function(u){const p=(u==null?void 0:u[e])||o;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:p}}),[u,p])}};return i.scopeName=e,[r,P_(i,...t)]}function P_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((u,{useScope:p,scopeName:y})=>{const w=p(o)[`__scope${y}`];return{...u,...w}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Wd(e){const t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var jo=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},O_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qp=O_.reduce((e,t)=>{const n=Rb(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),$p={exports:{}},ev={};/**
|
|
78
304
|
* @license React
|
|
79
305
|
* use-sync-external-store-shim.production.js
|
|
80
306
|
*
|
|
@@ -82,7 +308,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
82
308
|
*
|
|
83
309
|
* This source code is licensed under the MIT license found in the
|
|
84
310
|
* LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/var
|
|
311
|
+
*/var Sw;function A_(){if(Sw)return ev;Sw=1;var e=fe;function t(w,C){return w===C&&(w!==0||1/w===1/C)||w!==w&&C!==C}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function u(w,C){var M=C(),O=r({inst:{value:M,getSnapshot:C}}),k=O[0].inst,W=O[1];return o(function(){k.value=M,k.getSnapshot=C,p(k)&&W({inst:k})},[w,M,C]),i(function(){return p(k)&&W({inst:k}),w(function(){p(k)&&W({inst:k})})},[w]),l(M),M}function p(w){var C=w.getSnapshot;w=w.value;try{var M=C();return!n(w,M)}catch{return!0}}function y(w,C){return C()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:u;return ev.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:S,ev}var tv={};/**
|
|
86
312
|
* @license React
|
|
87
313
|
* use-sync-external-store-shim.development.js
|
|
88
314
|
*
|
|
@@ -90,46 +316,67 @@ React keys must be passed directly to JSX without using spread:
|
|
|
90
316
|
*
|
|
91
317
|
* This source code is licensed under the MIT license found in the
|
|
92
318
|
* LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/var xs;function pu(){return xs||(xs=1,process.env.NODE_ENV!=="production"&&function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=g();if(!u){var x=g();s(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}x=i({inst:{value:m,getSnapshot:g}});var y=x[0].inst,b=x[1];return l(function(){y.value=m,y.getSnapshot=g,n(y)&&b({inst:y})},[v,m,g]),a(function(){return n(y)&&b({inst:y}),v(function(){n(y)&&b({inst:y})})},[v]),c(m),m}function n(v){var g=v.getSnapshot;v=v.value;try{var m=g();return!s(v,m)}catch{return!0}}function r(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=$,s=typeof Object.is=="function"?Object.is:e,i=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,d=!1,u=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;lr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),lr}process.env.NODE_ENV==="production"?ir.exports=fu():ir.exports=pu();var mu=ir.exports;function hu(){return mu.useSyncExternalStore(gu,()=>!0,()=>!1)}function gu(){return()=>{}}var cr="Avatar",[vu,vv]=cu(cr),[bu,Ss]=vu(cr),Es=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=f.useState("idle");return w.jsx(bu,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:w.jsx(sr.span,{...r,ref:t})})});Es.displayName=cr;var Cs="AvatarImage",Ts=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=Ss(Cs,n),a=yu(r,s),l=Je(c=>{o(c),i.onImageLoadingStatusChange(c)});return be(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?w.jsx(sr.img,{...s,ref:t,src:r}):null});Ts.displayName=Cs;var Ps="AvatarFallback",_s=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Ss(Ps,n),[i,a]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&s.imageLoadingStatus!=="loaded"?w.jsx(sr.span,{...o,ref:t}):null});_s.displayName=Ps;function ks(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function yu(e,{referrerPolicy:t,crossOrigin:n}){const r=hu(),o=f.useRef(null),s=(()=>r?(o.current||(o.current=new window.Image),o.current):null)(),[i,a]=f.useState(()=>ks(s,e));return be(()=>{a(ks(s,e))},[s,e]),be(()=>{const l=u=>()=>{a(u)};if(!s)return;const c=l("loaded"),d=l("error");return s.addEventListener("load",c),s.addEventListener("error",d),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",c),s.removeEventListener("error",d)}},[s,n,t]),i}var wu=Es,xu=Ts,Su=_s;function Eu({className:e,...t}){return w.jsx(wu,{"data-slot":"avatar",className:X("relative flex size-8 shrink-0 overflow-hidden rounded-full border-2",e),...t})}function Cu({className:e,...t}){return w.jsx(xu,{"data-slot":"avatar-image",className:X("aspect-square size-full",e),...t})}function Tu({className:e,...t}){return w.jsx(Su,{"data-slot":"avatar-fallback",className:X("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const dr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in dr)Object.freeze(dr[e]);const Lt=Object.freeze(dr),Ms=Object.create(null);for(const e in Lt)Object.hasOwn(Lt,e)&&(Ms[Lt[e]]=e);const pe={to:{},get:{}};pe.get=function(e){const t=e.slice(0,3).toLowerCase();let n,r;switch(t){case"hsl":{n=pe.get.hsl(e),r="hsl";break}case"hwb":{n=pe.get.hwb(e),r="hwb";break}default:{n=pe.get.rgb(e),r="rgb";break}}return n?{model:r,value:n}:null},pe.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,o=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,s=/^(\w+)$/;let i=[0,0,0,1],a,l,c;if(a=e.match(n)){for(c=a[2],a=a[1],l=0;l<3;l++){const d=l*2;i[l]=Number.parseInt(a.slice(d,d+2),16)}c&&(i[3]=Number.parseInt(c,16)/255)}else if(a=e.match(t)){for(a=a[1],c=a[3],l=0;l<3;l++)i[l]=Number.parseInt(a[l]+a[l],16);c&&(i[3]=Number.parseInt(c+c,16)/255)}else if(a=e.match(r)){for(l=0;l<3;l++)i[l]=Number.parseFloat(a[l+1]);a[4]&&(i[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else if(a=e.match(o)){for(l=0;l<3;l++)i[l]=Math.round(Number.parseFloat(a[l+1])*2.55);a[4]&&(i[3]=a[5]?Number.parseFloat(a[4])*.01:Number.parseFloat(a[4]))}else return(a=e.toLowerCase().match(s))?a[1]==="transparent"?[0,0,0,0]:Object.hasOwn(Lt,a[1])?(i=Lt[a[1]].slice(),i[3]=1,i):null:null;for(l=0;l<3;l++)i[l]=Qe(i[l],0,255);return i[3]=Qe(i[3],0,1),i},pe.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,s=Qe(Number.parseFloat(n[2]),0,100),i=Qe(Number.parseFloat(n[3]),0,100),a=Qe(Number.isNaN(r)?1:r,0,1);return[o,s,i,a]}return null},pe.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),o=(Number.parseFloat(n[1])%360+360)%360,s=Qe(Number.parseFloat(n[2]),0,100),i=Qe(Number.parseFloat(n[3]),0,100),a=Qe(Number.isNaN(r)?1:r,0,1);return[o,s,i,a]}return null},pe.to.hex=function(...e){return"#"+an(e[0])+an(e[1])+an(e[2])+(e[3]<1?an(Math.round(e[3]*255)):"")},pe.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},pe.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},pe.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},pe.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},pe.to.keyword=function(...e){return Ms[e.slice(0,3)]};function Qe(e,t,n){return Math.min(Math.max(t,e),n)}function an(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const ur={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in ur)Object.freeze(ur[e]);const jt=Object.freeze(ur),As={};for(const e of Object.keys(jt))As[jt[e]]=e;const F={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},He=(6/29)**3;function gt(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function vt(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(F)){if(!("channels"in F[e]))throw new Error("missing channels property: "+e);if(!("labels"in F[e]))throw new Error("missing channel labels property: "+e);if(F[e].labels.length!==F[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=F[e];delete F[e].channels,delete F[e].labels,Object.defineProperty(F[e],"channels",{value:t}),Object.defineProperty(F[e],"labels",{value:n})}F.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=s-o;let a,l;switch(s){case o:{a=0;break}case t:{a=(n-r)/i;break}case n:{a=2+(r-t)/i;break}case r:{a=4+(t-n)/i;break}}a=Math.min(a*60,360),a<0&&(a+=360);const c=(o+s)/2;return s===o?l=0:c<=.5?l=i/(s+o):l=i/(2-s-o),[a,l*100,c*100]},F.rgb.hsv=function(e){let t,n,r,o,s;const i=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(i,a,l),d=c-Math.min(i,a,l),u=function(p){return(c-p)/6/d+1/2};if(d===0)o=0,s=0;else{switch(s=d/c,t=u(i),n=u(a),r=u(l),c){case i:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,s*100,c*100]},F.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=F.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,s*100,r*100]},F.rgb.oklab=function(e){const t=vt(e[0]/255),n=vt(e[1]/255),r=vt(e[2]/255),o=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),s=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),i=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),a=.2104542553*o+.793617785*s-.0040720468*i,l=1.9779984951*o-2.428592205*s+.4505937099*i,c=.0259040371*o+.7827717662*s-.808675766*i;return[a*100,l*100,c*100]},F.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),s=(1-t-o)/(1-o)||0,i=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[s*100,i*100,a*100,o*100]};function Pu(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}F.rgb.keyword=function(e){const t=As[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const o of Object.keys(jt)){const s=jt[o],i=Pu(e,s);i<n&&(n=i,r=o)}return r},F.keyword.rgb=function(e){return[...jt[e]]},F.rgb.xyz=function(e){const t=vt(e[0]/255),n=vt(e[1]/255),r=vt(e[2]/255),o=t*.4124564+n*.3575761+r*.1804375,s=t*.2126729+n*.7151522+r*.072175,i=t*.0193339+n*.119192+r*.9503041;return[o*100,s*100,i*100]},F.rgb.lab=function(e){const t=F.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>He?n**(1/3):7.787*n+16/116,r=r>He?r**(1/3):7.787*r+16/116,o=o>He?o**(1/3):7.787*o+16/116;const s=116*r-16,i=500*(n-r),a=200*(r-o);return[s,i,a]},F.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s;if(n===0)return s=r*255,[s,s,s];const i=r<.5?r*(1+n):r+n-r*n,a=2*r-i,l=[0,0,0];for(let c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[c]=s*255;return l},F.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s;const i=(r+n)/2,a=r===0?2*o/(s+o):2*n/(r+n);return[t,a*100,i*100]},F.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},F.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,s*100,i*100]},F.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,i&1&&(s=1-s);const l=n+s*(a-n);let c,d,u;switch(i){default:case 6:case 0:{c=a,d=l,u=n;break}case 1:{c=l,d=a,u=n;break}case 2:{c=n,d=a,u=l;break}case 3:{c=n,d=l,u=a;break}case 4:{c=l,d=n,u=a;break}case 5:{c=a,d=n,u=l;break}}return[c*255,d*255,u*255]},F.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[s*255,i*255,a*255]},F.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=t*3.2404542+n*-1.5371385+r*-.4985314,s=t*-.969266+n*1.8760108+r*.041556,i=t*.0556434+n*-.2040259+r*1.0572252,o=gt(o),s=gt(s),i=gt(i),[o*255,s*255,i*255]},F.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>He?t**(1/3):7.787*t+16/116,n=n>He?n**(1/3):7.787*n+16/116,r=r>He?r**(1/3):7.787*r+16/116;const o=116*n-16,s=500*(t-n),i=200*(n-r);return[o,s,i]},F.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),s=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),i=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),a=.2104542553*o+.793617785*s-.0040720468*i,l=1.9779984951*o-2.428592205*s+.4505937099*i,c=.0259040371*o+.7827717662*s-.808675766*i;return[a*100,l*100,c*100]},F.oklab.oklch=function(e){return F.lab.lch(e)},F.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=(.999999998*t+.396337792*n+.215803758*r)**3,s=(1.000000008*t-.105561342*n-.063854175*r)**3,i=(1.000000055*t-.089484182*n-1.291485538*r)**3,a=1.227013851*o-.55779998*s+.281256149*i,l=-.040580178*o+1.11225687*s-.071676679*i,c=-.076381285*o-.421481978*s+1.58616322*i;return[a*100,l*100,c*100]},F.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=(t+.3963377774*n+.2158037573*r)**3,s=(t-.1055613458*n-.0638541728*r)**3,i=(t-.0894841775*n-1.291485548*r)**3,a=gt(4.0767416621*o-3.3077115913*s+.2309699292*i),l=gt(-1.2684380046*o+2.6097574011*s-.3413193965*i),c=gt(-.0041960863*o-.7034186147*s+1.707614701*i);return[a*255,l*255,c*255]},F.oklch.oklab=function(e){return F.lch.lab(e)},F.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,s,i;s=(t+16)/116,o=n/500+s,i=s-r/200;const a=s**3,l=o**3,c=i**3;return s=a>He?a:(s-16/116)/7.787,o=l>He?l:(o-16/116)/7.787,i=c>He?c:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]},F.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const i=Math.sqrt(n*n+r*r);return[t,i,o]},F.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,s=n*Math.cos(o),i=n*Math.sin(o);return[t,s,i]},F.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let s=t===null?F.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return s===2&&(i+=60),i},F.hsv.ansi16=function(e){return F.rgb.ansi16(F.hsv.rgb(e),e[2])},F.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},F.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,s=(t>>2&1)*n*255;return[r,o,s]},F.ansi256.rgb=function(e){if(e=e[0],e>=232){const s=(e-232)*10+8;return[s,s,s]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]},F.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n},F.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));const r=Number.parseInt(n,16),o=r>>16&255,s=r>>8&255,i=r&255;return[o,s,i]},F.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a;const l=i<1?s/(1-i):0;return i<=0?a=0:o===t?a=(n-r)/i%6:o===n?a=2+(r-t)/i:a=4+(t-n)/i,a/=6,a%=1,[a*360,i*100,l*100]},F.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]},F.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]},F.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let l=0;switch(Math.floor(s)){case 0:{o[0]=1,o[1]=i,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=i;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=i,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]},F.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]},F.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]},F.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]},F.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let s=0;return o<1&&(s=(r-o)/(1-o)),[e[0],o*100,s*100]},F.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},F.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},F.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},F.gray.hsl=function(e){return[0,0,e[0]]},F.gray.hsv=F.gray.hsl,F.gray.hwb=function(e){return[0,100,e[0]]},F.gray.cmyk=function(e){return[0,0,0,e[0]]},F.gray.lab=function(e){return[e[0],0,0]},F.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r},F.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function _u(){const e={},t=Object.keys(F);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function ku(e){const t=_u(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),o=Object.keys(F[r]);for(let{length:s}=o,i=0;i<s;i++){const a=o[i],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function Mu(e,t){return function(n){return t(e(n))}}function Au(e,t){const n=[t[e].parent,e];let r=F[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=Mu(F[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function Nu(e){const t=ku(e),n={},r=Object.keys(t);for(let{length:o}=r,s=0;s<o;s++){const i=r[s];t[i].parent!==null&&(n[i]=Au(i,t))}return n}const ge={},Iu=Object.keys(F);function Ou(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Ru(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let{length:s}=o,i=0;i<s;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of Iu){ge[e]={},Object.defineProperty(ge[e],"channels",{value:F[e].channels}),Object.defineProperty(ge[e],"labels",{value:F[e].labels});const t=Nu(e),n=Object.keys(t);for(const r of n){const o=t[r];ge[e][r]=Ru(o),ge[e][r].raw=Ou(o)}}const Ns=["keyword","gray","hex"],fr={};for(const e of Object.keys(ge))fr[[...ge[e].labels].sort().join("")]=e;const Dt={};function ce(e,t){if(!(this instanceof ce))return new ce(e,t);if(t&&t in Ns&&(t=null),t&&!(t in ge))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ce)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const o=pe.get(e);if(o===null)throw new Error("Unable to parse color from string: "+e);this.model=o.model,r=ge[this.model].channels,this.color=o.value.slice(0,r),this.valpha=typeof o.value[r]=="number"?o.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=ge[this.model].channels;const o=Array.prototype.slice.call(e,0,r);this.color=pr(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const s=o.sort().join("");if(!(s in fr))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=fr[s];const{labels:i}=ge[this.model],a=[];for(n=0;n<i.length;n++)a.push(e[i[n]]);this.color=pr(a)}if(Dt[this.model])for(r=ge[this.model].channels,n=0;n<r;n++){const o=Dt[this.model][n];o&&(this.color[n]=o(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}ce.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in pe.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return pe.to[t.model](...n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return pe.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=ge[this.model],{labels:n}=ge[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new ce([...this.color.map(ju(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new ce([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:ue("rgb",0,me(255)),green:ue("rgb",1,me(255)),blue:ue("rgb",2,me(255)),hue:ue(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:ue("hsl",1,me(100)),lightness:ue("hsl",2,me(100)),saturationv:ue("hsv",1,me(100)),value:ue("hsv",2,me(100)),chroma:ue("hcg",1,me(100)),gray:ue("hcg",2,me(100)),white:ue("hwb",1,me(100)),wblack:ue("hwb",2,me(100)),cyan:ue("cmyk",0,me(100)),magenta:ue("cmyk",1,me(100)),yellow:ue("cmyk",2,me(100)),black:ue("cmyk",3,me(100)),x:ue("xyz",0,me(95.047)),y:ue("xyz",1,me(100)),z:ue("xyz",2,me(108.833)),l:ue("lab",0,me(100)),a:ue("lab",1),b:ue("lab",2),keyword(e){return e!==void 0?new ce(e):ge[this.model].keyword(this.color)},hex(e){return e!==void 0?new ce(e):pe.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new ce(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),pe.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const o=r/255;t[n]=o<=.04045?o/12.92:((o+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return ce.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=t===void 0?.5:t,s=2*o-1,i=n.alpha()-r.alpha(),a=((s*i===-1?s:(s+i)/(1+s*i))+1)/2,l=1-a;return ce.rgb(a*n.red()+l*r.red(),a*n.green()+l*r.green(),a*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(ge)){if(Ns.includes(e))continue;const{channels:t}=ge[e];ce.prototype[e]=function(...n){return this.model===e?new ce(this):n.length>0?new ce(n,e):new ce([...Du(ge[this.model][e].raw(this.color)),this.valpha],e)},ce[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=pr(n,t)),new ce(r,e)}}function Lu(e,t){return Number(e.toFixed(t))}function ju(e){return function(t){return Lu(t,e)}}function ue(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(Dt[r]||(Dt[r]=[]))[t]=n;return e=e[0],function(r){let o;return r!==void 0?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function me(e){return function(t){return Math.max(0,Math.min(e,t))}}function Du(e){return Array.isArray(e)?e:[e]}function pr(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}function $u(e){const t=zu(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Fu);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function zu(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Hu(o),a=Vu(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bu=Symbol("radix.slottable");function Fu(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bu}function Vu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Hu(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gu=Wu.reduce((e,t)=>{const n=$u(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Is=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Uu="VisuallyHidden",Yu=f.forwardRef((e,t)=>w.jsx(Gu.span,{...e,ref:t,style:{...Is,...e.style}}));Yu.displayName=Uu;function qu(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Xu(o,...t)]}function Xu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Os(e){const t=Ku(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Ju);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ku(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=ef(o),a=Qu(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zu=Symbol("radix.slottable");function Ju(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zu}function Qu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ef(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Rs(e){const t=e+"CollectionProvider",[n,r]=qu(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:x,children:y}=m,b=$.useRef(null),h=$.useRef(new Map).current;return w.jsx(o,{scope:x,itemMap:h,collectionRef:b,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=Os(a),c=$.forwardRef((m,x)=>{const{scope:y,children:b}=m,h=s(a,y),S=le(x,h.collectionRef);return w.jsx(l,{ref:S,children:b})});c.displayName=a;const d=e+"CollectionItemSlot",u="data-radix-collection-item",p=Os(d),v=$.forwardRef((m,x)=>{const{scope:y,children:b,...h}=m,S=$.useRef(null),E=le(x,S),T=s(d,y);return $.useEffect(()=>(T.itemMap.set(S,{ref:S,...h}),()=>void T.itemMap.delete(S))),w.jsx(p,{[u]:"",ref:E,children:b})});v.displayName=d;function g(m){const x=s(e+"CollectionConsumer",m);return $.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const h=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(x.itemMap.values()).sort((T,M)=>h.indexOf(T.ref.current)-h.indexOf(M.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:c,ItemSlot:v},g,r]}function ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var tf=f[" useInsertionEffect ".trim().toString()]||be;function mr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=nf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const u=d.current;u!==a&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=f.useCallback(d=>{var u;if(a){const p=rf(d)?d(e):d;p!==e&&((u=i.current)==null||u.call(i,p))}else s(d)},[a,e,s,i]);return[l,c]}function nf({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return tf(()=>{s.current=t},[t]),f.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function rf(e){return typeof e=="function"}var of=f[" useId ".trim().toString()]||(()=>{}),sf=0;function hr(e){const[t,n]=f.useState(of());return be(()=>{e||n(r=>r??String(sf++))},[e]),e||(t?`radix-${t}`:"")}var af=f.createContext(void 0);function Ls(e){const t=f.useContext(af);return e||t||"ltr"}function lf(e){const t=cf(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(uf);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function cf(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=pf(o),a=ff(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var df=Symbol("radix.slottable");function uf(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===df}function ff(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function pf(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],js=mf.reduce((e,t)=>{const n=lf(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hf(e,t){e&&Vt.flushSync(()=>e.dispatchEvent(t))}function gf(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var vf="DismissableLayer",gr="dismissableLayer.update",bf="dismissableLayer.pointerDownOutside",yf="dismissableLayer.focusOutside",Ds,$s=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=f.useContext($s),[d,u]=f.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=f.useState({}),g=le(t,M=>u(M)),m=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=d?m.indexOf(d):-1,h=c.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,E=Sf(M=>{const _=M.target,A=[...c.branches].some(P=>P.contains(_));!S||A||(o==null||o(M),i==null||i(M),M.defaultPrevented||a==null||a())},p),T=Ef(M=>{const _=M.target;[...c.branches].some(P=>P.contains(_))||(s==null||s(M),i==null||i(M),M.defaultPrevented||a==null||a())},p);return gf(M=>{b===c.layers.size-1&&(r==null||r(M),!M.defaultPrevented&&a&&(M.preventDefault(),a()))},p),f.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ds=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Bs(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ds)}},[d,p,n,c]),f.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Bs())},[d,c]),f.useEffect(()=>{const M=()=>v({});return document.addEventListener(gr,M),()=>document.removeEventListener(gr,M)},[]),w.jsx(js.div,{...l,ref:g,style:{pointerEvents:h?S?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,E.onPointerDownCapture)})});zs.displayName=vf;var wf="DismissableLayerBranch",xf=f.forwardRef((e,t)=>{const n=f.useContext($s),r=f.useRef(null),o=le(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),w.jsx(js.div,{...e,ref:o})});xf.displayName=wf;function Sf(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Fs(bf,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ef(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Fs(yf,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Bs(){const e=new CustomEvent(gr);document.dispatchEvent(e)}function Fs(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hf(o,s):o.dispatchEvent(s)}function Cf(e){const t=Tf(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(_f);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Tf(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Mf(o),a=kf(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Pf=Symbol("radix.slottable");function _f(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Pf}function kf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Mf(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Af=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nf=Af.reduce((e,t)=>{const n=Cf(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),vr="focusScope.autoFocusOnMount",br="focusScope.autoFocusOnUnmount",Vs={bubbles:!1,cancelable:!0},If="FocusScope",Hs=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=f.useState(null),c=Je(o),d=Je(s),u=f.useRef(null),p=le(t,m=>l(m)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let m=function(h){if(v.paused||!a)return;const S=h.target;a.contains(S)?u.current=S:et(u.current,{select:!0})},x=function(h){if(v.paused||!a)return;const S=h.relatedTarget;S!==null&&(a.contains(S)||et(u.current,{select:!0}))},y=function(h){if(document.activeElement===document.body)for(const E of h)E.removedNodes.length>0&&et(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,v.paused]),f.useEffect(()=>{if(a){Us.add(v);const m=document.activeElement;if(!a.contains(m)){const y=new CustomEvent(vr,Vs);a.addEventListener(vr,c),a.dispatchEvent(y),y.defaultPrevented||(Of($f(Ws(a)),{select:!0}),document.activeElement===m&&et(a))}return()=>{a.removeEventListener(vr,c),setTimeout(()=>{const y=new CustomEvent(br,Vs);a.addEventListener(br,d),a.dispatchEvent(y),y.defaultPrevented||et(m??document.body,{select:!0}),a.removeEventListener(br,d),Us.remove(v)},0)}}},[a,c,d,v]);const g=f.useCallback(m=>{if(!n&&!r||v.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[h,S]=Rf(b);h&&S?!m.shiftKey&&y===S?(m.preventDefault(),n&&et(h,{select:!0})):m.shiftKey&&y===h&&(m.preventDefault(),n&&et(S,{select:!0})):y===b&&m.preventDefault()}},[n,r,v.paused]);return w.jsx(Nf.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});Hs.displayName=If;function Of(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(et(r,{select:t}),document.activeElement!==n)return}function Rf(e){const t=Ws(e),n=Gs(t,e),r=Gs(t.reverse(),e);return[n,r]}function Ws(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gs(e,t){for(const n of e)if(!Lf(n,{upTo:t}))return n}function Lf(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function jf(e){return e instanceof HTMLInputElement&&"select"in e}function et(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&jf(e)&&t&&e.select()}}var Us=Df();function Df(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ys(e,t),e.unshift(t)},remove(t){var n;e=Ys(e,t),(n=e[0])==null||n.resume()}}}function Ys(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $f(e){return e.filter(t=>t.tagName!=="A")}function zf(e){const t=Bf(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Vf);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Bf(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Wf(o),a=Hf(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ff=Symbol("radix.slottable");function Vf(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ff}function Hf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Wf(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Uf=Gf.reduce((e,t)=>{const n=zf(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Yf="Portal",qs=f.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=f.useState(!1);be(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Xr.createPortal(w.jsx(Uf.div,{...r,ref:t}),i):null});qs.displayName=Yf;var yr=0;function qf(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xs()),document.body.insertAdjacentElement("beforeend",e[1]??Xs()),yr++,()=>{yr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yr--}},[])}function Xs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Le=function(){return Le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Le.apply(this,arguments)};function Ks(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Xf(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ln="right-scroll-bar-position",cn="width-before-scroll-bar",Kf="with-scroll-bars-hidden",Zf="--removed-body-scroll-bar-size";function wr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Jf(e,t){var n=$.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Qf=typeof window<"u"?f.useLayoutEffect:f.useEffect,Zs=new WeakMap;function ep(e,t){var n=Jf(t||null,function(r){return e.forEach(function(o){return wr(o,r)})});return Qf(function(){var r=Zs.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||wr(a,null)}),s.forEach(function(a){o.has(a)||wr(a,i)})}Zs.set(n,e)},[e]),n}function tp(e){return e}function np(e,t){t===void 0&&(t=tp);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),n}}}};return o}function rp(e){e===void 0&&(e={});var t=np(null);return t.options=Le({async:!0,ssr:!1},e),t}var Js=function(e){var t=e.sideCar,n=Ks(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Le({},n))};Js.isSideCarExport=!0;function op(e,t){return e.useMedium(t),Js}var Qs=rp(),xr=function(){},dn=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:xr,onWheelCapture:xr,onTouchMoveCapture:xr}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,h=e.gapMode,S=Ks(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,T=ep([n,t]),M=Le(Le({},S),o);return f.createElement(f.Fragment,null,d&&f.createElement(E,{sideCar:Qs,removeScrollBar:c,shards:u,noRelative:v,noIsolation:g,inert:m,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:h}),i?f.cloneElement(f.Children.only(a),Le(Le({},M),{ref:T})):f.createElement(b,Le({},M,{className:l,ref:T}),a))});dn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},dn.classNames={fullWidth:cn,zeroRight:ln};var ei,sp=function(){if(ei)return ei;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ip(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sp();return t&&e.setAttribute("nonce",t),e}function ap(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ip())&&(ap(t,n),lp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dp=function(){var e=cp();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ti=function(){var e=dp(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},up={left:0,top:0,right:0,gap:0},Sr=function(e){return parseInt(e||"",10)||0},fp=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Sr(n),Sr(r),Sr(o)]},pp=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return up;var t=fp(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mp=ti(),bt="data-scroll-locked",hp=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
94
|
-
.`.concat(
|
|
319
|
+
*/var Ew;function I_(){return Ew||(Ew=1,process.env.NODE_ENV!=="production"&&function(){function e(M,O){return M===O&&(M!==0||1/M===1/O)||M!==M&&O!==O}function t(M,O){S||i.startTransition===void 0||(S=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var k=O();if(!w){var W=O();o(k,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),w=!0)}W=l({inst:{value:k,getSnapshot:O}});var H=W[0].inst,B=W[1];return p(function(){H.value=k,H.getSnapshot=O,n(H)&&B({inst:H})},[M,k,O]),u(function(){return n(H)&&B({inst:H}),M(function(){n(H)&&B({inst:H})})},[M]),y(k),k}function n(M){var O=M.getSnapshot;M=M.value;try{var k=O();return!o(M,k)}catch{return!0}}function r(M,O){return O()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=fe,o=typeof Object.is=="function"?Object.is:e,l=i.useState,u=i.useEffect,p=i.useLayoutEffect,y=i.useDebugValue,S=!1,w=!1,C=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;tv.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:C,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),tv}process.env.NODE_ENV==="production"?$p.exports=A_():$p.exports=I_();var N_=$p.exports;function F_(){return N_.useSyncExternalStore(D_,()=>!0,()=>!1)}function D_(){return()=>{}}var nv="Avatar",[L_]=__(nv),[B_,Cw]=L_(nv),Tw=L.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,o]=L.useState("idle");return D.jsx(B_,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o,children:D.jsx(qp.span,{...r,ref:t})})});Tw.displayName=nv;var kw="AvatarImage",Rw=L.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,l=Cw(kw,n),u=z_(r,o),p=Wd(y=>{i(y),l.onImageLoadingStatusChange(y)});return jo(()=>{u!=="idle"&&p(u)},[u,p]),u==="loaded"?D.jsx(qp.img,{...o,ref:t,src:r}):null});Rw.displayName=kw;var Mw="AvatarFallback",_w=L.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,o=Cw(Mw,n),[l,u]=L.useState(r===void 0);return L.useEffect(()=>{if(r!==void 0){const p=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(p)}},[r]),l&&o.imageLoadingStatus!=="loaded"?D.jsx(qp.span,{...i,ref:t}):null});_w.displayName=Mw;function Pw(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function z_(e,{referrerPolicy:t,crossOrigin:n}){const r=F_(),i=L.useRef(null),o=r?(i.current||(i.current=new window.Image),i.current):null,[l,u]=L.useState(()=>Pw(o,e));return jo(()=>{u(Pw(o,e))},[o,e]),jo(()=>{const p=w=>()=>{u(w)};if(!o)return;const y=p("loaded"),S=p("error");return o.addEventListener("load",y),o.addEventListener("error",S),t&&(o.referrerPolicy=t),typeof n=="string"&&(o.crossOrigin=n),()=>{o.removeEventListener("load",y),o.removeEventListener("error",S)}},[o,n,t]),l}var H_=Tw,W_=Rw,U_=_w;function G_({className:e,...t}){return D.jsx(H_,{"data-slot":"avatar",className:Ze("relative flex size-8 shrink-0 overflow-hidden rounded-full border-2",e),...t})}function Y_({className:e,...t}){return D.jsx(W_,{"data-slot":"avatar-image",className:Ze("aspect-square size-full",e),...t})}function V_({className:e,...t}){return D.jsx(U_,{"data-slot":"avatar-fallback",className:Ze("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}const rv={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const e in rv)Object.freeze(rv[e]);const Su=Object.freeze(rv),Ow=Object.create(null);for(const e in Su)Object.hasOwn(Su,e)&&(Ow[Su[e]]=e);const so={to:{},get:{}};so.get=function(e){const t=e.slice(0,3).toLowerCase();let n,r;switch(t){case"hsl":{n=so.get.hsl(e),r="hsl";break}case"hwb":{n=so.get.hwb(e),r="hwb";break}default:{n=so.get.rgb(e),r="rgb";break}}return n?{model:r,value:n}:null},so.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,i=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,o=/^(\w+)$/;let l=[0,0,0,1],u,p,y;if(u=e.match(n)){for(y=u[2],u=u[1],p=0;p<3;p++){const S=p*2;l[p]=Number.parseInt(u.slice(S,S+2),16)}y&&(l[3]=Number.parseInt(y,16)/255)}else if(u=e.match(t)){for(u=u[1],y=u[3],p=0;p<3;p++)l[p]=Number.parseInt(u[p]+u[p],16);y&&(l[3]=Number.parseInt(y+y,16)/255)}else if(u=e.match(r)){for(p=0;p<3;p++)l[p]=Number.parseFloat(u[p+1]);u[4]&&(l[3]=u[5]?Number.parseFloat(u[4])*.01:Number.parseFloat(u[4]))}else if(u=e.match(i)){for(p=0;p<3;p++)l[p]=Math.round(Number.parseFloat(u[p+1])*2.55);u[4]&&(l[3]=u[5]?Number.parseFloat(u[4])*.01:Number.parseFloat(u[4]))}else return(u=e.toLowerCase().match(o))?u[1]==="transparent"?[0,0,0,0]:Object.hasOwn(Su,u[1])?(l=Su[u[1]].slice(),l[3]=1,l):null:null;for(p=0;p<3;p++)l[p]=Ud(l[p],0,255);return l[3]=Ud(l[3],0,1),l},so.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),i=(Number.parseFloat(n[1])%360+360)%360,o=Ud(Number.parseFloat(n[2]),0,100),l=Ud(Number.parseFloat(n[3]),0,100),u=Ud(Number.isNaN(r)?1:r,0,1);return[i,o,l,u]}return null},so.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const r=Number.parseFloat(n[4]),i=(Number.parseFloat(n[1])%360+360)%360,o=Ud(Number.parseFloat(n[2]),0,100),l=Ud(Number.parseFloat(n[3]),0,100),u=Ud(Number.isNaN(r)?1:r,0,1);return[i,o,l,u]}return null},so.to.hex=function(...e){return"#"+kg(e[0])+kg(e[1])+kg(e[2])+(e[3]<1?kg(Math.round(e[3]*255)):"")},so.to.rgb=function(...e){return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},so.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},so.to.hsl=function(...e){return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},so.to.hwb=function(...e){let t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},so.to.keyword=function(...e){return Ow[e.slice(0,3)]};function Ud(e,t,n){return Math.min(Math.max(t,e),n)}function kg(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}const Aw={};for(const e of Object.keys(Su))Aw[Su[e]]=e;const dt={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ad=(6/29)**3;function Xf(e){const t=e>.0031308?1.055*e**.4166666666666667-.055:e*12.92;return Math.min(Math.max(0,t),1)}function Zf(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const e of Object.keys(dt)){if(!("channels"in dt[e]))throw new Error("missing channels property: "+e);if(!("labels"in dt[e]))throw new Error("missing channel labels property: "+e);if(dt[e].labels.length!==dt[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=dt[e];delete dt[e].channels,delete dt[e].labels,Object.defineProperty(dt[e],"channels",{value:t}),Object.defineProperty(dt[e],"labels",{value:n})}dt.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),l=o-i;let u,p;switch(o){case i:{u=0;break}case t:{u=(n-r)/l;break}case n:{u=2+(r-t)/l;break}case r:{u=4+(t-n)/l;break}}u=Math.min(u*60,360),u<0&&(u+=360);const y=(i+o)/2;return o===i?p=0:y<=.5?p=l/(o+i):p=l/(2-o-i),[u,p*100,y*100]},dt.rgb.hsv=function(e){let t,n,r,i,o;const l=e[0]/255,u=e[1]/255,p=e[2]/255,y=Math.max(l,u,p),S=y-Math.min(l,u,p),w=function(C){return(y-C)/6/S+1/2};if(S===0)i=0,o=0;else{switch(o=S/y,t=w(l),n=w(u),r=w(p),y){case l:{i=r-n;break}case u:{i=1/3+t-r;break}case p:{i=2/3+n-t;break}}i<0?i+=1:i>1&&(i-=1)}return[i*360,o*100,y*100]},dt.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=dt.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]},dt.rgb.oklab=function(e){const t=Zf(e[0]/255),n=Zf(e[1]/255),r=Zf(e[2]/255),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),o=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),l=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),u=.2104542553*i+.793617785*o-.0040720468*l,p=1.9779984951*i-2.428592205*o+.4505937099*l,y=.0259040371*i+.7827717662*o-.808675766*l;return[u*100,p*100,y*100]},dt.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),o=(1-t-i)/(1-i)||0,l=(1-n-i)/(1-i)||0,u=(1-r-i)/(1-i)||0;return[o*100,l*100,u*100,i*100]};function X_(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}dt.rgb.keyword=function(e){const t=Aw[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const i of Object.keys(Su)){const o=Su[i],l=X_(e,o);l<n&&(n=l,r=i)}return r},dt.keyword.rgb=function(e){return[...Su[e]]},dt.rgb.xyz=function(e){const t=Zf(e[0]/255),n=Zf(e[1]/255),r=Zf(e[2]/255),i=t*.4124564+n*.3575761+r*.1804375,o=t*.2126729+n*.7151522+r*.072175,l=t*.0193339+n*.119192+r*.9503041;return[i*100,o*100,l*100]},dt.rgb.lab=function(e){const t=dt.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>ad?n**(1/3):7.787*n+16/116,r=r>ad?r**(1/3):7.787*r+16/116,i=i>ad?i**(1/3):7.787*i+16/116;const o=116*r-16,l=500*(n-r),u=200*(r-i);return[o,l,u]},dt.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o;if(n===0)return o=r*255,[o,o,o];const l=r<.5?r*(1+n):r+n-r*n,u=2*r-l,p=[0,0,0];for(let y=0;y<3;y++)i=t+1/3*-(y-1),i<0&&i++,i>1&&i--,6*i<1?o=u+(l-u)*6*i:2*i<1?o=l:3*i<2?o=u+(l-u)*(2/3-i)*6:o=u,p[y]=o*255;return p},dt.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const l=(r+n)/2,u=r===0?2*i/(o+i):2*n/(r+n);return[t,u*100,l*100]},dt.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),l=255*r*(1-n),u=255*r*(1-n*o),p=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,p,l];case 1:return[u,r,l];case 2:return[l,r,p];case 3:return[l,u,r];case 4:return[p,l,r];case 5:return[r,l,u]}},dt.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,l;l=(2-n)*r;const u=(2-n)*i;return o=n*i,o/=u<=1?u:2-u,o=o||0,l/=2,[t,o*100,l*100]},dt.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const l=Math.floor(6*t),u=1-r;o=6*t-l,l&1&&(o=1-o);const p=n+o*(u-n);let y,S,w;switch(l){default:case 6:case 0:{y=u,S=p,w=n;break}case 1:{y=p,S=u,w=n;break}case 2:{y=n,S=u,w=p;break}case 3:{y=n,S=p,w=u;break}case 4:{y=p,S=n,w=u;break}case 5:{y=u,S=n,w=p;break}}return[y*255,S*255,w*255]},dt.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),l=1-Math.min(1,n*(1-i)+i),u=1-Math.min(1,r*(1-i)+i);return[o*255,l*255,u*255]},dt.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,l;return i=t*3.2404542+n*-1.5371385+r*-.4985314,o=t*-.969266+n*1.8760108+r*.041556,l=t*.0556434+n*-.2040259+r*1.0572252,i=Xf(i),o=Xf(o),l=Xf(l),[i*255,o*255,l*255]},dt.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>ad?t**(1/3):7.787*t+16/116,n=n>ad?n**(1/3):7.787*n+16/116,r=r>ad?r**(1/3):7.787*r+16/116;const i=116*n-16,o=500*(t-n),l=200*(n-r);return[i,o,l]},dt.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),o=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),l=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),u=.2104542553*i+.793617785*o-.0040720468*l,p=1.9779984951*i-2.428592205*o+.4505937099*l,y=.0259040371*i+.7827717662*o-.808675766*l;return[u*100,p*100,y*100]},dt.oklab.oklch=function(e){return dt.lab.lch(e)},dt.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=(.999999998*t+.396337792*n+.215803758*r)**3,o=(1.000000008*t-.105561342*n-.063854175*r)**3,l=(1.000000055*t-.089484182*n-1.291485538*r)**3,u=1.227013851*i-.55779998*o+.281256149*l,p=-.040580178*i+1.11225687*o-.071676679*l,y=-.076381285*i-.421481978*o+1.58616322*l;return[u*100,p*100,y*100]},dt.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=(t+.3963377774*n+.2158037573*r)**3,o=(t-.1055613458*n-.0638541728*r)**3,l=(t-.0894841775*n-1.291485548*r)**3,u=Xf(4.0767416621*i-3.3077115913*o+.2309699292*l),p=Xf(-1.2684380046*i+2.6097574011*o-.3413193965*l),y=Xf(-.0041960863*i-.7034186147*o+1.707614701*l);return[u*255,p*255,y*255]},dt.oklch.oklab=function(e){return dt.lch.lab(e)},dt.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,l;o=(t+16)/116,i=n/500+o,l=o-r/200;const u=o**3,p=i**3,y=l**3;return o=u>ad?u:(o-16/116)/7.787,i=p>ad?p:(i-16/116)/7.787,l=y>ad?y:(l-16/116)/7.787,i*=95.047,o*=100,l*=108.883,[i,o,l]},dt.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const l=Math.sqrt(n*n+r*r);return[t,l,i]},dt.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,o=n*Math.cos(i),l=n*Math.sin(i);return[t,o,l]},dt.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?dt.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let l=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(l+=60),l},dt.hsv.ansi16=function(e){return dt.rgb.ansi16(dt.hsv.rgb(e),e[2])},dt.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},dt.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]},dt.ansi256.rgb=function(e){if(e=e[0],e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]},dt.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n},dt.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(u=>u+u).join(""));const r=Number.parseInt(n,16),i=r>>16&255,o=r>>8&255,l=r&255;return[i,o,l]},dt.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),l=i-o;let u;const p=l<1?o/(1-l):0;return l<=0?u=0:i===t?u=(n-r)/l%6:i===n?u=2+(r-t)/l:u=4+(t-n)/l,u/=6,u%=1,[u*360,l*100,p*100]},dt.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},dt.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},dt.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],o=t%1*6,l=o%1,u=1-l;let p=0;switch(Math.floor(o)){case 0:{i[0]=1,i[1]=l,i[2]=0;break}case 1:{i[0]=u,i[1]=1,i[2]=0;break}case 2:{i[0]=0,i[1]=1,i[2]=l;break}case 3:{i[0]=0,i[1]=u,i[2]=1;break}case 4:{i[0]=l,i[1]=0,i[2]=1;break}default:i[0]=1,i[1]=0,i[2]=u}return p=(1-n)*r,[(n*i[0]+p)*255,(n*i[1]+p)*255,(n*i[2]+p)*255]},dt.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]},dt.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]},dt.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]},dt.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]},dt.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},dt.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},dt.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},dt.gray.hsl=function(e){return[0,0,e[0]]},dt.gray.hsv=dt.gray.hsl,dt.gray.hwb=function(e){return[0,100,e[0]]},dt.gray.cmyk=function(e){return[0,0,0,e[0]]},dt.gray.lab=function(e){return[e[0],0,0]},dt.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r},dt.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function Z_(){const e={},t=Object.keys(dt);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function J_(e){const t=Z_(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),i=Object.keys(dt[r]);for(let{length:o}=i,l=0;l<o;l++){const u=i[l],p=t[u];p.distance===-1&&(p.distance=t[r].distance+1,p.parent=r,n.unshift(u))}}return t}function K_(e,t){return function(n){return t(e(n))}}function Q_(e,t){const n=[t[e].parent,e];let r=dt[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),r=K_(dt[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}function j_(e){const t=J_(e),n={},r=Object.keys(t);for(let{length:i}=r,o=0;o<i;o++){const l=r[o];t[l].parent!==null&&(n[l]=Q_(l,t))}return n}const No={},q_=Object.keys(dt);function $_(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function eP(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let{length:o}=i,l=0;l<o;l++)i[l]=Math.round(i[l]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of q_){No[e]={},Object.defineProperty(No[e],"channels",{value:dt[e].channels}),Object.defineProperty(No[e],"labels",{value:dt[e].labels});const t=j_(e),n=Object.keys(t);for(const r of n){const i=t[r];No[e][r]=eP(i),No[e][r].raw=$_(i)}}const Iw=["keyword","gray","hex"],iv={};for(const e of Object.keys(No))iv[[...No[e].labels].sort().join("")]=e;const Dh={};function qr(e,t){if(!(this instanceof qr))return new qr(e,t);if(t&&t in Iw&&(t=null),t&&!(t in No))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof qr)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=so.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=No[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=No[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=ov(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in iv))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=iv[o];const{labels:l}=No[this.model],u=[];for(n=0;n<l.length;n++)u.push(e[l[n]]);this.color=ov(u)}if(Dh[this.model])for(r=No[this.model].channels,n=0;n<r;n++){const i=Dh[this.model][n];i&&(this.color[n]=i(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}qr.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in so.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);const n=t.valpha===1?t.color:[...t.color,this.valpha];return so.to[t.model](...n)},percentString(e){const t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:[...t.color,this.valpha];return so.to.rgb.percent(...n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=No[this.model],{labels:n}=No[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new qr([...this.color.map(nP(e)),this.valpha],this.model)},alpha(e){return e!==void 0?new qr([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:yi("rgb",0,co(255)),green:yi("rgb",1,co(255)),blue:yi("rgb",2,co(255)),hue:yi(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:yi("hsl",1,co(100)),lightness:yi("hsl",2,co(100)),saturationv:yi("hsv",1,co(100)),value:yi("hsv",2,co(100)),chroma:yi("hcg",1,co(100)),gray:yi("hcg",2,co(100)),white:yi("hwb",1,co(100)),wblack:yi("hwb",2,co(100)),cyan:yi("cmyk",0,co(100)),magenta:yi("cmyk",1,co(100)),yellow:yi("cmyk",2,co(100)),black:yi("cmyk",3,co(100)),x:yi("xyz",0,co(95.047)),y:yi("xyz",1,co(100)),z:yi("xyz",2,co(108.833)),l:yi("lab",0,co(100)),a:yi("lab",1),b:yi("lab",2),keyword(e){return e!==void 0?new qr(e):No[this.model].keyword(this.color)},hex(e){return e!==void 0?new qr(e):so.to.hex(...this.rgb().round().color)},hexa(e){if(e!==void 0)return new qr(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),so.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const i=r/255;t[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return qr.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,o=2*i-1,l=n.alpha()-r.alpha(),u=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,p=1-u;return qr.rgb(u*n.red()+p*r.red(),u*n.green()+p*r.green(),u*n.blue()+p*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(No)){if(Iw.includes(e))continue;const{channels:t}=No[e];qr.prototype[e]=function(...n){return this.model===e?new qr(this):n.length>0?new qr(n,e):new qr([...rP(No[this.model][e].raw(this.color)),this.valpha],e)},qr[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=ov(n,t)),new qr(r,e)}}function tP(e,t){return Number(e.toFixed(t))}function nP(e){return function(t){return tP(t,e)}}function yi(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(Dh[r]||(Dh[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function co(e){return function(t){return Math.max(0,Math.min(e,t))}}function rP(e){return Array.isArray(e)?e:[e]}function ov(e,t){for(let n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}function iP(e){const t=oP(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(lP);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function oP(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=cP(i),u=sP(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aP=Symbol("radix.slottable");function lP(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aP}function sP(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function cP(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dP=uP.reduce((e,t)=>{const n=iP(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Nw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),fP="VisuallyHidden",hP=L.forwardRef((e,t)=>D.jsx(dP.span,{...e,ref:t,style:{...Nw,...e.style}}));hP.displayName=fP;function gP(e,t=[]){let n=[];function r(o,l){const u=L.createContext(l),p=n.length;n=[...n,l];const y=w=>{var H;const{scope:C,children:M,...O}=w,k=((H=C==null?void 0:C[e])==null?void 0:H[p])||u,W=L.useMemo(()=>O,Object.values(O));return D.jsx(k.Provider,{value:W,children:M})};y.displayName=o+"Provider";function S(w,C){var k;const M=((k=C==null?void 0:C[e])==null?void 0:k[p])||u,O=L.useContext(M);if(O)return O;if(l!==void 0)return l;throw new Error(`\`${w}\` must be used within \`${o}\``)}return[y,S]}const i=()=>{const o=n.map(l=>L.createContext(l));return function(u){const p=(u==null?void 0:u[e])||o;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:p}}),[u,p])}};return i.scopeName=e,[r,pP(i,...t)]}function pP(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((u,{useScope:p,scopeName:y})=>{const w=p(o)[`__scope${y}`];return{...u,...w}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Fw(e){const t=vP(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(mP);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function vP(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=wP(i),u=yP(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bP=Symbol("radix.slottable");function mP(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bP}function yP(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function wP(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Dw(e){const t=e+"CollectionProvider",[n,r]=gP(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=k=>{const{scope:W,children:H}=k,B=fe.useRef(null),I=fe.useRef(new Map).current;return D.jsx(i,{scope:W,itemMap:I,collectionRef:B,children:H})};l.displayName=t;const u=e+"CollectionSlot",p=Fw(u),y=fe.forwardRef((k,W)=>{const{scope:H,children:B}=k,I=o(u,H),Y=Qr(W,I.collectionRef);return D.jsx(p,{ref:Y,children:B})});y.displayName=u;const S=e+"CollectionItemSlot",w="data-radix-collection-item",C=Fw(S),M=fe.forwardRef((k,W)=>{const{scope:H,children:B,...I}=k,Y=fe.useRef(null),K=Qr(W,Y),G=o(S,H);return fe.useEffect(()=>(G.itemMap.set(Y,{ref:Y,...I}),()=>void G.itemMap.delete(Y))),D.jsx(C,{[w]:"",ref:K,children:B})});M.displayName=S;function O(k){const W=o(e+"CollectionConsumer",k);return fe.useCallback(()=>{const B=W.collectionRef.current;if(!B)return[];const I=Array.from(B.querySelectorAll(`[${w}]`));return Array.from(W.itemMap.values()).sort((G,ne)=>I.indexOf(G.ref.current)-I.indexOf(ne.ref.current))},[W.collectionRef,W.itemMap])}return[{Provider:l,Slot:y,ItemSlot:M},O,r]}function kr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}var xP=L[" useInsertionEffect ".trim().toString()]||jo;function av({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,l]=SP({defaultProp:t,onChange:n}),u=e!==void 0,p=u?e:i;{const S=L.useRef(e!==void 0);L.useEffect(()=>{const w=S.current;w!==u&&console.warn(`${r} is changing from ${w?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),S.current=u},[u,r])}const y=L.useCallback(S=>{var w;if(u){const C=EP(S)?S(e):S;C!==e&&((w=l.current)==null||w.call(l,C))}else o(S)},[u,e,o,l]);return[p,y]}function SP({defaultProp:e,onChange:t}){const[n,r]=L.useState(e),i=L.useRef(n),o=L.useRef(t);return xP(()=>{o.current=t},[t]),L.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function EP(e){return typeof e=="function"}var CP=L[" useId ".trim().toString()]||(()=>{}),TP=0;function lv(e){const[t,n]=L.useState(CP());return jo(()=>{n(r=>r??String(TP++))},[e]),e||(t?`radix-${t}`:"")}var kP=L.createContext(void 0);function Lw(e){const t=L.useContext(kP);return e||t||"ltr"}function RP(e){const t=MP(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(PP);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function MP(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=AP(i),u=OP(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _P=Symbol("radix.slottable");function PP(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_P}function OP(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function AP(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bw=IP.reduce((e,t)=>{const n=RP(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function NP(e,t){e&&Zh.flushSync(()=>e.dispatchEvent(t))}function FP(e,t=globalThis==null?void 0:globalThis.document){const n=Wd(e);L.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var DP="DismissableLayer",sv="dismissableLayer.update",LP="dismissableLayer.pointerDownOutside",BP="dismissableLayer.focusOutside",zw,Hw=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ww=L.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:u,...p}=e,y=L.useContext(Hw),[S,w]=L.useState(null),C=(S==null?void 0:S.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,M]=L.useState({}),O=Qr(t,ne=>w(ne)),k=Array.from(y.layers),[W]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),H=k.indexOf(W),B=S?k.indexOf(S):-1,I=y.layersWithOutsidePointerEventsDisabled.size>0,Y=B>=H,K=WP(ne=>{const $=ne.target,ie=[...y.branches].some(se=>se.contains($));!Y||ie||(i==null||i(ne),l==null||l(ne),ne.defaultPrevented||u==null||u())},C),G=UP(ne=>{const $=ne.target;[...y.branches].some(se=>se.contains($))||(o==null||o(ne),l==null||l(ne),ne.defaultPrevented||u==null||u())},C);return FP(ne=>{B===y.layers.size-1&&(r==null||r(ne),!ne.defaultPrevented&&u&&(ne.preventDefault(),u()))},C),L.useEffect(()=>{if(S)return n&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(zw=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(S)),y.layers.add(S),Uw(),()=>{n&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=zw)}},[S,C,n,y]),L.useEffect(()=>()=>{S&&(y.layers.delete(S),y.layersWithOutsidePointerEventsDisabled.delete(S),Uw())},[S,y]),L.useEffect(()=>{const ne=()=>M({});return document.addEventListener(sv,ne),()=>document.removeEventListener(sv,ne)},[]),D.jsx(Bw.div,{...p,ref:O,style:{pointerEvents:I?Y?"auto":"none":void 0,...e.style},onFocusCapture:kr(e.onFocusCapture,G.onFocusCapture),onBlurCapture:kr(e.onBlurCapture,G.onBlurCapture),onPointerDownCapture:kr(e.onPointerDownCapture,K.onPointerDownCapture)})});Ww.displayName=DP;var zP="DismissableLayerBranch",HP=L.forwardRef((e,t)=>{const n=L.useContext(Hw),r=L.useRef(null),i=Qr(t,r);return L.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),D.jsx(Bw.div,{...e,ref:i})});HP.displayName=zP;function WP(e,t=globalThis==null?void 0:globalThis.document){const n=Wd(e),r=L.useRef(!1),i=L.useRef(()=>{});return L.useEffect(()=>{const o=u=>{if(u.target&&!r.current){let p=function(){Gw(LP,n,y,{discrete:!0})};const y={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=p,t.addEventListener("click",i.current,{once:!0})):p()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function UP(e,t=globalThis==null?void 0:globalThis.document){const n=Wd(e),r=L.useRef(!1);return L.useEffect(()=>{const i=o=>{o.target&&!r.current&&Gw(BP,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Uw(){const e=new CustomEvent(sv);document.dispatchEvent(e)}function Gw(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?NP(i,o):i.dispatchEvent(o)}function GP(e){const t=YP(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(XP);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function YP(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=JP(i),u=ZP(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var VP=Symbol("radix.slottable");function XP(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===VP}function ZP(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function JP(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var KP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],QP=KP.reduce((e,t)=>{const n=GP(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),cv="focusScope.autoFocusOnMount",uv="focusScope.autoFocusOnUnmount",Yw={bubbles:!1,cancelable:!0},jP="FocusScope",Vw=L.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=e,[u,p]=L.useState(null),y=Wd(i),S=Wd(o),w=L.useRef(null),C=Qr(t,k=>p(k)),M=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(r){let k=function(I){if(M.paused||!u)return;const Y=I.target;u.contains(Y)?w.current=Y:Gd(w.current,{select:!0})},W=function(I){if(M.paused||!u)return;const Y=I.relatedTarget;Y!==null&&(u.contains(Y)||Gd(w.current,{select:!0}))},H=function(I){if(document.activeElement===document.body)for(const K of I)K.removedNodes.length>0&&Gd(u)};document.addEventListener("focusin",k),document.addEventListener("focusout",W);const B=new MutationObserver(H);return u&&B.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",W),B.disconnect()}}},[r,u,M.paused]),L.useEffect(()=>{if(u){Jw.add(M);const k=document.activeElement;if(!u.contains(k)){const H=new CustomEvent(cv,Yw);u.addEventListener(cv,y),u.dispatchEvent(H),H.defaultPrevented||(qP(rO(Xw(u)),{select:!0}),document.activeElement===k&&Gd(u))}return()=>{u.removeEventListener(cv,y),setTimeout(()=>{const H=new CustomEvent(uv,Yw);u.addEventListener(uv,S),u.dispatchEvent(H),H.defaultPrevented||Gd(k??document.body,{select:!0}),u.removeEventListener(uv,S),Jw.remove(M)},0)}}},[u,y,S,M]);const O=L.useCallback(k=>{if(!n&&!r||M.paused)return;const W=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,H=document.activeElement;if(W&&H){const B=k.currentTarget,[I,Y]=$P(B);I&&Y?!k.shiftKey&&H===Y?(k.preventDefault(),n&&Gd(I,{select:!0})):k.shiftKey&&H===I&&(k.preventDefault(),n&&Gd(Y,{select:!0})):H===B&&k.preventDefault()}},[n,r,M.paused]);return D.jsx(QP.div,{tabIndex:-1,...l,ref:C,onKeyDown:O})});Vw.displayName=jP;function qP(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Gd(r,{select:t}),document.activeElement!==n)return}function $P(e){const t=Xw(e),n=Zw(t,e),r=Zw(t.reverse(),e);return[n,r]}function Xw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zw(e,t){for(const n of e)if(!eO(n,{upTo:t}))return n}function eO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tO(e){return e instanceof HTMLInputElement&&"select"in e}function Gd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tO(e)&&t&&e.select()}}var Jw=nO();function nO(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Kw(e,t),e.unshift(t)},remove(t){var n;e=Kw(e,t),(n=e[0])==null||n.resume()}}}function Kw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rO(e){return e.filter(t=>t.tagName!=="A")}function iO(e){const t=oO(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(lO);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function oO(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=cO(i),u=sO(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aO=Symbol("radix.slottable");function lO(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aO}function sO(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function cO(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dO=uO.reduce((e,t)=>{const n=iO(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),fO="Portal",Qw=L.forwardRef((e,t)=>{var u;const{container:n,...r}=e,[i,o]=L.useState(!1);jo(()=>o(!0),[]);const l=n||i&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?Of.createPortal(D.jsx(dO.div,{...r,ref:t}),l):null});Qw.displayName=fO;var dv=0;function hO(){L.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jw()),document.body.insertAdjacentElement("beforeend",e[1]??jw()),dv++,()=>{dv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),dv--}},[])}function jw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Eu=function(){return Eu=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Eu.apply(this,arguments)};function qw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function gO(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Rg="right-scroll-bar-position",Mg="width-before-scroll-bar",pO="with-scroll-bars-hidden",vO="--removed-body-scroll-bar-size";function fv(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bO(e,t){var n=fe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var mO=typeof window<"u"?L.useLayoutEffect:L.useEffect,$w=new WeakMap;function yO(e,t){var n=bO(null,function(r){return e.forEach(function(i){return fv(i,r)})});return mO(function(){var r=$w.get(n);if(r){var i=new Set(r),o=new Set(e),l=n.current;i.forEach(function(u){o.has(u)||fv(u,null)}),o.forEach(function(u){i.has(u)||fv(u,l)})}$w.set(n,e)},[e]),n}function wO(e){return e}function xO(e,t){t===void 0&&(t=wO);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(u){return o(u)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(o),l=n}var p=function(){var S=l;l=[],S.forEach(o)},y=function(){return Promise.resolve().then(p)};y(),n={push:function(S){l.push(S),y()},filter:function(S){return l=l.filter(S),n}}}};return i}function SO(e){e===void 0&&(e={});var t=xO(null);return t.options=Eu({async:!0,ssr:!1},e),t}var e0=function(e){var t=e.sideCar,n=qw(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return L.createElement(r,Eu({},n))};e0.isSideCarExport=!0;function EO(e,t){return e.useMedium(t),e0}var t0=SO(),hv=function(){},_g=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:hv,onWheelCapture:hv,onTouchMoveCapture:hv}),i=r[0],o=r[1],l=e.forwardProps,u=e.children,p=e.className,y=e.removeScrollBar,S=e.enabled,w=e.shards,C=e.sideCar,M=e.noRelative,O=e.noIsolation,k=e.inert,W=e.allowPinchZoom,H=e.as,B=H===void 0?"div":H,I=e.gapMode,Y=qw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=C,G=yO([n,t]),ne=Eu(Eu({},Y),i);return L.createElement(L.Fragment,null,S&&L.createElement(K,{sideCar:t0,removeScrollBar:y,shards:w,noRelative:M,noIsolation:O,inert:k,setCallbacks:o,allowPinchZoom:!!W,lockRef:n,gapMode:I}),l?L.cloneElement(L.Children.only(u),Eu(Eu({},ne),{ref:G})):L.createElement(B,Eu({},ne,{className:p,ref:G}),u))});_g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},_g.classNames={fullWidth:Mg,zeroRight:Rg};var CO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function TO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=CO();return t&&e.setAttribute("nonce",t),e}function kO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function RO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var MO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=TO())&&(kO(t,n),RO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_O=function(){var e=MO();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},n0=function(){var e=_O(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},PO={left:0,top:0,right:0,gap:0},gv=function(e){return parseInt(e||"",10)||0},OO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[gv(n),gv(r),gv(i)]},AO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return PO;var t=OO(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IO=n0(),Jf="data-scroll-locked",NO=function(e,t,n,r){var i=e.left,o=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
320
|
+
.`.concat(pO,` {
|
|
95
321
|
overflow: hidden `).concat(r,`;
|
|
96
|
-
padding-right: `).concat(
|
|
322
|
+
padding-right: `).concat(u,"px ").concat(r,`;
|
|
97
323
|
}
|
|
98
|
-
body[`).concat(
|
|
324
|
+
body[`).concat(Jf,`] {
|
|
99
325
|
overflow: hidden `).concat(r,`;
|
|
100
326
|
overscroll-behavior: contain;
|
|
101
327
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
102
|
-
padding-left: `.concat(
|
|
103
|
-
padding-top: `).concat(
|
|
104
|
-
padding-right: `).concat(
|
|
328
|
+
padding-left: `.concat(i,`px;
|
|
329
|
+
padding-top: `).concat(o,`px;
|
|
330
|
+
padding-right: `).concat(l,`px;
|
|
105
331
|
margin-left:0;
|
|
106
332
|
margin-top:0;
|
|
107
|
-
margin-right: `).concat(
|
|
108
|
-
`),n==="padding"&&"padding-right: ".concat(
|
|
333
|
+
margin-right: `).concat(u,"px ").concat(r,`;
|
|
334
|
+
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
109
335
|
}
|
|
110
336
|
|
|
111
|
-
.`).concat(
|
|
112
|
-
right: `).concat(
|
|
337
|
+
.`).concat(Rg,` {
|
|
338
|
+
right: `).concat(u,"px ").concat(r,`;
|
|
113
339
|
}
|
|
114
340
|
|
|
115
|
-
.`).concat(
|
|
116
|
-
margin-right: `).concat(
|
|
341
|
+
.`).concat(Mg,` {
|
|
342
|
+
margin-right: `).concat(u,"px ").concat(r,`;
|
|
117
343
|
}
|
|
118
344
|
|
|
119
|
-
.`).concat(
|
|
345
|
+
.`).concat(Rg," .").concat(Rg,` {
|
|
120
346
|
right: 0 `).concat(r,`;
|
|
121
347
|
}
|
|
122
348
|
|
|
123
|
-
.`).concat(
|
|
349
|
+
.`).concat(Mg," .").concat(Mg,` {
|
|
124
350
|
margin-right: 0 `).concat(r,`;
|
|
125
351
|
}
|
|
126
352
|
|
|
127
|
-
body[`).concat(
|
|
128
|
-
`).concat(
|
|
353
|
+
body[`).concat(Jf,`] {
|
|
354
|
+
`).concat(vO,": ").concat(u,`px;
|
|
129
355
|
}
|
|
130
|
-
`)},
|
|
356
|
+
`)},r0=function(){var e=parseInt(document.body.getAttribute(Jf)||"0",10);return isFinite(e)?e:0},FO=function(){L.useEffect(function(){return document.body.setAttribute(Jf,(r0()+1).toString()),function(){var e=r0()-1;e<=0?document.body.removeAttribute(Jf):document.body.setAttribute(Jf,e.toString())}},[])},DO=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;FO();var o=L.useMemo(function(){return AO(i)},[i]);return L.createElement(IO,{styles:NO(o,!t,i,n?"":"!important")})},pv=!1;if(typeof window<"u")try{var Pg=Object.defineProperty({},"passive",{get:function(){return pv=!0,!0}});window.addEventListener("test",Pg,Pg),window.removeEventListener("test",Pg,Pg)}catch{pv=!1}var Kf=pv?{passive:!1}:!1,LO=function(e){return e.tagName==="TEXTAREA"},i0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!LO(e)&&n[t]==="visible")},BO=function(e){return i0(e,"overflowY")},zO=function(e){return i0(e,"overflowX")},o0=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=a0(e,r);if(i){var o=l0(e,r),l=o[1],u=o[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},HO=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},WO=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},a0=function(e,t){return e==="v"?BO(t):zO(t)},l0=function(e,t){return e==="v"?HO(t):WO(t)},UO=function(e,t){return e==="h"&&t==="rtl"?-1:1},GO=function(e,t,n,r,i){var o=UO(e,window.getComputedStyle(t).direction),l=o*r,u=n.target,p=t.contains(u),y=!1,S=l>0,w=0,C=0;do{if(!u)break;var M=l0(e,u),O=M[0],k=M[1],W=M[2],H=k-W-o*O;(O||H)&&a0(e,u)&&(w+=H,C+=O);var B=u.parentNode;u=B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE?B.host:B}while(!p&&u!==document.body||p&&(t.contains(u)||t===u));return(S&&Math.abs(w)<1||!S&&Math.abs(C)<1)&&(y=!0),y},Og=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},s0=function(e){return[e.deltaX,e.deltaY]},c0=function(e){return e&&"current"in e?e.current:e},YO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},VO=function(e){return`
|
|
131
357
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
132
358
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
133
|
-
`)},_p=0,wt=[];function kp(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(_p++)[0],s=f.useState(ti)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Xf([e.lockRef.current],(e.shards||[]).map(li),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var y=fn(m),b=n.current,h="deltaX"in m?m.deltaX:b[0]-y[0],S="deltaY"in m?m.deltaY:b[1]-y[1],E,T=m.target,M=Math.abs(h)>Math.abs(S)?"h":"v";if("touches"in m&&M==="h"&&T.type==="range")return!1;var _=window.getSelection(),A=_&&_.anchorNode,P=A?A===T||A.contains(T):!1;if(P)return!1;var N=oi(M,T);if(!N)return!0;if(N?E=M:(E=M==="v"?"h":"v",N=oi(M,T)),!N)return!1;if(!r.current&&"changedTouches"in m&&(h||S)&&(r.current=E),!E)return!0;var L=r.current||E;return Cp(L,x,m,L==="h"?h:S,!0)},[]),l=f.useCallback(function(m){var x=m;if(!(!wt.length||wt[wt.length-1]!==s)){var y="deltaY"in x?ai(x):fn(x),b=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&Tp(E.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var h=(i.current.shards||[]).map(li).filter(Boolean).filter(function(E){return E.contains(x.target)}),S=h.length>0?a(x,h[0]):!i.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),c=f.useCallback(function(m,x,y,b){var h={name:m,delta:x,target:y,should:b,shadowParent:Mp(y)};t.current.push(h),setTimeout(function(){t.current=t.current.filter(function(S){return S!==h})},1)},[]),d=f.useCallback(function(m){n.current=fn(m),r.current=void 0},[]),u=f.useCallback(function(m){c(m.type,ai(m),m.target,a(m,e.lockRef.current))},[]),p=f.useCallback(function(m){c(m.type,fn(m),m.target,a(m,e.lockRef.current))},[]);f.useEffect(function(){return wt.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:p}),document.addEventListener("wheel",l,yt),document.addEventListener("touchmove",l,yt),document.addEventListener("touchstart",d,yt),function(){wt=wt.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,yt),document.removeEventListener("touchmove",l,yt),document.removeEventListener("touchstart",d,yt)}},[]);var v=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(s,{styles:Pp(o)}):null,v?f.createElement(vp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Mp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ap=op(Qs,kp);var ci=f.forwardRef(function(e,t){return f.createElement(dn,Le({},e,{ref:t,sideCar:Ap}))});ci.classNames=dn.classNames;const Np=ci;var Ip=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xt=new WeakMap,pn=new WeakMap,mn={},Cr=0,di=function(e){return e&&(e.host||di(e.parentNode))},Op=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=di(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Rp=function(e,t,n,r){var o=Op(t,Array.isArray(e)?e:[e]);mn[n]||(mn[n]=new WeakMap);var s=mn[n],i=[],a=new Set,l=new Set(o),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};o.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(p){if(a.has(p))d(p);else try{var v=p.getAttribute(r),g=v!==null&&v!=="false",m=(xt.get(p)||0)+1,x=(s.get(p)||0)+1;xt.set(p,m),s.set(p,x),i.push(p),m===1&&g&&pn.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),a.clear(),Cr++,function(){i.forEach(function(u){var p=xt.get(u)-1,v=s.get(u)-1;xt.set(u,p),s.set(u,v),p||(pn.has(u)||u.removeAttribute(r),pn.delete(u)),v||u.removeAttribute(n)}),Cr--,Cr||(xt=new WeakMap,xt=new WeakMap,pn=new WeakMap,mn={})}},Lp=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Ip(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Rp(r,o,n,"aria-hidden")):function(){return null}};function ui(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function fi(e){const[t,n]=f.useState(void 0);return be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const jp=["top","right","bottom","left"],tt=Math.min,Ce=Math.max,hn=Math.round,gn=Math.floor,je=e=>({x:e,y:e}),Dp={left:"right",right:"left",bottom:"top",top:"bottom"},$p={start:"end",end:"start"};function Tr(e,t,n){return Ce(e,tt(t,n))}function We(e,t){return typeof e=="function"?e(t):e}function Ge(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function Pr(e){return e==="x"?"y":"x"}function _r(e){return e==="y"?"height":"width"}const zp=new Set(["top","bottom"]);function De(e){return zp.has(Ge(e))?"y":"x"}function kr(e){return Pr(De(e))}function Bp(e,t,n){n===void 0&&(n=!1);const r=St(e),o=kr(e),s=_r(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=vn(i)),[i,vn(i)]}function Fp(e){const t=vn(e);return[Mr(e),t,Mr(t)]}function Mr(e){return e.replace(/start|end/g,t=>$p[t])}const pi=["left","right"],mi=["right","left"],Vp=["top","bottom"],Hp=["bottom","top"];function Wp(e,t,n){switch(e){case"top":case"bottom":return n?t?mi:pi:t?pi:mi;case"left":case"right":return t?Vp:Hp;default:return[]}}function Gp(e,t,n,r){const o=St(e);let s=Wp(Ge(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Mr)))),s}function vn(e){return e.replace(/left|right|bottom|top/g,t=>Dp[t])}function Up(e){return{top:0,right:0,bottom:0,left:0,...e}}function hi(e){return typeof e!="number"?Up(e):{top:e,right:e,bottom:e,left:e}}function bn(e){const{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 gi(e,t,n){let{reference:r,floating:o}=e;const s=De(t),i=kr(t),a=_r(i),l=Ge(t),c=s==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let v;switch(l){case"top":v={x:d,y:r.y-o.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-o.width,y:u};break;default:v={x:r.x,y:r.y}}switch(St(t)){case"start":v[i]-=p*(n&&c?-1:1);break;case"end":v[i]+=p*(n&&c?-1:1);break}return v}async function Yp(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:v=0}=We(t,e),g=hi(v),x=a[p?u==="floating"?"reference":"floating":u],y=bn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,h=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(h))?await(s.getScale==null?void 0:s.getScale(h))||{x:1,y:1}:{x:1,y:1},E=bn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:h,strategy:l}):b);return{top:(y.top-E.top+g.top)/S.y,bottom:(E.bottom-y.bottom+g.bottom)/S.y,left:(y.left-E.left+g.left)/S.x,right:(E.right-y.right+g.right)/S.x}}const qp=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=gi(c,r,l),p=r,v={},g=0;for(let x=0;x<a.length;x++){var m;const{name:y,fn:b}=a[x],{x:h,y:S,data:E,reset:T}=await b({x:d,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:c,platform:{...i,detectOverflow:(m=i.detectOverflow)!=null?m:Yp},elements:{reference:e,floating:t}});d=h??d,u=S??u,v={...v,[y]:{...v[y],...E}},T&&g<=50&&(g++,typeof T=="object"&&(T.placement&&(p=T.placement),T.rects&&(c=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:d,y:u}=gi(c,p,l)),x=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:v}},Xp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=We(e,t)||{};if(c==null)return{};const u=hi(d),p={x:n,y:r},v=kr(o),g=_r(v),m=await i.getDimensions(c),x=v==="y",y=x?"top":"left",b=x?"bottom":"right",h=x?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[v]-p[v]-s.floating[g],E=p[v]-s.reference[v],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let M=T?T[h]:0;(!M||!await(i.isElement==null?void 0:i.isElement(T)))&&(M=a.floating[h]||s.floating[g]);const _=S/2-E/2,A=M/2-m[g]/2-1,P=tt(u[y],A),N=tt(u[b],A),L=P,O=M-m[g]-N,D=M/2-m[g]/2+_,z=Tr(L,D,O),j=!l.arrow&&St(o)!=null&&D!==z&&s.reference[g]/2-(D<L?P:N)-m[g]/2<0,k=j?D<L?D-L:D-O:0;return{[v]:p[v]+k,data:{[v]:z,centerOffset:D-z-k,...j&&{alignmentOffset:k}},reset:j}}}),Kp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=We(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Ge(o),b=De(a),h=Ge(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(h||!m?[vn(a)]:Fp(a)),T=g!=="none";!p&&T&&E.push(...Gp(a,m,g,S));const M=[a,...E],_=await l.detectOverflow(t,x),A=[];let P=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&A.push(_[y]),u){const D=Bp(o,i,S);A.push(_[D[0]],_[D[1]])}if(P=[...P,{placement:o,overflows:A}],!A.every(D=>D<=0)){var N,L;const D=(((N=s.flip)==null?void 0:N.index)||0)+1,z=M[D];if(z&&(!(u==="alignment"?b!==De(z):!1)||P.every(C=>De(C.placement)===b?C.overflows[0]>0:!0)))return{data:{index:D,overflows:P},reset:{placement:z}};let j=(L=P.filter(k=>k.overflows[0]<=0).sort((k,C)=>k.overflows[1]-C.overflows[1])[0])==null?void 0:L.placement;if(!j)switch(v){case"bestFit":{var O;const k=(O=P.filter(C=>{if(T){const R=De(C.placement);return R===b||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,H)=>R+H,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:O[0];k&&(j=k);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function vi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bi(e){return jp.some(t=>e[t]>=0)}const Zp=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=We(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=vi(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:bi(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=vi(i,n.floating);return{data:{escapedOffsets:a,escaped:bi(a)}}}default:return{}}}}},yi=new Set(["left","top"]);async function Jp(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ge(n),a=St(n),l=De(n)==="y",c=yi.has(i)?-1:1,d=s&&l?-1:1,u=We(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof g=="number"&&(v=a==="end"?g*-1:g),l?{x:v*d,y:p*c}:{x:p*c,y:v*d}}const Qp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Jp(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},em=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:b,y:h}=y;return{x:b,y:h}}},...c}=We(e,t),d={x:n,y:r},u=await s.detectOverflow(t,c),p=De(Ge(o)),v=Pr(p);let g=d[v],m=d[p];if(i){const y=v==="y"?"top":"left",b=v==="y"?"bottom":"right",h=g+u[y],S=g-u[b];g=Tr(h,g,S)}if(a){const y=p==="y"?"top":"left",b=p==="y"?"bottom":"right",h=m+u[y],S=m-u[b];m=Tr(h,m,S)}const x=l.fn({...t,[v]:g,[p]:m});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:i,[p]:a}}}}}},tm=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=We(e,t),d={x:n,y:r},u=De(o),p=Pr(u);let v=d[p],g=d[u];const m=We(a,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const h=p==="y"?"height":"width",S=s.reference[p]-s.floating[h]+x.mainAxis,E=s.reference[p]+s.reference[h]-x.mainAxis;v<S?v=S:v>E&&(v=E)}if(c){var y,b;const h=p==="y"?"width":"height",S=yi.has(Ge(o)),E=s.reference[u]-s.floating[h]+(S&&((y=i.offset)==null?void 0:y[u])||0)+(S?0:x.crossAxis),T=s.reference[u]+s.reference[h]+(S?0:((b=i.offset)==null?void 0:b[u])||0)-(S?x.crossAxis:0);g<E?g=E:g>T&&(g=T)}return{[p]:v,[u]:g}}}},nm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=We(e,t),d=await i.detectOverflow(t,c),u=Ge(o),p=St(o),v=De(o)==="y",{width:g,height:m}=s.floating;let x,y;u==="top"||u==="bottom"?(x=u,y=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,x=p==="end"?"top":"bottom");const b=m-d.top-d.bottom,h=g-d.left-d.right,S=tt(m-d[x],b),E=tt(g-d[y],h),T=!t.middlewareData.shift;let M=S,_=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=h),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=b),T&&!p){const P=Ce(d.left,0),N=Ce(d.right,0),L=Ce(d.top,0),O=Ce(d.bottom,0);v?_=g-2*(P!==0||N!==0?P+N:Ce(d.left,d.right)):M=m-2*(L!==0||O!==0?L+O:Ce(d.top,d.bottom))}await l({...t,availableWidth:_,availableHeight:M});const A=await i.getDimensions(a.floating);return g!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function yn(){return typeof window<"u"}function Et(e){return wi(e)?(e.nodeName||"").toLowerCase():"#document"}function Te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $e(e){var t;return(t=(wi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wi(e){return yn()?e instanceof Node||e instanceof Te(e).Node:!1}function Ne(e){return yn()?e instanceof Element||e instanceof Te(e).Element:!1}function ze(e){return yn()?e instanceof HTMLElement||e instanceof Te(e).HTMLElement:!1}function xi(e){return!yn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Te(e).ShadowRoot}const rm=new Set(["inline","contents"]);function $t(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!rm.has(o)}const om=new Set(["table","td","th"]);function sm(e){return om.has(Et(e))}const im=[":popover-open",":modal"];function wn(e){return im.some(t=>{try{return e.matches(t)}catch{return!1}})}const am=["transform","translate","scale","rotate","perspective"],lm=["transform","translate","scale","rotate","perspective","filter"],cm=["paint","layout","strict","content"];function Ar(e){const t=Nr(),n=Ne(e)?Ie(e):e;return am.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||lm.some(r=>(n.willChange||"").includes(r))||cm.some(r=>(n.contain||"").includes(r))}function dm(e){let t=nt(e);for(;ze(t)&&!Ct(t);){if(Ar(t))return t;if(wn(t))return null;t=nt(t)}return null}function Nr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const um=new Set(["html","body","#document"]);function Ct(e){return um.has(Et(e))}function Ie(e){return Te(e).getComputedStyle(e)}function xn(e){return Ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nt(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xi(e)&&e.host||$e(e);return xi(t)?t.host:t}function Si(e){const t=nt(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&$t(t)?t:Si(t)}function zt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Si(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Te(o);if(s){const a=Ir(i);return t.concat(i,i.visualViewport||[],$t(o)?o:[],a&&n?zt(a):[])}return t.concat(o,zt(o,[],n))}function Ir(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ei(e){const t=Ie(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=hn(n)!==s||hn(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Or(e){return Ne(e)?e:e.contextElement}function Tt(e){const t=Or(e);if(!ze(t))return je(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ei(t);let i=(s?hn(n.width):n.width)/r,a=(s?hn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const fm=je(0);function Ci(e){const t=Te(e);return!Nr()||!t.visualViewport?fm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Te(e)?!1:t}function ct(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Or(e);let i=je(1);t&&(r?Ne(r)&&(i=Tt(r)):i=Tt(e));const a=pm(s,n,r)?Ci(s):je(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(s){const p=Te(s),v=r&&Ne(r)?Te(r):r;let g=p,m=Ir(g);for(;m&&r&&v!==g;){const x=Tt(m),y=m.getBoundingClientRect(),b=Ie(m),h=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,S=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,u*=x.y,l+=h,c+=S,g=Te(m),m=Ir(g)}}return bn({width:d,height:u,x:l,y:c})}function Sn(e,t){const n=xn(e).scrollLeft;return t?t.left+n:ct($e(e)).left+n}function Ti(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function mm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=$e(r),a=t?wn(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=je(1);const d=je(0),u=ze(r);if((u||!u&&!s)&&((Et(r)!=="body"||$t(i))&&(l=xn(r)),ze(r))){const v=ct(r);c=Tt(r),d.x=v.x+r.clientLeft,d.y=v.y+r.clientTop}const p=i&&!u&&!s?Ti(i,l):je(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}}function hm(e){return Array.from(e.getClientRects())}function gm(e){const t=$e(e),n=xn(e),r=e.ownerDocument.body,o=Ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Sn(e);const a=-n.scrollTop;return Ie(r).direction==="rtl"&&(i+=Ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Pi=25;function vm(e,t){const n=Te(e),r=$e(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const d=Nr();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Sn(r);if(c<=0){const d=r.ownerDocument,u=d.body,p=getComputedStyle(u),v=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-u.clientWidth-v);g<=Pi&&(s-=g)}else c<=Pi&&(s+=c);return{width:s,height:i,x:a,y:l}}const bm=new Set(["absolute","fixed"]);function ym(e,t){const n=ct(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ze(e)?Tt(e):je(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function _i(e,t,n){let r;if(t==="viewport")r=vm(e,n);else if(t==="document")r=gm($e(e));else if(Ne(t))r=ym(t,n);else{const o=Ci(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return bn(r)}function ki(e,t){const n=nt(e);return n===t||!Ne(n)||Ct(n)?!1:Ie(n).position==="fixed"||ki(n,t)}function wm(e,t){const n=t.get(e);if(n)return n;let r=zt(e,[],!1).filter(a=>Ne(a)&&Et(a)!=="body"),o=null;const s=Ie(e).position==="fixed";let i=s?nt(e):e;for(;Ne(i)&&!Ct(i);){const a=Ie(i),l=Ar(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&bm.has(o.position)||$t(i)&&!l&&ki(e,i))?r=r.filter(d=>d!==i):o=a,i=nt(i)}return t.set(e,r),r}function xm(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?wn(t)?[]:wm(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const u=_i(t,d,o);return c.top=Ce(u.top,c.top),c.right=tt(u.right,c.right),c.bottom=tt(u.bottom,c.bottom),c.left=Ce(u.left,c.left),c},_i(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Sm(e){const{width:t,height:n}=Ei(e);return{width:t,height:n}}function Em(e,t,n){const r=ze(t),o=$e(t),s=n==="fixed",i=ct(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=je(0);function c(){l.x=Sn(o)}if(r||!r&&!s)if((Et(t)!=="body"||$t(o))&&(a=xn(t)),r){const v=ct(t,!0,s,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&c();s&&!r&&o&&c();const d=o&&!r&&!s?Ti(o,a):je(0),u=i.left+a.scrollLeft-l.x-d.x,p=i.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:i.width,height:i.height}}function Rr(e){return Ie(e).position==="static"}function Mi(e,t){if(!ze(e)||Ie(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $e(e)===n&&(n=n.ownerDocument.body),n}function Ai(e,t){const n=Te(e);if(wn(e))return n;if(!ze(e)){let o=nt(e);for(;o&&!Ct(o);){if(Ne(o)&&!Rr(o))return o;o=nt(o)}return n}let r=Mi(e,t);for(;r&&sm(r)&&Rr(r);)r=Mi(r,t);return r&&Ct(r)&&Rr(r)&&!Ar(r)?n:r||dm(e)||n}const Cm=async function(e){const t=this.getOffsetParent||Ai,n=this.getDimensions,r=await n(e.floating);return{reference:Em(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tm(e){return Ie(e).direction==="rtl"}const Pm={convertOffsetParentRelativeRectToViewportRelativeRect:mm,getDocumentElement:$e,getClippingRect:xm,getOffsetParent:Ai,getElementRects:Cm,getClientRects:hm,getDimensions:Sm,getScale:Tt,isElement:Ne,isRTL:Tm};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _m(e,t){let n=null,r;const o=$e(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:v}=c;if(a||t(),!p||!v)return;const g=gn(u),m=gn(o.clientWidth-(d+p)),x=gn(o.clientHeight-(u+v)),y=gn(d),h={rootMargin:-g+"px "+-m+"px "+-x+"px "+-y+"px",threshold:Ce(0,tt(1,l))||1};let S=!0;function E(T){const M=T[0].intersectionRatio;if(M!==l){if(!S)return i();M?i(!1,M):r=setTimeout(()=>{i(!1,1e-7)},1e3)}M===1&&!Ni(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(E,{...h,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,h)}n.observe(e)}return i(!0),s}function km(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Or(e),d=o||s?[...c?zt(c):[],...zt(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const u=c&&a?_m(c,n):null;let p=-1,v=null;i&&(v=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var h;(h=v)==null||h.observe(t)})),n()}),c&&!l&&v.observe(c),v.observe(t));let g,m=l?ct(e):null;l&&x();function x(){const y=ct(e);m&&!Ni(m,y)&&n(),m=y,g=requestAnimationFrame(x)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u==null||u(),(y=v)==null||y.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const Mm=Qp,Am=em,Nm=Kp,Im=nm,Om=Zp,Ii=Xp,Rm=tm,Lm=(e,t,n)=>{const r=new Map,o={platform:Pm,...n},s={...o.platform,_c:r};return qp(e,t,{...o,platform:s})};var jm=typeof document<"u",Dm=function(){},En=jm?$.useLayoutEffect:Dm;function Cn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Cn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Cn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Oi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ri(e,t){const n=Oi(e);return Math.round(t*n)/n}function Lr(e){const t=f.useRef(e);return En(()=>{t.current=e}),t}function $m(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=f.useState(r);Cn(p,r)||v(r);const[g,m]=f.useState(null),[x,y]=f.useState(null),b=f.useCallback(C=>{C!==T.current&&(T.current=C,m(C))},[]),h=f.useCallback(C=>{C!==M.current&&(M.current=C,y(C))},[]),S=s||g,E=i||x,T=f.useRef(null),M=f.useRef(null),_=f.useRef(d),A=l!=null,P=Lr(l),N=Lr(o),L=Lr(c),O=f.useCallback(()=>{if(!T.current||!M.current)return;const C={placement:t,strategy:n,middleware:p};N.current&&(C.platform=N.current),Lm(T.current,M.current,C).then(R=>{const H={...R,isPositioned:L.current!==!1};D.current&&!Cn(_.current,H)&&(_.current=H,Vt.flushSync(()=>{u(H)}))})},[p,t,n,N,L]);En(()=>{c===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(C=>({...C,isPositioned:!1})))},[c]);const D=f.useRef(!1);En(()=>(D.current=!0,()=>{D.current=!1}),[]),En(()=>{if(S&&(T.current=S),E&&(M.current=E),S&&E){if(P.current)return P.current(S,E,O);O()}},[S,E,O,P,A]);const z=f.useMemo(()=>({reference:T,floating:M,setReference:b,setFloating:h}),[b,h]),j=f.useMemo(()=>({reference:S,floating:E}),[S,E]),k=f.useMemo(()=>{const C={position:n,left:0,top:0};if(!j.floating)return C;const R=Ri(j.floating,d.x),H=Ri(j.floating,d.y);return a?{...C,transform:"translate("+R+"px, "+H+"px)",...Oi(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:H}},[n,a,j.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:O,refs:z,elements:j,floatingStyles:k}),[d,O,z,j,k])}const zm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ii({element:r.current,padding:o}).fn(n):{}:r?Ii({element:r,padding:o}).fn(n):{}}}},Bm=(e,t)=>({...Mm(e),options:[e,t]}),Fm=(e,t)=>({...Am(e),options:[e,t]}),Vm=(e,t)=>({...Rm(e),options:[e,t]}),Hm=(e,t)=>({...Nm(e),options:[e,t]}),Wm=(e,t)=>({...Im(e),options:[e,t]}),Gm=(e,t)=>({...Om(e),options:[e,t]}),Um=(e,t)=>({...zm(e),options:[e,t]});function Ym(e){const t=qm(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Km);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function qm(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=Jm(o),a=Zm(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xm=Symbol("radix.slottable");function Km(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xm}function Zm(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Jm(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eh=Qm.reduce((e,t)=>{const n=Ym(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),th="Arrow",Li=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return w.jsx(eh.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Li.displayName=th;var nh=Li;function rh(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,oh(o,...t)]}function oh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function sh(e){const t=ih(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(lh);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ih(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=dh(o),a=ch(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ah=Symbol("radix.slottable");function lh(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ah}function ch(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function dh(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ji=uh.reduce((e,t)=>{const n=sh(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),jr="Popper",[Di,$i]=rh(jr),[fh,zi]=Di(jr),Bi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return w.jsx(fh,{scope:t,anchor:r,onAnchorChange:o,children:n})};Bi.displayName=jr;var Fi="PopperAnchor",Vi=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=zi(Fi,n),i=f.useRef(null),a=le(t,i),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||i.current,c!==l.current&&s.onAnchorChange(l.current)}),r?null:w.jsx(ji.div,{...o,ref:a})});Vi.displayName=Fi;var Dr="PopperContent",[ph,mh]=Di(Dr),Hi=f.forwardRef((e,t)=>{var B,Z,re,Q,te,ee;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...m}=e,x=zi(Dr,n),[y,b]=f.useState(null),h=le(t,ve=>b(ve)),[S,E]=f.useState(null),T=fi(S),M=(T==null?void 0:T.width)??0,_=(T==null?void 0:T.height)??0,A=r+(s!=="center"?"-"+s:""),P=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},N=Array.isArray(c)?c:[c],L=N.length>0,O={padding:P,boundary:N.filter(gh),altBoundary:L},{refs:D,floatingStyles:z,placement:j,isPositioned:k,middlewareData:C}=$m({strategy:"fixed",placement:A,whileElementsMounted:(...ve)=>km(...ve,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[Bm({mainAxis:o+_,alignmentAxis:i}),l&&Fm({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Vm():void 0,...O}),l&&Hm({...O}),Wm({...O,apply:({elements:ve,rects:ye,availableWidth:Be,availableHeight:V})=>{const{width:de,height:we}=ye.reference,xe=ve.floating.style;xe.setProperty("--radix-popper-available-width",`${Be}px`),xe.setProperty("--radix-popper-available-height",`${V}px`),xe.setProperty("--radix-popper-anchor-width",`${de}px`),xe.setProperty("--radix-popper-anchor-height",`${we}px`)}}),S&&Um({element:S,padding:a}),vh({arrowWidth:M,arrowHeight:_}),p&&Gm({strategy:"referenceHidden",...O})]}),[R,H]=Ui(j),I=Je(g);be(()=>{k&&(I==null||I())},[k,I]);const G=(B=C.arrow)==null?void 0:B.x,q=(Z=C.arrow)==null?void 0:Z.y,K=((re=C.arrow)==null?void 0:re.centerOffset)!==0,[se,ae]=f.useState();return be(()=>{y&&ae(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:k?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(Q=C.transformOrigin)==null?void 0:Q.x,(te=C.transformOrigin)==null?void 0:te.y].join(" "),...((ee=C.hide)==null?void 0:ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(ph,{scope:n,placedSide:R,onArrowChange:E,arrowX:G,arrowY:q,shouldHideArrow:K,children:w.jsx(ji.div,{"data-side":R,"data-align":H,...m,ref:h,style:{...m.style,animation:k?void 0:"none"}})})})});Hi.displayName=Dr;var Wi="PopperArrow",hh={top:"bottom",right:"left",bottom:"top",left:"right"},Gi=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=mh(Wi,r),i=hh[s.placedSide];return w.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:w.jsx(nh,{...o,ref:n,style:{...o.style,display:"block"}})})});Gi.displayName=Wi;function gh(e){return e!==null}var vh=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=Ui(n),u={start:"0%",center:"50%",end:"100%"}[d],p=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,v=(((b=o.arrow)==null?void 0:b.y)??0)+l/2;let g="",m="";return c==="bottom"?(g=i?u:`${p}px`,m=`${-l}px`):c==="top"?(g=i?u:`${p}px`,m=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=i?u:`${v}px`):c==="left"&&(g=`${r.floating.width+l}px`,m=i?u:`${v}px`),{data:{x:g,y:m}}}});function Ui(e){const[t,n="center"]=e.split("-");return[t,n]}var bh=Bi,yh=Vi,wh=Hi,xh=Gi;function Tn(e,[t,n]){return Math.min(n,Math.max(t,e))}function Sh(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,Eh(o,...t)]}function Eh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Yi(e){const t=Ch(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(Ph);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Ch(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=kh(o),a=_h(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Th=Symbol("radix.slottable");function Ph(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Th}function _h(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function kh(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Mh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pe=Mh.reduce((e,t)=>{const n=Yi(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ah=[" ","Enter","ArrowUp","ArrowDown"],Nh=[" ","Enter"],dt="Select",[Pn,_n,Ih]=Rs(dt),[Pt,bv]=Sh(dt,[Ih,$i]),kn=$i(),[Oh,rt]=Pt(dt),[Rh,Lh]=Pt(dt),qi=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:d,autoComplete:u,disabled:p,required:v,form:g}=e,m=kn(t),[x,y]=f.useState(null),[b,h]=f.useState(null),[S,E]=f.useState(!1),T=Ls(c),[M,_]=mr({prop:r,defaultProp:o??!1,onChange:s,caller:dt}),[A,P]=mr({prop:i,defaultProp:a,onChange:l,caller:dt}),N=f.useRef(null),L=x?g||!!x.closest("form"):!0,[O,D]=f.useState(new Set),z=Array.from(O).map(j=>j.props.value).join(";");return w.jsx(bh,{...m,children:w.jsxs(Oh,{required:v,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:h,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:hr(),value:A,onValueChange:P,open:M,onOpenChange:_,dir:T,triggerPointerDownPosRef:N,disabled:p,children:[w.jsx(Pn.Provider,{scope:t,children:w.jsx(Rh,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(j=>{D(k=>new Set(k).add(j))},[]),onNativeOptionRemove:f.useCallback(j=>{D(k=>{const C=new Set(k);return C.delete(j),C})},[]),children:n})}),L?w.jsxs(ga,{"aria-hidden":!0,required:v,tabIndex:-1,name:d,autoComplete:u,value:A,onChange:j=>P(j.target.value),disabled:p,form:g,children:[A===void 0?w.jsx("option",{value:""}):null,Array.from(O)]},z):null]})})};qi.displayName=dt;var Xi="SelectTrigger",Ki=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=kn(n),i=rt(Xi,n),a=i.disabled||r,l=le(t,i.onTriggerChange),c=_n(n),d=f.useRef("touch"),[u,p,v]=ba(m=>{const x=c().filter(h=>!h.disabled),y=x.find(h=>h.value===i.value),b=ya(x,m,y);b!==void 0&&i.onValueChange(b.value)}),g=m=>{a||(i.onOpenChange(!0),v()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return w.jsx(yh,{asChild:!0,...s,children:w.jsx(Pe.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":va(i.value)?"":void 0,...o,ref:l,onClick:ie(o.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&g(m)}),onPointerDown:ie(o.onPointerDown,m=>{d.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:ie(o.onKeyDown,m=>{const x=u.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&p(m.key),!(x&&m.key===" ")&&Ah.includes(m.key)&&(g(),m.preventDefault())})})})});Ki.displayName=Xi;var Zi="SelectValue",Ji=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=rt(Zi,n),{onValueNodeHasChildrenChange:c}=l,d=s!==void 0,u=le(t,l.onValueNodeChange);return be(()=>{c(d)},[c,d]),w.jsx(Pe.span,{...a,ref:u,style:{pointerEvents:"none"},children:va(l.value)?w.jsx(w.Fragment,{children:i}):s})});Ji.displayName=Zi;var jh="SelectIcon",Qi=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(Pe.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Qi.displayName=jh;var Dh="SelectPortal",ea=e=>w.jsx(qs,{asChild:!0,...e});ea.displayName=Dh;var ut="SelectContent",ta=f.forwardRef((e,t)=>{const n=rt(ut,e.__scopeSelect),[r,o]=f.useState();if(be(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Vt.createPortal(w.jsx(na,{scope:e.__scopeSelect,children:w.jsx(Pn.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),s):null}return w.jsx(ra,{...e,ref:t})});ta.displayName=ut;var Oe=10,[na,ot]=Pt(ut),$h="SelectContentImpl",zh=Yi("SelectContent.RemoveScroll"),ra=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:u,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=rt(ut,n),[h,S]=f.useState(null),[E,T]=f.useState(null),M=le(t,B=>S(B)),[_,A]=f.useState(null),[P,N]=f.useState(null),L=_n(n),[O,D]=f.useState(!1),z=f.useRef(!1);f.useEffect(()=>{if(h)return Lp(h)},[h]),qf();const j=f.useCallback(B=>{const[Z,...re]=L().map(ee=>ee.ref.current),[Q]=re.slice(-1),te=document.activeElement;for(const ee of B)if(ee===te||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===Z&&E&&(E.scrollTop=0),ee===Q&&E&&(E.scrollTop=E.scrollHeight),ee==null||ee.focus(),document.activeElement!==te))return},[L,E]),k=f.useCallback(()=>j([_,h]),[j,_,h]);f.useEffect(()=>{O&&k()},[O,k]);const{onOpenChange:C,triggerPointerDownPosRef:R}=b;f.useEffect(()=>{if(h){let B={x:0,y:0};const Z=Q=>{var te,ee;B={x:Math.abs(Math.round(Q.pageX)-(((te=R.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((ee=R.current)==null?void 0:ee.y)??0))}},re=Q=>{B.x<=10&&B.y<=10?Q.preventDefault():h.contains(Q.target)||C(!1),document.removeEventListener("pointermove",Z),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",re,{capture:!0})}}},[h,C,R]),f.useEffect(()=>{const B=()=>C(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[C]);const[H,I]=ba(B=>{const Z=L().filter(te=>!te.disabled),re=Z.find(te=>te.ref.current===document.activeElement),Q=ya(Z,B,re);Q&&setTimeout(()=>Q.ref.current.focus())}),G=f.useCallback((B,Z,re)=>{const Q=!z.current&&!re;(b.value!==void 0&&b.value===Z||Q)&&(A(B),Q&&(z.current=!0))},[b.value]),q=f.useCallback(()=>h==null?void 0:h.focus(),[h]),K=f.useCallback((B,Z,re)=>{const Q=!z.current&&!re;(b.value!==void 0&&b.value===Z||Q)&&N(B)},[b.value]),se=r==="popper"?$r:oa,ae=se===$r?{side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:u,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:x}:{};return w.jsx(na,{scope:n,content:h,viewport:E,onViewportChange:T,itemRefCallback:G,selectedItem:_,onItemLeave:q,itemTextRefCallback:K,focusSelectedItem:k,selectedItemText:P,position:r,isPositioned:O,searchRef:H,children:w.jsx(Np,{as:zh,allowPinchZoom:!0,children:w.jsx(Hs,{asChild:!0,trapped:b.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:ie(o,B=>{var Z;(Z=b.trigger)==null||Z.focus({preventScroll:!0}),B.preventDefault()}),children:w.jsx(zs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:w.jsx(se,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:B=>B.preventDefault(),...y,...ae,onPlaced:()=>D(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:ie(y.onKeyDown,B=>{const Z=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!Z&&B.key.length===1&&I(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let Q=L().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(B.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const te=B.target,ee=Q.indexOf(te);Q=Q.slice(ee+1)}setTimeout(()=>j(Q)),B.preventDefault()}})})})})})})});ra.displayName=$h;var Bh="SelectItemAlignedPosition",oa=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=rt(ut,n),i=ot(ut,n),[a,l]=f.useState(null),[c,d]=f.useState(null),u=le(t,M=>d(M)),p=_n(n),v=f.useRef(!1),g=f.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=i,h=f.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&m&&x&&y){const M=s.trigger.getBoundingClientRect(),_=c.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),P=y.getBoundingClientRect();if(s.dir!=="rtl"){const te=P.left-_.left,ee=A.left-te,ve=M.left-ee,ye=M.width+ve,Be=Math.max(ye,_.width),V=window.innerWidth-Oe,de=Tn(ee,[Oe,Math.max(Oe,V-Be)]);a.style.minWidth=ye+"px",a.style.left=de+"px"}else{const te=_.right-P.right,ee=window.innerWidth-A.right-te,ve=window.innerWidth-M.right-ee,ye=M.width+ve,Be=Math.max(ye,_.width),V=window.innerWidth-Oe,de=Tn(ee,[Oe,Math.max(Oe,V-Be)]);a.style.minWidth=ye+"px",a.style.right=de+"px"}const N=p(),L=window.innerHeight-Oe*2,O=m.scrollHeight,D=window.getComputedStyle(c),z=parseInt(D.borderTopWidth,10),j=parseInt(D.paddingTop,10),k=parseInt(D.borderBottomWidth,10),C=parseInt(D.paddingBottom,10),R=z+j+O+C+k,H=Math.min(x.offsetHeight*5,R),I=window.getComputedStyle(m),G=parseInt(I.paddingTop,10),q=parseInt(I.paddingBottom,10),K=M.top+M.height/2-Oe,se=L-K,ae=x.offsetHeight/2,B=x.offsetTop+ae,Z=z+j+B,re=R-Z;if(Z<=K){const te=N.length>0&&x===N[N.length-1].ref.current;a.style.bottom="0px";const ee=c.clientHeight-m.offsetTop-m.offsetHeight,ve=Math.max(se,ae+(te?q:0)+ee+k),ye=Z+ve;a.style.height=ye+"px"}else{const te=N.length>0&&x===N[0].ref.current;a.style.top="0px";const ve=Math.max(K,z+m.offsetTop+(te?G:0)+ae)+re;a.style.height=ve+"px",m.scrollTop=Z-K+m.offsetTop}a.style.margin=`${Oe}px 0`,a.style.minHeight=H+"px",a.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[p,s.trigger,s.valueNode,a,c,m,x,y,s.dir,r]);be(()=>h(),[h]);const[S,E]=f.useState();be(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const T=f.useCallback(M=>{M&&g.current===!0&&(h(),b==null||b(),g.current=!1)},[h,b]);return w.jsx(Vh,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:T,children:w.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:w.jsx(Pe.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});oa.displayName=Bh;var Fh="SelectPopperPosition",$r=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Oe,...s}=e,i=kn(n);return w.jsx(wh,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});$r.displayName=Fh;var[Vh,zr]=Pt(ut,{}),Br="SelectViewport",sa=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=ot(Br,n),i=zr(Br,n),a=le(t,s.onViewportChange),l=f.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(Pn.Slot,{scope:n,children:w.jsx(Pe.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ie(o.onScroll,c=>{const d=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:p}=i;if(p!=null&&p.current&&u){const v=Math.abs(l.current-d.scrollTop);if(v>0){const g=window.innerHeight-Oe*2,m=parseFloat(u.style.minHeight),x=parseFloat(u.style.height),y=Math.max(m,x);if(y<g){const b=y+v,h=Math.min(g,b),S=b-h;u.style.height=h+"px",u.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,u.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});sa.displayName=Br;var ia="SelectGroup",[Hh,Wh]=Pt(ia),Gh=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=hr();return w.jsx(Hh,{scope:n,id:o,children:w.jsx(Pe.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Gh.displayName=ia;var aa="SelectLabel",Uh=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Wh(aa,n);return w.jsx(Pe.div,{id:o.id,...r,ref:t})});Uh.displayName=aa;var Mn="SelectItem",[Yh,la]=Pt(Mn),ca=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=rt(Mn,n),l=ot(Mn,n),c=a.value===r,[d,u]=f.useState(s??""),[p,v]=f.useState(!1),g=le(t,b=>{var h;return(h=l.itemRefCallback)==null?void 0:h.call(l,b,r,o)}),m=hr(),x=f.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(Yh,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:f.useCallback(b=>{u(h=>h||((b==null?void 0:b.textContent)??"").trim())},[]),children:w.jsx(Pn.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:w.jsx(Pe.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:ie(i.onFocus,()=>v(!0)),onBlur:ie(i.onBlur,()=>v(!1)),onClick:ie(i.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:ie(i.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:ie(i.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:ie(i.onPointerMove,b=>{var h;x.current=b.pointerType,o?(h=l.onItemLeave)==null||h.call(l):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ie(i.onPointerLeave,b=>{var h;b.currentTarget===document.activeElement&&((h=l.onItemLeave)==null||h.call(l))}),onKeyDown:ie(i.onKeyDown,b=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&b.key===" "||(Nh.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});ca.displayName=Mn;var Bt="SelectItemText",da=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=rt(Bt,n),a=ot(Bt,n),l=la(Bt,n),c=Lh(Bt,n),[d,u]=f.useState(null),p=le(t,y=>u(y),l.onItemTextChange,y=>{var b;return(b=a.itemTextRefCallback)==null?void 0:b.call(a,y,l.value,l.disabled)}),v=d==null?void 0:d.textContent,g=f.useMemo(()=>w.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=c;return be(()=>(m(g),()=>x(g)),[m,x,g]),w.jsxs(w.Fragment,{children:[w.jsx(Pe.span,{id:l.textId,...s,ref:p}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Vt.createPortal(s.children,i.valueNode):null]})});da.displayName=Bt;var ua="SelectItemIndicator",fa=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return la(ua,n).isSelected?w.jsx(Pe.span,{"aria-hidden":!0,...r,ref:t}):null});fa.displayName=ua;var Fr="SelectScrollUpButton",pa=f.forwardRef((e,t)=>{const n=ot(Fr,e.__scopeSelect),r=zr(Fr,e.__scopeSelect),[o,s]=f.useState(!1),i=le(t,r.onScrollButtonChange);return be(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(ha,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});pa.displayName=Fr;var Vr="SelectScrollDownButton",ma=f.forwardRef((e,t)=>{const n=ot(Vr,e.__scopeSelect),r=zr(Vr,e.__scopeSelect),[o,s]=f.useState(!1),i=le(t,r.onScrollButtonChange);return be(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;s(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?w.jsx(ha,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});ma.displayName=Vr;var ha=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=ot("SelectScrollButton",n),i=f.useRef(null),a=_n(n),l=f.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),be(()=>{var d;const c=a().find(u=>u.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),w.jsx(Pe.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ie(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ie(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ie(o.onPointerLeave,()=>{l()})})}),qh="SelectSeparator",Xh=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(Pe.div,{"aria-hidden":!0,...r,ref:t})});Xh.displayName=qh;var Hr="SelectArrow",Kh=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=kn(n),s=rt(Hr,n),i=ot(Hr,n);return s.open&&i.position==="popper"?w.jsx(xh,{...o,...r,ref:t}):null});Kh.displayName=Hr;var Zh="SelectBubbleInput",ga=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),s=le(r,o),i=ui(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const u=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(u)}},[i,t]),w.jsx(Pe.select,{...n,style:{...Is,...n.style},ref:s,defaultValue:t})});ga.displayName=Zh;function va(e){return e===""||e===void 0}function ba(e){const t=Je(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function ya(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Jh(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Jh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Qh=qi,eg=Ki,tg=Ji,ng=Qi,rg=ea,og=ta,sg=sa,ig=ca,ag=da,lg=fa,cg=pa,dg=ma;function ug(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),l=n.length;n=[...n,i];const c=u=>{var y;const{scope:p,children:v,...g}=u,m=((y=p==null?void 0:p[e])==null?void 0:y[l])||a,x=f.useMemo(()=>g,Object.values(g));return w.jsx(m.Provider,{value:x,children:v})};c.displayName=s+"Provider";function d(u,p){var m;const v=((m=p==null?void 0:p[e])==null?void 0:m[l])||a,g=f.useContext(v);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,fg(o,...t)]}function fg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function pg(e){const t=mg(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),l=a.find(gg);if(l){const c=l.props.children,d=a.map(u=>u===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return w.jsx(t,{...i,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,d):null})}return w.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function mg(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=bg(o),a=vg(s,o.props);return o.type!==f.Fragment&&(a.ref=r?ke(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hg=Symbol("radix.slottable");function gg(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hg}function vg(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function bg(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ft=yg.reduce((e,t)=>{const n=pg(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),wa=["PageUp","PageDown"],xa=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Sa={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},_t="Slider",[Wr,wg,xg]=Rs(_t),[Ea,yv]=ug(_t,[xg]),[Sg,An]=Ea(_t),Ca=f.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:d,onValueChange:u=()=>{},onValueCommit:p=()=>{},inverted:v=!1,form:g,...m}=e,x=f.useRef(new Set),y=f.useRef(0),h=i==="horizontal"?Eg:Cg,[S=[],E]=mr({prop:d,defaultProp:c,onChange:N=>{var O;(O=[...x.current][y.current])==null||O.focus(),u(N)}}),T=f.useRef(S);function M(N){const L=Mg(S,N);P(N,L)}function _(N){P(N,y.current)}function A(){const N=T.current[y.current];S[y.current]!==N&&p(S)}function P(N,L,{commit:O}={commit:!1}){const D=Og(s),z=Rg(Math.round((N-r)/s)*s+r,D),j=Tn(z,[r,o]);E((k=[])=>{const C=_g(k,j,L);if(Ig(C,l*s)){y.current=C.indexOf(j);const R=String(C)!==String(k);return R&&O&&p(C),R?C:k}else return k})}return w.jsx(Sg,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:y,thumbs:x.current,values:S,orientation:i,form:g,children:w.jsx(Wr.Provider,{scope:e.__scopeSlider,children:w.jsx(Wr.Slot,{scope:e.__scopeSlider,children:w.jsx(h,{"aria-disabled":a,"data-disabled":a?"":void 0,...m,ref:t,onPointerDown:ie(m.onPointerDown,()=>{a||(T.current=S)}),min:r,max:o,inverted:v,onSlideStart:a?void 0:M,onSlideMove:a?void 0:_,onSlideEnd:a?void 0:A,onHomeKeyDown:()=>!a&&P(r,0,{commit:!0}),onEndKeyDown:()=>!a&&P(o,S.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:L})=>{if(!a){const z=wa.includes(N.key)||N.shiftKey&&xa.includes(N.key)?10:1,j=y.current,k=S[j],C=s*z*L;P(k+C,j,{commit:!0})}}})})})})});Ca.displayName=_t;var[Ta,Pa]=Ea(_t,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Eg=f.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...d}=e,[u,p]=f.useState(null),v=le(t,h=>p(h)),g=f.useRef(void 0),m=Ls(o),x=m==="ltr",y=x&&!s||!x&&s;function b(h){const S=g.current||u.getBoundingClientRect(),E=[0,S.width],M=Yr(E,y?[n,r]:[r,n]);return g.current=S,M(h-S.left)}return w.jsx(Ta,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:w.jsx(_a,{dir:m,"data-orientation":"horizontal",...d,ref:v,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:h=>{const S=b(h.clientX);i==null||i(S)},onSlideMove:h=>{const S=b(h.clientX);a==null||a(S)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:h=>{const E=Sa[y?"from-left":"from-right"].includes(h.key);c==null||c({event:h,direction:E?-1:1})}})})}),Cg=f.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...c}=e,d=f.useRef(null),u=le(t,d),p=f.useRef(void 0),v=!o;function g(m){const x=p.current||d.current.getBoundingClientRect(),y=[0,x.height],h=Yr(y,v?[r,n]:[n,r]);return p.current=x,h(m-x.top)}return w.jsx(Ta,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:w.jsx(_a,{"data-orientation":"vertical",...c,ref:u,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const x=g(m.clientY);s==null||s(x)},onSlideMove:m=>{const x=g(m.clientY);i==null||i(x)},onSlideEnd:()=>{p.current=void 0,a==null||a()},onStepKeyDown:m=>{const y=Sa[v?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:y?-1:1})}})})}),_a=f.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...c}=e,d=An(_t,n);return w.jsx(Ft.span,{...c,ref:t,onKeyDown:ie(e.onKeyDown,u=>{u.key==="Home"?(i(u),u.preventDefault()):u.key==="End"?(a(u),u.preventDefault()):wa.concat(xa).includes(u.key)&&(l(u),u.preventDefault())}),onPointerDown:ie(e.onPointerDown,u=>{const p=u.target;p.setPointerCapture(u.pointerId),u.preventDefault(),d.thumbs.has(p)?p.focus():r(u)}),onPointerMove:ie(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:ie(e.onPointerUp,u=>{const p=u.target;p.hasPointerCapture(u.pointerId)&&(p.releasePointerCapture(u.pointerId),s(u))})})}),ka="SliderTrack",Ma=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=An(ka,n);return w.jsx(Ft.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Ma.displayName=ka;var Gr="SliderRange",Aa=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=An(Gr,n),s=Pa(Gr,n),i=f.useRef(null),a=le(t,i),l=o.values.length,c=o.values.map(p=>Oa(p,o.min,o.max)),d=l>1?Math.min(...c):0,u=100-Math.max(...c);return w.jsx(Ft.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:d+"%",[s.endEdge]:u+"%"}})});Aa.displayName=Gr;var Ur="SliderThumb",Na=f.forwardRef((e,t)=>{const n=wg(e.__scopeSlider),[r,o]=f.useState(null),s=le(t,a=>o(a)),i=f.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return w.jsx(Tg,{...e,ref:s,index:i})}),Tg=f.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=An(Ur,n),a=Pa(Ur,n),[l,c]=f.useState(null),d=le(t,b=>c(b)),u=l?i.form||!!l.closest("form"):!0,p=fi(l),v=i.values[r],g=v===void 0?0:Oa(v,i.min,i.max),m=kg(r,i.values.length),x=p==null?void 0:p[a.size],y=x?Ag(x,g,a.direction):0;return f.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),w.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${g}% + ${y}px)`},children:[w.jsx(Wr.ItemSlot,{scope:e.__scopeSlider,children:w.jsx(Ft.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:d,style:v===void 0?{display:"none"}:e.style,onFocus:ie(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),u&&w.jsx(Ia,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},r)]})});Na.displayName=Ur;var Pg="RadioBubbleInput",Ia=f.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=f.useRef(null),s=le(o,r),i=ui(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const u=new Event("input",{bubbles:!0});d.call(a,t),a.dispatchEvent(u)}},[i,t]),w.jsx(Ft.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});Ia.displayName=Pg;function _g(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Oa(e,t,n){const s=100/(n-t)*(e-t);return Tn(s,[0,100])}function kg(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Mg(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Ag(e,t,n){const r=e/2,s=Yr([0,50],[0,r]);return(r-s(t)*n)*n}function Ng(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Ig(e,t){if(t>0){const n=Ng(e);return Math.min(...n)>=t}return!0}function Yr(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Og(e){return(String(e).split(".")[1]||"").length}function Rg(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Ra=Ca,La=Ma,ja=Aa,Da=Na;function Lg({...e}){return w.jsx(Qh,{"data-slot":"select",...e})}function jg({...e}){return w.jsx(tg,{"data-slot":"select-value",...e})}function Dg({className:e,size:t="default",children:n,...r}){return w.jsxs(eg,{"data-slot":"select-trigger","data-size":t,className:X("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,w.jsx(ng,{asChild:!0,children:w.jsx(Rn,{className:"size-4 opacity-50"})})]})}function $g({className:e,children:t,position:n="item-aligned",align:r="center",...o}){return w.jsx(rg,{children:w.jsxs(og,{"data-slot":"select-content",className:X("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[w.jsx(Bg,{}),w.jsx(sg,{className:X("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),w.jsx(Fg,{})]})})}function zg({className:e,children:t,...n}){return w.jsxs(ig,{"data-slot":"select-item",className:X("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[w.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:w.jsx(lg,{children:w.jsx(uo,{className:"size-4"})})}),w.jsx(ag,{children:t})]})}function Bg({className:e,...t}){return w.jsx(cg,{"data-slot":"select-scroll-up-button",className:X("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(dl,{className:"size-4"})})}function Fg({className:e,...t}){return w.jsx(dg,{"data-slot":"select-scroll-down-button",className:X("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsx(Rn,{className:"size-4"})})}const $a=$.createContext(void 0),ft=()=>{const e=$.useContext($a);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},Vg=({value:e,defaultValue:t="#000000",onChange:n,className:r,...o})=>{const s=ce(e),i=ce(t),[a,l]=$.useState(s.hue()||i.hue()||0),[c,d]=$.useState(s.saturationl()||i.saturationl()||100),[u,p]=$.useState(s.lightness()||i.lightness()||50),[v,g]=$.useState(s.alpha()*100||i.alpha()*100),[m,x]=$.useState("hex");return $.useEffect(()=>{if(e){const y=ce.rgb(e).rgb().object();l(y.r),d(y.g),p(y.b),g(y.a)}},[e]),$.useEffect(()=>{if(n){const b=ce.hsl(a,c,u).alpha(v/100).rgb().array();n([b[0],b[1],b[2],v/100])}},[a,c,u,v,n]),w.jsx($a.Provider,{value:{hue:a,saturation:c,lightness:u,alpha:v,mode:m,setHue:l,setSaturation:d,setLightness:p,setAlpha:g,setMode:x},children:w.jsx("div",{className:X("flex size-full flex-col gap-4",r),...o})})},za=$.memo(({className:e,...t})=>{const n=$.useRef(null),[r,o]=$.useState(!1),[s,i]=$.useState(0),[a,l]=$.useState(0),{hue:c,setSaturation:d,setLightness:u}=ft(),p=$.useMemo(()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),
|
|
359
|
+
`)},XO=0,Qf=[];function ZO(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(XO++)[0],o=L.useState(n0)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var k=gO([e.lockRef.current],(e.shards||[]).map(c0),!0).filter(Boolean);return k.forEach(function(W){return W.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),k.forEach(function(W){return W.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=L.useCallback(function(k,W){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!l.current.allowPinchZoom;var H=Og(k),B=n.current,I="deltaX"in k?k.deltaX:B[0]-H[0],Y="deltaY"in k?k.deltaY:B[1]-H[1],K,G=k.target,ne=Math.abs(I)>Math.abs(Y)?"h":"v";if("touches"in k&&ne==="h"&&G.type==="range")return!1;var $=window.getSelection(),ie=$&&$.anchorNode,se=ie?ie===G||ie.contains(G):!1;if(se)return!1;var ue=o0(ne,G);if(!ue)return!0;if(ue?K=ne:(K=ne==="v"?"h":"v",ue=o0(ne,G)),!ue)return!1;if(!r.current&&"changedTouches"in k&&(I||Y)&&(r.current=K),!K)return!0;var he=r.current||K;return GO(he,W,k,he==="h"?I:Y)},[]),p=L.useCallback(function(k){var W=k;if(!(!Qf.length||Qf[Qf.length-1]!==o)){var H="deltaY"in W?s0(W):Og(W),B=t.current.filter(function(K){return K.name===W.type&&(K.target===W.target||W.target===K.shadowParent)&&YO(K.delta,H)})[0];if(B&&B.should){W.cancelable&&W.preventDefault();return}if(!B){var I=(l.current.shards||[]).map(c0).filter(Boolean).filter(function(K){return K.contains(W.target)}),Y=I.length>0?u(W,I[0]):!l.current.noIsolation;Y&&W.cancelable&&W.preventDefault()}}},[]),y=L.useCallback(function(k,W,H,B){var I={name:k,delta:W,target:H,should:B,shadowParent:JO(H)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(Y){return Y!==I})},1)},[]),S=L.useCallback(function(k){n.current=Og(k),r.current=void 0},[]),w=L.useCallback(function(k){y(k.type,s0(k),k.target,u(k,e.lockRef.current))},[]),C=L.useCallback(function(k){y(k.type,Og(k),k.target,u(k,e.lockRef.current))},[]);L.useEffect(function(){return Qf.push(o),e.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:C}),document.addEventListener("wheel",p,Kf),document.addEventListener("touchmove",p,Kf),document.addEventListener("touchstart",S,Kf),function(){Qf=Qf.filter(function(k){return k!==o}),document.removeEventListener("wheel",p,Kf),document.removeEventListener("touchmove",p,Kf),document.removeEventListener("touchstart",S,Kf)}},[]);var M=e.removeScrollBar,O=e.inert;return L.createElement(L.Fragment,null,O?L.createElement(o,{styles:VO(i)}):null,M?L.createElement(DO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function JO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KO=EO(t0,ZO);var u0=L.forwardRef(function(e,t){return L.createElement(_g,Eu({},e,{ref:t,sideCar:KO}))});u0.classNames=_g.classNames;var QO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jf=new WeakMap,Ag=new WeakMap,Ig={},vv=0,d0=function(e){return e&&(e.host||d0(e.parentNode))},jO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=d0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qO=function(e,t,n,r){var i=jO(t,Array.isArray(e)?e:[e]);Ig[n]||(Ig[n]=new WeakMap);var o=Ig[n],l=[],u=new Set,p=new Set(i),y=function(w){!w||u.has(w)||(u.add(w),y(w.parentNode))};i.forEach(y);var S=function(w){!w||p.has(w)||Array.prototype.forEach.call(w.children,function(C){if(u.has(C))S(C);else try{var M=C.getAttribute(r),O=M!==null&&M!=="false",k=(jf.get(C)||0)+1,W=(o.get(C)||0)+1;jf.set(C,k),o.set(C,W),l.push(C),k===1&&O&&Ag.set(C,!0),W===1&&C.setAttribute(n,"true"),O||C.setAttribute(r,"true")}catch(H){console.error("aria-hidden: cannot operate on ",C,H)}})};return S(t),u.clear(),vv++,function(){l.forEach(function(w){var C=jf.get(w)-1,M=o.get(w)-1;jf.set(w,C),o.set(w,M),C||(Ag.has(w)||w.removeAttribute(r),Ag.delete(w)),M||w.removeAttribute(n)}),vv--,vv||(jf=new WeakMap,jf=new WeakMap,Ag=new WeakMap,Ig={})}},$O=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=QO(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),qO(r,i,n,"aria-hidden")):function(){return null}};function f0(e){const t=L.useRef({value:e,previous:e});return L.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function h0(e){const[t,n]=L.useState(void 0);return jo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let l,u;if("borderBoxSize"in o){const p=o.borderBoxSize,y=Array.isArray(p)?p[0]:p;l=y.inlineSize,u=y.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const eA=["top","right","bottom","left"],Yd=Math.min,is=Math.max,Ng=Math.round,Fg=Math.floor,Cu=e=>({x:e,y:e}),tA={left:"right",right:"left",bottom:"top",top:"bottom"};function bv(e,t,n){return is(e,Yd(t,n))}function ld(e,t){return typeof e=="function"?e(t):e}function sd(e){return e.split("-")[0]}function qf(e){return e.split("-")[1]}function mv(e){return e==="x"?"y":"x"}function yv(e){return e==="y"?"height":"width"}function Tu(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function wv(e){return mv(Tu(e))}function nA(e,t,n){n===void 0&&(n=!1);const r=qf(e),i=wv(e),o=yv(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Dg(l)),[l,Dg(l)]}function rA(e){const t=Dg(e);return[xv(e),t,xv(t)]}function xv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const g0=["left","right"],p0=["right","left"],iA=["top","bottom"],oA=["bottom","top"];function aA(e,t,n){switch(e){case"top":case"bottom":return n?t?p0:g0:t?g0:p0;case"left":case"right":return t?iA:oA;default:return[]}}function lA(e,t,n,r){const i=qf(e);let o=aA(sd(e),n==="start",r);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(xv)))),o}function Dg(e){const t=sd(e);return tA[t]+e.slice(t.length)}function sA(e){return{top:0,right:0,bottom:0,left:0,...e}}function v0(e){return typeof e!="number"?sA(e):{top:e,right:e,bottom:e,left:e}}function Lg(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function b0(e,t,n){let{reference:r,floating:i}=e;const o=Tu(t),l=wv(t),u=yv(l),p=sd(t),y=o==="y",S=r.x+r.width/2-i.width/2,w=r.y+r.height/2-i.height/2,C=r[u]/2-i[u]/2;let M;switch(p){case"top":M={x:S,y:r.y-i.height};break;case"bottom":M={x:S,y:r.y+r.height};break;case"right":M={x:r.x+r.width,y:w};break;case"left":M={x:r.x-i.width,y:w};break;default:M={x:r.x,y:r.y}}switch(qf(t)){case"start":M[l]-=C*(n&&y?-1:1);break;case"end":M[l]+=C*(n&&y?-1:1);break}return M}async function cA(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:l,elements:u,strategy:p}=e,{boundary:y="clippingAncestors",rootBoundary:S="viewport",elementContext:w="floating",altBoundary:C=!1,padding:M=0}=ld(t,e),O=v0(M),W=u[C?w==="floating"?"reference":"floating":w],H=Lg(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(W)))==null||n?W:W.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:y,rootBoundary:S,strategy:p})),B=w==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),Y=await(o.isElement==null?void 0:o.isElement(I))?await(o.getScale==null?void 0:o.getScale(I))||{x:1,y:1}:{x:1,y:1},K=Lg(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:B,offsetParent:I,strategy:p}):B);return{top:(H.top-K.top+O.top)/Y.y,bottom:(K.bottom-H.bottom+O.bottom)/Y.y,left:(H.left-K.left+O.left)/Y.x,right:(K.right-H.right+O.right)/Y.x}}const uA=50,dA=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,u=l.detectOverflow?l:{...l,detectOverflow:cA},p=await(l.isRTL==null?void 0:l.isRTL(t));let y=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:S,y:w}=b0(y,r,p),C=r,M=0;const O={};for(let k=0;k<o.length;k++){const W=o[k];if(!W)continue;const{name:H,fn:B}=W,{x:I,y:Y,data:K,reset:G}=await B({x:S,y:w,initialPlacement:r,placement:C,strategy:i,middlewareData:O,rects:y,platform:u,elements:{reference:e,floating:t}});S=I??S,w=Y??w,O[H]={...O[H],...K},G&&M<uA&&(M++,typeof G=="object"&&(G.placement&&(C=G.placement),G.rects&&(y=G.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):G.rects),{x:S,y:w}=b0(y,C,p)),k=-1)}return{x:S,y:w,placement:C,strategy:i,middlewareData:O}},fA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:l,elements:u,middlewareData:p}=t,{element:y,padding:S=0}=ld(e,t)||{};if(y==null)return{};const w=v0(S),C={x:n,y:r},M=wv(i),O=yv(M),k=await l.getDimensions(y),W=M==="y",H=W?"top":"left",B=W?"bottom":"right",I=W?"clientHeight":"clientWidth",Y=o.reference[O]+o.reference[M]-C[M]-o.floating[O],K=C[M]-o.reference[M],G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(y));let ne=G?G[I]:0;(!ne||!await(l.isElement==null?void 0:l.isElement(G)))&&(ne=u.floating[I]||o.floating[O]);const $=Y/2-K/2,ie=ne/2-k[O]/2-1,se=Yd(w[H],ie),ue=Yd(w[B],ie),he=se,ve=ne-k[O]-ue,ae=ne/2-k[O]/2+$,me=bv(he,ae,ve),V=!p.arrow&&qf(i)!=null&&ae!==me&&o.reference[O]/2-(ae<he?se:ue)-k[O]/2<0,J=V?ae<he?ae-he:ae-ve:0;return{[M]:C[M]+J,data:{[M]:me,centerOffset:ae-me-J,...V&&{alignmentOffset:J}},reset:V}}}),hA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:u,platform:p,elements:y}=t,{mainAxis:S=!0,crossAxis:w=!0,fallbackPlacements:C,fallbackStrategy:M="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:k=!0,...W}=ld(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const H=sd(i),B=Tu(u),I=sd(u)===u,Y=await(p.isRTL==null?void 0:p.isRTL(y.floating)),K=C||(I||!k?[Dg(u)]:rA(u)),G=O!=="none";!C&&G&&K.push(...lA(u,k,O,Y));const ne=[u,...K],$=await p.detectOverflow(t,W),ie=[];let se=((r=o.flip)==null?void 0:r.overflows)||[];if(S&&ie.push($[H]),w){const ae=nA(i,l,Y);ie.push($[ae[0]],$[ae[1]])}if(se=[...se,{placement:i,overflows:ie}],!ie.every(ae=>ae<=0)){var ue,he;const ae=(((ue=o.flip)==null?void 0:ue.index)||0)+1,me=ne[ae];if(me&&(!(w==="alignment"?B!==Tu(me):!1)||se.every(oe=>Tu(oe.placement)===B?oe.overflows[0]>0:!0)))return{data:{index:ae,overflows:se},reset:{placement:me}};let V=(he=se.filter(J=>J.overflows[0]<=0).sort((J,oe)=>J.overflows[1]-oe.overflows[1])[0])==null?void 0:he.placement;if(!V)switch(M){case"bestFit":{var ve;const J=(ve=se.filter(oe=>{if(G){const xe=Tu(oe.placement);return xe===B||xe==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(xe=>xe>0).reduce((xe,ee)=>xe+ee,0)]).sort((oe,xe)=>oe[1]-xe[1])[0])==null?void 0:ve[0];J&&(V=J);break}case"initialPlacement":V=u;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function m0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function y0(e){return eA.some(t=>e[t]>=0)}const gA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=ld(e,t);switch(i){case"referenceHidden":{const l=await r.detectOverflow(t,{...o,elementContext:"reference"}),u=m0(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:y0(u)}}}case"escaped":{const l=await r.detectOverflow(t,{...o,altBoundary:!0}),u=m0(l,n.floating);return{data:{escapedOffsets:u,escaped:y0(u)}}}default:return{}}}}},w0=new Set(["left","top"]);async function pA(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=sd(n),u=qf(n),p=Tu(n)==="y",y=w0.has(l)?-1:1,S=o&&p?-1:1,w=ld(t,e);let{mainAxis:C,crossAxis:M,alignmentAxis:O}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return u&&typeof O=="number"&&(M=u==="end"?O*-1:O),p?{x:M*S,y:C*y}:{x:C*y,y:M*S}}const vA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:l,middlewareData:u}=t,p=await pA(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+p.x,y:o+p.y,data:{...p,placement:l}}}}},bA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:p={fn:H=>{let{x:B,y:I}=H;return{x:B,y:I}}},...y}=ld(e,t),S={x:n,y:r},w=await o.detectOverflow(t,y),C=Tu(sd(i)),M=mv(C);let O=S[M],k=S[C];if(l){const H=M==="y"?"top":"left",B=M==="y"?"bottom":"right",I=O+w[H],Y=O-w[B];O=bv(I,O,Y)}if(u){const H=C==="y"?"top":"left",B=C==="y"?"bottom":"right",I=k+w[H],Y=k-w[B];k=bv(I,k,Y)}const W=p.fn({...t,[M]:O,[C]:k});return{...W,data:{x:W.x-n,y:W.y-r,enabled:{[M]:l,[C]:u}}}}}},mA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:u=0,mainAxis:p=!0,crossAxis:y=!0}=ld(e,t),S={x:n,y:r},w=Tu(i),C=mv(w);let M=S[C],O=S[w];const k=ld(u,t),W=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(p){const I=C==="y"?"height":"width",Y=o.reference[C]-o.floating[I]+W.mainAxis,K=o.reference[C]+o.reference[I]-W.mainAxis;M<Y?M=Y:M>K&&(M=K)}if(y){var H,B;const I=C==="y"?"width":"height",Y=w0.has(sd(i)),K=o.reference[w]-o.floating[I]+(Y&&((H=l.offset)==null?void 0:H[w])||0)+(Y?0:W.crossAxis),G=o.reference[w]+o.reference[I]+(Y?0:((B=l.offset)==null?void 0:B[w])||0)-(Y?W.crossAxis:0);O<K?O=K:O>G&&(O=G)}return{[C]:M,[w]:O}}}},yA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:l,elements:u}=t,{apply:p=()=>{},...y}=ld(e,t),S=await l.detectOverflow(t,y),w=sd(i),C=qf(i),M=Tu(i)==="y",{width:O,height:k}=o.floating;let W,H;w==="top"||w==="bottom"?(W=w,H=C===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(H=w,W=C==="end"?"top":"bottom");const B=k-S.top-S.bottom,I=O-S.left-S.right,Y=Yd(k-S[W],B),K=Yd(O-S[H],I),G=!t.middlewareData.shift;let ne=Y,$=K;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=I),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ne=B),G&&!C){const se=is(S.left,0),ue=is(S.right,0),he=is(S.top,0),ve=is(S.bottom,0);M?$=O-2*(se!==0||ue!==0?se+ue:is(S.left,S.right)):ne=k-2*(he!==0||ve!==0?he+ve:is(S.top,S.bottom))}await p({...t,availableWidth:$,availableHeight:ne});const ie=await l.getDimensions(u.floating);return O!==ie.width||k!==ie.height?{reset:{rects:!0}}:{}}}};function Bg(){return typeof window<"u"}function $f(e){return x0(e)?(e.nodeName||"").toLowerCase():"#document"}function os(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ku(e){var t;return(t=(x0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function x0(e){return Bg()?e instanceof Node||e instanceof os(e).Node:!1}function _c(e){return Bg()?e instanceof Element||e instanceof os(e).Element:!1}function cd(e){return Bg()?e instanceof HTMLElement||e instanceof os(e).HTMLElement:!1}function S0(e){return!Bg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof os(e).ShadowRoot}function Lh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Pc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function wA(e){return/^(table|td|th)$/.test($f(e))}function zg(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const xA=/transform|translate|scale|rotate|perspective|filter/,SA=/paint|layout|strict|content/,bf=e=>!!e&&e!=="none";let Sv;function Ev(e){const t=_c(e)?Pc(e):e;return bf(t.transform)||bf(t.translate)||bf(t.scale)||bf(t.rotate)||bf(t.perspective)||!Cv()&&(bf(t.backdropFilter)||bf(t.filter))||xA.test(t.willChange||"")||SA.test(t.contain||"")}function EA(e){let t=Vd(e);for(;cd(t)&&!eh(t);){if(Ev(t))return t;if(zg(t))return null;t=Vd(t)}return null}function Cv(){return Sv==null&&(Sv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sv}function eh(e){return/^(html|body|#document)$/.test($f(e))}function Pc(e){return os(e).getComputedStyle(e)}function Hg(e){return _c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vd(e){if($f(e)==="html")return e;const t=e.assignedSlot||e.parentNode||S0(e)&&e.host||ku(e);return S0(t)?t.host:t}function E0(e){const t=Vd(e);return eh(t)?e.ownerDocument?e.ownerDocument.body:e.body:cd(t)&&Lh(t)?t:E0(t)}function Bh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=E0(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=os(i);if(o){const u=Tv(l);return t.concat(l,l.visualViewport||[],Lh(i)?i:[],u&&n?Bh(u):[])}else return t.concat(i,Bh(i,[],n))}function Tv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function C0(e){const t=Pc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=cd(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,u=Ng(n)!==o||Ng(r)!==l;return u&&(n=o,r=l),{width:n,height:r,$:u}}function kv(e){return _c(e)?e:e.contextElement}function th(e){const t=kv(e);if(!cd(t))return Cu(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=C0(t);let l=(o?Ng(n.width):n.width)/r,u=(o?Ng(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const CA=Cu(0);function T0(e){const t=os(e);return!Cv()||!t.visualViewport?CA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==os(e)?!1:t}function mf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=kv(e);let l=Cu(1);t&&(r?_c(r)&&(l=th(r)):l=th(e));const u=TA(o,n,r)?T0(o):Cu(0);let p=(i.left+u.x)/l.x,y=(i.top+u.y)/l.y,S=i.width/l.x,w=i.height/l.y;if(o){const C=os(o),M=r&&_c(r)?os(r):r;let O=C,k=Tv(O);for(;k&&r&&M!==O;){const W=th(k),H=k.getBoundingClientRect(),B=Pc(k),I=H.left+(k.clientLeft+parseFloat(B.paddingLeft))*W.x,Y=H.top+(k.clientTop+parseFloat(B.paddingTop))*W.y;p*=W.x,y*=W.y,S*=W.x,w*=W.y,p+=I,y+=Y,O=os(k),k=Tv(O)}}return Lg({width:S,height:w,x:p,y})}function Wg(e,t){const n=Hg(e).scrollLeft;return t?t.left+n:mf(ku(e)).left+n}function k0(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Wg(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function kA(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",l=ku(r),u=t?zg(t.floating):!1;if(r===l||u&&o)return n;let p={scrollLeft:0,scrollTop:0},y=Cu(1);const S=Cu(0),w=cd(r);if((w||!w&&!o)&&(($f(r)!=="body"||Lh(l))&&(p=Hg(r)),w)){const M=mf(r);y=th(r),S.x=M.x+r.clientLeft,S.y=M.y+r.clientTop}const C=l&&!w&&!o?k0(l,p):Cu(0);return{width:n.width*y.x,height:n.height*y.y,x:n.x*y.x-p.scrollLeft*y.x+S.x+C.x,y:n.y*y.y-p.scrollTop*y.y+S.y+C.y}}function RA(e){return Array.from(e.getClientRects())}function MA(e){const t=ku(e),n=Hg(e),r=e.ownerDocument.body,i=is(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=is(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Wg(e);const u=-n.scrollTop;return Pc(r).direction==="rtl"&&(l+=is(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:u}}const R0=25;function _A(e,t){const n=os(e),r=ku(e),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,u=0,p=0;if(i){o=i.width,l=i.height;const S=Cv();(!S||S&&t==="fixed")&&(u=i.offsetLeft,p=i.offsetTop)}const y=Wg(r);if(y<=0){const S=r.ownerDocument,w=S.body,C=getComputedStyle(w),M=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,O=Math.abs(r.clientWidth-w.clientWidth-M);O<=R0&&(o-=O)}else y<=R0&&(o+=y);return{width:o,height:l,x:u,y:p}}function PA(e,t){const n=mf(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=cd(e)?th(e):Cu(1),l=e.clientWidth*o.x,u=e.clientHeight*o.y,p=i*o.x,y=r*o.y;return{width:l,height:u,x:p,y}}function M0(e,t,n){let r;if(t==="viewport")r=_A(e,n);else if(t==="document")r=MA(ku(e));else if(_c(t))r=PA(t,n);else{const i=T0(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Lg(r)}function _0(e,t){const n=Vd(e);return n===t||!_c(n)||eh(n)?!1:Pc(n).position==="fixed"||_0(n,t)}function OA(e,t){const n=t.get(e);if(n)return n;let r=Bh(e,[],!1).filter(u=>_c(u)&&$f(u)!=="body"),i=null;const o=Pc(e).position==="fixed";let l=o?Vd(e):e;for(;_c(l)&&!eh(l);){const u=Pc(l),p=Ev(l);!p&&u.position==="fixed"&&(i=null),(o?!p&&!i:!p&&u.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Lh(l)&&!p&&_0(e,l))?r=r.filter(S=>S!==l):i=u,l=Vd(l)}return t.set(e,r),r}function AA(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?zg(t)?[]:OA(t,this._c):[].concat(n),r],u=M0(t,l[0],i);let p=u.top,y=u.right,S=u.bottom,w=u.left;for(let C=1;C<l.length;C++){const M=M0(t,l[C],i);p=is(M.top,p),y=Yd(M.right,y),S=Yd(M.bottom,S),w=is(M.left,w)}return{width:y-w,height:S-p,x:w,y:p}}function IA(e){const{width:t,height:n}=C0(e);return{width:t,height:n}}function NA(e,t,n){const r=cd(t),i=ku(t),o=n==="fixed",l=mf(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const p=Cu(0);function y(){p.x=Wg(i)}if(r||!r&&!o)if(($f(t)!=="body"||Lh(i))&&(u=Hg(t)),r){const M=mf(t,!0,o,t);p.x=M.x+t.clientLeft,p.y=M.y+t.clientTop}else i&&y();o&&!r&&i&&y();const S=i&&!r&&!o?k0(i,u):Cu(0),w=l.left+u.scrollLeft-p.x-S.x,C=l.top+u.scrollTop-p.y-S.y;return{x:w,y:C,width:l.width,height:l.height}}function Rv(e){return Pc(e).position==="static"}function P0(e,t){if(!cd(e)||Pc(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ku(e)===n&&(n=n.ownerDocument.body),n}function O0(e,t){const n=os(e);if(zg(e))return n;if(!cd(e)){let i=Vd(e);for(;i&&!eh(i);){if(_c(i)&&!Rv(i))return i;i=Vd(i)}return n}let r=P0(e,t);for(;r&&wA(r)&&Rv(r);)r=P0(r,t);return r&&eh(r)&&Rv(r)&&!Ev(r)?n:r||EA(e)||n}const FA=async function(e){const t=this.getOffsetParent||O0,n=this.getDimensions,r=await n(e.floating);return{reference:NA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DA(e){return Pc(e).direction==="rtl"}const LA={convertOffsetParentRelativeRectToViewportRelativeRect:kA,getDocumentElement:ku,getClippingRect:AA,getOffsetParent:O0,getElementRects:FA,getClientRects:RA,getDimensions:IA,getScale:th,isElement:_c,isRTL:DA};function A0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function BA(e,t){let n=null,r;const i=ku(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,p){u===void 0&&(u=!1),p===void 0&&(p=1),o();const y=e.getBoundingClientRect(),{left:S,top:w,width:C,height:M}=y;if(u||t(),!C||!M)return;const O=Fg(w),k=Fg(i.clientWidth-(S+C)),W=Fg(i.clientHeight-(w+M)),H=Fg(S),I={rootMargin:-O+"px "+-k+"px "+-W+"px "+-H+"px",threshold:is(0,Yd(1,p))||1};let Y=!0;function K(G){const ne=G[0].intersectionRatio;if(ne!==p){if(!Y)return l();ne?l(!1,ne):r=setTimeout(()=>{l(!1,1e-7)},1e3)}ne===1&&!A0(y,e.getBoundingClientRect())&&l(),Y=!1}try{n=new IntersectionObserver(K,{...I,root:i.ownerDocument})}catch{n=new IntersectionObserver(K,I)}n.observe(e)}return l(!0),o}function zA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,y=kv(e),S=i||o?[...y?Bh(y):[],...t?Bh(t):[]]:[];S.forEach(H=>{i&&H.addEventListener("scroll",n,{passive:!0}),o&&H.addEventListener("resize",n)});const w=y&&u?BA(y,n):null;let C=-1,M=null;l&&(M=new ResizeObserver(H=>{let[B]=H;B&&B.target===y&&M&&t&&(M.unobserve(t),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var I;(I=M)==null||I.observe(t)})),n()}),y&&!p&&M.observe(y),t&&M.observe(t));let O,k=p?mf(e):null;p&&W();function W(){const H=mf(e);k&&!A0(k,H)&&n(),k=H,O=requestAnimationFrame(W)}return n(),()=>{var H;S.forEach(B=>{i&&B.removeEventListener("scroll",n),o&&B.removeEventListener("resize",n)}),w==null||w(),(H=M)==null||H.disconnect(),M=null,p&&cancelAnimationFrame(O)}}const HA=vA,WA=bA,UA=hA,GA=yA,YA=gA,I0=fA,VA=mA,XA=(e,t,n)=>{const r=new Map,i={platform:LA,...n},o={...i.platform,_c:r};return dA(e,t,{...i,platform:o})};var ZA=typeof document<"u",JA=function(){},Ug=ZA?fe.useLayoutEffect:JA;function Gg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Gg(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Gg(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function N0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function F0(e,t){const n=N0(e);return Math.round(t*n)/n}function Mv(e){const t=L.useRef(e);return Ug(()=>{t.current=e}),t}function KA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:u=!0,whileElementsMounted:p,open:y}=e,[S,w]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[C,M]=L.useState(r);Gg(C,r)||M(r);const[O,k]=L.useState(null),[W,H]=L.useState(null),B=L.useCallback(oe=>{oe!==G.current&&(G.current=oe,k(oe))},[]),I=L.useCallback(oe=>{oe!==ne.current&&(ne.current=oe,H(oe))},[]),Y=o||O,K=l||W,G=L.useRef(null),ne=L.useRef(null),$=L.useRef(S),ie=p!=null,se=Mv(p),ue=Mv(i),he=Mv(y),ve=L.useCallback(()=>{if(!G.current||!ne.current)return;const oe={placement:t,strategy:n,middleware:C};ue.current&&(oe.platform=ue.current),XA(G.current,ne.current,oe).then(xe=>{const ee={...xe,isPositioned:he.current!==!1};ae.current&&!Gg($.current,ee)&&($.current=ee,Zh.flushSync(()=>{w(ee)}))})},[C,t,n,ue,he]);Ug(()=>{y===!1&&$.current.isPositioned&&($.current.isPositioned=!1,w(oe=>({...oe,isPositioned:!1})))},[y]);const ae=L.useRef(!1);Ug(()=>(ae.current=!0,()=>{ae.current=!1}),[]),Ug(()=>{if(Y&&(G.current=Y),K&&(ne.current=K),Y&&K){if(se.current)return se.current(Y,K,ve);ve()}},[Y,K,ve,se,ie]);const me=L.useMemo(()=>({reference:G,floating:ne,setReference:B,setFloating:I}),[B,I]),V=L.useMemo(()=>({reference:Y,floating:K}),[Y,K]),J=L.useMemo(()=>{const oe={position:n,left:0,top:0};if(!V.floating)return oe;const xe=F0(V.floating,S.x),ee=F0(V.floating,S.y);return u?{...oe,transform:"translate("+xe+"px, "+ee+"px)",...N0(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:xe,top:ee}},[n,u,V.floating,S.x,S.y]);return L.useMemo(()=>({...S,update:ve,refs:me,elements:V,floatingStyles:J}),[S,ve,me,V,J])}const QA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?I0({element:r.current,padding:i}).fn(n):{}:r?I0({element:r,padding:i}).fn(n):{}}}},jA=(e,t)=>{const n=HA(e);return{name:n.name,fn:n.fn,options:[e,t]}},qA=(e,t)=>{const n=WA(e);return{name:n.name,fn:n.fn,options:[e,t]}},$A=(e,t)=>({fn:VA(e).fn,options:[e,t]}),eI=(e,t)=>{const n=UA(e);return{name:n.name,fn:n.fn,options:[e,t]}},tI=(e,t)=>{const n=GA(e);return{name:n.name,fn:n.fn,options:[e,t]}},nI=(e,t)=>{const n=YA(e);return{name:n.name,fn:n.fn,options:[e,t]}},rI=(e,t)=>{const n=QA(e);return{name:n.name,fn:n.fn,options:[e,t]}};function iI(e){const t=oI(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(lI);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function oI(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=cI(i),u=sI(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aI=Symbol("radix.slottable");function lI(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aI}function sI(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function cI(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dI=uI.reduce((e,t)=>{const n=iI(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),fI="Arrow",D0=L.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return D.jsx(dI.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:D.jsx("polygon",{points:"0,0 30,0 15,10"})})});D0.displayName=fI;var hI=D0;function gI(e,t=[]){let n=[];function r(o,l){const u=L.createContext(l),p=n.length;n=[...n,l];const y=w=>{var H;const{scope:C,children:M,...O}=w,k=((H=C==null?void 0:C[e])==null?void 0:H[p])||u,W=L.useMemo(()=>O,Object.values(O));return D.jsx(k.Provider,{value:W,children:M})};y.displayName=o+"Provider";function S(w,C){var k;const M=((k=C==null?void 0:C[e])==null?void 0:k[p])||u,O=L.useContext(M);if(O)return O;if(l!==void 0)return l;throw new Error(`\`${w}\` must be used within \`${o}\``)}return[y,S]}const i=()=>{const o=n.map(l=>L.createContext(l));return function(u){const p=(u==null?void 0:u[e])||o;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:p}}),[u,p])}};return i.scopeName=e,[r,pI(i,...t)]}function pI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((u,{useScope:p,scopeName:y})=>{const w=p(o)[`__scope${y}`];return{...u,...w}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function vI(e){const t=bI(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(yI);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function bI(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=xI(i),u=wI(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mI=Symbol("radix.slottable");function yI(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mI}function wI(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function xI(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var SI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],L0=SI.reduce((e,t)=>{const n=vI(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),_v="Popper",[B0,z0]=gI(_v),[EI,H0]=B0(_v),W0=e=>{const{__scopePopper:t,children:n}=e,[r,i]=L.useState(null);return D.jsx(EI,{scope:t,anchor:r,onAnchorChange:i,children:n})};W0.displayName=_v;var U0="PopperAnchor",G0=L.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=H0(U0,n),l=L.useRef(null),u=Qr(t,l),p=L.useRef(null);return L.useEffect(()=>{const y=p.current;p.current=(r==null?void 0:r.current)||l.current,y!==p.current&&o.onAnchorChange(p.current)}),r?null:D.jsx(L0.div,{...i,ref:u})});G0.displayName=U0;var Pv="PopperContent",[CI,TI]=B0(Pv),Y0=L.forwardRef((e,t)=>{var Fe,Ye,Ve,Ke,st,gt;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:p=!0,collisionBoundary:y=[],collisionPadding:S=0,sticky:w="partial",hideWhenDetached:C=!1,updatePositionStrategy:M="optimized",onPlaced:O,...k}=e,W=H0(Pv,n),[H,B]=L.useState(null),I=Qr(t,it=>B(it)),[Y,K]=L.useState(null),G=h0(Y),ne=(G==null?void 0:G.width)??0,$=(G==null?void 0:G.height)??0,ie=r+(o!=="center"?"-"+o:""),se=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ue=Array.isArray(y)?y:[y],he=ue.length>0,ve={padding:se,boundary:ue.filter(RI),altBoundary:he},{refs:ae,floatingStyles:me,placement:V,isPositioned:J,middlewareData:oe}=KA({strategy:"fixed",placement:ie,whileElementsMounted:(...it)=>zA(...it,{animationFrame:M==="always"}),elements:{reference:W.anchor},middleware:[jA({mainAxis:i+$,alignmentAxis:l}),p&&qA({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?$A():void 0,...ve}),p&&eI({...ve}),tI({...ve,apply:({elements:it,rects:mt,availableWidth:ft,availableHeight:tt})=>{const{width:Ft,height:at}=mt.reference,Wt=it.floating.style;Wt.setProperty("--radix-popper-available-width",`${ft}px`),Wt.setProperty("--radix-popper-available-height",`${tt}px`),Wt.setProperty("--radix-popper-anchor-width",`${Ft}px`),Wt.setProperty("--radix-popper-anchor-height",`${at}px`)}}),Y&&rI({element:Y,padding:u}),MI({arrowWidth:ne,arrowHeight:$}),C&&nI({strategy:"referenceHidden",...ve})]}),[xe,ee]=Z0(V),Q=Wd(O);jo(()=>{J&&(Q==null||Q())},[J,Q]);const Ce=(Fe=oe.arrow)==null?void 0:Fe.x,Ge=(Ye=oe.arrow)==null?void 0:Ye.y,We=((Ve=oe.arrow)==null?void 0:Ve.centerOffset)!==0,[Oe,rt]=L.useState();return jo(()=>{H&&rt(window.getComputedStyle(H).zIndex)},[H]),D.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:J?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(Ke=oe.transformOrigin)==null?void 0:Ke.x,(st=oe.transformOrigin)==null?void 0:st.y].join(" "),...((gt=oe.hide)==null?void 0:gt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:D.jsx(CI,{scope:n,placedSide:xe,onArrowChange:K,arrowX:Ce,arrowY:Ge,shouldHideArrow:We,children:D.jsx(L0.div,{"data-side":xe,"data-align":ee,...k,ref:I,style:{...k.style,animation:J?void 0:"none"}})})})});Y0.displayName=Pv;var V0="PopperArrow",kI={top:"bottom",right:"left",bottom:"top",left:"right"},X0=L.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=TI(V0,r),l=kI[o.placedSide];return D.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:D.jsx(hI,{...i,ref:n,style:{...i.style,display:"block"}})})});X0.displayName=V0;function RI(e){return e!==null}var MI=e=>({name:"transformOrigin",options:e,fn(t){var W,H,B;const{placement:n,rects:r,middlewareData:i}=t,l=((W=i.arrow)==null?void 0:W.centerOffset)!==0,u=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[y,S]=Z0(n),w={start:"0%",center:"50%",end:"100%"}[S],C=(((H=i.arrow)==null?void 0:H.x)??0)+u/2,M=(((B=i.arrow)==null?void 0:B.y)??0)+p/2;let O="",k="";return y==="bottom"?(O=l?w:`${C}px`,k=`${-p}px`):y==="top"?(O=l?w:`${C}px`,k=`${r.floating.height+p}px`):y==="right"?(O=`${-p}px`,k=l?w:`${M}px`):y==="left"&&(O=`${r.floating.width+p}px`,k=l?w:`${M}px`),{data:{x:O,y:k}}}});function Z0(e){const[t,n="center"]=e.split("-");return[t,n]}var _I=W0,PI=G0,OI=Y0,AI=X0;function Yg(e,[t,n]){return Math.min(n,Math.max(t,e))}function II(e,t=[]){let n=[];function r(o,l){const u=L.createContext(l),p=n.length;n=[...n,l];const y=w=>{var H;const{scope:C,children:M,...O}=w,k=((H=C==null?void 0:C[e])==null?void 0:H[p])||u,W=L.useMemo(()=>O,Object.values(O));return D.jsx(k.Provider,{value:W,children:M})};y.displayName=o+"Provider";function S(w,C){var k;const M=((k=C==null?void 0:C[e])==null?void 0:k[p])||u,O=L.useContext(M);if(O)return O;if(l!==void 0)return l;throw new Error(`\`${w}\` must be used within \`${o}\``)}return[y,S]}const i=()=>{const o=n.map(l=>L.createContext(l));return function(u){const p=(u==null?void 0:u[e])||o;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:p}}),[u,p])}};return i.scopeName=e,[r,NI(i,...t)]}function NI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((u,{useScope:p,scopeName:y})=>{const w=p(o)[`__scope${y}`];return{...u,...w}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function J0(e){const t=FI(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(LI);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function FI(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=zI(i),u=BI(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var DI=Symbol("radix.slottable");function LI(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===DI}function BI(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function zI(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var HI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],as=HI.reduce((e,t)=>{const n=J0(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),WI=[" ","Enter","ArrowUp","ArrowDown"],UI=[" ","Enter"],yf="Select",[Vg,Xg,GI]=Dw(yf),[nh]=II(yf,[GI,z0]),Zg=z0(),[YI,Xd]=nh(yf),[VI,XI]=nh(yf),K0=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:l,defaultValue:u,onValueChange:p,dir:y,name:S,autoComplete:w,disabled:C,required:M,form:O}=e,k=Zg(t),[W,H]=L.useState(null),[B,I]=L.useState(null),[Y,K]=L.useState(!1),G=Lw(y),[ne,$]=av({prop:r,defaultProp:i??!1,onChange:o,caller:yf}),[ie,se]=av({prop:l,defaultProp:u,onChange:p,caller:yf}),ue=L.useRef(null),he=W?O||!!W.closest("form"):!0,[ve,ae]=L.useState(new Set),me=Array.from(ve).map(V=>V.props.value).join(";");return D.jsx(_I,{...k,children:D.jsxs(YI,{required:M,scope:t,trigger:W,onTriggerChange:H,valueNode:B,onValueNodeChange:I,valueNodeHasChildren:Y,onValueNodeHasChildrenChange:K,contentId:lv(),value:ie,onValueChange:se,open:ne,onOpenChange:$,dir:G,triggerPointerDownPosRef:ue,disabled:C,children:[D.jsx(Vg.Provider,{scope:t,children:D.jsx(VI,{scope:e.__scopeSelect,onNativeOptionAdd:L.useCallback(V=>{ae(J=>new Set(J).add(V))},[]),onNativeOptionRemove:L.useCallback(V=>{ae(J=>{const oe=new Set(J);return oe.delete(V),oe})},[]),children:n})}),he?D.jsxs(bx,{"aria-hidden":!0,required:M,tabIndex:-1,name:S,autoComplete:w,value:ie,onChange:V=>se(V.target.value),disabled:C,form:O,children:[ie===void 0?D.jsx("option",{value:""}):null,Array.from(ve)]},me):null]})})};K0.displayName=yf;var Q0="SelectTrigger",j0=L.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=Zg(n),l=Xd(Q0,n),u=l.disabled||r,p=Qr(t,l.onTriggerChange),y=Xg(n),S=L.useRef("touch"),[w,C,M]=yx(k=>{const W=y().filter(I=>!I.disabled),H=W.find(I=>I.value===l.value),B=wx(W,k,H);B!==void 0&&l.onValueChange(B.value)}),O=k=>{u||(l.onOpenChange(!0),M()),k&&(l.triggerPointerDownPosRef.current={x:Math.round(k.pageX),y:Math.round(k.pageY)})};return D.jsx(PI,{asChild:!0,...o,children:D.jsx(as.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":mx(l.value)?"":void 0,...i,ref:p,onClick:kr(i.onClick,k=>{k.currentTarget.focus(),S.current!=="mouse"&&O(k)}),onPointerDown:kr(i.onPointerDown,k=>{S.current=k.pointerType;const W=k.target;W.hasPointerCapture(k.pointerId)&&W.releasePointerCapture(k.pointerId),k.button===0&&k.ctrlKey===!1&&k.pointerType==="mouse"&&(O(k),k.preventDefault())}),onKeyDown:kr(i.onKeyDown,k=>{const W=w.current!=="";!(k.ctrlKey||k.altKey||k.metaKey)&&k.key.length===1&&C(k.key),!(W&&k.key===" ")&&WI.includes(k.key)&&(O(),k.preventDefault())})})})});j0.displayName=Q0;var q0="SelectValue",$0=L.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:l="",...u}=e,p=Xd(q0,n),{onValueNodeHasChildrenChange:y}=p,S=o!==void 0,w=Qr(t,p.onValueNodeChange);return jo(()=>{y(S)},[y,S]),D.jsx(as.span,{...u,ref:w,style:{pointerEvents:"none"},children:mx(p.value)?D.jsx(D.Fragment,{children:l}):o})});$0.displayName=q0;var ZI="SelectIcon",ex=L.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return D.jsx(as.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});ex.displayName=ZI;var JI="SelectPortal",tx=e=>D.jsx(Qw,{asChild:!0,...e});tx.displayName=JI;var wf="SelectContent",nx=L.forwardRef((e,t)=>{const n=Xd(wf,e.__scopeSelect),[r,i]=L.useState();if(jo(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?Zh.createPortal(D.jsx(rx,{scope:e.__scopeSelect,children:D.jsx(Vg.Slot,{scope:e.__scopeSelect,children:D.jsx("div",{children:e.children})})}),o):null}return D.jsx(ix,{...e,ref:t})});nx.displayName=wf;var Oc=10,[rx,Zd]=nh(wf),KI="SelectContentImpl",QI=J0("SelectContent.RemoveScroll"),ix=L.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:l,side:u,sideOffset:p,align:y,alignOffset:S,arrowPadding:w,collisionBoundary:C,collisionPadding:M,sticky:O,hideWhenDetached:k,avoidCollisions:W,...H}=e,B=Xd(wf,n),[I,Y]=L.useState(null),[K,G]=L.useState(null),ne=Qr(t,Fe=>Y(Fe)),[$,ie]=L.useState(null),[se,ue]=L.useState(null),he=Xg(n),[ve,ae]=L.useState(!1),me=L.useRef(!1);L.useEffect(()=>{if(I)return $O(I)},[I]),hO();const V=L.useCallback(Fe=>{const[Ye,...Ve]=he().map(gt=>gt.ref.current),[Ke]=Ve.slice(-1),st=document.activeElement;for(const gt of Fe)if(gt===st||(gt==null||gt.scrollIntoView({block:"nearest"}),gt===Ye&&K&&(K.scrollTop=0),gt===Ke&&K&&(K.scrollTop=K.scrollHeight),gt==null||gt.focus(),document.activeElement!==st))return},[he,K]),J=L.useCallback(()=>V([$,I]),[V,$,I]);L.useEffect(()=>{ve&&J()},[ve,J]);const{onOpenChange:oe,triggerPointerDownPosRef:xe}=B;L.useEffect(()=>{if(I){let Fe={x:0,y:0};const Ye=Ke=>{var st,gt;Fe={x:Math.abs(Math.round(Ke.pageX)-(((st=xe.current)==null?void 0:st.x)??0)),y:Math.abs(Math.round(Ke.pageY)-(((gt=xe.current)==null?void 0:gt.y)??0))}},Ve=Ke=>{Fe.x<=10&&Fe.y<=10?Ke.preventDefault():I.contains(Ke.target)||oe(!1),document.removeEventListener("pointermove",Ye),xe.current=null};return xe.current!==null&&(document.addEventListener("pointermove",Ye),document.addEventListener("pointerup",Ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ye),document.removeEventListener("pointerup",Ve,{capture:!0})}}},[I,oe,xe]),L.useEffect(()=>{const Fe=()=>oe(!1);return window.addEventListener("blur",Fe),window.addEventListener("resize",Fe),()=>{window.removeEventListener("blur",Fe),window.removeEventListener("resize",Fe)}},[oe]);const[ee,Q]=yx(Fe=>{const Ye=he().filter(st=>!st.disabled),Ve=Ye.find(st=>st.ref.current===document.activeElement),Ke=wx(Ye,Fe,Ve);Ke&&setTimeout(()=>Ke.ref.current.focus())}),Ce=L.useCallback((Fe,Ye,Ve)=>{const Ke=!me.current&&!Ve;(B.value!==void 0&&B.value===Ye||Ke)&&(ie(Fe),Ke&&(me.current=!0))},[B.value]),Ge=L.useCallback(()=>I==null?void 0:I.focus(),[I]),We=L.useCallback((Fe,Ye,Ve)=>{const Ke=!me.current&&!Ve;(B.value!==void 0&&B.value===Ye||Ke)&&ue(Fe)},[B.value]),Oe=r==="popper"?Ov:ox,rt=Oe===Ov?{side:u,sideOffset:p,align:y,alignOffset:S,arrowPadding:w,collisionBoundary:C,collisionPadding:M,sticky:O,hideWhenDetached:k,avoidCollisions:W}:{};return D.jsx(rx,{scope:n,content:I,viewport:K,onViewportChange:G,itemRefCallback:Ce,selectedItem:$,onItemLeave:Ge,itemTextRefCallback:We,focusSelectedItem:J,selectedItemText:se,position:r,isPositioned:ve,searchRef:ee,children:D.jsx(u0,{as:QI,allowPinchZoom:!0,children:D.jsx(Vw,{asChild:!0,trapped:B.open,onMountAutoFocus:Fe=>{Fe.preventDefault()},onUnmountAutoFocus:kr(i,Fe=>{var Ye;(Ye=B.trigger)==null||Ye.focus({preventScroll:!0}),Fe.preventDefault()}),children:D.jsx(Ww,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:Fe=>Fe.preventDefault(),onDismiss:()=>B.onOpenChange(!1),children:D.jsx(Oe,{role:"listbox",id:B.contentId,"data-state":B.open?"open":"closed",dir:B.dir,onContextMenu:Fe=>Fe.preventDefault(),...H,...rt,onPlaced:()=>ae(!0),ref:ne,style:{display:"flex",flexDirection:"column",outline:"none",...H.style},onKeyDown:kr(H.onKeyDown,Fe=>{const Ye=Fe.ctrlKey||Fe.altKey||Fe.metaKey;if(Fe.key==="Tab"&&Fe.preventDefault(),!Ye&&Fe.key.length===1&&Q(Fe.key),["ArrowUp","ArrowDown","Home","End"].includes(Fe.key)){let Ke=he().filter(st=>!st.disabled).map(st=>st.ref.current);if(["ArrowUp","End"].includes(Fe.key)&&(Ke=Ke.slice().reverse()),["ArrowUp","ArrowDown"].includes(Fe.key)){const st=Fe.target,gt=Ke.indexOf(st);Ke=Ke.slice(gt+1)}setTimeout(()=>V(Ke)),Fe.preventDefault()}})})})})})})});ix.displayName=KI;var jI="SelectItemAlignedPosition",ox=L.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=Xd(wf,n),l=Zd(wf,n),[u,p]=L.useState(null),[y,S]=L.useState(null),w=Qr(t,ne=>S(ne)),C=Xg(n),M=L.useRef(!1),O=L.useRef(!0),{viewport:k,selectedItem:W,selectedItemText:H,focusSelectedItem:B}=l,I=L.useCallback(()=>{if(o.trigger&&o.valueNode&&u&&y&&k&&W&&H){const ne=o.trigger.getBoundingClientRect(),$=y.getBoundingClientRect(),ie=o.valueNode.getBoundingClientRect(),se=H.getBoundingClientRect();if(o.dir!=="rtl"){const st=se.left-$.left,gt=ie.left-st,it=ne.left-gt,mt=ne.width+it,ft=Math.max(mt,$.width),tt=window.innerWidth-Oc,Ft=Yg(gt,[Oc,Math.max(Oc,tt-ft)]);u.style.minWidth=mt+"px",u.style.left=Ft+"px"}else{const st=$.right-se.right,gt=window.innerWidth-ie.right-st,it=window.innerWidth-ne.right-gt,mt=ne.width+it,ft=Math.max(mt,$.width),tt=window.innerWidth-Oc,Ft=Yg(gt,[Oc,Math.max(Oc,tt-ft)]);u.style.minWidth=mt+"px",u.style.right=Ft+"px"}const ue=C(),he=window.innerHeight-Oc*2,ve=k.scrollHeight,ae=window.getComputedStyle(y),me=parseInt(ae.borderTopWidth,10),V=parseInt(ae.paddingTop,10),J=parseInt(ae.borderBottomWidth,10),oe=parseInt(ae.paddingBottom,10),xe=me+V+ve+oe+J,ee=Math.min(W.offsetHeight*5,xe),Q=window.getComputedStyle(k),Ce=parseInt(Q.paddingTop,10),Ge=parseInt(Q.paddingBottom,10),We=ne.top+ne.height/2-Oc,Oe=he-We,rt=W.offsetHeight/2,Fe=W.offsetTop+rt,Ye=me+V+Fe,Ve=xe-Ye;if(Ye<=We){const st=ue.length>0&&W===ue[ue.length-1].ref.current;u.style.bottom="0px";const gt=y.clientHeight-k.offsetTop-k.offsetHeight,it=Math.max(Oe,rt+(st?Ge:0)+gt+J),mt=Ye+it;u.style.height=mt+"px"}else{const st=ue.length>0&&W===ue[0].ref.current;u.style.top="0px";const it=Math.max(We,me+k.offsetTop+(st?Ce:0)+rt)+Ve;u.style.height=it+"px",k.scrollTop=Ye-We+k.offsetTop}u.style.margin=`${Oc}px 0`,u.style.minHeight=ee+"px",u.style.maxHeight=he+"px",r==null||r(),requestAnimationFrame(()=>M.current=!0)}},[C,o.trigger,o.valueNode,u,y,k,W,H,o.dir,r]);jo(()=>I(),[I]);const[Y,K]=L.useState();jo(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]);const G=L.useCallback(ne=>{ne&&O.current===!0&&(I(),B==null||B(),O.current=!1)},[I,B]);return D.jsx($I,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:M,onScrollButtonChange:G,children:D.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:Y},children:D.jsx(as.div,{...i,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});ox.displayName=jI;var qI="SelectPopperPosition",Ov=L.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Oc,...o}=e,l=Zg(n);return D.jsx(OI,{...l,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ov.displayName=qI;var[$I,Av]=nh(wf,{}),Iv="SelectViewport",ax=L.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=Zd(Iv,n),l=Av(Iv,n),u=Qr(t,o.onViewportChange),p=L.useRef(0);return D.jsxs(D.Fragment,{children:[D.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),D.jsx(Vg.Slot,{scope:n,children:D.jsx(as.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:kr(i.onScroll,y=>{const S=y.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:C}=l;if(C!=null&&C.current&&w){const M=Math.abs(p.current-S.scrollTop);if(M>0){const O=window.innerHeight-Oc*2,k=parseFloat(w.style.minHeight),W=parseFloat(w.style.height),H=Math.max(k,W);if(H<O){const B=H+M,I=Math.min(O,B),Y=B-I;w.style.height=I+"px",w.style.bottom==="0px"&&(S.scrollTop=Y>0?Y:0,w.style.justifyContent="flex-end")}}}p.current=S.scrollTop})})})]})});ax.displayName=Iv;var lx="SelectGroup",[e2,t2]=nh(lx),n2=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=lv();return D.jsx(e2,{scope:n,id:i,children:D.jsx(as.div,{role:"group","aria-labelledby":i,...r,ref:t})})});n2.displayName=lx;var sx="SelectLabel",r2=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=t2(sx,n);return D.jsx(as.div,{id:i.id,...r,ref:t})});r2.displayName=sx;var Jg="SelectItem",[i2,cx]=nh(Jg),ux=L.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...l}=e,u=Xd(Jg,n),p=Zd(Jg,n),y=u.value===r,[S,w]=L.useState(o??""),[C,M]=L.useState(!1),O=Qr(t,B=>{var I;return(I=p.itemRefCallback)==null?void 0:I.call(p,B,r,i)}),k=lv(),W=L.useRef("touch"),H=()=>{i||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return D.jsx(i2,{scope:n,value:r,disabled:i,textId:k,isSelected:y,onItemTextChange:L.useCallback(B=>{w(I=>I||((B==null?void 0:B.textContent)??"").trim())},[]),children:D.jsx(Vg.ItemSlot,{scope:n,value:r,disabled:i,textValue:S,children:D.jsx(as.div,{role:"option","aria-labelledby":k,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:O,onFocus:kr(l.onFocus,()=>M(!0)),onBlur:kr(l.onBlur,()=>M(!1)),onClick:kr(l.onClick,()=>{W.current!=="mouse"&&H()}),onPointerUp:kr(l.onPointerUp,()=>{W.current==="mouse"&&H()}),onPointerDown:kr(l.onPointerDown,B=>{W.current=B.pointerType}),onPointerMove:kr(l.onPointerMove,B=>{var I;W.current=B.pointerType,i?(I=p.onItemLeave)==null||I.call(p):W.current==="mouse"&&B.currentTarget.focus({preventScroll:!0})}),onPointerLeave:kr(l.onPointerLeave,B=>{var I;B.currentTarget===document.activeElement&&((I=p.onItemLeave)==null||I.call(p))}),onKeyDown:kr(l.onKeyDown,B=>{var Y;((Y=p.searchRef)==null?void 0:Y.current)!==""&&B.key===" "||(UI.includes(B.key)&&H(),B.key===" "&&B.preventDefault())})})})})});ux.displayName=Jg;var zh="SelectItemText",dx=L.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,l=Xd(zh,n),u=Zd(zh,n),p=cx(zh,n),y=XI(zh,n),[S,w]=L.useState(null),C=Qr(t,H=>w(H),p.onItemTextChange,H=>{var B;return(B=u.itemTextRefCallback)==null?void 0:B.call(u,H,p.value,p.disabled)}),M=S==null?void 0:S.textContent,O=L.useMemo(()=>D.jsx("option",{value:p.value,disabled:p.disabled,children:M},p.value),[p.disabled,p.value,M]),{onNativeOptionAdd:k,onNativeOptionRemove:W}=y;return jo(()=>(k(O),()=>W(O)),[k,W,O]),D.jsxs(D.Fragment,{children:[D.jsx(as.span,{id:p.textId,...o,ref:C}),p.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Zh.createPortal(o.children,l.valueNode):null]})});dx.displayName=zh;var fx="SelectItemIndicator",hx=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return cx(fx,n).isSelected?D.jsx(as.span,{"aria-hidden":!0,...r,ref:t}):null});hx.displayName=fx;var Nv="SelectScrollUpButton",gx=L.forwardRef((e,t)=>{const n=Zd(Nv,e.__scopeSelect),r=Av(Nv,e.__scopeSelect),[i,o]=L.useState(!1),l=Qr(t,r.onScrollButtonChange);return jo(()=>{if(n.viewport&&n.isPositioned){let u=function(){const y=p.scrollTop>0;o(y)};const p=n.viewport;return u(),p.addEventListener("scroll",u),()=>p.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?D.jsx(vx,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:p}=n;u&&p&&(u.scrollTop=u.scrollTop-p.offsetHeight)}}):null});gx.displayName=Nv;var Fv="SelectScrollDownButton",px=L.forwardRef((e,t)=>{const n=Zd(Fv,e.__scopeSelect),r=Av(Fv,e.__scopeSelect),[i,o]=L.useState(!1),l=Qr(t,r.onScrollButtonChange);return jo(()=>{if(n.viewport&&n.isPositioned){let u=function(){const y=p.scrollHeight-p.clientHeight,S=Math.ceil(p.scrollTop)<y;o(S)};const p=n.viewport;return u(),p.addEventListener("scroll",u),()=>p.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),i?D.jsx(vx,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:p}=n;u&&p&&(u.scrollTop=u.scrollTop+p.offsetHeight)}}):null});px.displayName=Fv;var vx=L.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=Zd("SelectScrollButton",n),l=L.useRef(null),u=Xg(n),p=L.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return L.useEffect(()=>()=>p(),[p]),jo(()=>{var S;const y=u().find(w=>w.ref.current===document.activeElement);(S=y==null?void 0:y.ref.current)==null||S.scrollIntoView({block:"nearest"})},[u]),D.jsx(as.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:kr(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:kr(i.onPointerMove,()=>{var y;(y=o.onItemLeave)==null||y.call(o),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:kr(i.onPointerLeave,()=>{p()})})}),o2="SelectSeparator",a2=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return D.jsx(as.div,{"aria-hidden":!0,...r,ref:t})});a2.displayName=o2;var Dv="SelectArrow",l2=L.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Zg(n),o=Xd(Dv,n),l=Zd(Dv,n);return o.open&&l.position==="popper"?D.jsx(AI,{...i,...r,ref:t}):null});l2.displayName=Dv;var s2="SelectBubbleInput",bx=L.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=L.useRef(null),o=Qr(r,i),l=f0(t);return L.useEffect(()=>{const u=i.current;if(!u)return;const p=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(p,"value").set;if(l!==t&&S){const w=new Event("change",{bubbles:!0});S.call(u,t),u.dispatchEvent(w)}},[l,t]),D.jsx(as.select,{...n,style:{...Nw,...n.style},ref:o,defaultValue:t})});bx.displayName=s2;function mx(e){return e===""||e===void 0}function yx(e){const t=Wd(e),n=L.useRef(""),r=L.useRef(0),i=L.useCallback(l=>{const u=n.current+l;t(u),function p(y){n.current=y,window.clearTimeout(r.current),y!==""&&(r.current=window.setTimeout(()=>p(""),1e3))}(u)},[t]),o=L.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function wx(e,t,n){const i=t.length>1&&Array.from(t).every(y=>y===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=c2(e,Math.max(o,0));i.length===1&&(l=l.filter(y=>y!==n));const p=l.find(y=>y.textValue.toLowerCase().startsWith(i.toLowerCase()));return p!==n?p:void 0}function c2(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var u2=K0,d2=j0,f2=$0,h2=ex,g2=tx,p2=nx,v2=ax,b2=ux,m2=dx,y2=hx,w2=gx,x2=px;function S2(e,t=[]){let n=[];function r(o,l){const u=L.createContext(l),p=n.length;n=[...n,l];const y=w=>{var H;const{scope:C,children:M,...O}=w,k=((H=C==null?void 0:C[e])==null?void 0:H[p])||u,W=L.useMemo(()=>O,Object.values(O));return D.jsx(k.Provider,{value:W,children:M})};y.displayName=o+"Provider";function S(w,C){var k;const M=((k=C==null?void 0:C[e])==null?void 0:k[p])||u,O=L.useContext(M);if(O)return O;if(l!==void 0)return l;throw new Error(`\`${w}\` must be used within \`${o}\``)}return[y,S]}const i=()=>{const o=n.map(l=>L.createContext(l));return function(u){const p=(u==null?void 0:u[e])||o;return L.useMemo(()=>({[`__scope${e}`]:{...u,[e]:p}}),[u,p])}};return i.scopeName=e,[r,E2(i,...t)]}function E2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((u,{useScope:p,scopeName:y})=>{const w=p(o)[`__scope${y}`];return{...u,...w}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function C2(e){const t=T2(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,u=L.Children.toArray(o),p=u.find(R2);if(p){const y=p.props.children,S=u.map(w=>w===p?L.Children.count(y)>1?L.Children.only(null):L.isValidElement(y)?y.props.children:null:w);return D.jsx(t,{...l,ref:i,children:L.isValidElement(y)?L.cloneElement(y,void 0,S):null})}return D.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function T2(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=_2(i),u=M2(o,i.props);return i.type!==L.Fragment&&(u.ref=r?Cc(r,l):l),L.cloneElement(i,u)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var k2=Symbol("radix.slottable");function R2(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===k2}function M2(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...u)=>{const p=o(...u);return i(...u),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function _2(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var P2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hh=P2.reduce((e,t)=>{const n=C2(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...u}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(p,{...u,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),xx=["PageUp","PageDown"],Sx=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ex={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},rh="Slider",[Lv,O2,A2]=Dw(rh),[Cx]=S2(rh,[A2]),[I2,Kg]=Cx(rh),Tx=L.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:o=1,orientation:l="horizontal",disabled:u=!1,minStepsBetweenThumbs:p=0,defaultValue:y=[r],value:S,onValueChange:w=()=>{},onValueCommit:C=()=>{},inverted:M=!1,form:O,...k}=e,W=L.useRef(new Set),H=L.useRef(0),I=l==="horizontal"?N2:F2,[Y=[],K]=av({prop:S,defaultProp:y,onChange:ue=>{var ve;(ve=[...W.current][H.current])==null||ve.focus(),w(ue)}}),G=L.useRef(Y);function ne(ue){const he=H2(Y,ue);se(ue,he)}function $(ue){se(ue,H.current)}function ie(){const ue=G.current[H.current];Y[H.current]!==ue&&C(Y)}function se(ue,he,{commit:ve}={commit:!1}){const ae=Y2(o),me=V2(Math.round((ue-r)/o)*o+r,ae),V=Yg(me,[r,i]);K((J=[])=>{const oe=B2(J,V,he);if(G2(oe,p*o)){H.current=oe.indexOf(V);const xe=String(oe)!==String(J);return xe&&ve&&C(oe),xe?oe:J}else return J})}return D.jsx(I2,{scope:e.__scopeSlider,name:n,disabled:u,min:r,max:i,valueIndexToChangeRef:H,thumbs:W.current,values:Y,orientation:l,form:O,children:D.jsx(Lv.Provider,{scope:e.__scopeSlider,children:D.jsx(Lv.Slot,{scope:e.__scopeSlider,children:D.jsx(I,{"aria-disabled":u,"data-disabled":u?"":void 0,...k,ref:t,onPointerDown:kr(k.onPointerDown,()=>{u||(G.current=Y)}),min:r,max:i,inverted:M,onSlideStart:u?void 0:ne,onSlideMove:u?void 0:$,onSlideEnd:u?void 0:ie,onHomeKeyDown:()=>!u&&se(r,0,{commit:!0}),onEndKeyDown:()=>!u&&se(i,Y.length-1,{commit:!0}),onStepKeyDown:({event:ue,direction:he})=>{if(!u){const me=xx.includes(ue.key)||ue.shiftKey&&Sx.includes(ue.key)?10:1,V=H.current,J=Y[V],oe=o*me*he;se(J+oe,V,{commit:!0})}}})})})})});Tx.displayName=rh;var[kx,Rx]=Cx(rh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),N2=L.forwardRef((e,t)=>{const{min:n,max:r,dir:i,inverted:o,onSlideStart:l,onSlideMove:u,onSlideEnd:p,onStepKeyDown:y,...S}=e,[w,C]=L.useState(null),M=Qr(t,I=>C(I)),O=L.useRef(void 0),k=Lw(i),W=k==="ltr",H=W&&!o||!W&&o;function B(I){const Y=O.current||w.getBoundingClientRect(),K=[0,Y.width],ne=Hv(K,H?[n,r]:[r,n]);return O.current=Y,ne(I-Y.left)}return D.jsx(kx,{scope:e.__scopeSlider,startEdge:H?"left":"right",endEdge:H?"right":"left",direction:H?1:-1,size:"width",children:D.jsx(Mx,{dir:k,"data-orientation":"horizontal",...S,ref:M,style:{...S.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:I=>{const Y=B(I.clientX);l==null||l(Y)},onSlideMove:I=>{const Y=B(I.clientX);u==null||u(Y)},onSlideEnd:()=>{O.current=void 0,p==null||p()},onStepKeyDown:I=>{const K=Ex[H?"from-left":"from-right"].includes(I.key);y==null||y({event:I,direction:K?-1:1})}})})}),F2=L.forwardRef((e,t)=>{const{min:n,max:r,inverted:i,onSlideStart:o,onSlideMove:l,onSlideEnd:u,onStepKeyDown:p,...y}=e,S=L.useRef(null),w=Qr(t,S),C=L.useRef(void 0),M=!i;function O(k){const W=C.current||S.current.getBoundingClientRect(),H=[0,W.height],I=Hv(H,M?[r,n]:[n,r]);return C.current=W,I(k-W.top)}return D.jsx(kx,{scope:e.__scopeSlider,startEdge:M?"bottom":"top",endEdge:M?"top":"bottom",size:"height",direction:M?1:-1,children:D.jsx(Mx,{"data-orientation":"vertical",...y,ref:w,style:{...y.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:k=>{const W=O(k.clientY);o==null||o(W)},onSlideMove:k=>{const W=O(k.clientY);l==null||l(W)},onSlideEnd:()=>{C.current=void 0,u==null||u()},onStepKeyDown:k=>{const H=Ex[M?"from-bottom":"from-top"].includes(k.key);p==null||p({event:k,direction:H?-1:1})}})})}),Mx=L.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:l,onEndKeyDown:u,onStepKeyDown:p,...y}=e,S=Kg(rh,n);return D.jsx(Hh.span,{...y,ref:t,onKeyDown:kr(e.onKeyDown,w=>{w.key==="Home"?(l(w),w.preventDefault()):w.key==="End"?(u(w),w.preventDefault()):xx.concat(Sx).includes(w.key)&&(p(w),w.preventDefault())}),onPointerDown:kr(e.onPointerDown,w=>{const C=w.target;C.setPointerCapture(w.pointerId),w.preventDefault(),S.thumbs.has(C)?C.focus():r(w)}),onPointerMove:kr(e.onPointerMove,w=>{w.target.hasPointerCapture(w.pointerId)&&i(w)}),onPointerUp:kr(e.onPointerUp,w=>{const C=w.target;C.hasPointerCapture(w.pointerId)&&(C.releasePointerCapture(w.pointerId),o(w))})})}),_x="SliderTrack",Px=L.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=Kg(_x,n);return D.jsx(Hh.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});Px.displayName=_x;var Bv="SliderRange",Ox=L.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=Kg(Bv,n),o=Rx(Bv,n),l=L.useRef(null),u=Qr(t,l),p=i.values.length,y=i.values.map(C=>Nx(C,i.min,i.max)),S=p>1?Math.min(...y):0,w=100-Math.max(...y);return D.jsx(Hh.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:u,style:{...e.style,[o.startEdge]:S+"%",[o.endEdge]:w+"%"}})});Ox.displayName=Bv;var zv="SliderThumb",Ax=L.forwardRef((e,t)=>{const n=O2(e.__scopeSlider),[r,i]=L.useState(null),o=Qr(t,u=>i(u)),l=L.useMemo(()=>r?n().findIndex(u=>u.ref.current===r):-1,[n,r]);return D.jsx(D2,{...e,ref:o,index:l})}),D2=L.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:i,...o}=e,l=Kg(zv,n),u=Rx(zv,n),[p,y]=L.useState(null),S=Qr(t,B=>y(B)),w=p?l.form||!!p.closest("form"):!0,C=h0(p),M=l.values[r],O=M===void 0?0:Nx(M,l.min,l.max),k=z2(r,l.values.length),W=C==null?void 0:C[u.size],H=W?W2(W,O,u.direction):0;return L.useEffect(()=>{if(p)return l.thumbs.add(p),()=>{l.thumbs.delete(p)}},[p,l.thumbs]),D.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:`calc(${O}% + ${H}px)`},children:[D.jsx(Lv.ItemSlot,{scope:e.__scopeSlider,children:D.jsx(Hh.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":l.min,"aria-valuenow":M,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...o,ref:S,style:M===void 0?{display:"none"}:e.style,onFocus:kr(e.onFocus,()=>{l.valueIndexToChangeRef.current=r})})}),w&&D.jsx(Ix,{name:i??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:M},r)]})});Ax.displayName=zv;var L2="RadioBubbleInput",Ix=L.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const i=L.useRef(null),o=Qr(i,r),l=f0(t);return L.useEffect(()=>{const u=i.current;if(!u)return;const p=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(p,"value").set;if(l!==t&&S){const w=new Event("input",{bubbles:!0});S.call(u,t),u.dispatchEvent(w)}},[l,t]),D.jsx(Hh.input,{style:{display:"none"},...n,ref:o,defaultValue:t})});Ix.displayName=L2;function B2(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,o)=>i-o)}function Nx(e,t,n){const o=100/(n-t)*(e-t);return Yg(o,[0,100])}function z2(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function H2(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function W2(e,t,n){const r=e/2,o=Hv([0,50],[0,r]);return(r-o(t)*n)*n}function U2(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function G2(e,t){if(t>0){const n=U2(e);return Math.min(...n)>=t}return!0}function Hv(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Y2(e){return(String(e).split(".")[1]||"").length}function V2(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Fx=Tx,Dx=Px,Lx=Ox,Bx=Ax;function X2({...e}){return D.jsx(u2,{"data-slot":"select",...e})}function Z2({...e}){return D.jsx(f2,{"data-slot":"select-value",...e})}function J2({className:e,size:t="default",children:n,...r}){return D.jsxs(d2,{"data-slot":"select-trigger","data-size":t,className:Ze("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,D.jsx(h2,{asChild:!0,children:D.jsx(vh,{className:"size-4 opacity-50"})})]})}function K2({className:e,children:t,position:n="item-aligned",align:r="center",...i}){return D.jsx(g2,{children:D.jsxs(p2,{"data-slot":"select-content",className:Ze("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...i,children:[D.jsx(j2,{}),D.jsx(v2,{className:Ze("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),D.jsx(q2,{})]})})}function Q2({className:e,children:t,...n}){return D.jsxs(b2,{"data-slot":"select-item",className:Ze("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[D.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:D.jsx(y2,{children:D.jsx(Pb,{className:"size-4"})})}),D.jsx(m2,{children:t})]})}function j2({className:e,...t}){return D.jsx(w2,{"data-slot":"select-scroll-up-button",className:Ze("flex cursor-default items-center justify-center py-1",e),...t,children:D.jsx(QS,{className:"size-4"})})}function q2({className:e,...t}){return D.jsx(x2,{"data-slot":"select-scroll-down-button",className:Ze("flex cursor-default items-center justify-center py-1",e),...t,children:D.jsx(vh,{className:"size-4"})})}const zx=fe.createContext(void 0),xf=()=>{const e=fe.useContext(zx);if(!e)throw new Error("useColorPicker must be used within a ColorPickerProvider");return e},$2=({value:e,defaultValue:t="#000000",onChange:n,className:r,...i})=>{const o=qr(e),l=qr(t),[u,p]=fe.useState(o.hue()||l.hue()||0),[y,S]=fe.useState(o.saturationl()||l.saturationl()||100),[w,C]=fe.useState(o.lightness()||l.lightness()||50),[M,O]=fe.useState(o.alpha()*100||l.alpha()*100),[k,W]=fe.useState("hex");return fe.useEffect(()=>{if(e){const H=qr.rgb(e).rgb().object();p(H.r),S(H.g),C(H.b),O(H.a)}},[e]),fe.useEffect(()=>{if(n){const B=qr.hsl(u,y,w).alpha(M/100).rgb().array();n([B[0],B[1],B[2],M/100])}},[u,y,w,M,n]),D.jsx(zx.Provider,{value:{hue:u,saturation:y,lightness:w,alpha:M,mode:k,setHue:p,setSaturation:S,setLightness:C,setAlpha:O,setMode:W},children:D.jsx("div",{className:Ze("flex size-full flex-col gap-4",r),...i})})},Hx=fe.memo(({className:e,...t})=>{const n=fe.useRef(null),[r,i]=fe.useState(!1),[o,l]=fe.useState(0),[u,p]=fe.useState(0),{hue:y,setSaturation:S,setLightness:w}=xf(),C=fe.useMemo(()=>`linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,0)),
|
|
134
360
|
linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)),
|
|
135
|
-
hsl(${
|
|
361
|
+
hsl(${y}, 100%, 50%)`,[y]),M=fe.useCallback(O=>{if(!(r&&n.current))return;const k=n.current.getBoundingClientRect(),W=Math.max(0,Math.min(1,(O.clientX-k.left)/k.width)),H=Math.max(0,Math.min(1,(O.clientY-k.top)/k.height));l(W),p(H),S(W*100);const I=(W<.01?100:50+50*(1-W))*(1-H);w(I)},[r,S,w]);return fe.useEffect(()=>{const O=()=>i(!1);return r&&(window.addEventListener("pointermove",M),window.addEventListener("pointerup",O)),()=>{window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",O)}},[r,M]),D.jsx("div",{className:Ze("relative size-full cursor-crosshair rounded",e),onPointerDown:O=>{O.preventDefault(),i(!0),M(O.nativeEvent)},ref:n,style:{background:C},...t,children:D.jsx("div",{className:"-translate-x-1/2 -translate-y-1/2 pointer-events-none absolute h-4 w-4 rounded-full border-2 border-white",style:{left:`${o*100}%`,top:`${u*100}%`,boxShadow:"0 0 0 1px rgba(0,0,0,0.5)"}})})});Hx.displayName="ColorPickerSelection";const eN=({className:e,...t})=>{const{hue:n,setHue:r}=xf();return D.jsxs(Fx,{className:Ze("relative flex h-4 w-full touch-none",e),max:360,onValueChange:([i])=>r(i),step:1,value:[n],...t,children:[D.jsx(Dx,{className:"relative my-0.5 h-3 w-full grow rounded-full bg-[linear-gradient(90deg,#FF0000,#FFFF00,#00FF00,#00FFFF,#0000FF,#FF00FF,#FF0000)]",children:D.jsx(Lx,{className:"absolute h-full"})}),D.jsx(Bx,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})},tN=({className:e,...t})=>{const{alpha:n,setAlpha:r}=xf();return D.jsxs(Fx,{className:Ze("relative flex h-4 w-full touch-none",e),max:100,onValueChange:([i])=>r(i),step:1,value:[n],...t,children:[D.jsxs(Dx,{className:"relative my-0.5 h-3 w-full grow rounded-full",style:{background:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==") left center'},children:[D.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-r from-transparent to-black/50"}),D.jsx(Lx,{className:"absolute h-full rounded-full bg-transparent"})]}),D.jsx(Bx,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]})},nN=({className:e,...t})=>{const{setHue:n,setSaturation:r,setLightness:i,setAlpha:o}=xf(),l=async()=>{try{const p=await new EyeDropper().open(),y=qr(p.sRGBHex),[S,w,C]=y.hsl().array();n(S),r(w),i(C),o(100)}catch(u){console.error("EyeDropper failed:",u)}};return D.jsx(nm,{className:Ze("shrink-0 text-muted-foreground",e),color:"secondary",onClick:l,size:"icon",type:"button",...t,children:D.jsx(qS,{size:16})})},rN=["hex","rgb","css","hsl"],iN=({className:e,...t})=>{const{mode:n,setMode:r}=xf();return D.jsxs(X2,{onValueChange:r,value:n,children:[D.jsx(J2,{className:"h-8 w-20 shrink-0 text-xs",...t,children:D.jsx(Z2,{placeholder:"Mode"})}),D.jsx(K2,{children:rN.map(i=>D.jsx(Q2,{className:"text-xs",value:i,children:i.toUpperCase()},i))})]})},Wv=({className:e,...t})=>D.jsxs("div",{className:"relative",children:[D.jsx(Bf,{readOnly:!0,type:"text",...t,className:Ze("h-8 w-[3.25rem] rounded-l-none bg-secondary px-2 text-xs shadow-none",e)}),D.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 right-2 text-muted-foreground text-xs",children:"%"})]}),oN=({className:e,...t})=>{const{hue:n,saturation:r,lightness:i,alpha:o,mode:l}=xf(),u=qr.hsl(n,r,i,o/100);if(l==="hex"){const p=u.hex();return D.jsxs("div",{className:Ze("-space-x-px relative flex w-full items-center rounded-md shadow-sm",e),...t,children:[D.jsx(Bf,{className:"h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",readOnly:!0,type:"text",value:p}),D.jsx(Wv,{value:o})]})}if(l==="rgb"){const p=u.rgb().array().map(y=>Math.round(y));return D.jsxs("div",{className:Ze("-space-x-px flex items-center rounded-md shadow-sm",e),...t,children:[p.map((y,S)=>D.jsx(Bf,{className:Ze("h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",S&&"rounded-l-none",e),readOnly:!0,type:"text",value:y},S)),D.jsx(Wv,{value:o})]})}if(l==="css"){const p=u.rgb().array().map(y=>Math.round(y));return D.jsx("div",{className:Ze("w-full rounded-md shadow-sm",e),...t,children:D.jsx(Bf,{className:"h-8 w-full bg-secondary px-2 text-xs shadow-none",readOnly:!0,type:"text",value:`rgba(${p.join(", ")}, ${o}%)`,...t})})}if(l==="hsl"){const p=u.hsl().array().map(y=>Math.round(y));return D.jsxs("div",{className:Ze("-space-x-px flex items-center rounded-md shadow-sm",e),...t,children:[p.map((y,S)=>D.jsx(Bf,{className:Ze("h-8 rounded-r-none bg-secondary px-2 text-xs shadow-none",S&&"rounded-l-none",e),readOnly:!0,type:"text",value:y},S)),D.jsx(Wv,{value:o})]})}return null};/**
|
|
362
|
+
* table-core
|
|
363
|
+
*
|
|
364
|
+
* Copyright (c) TanStack
|
|
365
|
+
*
|
|
366
|
+
* This source code is licensed under the MIT license found in the
|
|
367
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
368
|
+
*
|
|
369
|
+
* @license MIT
|
|
370
|
+
*/function Jd(e,t){return typeof e=="function"?e(t):e}function ls(e,t){return n=>{t.setState(r=>({...r,[e]:Jd(n,r[e])}))}}function Qg(e){return e instanceof Function}function aN(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function lN(e,t){const n=[],r=i=>{i.forEach(o=>{n.push(o);const l=t(o);l!=null&&l.length&&r(l)})};return r(e),n}function Gt(e,t,n){let r=[],i;return o=>{let l;n.key&&n.debug&&(l=Date.now());const u=e(o);if(!(u.length!==r.length||u.some((S,w)=>r[w]!==S)))return i;r=u;let y;if(n.key&&n.debug&&(y=Date.now()),i=t(...u),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const S=Math.round((Date.now()-l)*100)/100,w=Math.round((Date.now()-y)*100)/100,C=w/16,M=(O,k)=>{for(O=String(O);O.length<k;)O=" "+O;return O};console.info(`%c⏱ ${M(w,5)} /${M(S,5)} ms`,`
|
|
371
|
+
font-size: .6rem;
|
|
372
|
+
font-weight: bold;
|
|
373
|
+
color: hsl(${Math.max(0,Math.min(120-120*C,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function Yt(e,t,n,r){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:r}}function sN(e,t,n,r){const i=()=>{var l;return(l=o.getValue())!=null?l:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:Gt(()=>[e,n,t,o],(l,u,p,y)=>({table:l,column:u,row:p,cell:y,getValue:y.getValue,renderValue:y.renderValue}),Yt(e.options,"debugCells","cell.getContext"))};return e._features.forEach(l=>{l.createCell==null||l.createCell(o,n,t,e)},{}),o}function cN(e,t,n,r){var i,o;const u={...e._getDefaultColumnDef(),...t},p=u.accessorKey;let y=(i=(o=u.id)!=null?o:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?i:typeof u.header=="string"?u.header:void 0,S;if(u.accessorFn?S=u.accessorFn:p&&(p.includes(".")?S=C=>{let M=C;for(const k of p.split(".")){var O;M=(O=M)==null?void 0:O[k],process.env.NODE_ENV!=="production"&&M===void 0&&console.warn(`"${k}" in deeply nested key "${p}" returned undefined.`)}return M}:S=C=>C[u.accessorKey]),!y)throw process.env.NODE_ENV!=="production"?new Error(u.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let w={id:`${String(y)}`,accessorFn:S,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:Gt(()=>[!0],()=>{var C;return[w,...(C=w.columns)==null?void 0:C.flatMap(M=>M.getFlatColumns())]},Yt(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Gt(()=>[e._getOrderColumnsFn()],C=>{var M;if((M=w.columns)!=null&&M.length){let O=w.columns.flatMap(k=>k.getLeafColumns());return C(O)}return[w]},Yt(e.options,"debugColumns","column.getLeafColumns"))};for(const C of e._features)C.createColumn==null||C.createColumn(w,e);return w}const wa="debugHeaders";function Wx(e,t,n){var r;let o={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],u=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(u),l.push(p)};return u(o),l},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(o,e)}),o}const uN={createTable:e=>{e.getHeaderGroups=Gt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,l;const u=(o=r==null?void 0:r.map(w=>n.find(C=>C.id===w)).filter(Boolean))!=null?o:[],p=(l=i==null?void 0:i.map(w=>n.find(C=>C.id===w)).filter(Boolean))!=null?l:[],y=n.filter(w=>!(r!=null&&r.includes(w.id))&&!(i!=null&&i.includes(w.id)));return jg(t,[...u,...y,...p],e)},Yt(e.options,wa,"getHeaderGroups")),e.getCenterHeaderGroups=Gt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(o=>!(r!=null&&r.includes(o.id))&&!(i!=null&&i.includes(o.id))),jg(t,n,e,"center")),Yt(e.options,wa,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Gt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(l=>n.find(u=>u.id===l)).filter(Boolean))!=null?i:[];return jg(t,o,e,"left")},Yt(e.options,wa,"getLeftHeaderGroups")),e.getRightHeaderGroups=Gt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(l=>n.find(u=>u.id===l)).filter(Boolean))!=null?i:[];return jg(t,o,e,"right")},Yt(e.options,wa,"getRightHeaderGroups")),e.getFooterGroups=Gt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Yt(e.options,wa,"getFooterGroups")),e.getLeftFooterGroups=Gt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Yt(e.options,wa,"getLeftFooterGroups")),e.getCenterFooterGroups=Gt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Yt(e.options,wa,"getCenterFooterGroups")),e.getRightFooterGroups=Gt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Yt(e.options,wa,"getRightFooterGroups")),e.getFlatHeaders=Gt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Yt(e.options,wa,"getFlatHeaders")),e.getLeftFlatHeaders=Gt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Yt(e.options,wa,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Gt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Yt(e.options,wa,"getCenterFlatHeaders")),e.getRightFlatHeaders=Gt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Yt(e.options,wa,"getRightFlatHeaders")),e.getCenterLeafHeaders=Gt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Yt(e.options,wa,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Gt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Yt(e.options,wa,"getLeftLeafHeaders")),e.getRightLeafHeaders=Gt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Yt(e.options,wa,"getRightLeafHeaders")),e.getLeafHeaders=Gt(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,o,l,u,p,y;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[],...(p=(y=r[0])==null?void 0:y.headers)!=null?p:[]].map(S=>S.getLeafHeaders()).flat()},Yt(e.options,wa,"getLeafHeaders"))}};function jg(e,t,n,r){var i,o;let l=0;const u=function(C,M){M===void 0&&(M=1),l=Math.max(l,M),C.filter(O=>O.getIsVisible()).forEach(O=>{var k;(k=O.columns)!=null&&k.length&&u(O.columns,M+1)},0)};u(e);let p=[];const y=(C,M)=>{const O={depth:M,id:[r,`${M}`].filter(Boolean).join("_"),headers:[]},k=[];C.forEach(W=>{const H=[...k].reverse()[0],B=W.column.depth===O.depth;let I,Y=!1;if(B&&W.column.parent?I=W.column.parent:(I=W.column,Y=!0),H&&(H==null?void 0:H.column)===I)H.subHeaders.push(W);else{const K=Wx(n,I,{id:[r,M,I.id,W==null?void 0:W.id].filter(Boolean).join("_"),isPlaceholder:Y,placeholderId:Y?`${k.filter(G=>G.column===I).length}`:void 0,depth:M,index:k.length});K.subHeaders.push(W),k.push(K)}O.headers.push(W),W.headerGroup=O}),p.push(O),M>0&&y(k,M-1)},S=t.map((C,M)=>Wx(n,C,{depth:l,index:M}));y(S,l-1),p.reverse();const w=C=>C.filter(O=>O.column.getIsVisible()).map(O=>{let k=0,W=0,H=[0];O.subHeaders&&O.subHeaders.length?(H=[],w(O.subHeaders).forEach(I=>{let{colSpan:Y,rowSpan:K}=I;k+=Y,H.push(K)})):k=1;const B=Math.min(...H);return W=W+B,O.colSpan=k,O.rowSpan=W,{colSpan:k,rowSpan:W}});return w((i=(o=p[0])==null?void 0:o.headers)!=null?i:[]),p}const dN=(e,t,n,r,i,o,l)=>{let u={id:t,index:r,original:n,depth:i,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(u._valuesCache.hasOwnProperty(p))return u._valuesCache[p];const y=e.getColumn(p);if(y!=null&&y.accessorFn)return u._valuesCache[p]=y.accessorFn(u.original,r),u._valuesCache[p]},getUniqueValues:p=>{if(u._uniqueValuesCache.hasOwnProperty(p))return u._uniqueValuesCache[p];const y=e.getColumn(p);if(y!=null&&y.accessorFn)return y.columnDef.getUniqueValues?(u._uniqueValuesCache[p]=y.columnDef.getUniqueValues(u.original,r),u._uniqueValuesCache[p]):(u._uniqueValuesCache[p]=[u.getValue(p)],u._uniqueValuesCache[p])},renderValue:p=>{var y;return(y=u.getValue(p))!=null?y:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>lN(u.subRows,p=>p.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let p=[],y=u;for(;;){const S=y.getParentRow();if(!S)break;p.push(S),y=S}return p.reverse()},getAllCells:Gt(()=>[e.getAllLeafColumns()],p=>p.map(y=>sN(e,u,y,y.id)),Yt(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Gt(()=>[u.getAllCells()],p=>p.reduce((y,S)=>(y[S.column.id]=S,y),{}),Yt(e.options,"debugRows","getAllCellsByColumnId"))};for(let p=0;p<e._features.length;p++){const y=e._features[p];y==null||y.createRow==null||y.createRow(u,e)}return u},fN={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Ux=(e,t,n)=>{var r,i;const o=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(o))};Ux.autoRemove=e=>Ac(e);const Gx=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Gx.autoRemove=e=>Ac(e);const Yx=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};Yx.autoRemove=e=>Ac(e);const Vx=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Vx.autoRemove=e=>Ac(e);const Xx=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});Xx.autoRemove=e=>Ac(e)||!(e!=null&&e.length);const Zx=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});Zx.autoRemove=e=>Ac(e)||!(e!=null&&e.length);const Jx=(e,t,n)=>e.getValue(t)===n;Jx.autoRemove=e=>Ac(e);const Kx=(e,t,n)=>e.getValue(t)==n;Kx.autoRemove=e=>Ac(e);const Uv=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Uv.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(r)?-1/0:r,l=n===null||Number.isNaN(i)?1/0:i;if(o>l){const u=o;o=l,l=u}return[o,l]},Uv.autoRemove=e=>Ac(e)||Ac(e[0])&&Ac(e[1]);const ud={includesString:Ux,includesStringSensitive:Gx,equalsString:Yx,arrIncludes:Vx,arrIncludesAll:Xx,arrIncludesSome:Zx,equals:Jx,weakEquals:Kx,inNumberRange:Uv};function Ac(e){return e==null||e===""}const hN={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:ls("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?ud.includesString:typeof r=="number"?ud.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?ud.equals:Array.isArray(r)?ud.arrIncludes:ud.weakEquals},e.getFilterFn=()=>{var n,r;return Qg(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:ud[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),o=r==null?void 0:r.find(S=>S.id===e.id),l=Jd(n,o?o.value:void 0);if(Qx(i,l,e)){var u;return(u=r==null?void 0:r.filter(S=>S.id!==e.id))!=null?u:[]}const p={id:e.id,value:l};if(o){var y;return(y=r==null?void 0:r.map(S=>S.id===e.id?p:S))!=null?y:[]}return r!=null&&r.length?[...r,p]:[p]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var o;return(o=Jd(t,i))==null?void 0:o.filter(l=>{const u=n.find(p=>p.id===l.id);if(u){const p=u.getFilterFn();if(Qx(p,l.value,u))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Qx(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Gv={sum:(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),min:(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}),r},max:(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(o=>{const l=o.getValue(e);l!=null&&(r===void 0?l>=l&&(r=i=l):(r>l&&(r=l),i<l&&(i=l)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!aN(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((o,l)=>o-l);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},gN={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:ls("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Gv.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Gv.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Qg(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Gv[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function pN(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(o=>!t.includes(o.id));return n==="remove"?r:[...t.map(o=>e.find(l=>l.id===o)).filter(Boolean),...r]}const vN={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:ls("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Gt(n=>[Wh(t,n)],n=>n.findIndex(r=>r.id===e.id),Yt(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=Wh(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Wh(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Gt(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const l=[...t],u=[...i];for(;u.length&&l.length;){const p=l.shift(),y=u.findIndex(S=>S.id===p);y>-1&&o.push(u.splice(y,1)[0])}o=[...o,...u]}return pN(o,n,r)},Yt(e.options,"debugTable","_getOrderColumnsFn"))}},Yv=()=>({left:[],right:[]}),bN={getInitialState:e=>({columnPinning:Yv(),...e}),getDefaultOptions:e=>({onColumnPinningChange:ls("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,l;if(n==="right"){var u,p;return{left:((u=i==null?void 0:i.left)!=null?u:[]).filter(w=>!(r!=null&&r.includes(w))),right:[...((p=i==null?void 0:i.right)!=null?p:[]).filter(w=>!(r!=null&&r.includes(w))),...r]}}if(n==="left"){var y,S;return{left:[...((y=i==null?void 0:i.left)!=null?y:[]).filter(w=>!(r!=null&&r.includes(w))),...r],right:((S=i==null?void 0:i.right)!=null?S:[]).filter(w=>!(r!=null&&r.includes(w)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(w=>!(r!=null&&r.includes(w))),right:((l=i==null?void 0:i.right)!=null?l:[]).filter(w=>!(r!=null&&r.includes(w)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,o,l;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((o=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(u=>u.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(u=>r==null?void 0:r.includes(u)),l=n.some(u=>i==null?void 0:i.includes(u));return o?"left":l?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Gt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const o=[...r??[],...i??[]];return n.filter(l=>!o.includes(l.column.id))},Yt(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Gt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(o=>n.find(l=>l.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),Yt(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Gt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(o=>n.find(l=>l.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),Yt(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?Yv():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Yv())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,o;return!!((i=r.left)!=null&&i.length||(o=r.right)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=Gt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Yt(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Gt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Yt(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Gt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(o=>!i.includes(o.id))},Yt(e.options,"debugColumns","getCenterLeafColumns"))}};function mN(e){return e||(typeof document<"u"?document:null)}const qg={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Vv=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),yN={getDefaultColumnDef:()=>qg,getInitialState:e=>({columnSizing:{},columnSizingInfo:Vv(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:ls("columnSizing",e),onColumnSizingInfoChange:ls("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:qg.minSize,(r=o??e.columnDef.size)!=null?r:qg.size),(i=e.columnDef.maxSize)!=null?i:qg.maxSize)},e.getStart=Gt(n=>[n,Wh(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),Yt(t.options,"debugColumns","getStart")),e.getAfter=Gt(n=>[n,Wh(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),Yt(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var o;n+=(o=i.column.getSize())!=null?o:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r==null?void 0:r.getCanResize();return o=>{if(!r||!i||(o.persist==null||o.persist(),Xv(o)&&o.touches&&o.touches.length>1))return;const l=e.getSize(),u=e?e.getLeafHeaders().map(H=>[H.column.id,H.column.getSize()]):[[r.id,r.getSize()]],p=Xv(o)?Math.round(o.touches[0].clientX):o.clientX,y={},S=(H,B)=>{typeof B=="number"&&(t.setColumnSizingInfo(I=>{var Y,K;const G=t.options.columnResizeDirection==="rtl"?-1:1,ne=(B-((Y=I==null?void 0:I.startOffset)!=null?Y:0))*G,$=Math.max(ne/((K=I==null?void 0:I.startSize)!=null?K:0),-.999999);return I.columnSizingStart.forEach(ie=>{let[se,ue]=ie;y[se]=Math.round(Math.max(ue+ue*$,0)*100)/100}),{...I,deltaOffset:ne,deltaPercentage:$}}),(t.options.columnResizeMode==="onChange"||H==="end")&&t.setColumnSizing(I=>({...I,...y})))},w=H=>S("move",H),C=H=>{S("end",H),t.setColumnSizingInfo(B=>({...B,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},M=mN(n),O={moveHandler:H=>w(H.clientX),upHandler:H=>{M==null||M.removeEventListener("mousemove",O.moveHandler),M==null||M.removeEventListener("mouseup",O.upHandler),C(H.clientX)}},k={moveHandler:H=>(H.cancelable&&(H.preventDefault(),H.stopPropagation()),w(H.touches[0].clientX),!1),upHandler:H=>{var B;M==null||M.removeEventListener("touchmove",k.moveHandler),M==null||M.removeEventListener("touchend",k.upHandler),H.cancelable&&(H.preventDefault(),H.stopPropagation()),C((B=H.touches[0])==null?void 0:B.clientX)}},W=wN()?{passive:!1}:!1;Xv(o)?(M==null||M.addEventListener("touchmove",k.moveHandler,W),M==null||M.addEventListener("touchend",k.upHandler,W)):(M==null||M.addEventListener("mousemove",O.moveHandler,W),M==null||M.addEventListener("mouseup",O.upHandler,W)),t.setColumnSizingInfo(H=>({...H,startOffset:p,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Vv():(n=e.initialState.columnSizingInfo)!=null?n:Vv())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let $g=null;function wN(){if(typeof $g=="boolean")return $g;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return $g=e,$g}function Xv(e){return e.type==="touchstart"}const xN={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:ls("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(o=>o.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Gt(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Yt(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Gt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],Yt(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>Gt(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),Yt(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Wh(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const SN={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},EN={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:ls("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ud.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Qg(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:ud[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},CN={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:ls("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,o;e.setExpanded(r?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const l=o.split(".");r=Math.max(r,l.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var i;const o=r===!0?!0:!!(r!=null&&r[e.id]);let l={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(u=>{l[u]=!0}):l=r,n=(i=n)!=null?i:!o,!o&&n)return{...l,[e.id]:!0};if(o&&!n){const{[e.id]:u,...p}=l;return p}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Zv=0,Jv=10,Kv=()=>({pageIndex:Zv,pageSize:Jv}),TN={getInitialState:e=>({...e,pagination:{...Kv(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:ls("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=o=>Jd(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?Kv():(i=e.initialState.pagination)!=null?i:Kv())},e.setPageIndex=r=>{e.setPagination(i=>{let o=Jd(r,i.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,l)),{...i,pageIndex:o}})},e.resetPageIndex=r=>{var i,o;e.setPageIndex(r?Zv:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:Zv)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?Jv:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:Jv)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,Jd(r,i.pageSize)),l=i.pageSize*i.pageIndex,u=Math.floor(l/o);return{...i,pageIndex:u,pageSize:o}})},e.setPageCount=r=>e.setPagination(i=>{var o;let l=Jd(r,(o=e.options.pageCount)!=null?o:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...i,pageCount:l}}),e.getPageOptions=Gt(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,l)=>l)),i},Yt(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Qv=()=>({top:[],bottom:[]}),kN={getInitialState:e=>({rowPinning:Qv(),...e}),getDefaultOptions:e=>({onRowPinningChange:ls("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map(p=>{let{id:y}=p;return y}):[],l=i?e.getParentRows().map(p=>{let{id:y}=p;return y}):[],u=new Set([...l,e.id,...o]);t.setRowPinning(p=>{var y,S;if(n==="bottom"){var w,C;return{top:((w=p==null?void 0:p.top)!=null?w:[]).filter(k=>!(u!=null&&u.has(k))),bottom:[...((C=p==null?void 0:p.bottom)!=null?C:[]).filter(k=>!(u!=null&&u.has(k))),...Array.from(u)]}}if(n==="top"){var M,O;return{top:[...((M=p==null?void 0:p.top)!=null?M:[]).filter(k=>!(u!=null&&u.has(k))),...Array.from(u)],bottom:((O=p==null?void 0:p.bottom)!=null?O:[]).filter(k=>!(u!=null&&u.has(k)))}}return{top:((y=p==null?void 0:p.top)!=null?y:[]).filter(k=>!(u!=null&&u.has(k))),bottom:((S=p==null?void 0:p.bottom)!=null?S:[]).filter(k=>!(u!=null&&u.has(k)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(u=>r==null?void 0:r.includes(u)),l=n.some(u=>i==null?void 0:i.includes(u));return o?"top":l?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(l=>{let{id:u}=l;return u});return(r=o==null?void 0:o.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Qv():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Qv())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,o;return!!((i=r.top)!=null&&i.length||(o=r.bottom)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(l=>{const u=e.getRow(l,!0);return u.getIsAllParentsExpanded()?u:null}):(n??[]).map(l=>t.find(u=>u.id===l))).filter(Boolean).map(l=>({...l,position:r}))},e.getTopRows=Gt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Yt(e.options,"debugRows","getTopRows")),e.getBottomRows=Gt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Yt(e.options,"debugRows","getBottomRows")),e.getCenterRows=Gt(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(o=>!i.has(o.id))},Yt(e.options,"debugRows","getCenterRows"))}},RN={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:ls("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(r[o.id]=!0)}):i.forEach(o=>{delete r[o.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(o=>{jv(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Gt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?qv(e,n):{rows:[],flatRows:[],rowsById:{}},Yt(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Gt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?qv(e,n):{rows:[],flatRows:[],rowsById:{}},Yt(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Gt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?qv(e,n):{rows:[],flatRows:[],rowsById:{}},Yt(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var l;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const u={...o};return jv(u,e.id,n,(l=r==null?void 0:r.selectChildren)!=null?l:!0,t),u})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return $v(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return eb(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return eb(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},jv=(e,t,n,r,i)=>{var o;const l=i.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(u=>delete e[u]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(o=l.subRows)!=null&&o.length&&l.getCanSelectSubRows()&&l.subRows.forEach(u=>jv(e,u.id,n,r,i))};function qv(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(l,u){return l.map(p=>{var y;const S=$v(p,n);if(S&&(r.push(p),i[p.id]=p),(y=p.subRows)!=null&&y.length&&(p={...p,subRows:o(p.subRows)}),S)return p}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function $v(e,t){var n;return(n=t[e.id])!=null?n:!1}function eb(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(l=>{if(!(o&&!i)&&(l.getCanSelect()&&($v(l,t)?o=!0:i=!1),l.subRows&&l.subRows.length)){const u=eb(l,t);u==="all"?o=!0:(u==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const tb=/([0-9]+)/gm,MN=(e,t,n)=>jx(Kd(e.getValue(n)).toLowerCase(),Kd(t.getValue(n)).toLowerCase()),_N=(e,t,n)=>jx(Kd(e.getValue(n)),Kd(t.getValue(n))),PN=(e,t,n)=>nb(Kd(e.getValue(n)).toLowerCase(),Kd(t.getValue(n)).toLowerCase()),ON=(e,t,n)=>nb(Kd(e.getValue(n)),Kd(t.getValue(n))),AN=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},IN=(e,t,n)=>nb(e.getValue(n),t.getValue(n));function nb(e,t){return e===t?0:e>t?1:-1}function Kd(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function jx(e,t){const n=e.split(tb).filter(Boolean),r=t.split(tb).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),o=r.shift(),l=parseInt(i,10),u=parseInt(o,10),p=[l,u].sort();if(isNaN(p[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(p[1]))return isNaN(l)?-1:1;if(l>u)return 1;if(u>l)return-1}return n.length-r.length}const Uh={alphanumeric:MN,alphanumericCaseSensitive:_N,text:PN,textCaseSensitive:ON,datetime:AN,basic:IN},NN=[uN,xN,vN,bN,fN,hN,SN,EN,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:ls("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Uh.datetime;if(typeof o=="string"&&(r=!0,o.split(tb).length>1))return Uh.alphanumeric}return r?Uh.text:Uh.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Qg(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Uh[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(l=>{const u=l==null?void 0:l.find(M=>M.id===e.id),p=l==null?void 0:l.findIndex(M=>M.id===e.id);let y=[],S,w=o?n:i==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&r?u?S="toggle":S="add":l!=null&&l.length&&p!==l.length-1?S="replace":u?S="toggle":S="replace",S==="toggle"&&(o||i||(S="remove")),S==="add"){var C;y=[...l,{id:e.id,desc:w}],y.splice(0,y.length-((C=t.options.maxMultiSortColCount)!=null?C:Number.MAX_SAFE_INTEGER))}else S==="toggle"?y=l.map(M=>M.id===e.id?{...M,desc:w}:M):S==="remove"?y=l.filter(M=>M.id!==e.id):y=[{id:e.id,desc:w}];return y})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==o&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:l==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},gN,CN,TN,kN,RN,yN];function FN(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...NN,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((C,M)=>Object.assign(C,M.getDefaultOptions==null?void 0:M.getDefaultOptions(i)),{}),l=C=>i.options.mergeOptions?i.options.mergeOptions(o,C):{...o,...C};let p={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(C=>{var M;p=(M=C.getInitialState==null?void 0:C.getInitialState(p))!=null?M:p});const y=[];let S=!1;const w={_features:r,options:{...o,...e},initialState:p,_queue:C=>{y.push(C),S||(S=!0,Promise.resolve().then(()=>{for(;y.length;)y.shift()();S=!1}).catch(M=>setTimeout(()=>{throw M})))},reset:()=>{i.setState(i.initialState)},setOptions:C=>{const M=Jd(C,i.options);i.options=l(M)},getState:()=>i.options.state,setState:C=>{i.options.onStateChange==null||i.options.onStateChange(C)},_getRowId:(C,M,O)=>{var k;return(k=i.options.getRowId==null?void 0:i.options.getRowId(C,M,O))!=null?k:`${O?[O.id,M].join("."):M}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(C,M)=>{let O=(M?i.getPrePaginationRowModel():i.getRowModel()).rowsById[C];if(!O&&(O=i.getCoreRowModel().rowsById[C],!O))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${C}`):new Error;return O},_getDefaultColumnDef:Gt(()=>[i.options.defaultColumn],C=>{var M;return C=(M=C)!=null?M:{},{header:O=>{const k=O.header.column.columnDef;return k.accessorKey?k.accessorKey:k.accessorFn?k.id:null},cell:O=>{var k,W;return(k=(W=O.renderValue())==null||W.toString==null?void 0:W.toString())!=null?k:null},...i._features.reduce((O,k)=>Object.assign(O,k.getDefaultColumnDef==null?void 0:k.getDefaultColumnDef()),{}),...C}},Yt(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:Gt(()=>[i._getColumnDefs()],C=>{const M=function(O,k,W){return W===void 0&&(W=0),O.map(H=>{const B=cN(i,H,W,k),I=H;return B.columns=I.columns?M(I.columns,B,W+1):[],B})};return M(C)},Yt(e,"debugColumns","getAllColumns")),getAllFlatColumns:Gt(()=>[i.getAllColumns()],C=>C.flatMap(M=>M.getFlatColumns()),Yt(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Gt(()=>[i.getAllFlatColumns()],C=>C.reduce((M,O)=>(M[O.id]=O,M),{}),Yt(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Gt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(C,M)=>{let O=C.flatMap(k=>k.getLeafColumns());return M(O)},Yt(e,"debugColumns","getAllLeafColumns")),getColumn:C=>{const M=i._getAllFlatColumnsById()[C];return process.env.NODE_ENV!=="production"&&!M&&console.error(`[Table] Column with id '${C}' does not exist.`),M}};Object.assign(i,w);for(let C=0;C<i._features.length;C++){const M=i._features[C];M==null||M.createTable==null||M.createTable(i)}return i}function DN(){return e=>Gt(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,l){o===void 0&&(o=0);const u=[];for(let y=0;y<i.length;y++){const S=dN(e,e._getRowId(i[y],y,l),i[y],y,o,void 0,l==null?void 0:l.id);if(n.flatRows.push(S),n.rowsById[S.id]=S,u.push(S),e.options.getSubRows){var p;S.originalSubRows=e.options.getSubRows(i[y],y),(p=S.originalSubRows)!=null&&p.length&&(S.subRows=r(S.originalSubRows,o+1,S))}}return u};return n.rows=r(t),n},Yt(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
|
|
374
|
+
* react-table
|
|
375
|
+
*
|
|
376
|
+
* Copyright (c) TanStack
|
|
377
|
+
*
|
|
378
|
+
* This source code is licensed under the MIT license found in the
|
|
379
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
380
|
+
*
|
|
381
|
+
* @license MIT
|
|
382
|
+
*/function qx(e,t){return e?LN(e)?L.createElement(e,t):e:null}function LN(e){return BN(e)||typeof e=="function"||zN(e)}function BN(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function zN(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function HN(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=L.useState(()=>({current:FN(t)})),[r,i]=L.useState(()=>n.current.initialState);return n.current.setOptions(o=>({...o,...e,state:{...r,...e.state},onStateChange:l=>{i(l),e.onStateChange==null||e.onStateChange(l)}})),n.current}const WN=e=>e==null?"":String(e),UN=({columns:e,rows:t,className:n,isEditModeEnabled:r=!1,isEditModeDisabled:i=!1,isInlineEditingLocked:o=!1,onRowsChange:l,...u})=>{const[p,y]=L.useState(t),[S,w]=L.useState(null);L.useEffect(()=>{S||y(t)},[S,t]);const C=r&&!i&&!o;L.useEffect(()=>{!C&&S&&w(null)},[S,C]);const M=L.useCallback((W,H,B)=>{y(I=>{const Y=I.map((K,G)=>G!==W?K:{...K,[H]:B});return l==null||l(Y),Y})},[l]),O=L.useMemo(()=>e.map(W=>({id:W.key,accessorFn:H=>H[W.key],header:()=>D.jsx(Ni,{typography:"CompactCaption",color:"muted-foreground",className:"font-medium",children:W.header}),cell:H=>{const B=WN(H.getValue()),I=`${H.row.id}:${W.key}`;return W.isEditable?D.jsx(mi,{value:B,onValueChange:Y=>{M(H.row.index,W.key,Y)},typography:W.typography??"BodySmall",color:W.color,placeholder:W.placeholder,contentClassName:W.contentClassName,className:"!h-auto",isEditModeDisabled:!C,isEditModeOn:C&&S===I,onEditModeChange:Y=>{w(K=>Y?I:K===I?null:K)}}):D.jsx(Ni,{typography:W.typography??"BodySmall",color:W.color??"foreground",className:W.contentClassName,children:B})}})),[e,S,C,M]),k=HN({data:p,columns:O,getCoreRowModel:DN()});return D.jsx("div",{className:Ze("w-full overflow-x-auto",n),...u,children:D.jsxs("table",{className:"w-full min-w-[760px] border-collapse text-left",children:[D.jsx("thead",{children:k.getHeaderGroups().map(W=>D.jsx("tr",{children:W.headers.map(H=>{const B=e.find(I=>I.key===H.column.id);return D.jsx("th",{className:"border-b border-border px-3 py-2.5 align-middle",style:B!=null&&B.width?{width:typeof B.width=="number"?`${B.width}px`:B.width}:void 0,children:qx(H.column.columnDef.header,H.getContext())},H.id)})},W.id))}),D.jsx("tbody",{children:k.getRowModel().rows.map(W=>D.jsx("tr",{children:W.getVisibleCells().map(H=>{const B=e.find(I=>I.key===H.column.id);return D.jsx("td",{className:Ze("border-b border-border px-3 py-2.5 align-top leading-[1.45]",B==null?void 0:B.className),children:qx(H.column.columnDef.cell,H.getContext())},H.id)})},W.id))})]})})};lt.ACCORDION_PAPER_TYPE_OPTIONS=i1,lt.Accordion=o1,lt.Avatar=G_,lt.AvatarFallback=V_,lt.AvatarImage=Y_,lt.BUTTON_COLOR_OPTIONS=VE,lt.BUTTON_VARIANT_OPTIONS=YE,lt.BigHorizontalSlide=_y,lt.Breadcrumb=qb,lt.BreadcrumbEllipsis=em,lt.BreadcrumbItem=tg,lt.BreadcrumbLink=ng,lt.BreadcrumbList=$b,lt.BreadcrumbPage=rg,lt.BreadcrumbSeparator=ig,lt.Breadcrumbs=GE,lt.Button=nm,lt.Calendar=ug,lt.Code=xw,lt.CodeBrick=M_,lt.ColorPicker=$2,lt.ColorPickerAlpha=tN,lt.ColorPickerEyeDropper=nN,lt.ColorPickerFormat=oN,lt.ColorPickerHue=eN,lt.ColorPickerOutput=iN,lt.ColorPickerSelection=Hx,lt.Dropdown=$m,lt.DropdownCalendar=ey,lt.EditableTypography=mi,lt.FAST_TRANSITION_CLASS=ES,lt.Flex=fh,lt.GLASS_CLASS=Eb,lt.GLASS_SURFACE_CLASS=CS,lt.Grid=vb,lt.HIDDEN_BY_SCROLL_CLASS=SS,lt.IMAGE_MASK_OPTIONS=Zk,lt.IMAGE_SIDE_SHADE_SIDE_OPTIONS=Jk,lt.Image=dg,lt.Input=Bf,lt.InputCalendar=Qm,lt.MathEquationBlock=Uy,lt.MediumHorizontalSlide=Py,lt.MediumVerticalSlide=Ay,lt.PAPER_PATTERN_COLOR_OPTIONS=MS,lt.PAPER_RADIUS_CLASS_OPTIONS=RS,lt.Paper=cf,lt.Slider=WR,lt.StoreSlide=Oy,lt.TAG_TYPE_OPTIONS=t1,lt.TYPOGRAPHY_COLOR_OPTIONS=fS,lt.TYPOGRAPHY_OPTIONS=hS,lt.TableLight=UN,lt.Tag=zf,lt.Timer=iy,lt.Toggle=Vk,lt.Typography=Ni,lt.bigHorizontalSlideWidth=Fy,lt.bigHorizontalSlideWidthStyle=By,lt.buildSliderSlides=GR,lt.courseSlideData=wg,lt.getDefaultColorByTypography=op,lt.getDefaultElementTagByTypography=mb,lt.getImageMaskUrlByType=ty,lt.getPlaceholderTypographyClassName=Jh,lt.getTagsByVariant=Vp,lt.getTypographyClassName=Od,lt.mediumHorizontalSlideWidth=Ny,lt.mediumHorizontalSlideWidthStyle=Ly,lt.mediumVerticalSlideWidth=Iy,lt.mediumVerticalSlideWidthStyle=Dy,lt.sliderSlideComponentTypeOptions=UR,lt.useColorPicker=xf,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"})});
|